]> git.sur5r.net Git - openldap/blob - configure
cef6147afe85aeef92053c013a9a61958c104a8e
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.560.2.18 2005/11/26 17:01:54 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_THREAD 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
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/install.sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install.sh -c"
1566     break
1567   elif test -f $ac_dir/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in auto yes no ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-multiple_precision
2430
2431 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2432 if test "${with_multiple_precision+set}" = set; then
2433   withval="$with_multiple_precision"
2434
2435         ol_arg=invalid
2436         for ol_val in auto bignum gmp yes no  ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2443 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_multiple_precision="$ol_arg"
2447
2448 else
2449         ol_with_multiple_precision="auto"
2450 fi; # end --with-multiple_precision
2451
2452
2453
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456   enableval="$enable_xxslapdoptions"
2457
2458 fi;
2459 # OpenLDAP --enable-slapd
2460
2461         # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463   enableval="$enable_slapd"
2464
2465         ol_arg=invalid
2466         for ol_val in auto yes no ; do
2467                 if test "$enableval" = "$ol_val" ; then
2468                         ol_arg="$ol_val"
2469                 fi
2470         done
2471         if test "$ol_arg" = "invalid" ; then
2472                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474    { (exit 1); exit 1; }; }
2475         fi
2476         ol_enable_slapd="$ol_arg"
2477
2478 else
2479         ol_enable_slapd=yes
2480 fi;
2481 # end --enable-slapd
2482 # OpenLDAP --enable-aci
2483
2484         # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486   enableval="$enable_aci"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_aci="$ol_arg"
2500
2501 else
2502         ol_enable_aci=no
2503 fi;
2504 # end --enable-aci
2505 # OpenLDAP --enable-cleartext
2506
2507         # Check whether --enable-cleartext or --disable-cleartext was given.
2508 if test "${enable_cleartext+set}" = set; then
2509   enableval="$enable_cleartext"
2510
2511         ol_arg=invalid
2512         for ol_val in auto yes no ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_cleartext="$ol_arg"
2523
2524 else
2525         ol_enable_cleartext=yes
2526 fi;
2527 # end --enable-cleartext
2528 # OpenLDAP --enable-crypt
2529
2530         # Check whether --enable-crypt or --disable-crypt was given.
2531 if test "${enable_crypt+set}" = set; then
2532   enableval="$enable_crypt"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_crypt="$ol_arg"
2546
2547 else
2548         ol_enable_crypt=no
2549 fi;
2550 # end --enable-crypt
2551 # OpenLDAP --enable-lmpasswd
2552
2553         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2554 if test "${enable_lmpasswd+set}" = set; then
2555   enableval="$enable_lmpasswd"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_lmpasswd="$ol_arg"
2569
2570 else
2571         ol_enable_lmpasswd=no
2572 fi;
2573 # end --enable-lmpasswd
2574 # OpenLDAP --enable-spasswd
2575
2576         # Check whether --enable-spasswd or --disable-spasswd was given.
2577 if test "${enable_spasswd+set}" = set; then
2578   enableval="$enable_spasswd"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_spasswd="$ol_arg"
2592
2593 else
2594         ol_enable_spasswd=no
2595 fi;
2596 # end --enable-spasswd
2597 # OpenLDAP --enable-modules
2598
2599         # Check whether --enable-modules or --disable-modules was given.
2600 if test "${enable_modules+set}" = set; then
2601   enableval="$enable_modules"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_modules="$ol_arg"
2615
2616 else
2617         ol_enable_modules=no
2618 fi;
2619 # end --enable-modules
2620 ol_enable_multimaster=${ol_enable_multimaster-no}
2621 # OpenLDAP --enable-rewrite
2622
2623         # Check whether --enable-rewrite or --disable-rewrite was given.
2624 if test "${enable_rewrite+set}" = set; then
2625   enableval="$enable_rewrite"
2626
2627         ol_arg=invalid
2628         for ol_val in auto yes no ; do
2629                 if test "$enableval" = "$ol_val" ; then
2630                         ol_arg="$ol_val"
2631                 fi
2632         done
2633         if test "$ol_arg" = "invalid" ; then
2634                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_rewrite="$ol_arg"
2639
2640 else
2641         ol_enable_rewrite=auto
2642 fi;
2643 # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2645
2646         # Check whether --enable-rlookups or --disable-rlookups was given.
2647 if test "${enable_rlookups+set}" = set; then
2648   enableval="$enable_rlookups"
2649
2650         ol_arg=invalid
2651         for ol_val in auto yes no ; do
2652                 if test "$enableval" = "$ol_val" ; then
2653                         ol_arg="$ol_val"
2654                 fi
2655         done
2656         if test "$ol_arg" = "invalid" ; then
2657                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2659    { (exit 1); exit 1; }; }
2660         fi
2661         ol_enable_rlookups="$ol_arg"
2662
2663 else
2664         ol_enable_rlookups=no
2665 fi;
2666 # end --enable-rlookups
2667 # OpenLDAP --enable-slapi
2668
2669         # Check whether --enable-slapi or --disable-slapi was given.
2670 if test "${enable_slapi+set}" = set; then
2671   enableval="$enable_slapi"
2672
2673         ol_arg=invalid
2674         for ol_val in auto yes no ; do
2675                 if test "$enableval" = "$ol_val" ; then
2676                         ol_arg="$ol_val"
2677                 fi
2678         done
2679         if test "$ol_arg" = "invalid" ; then
2680                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2682    { (exit 1); exit 1; }; }
2683         fi
2684         ol_enable_slapi="$ol_arg"
2685
2686 else
2687         ol_enable_slapi=no
2688 fi;
2689 # end --enable-slapi
2690 # OpenLDAP --enable-slp
2691
2692         # Check whether --enable-slp or --disable-slp was given.
2693 if test "${enable_slp+set}" = set; then
2694   enableval="$enable_slp"
2695
2696         ol_arg=invalid
2697         for ol_val in auto yes no ; do
2698                 if test "$enableval" = "$ol_val" ; then
2699                         ol_arg="$ol_val"
2700                 fi
2701         done
2702         if test "$ol_arg" = "invalid" ; then
2703                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2705    { (exit 1); exit 1; }; }
2706         fi
2707         ol_enable_slp="$ol_arg"
2708
2709 else
2710         ol_enable_slp=no
2711 fi;
2712 # end --enable-slp
2713 # OpenLDAP --enable-wrappers
2714
2715         # Check whether --enable-wrappers or --disable-wrappers was given.
2716 if test "${enable_wrappers+set}" = set; then
2717   enableval="$enable_wrappers"
2718
2719         ol_arg=invalid
2720         for ol_val in auto yes no ; do
2721                 if test "$enableval" = "$ol_val" ; then
2722                         ol_arg="$ol_val"
2723                 fi
2724         done
2725         if test "$ol_arg" = "invalid" ; then
2726                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2728    { (exit 1); exit 1; }; }
2729         fi
2730         ol_enable_wrappers="$ol_arg"
2731
2732 else
2733         ol_enable_wrappers=no
2734 fi;
2735 # end --enable-wrappers
2736
2737 Backends="bdb \
2738         dnssrv \
2739         hdb \
2740         ldap \
2741         ldbm \
2742         meta \
2743         monitor \
2744         null \
2745         passwd \
2746         perl \
2747         relay \
2748         shell \
2749         sql"
2750
2751 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2752 if test "${enable_xxslapbackends+set}" = set; then
2753   enableval="$enable_xxslapbackends"
2754
2755 fi;
2756
2757 # OpenLDAP --enable-backends
2758
2759         # Check whether --enable-backends or --disable-backends was given.
2760 if test "${enable_backends+set}" = set; then
2761   enableval="$enable_backends"
2762
2763         ol_arg=invalid
2764         for ol_val in no yes mod ; do
2765                 if test "$enableval" = "$ol_val" ; then
2766                         ol_arg="$ol_val"
2767                 fi
2768         done
2769         if test "$ol_arg" = "invalid" ; then
2770                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2772    { (exit 1); exit 1; }; }
2773         fi
2774         ol_enable_backends="$ol_arg"
2775
2776 fi;
2777 # end --enable-backends
2778 # OpenLDAP --enable-bdb
2779
2780         # Check whether --enable-bdb or --disable-bdb was given.
2781 if test "${enable_bdb+set}" = set; then
2782   enableval="$enable_bdb"
2783
2784         ol_arg=invalid
2785         for ol_val in no yes mod ; do
2786                 if test "$enableval" = "$ol_val" ; then
2787                         ol_arg="$ol_val"
2788                 fi
2789         done
2790         if test "$ol_arg" = "invalid" ; then
2791                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2793    { (exit 1); exit 1; }; }
2794         fi
2795         ol_enable_bdb="$ol_arg"
2796
2797 else
2798         ol_enable_bdb=${ol_enable_backends:-yes}
2799 fi;
2800 # end --enable-bdb
2801 # OpenLDAP --enable-dnssrv
2802
2803         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2804 if test "${enable_dnssrv+set}" = set; then
2805   enableval="$enable_dnssrv"
2806
2807         ol_arg=invalid
2808         for ol_val in no yes mod ; do
2809                 if test "$enableval" = "$ol_val" ; then
2810                         ol_arg="$ol_val"
2811                 fi
2812         done
2813         if test "$ol_arg" = "invalid" ; then
2814                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2815 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2816    { (exit 1); exit 1; }; }
2817         fi
2818         ol_enable_dnssrv="$ol_arg"
2819
2820 else
2821         ol_enable_dnssrv=${ol_enable_backends:-no}
2822 fi;
2823 # end --enable-dnssrv
2824 # OpenLDAP --enable-hdb
2825
2826         # Check whether --enable-hdb or --disable-hdb was given.
2827 if test "${enable_hdb+set}" = set; then
2828   enableval="$enable_hdb"
2829
2830         ol_arg=invalid
2831         for ol_val in no yes mod ; do
2832                 if test "$enableval" = "$ol_val" ; then
2833                         ol_arg="$ol_val"
2834                 fi
2835         done
2836         if test "$ol_arg" = "invalid" ; then
2837                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2839    { (exit 1); exit 1; }; }
2840         fi
2841         ol_enable_hdb="$ol_arg"
2842
2843 else
2844         ol_enable_hdb=${ol_enable_backends:-yes}
2845 fi;
2846 # end --enable-hdb
2847 # OpenLDAP --enable-ldap
2848
2849         # Check whether --enable-ldap or --disable-ldap was given.
2850 if test "${enable_ldap+set}" = set; then
2851   enableval="$enable_ldap"
2852
2853         ol_arg=invalid
2854         for ol_val in no yes mod ; do
2855                 if test "$enableval" = "$ol_val" ; then
2856                         ol_arg="$ol_val"
2857                 fi
2858         done
2859         if test "$ol_arg" = "invalid" ; then
2860                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2862    { (exit 1); exit 1; }; }
2863         fi
2864         ol_enable_ldap="$ol_arg"
2865
2866 else
2867         ol_enable_ldap=${ol_enable_backends:-no}
2868 fi;
2869 # end --enable-ldap
2870 # OpenLDAP --enable-ldbm
2871
2872         # Check whether --enable-ldbm or --disable-ldbm was given.
2873 if test "${enable_ldbm+set}" = set; then
2874   enableval="$enable_ldbm"
2875
2876         ol_arg=invalid
2877         for ol_val in no yes mod ; do
2878                 if test "$enableval" = "$ol_val" ; then
2879                         ol_arg="$ol_val"
2880                 fi
2881         done
2882         if test "$ol_arg" = "invalid" ; then
2883                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2885    { (exit 1); exit 1; }; }
2886         fi
2887         ol_enable_ldbm="$ol_arg"
2888
2889 else
2890         ol_enable_ldbm=${ol_enable_backends:-no}
2891 fi;
2892 # end --enable-ldbm
2893
2894 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2895 if test "${with_ldbm_api+set}" = set; then
2896   withval="$with_ldbm_api"
2897
2898         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2899 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2900         enable_ldbm_api="$with_ldbm_api"
2901 fi;
2902 # OpenLDAP --enable-ldbm_api
2903
2904         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2905 if test "${enable_ldbm_api+set}" = set; then
2906   enableval="$enable_ldbm_api"
2907
2908         ol_arg=invalid
2909         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2910                 if test "$enableval" = "$ol_val" ; then
2911                         ol_arg="$ol_val"
2912                 fi
2913         done
2914         if test "$ol_arg" = "invalid" ; then
2915                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2917    { (exit 1); exit 1; }; }
2918         fi
2919         ol_enable_ldbm_api="$ol_arg"
2920
2921 else
2922         ol_enable_ldbm_api=auto
2923 fi;
2924 # end --enable-ldbm_api
2925
2926
2927 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2928 if test "${with_ldbm_type+set}" = set; then
2929   withval="$with_ldbm_type"
2930
2931         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2932 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2933         enable_ldbm_type="$with_ldbm_type"
2934 fi;
2935 # OpenLDAP --enable-ldbm_type
2936
2937         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2938 if test "${enable_ldbm_type+set}" = set; then
2939   enableval="$enable_ldbm_type"
2940
2941         ol_arg=invalid
2942         for ol_val in auto btree hash ; do
2943                 if test "$enableval" = "$ol_val" ; then
2944                         ol_arg="$ol_val"
2945                 fi
2946         done
2947         if test "$ol_arg" = "invalid" ; then
2948                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2950    { (exit 1); exit 1; }; }
2951         fi
2952         ol_enable_ldbm_type="$ol_arg"
2953
2954 else
2955         ol_enable_ldbm_type=auto
2956 fi;
2957 # end --enable-ldbm_type
2958
2959 # OpenLDAP --enable-meta
2960
2961         # Check whether --enable-meta or --disable-meta was given.
2962 if test "${enable_meta+set}" = set; then
2963   enableval="$enable_meta"
2964
2965         ol_arg=invalid
2966         for ol_val in no yes mod ; do
2967                 if test "$enableval" = "$ol_val" ; then
2968                         ol_arg="$ol_val"
2969                 fi
2970         done
2971         if test "$ol_arg" = "invalid" ; then
2972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2974    { (exit 1); exit 1; }; }
2975         fi
2976         ol_enable_meta="$ol_arg"
2977
2978 else
2979         ol_enable_meta=${ol_enable_backends:-no}
2980 fi;
2981 # end --enable-meta
2982 # OpenLDAP --enable-monitor
2983
2984         # Check whether --enable-monitor or --disable-monitor was given.
2985 if test "${enable_monitor+set}" = set; then
2986   enableval="$enable_monitor"
2987
2988         ol_arg=invalid
2989         for ol_val in no yes mod ; do
2990                 if test "$enableval" = "$ol_val" ; then
2991                         ol_arg="$ol_val"
2992                 fi
2993         done
2994         if test "$ol_arg" = "invalid" ; then
2995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2997    { (exit 1); exit 1; }; }
2998         fi
2999         ol_enable_monitor="$ol_arg"
3000
3001 else
3002         ol_enable_monitor=${ol_enable_backends:-yes}
3003 fi;
3004 # end --enable-monitor
3005 # OpenLDAP --enable-null
3006
3007         # Check whether --enable-null or --disable-null was given.
3008 if test "${enable_null+set}" = set; then
3009   enableval="$enable_null"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_null="$ol_arg"
3023
3024 else
3025         ol_enable_null=${ol_enable_backends:-no}
3026 fi;
3027 # end --enable-null
3028 # OpenLDAP --enable-passwd
3029
3030         # Check whether --enable-passwd or --disable-passwd was given.
3031 if test "${enable_passwd+set}" = set; then
3032   enableval="$enable_passwd"
3033
3034         ol_arg=invalid
3035         for ol_val in no yes mod ; do
3036                 if test "$enableval" = "$ol_val" ; then
3037                         ol_arg="$ol_val"
3038                 fi
3039         done
3040         if test "$ol_arg" = "invalid" ; then
3041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3043    { (exit 1); exit 1; }; }
3044         fi
3045         ol_enable_passwd="$ol_arg"
3046
3047 else
3048         ol_enable_passwd=${ol_enable_backends:-no}
3049 fi;
3050 # end --enable-passwd
3051 # OpenLDAP --enable-perl
3052
3053         # Check whether --enable-perl or --disable-perl was given.
3054 if test "${enable_perl+set}" = set; then
3055   enableval="$enable_perl"
3056
3057         ol_arg=invalid
3058         for ol_val in no yes mod ; do
3059                 if test "$enableval" = "$ol_val" ; then
3060                         ol_arg="$ol_val"
3061                 fi
3062         done
3063         if test "$ol_arg" = "invalid" ; then
3064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3066    { (exit 1); exit 1; }; }
3067         fi
3068         ol_enable_perl="$ol_arg"
3069
3070 else
3071         ol_enable_perl=${ol_enable_backends:-no}
3072 fi;
3073 # end --enable-perl
3074 # OpenLDAP --enable-relay
3075
3076         # Check whether --enable-relay or --disable-relay was given.
3077 if test "${enable_relay+set}" = set; then
3078   enableval="$enable_relay"
3079
3080         ol_arg=invalid
3081         for ol_val in no yes mod ; do
3082                 if test "$enableval" = "$ol_val" ; then
3083                         ol_arg="$ol_val"
3084                 fi
3085         done
3086         if test "$ol_arg" = "invalid" ; then
3087                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3089    { (exit 1); exit 1; }; }
3090         fi
3091         ol_enable_relay="$ol_arg"
3092
3093 else
3094         ol_enable_relay=${ol_enable_backends:-yes}
3095 fi;
3096 # end --enable-relay
3097 # OpenLDAP --enable-shell
3098
3099         # Check whether --enable-shell or --disable-shell was given.
3100 if test "${enable_shell+set}" = set; then
3101   enableval="$enable_shell"
3102
3103         ol_arg=invalid
3104         for ol_val in no yes mod ; do
3105                 if test "$enableval" = "$ol_val" ; then
3106                         ol_arg="$ol_val"
3107                 fi
3108         done
3109         if test "$ol_arg" = "invalid" ; then
3110                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3112    { (exit 1); exit 1; }; }
3113         fi
3114         ol_enable_shell="$ol_arg"
3115
3116 else
3117         ol_enable_shell=${ol_enable_backends:-no}
3118 fi;
3119 # end --enable-shell
3120 # OpenLDAP --enable-sql
3121
3122         # Check whether --enable-sql or --disable-sql was given.
3123 if test "${enable_sql+set}" = set; then
3124   enableval="$enable_sql"
3125
3126         ol_arg=invalid
3127         for ol_val in no yes mod ; do
3128                 if test "$enableval" = "$ol_val" ; then
3129                         ol_arg="$ol_val"
3130                 fi
3131         done
3132         if test "$ol_arg" = "invalid" ; then
3133                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3135    { (exit 1); exit 1; }; }
3136         fi
3137         ol_enable_sql="$ol_arg"
3138
3139 else
3140         ol_enable_sql=${ol_enable_backends:-no}
3141 fi;
3142 # end --enable-sql
3143
3144 Overlays="accesslog \
3145         denyop \
3146         dyngroup \
3147         dynlist \
3148         lastmod \
3149         ppolicy \
3150         proxycache \
3151         refint \
3152         retcode \
3153         rwm \
3154         syncprov \
3155         translucent \
3156         unique \
3157         valsort"
3158
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161   enableval="$enable_xxslapoverlays"
3162
3163 fi;
3164
3165 # OpenLDAP --enable-overlays
3166
3167         # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169   enableval="$enable_overlays"
3170
3171         ol_arg=invalid
3172         for ol_val in no yes mod ; do
3173                 if test "$enableval" = "$ol_val" ; then
3174                         ol_arg="$ol_val"
3175                 fi
3176         done
3177         if test "$ol_arg" = "invalid" ; then
3178                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180    { (exit 1); exit 1; }; }
3181         fi
3182         ol_enable_overlays="$ol_arg"
3183
3184 fi;
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3187
3188         # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190   enableval="$enable_accesslog"
3191
3192         ol_arg=invalid
3193         for ol_val in no yes mod ; do
3194                 if test "$enableval" = "$ol_val" ; then
3195                         ol_arg="$ol_val"
3196                 fi
3197         done
3198         if test "$ol_arg" = "invalid" ; then
3199                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201    { (exit 1); exit 1; }; }
3202         fi
3203         ol_enable_accesslog="$ol_arg"
3204
3205 else
3206         ol_enable_accesslog=${ol_enable_overlays:-no}
3207 fi;
3208 # end --enable-accesslog
3209
3210 # OpenLDAP --enable-denyop
3211
3212         # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214   enableval="$enable_denyop"
3215
3216         ol_arg=invalid
3217         for ol_val in no yes mod ; do
3218                 if test "$enableval" = "$ol_val" ; then
3219                         ol_arg="$ol_val"
3220                 fi
3221         done
3222         if test "$ol_arg" = "invalid" ; then
3223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_denyop="$ol_arg"
3228
3229 else
3230         ol_enable_denyop=${ol_enable_overlays:-no}
3231 fi;
3232 # end --enable-denyop
3233
3234 # OpenLDAP --enable-dyngroup
3235
3236         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238   enableval="$enable_dyngroup"
3239
3240         ol_arg=invalid
3241         for ol_val in no yes mod ; do
3242                 if test "$enableval" = "$ol_val" ; then
3243                         ol_arg="$ol_val"
3244                 fi
3245         done
3246         if test "$ol_arg" = "invalid" ; then
3247                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249    { (exit 1); exit 1; }; }
3250         fi
3251         ol_enable_dyngroup="$ol_arg"
3252
3253 else
3254         ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 fi;
3256 # end --enable-dyngroup
3257
3258 # OpenLDAP --enable-dynlist
3259
3260         # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262   enableval="$enable_dynlist"
3263
3264         ol_arg=invalid
3265         for ol_val in no yes mod ; do
3266                 if test "$enableval" = "$ol_val" ; then
3267                         ol_arg="$ol_val"
3268                 fi
3269         done
3270         if test "$ol_arg" = "invalid" ; then
3271                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273    { (exit 1); exit 1; }; }
3274         fi
3275         ol_enable_dynlist="$ol_arg"
3276
3277 else
3278         ol_enable_dynlist=${ol_enable_overlays:-no}
3279 fi;
3280 # end --enable-dynlist
3281
3282 # OpenLDAP --enable-lastmod
3283
3284         # Check whether --enable-lastmod or --disable-lastmod was given.
3285 if test "${enable_lastmod+set}" = set; then
3286   enableval="$enable_lastmod"
3287
3288         ol_arg=invalid
3289         for ol_val in no yes mod ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_lastmod="$ol_arg"
3300
3301 else
3302         ol_enable_lastmod=${ol_enable_overlays:-no}
3303 fi;
3304 # end --enable-lastmod
3305
3306 # OpenLDAP --enable-ppolicy
3307
3308         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3309 if test "${enable_ppolicy+set}" = set; then
3310   enableval="$enable_ppolicy"
3311
3312         ol_arg=invalid
3313         for ol_val in no yes mod ; do
3314                 if test "$enableval" = "$ol_val" ; then
3315                         ol_arg="$ol_val"
3316                 fi
3317         done
3318         if test "$ol_arg" = "invalid" ; then
3319                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_ppolicy="$ol_arg"
3324
3325 else
3326         ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 fi;
3328 # end --enable-ppolicy
3329
3330 # OpenLDAP --enable-proxycache
3331
3332         # Check whether --enable-proxycache or --disable-proxycache was given.
3333 if test "${enable_proxycache+set}" = set; then
3334   enableval="$enable_proxycache"
3335
3336         ol_arg=invalid
3337         for ol_val in no yes mod ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_proxycache="$ol_arg"
3348
3349 else
3350         ol_enable_proxycache=${ol_enable_overlays:-no}
3351 fi;
3352 # end --enable-proxycache
3353
3354 # OpenLDAP --enable-refint
3355
3356         # Check whether --enable-refint or --disable-refint was given.
3357 if test "${enable_refint+set}" = set; then
3358   enableval="$enable_refint"
3359
3360         ol_arg=invalid
3361         for ol_val in no yes mod ; do
3362                 if test "$enableval" = "$ol_val" ; then
3363                         ol_arg="$ol_val"
3364                 fi
3365         done
3366         if test "$ol_arg" = "invalid" ; then
3367                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_refint="$ol_arg"
3372
3373 else
3374         ol_enable_refint=${ol_enable_overlays:-no}
3375 fi;
3376 # end --enable-refint
3377
3378 # OpenLDAP --enable-retcode
3379
3380         # Check whether --enable-retcode or --disable-retcode was given.
3381 if test "${enable_retcode+set}" = set; then
3382   enableval="$enable_retcode"
3383
3384         ol_arg=invalid
3385         for ol_val in no yes mod ; do
3386                 if test "$enableval" = "$ol_val" ; then
3387                         ol_arg="$ol_val"
3388                 fi
3389         done
3390         if test "$ol_arg" = "invalid" ; then
3391                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3393    { (exit 1); exit 1; }; }
3394         fi
3395         ol_enable_retcode="$ol_arg"
3396
3397 else
3398         ol_enable_retcode=${ol_enable_overlays:-no}
3399 fi;
3400 # end --enable-retcode
3401
3402 # OpenLDAP --enable-rwm
3403
3404         # Check whether --enable-rwm or --disable-rwm was given.
3405 if test "${enable_rwm+set}" = set; then
3406   enableval="$enable_rwm"
3407
3408         ol_arg=invalid
3409         for ol_val in no yes mod ; do
3410                 if test "$enableval" = "$ol_val" ; then
3411                         ol_arg="$ol_val"
3412                 fi
3413         done
3414         if test "$ol_arg" = "invalid" ; then
3415                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3417    { (exit 1); exit 1; }; }
3418         fi
3419         ol_enable_rwm="$ol_arg"
3420
3421 else
3422         ol_enable_rwm=${ol_enable_overlays:-no}
3423 fi;
3424 # end --enable-rwm
3425
3426 # OpenLDAP --enable-syncprov
3427
3428         # Check whether --enable-syncprov or --disable-syncprov was given.
3429 if test "${enable_syncprov+set}" = set; then
3430   enableval="$enable_syncprov"
3431
3432         ol_arg=invalid
3433         for ol_val in no yes mod ; do
3434                 if test "$enableval" = "$ol_val" ; then
3435                         ol_arg="$ol_val"
3436                 fi
3437         done
3438         if test "$ol_arg" = "invalid" ; then
3439                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3441    { (exit 1); exit 1; }; }
3442         fi
3443         ol_enable_syncprov="$ol_arg"
3444
3445 else
3446         ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 fi;
3448 # end --enable-syncprov
3449
3450 # OpenLDAP --enable-translucent
3451
3452         # Check whether --enable-translucent or --disable-translucent was given.
3453 if test "${enable_translucent+set}" = set; then
3454   enableval="$enable_translucent"
3455
3456         ol_arg=invalid
3457         for ol_val in no yes mod ; do
3458                 if test "$enableval" = "$ol_val" ; then
3459                         ol_arg="$ol_val"
3460                 fi
3461         done
3462         if test "$ol_arg" = "invalid" ; then
3463                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3465    { (exit 1); exit 1; }; }
3466         fi
3467         ol_enable_translucent="$ol_arg"
3468
3469 else
3470         ol_enable_translucent=${ol_enable_overlays:-no}
3471 fi;
3472 # end --enable-translucent
3473
3474 # OpenLDAP --enable-unique
3475
3476         # Check whether --enable-unique or --disable-unique was given.
3477 if test "${enable_unique+set}" = set; then
3478   enableval="$enable_unique"
3479
3480         ol_arg=invalid
3481         for ol_val in no yes mod ; do
3482                 if test "$enableval" = "$ol_val" ; then
3483                         ol_arg="$ol_val"
3484                 fi
3485         done
3486         if test "$ol_arg" = "invalid" ; then
3487                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3489    { (exit 1); exit 1; }; }
3490         fi
3491         ol_enable_unique="$ol_arg"
3492
3493 else
3494         ol_enable_unique=${ol_enable_overlays:-no}
3495 fi;
3496 # end --enable-unique
3497
3498 # OpenLDAP --enable-valsort
3499
3500         # Check whether --enable-valsort or --disable-valsort was given.
3501 if test "${enable_valsort+set}" = set; then
3502   enableval="$enable_valsort"
3503
3504         ol_arg=invalid
3505         for ol_val in no yes mod ; do
3506                 if test "$enableval" = "$ol_val" ; then
3507                         ol_arg="$ol_val"
3508                 fi
3509         done
3510         if test "$ol_arg" = "invalid" ; then
3511                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3513    { (exit 1); exit 1; }; }
3514         fi
3515         ol_enable_valsort="$ol_arg"
3516
3517 else
3518         ol_enable_valsort=${ol_enable_overlays:-no}
3519 fi;
3520 # end --enable-valsort
3521
3522
3523 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3524 if test "${enable_xxslurpdoptions+set}" = set; then
3525   enableval="$enable_xxslurpdoptions"
3526
3527 fi;
3528 # OpenLDAP --enable-slurpd
3529
3530         # Check whether --enable-slurpd or --disable-slurpd was given.
3531 if test "${enable_slurpd+set}" = set; then
3532   enableval="$enable_slurpd"
3533
3534         ol_arg=invalid
3535         for ol_val in auto yes no ; do
3536                 if test "$enableval" = "$ol_val" ; then
3537                         ol_arg="$ol_val"
3538                 fi
3539         done
3540         if test "$ol_arg" = "invalid" ; then
3541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3543    { (exit 1); exit 1; }; }
3544         fi
3545         ol_enable_slurpd="$ol_arg"
3546
3547 else
3548         ol_enable_slurpd=auto
3549 fi;
3550 # end --enable-slurpd
3551
3552 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3553 if test "${enable_xxliboptions+set}" = set; then
3554   enableval="$enable_xxliboptions"
3555
3556 fi;
3557 # Check whether --enable-static or --disable-static was given.
3558 if test "${enable_static+set}" = set; then
3559   enableval="$enable_static"
3560   p=${PACKAGE-default}
3561     case $enableval in
3562     yes) enable_static=yes ;;
3563     no) enable_static=no ;;
3564     *)
3565      enable_static=no
3566       # Look at the argument we got.  We use all the common list separators.
3567       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3568       for pkg in $enableval; do
3569         IFS="$lt_save_ifs"
3570         if test "X$pkg" = "X$p"; then
3571           enable_static=yes
3572         fi
3573       done
3574       IFS="$lt_save_ifs"
3575       ;;
3576     esac
3577 else
3578   enable_static=yes
3579 fi;
3580
3581 # Check whether --enable-shared or --disable-shared was given.
3582 if test "${enable_shared+set}" = set; then
3583   enableval="$enable_shared"
3584   p=${PACKAGE-default}
3585     case $enableval in
3586     yes) enable_shared=yes ;;
3587     no) enable_shared=no ;;
3588     *)
3589       enable_shared=no
3590       # Look at the argument we got.  We use all the common list separators.
3591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592       for pkg in $enableval; do
3593         IFS="$lt_save_ifs"
3594         if test "X$pkg" = "X$p"; then
3595           enable_shared=yes
3596         fi
3597       done
3598       IFS="$lt_save_ifs"
3599       ;;
3600     esac
3601 else
3602   enable_shared=yes
3603 fi;
3604
3605
3606
3607 # validate options
3608 if test $ol_enable_slapd = no ; then
3609                 if test $ol_enable_slapi = yes ; then
3610                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3611 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612         fi
3613         case "$ol_enable_backends" in yes | mod)
3614                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616         esac
3617         for i in $Backends; do
3618                 eval "ol_tmp=\$ol_enable_$i"
3619                 if test $ol_tmp != no ; then
3620                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3622                         eval "ol_enable_$i=no"
3623                 fi
3624         done
3625         if test $ol_enable_modules = yes ; then
3626                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628         fi
3629         if test $ol_enable_multimaster = yes ; then
3630                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632         fi
3633         if test $ol_enable_wrappers = yes ; then
3634                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636         fi
3637         if test $ol_enable_rlookups = yes ; then
3638                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640         fi
3641         if test $ol_enable_aci = yes ; then
3642                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644         fi
3645         if test $ol_enable_ldbm_api != auto ; then
3646                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648         fi
3649         if test $ol_enable_ldbm_type != auto ; then
3650                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652         fi
3653         if test $ol_enable_slurpd = yes ; then
3654                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3655 echo "$as_me: error: slurpd requires slapd" >&2;}
3656    { (exit 1); exit 1; }; }
3657         fi
3658         if test $ol_enable_rewrite = yes ; then
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661         fi
3662                 case "$ol_enable_overlays" in yes | mod)
3663                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665         esac
3666         for i in $Overlays; do
3667                 eval "ol_tmp=\$ol_enable_$i"
3668                 if test $ol_tmp != no ; then
3669                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671                         eval "ol_enable_$i=no"
3672                 fi
3673         done
3674
3675         # force settings to no
3676         ol_enable_slapi=no
3677
3678         ol_enable_backends=
3679         ol_enable_overlays=
3680         ol_enable_modules=no
3681         ol_enable_multimaster=no
3682         ol_enable_rlookups=no
3683         ol_enable_aci=no
3684         ol_enable_wrappers=no
3685
3686         ol_enable_ldbm_api=no
3687         ol_enable_ldbm_type=no
3688
3689         ol_enable_slurpd=no
3690
3691         ol_enable_rewrite=no
3692
3693 elif test $ol_enable_ldbm = no ; then
3694
3695         if test $ol_enable_ldbm_api != auto ; then
3696                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3698         fi
3699
3700         if test $ol_enable_ldbm_type != auto ; then
3701                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3702 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3703         fi
3704
3705         if test $ol_enable_modules != yes &&
3706            test $ol_enable_bdb = no &&
3707            test $ol_enable_dnssrv = no &&
3708            test $ol_enable_hdb = no &&
3709            test $ol_enable_ldap = no &&
3710            test $ol_enable_meta = no &&
3711            test $ol_enable_monitor = no &&
3712            test $ol_enable_null = no &&
3713            test $ol_enable_passwd = no &&
3714            test $ol_enable_perl = no &&
3715            test $ol_enable_relay = no &&
3716            test $ol_enable_shell = no &&
3717            test $ol_enable_sql = no ; then
3718
3719                 if test $ol_enable_slapd = yes ; then
3720                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3721 echo "$as_me: error: slapd requires a backend" >&2;}
3722    { (exit 1); exit 1; }; }
3723                 else
3724                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3725 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3726                         ol_enable_slapd=no
3727                 fi
3728         fi
3729
3730         ol_enable_ldbm_api=no
3731         ol_enable_ldbm_type=no
3732
3733         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3734                 ol_enable_ldbm_api=berkeley
3735         fi
3736
3737 else
3738                 if test $ol_enable_ldbm_api = gdbm &&
3739            test $ol_enable_ldbm_type = btree ; then
3740                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3741 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3742    { (exit 1); exit 1; }; }
3743         fi
3744         if test $ol_enable_ldbm_api = mdbm &&
3745            test $ol_enable_ldbm_type = btree ; then
3746                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3747 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3748    { (exit 1); exit 1; }; }
3749         fi
3750         if test $ol_enable_ldbm_api = ndbm &&
3751            test $ol_enable_ldbm_type = btree ; then
3752                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3753 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3754    { (exit 1); exit 1; }; }
3755         fi
3756
3757         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3758                 if test $ol_enable_ldbm_api = auto ; then
3759                         ol_enable_ldbm_api=berkeley
3760                 elif test $ol_enable_ldbm_api != berkeley ; then
3761                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3762 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3763    { (exit 1); exit 1; }; }
3764                 fi
3765         fi
3766 fi
3767
3768 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3769         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3770 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3771    { (exit 1); exit 1; }; }
3772 fi
3773
3774 if test $ol_enable_slurpd = yes ; then
3775                 if test $ol_with_threads = no ; then
3776                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3777 echo "$as_me: error: slurpd requires threads" >&2;}
3778    { (exit 1); exit 1; }; }
3779         fi
3780 fi
3781
3782 if test $ol_enable_lmpasswd = yes ; then
3783         if test $ol_with_tls = no ; then
3784                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3785 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3786    { (exit 1); exit 1; }; }
3787         fi
3788 fi
3789
3790 if test $ol_enable_kbind = yes ; then
3791         if test $ol_with_kerberos = no ; then
3792                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3793 echo "$as_me: error: options require --with-kerberos" >&2;}
3794    { (exit 1); exit 1; }; }
3795         elif test $ol_with_kerberos = auto ; then
3796                 ol_with_kerberos=yes
3797         fi
3798
3799 elif test $ol_enable_kbind = no ; then
3800         if test $ol_with_kerberos = auto ; then
3801                 ol_with_kerberos=no
3802         elif test $ol_with_kerberos != no ; then
3803                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3804 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3805                 ol_with_kerberos=no
3806         fi
3807 fi
3808
3809 if test $ol_enable_spasswd = yes ; then
3810         if test $ol_with_cyrus_sasl = no ; then
3811                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3812 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3813    { (exit 1); exit 1; }; }
3814         fi
3815         ol_with_cyrus_sasl=yes
3816 fi
3817
3818 echo "$as_me:$LINENO: result: done" >&5
3819 echo "${ECHO_T}done" >&6
3820
3821 LDAP_LIBS=
3822 LDBM_LIBS=
3823 LTHREAD_LIBS=
3824 LUTIL_LIBS=
3825
3826 SLAPD_LIBS=
3827 SLURPD_LIBS=
3828
3829 BUILD_SLAPD=no
3830 BUILD_SLURPD=no
3831
3832 BUILD_THREAD=no
3833
3834 BUILD_SLAPI=no
3835 SLAPD_SLAPI_DEPEND=
3836
3837 BUILD_BDB=no
3838 BUILD_DNSSRV=no
3839 BUILD_HDB=no
3840 BUILD_LDAP=no
3841 BUILD_LDBM=no
3842 BUILD_META=no
3843 BUILD_MONITOR=no
3844 BUILD_NULL=no
3845 BUILD_PASSWD=no
3846 BUILD_PERL=no
3847 BUILD_RELAY=no
3848 BUILD_SHELL=no
3849 BUILD_SQL=no
3850
3851 BUILD_ACCESSLOG=no
3852 BUILD_DENYOP=no
3853 BUILD_DYNGROUP=no
3854 BUILD_DYNLIST=no
3855 BUILD_LASTMOD=no
3856 BUILD_PPOLICY=no
3857 BUILD_PROXYCACHE=no
3858 BUILD_REFINT=no
3859 BUILD_RETCODE=no
3860 BUILD_RWM=no
3861 BUILD_SYNCPROV=no
3862 BUILD_TRANSLUCENT=no
3863 BUILD_UNIQUE=no
3864 BUILD_VALSORT=no
3865
3866 SLAPD_STATIC_OVERLAYS=
3867 SLAPD_DYNAMIC_OVERLAYS=
3868
3869 SLAPD_MODULES_LDFLAGS=
3870 SLAPD_MODULES_CPPFLAGS=
3871
3872 SLAPD_STATIC_BACKENDS=back-ldif
3873 SLAPD_DYNAMIC_BACKENDS=
3874
3875 SLAPD_PERL_LDFLAGS=
3876 MOD_PERL_LDFLAGS=
3877 PERL_CPPFLAGS=
3878
3879 SLAPD_SQL_LDFLAGS=
3880 SLAPD_SQL_LIBS=
3881 SLAPD_SQL_INCLUDES=
3882
3883 KRB4_LIBS=
3884 KRB5_LIBS=
3885 SASL_LIBS=
3886 TLS_LIBS=
3887 MODULES_LIBS=
3888 SLAPI_LIBS=
3889 LIBSLAPI=
3890 LIBSLAPITOOLS=
3891 AUTH_LIBS=
3892
3893 SLAPD_SLP_LIBS=
3894 SLAPD_GMP_LIBS=
3895
3896
3897
3898 cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_MKVERSION 1
3900 _ACEOF
3901
3902
3903
3904
3905 ol_aix_threads=no
3906 case "$target" in
3907 *-*-aix*)       if test -z "$CC" ; then
3908                 case "$ol_with_threads" in
3909                 auto | yes |  posix) ol_aix_threads=yes ;;
3910                 esac
3911         fi
3912 ;;
3913 esac
3914
3915 if test $ol_aix_threads = yes ; then
3916         if test -z "${CC}" ; then
3917                 for ac_prog in cc_r xlc_r cc
3918 do
3919   # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923 if test "${ac_cv_prog_CC+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   if test -n "$CC"; then
3927   ac_cv_prog_CC="$CC" # Let the user override the test.
3928 else
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930 for as_dir in $PATH
3931 do
3932   IFS=$as_save_IFS
3933   test -z "$as_dir" && as_dir=.
3934   for ac_exec_ext in '' $ac_executable_extensions; do
3935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936     ac_cv_prog_CC="$ac_prog"
3937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938     break 2
3939   fi
3940 done
3941 done
3942
3943 fi
3944 fi
3945 CC=$ac_cv_prog_CC
3946 if test -n "$CC"; then
3947   echo "$as_me:$LINENO: result: $CC" >&5
3948 echo "${ECHO_T}$CC" >&6
3949 else
3950   echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6
3952 fi
3953
3954   test -n "$CC" && break
3955 done
3956
3957
3958                 if test "$CC" = cc ; then
3959                                                 if test $ol_with_threads != auto ; then
3960                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3961 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3962    { (exit 1); exit 1; }; }
3963                         else
3964                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3965 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3966                         fi
3967                         ol_with_threads=no
3968                 fi
3969         fi
3970
3971         case ${CC} in cc_r | xlc_r)
3972                 ol_with_threads=posix
3973                 ol_cv_pthread_create=yes
3974                 ;;
3975         esac
3976 fi
3977
3978 if test -z "${CC}"; then
3979         for ac_prog in cc gcc
3980 do
3981   # Extract the first word of "$ac_prog", so it can be a program name with args.
3982 set dummy $ac_prog; ac_word=$2
3983 echo "$as_me:$LINENO: checking for $ac_word" >&5
3984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3985 if test "${ac_cv_prog_CC+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   if test -n "$CC"; then
3989   ac_cv_prog_CC="$CC" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996   for ac_exec_ext in '' $ac_executable_extensions; do
3997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_CC="$ac_prog"
3999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003 done
4004
4005 fi
4006 fi
4007 CC=$ac_cv_prog_CC
4008 if test -n "$CC"; then
4009   echo "$as_me:$LINENO: result: $CC" >&5
4010 echo "${ECHO_T}$CC" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016   test -n "$CC" && break
4017 done
4018 test -n "$CC" || CC="missing"
4019
4020
4021         if test "${CC}" = "missing" ; then
4022                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4023 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4024    { (exit 1); exit 1; }; }
4025         fi
4026 fi
4027
4028 if test -z "${AR}"; then
4029         for ac_prog in ar gar
4030 do
4031   # Extract the first word of "$ac_prog", so it can be a program name with args.
4032 set dummy $ac_prog; ac_word=$2
4033 echo "$as_me:$LINENO: checking for $ac_word" >&5
4034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4035 if test "${ac_cv_prog_AR+set}" = set; then
4036   echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038   if test -n "$AR"; then
4039   ac_cv_prog_AR="$AR" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_prog_AR="$ac_prog"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054
4055 fi
4056 fi
4057 AR=$ac_cv_prog_AR
4058 if test -n "$AR"; then
4059   echo "$as_me:$LINENO: result: $AR" >&5
4060 echo "${ECHO_T}$AR" >&6
4061 else
4062   echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6
4064 fi
4065
4066   test -n "$AR" && break
4067 done
4068 test -n "$AR" || AR="missing"
4069
4070
4071         if test "${AR}" = "missing" ; then
4072                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4073 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4074    { (exit 1); exit 1; }; }
4075         fi
4076 fi
4077
4078
4079
4080
4081
4082 # Check whether --enable-fast-install or --disable-fast-install was given.
4083 if test "${enable_fast_install+set}" = set; then
4084   enableval="$enable_fast_install"
4085   p=${PACKAGE-default}
4086     case $enableval in
4087     yes) enable_fast_install=yes ;;
4088     no) enable_fast_install=no ;;
4089     *)
4090       enable_fast_install=no
4091       # Look at the argument we got.  We use all the common list separators.
4092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4093       for pkg in $enableval; do
4094         IFS="$lt_save_ifs"
4095         if test "X$pkg" = "X$p"; then
4096           enable_fast_install=yes
4097         fi
4098       done
4099       IFS="$lt_save_ifs"
4100       ;;
4101     esac
4102 else
4103   enable_fast_install=yes
4104 fi;
4105
4106 DEPDIR="${am__leading_dot}deps"
4107
4108           ac_config_commands="$ac_config_commands depfiles"
4109
4110
4111 am_make=${MAKE-make}
4112 cat > confinc << 'END'
4113 am__doit:
4114         @echo done
4115 .PHONY: am__doit
4116 END
4117 # If we don't find an include directive, just comment out the code.
4118 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4119 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4120 am__include="#"
4121 am__quote=
4122 _am_result=none
4123 # First try GNU make style include.
4124 echo "include confinc" > confmf
4125 # We grep out `Entering directory' and `Leaving directory'
4126 # messages which can occur if `w' ends up in MAKEFLAGS.
4127 # In particular we don't look at `^make:' because GNU make might
4128 # be invoked under some other name (usually "gmake"), in which
4129 # case it prints its new name instead of `make'.
4130 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4131    am__include=include
4132    am__quote=
4133    _am_result=GNU
4134 fi
4135 # Now try BSD make style include.
4136 if test "$am__include" = "#"; then
4137    echo '.include "confinc"' > confmf
4138    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4139       am__include=.include
4140       am__quote="\""
4141       _am_result=BSD
4142    fi
4143 fi
4144
4145
4146 echo "$as_me:$LINENO: result: $_am_result" >&5
4147 echo "${ECHO_T}$_am_result" >&6
4148 rm -f confinc confmf
4149
4150 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4151 if test "${enable_dependency_tracking+set}" = set; then
4152   enableval="$enable_dependency_tracking"
4153
4154 fi;
4155 if test "x$enable_dependency_tracking" != xno; then
4156   am_depcomp="$ac_aux_dir/depcomp"
4157   AMDEPBACKSLASH='\'
4158 fi
4159
4160
4161 if test "x$enable_dependency_tracking" != xno; then
4162   AMDEP_TRUE=
4163   AMDEP_FALSE='#'
4164 else
4165   AMDEP_TRUE='#'
4166   AMDEP_FALSE=
4167 fi
4168
4169
4170
4171 ac_ext=c
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176 if test -n "$ac_tool_prefix"; then
4177   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4179 echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4181 if test "${ac_cv_prog_CC+set}" = set; then
4182   echo $ECHO_N "(cached) $ECHO_C" >&6
4183 else
4184   if test -n "$CC"; then
4185   ac_cv_prog_CC="$CC" # Let the user override the test.
4186 else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH
4189 do
4190   IFS=$as_save_IFS
4191   test -z "$as_dir" && as_dir=.
4192   for ac_exec_ext in '' $ac_executable_extensions; do
4193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4194     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196     break 2
4197   fi
4198 done
4199 done
4200
4201 fi
4202 fi
4203 CC=$ac_cv_prog_CC
4204 if test -n "$CC"; then
4205   echo "$as_me:$LINENO: result: $CC" >&5
4206 echo "${ECHO_T}$CC" >&6
4207 else
4208   echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6
4210 fi
4211
4212 fi
4213 if test -z "$ac_cv_prog_CC"; then
4214   ac_ct_CC=$CC
4215   # Extract the first word of "gcc", so it can be a program name with args.
4216 set dummy gcc; ac_word=$2
4217 echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   if test -n "$ac_ct_CC"; then
4223   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230   for ac_exec_ext in '' $ac_executable_extensions; do
4231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232     ac_cv_prog_ac_ct_CC="gcc"
4233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237 done
4238
4239 fi
4240 fi
4241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4242 if test -n "$ac_ct_CC"; then
4243   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4244 echo "${ECHO_T}$ac_ct_CC" >&6
4245 else
4246   echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6
4248 fi
4249
4250   CC=$ac_ct_CC
4251 else
4252   CC="$ac_cv_prog_CC"
4253 fi
4254
4255 if test -z "$CC"; then
4256   if test -n "$ac_tool_prefix"; then
4257   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4258 set dummy ${ac_tool_prefix}cc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_CC+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test -n "$CC"; then
4265   ac_cv_prog_CC="$CC" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for ac_exec_ext in '' $ac_executable_extensions; do
4273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274     ac_cv_prog_CC="${ac_tool_prefix}cc"
4275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276     break 2
4277   fi
4278 done
4279 done
4280
4281 fi
4282 fi
4283 CC=$ac_cv_prog_CC
4284 if test -n "$CC"; then
4285   echo "$as_me:$LINENO: result: $CC" >&5
4286 echo "${ECHO_T}$CC" >&6
4287 else
4288   echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4290 fi
4291
4292 fi
4293 if test -z "$ac_cv_prog_CC"; then
4294   ac_ct_CC=$CC
4295   # Extract the first word of "cc", so it can be a program name with args.
4296 set dummy cc; ac_word=$2
4297 echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   if test -n "$ac_ct_CC"; then
4303   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310   for ac_exec_ext in '' $ac_executable_extensions; do
4311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312     ac_cv_prog_ac_ct_CC="cc"
4313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317 done
4318
4319 fi
4320 fi
4321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4322 if test -n "$ac_ct_CC"; then
4323   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4324 echo "${ECHO_T}$ac_ct_CC" >&6
4325 else
4326   echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328 fi
4329
4330   CC=$ac_ct_CC
4331 else
4332   CC="$ac_cv_prog_CC"
4333 fi
4334
4335 fi
4336 if test -z "$CC"; then
4337   # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_CC+set}" = set; then
4342   echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344   if test -n "$CC"; then
4345   ac_cv_prog_CC="$CC" # Let the user override the test.
4346 else
4347   ac_prog_rejected=no
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353   for ac_exec_ext in '' $ac_executable_extensions; do
4354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4355     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4356        ac_prog_rejected=yes
4357        continue
4358      fi
4359     ac_cv_prog_CC="cc"
4360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364 done
4365
4366 if test $ac_prog_rejected = yes; then
4367   # We found a bogon in the path, so make sure we never use it.
4368   set dummy $ac_cv_prog_CC
4369   shift
4370   if test $# != 0; then
4371     # We chose a different compiler from the bogus one.
4372     # However, it has the same basename, so the bogon will be chosen
4373     # first if we set CC to just the basename; use the full file name.
4374     shift
4375     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4376   fi
4377 fi
4378 fi
4379 fi
4380 CC=$ac_cv_prog_CC
4381 if test -n "$CC"; then
4382   echo "$as_me:$LINENO: result: $CC" >&5
4383 echo "${ECHO_T}$CC" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389 fi
4390 if test -z "$CC"; then
4391   if test -n "$ac_tool_prefix"; then
4392   for ac_prog in cl
4393   do
4394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_CC+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if test -n "$CC"; then
4402   ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409   for ac_exec_ext in '' $ac_executable_extensions; do
4410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416 done
4417
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422   echo "$as_me:$LINENO: result: $CC" >&5
4423 echo "${ECHO_T}$CC" >&6
4424 else
4425   echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 fi
4428
4429     test -n "$CC" && break
4430   done
4431 fi
4432 if test -z "$CC"; then
4433   ac_ct_CC=$CC
4434   for ac_prog in cl
4435 do
4436   # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$ac_ct_CC"; then
4444   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_prog_ac_ct_CC="$ac_prog"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460 fi
4461 fi
4462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4463 if test -n "$ac_ct_CC"; then
4464   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4465 echo "${ECHO_T}$ac_ct_CC" >&6
4466 else
4467   echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4469 fi
4470
4471   test -n "$ac_ct_CC" && break
4472 done
4473
4474   CC=$ac_ct_CC
4475 fi
4476
4477 fi
4478
4479
4480 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: no acceptable C compiler found in \$PATH
4483 See \`config.log' for more details." >&2;}
4484    { (exit 1); exit 1; }; }
4485
4486 # Provide some information about the compiler.
4487 echo "$as_me:$LINENO:" \
4488      "checking for C compiler version" >&5
4489 ac_compiler=`set X $ac_compile; echo $2`
4490 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4491   (eval $ac_compiler --version </dev/null >&5) 2>&5
4492   ac_status=$?
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); }
4495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4496   (eval $ac_compiler -v </dev/null >&5) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }
4500 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4501   (eval $ac_compiler -V </dev/null >&5) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }
4505
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516
4517   ;
4518   return 0;
4519 }
4520 _ACEOF
4521 ac_clean_files_save=$ac_clean_files
4522 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4523 # Try to create an executable without -o first, disregard a.out.
4524 # It will help us diagnose broken compilers, and finding out an intuition
4525 # of exeext.
4526 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4527 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4528 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4529 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4530   (eval $ac_link_default) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; then
4534   # Find the output, starting from the most likely.  This scheme is
4535 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4536 # resort.
4537
4538 # Be careful to initialize this variable, since it used to be cached.
4539 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4540 ac_cv_exeext=
4541 # b.out is created by i960 compilers.
4542 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4543 do
4544   test -f "$ac_file" || continue
4545   case $ac_file in
4546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4547         ;;
4548     conftest.$ac_ext )
4549         # This is the source file.
4550         ;;
4551     [ab].out )
4552         # We found the default executable, but exeext='' is most
4553         # certainly right.
4554         break;;
4555     *.* )
4556         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4557         # FIXME: I believe we export ac_cv_exeext for Libtool,
4558         # but it would be cool to find out if it's true.  Does anybody
4559         # maintain Libtool? --akim.
4560         export ac_cv_exeext
4561         break;;
4562     * )
4563         break;;
4564   esac
4565 done
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: C compiler cannot create executables
4573 See \`config.log' for more details." >&2;}
4574    { (exit 77); exit 77; }; }
4575 fi
4576
4577 ac_exeext=$ac_cv_exeext
4578 echo "$as_me:$LINENO: result: $ac_file" >&5
4579 echo "${ECHO_T}$ac_file" >&6
4580
4581 # Check the compiler produces executables we can run.  If not, either
4582 # the compiler is broken, or we cross compile.
4583 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4586 # If not cross compiling, check that we can run a simple program.
4587 if test "$cross_compiling" != yes; then
4588   if { ac_try='./$ac_file'
4589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590   (eval $ac_try) 2>&5
4591   ac_status=$?
4592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593   (exit $ac_status); }; }; then
4594     cross_compiling=no
4595   else
4596     if test "$cross_compiling" = maybe; then
4597         cross_compiling=yes
4598     else
4599         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4600 If you meant to cross compile, use \`--host'.
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run C compiled programs.
4603 If you meant to cross compile, use \`--host'.
4604 See \`config.log' for more details." >&2;}
4605    { (exit 1); exit 1; }; }
4606     fi
4607   fi
4608 fi
4609 echo "$as_me:$LINENO: result: yes" >&5
4610 echo "${ECHO_T}yes" >&6
4611
4612 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4613 ac_clean_files=$ac_clean_files_save
4614 # Check the compiler produces executables we can run.  If not, either
4615 # the compiler is broken, or we cross compile.
4616 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4617 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4618 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4619 echo "${ECHO_T}$cross_compiling" >&6
4620
4621 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4622 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4624   (eval $ac_link) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; then
4628   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4629 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4630 # work properly (i.e., refer to `conftest.exe'), while it won't with
4631 # `rm'.
4632 for ac_file in conftest.exe conftest conftest.*; do
4633   test -f "$ac_file" || continue
4634   case $ac_file in
4635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4636     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4637           export ac_cv_exeext
4638           break;;
4639     * ) break;;
4640   esac
4641 done
4642 else
4643   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; }
4648 fi
4649
4650 rm -f conftest$ac_cv_exeext
4651 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4652 echo "${ECHO_T}$ac_cv_exeext" >&6
4653
4654 rm -f conftest.$ac_ext
4655 EXEEXT=$ac_cv_exeext
4656 ac_exeext=$EXEEXT
4657 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4658 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4659 if test "${ac_cv_objext+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668
4669 int
4670 main ()
4671 {
4672
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.o conftest.obj
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; then
4683   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4684   case $ac_file in
4685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4686     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4687        break;;
4688   esac
4689 done
4690 else
4691   echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4695 See \`config.log' for more details." >&5
4696 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4697 See \`config.log' for more details." >&2;}
4698    { (exit 1); exit 1; }; }
4699 fi
4700
4701 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 fi
4703 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4704 echo "${ECHO_T}$ac_cv_objext" >&6
4705 OBJEXT=$ac_cv_objext
4706 ac_objext=$OBJEXT
4707 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4708 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4709 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   cat >conftest.$ac_ext <<_ACEOF
4713 /* confdefs.h.  */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h.  */
4718
4719 int
4720 main ()
4721 {
4722 #ifndef __GNUC__
4723        choke me
4724 #endif
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732   (eval $ac_compile) 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -z "$ac_c_werror_flag"
4740                          || test ! -s conftest.err'
4741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742   (eval $ac_try) 2>&5
4743   ac_status=$?
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); }; } &&
4746          { ac_try='test -s conftest.$ac_objext'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; }; then
4752   ac_compiler_gnu=yes
4753 else
4754   echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_compiler_gnu=no
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4761
4762 fi
4763 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4764 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4765 GCC=`test $ac_compiler_gnu = yes && echo yes`
4766 ac_test_CFLAGS=${CFLAGS+set}
4767 ac_save_CFLAGS=$CFLAGS
4768 CFLAGS="-g"
4769 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4771 if test "${ac_cv_prog_cc_g+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   cat >conftest.$ac_ext <<_ACEOF
4775 /* confdefs.h.  */
4776 _ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h.  */
4780
4781 int
4782 main ()
4783 {
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791   (eval $ac_compile) 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } &&
4798          { ac_try='test -z "$ac_c_werror_flag"
4799                          || test ! -s conftest.err'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; } &&
4805          { ac_try='test -s conftest.$ac_objext'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; }; then
4811   ac_cv_prog_cc_g=yes
4812 else
4813   echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 ac_cv_prog_cc_g=no
4817 fi
4818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4819 fi
4820 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4822 if test "$ac_test_CFLAGS" = set; then
4823   CFLAGS=$ac_save_CFLAGS
4824 elif test $ac_cv_prog_cc_g = yes; then
4825   if test "$GCC" = yes; then
4826     CFLAGS="-g -O2"
4827   else
4828     CFLAGS="-g"
4829   fi
4830 else
4831   if test "$GCC" = yes; then
4832     CFLAGS="-O2"
4833   else
4834     CFLAGS=
4835   fi
4836 fi
4837 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4838 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4839 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   ac_cv_prog_cc_stdc=no
4843 ac_save_CC=$CC
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 #include <stdarg.h>
4851 #include <stdio.h>
4852 #include <sys/types.h>
4853 #include <sys/stat.h>
4854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4855 struct buf { int x; };
4856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4857 static char *e (p, i)
4858      char **p;
4859      int i;
4860 {
4861   return p[i];
4862 }
4863 static char *f (char * (*g) (char **, int), char **p, ...)
4864 {
4865   char *s;
4866   va_list v;
4867   va_start (v,p);
4868   s = g (p, va_arg (v,int));
4869   va_end (v);
4870   return s;
4871 }
4872
4873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4874    function prototypes and stuff, but not '\xHH' hex character constants.
4875    These don't provoke an error unfortunately, instead are silently treated
4876    as 'x'.  The following induces an error, until -std1 is added to get
4877    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4878    array size at least.  It's necessary to write '\x00'==0 to get something
4879    that's true only with -std1.  */
4880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4881
4882 int test (int i, double x);
4883 struct s1 {int (*f) (int a);};
4884 struct s2 {int (*f) (double a);};
4885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4886 int argc;
4887 char **argv;
4888 int
4889 main ()
4890 {
4891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4892   ;
4893   return 0;
4894 }
4895 _ACEOF
4896 # Don't try gcc -ansi; that turns off useful extensions and
4897 # breaks some systems' header files.
4898 # AIX                   -qlanglvl=ansi
4899 # Ultrix and OSF/1      -std1
4900 # HP-UX 10.20 and later -Ae
4901 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4902 # SVR4                  -Xc -D__EXTENSIONS__
4903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4904 do
4905   CC="$ac_save_CC $ac_arg"
4906   rm -f conftest.$ac_objext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4908   (eval $ac_compile) 2>conftest.er1
4909   ac_status=$?
4910   grep -v '^ *+' conftest.er1 >conftest.err
4911   rm -f conftest.er1
4912   cat conftest.err >&5
4913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914   (exit $ac_status); } &&
4915          { ac_try='test -z "$ac_c_werror_flag"
4916                          || test ! -s conftest.err'
4917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918   (eval $ac_try) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; } &&
4922          { ac_try='test -s conftest.$ac_objext'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; }; then
4928   ac_cv_prog_cc_stdc=$ac_arg
4929 break
4930 else
4931   echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 fi
4935 rm -f conftest.err conftest.$ac_objext
4936 done
4937 rm -f conftest.$ac_ext conftest.$ac_objext
4938 CC=$ac_save_CC
4939
4940 fi
4941
4942 case "x$ac_cv_prog_cc_stdc" in
4943   x|xno)
4944     echo "$as_me:$LINENO: result: none needed" >&5
4945 echo "${ECHO_T}none needed" >&6 ;;
4946   *)
4947     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4948 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4949     CC="$CC $ac_cv_prog_cc_stdc" ;;
4950 esac
4951
4952 # Some people use a C++ compiler to compile C.  Since we use `exit',
4953 # in C++ we need to declare it.  In case someone uses the same compiler
4954 # for both compiling C and C++ we need to have the C++ compiler decide
4955 # the declaration of exit, since it's the most demanding environment.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #ifndef __cplusplus
4958   choke me
4959 #endif
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963   (eval $ac_compile) 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } &&
4970          { ac_try='test -z "$ac_c_werror_flag"
4971                          || test ! -s conftest.err'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; } &&
4977          { ac_try='test -s conftest.$ac_objext'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; }; then
4983   for ac_declaration in \
4984    '' \
4985    'extern "C" void std::exit (int) throw (); using std::exit;' \
4986    'extern "C" void std::exit (int); using std::exit;' \
4987    'extern "C" void exit (int) throw ();' \
4988    'extern "C" void exit (int);' \
4989    'void exit (int);'
4990 do
4991   cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h.  */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h.  */
4997 $ac_declaration
4998 #include <stdlib.h>
4999 int
5000 main ()
5001 {
5002 exit (42);
5003   ;
5004   return 0;
5005 }
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009   (eval $ac_compile) 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } &&
5016          { ac_try='test -z "$ac_c_werror_flag"
5017                          || test ! -s conftest.err'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; } &&
5023          { ac_try='test -s conftest.$ac_objext'
5024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025   (eval $ac_try) 2>&5
5026   ac_status=$?
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); }; }; then
5029   :
5030 else
5031   echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.$ac_ext >&5
5033
5034 continue
5035 fi
5036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 $ac_declaration
5044 int
5045 main ()
5046 {
5047 exit (42);
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } &&
5061          { ac_try='test -z "$ac_c_werror_flag"
5062                          || test ! -s conftest.err'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   break
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 fi
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 done
5082 rm -f conftest*
5083 if test -n "$ac_declaration"; then
5084   echo '#ifdef __cplusplus' >>confdefs.h
5085   echo $ac_declaration      >>confdefs.h
5086   echo '#endif'             >>confdefs.h
5087 fi
5088
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 fi
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101 depcc="$CC"   am_compiler_list=
5102
5103 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5104 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5109   # We make a subdir and do the tests there.  Otherwise we can end up
5110   # making bogus files that we don't know about and never remove.  For
5111   # instance it was reported that on HP-UX the gcc test will end up
5112   # making a dummy file named `D' -- because `-MD' means `put the output
5113   # in D'.
5114   mkdir conftest.dir
5115   # Copy depcomp to subdir because otherwise we won't find it if we're
5116   # using a relative directory.
5117   cp "$am_depcomp" conftest.dir
5118   cd conftest.dir
5119   # We will build objects and dependencies in a subdirectory because
5120   # it helps to detect inapplicable dependency modes.  For instance
5121   # both Tru64's cc and ICC support -MD to output dependencies as a
5122   # side effect of compilation, but ICC will put the dependencies in
5123   # the current directory while Tru64 will put them in the object
5124   # directory.
5125   mkdir sub
5126
5127   am_cv_CC_dependencies_compiler_type=none
5128   if test "$am_compiler_list" = ""; then
5129      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5130   fi
5131   for depmode in $am_compiler_list; do
5132     # Setup a source with many dependencies, because some compilers
5133     # like to wrap large dependency lists on column 80 (with \), and
5134     # we should not choose a depcomp mode which is confused by this.
5135     #
5136     # We need to recreate these files for each test, as the compiler may
5137     # overwrite some of them when testing with obscure command lines.
5138     # This happens at least with the AIX C compiler.
5139     : > sub/conftest.c
5140     for i in 1 2 3 4 5 6; do
5141       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5142       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5143       # Solaris 8's {/usr,}/bin/sh.
5144       touch sub/conftst$i.h
5145     done
5146     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5147
5148     case $depmode in
5149     nosideeffect)
5150       # after this tag, mechanisms are not by side-effect, so they'll
5151       # only be used when explicitly requested
5152       if test "x$enable_dependency_tracking" = xyes; then
5153         continue
5154       else
5155         break
5156       fi
5157       ;;
5158     none) break ;;
5159     esac
5160     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5161     # mode.  It turns out that the SunPro C++ compiler does not properly
5162     # handle `-M -o', and we need to detect this.
5163     if depmode=$depmode \
5164        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5167          >/dev/null 2>conftest.err &&
5168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5169        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5171       # icc doesn't choke on unknown options, it will just issue warnings
5172       # or remarks (even with -Werror).  So we grep stderr for any message
5173       # that says an option was ignored or not supported.
5174       # When given -MP, icc 7.0 and 7.1 complain thusly:
5175       #   icc: Command line warning: ignoring option '-M'; no argument required
5176       # The diagnosis changed in icc 8.0:
5177       #   icc: Command line remark: option '-MP' not supported
5178       if (grep 'ignoring option' conftest.err ||
5179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5180         am_cv_CC_dependencies_compiler_type=$depmode
5181         break
5182       fi
5183     fi
5184   done
5185
5186   cd ..
5187   rm -rf conftest.dir
5188 else
5189   am_cv_CC_dependencies_compiler_type=none
5190 fi
5191
5192 fi
5193 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5196
5197
5198
5199 if
5200   test "x$enable_dependency_tracking" != xno \
5201   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5202   am__fastdepCC_TRUE=
5203   am__fastdepCC_FALSE='#'
5204 else
5205   am__fastdepCC_TRUE='#'
5206   am__fastdepCC_FALSE=
5207 fi
5208
5209
5210 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5211 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5212 if test "${lt_cv_path_SED+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   # Loop through the user's path and test for sed and gsed.
5216 # Then use that list of sed's as ones to test for truncation.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220   IFS=$as_save_IFS
5221   test -z "$as_dir" && as_dir=.
5222   for lt_ac_prog in sed gsed; do
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5225         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5226       fi
5227     done
5228   done
5229 done
5230 lt_ac_max=0
5231 lt_ac_count=0
5232 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5233 # along with /bin/sed that truncates output.
5234 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5235   test ! -f $lt_ac_sed && continue
5236   cat /dev/null > conftest.in
5237   lt_ac_count=0
5238   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5239   # Check for GNU sed and select it if it is found.
5240   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5241     lt_cv_path_SED=$lt_ac_sed
5242     break
5243   fi
5244   while true; do
5245     cat conftest.in conftest.in >conftest.tmp
5246     mv conftest.tmp conftest.in
5247     cp conftest.in conftest.nl
5248     echo >>conftest.nl
5249     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5250     cmp -s conftest.out conftest.nl || break
5251     # 10000 chars as input seems more than enough
5252     test $lt_ac_count -gt 10 && break
5253     lt_ac_count=`expr $lt_ac_count + 1`
5254     if test $lt_ac_count -gt $lt_ac_max; then
5255       lt_ac_max=$lt_ac_count
5256       lt_cv_path_SED=$lt_ac_sed
5257     fi
5258   done
5259 done
5260
5261 fi
5262
5263 SED=$lt_cv_path_SED
5264 echo "$as_me:$LINENO: result: $SED" >&5
5265 echo "${ECHO_T}$SED" >&6
5266
5267 echo "$as_me:$LINENO: checking for egrep" >&5
5268 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5269 if test "${ac_cv_prog_egrep+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5273     then ac_cv_prog_egrep='grep -E'
5274     else ac_cv_prog_egrep='egrep'
5275     fi
5276 fi
5277 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5278 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5279  EGREP=$ac_cv_prog_egrep
5280
5281
5282
5283 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5284 if test "${with_gnu_ld+set}" = set; then
5285   withval="$with_gnu_ld"
5286   test "$withval" = no || with_gnu_ld=yes
5287 else
5288   with_gnu_ld=no
5289 fi;
5290 ac_prog=ld
5291 if test "$GCC" = yes; then
5292   # Check if gcc -print-prog-name=ld gives a path.
5293   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5294 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5295   case $host in
5296   *-*-mingw*)
5297     # gcc leaves a trailing carriage return which upsets mingw
5298     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5299   *)
5300     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5301   esac
5302   case $ac_prog in
5303     # Accept absolute paths.
5304     [\\/]* | ?:[\\/]*)
5305       re_direlt='/[^/][^/]*/\.\./'
5306       # Canonicalize the pathname of ld
5307       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5308       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5309         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5310       done
5311       test -z "$LD" && LD="$ac_prog"
5312       ;;
5313   "")
5314     # If it fails, then pretend we aren't using GCC.
5315     ac_prog=ld
5316     ;;
5317   *)
5318     # If it is relative, then search for the first ld in PATH.
5319     with_gnu_ld=unknown
5320     ;;
5321   esac
5322 elif test "$with_gnu_ld" = yes; then
5323   echo "$as_me:$LINENO: checking for GNU ld" >&5
5324 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5325 else
5326   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5327 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5328 fi
5329 if test "${lt_cv_path_LD+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test -z "$LD"; then
5333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5334   for ac_dir in $PATH; do
5335     IFS="$lt_save_ifs"
5336     test -z "$ac_dir" && ac_dir=.
5337     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5338       lt_cv_path_LD="$ac_dir/$ac_prog"
5339       # Check to see if the program is GNU ld.  I'd rather use --version,
5340       # but apparently some variants of GNU ld only accept -v.
5341       # Break only if it was the GNU/non-GNU ld that we prefer.
5342       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5343       *GNU* | *'with BFD'*)
5344         test "$with_gnu_ld" != no && break
5345         ;;
5346       *)
5347         test "$with_gnu_ld" != yes && break
5348         ;;
5349       esac
5350     fi
5351   done
5352   IFS="$lt_save_ifs"
5353 else
5354   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5355 fi
5356 fi
5357
5358 LD="$lt_cv_path_LD"
5359 if test -n "$LD"; then
5360   echo "$as_me:$LINENO: result: $LD" >&5
5361 echo "${ECHO_T}$LD" >&6
5362 else
5363   echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6
5365 fi
5366 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5367 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5368    { (exit 1); exit 1; }; }
5369 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5370 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5371 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5372   echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5375 case `$LD -v 2>&1 </dev/null` in
5376 *GNU* | *'with BFD'*)
5377   lt_cv_prog_gnu_ld=yes
5378   ;;
5379 *)
5380   lt_cv_prog_gnu_ld=no
5381   ;;
5382 esac
5383 fi
5384 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5385 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5386 with_gnu_ld=$lt_cv_prog_gnu_ld
5387
5388
5389 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5390 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5391 if test "${lt_cv_ld_reload_flag+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   lt_cv_ld_reload_flag='-r'
5395 fi
5396 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5397 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5398 reload_flag=$lt_cv_ld_reload_flag
5399 case $reload_flag in
5400 "" | " "*) ;;
5401 *) reload_flag=" $reload_flag" ;;
5402 esac
5403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5404 case $host_os in
5405   darwin*)
5406     if test "$GCC" = yes; then
5407       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5408     else
5409       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410     fi
5411     ;;
5412 esac
5413
5414 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5415 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5416 if test "${lt_cv_path_NM+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   if test -n "$NM"; then
5420   # Let the user override the test.
5421   lt_cv_path_NM="$NM"
5422 else
5423   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5424   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5425     IFS="$lt_save_ifs"
5426     test -z "$ac_dir" && ac_dir=.
5427     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5428     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5429       # Check to see if the nm accepts a BSD-compat flag.
5430       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5431       #   nm: unknown option "B" ignored
5432       # Tru64's nm complains that /dev/null is an invalid object file
5433       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5434       */dev/null* | *'Invalid file or object type'*)
5435         lt_cv_path_NM="$tmp_nm -B"
5436         break
5437         ;;
5438       *)
5439         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5440         */dev/null*)
5441           lt_cv_path_NM="$tmp_nm -p"
5442           break
5443           ;;
5444         *)
5445           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5446           continue # so that we can try to find one that supports BSD flags
5447           ;;
5448         esac
5449       esac
5450     fi
5451   done
5452   IFS="$lt_save_ifs"
5453   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5454 fi
5455 fi
5456 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5457 echo "${ECHO_T}$lt_cv_path_NM" >&6
5458 NM="$lt_cv_path_NM"
5459
5460 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5461 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5462 LN_S=$as_ln_s
5463 if test "$LN_S" = "ln -s"; then
5464   echo "$as_me:$LINENO: result: yes" >&5
5465 echo "${ECHO_T}yes" >&6
5466 else
5467   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5468 echo "${ECHO_T}no, using $LN_S" >&6
5469 fi
5470
5471 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5472 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5473 if test "${lt_cv_deplibs_check_method+set}" = set; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 else
5476   lt_cv_file_magic_cmd='$MAGIC_CMD'
5477 lt_cv_file_magic_test_file=
5478 lt_cv_deplibs_check_method='unknown'
5479 # Need to set the preceding variable on all platforms that support
5480 # interlibrary dependencies.
5481 # 'none' -- dependencies not supported.
5482 # `unknown' -- same as none, but documents that we really don't know.
5483 # 'pass_all' -- all dependencies passed with no checks.
5484 # 'test_compile' -- check by making test program.
5485 # 'file_magic [[regex]]' -- check by looking for files in library path
5486 # which responds to the $file_magic_cmd with a given extended regex.
5487 # If you have `file' or equivalent on your system and you're not sure
5488 # whether `pass_all' will *always* work, you probably want this one.
5489
5490 case $host_os in
5491 aix4* | aix5*)
5492   lt_cv_deplibs_check_method=pass_all
5493   ;;
5494
5495 beos*)
5496   lt_cv_deplibs_check_method=pass_all
5497   ;;
5498
5499 bsdi[45]*)
5500   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5501   lt_cv_file_magic_cmd='/usr/bin/file -L'
5502   lt_cv_file_magic_test_file=/shlib/libc.so
5503   ;;
5504
5505 cygwin*)
5506   # func_win32_libid is a shell function defined in ltmain.sh
5507   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5508   lt_cv_file_magic_cmd='func_win32_libid'
5509   ;;
5510
5511 mingw* | pw32*)
5512   # Base MSYS/MinGW do not provide the 'file' command needed by
5513   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5514   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5515   lt_cv_file_magic_cmd='$OBJDUMP -f'
5516   ;;
5517
5518 darwin* | rhapsody*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 freebsd* | kfreebsd*-gnu | dragonfly*)
5523   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5524     case $host_cpu in
5525     i*86 )
5526       # Not sure whether the presence of OpenBSD here was a mistake.
5527       # Let's accept both of them until this is cleared up.
5528       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529       lt_cv_file_magic_cmd=/usr/bin/file
5530       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5531       ;;
5532     esac
5533   else
5534     lt_cv_deplibs_check_method=pass_all
5535   fi
5536   ;;
5537
5538 gnu*)
5539   lt_cv_deplibs_check_method=pass_all
5540   ;;
5541
5542 hpux10.20* | hpux11*)
5543   lt_cv_file_magic_cmd=/usr/bin/file
5544   case $host_cpu in
5545   ia64*)
5546     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5548     ;;
5549   hppa*64*)
5550     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]'
5551     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5552     ;;
5553   *)
5554     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5555     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5556     ;;
5557   esac
5558   ;;
5559
5560 irix5* | irix6* | nonstopux*)
5561   case $LD in
5562   *-32|*"-32 ") libmagic=32-bit;;
5563   *-n32|*"-n32 ") libmagic=N32;;
5564   *-64|*"-64 ") libmagic=64-bit;;
5565   *) libmagic=never-match;;
5566   esac
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 # This must be Linux ELF.
5571 linux*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 netbsd*)
5576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578   else
5579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5580   fi
5581   ;;
5582
5583 newos6*)
5584   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5585   lt_cv_file_magic_cmd=/usr/bin/file
5586   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5587   ;;
5588
5589 nto-qnx*)
5590   lt_cv_deplibs_check_method=unknown
5591   ;;
5592
5593 openbsd*)
5594   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5595     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5596   else
5597     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5598   fi
5599   ;;
5600
5601 osf3* | osf4* | osf5*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 sco3.2v5*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 solaris*)
5610   lt_cv_deplibs_check_method=pass_all
5611   ;;
5612
5613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5614   case $host_vendor in
5615   motorola)
5616     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]'
5617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5618     ;;
5619   ncr)
5620     lt_cv_deplibs_check_method=pass_all
5621     ;;
5622   sequent)
5623     lt_cv_file_magic_cmd='/bin/file'
5624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5625     ;;
5626   sni)
5627     lt_cv_file_magic_cmd='/bin/file'
5628     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5629     lt_cv_file_magic_test_file=/lib/libc.so
5630     ;;
5631   siemens)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634   esac
5635   ;;
5636
5637 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640 esac
5641
5642 fi
5643 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5644 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5645 file_magic_cmd=$lt_cv_file_magic_cmd
5646 deplibs_check_method=$lt_cv_deplibs_check_method
5647 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5648
5649
5650
5651
5652 # If no C compiler was specified, use CC.
5653 LTCC=${LTCC-"$CC"}
5654
5655 # Allow CC to be a program name with arguments.
5656 compiler=$CC
5657
5658
5659 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5660 if test "${enable_libtool_lock+set}" = set; then
5661   enableval="$enable_libtool_lock"
5662
5663 fi;
5664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665
5666 # Some flags need to be propagated to the compiler or linker for good
5667 # libtool support.
5668 case $host in
5669 ia64-*-hpux*)
5670   # Find out which ABI we are using.
5671   echo 'int i;' > conftest.$ac_ext
5672   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673   (eval $ac_compile) 2>&5
5674   ac_status=$?
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); }; then
5677     case `/usr/bin/file conftest.$ac_objext` in
5678     *ELF-32*)
5679       HPUX_IA64_MODE="32"
5680       ;;
5681     *ELF-64*)
5682       HPUX_IA64_MODE="64"
5683       ;;
5684     esac
5685   fi
5686   rm -rf conftest*
5687   ;;
5688 *-*-irix6*)
5689   # Find out which ABI we are using.
5690   echo '#line 5690 "configure"' > conftest.$ac_ext
5691   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692   (eval $ac_compile) 2>&5
5693   ac_status=$?
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); }; then
5696    if test "$lt_cv_prog_gnu_ld" = yes; then
5697     case `/usr/bin/file conftest.$ac_objext` in
5698     *32-bit*)
5699       LD="${LD-ld} -melf32bsmip"
5700       ;;
5701     *N32*)
5702       LD="${LD-ld} -melf32bmipn32"
5703       ;;
5704     *64-bit*)
5705       LD="${LD-ld} -melf64bmip"
5706       ;;
5707     esac
5708    else
5709     case `/usr/bin/file conftest.$ac_objext` in
5710     *32-bit*)
5711       LD="${LD-ld} -32"
5712       ;;
5713     *N32*)
5714       LD="${LD-ld} -n32"
5715       ;;
5716     *64-bit*)
5717       LD="${LD-ld} -64"
5718       ;;
5719     esac
5720    fi
5721   fi
5722   rm -rf conftest*
5723   ;;
5724
5725 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5726   # Find out which ABI we are using.
5727   echo 'int i;' > conftest.$ac_ext
5728   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729   (eval $ac_compile) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; then
5733     case `/usr/bin/file conftest.o` in
5734     *32-bit*)
5735       case $host in
5736         x86_64-*linux*)
5737           LD="${LD-ld} -m elf_i386"
5738           ;;
5739         ppc64-*linux*|powerpc64-*linux*)
5740           LD="${LD-ld} -m elf32ppclinux"
5741           ;;
5742         s390x-*linux*)
5743           LD="${LD-ld} -m elf_s390"
5744           ;;
5745         sparc64-*linux*)
5746           LD="${LD-ld} -m elf32_sparc"
5747           ;;
5748       esac
5749       ;;
5750     *64-bit*)
5751       case $host in
5752         x86_64-*linux*)
5753           LD="${LD-ld} -m elf_x86_64"
5754           ;;
5755         ppc*-*linux*|powerpc*-*linux*)
5756           LD="${LD-ld} -m elf64ppc"
5757           ;;
5758         s390*-*linux*)
5759           LD="${LD-ld} -m elf64_s390"
5760           ;;
5761         sparc*-*linux*)
5762           LD="${LD-ld} -m elf64_sparc"
5763           ;;
5764       esac
5765       ;;
5766     esac
5767   fi
5768   rm -rf conftest*
5769   ;;
5770
5771 *-*-sco3.2v5*)
5772   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5773   SAVE_CFLAGS="$CFLAGS"
5774   CFLAGS="$CFLAGS -belf"
5775   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5776 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5777 if test "${lt_cv_cc_needs_belf+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_ext=c
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786      cat >conftest.$ac_ext <<_ACEOF
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792
5793 int
5794 main ()
5795 {
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext conftest$ac_exeext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5803   (eval $ac_link) 2>conftest.er1
5804   ac_status=$?
5805   grep -v '^ *+' conftest.er1 >conftest.err
5806   rm -f conftest.er1
5807   cat conftest.err >&5
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -z "$ac_c_werror_flag"
5811                          || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest$ac_exeext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   lt_cv_cc_needs_belf=yes
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 lt_cv_cc_needs_belf=no
5829 fi
5830 rm -f conftest.err conftest.$ac_objext \
5831       conftest$ac_exeext conftest.$ac_ext
5832      ac_ext=c
5833 ac_cpp='$CPP $CPPFLAGS'
5834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838 fi
5839 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5840 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5841   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5842     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5843     CFLAGS="$SAVE_CFLAGS"
5844   fi
5845   ;;
5846 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5847   if test -n "$ac_tool_prefix"; then
5848   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$DLLTOOL"; then
5856   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871
5872 fi
5873 fi
5874 DLLTOOL=$ac_cv_prog_DLLTOOL
5875 if test -n "$DLLTOOL"; then
5876   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5877 echo "${ECHO_T}$DLLTOOL" >&6
5878 else
5879   echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883 fi
5884 if test -z "$ac_cv_prog_DLLTOOL"; then
5885   ac_ct_DLLTOOL=$DLLTOOL
5886   # Extract the first word of "dlltool", so it can be a program name with args.
5887 set dummy dlltool; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   if test -n "$ac_ct_DLLTOOL"; then
5894   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909
5910   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5911 fi
5912 fi
5913 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5914 if test -n "$ac_ct_DLLTOOL"; then
5915   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5916 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922   DLLTOOL=$ac_ct_DLLTOOL
5923 else
5924   DLLTOOL="$ac_cv_prog_DLLTOOL"
5925 fi
5926
5927   if test -n "$ac_tool_prefix"; then
5928   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}as; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_AS+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$AS"; then
5936   ac_cv_prog_AS="$AS" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_AS="${ac_tool_prefix}as"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951
5952 fi
5953 fi
5954 AS=$ac_cv_prog_AS
5955 if test -n "$AS"; then
5956   echo "$as_me:$LINENO: result: $AS" >&5
5957 echo "${ECHO_T}$AS" >&6
5958 else
5959   echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963 fi
5964 if test -z "$ac_cv_prog_AS"; then
5965   ac_ct_AS=$AS
5966   # Extract the first word of "as", so it can be a program name with args.
5967 set dummy as; ac_word=$2
5968 echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   if test -n "$ac_ct_AS"; then
5974   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_prog_ac_ct_AS="as"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989
5990   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5991 fi
5992 fi
5993 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5994 if test -n "$ac_ct_AS"; then
5995   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5996 echo "${ECHO_T}$ac_ct_AS" >&6
5997 else
5998   echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6000 fi
6001
6002   AS=$ac_ct_AS
6003 else
6004   AS="$ac_cv_prog_AS"
6005 fi
6006
6007   if test -n "$ac_tool_prefix"; then
6008   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6013   echo $ECHO_N "(cached) $ECHO_C" >&6
6014 else
6015   if test -n "$OBJDUMP"; then
6016   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023   for ac_exec_ext in '' $ac_executable_extensions; do
6024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030 done
6031
6032 fi
6033 fi
6034 OBJDUMP=$ac_cv_prog_OBJDUMP
6035 if test -n "$OBJDUMP"; then
6036   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6037 echo "${ECHO_T}$OBJDUMP" >&6
6038 else
6039   echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6042
6043 fi
6044 if test -z "$ac_cv_prog_OBJDUMP"; then
6045   ac_ct_OBJDUMP=$OBJDUMP
6046   # Extract the first word of "objdump", so it can be a program name with args.
6047 set dummy objdump; ac_word=$2
6048 echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6051   echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053   if test -n "$ac_ct_OBJDUMP"; then
6054   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061   for ac_exec_ext in '' $ac_executable_extensions; do
6062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068 done
6069
6070   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6071 fi
6072 fi
6073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6074 if test -n "$ac_ct_OBJDUMP"; then
6075   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6076 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6077 else
6078   echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6080 fi
6081
6082   OBJDUMP=$ac_ct_OBJDUMP
6083 else
6084   OBJDUMP="$ac_cv_prog_OBJDUMP"
6085 fi
6086
6087   ;;
6088
6089 esac
6090
6091 need_locks="$enable_libtool_lock"
6092
6093
6094 ac_ext=c
6095 ac_cpp='$CPP $CPPFLAGS'
6096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6101 # On Suns, sometimes $CPP names a directory.
6102 if test -n "$CPP" && test -d "$CPP"; then
6103   CPP=
6104 fi
6105 if test -z "$CPP"; then
6106   if test "${ac_cv_prog_CPP+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109       # Double quotes because CPP needs to be expanded
6110     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6111     do
6112       ac_preproc_ok=false
6113 for ac_c_preproc_warn_flag in '' yes
6114 do
6115   # Use a header file that comes with gcc, so configuring glibc
6116   # with a fresh cross-compiler works.
6117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118   # <limits.h> exists even on freestanding compilers.
6119   # On the NeXT, cc -E runs the code through the compiler's parser,
6120   # not just through cpp. "Syntax error" is here to catch this case.
6121   cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h.  */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h.  */
6127 #ifdef __STDC__
6128 # include <limits.h>
6129 #else
6130 # include <assert.h>
6131 #endif
6132                      Syntax error
6133 _ACEOF
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } >/dev/null; then
6142   if test -s conftest.err; then
6143     ac_cpp_err=$ac_c_preproc_warn_flag
6144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145   else
6146     ac_cpp_err=
6147   fi
6148 else
6149   ac_cpp_err=yes
6150 fi
6151 if test -z "$ac_cpp_err"; then
6152   :
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157   # Broken: fails on valid input.
6158 continue
6159 fi
6160 rm -f conftest.err conftest.$ac_ext
6161
6162   # OK, works on sane cases.  Now check whether non-existent headers
6163   # can be detected and how.
6164   cat >conftest.$ac_ext <<_ACEOF
6165 /* confdefs.h.  */
6166 _ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h.  */
6170 #include <ac_nonexistent.h>
6171 _ACEOF
6172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6173   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } >/dev/null; then
6180   if test -s conftest.err; then
6181     ac_cpp_err=$ac_c_preproc_warn_flag
6182     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6183   else
6184     ac_cpp_err=
6185   fi
6186 else
6187   ac_cpp_err=yes
6188 fi
6189 if test -z "$ac_cpp_err"; then
6190   # Broken: success on invalid input.
6191 continue
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196   # Passes both tests.
6197 ac_preproc_ok=:
6198 break
6199 fi
6200 rm -f conftest.err conftest.$ac_ext
6201
6202 done
6203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6204 rm -f conftest.err conftest.$ac_ext
6205 if $ac_preproc_ok; then
6206   break
6207 fi
6208
6209     done
6210     ac_cv_prog_CPP=$CPP
6211
6212 fi
6213   CPP=$ac_cv_prog_CPP
6214 else
6215   ac_cv_prog_CPP=$CPP
6216 fi
6217 echo "$as_me:$LINENO: result: $CPP" >&5
6218 echo "${ECHO_T}$CPP" >&6
6219 ac_preproc_ok=false
6220 for ac_c_preproc_warn_flag in '' yes
6221 do
6222   # Use a header file that comes with gcc, so configuring glibc
6223   # with a fresh cross-compiler works.
6224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225   # <limits.h> exists even on freestanding compilers.
6226   # On the NeXT, cc -E runs the code through the compiler's parser,
6227   # not just through cpp. "Syntax error" is here to catch this case.
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6239                      Syntax error
6240 _ACEOF
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } >/dev/null; then
6249   if test -s conftest.err; then
6250     ac_cpp_err=$ac_c_preproc_warn_flag
6251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252   else
6253     ac_cpp_err=
6254   fi
6255 else
6256   ac_cpp_err=yes
6257 fi
6258 if test -z "$ac_cpp_err"; then
6259   :
6260 else
6261   echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6263
6264   # Broken: fails on valid input.
6265 continue
6266 fi
6267 rm -f conftest.err conftest.$ac_ext
6268
6269   # OK, works on sane cases.  Now check whether non-existent headers
6270   # can be detected and how.
6271   cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h.  */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h.  */
6277 #include <ac_nonexistent.h>
6278 _ACEOF
6279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } >/dev/null; then
6287   if test -s conftest.err; then
6288     ac_cpp_err=$ac_c_preproc_warn_flag
6289     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6290   else
6291     ac_cpp_err=
6292   fi
6293 else
6294   ac_cpp_err=yes
6295 fi
6296 if test -z "$ac_cpp_err"; then
6297   # Broken: success on invalid input.
6298 continue
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303   # Passes both tests.
6304 ac_preproc_ok=:
6305 break
6306 fi
6307 rm -f conftest.err conftest.$ac_ext
6308
6309 done
6310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311 rm -f conftest.err conftest.$ac_ext
6312 if $ac_preproc_ok; then
6313   :
6314 else
6315   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6316 See \`config.log' for more details." >&5
6317 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6318 See \`config.log' for more details." >&2;}
6319    { (exit 1); exit 1; }; }
6320 fi
6321
6322 ac_ext=c
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
6328
6329 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6331 if test "${ac_cv_header_stdc+set}" = set; then
6332   echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #include <stdlib.h>
6341 #include <stdarg.h>
6342 #include <string.h>
6343 #include <float.h>
6344
6345 int
6346 main ()
6347 {
6348
6349   ;
6350   return 0;
6351 }
6352 _ACEOF
6353 rm -f conftest.$ac_objext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355   (eval $ac_compile) 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } &&
6362          { ac_try='test -z "$ac_c_werror_flag"
6363                          || test ! -s conftest.err'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; } &&
6369          { ac_try='test -s conftest.$ac_objext'
6370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375   ac_cv_header_stdc=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_header_stdc=no
6381 fi
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383
6384 if test $ac_cv_header_stdc = yes; then
6385   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <string.h>
6393
6394 _ACEOF
6395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396   $EGREP "memchr" >/dev/null 2>&1; then
6397   :
6398 else
6399   ac_cv_header_stdc=no
6400 fi
6401 rm -f conftest*
6402
6403 fi
6404
6405 if test $ac_cv_header_stdc = yes; then
6406   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6407   cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 #include <stdlib.h>
6414
6415 _ACEOF
6416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6417   $EGREP "free" >/dev/null 2>&1; then
6418   :
6419 else
6420   ac_cv_header_stdc=no
6421 fi
6422 rm -f conftest*
6423
6424 fi
6425
6426 if test $ac_cv_header_stdc = yes; then
6427   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6428   if test "$cross_compiling" = yes; then
6429   :
6430 else
6431   cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #include <ctype.h>
6438 #if ((' ' & 0x0FF) == 0x020)
6439 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441 #else
6442 # define ISLOWER(c) \
6443                    (('a' <= (c) && (c) <= 'i') \
6444                      || ('j' <= (c) && (c) <= 'r') \
6445                      || ('s' <= (c) && (c) <= 'z'))
6446 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6447 #endif
6448
6449 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6450 int
6451 main ()
6452 {
6453   int i;
6454   for (i = 0; i < 256; i++)
6455     if (XOR (islower (i), ISLOWER (i))
6456         || toupper (i) != TOUPPER (i))
6457       exit(2);
6458   exit (0);
6459 }
6460 _ACEOF
6461 rm -f conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463   (eval $ac_link) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   :
6473 else
6474   echo "$as_me: program exited with status $ac_status" >&5
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ( exit $ac_status )
6479 ac_cv_header_stdc=no
6480 fi
6481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6482 fi
6483 fi
6484 fi
6485 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6486 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6487 if test $ac_cv_header_stdc = yes; then
6488
6489 cat >>confdefs.h <<\_ACEOF
6490 #define STDC_HEADERS 1
6491 _ACEOF
6492
6493 fi
6494
6495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6506                   inttypes.h stdint.h unistd.h
6507 do
6508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6509 echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512   echo $ECHO_N "(cached) $ECHO_C" >&6
6513 else
6514   cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520 $ac_includes_default
6521
6522 #include <$ac_header>
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   eval "$as_ac_Header=yes"
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 eval "$as_ac_Header=no"
6552 fi
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558   cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 _ACEOF
6561
6562 fi
6563
6564 done
6565
6566
6567
6568 for ac_header in dlfcn.h
6569 do
6570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6572   echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 fi
6577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579 else
6580   # Is the header compilable?
6581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 $ac_includes_default
6590 #include <$ac_header>
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594   (eval $ac_compile) 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -z "$ac_c_werror_flag"
6602                          || test ! -s conftest.err'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; } &&
6608          { ac_try='test -s conftest.$ac_objext'
6609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610   (eval $ac_try) 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; }; then
6614   ac_header_compiler=yes
6615 else
6616   echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 ac_header_compiler=no
6620 fi
6621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6623 echo "${ECHO_T}$ac_header_compiler" >&6
6624
6625 # Is the header present?
6626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634 #include <$ac_header>
6635 _ACEOF
6636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } >/dev/null; then
6644   if test -s conftest.err; then
6645     ac_cpp_err=$ac_c_preproc_warn_flag
6646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6647   else
6648     ac_cpp_err=
6649   fi
6650 else
6651   ac_cpp_err=yes
6652 fi
6653 if test -z "$ac_cpp_err"; then
6654   ac_header_preproc=yes
6655 else
6656   echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659   ac_header_preproc=no
6660 fi
6661 rm -f conftest.err conftest.$ac_ext
6662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6663 echo "${ECHO_T}$ac_header_preproc" >&6
6664
6665 # So?  What about this header?
6666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667   yes:no: )
6668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6672     ac_header_preproc=yes
6673     ;;
6674   no:yes:* )
6675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6687     (
6688       cat <<\_ASBOX
6689 ## ------------------------------------------ ##
6690 ## Report this to the AC_PACKAGE_NAME lists.  ##
6691 ## ------------------------------------------ ##
6692 _ASBOX
6693     ) |
6694       sed "s/^/$as_me: WARNING:     /" >&2
6695     ;;
6696 esac
6697 echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   eval "$as_ac_Header=\$ac_header_preproc"
6703 fi
6704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706
6707 fi
6708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6709   cat >>confdefs.h <<_ACEOF
6710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6711 _ACEOF
6712
6713 fi
6714
6715 done
6716
6717
6718 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6719
6720 # find the maximum length of command line arguments
6721 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6722 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6723 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6724   echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726     i=0
6727   teststring="ABCD"
6728
6729   case $build_os in
6730   msdosdjgpp*)
6731     # On DJGPP, this test can blow up pretty badly due to problems in libc
6732     # (any single argument exceeding 2000 bytes causes a buffer overrun
6733     # during glob expansion).  Even if it were fixed, the result of this
6734     # check would be larger than it should be.
6735     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6736     ;;
6737
6738   gnu*)
6739     # Under GNU Hurd, this test is not required because there is
6740     # no limit to the length of command line arguments.
6741     # Libtool will interpret -1 as no limit whatsoever
6742     lt_cv_sys_max_cmd_len=-1;
6743     ;;
6744
6745   cygwin* | mingw*)
6746     # On Win9x/ME, this test blows up -- it succeeds, but takes
6747     # about 5 minutes as the teststring grows exponentially.
6748     # Worse, since 9x/ME are not pre-emptively multitasking,
6749     # you end up with a "frozen" computer, even though with patience
6750     # the test eventually succeeds (with a max line length of 256k).
6751     # Instead, let's just punt: use the minimum linelength reported by
6752     # all of the supported platforms: 8192 (on NT/2K/XP).
6753     lt_cv_sys_max_cmd_len=8192;
6754     ;;
6755
6756   amigaos*)
6757     # On AmigaOS with pdksh, this test takes hours, literally.
6758     # So we just punt and use a minimum line length of 8192.
6759     lt_cv_sys_max_cmd_len=8192;
6760     ;;
6761
6762   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6763     # This has been around since 386BSD, at least.  Likely further.
6764     if test -x /sbin/sysctl; then
6765       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6766     elif test -x /usr/sbin/sysctl; then
6767       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6768     else
6769       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6770     fi
6771     # And add a safety zone
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6774     ;;
6775   osf*)
6776     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6777     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6778     # nice to cause kernel panics so lets avoid the loop below.
6779     # First set a reasonable default.
6780     lt_cv_sys_max_cmd_len=16384
6781     #
6782     if test -x /sbin/sysconfig; then
6783       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6784         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6785       esac
6786     fi
6787     ;;
6788   *)
6789     # If test is not a shell built-in, we'll probably end up computing a
6790     # maximum length that is only half of the actual maximum length, but
6791     # we can't tell.
6792     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6793     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6794                = "XX$teststring") >/dev/null 2>&1 &&
6795             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6796             lt_cv_sys_max_cmd_len=$new_result &&
6797             test $i != 17 # 1/2 MB should be enough
6798     do
6799       i=`expr $i + 1`
6800       teststring=$teststring$teststring
6801     done
6802     teststring=
6803     # Add a significant safety factor because C++ compilers can tack on massive
6804     # amounts of additional arguments before passing them to the linker.
6805     # It appears as though 1/2 is a usable value.
6806     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6807     ;;
6808   esac
6809
6810 fi
6811
6812 if test -n $lt_cv_sys_max_cmd_len ; then
6813   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6814 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6815 else
6816   echo "$as_me:$LINENO: result: none" >&5
6817 echo "${ECHO_T}none" >&6
6818 fi
6819
6820
6821
6822
6823 # Check for command to grab the raw symbol name followed by C symbol from nm.
6824 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6825 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6826 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829
6830 # These are sane defaults that work on at least a few old systems.
6831 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6832
6833 # Character class describing NM global symbol codes.
6834 symcode='[BCDEGRST]'
6835
6836 # Regexp to match symbols that can be accessed directly from C.
6837 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6838
6839 # Transform an extracted symbol line into a proper C declaration
6840 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6841
6842 # Transform an extracted symbol line into symbol name and symbol address
6843 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'"
6844
6845 # Define system-specific variables.
6846 case $host_os in
6847 aix*)
6848   symcode='[BCDT]'
6849   ;;
6850 cygwin* | mingw* | pw32*)
6851   symcode='[ABCDGISTW]'
6852   ;;
6853 hpux*) # Its linker distinguishes data from code symbols
6854   if test "$host_cpu" = ia64; then
6855     symcode='[ABCDEGRST]'
6856   fi
6857   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6858   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'"
6859   ;;
6860 linux*)
6861   if test "$host_cpu" = ia64; then
6862     symcode='[ABCDGIRSTW]'
6863     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6864     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'"
6865   fi
6866   ;;
6867 irix* | nonstopux*)
6868   symcode='[BCDEGRST]'
6869   ;;
6870 osf*)
6871   symcode='[BCDEGQRST]'
6872   ;;
6873 solaris* | sysv5*)
6874   symcode='[BDRT]'
6875   ;;
6876 sysv4)
6877   symcode='[DFNSTU]'
6878   ;;
6879 esac
6880
6881 # Handle CRLF in mingw tool chain
6882 opt_cr=
6883 case $build_os in
6884 mingw*)
6885   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6886   ;;
6887 esac
6888
6889 # If we're using GNU nm, then use its standard symbol codes.
6890 case `$NM -V 2>&1` in
6891 *GNU* | *'with BFD'*)
6892   symcode='[ABCDGIRSTW]' ;;
6893 esac
6894
6895 # Try without a prefix undercore, then with it.
6896 for ac_symprfx in "" "_"; do
6897
6898   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6899   symxfrm="\\1 $ac_symprfx\\2 \\2"
6900
6901   # Write the raw and C identifiers.
6902   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6903
6904   # Check to see that the pipe works correctly.
6905   pipe_works=no
6906
6907   rm -f conftest*
6908   cat > conftest.$ac_ext <<EOF
6909 #ifdef __cplusplus
6910 extern "C" {
6911 #endif
6912 char nm_test_var;
6913 void nm_test_func(){}
6914 #ifdef __cplusplus
6915 }
6916 #endif
6917 int main(){nm_test_var='a';nm_test_func();return(0);}
6918 EOF
6919
6920   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921   (eval $ac_compile) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; then
6925     # Now try to grab the symbols.
6926     nlist=conftest.nm
6927     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6928   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); } && test -s "$nlist"; then
6932       # Try sorting and uniquifying the output.
6933       if sort "$nlist" | uniq > "$nlist"T; then
6934         mv -f "$nlist"T "$nlist"
6935       else
6936         rm -f "$nlist"T
6937       fi
6938
6939       # Make sure that we snagged all the symbols we need.
6940       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6941         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6942           cat <<EOF > conftest.$ac_ext
6943 #ifdef __cplusplus
6944 extern "C" {
6945 #endif
6946
6947 EOF
6948           # Now generate the symbol file.
6949           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6950
6951           cat <<EOF >> conftest.$ac_ext
6952 #if defined (__STDC__) && __STDC__
6953 # define lt_ptr_t void *
6954 #else
6955 # define lt_ptr_t char *
6956 # define const
6957 #endif
6958
6959 /* The mapping between symbol names and symbols. */
6960 const struct {
6961   const char *name;
6962   lt_ptr_t address;
6963 }
6964 lt_preloaded_symbols[] =
6965 {
6966 EOF
6967           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6968           cat <<\EOF >> conftest.$ac_ext
6969   {0, (lt_ptr_t) 0}
6970 };
6971
6972 #ifdef __cplusplus
6973 }
6974 #endif
6975 EOF
6976           # Now try linking the two files.
6977           mv conftest.$ac_objext conftstm.$ac_objext
6978           lt_save_LIBS="$LIBS"
6979           lt_save_CFLAGS="$CFLAGS"
6980           LIBS="conftstm.$ac_objext"
6981           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6982           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>&5
6984   ac_status=$?
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6987             pipe_works=yes
6988           fi
6989           LIBS="$lt_save_LIBS"
6990           CFLAGS="$lt_save_CFLAGS"
6991         else
6992           echo "cannot find nm_test_func in $nlist" >&5
6993         fi
6994       else
6995         echo "cannot find nm_test_var in $nlist" >&5
6996       fi
6997     else
6998       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6999     fi
7000   else
7001     echo "$progname: failed program was:" >&5
7002     cat conftest.$ac_ext >&5
7003   fi
7004   rm -f conftest* conftst*
7005
7006   # Do not use the global_symbol_pipe unless it works.
7007   if test "$pipe_works" = yes; then
7008     break
7009   else
7010     lt_cv_sys_global_symbol_pipe=
7011   fi
7012 done
7013
7014 fi
7015
7016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7017   lt_cv_sys_global_symbol_to_cdecl=
7018 fi
7019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7020   echo "$as_me:$LINENO: result: failed" >&5
7021 echo "${ECHO_T}failed" >&6
7022 else
7023   echo "$as_me:$LINENO: result: ok" >&5
7024 echo "${ECHO_T}ok" >&6
7025 fi
7026
7027 echo "$as_me:$LINENO: checking for objdir" >&5
7028 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7029 if test "${lt_cv_objdir+set}" = set; then
7030   echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032   rm -f .libs 2>/dev/null
7033 mkdir .libs 2>/dev/null
7034 if test -d .libs; then
7035   lt_cv_objdir=.libs
7036 else
7037   # MS-DOS does not allow filenames that begin with a dot.
7038   lt_cv_objdir=_libs
7039 fi
7040 rmdir .libs 2>/dev/null
7041 fi
7042 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7043 echo "${ECHO_T}$lt_cv_objdir" >&6
7044 objdir=$lt_cv_objdir
7045
7046
7047
7048
7049
7050 case $host_os in
7051 aix3*)
7052   # AIX sometimes has problems with the GCC collect2 program.  For some
7053   # reason, if we set the COLLECT_NAMES environment variable, the problems
7054   # vanish in a puff of smoke.
7055   if test "X${COLLECT_NAMES+set}" != Xset; then
7056     COLLECT_NAMES=
7057     export COLLECT_NAMES
7058   fi
7059   ;;
7060 esac
7061
7062 # Sed substitution that helps us do robust quoting.  It backslashifies
7063 # metacharacters that are still active within double-quoted strings.
7064 Xsed='sed -e 1s/^X//'
7065 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7066
7067 # Same as above, but do not quote variable references.
7068 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7069
7070 # Sed substitution to delay expansion of an escaped shell variable in a
7071 # double_quote_subst'ed string.
7072 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7073
7074 # Sed substitution to avoid accidental globbing in evaled expressions
7075 no_glob_subst='s/\*/\\\*/g'
7076
7077 # Constants:
7078 rm="rm -f"
7079
7080 # Global variables:
7081 default_ofile=libtool
7082 can_build_shared=yes
7083
7084 # All known linkers require a `.a' archive for static linking (except MSVC,
7085 # which needs '.lib').
7086 libext=a
7087 ltmain="$ac_aux_dir/ltmain.sh"
7088 ofile="$default_ofile"
7089 with_gnu_ld="$lt_cv_prog_gnu_ld"
7090
7091 if test -n "$ac_tool_prefix"; then
7092   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}ar; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_AR+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   if test -n "$AR"; then
7100   ac_cv_prog_AR="$AR" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7104 do
7105   IFS=$as_save_IFS
7106   test -z "$as_dir" && as_dir=.
7107   for ac_exec_ext in '' $ac_executable_extensions; do
7108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109     ac_cv_prog_AR="${ac_tool_prefix}ar"
7110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111     break 2
7112   fi
7113 done
7114 done
7115
7116 fi
7117 fi
7118 AR=$ac_cv_prog_AR
7119 if test -n "$AR"; then
7120   echo "$as_me:$LINENO: result: $AR" >&5
7121 echo "${ECHO_T}$AR" >&6
7122 else
7123   echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7125 fi
7126
7127 fi
7128 if test -z "$ac_cv_prog_AR"; then
7129   ac_ct_AR=$AR
7130   # Extract the first word of "ar", so it can be a program name with args.
7131 set dummy ar; ac_word=$2
7132 echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7134 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   if test -n "$ac_ct_AR"; then
7138   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143   IFS=$as_save_IFS
7144   test -z "$as_dir" && as_dir=.
7145   for ac_exec_ext in '' $ac_executable_extensions; do
7146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147     ac_cv_prog_ac_ct_AR="ar"
7148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149     break 2
7150   fi
7151 done
7152 done
7153
7154   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7155 fi
7156 fi
7157 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7158 if test -n "$ac_ct_AR"; then
7159   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7160 echo "${ECHO_T}$ac_ct_AR" >&6
7161 else
7162   echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7164 fi
7165
7166   AR=$ac_ct_AR
7167 else
7168   AR="$ac_cv_prog_AR"
7169 fi
7170
7171 if test -n "$ac_tool_prefix"; then
7172   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7173 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_RANLIB+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   if test -n "$RANLIB"; then
7180   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185   IFS=$as_save_IFS
7186   test -z "$as_dir" && as_dir=.
7187   for ac_exec_ext in '' $ac_executable_extensions; do
7188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191     break 2
7192   fi
7193 done
7194 done
7195
7196 fi
7197 fi
7198 RANLIB=$ac_cv_prog_RANLIB
7199 if test -n "$RANLIB"; then
7200   echo "$as_me:$LINENO: result: $RANLIB" >&5
7201 echo "${ECHO_T}$RANLIB" >&6
7202 else
7203   echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6
7205 fi
7206
7207 fi
7208 if test -z "$ac_cv_prog_RANLIB"; then
7209   ac_ct_RANLIB=$RANLIB
7210   # Extract the first word of "ranlib", so it can be a program name with args.
7211 set dummy ranlib; ac_word=$2
7212 echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7214 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   if test -n "$ac_ct_RANLIB"; then
7218   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225   for ac_exec_ext in '' $ac_executable_extensions; do
7226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227     ac_cv_prog_ac_ct_RANLIB="ranlib"
7228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232 done
7233
7234   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7235 fi
7236 fi
7237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7238 if test -n "$ac_ct_RANLIB"; then
7239   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7240 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7241 else
7242   echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7244 fi
7245
7246   RANLIB=$ac_ct_RANLIB
7247 else
7248   RANLIB="$ac_cv_prog_RANLIB"
7249 fi
7250
7251 if test -n "$ac_tool_prefix"; then
7252   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}strip; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_STRIP+set}" = set; then
7257   echo $ECHO_N "(cached) $ECHO_C" >&6
7258 else
7259   if test -n "$STRIP"; then
7260   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267   for ac_exec_ext in '' $ac_executable_extensions; do
7268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274 done
7275
7276 fi
7277 fi
7278 STRIP=$ac_cv_prog_STRIP
7279 if test -n "$STRIP"; then
7280   echo "$as_me:$LINENO: result: $STRIP" >&5
7281 echo "${ECHO_T}$STRIP" >&6
7282 else
7283   echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6
7285 fi
7286
7287 fi
7288 if test -z "$ac_cv_prog_STRIP"; then
7289   ac_ct_STRIP=$STRIP
7290   # Extract the first word of "strip", so it can be a program name with args.
7291 set dummy strip; ac_word=$2
7292 echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   if test -n "$ac_ct_STRIP"; then
7298   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305   for ac_exec_ext in '' $ac_executable_extensions; do
7306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_prog_ac_ct_STRIP="strip"
7308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312 done
7313
7314   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7315 fi
7316 fi
7317 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7318 if test -n "$ac_ct_STRIP"; then
7319   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7320 echo "${ECHO_T}$ac_ct_STRIP" >&6
7321 else
7322   echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6
7324 fi
7325
7326   STRIP=$ac_ct_STRIP
7327 else
7328   STRIP="$ac_cv_prog_STRIP"
7329 fi
7330
7331
7332 old_CC="$CC"
7333 old_CFLAGS="$CFLAGS"
7334
7335 # Set sane defaults for various variables
7336 test -z "$AR" && AR=ar
7337 test -z "$AR_FLAGS" && AR_FLAGS=cru
7338 test -z "$AS" && AS=as
7339 test -z "$CC" && CC=cc
7340 test -z "$LTCC" && LTCC=$CC
7341 test -z "$DLLTOOL" && DLLTOOL=dlltool
7342 test -z "$LD" && LD=ld
7343 test -z "$LN_S" && LN_S="ln -s"
7344 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7345 test -z "$NM" && NM=nm
7346 test -z "$SED" && SED=sed
7347 test -z "$OBJDUMP" && OBJDUMP=objdump
7348 test -z "$RANLIB" && RANLIB=:
7349 test -z "$STRIP" && STRIP=:
7350 test -z "$ac_objext" && ac_objext=o
7351
7352 # Determine commands to create old-style static archives.
7353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7354 old_postinstall_cmds='chmod 644 $oldlib'
7355 old_postuninstall_cmds=
7356
7357 if test -n "$RANLIB"; then
7358   case $host_os in
7359   openbsd*)
7360     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7361     ;;
7362   *)
7363     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7364     ;;
7365   esac
7366   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7367 fi
7368
7369 for cc_temp in $compiler""; do
7370   case $cc_temp in
7371     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7372     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7373     \-*) ;;
7374     *) break;;
7375   esac
7376 done
7377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7378
7379
7380 # Only perform the check for file, if the check method requires it
7381 case $deplibs_check_method in
7382 file_magic*)
7383   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7384     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7385 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7386 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   case $MAGIC_CMD in
7390 [\\/*] |  ?:[\\/]*)
7391   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7392   ;;
7393 *)
7394   lt_save_MAGIC_CMD="$MAGIC_CMD"
7395   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7396   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7397   for ac_dir in $ac_dummy; do
7398     IFS="$lt_save_ifs"
7399     test -z "$ac_dir" && ac_dir=.
7400     if test -f $ac_dir/${ac_tool_prefix}file; then
7401       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7402       if test -n "$file_magic_test_file"; then
7403         case $deplibs_check_method in
7404         "file_magic "*)
7405           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7406           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7408             $EGREP "$file_magic_regex" > /dev/null; then
7409             :
7410           else
7411             cat <<EOF 1>&2
7412
7413 *** Warning: the command libtool uses to detect shared libraries,
7414 *** $file_magic_cmd, produces output that libtool cannot recognize.
7415 *** The result is that libtool may fail to recognize shared libraries
7416 *** as such.  This will affect the creation of libtool libraries that
7417 *** depend on shared libraries, but programs linked with such libtool
7418 *** libraries will work regardless of this problem.  Nevertheless, you
7419 *** may want to report the problem to your system manager and/or to
7420 *** bug-libtool@gnu.org
7421
7422 EOF
7423           fi ;;
7424         esac
7425       fi
7426       break
7427     fi
7428   done
7429   IFS="$lt_save_ifs"
7430   MAGIC_CMD="$lt_save_MAGIC_CMD"
7431   ;;
7432 esac
7433 fi
7434
7435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7436 if test -n "$MAGIC_CMD"; then
7437   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7438 echo "${ECHO_T}$MAGIC_CMD" >&6
7439 else
7440   echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6
7442 fi
7443
7444 if test -z "$lt_cv_path_MAGIC_CMD"; then
7445   if test -n "$ac_tool_prefix"; then
7446     echo "$as_me:$LINENO: checking for file" >&5
7447 echo $ECHO_N "checking for file... $ECHO_C" >&6
7448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   case $MAGIC_CMD in
7452 [\\/*] |  ?:[\\/]*)
7453   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454   ;;
7455 *)
7456   lt_save_MAGIC_CMD="$MAGIC_CMD"
7457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459   for ac_dir in $ac_dummy; do
7460     IFS="$lt_save_ifs"
7461     test -z "$ac_dir" && ac_dir=.
7462     if test -f $ac_dir/file; then
7463       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7464       if test -n "$file_magic_test_file"; then
7465         case $deplibs_check_method in
7466         "file_magic "*)
7467           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470             $EGREP "$file_magic_regex" > /dev/null; then
7471             :
7472           else
7473             cat <<EOF 1>&2
7474
7475 *** Warning: the command libtool uses to detect shared libraries,
7476 *** $file_magic_cmd, produces output that libtool cannot recognize.
7477 *** The result is that libtool may fail to recognize shared libraries
7478 *** as such.  This will affect the creation of libtool libraries that
7479 *** depend on shared libraries, but programs linked with such libtool
7480 *** libraries will work regardless of this problem.  Nevertheless, you
7481 *** may want to report the problem to your system manager and/or to
7482 *** bug-libtool@gnu.org
7483
7484 EOF
7485           fi ;;
7486         esac
7487       fi
7488       break
7489     fi
7490   done
7491   IFS="$lt_save_ifs"
7492   MAGIC_CMD="$lt_save_MAGIC_CMD"
7493   ;;
7494 esac
7495 fi
7496
7497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498 if test -n "$MAGIC_CMD"; then
7499   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7500 echo "${ECHO_T}$MAGIC_CMD" >&6
7501 else
7502   echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7504 fi
7505
7506   else
7507     MAGIC_CMD=:
7508   fi
7509 fi
7510
7511   fi
7512   ;;
7513 esac
7514
7515 enable_dlopen=yes
7516 enable_win32_dll=yes
7517
7518 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7519 if test "${enable_libtool_lock+set}" = set; then
7520   enableval="$enable_libtool_lock"
7521
7522 fi;
7523 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7524
7525
7526 # Check whether --with-pic or --without-pic was given.
7527 if test "${with_pic+set}" = set; then
7528   withval="$with_pic"
7529   pic_mode="$withval"
7530 else
7531   pic_mode=default
7532 fi;
7533 test -z "$pic_mode" && pic_mode=default
7534
7535 # Use C for the default configuration in the libtool script
7536 tagname=
7537 lt_save_CC="$CC"
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543
7544
7545 # Source file extension for C test sources.
7546 ac_ext=c
7547
7548 # Object file extension for compiled C test sources.
7549 objext=o
7550 objext=$objext
7551
7552 # Code to be used in simple compile tests
7553 lt_simple_compile_test_code="int some_variable = 0;\n"
7554
7555 # Code to be used in simple link tests
7556 lt_simple_link_test_code='int main(){return(0);}\n'
7557
7558
7559 # If no C compiler was specified, use CC.
7560 LTCC=${LTCC-"$CC"}
7561
7562 # Allow CC to be a program name with arguments.
7563 compiler=$CC
7564
7565
7566 # save warnings/boilerplate of simple test code
7567 ac_outfile=conftest.$ac_objext
7568 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7569 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7570 _lt_compiler_boilerplate=`cat conftest.err`
7571 $rm conftest*
7572
7573 ac_outfile=conftest.$ac_objext
7574 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7575 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7576 _lt_linker_boilerplate=`cat conftest.err`
7577 $rm conftest*
7578
7579
7580 #
7581 # Check for any special shared library compilation flags.
7582 #
7583 lt_prog_cc_shlib=
7584 if test "$GCC" = no; then
7585   case $host_os in
7586   sco3.2v5*)
7587     lt_prog_cc_shlib='-belf'
7588     ;;
7589   esac
7590 fi
7591 if test -n "$lt_prog_cc_shlib"; then
7592   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7593 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7594   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7595   else
7596     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7597 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7598     lt_cv_prog_cc_can_build_shared=no
7599   fi
7600 fi
7601
7602
7603 #
7604 # Check to make sure the static flag actually works.
7605 #
7606 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7607 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7608 if test "${lt_prog_compiler_static_works+set}" = set; then
7609   echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611   lt_prog_compiler_static_works=no
7612    save_LDFLAGS="$LDFLAGS"
7613    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7614    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7616      # The linker can only warn and ignore the option if not recognized
7617      # So say no if there are warnings
7618      if test -s conftest.err; then
7619        # Append any errors to the config.log.
7620        cat conftest.err 1>&5
7621        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7622        $SED '/^$/d' conftest.err >conftest.er2
7623        if diff conftest.exp conftest.er2 >/dev/null; then
7624          lt_prog_compiler_static_works=yes
7625        fi
7626      else
7627        lt_prog_compiler_static_works=yes
7628      fi
7629    fi
7630    $rm conftest*
7631    LDFLAGS="$save_LDFLAGS"
7632
7633 fi
7634 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7635 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7636
7637 if test x"$lt_prog_compiler_static_works" = xyes; then
7638     :
7639 else
7640     lt_prog_compiler_static=
7641 fi
7642
7643
7644
7645
7646 lt_prog_compiler_no_builtin_flag=
7647
7648 if test "$GCC" = yes; then
7649   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7650
7651
7652 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   lt_cv_prog_compiler_rtti_exceptions=no
7658   ac_outfile=conftest.$ac_objext
7659    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7660    lt_compiler_flag="-fno-rtti -fno-exceptions"
7661    # Insert the option either (1) after the last *FLAGS variable, or
7662    # (2) before a word containing "conftest.", or (3) at the end.
7663    # Note that $ac_compile itself does not contain backslashes and begins
7664    # with a dollar sign (not a hyphen), so the echo should work correctly.
7665    # The option is referenced via a variable to avoid confusing sed.
7666    lt_compile=`echo "$ac_compile" | $SED \
7667    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7668    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7669    -e 's:$: $lt_compiler_flag:'`
7670    (eval echo "\"\$as_me:7670: $lt_compile\"" >&5)
7671    (eval "$lt_compile" 2>conftest.err)
7672    ac_status=$?
7673    cat conftest.err >&5
7674    echo "$as_me:7674: \$? = $ac_status" >&5
7675    if (exit $ac_status) && test -s "$ac_outfile"; then
7676      # The compiler can only warn and ignore the option if not recognized
7677      # So say no if there are warnings other than the usual output.
7678      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7679      $SED '/^$/d' conftest.err >conftest.er2
7680      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7681        lt_cv_prog_compiler_rtti_exceptions=yes
7682      fi
7683    fi
7684    $rm conftest*
7685
7686 fi
7687 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7689
7690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7691     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7692 else
7693     :
7694 fi
7695
7696 fi
7697
7698 lt_prog_compiler_wl=
7699 lt_prog_compiler_pic=
7700 lt_prog_compiler_static=
7701
7702 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7704
7705   if test "$GCC" = yes; then
7706     lt_prog_compiler_wl='-Wl,'
7707     lt_prog_compiler_static='-static'
7708
7709     case $host_os in
7710       aix*)
7711       # All AIX code is PIC.
7712       if test "$host_cpu" = ia64; then
7713         # AIX 5 now supports IA64 processor
7714         lt_prog_compiler_static='-Bstatic'
7715       fi
7716       ;;
7717
7718     amigaos*)
7719       # FIXME: we need at least 68020 code to build shared libraries, but
7720       # adding the `-m68020' flag to GCC prevents building anything better,
7721       # like `-m68040'.
7722       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7723       ;;
7724
7725     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7726       # PIC is the default for these OSes.
7727       ;;
7728
7729     mingw* | pw32* | os2*)
7730       # This hack is so that the source file can tell whether it is being
7731       # built for inclusion in a dll (and should export symbols for example).
7732       lt_prog_compiler_pic='-DDLL_EXPORT'
7733       ;;
7734
7735     darwin* | rhapsody*)
7736       # PIC is the default on this platform
7737       # Common symbols not allowed in MH_DYLIB files
7738       lt_prog_compiler_pic='-fno-common'
7739       ;;
7740
7741     msdosdjgpp*)
7742       # Just because we use GCC doesn't mean we suddenly get shared libraries
7743       # on systems that don't support them.
7744       lt_prog_compiler_can_build_shared=no
7745       enable_shared=no
7746       ;;
7747
7748     sysv4*MP*)
7749       if test -d /usr/nec; then
7750         lt_prog_compiler_pic=-Kconform_pic
7751       fi
7752       ;;
7753
7754     hpux*)
7755       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7756       # not for PA HP-UX.
7757       case $host_cpu in
7758       hppa*64*|ia64*)
7759         # +Z the default
7760         ;;
7761       *)
7762         lt_prog_compiler_pic='-fPIC'
7763         ;;
7764       esac
7765       ;;
7766
7767     *)
7768       lt_prog_compiler_pic='-fPIC'
7769       ;;
7770     esac
7771   else
7772     # PORTME Check for flag to pass linker flags through the system compiler.
7773     case $host_os in
7774     aix*)
7775       lt_prog_compiler_wl='-Wl,'
7776       if test "$host_cpu" = ia64; then
7777         # AIX 5 now supports IA64 processor
7778         lt_prog_compiler_static='-Bstatic'
7779       else
7780         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7781       fi
7782       ;;
7783       darwin*)
7784         # PIC is the default on this platform
7785         # Common symbols not allowed in MH_DYLIB files
7786        case $cc_basename in
7787          xlc*)
7788          lt_prog_compiler_pic='-qnocommon'
7789          lt_prog_compiler_wl='-Wl,'
7790          ;;
7791        esac
7792        ;;
7793
7794     mingw* | pw32* | os2*)
7795       # This hack is so that the source file can tell whether it is being
7796       # built for inclusion in a dll (and should export symbols for example).
7797       lt_prog_compiler_pic='-DDLL_EXPORT'
7798       ;;
7799
7800     hpux9* | hpux10* | hpux11*)
7801       lt_prog_compiler_wl='-Wl,'
7802       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7803       # not for PA HP-UX.
7804       case $host_cpu in
7805       hppa*64*|ia64*)
7806         # +Z the default
7807         ;;
7808       *)
7809         lt_prog_compiler_pic='+Z'
7810         ;;
7811       esac
7812       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7813       lt_prog_compiler_static='${wl}-a ${wl}archive'
7814       ;;
7815
7816     irix5* | irix6* | nonstopux*)
7817       lt_prog_compiler_wl='-Wl,'
7818       # PIC (with -KPIC) is the default.
7819       lt_prog_compiler_static='-non_shared'
7820       ;;
7821
7822     newsos6)
7823       lt_prog_compiler_pic='-KPIC'
7824       lt_prog_compiler_static='-Bstatic'
7825       ;;
7826
7827     linux*)
7828       case $cc_basename in
7829       icc* | ecc*)
7830         lt_prog_compiler_wl='-Wl,'
7831         lt_prog_compiler_pic='-KPIC'
7832         lt_prog_compiler_static='-static'
7833         ;;
7834       pgcc* | pgf77* | pgf90* | pgf95*)
7835         # Portland Group compilers (*not* the Pentium gcc compiler,
7836         # which looks to be a dead project)
7837         lt_prog_compiler_wl='-Wl,'
7838         lt_prog_compiler_pic='-fpic'
7839         lt_prog_compiler_static='-Bstatic'
7840         ;;
7841       ccc*)
7842         lt_prog_compiler_wl='-Wl,'
7843         # All Alpha code is PIC.
7844         lt_prog_compiler_static='-non_shared'
7845         ;;
7846       esac
7847       ;;
7848
7849     osf3* | osf4* | osf5*)
7850       lt_prog_compiler_wl='-Wl,'
7851       # All OSF/1 code is PIC.
7852       lt_prog_compiler_static='-non_shared'
7853       ;;
7854
7855     sco3.2v5*)
7856       lt_prog_compiler_pic='-Kpic'
7857       lt_prog_compiler_static='-dn'
7858       ;;
7859
7860     solaris*)
7861       lt_prog_compiler_pic='-KPIC'
7862       lt_prog_compiler_static='-Bstatic'
7863       case $cc_basename in
7864       f77* | f90* | f95*)
7865         lt_prog_compiler_wl='-Qoption ld ';;
7866       *)
7867         lt_prog_compiler_wl='-Wl,';;
7868       esac
7869       ;;
7870
7871     sunos4*)
7872       lt_prog_compiler_wl='-Qoption ld '
7873       lt_prog_compiler_pic='-PIC'
7874       lt_prog_compiler_static='-Bstatic'
7875       ;;
7876
7877     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7878       lt_prog_compiler_wl='-Wl,'
7879       lt_prog_compiler_pic='-KPIC'
7880       lt_prog_compiler_static='-Bstatic'
7881       ;;
7882
7883     sysv4*MP*)
7884       if test -d /usr/nec ;then
7885         lt_prog_compiler_pic='-Kconform_pic'
7886         lt_prog_compiler_static='-Bstatic'
7887       fi
7888       ;;
7889
7890     unicos*)
7891       lt_prog_compiler_wl='-Wl,'
7892       lt_prog_compiler_can_build_shared=no
7893       ;;
7894
7895     uts4*)
7896       lt_prog_compiler_pic='-pic'
7897       lt_prog_compiler_static='-Bstatic'
7898       ;;
7899
7900     *)
7901       lt_prog_compiler_can_build_shared=no
7902       ;;
7903     esac
7904   fi
7905
7906 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7907 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7908
7909 #
7910 # Check to make sure the PIC flag actually works.
7911 #
7912 if test -n "$lt_prog_compiler_pic"; then
7913
7914 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7915 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7916 if test "${lt_prog_compiler_pic_works+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   lt_prog_compiler_pic_works=no
7920   ac_outfile=conftest.$ac_objext
7921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7922    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7923    # Insert the option either (1) after the last *FLAGS variable, or
7924    # (2) before a word containing "conftest.", or (3) at the end.
7925    # Note that $ac_compile itself does not contain backslashes and begins
7926    # with a dollar sign (not a hyphen), so the echo should work correctly.
7927    # The option is referenced via a variable to avoid confusing sed.
7928    lt_compile=`echo "$ac_compile" | $SED \
7929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7931    -e 's:$: $lt_compiler_flag:'`
7932    (eval echo "\"\$as_me:7932: $lt_compile\"" >&5)
7933    (eval "$lt_compile" 2>conftest.err)
7934    ac_status=$?
7935    cat conftest.err >&5
7936    echo "$as_me:7936: \$? = $ac_status" >&5
7937    if (exit $ac_status) && test -s "$ac_outfile"; then
7938      # The compiler can only warn and ignore the option if not recognized
7939      # So say no if there are warnings other than the usual output.
7940      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7941      $SED '/^$/d' conftest.err >conftest.er2
7942      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7943        lt_prog_compiler_pic_works=yes
7944      fi
7945    fi
7946    $rm conftest*
7947
7948 fi
7949 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7950 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7951
7952 if test x"$lt_prog_compiler_pic_works" = xyes; then
7953     case $lt_prog_compiler_pic in
7954      "" | " "*) ;;
7955      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7956      esac
7957 else
7958     lt_prog_compiler_pic=
7959      lt_prog_compiler_can_build_shared=no
7960 fi
7961
7962 fi
7963 case $host_os in
7964   # For platforms which do not support PIC, -DPIC is meaningless:
7965   *djgpp*)
7966     lt_prog_compiler_pic=
7967     ;;
7968   *)
7969     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7970     ;;
7971 esac
7972
7973 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7974 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7975 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   lt_cv_prog_compiler_c_o=no
7979    $rm -r conftest 2>/dev/null
7980    mkdir conftest
7981    cd conftest
7982    mkdir out
7983    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7984
7985    lt_compiler_flag="-o out/conftest2.$ac_objext"
7986    # Insert the option either (1) after the last *FLAGS variable, or
7987    # (2) before a word containing "conftest.", or (3) at the end.
7988    # Note that $ac_compile itself does not contain backslashes and begins
7989    # with a dollar sign (not a hyphen), so the echo should work correctly.
7990    lt_compile=`echo "$ac_compile" | $SED \
7991    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7992    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7993    -e 's:$: $lt_compiler_flag:'`
7994    (eval echo "\"\$as_me:7994: $lt_compile\"" >&5)
7995    (eval "$lt_compile" 2>out/conftest.err)
7996    ac_status=$?
7997    cat out/conftest.err >&5
7998    echo "$as_me:7998: \$? = $ac_status" >&5
7999    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8000    then
8001      # The compiler can only warn and ignore the option if not recognized
8002      # So say no if there are warnings
8003      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8004      $SED '/^$/d' out/conftest.err >out/conftest.er2
8005      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8006        lt_cv_prog_compiler_c_o=yes
8007      fi
8008    fi
8009    chmod u+w . 2>&5
8010    $rm conftest*
8011    # SGI C++ compiler will create directory out/ii_files/ for
8012    # template instantiation
8013    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8014    $rm out/* && rmdir out
8015    cd ..
8016    rmdir conftest
8017    $rm conftest*
8018
8019 fi
8020 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8021 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8022
8023
8024 hard_links="nottested"
8025 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8026   # do not overwrite the value of need_locks provided by the user
8027   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8028 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8029   hard_links=yes
8030   $rm conftest*
8031   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8032   touch conftest.a
8033   ln conftest.a conftest.b 2>&5 || hard_links=no
8034   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8035   echo "$as_me:$LINENO: result: $hard_links" >&5
8036 echo "${ECHO_T}$hard_links" >&6
8037   if test "$hard_links" = no; then
8038     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8039 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8040     need_locks=warn
8041   fi
8042 else
8043   need_locks=no
8044 fi
8045
8046 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8047 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8048
8049   runpath_var=
8050   allow_undefined_flag=
8051   enable_shared_with_static_runtimes=no
8052   archive_cmds=
8053   archive_expsym_cmds=
8054   old_archive_From_new_cmds=
8055   old_archive_from_expsyms_cmds=
8056   export_dynamic_flag_spec=
8057   whole_archive_flag_spec=
8058   thread_safe_flag_spec=
8059   hardcode_libdir_flag_spec=
8060   hardcode_libdir_flag_spec_ld=
8061   hardcode_libdir_separator=
8062   hardcode_direct=no
8063   hardcode_minus_L=no
8064   hardcode_shlibpath_var=unsupported
8065   link_all_deplibs=unknown
8066   hardcode_automatic=no
8067   module_cmds=
8068   module_expsym_cmds=
8069   always_export_symbols=no
8070   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8071   # include_expsyms should be a list of space-separated symbols to be *always*
8072   # included in the symbol list
8073   include_expsyms=
8074   # exclude_expsyms can be an extended regexp of symbols to exclude
8075   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8076   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8077   # as well as any symbol that contains `d'.
8078   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8079   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8080   # platforms (ab)use it in PIC code, but their linkers get confused if
8081   # the symbol is explicitly referenced.  Since portable code cannot
8082   # rely on this symbol name, it's probably fine to never include it in
8083   # preloaded symbol tables.
8084   extract_expsyms_cmds=
8085   # Just being paranoid about ensuring that cc_basename is set.
8086   for cc_temp in $compiler""; do
8087   case $cc_temp in
8088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8090     \-*) ;;
8091     *) break;;
8092   esac
8093 done
8094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8095
8096   case $host_os in
8097   cygwin* | mingw* | pw32*)
8098     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8099     # When not using gcc, we currently assume that we are using
8100     # Microsoft Visual C++.
8101     if test "$GCC" != yes; then
8102       with_gnu_ld=no
8103     fi
8104     ;;
8105   openbsd*)
8106     with_gnu_ld=no
8107     ;;
8108   esac
8109
8110   ld_shlibs=yes
8111   if test "$with_gnu_ld" = yes; then
8112     # If archive_cmds runs LD, not CC, wlarc should be empty
8113     wlarc='${wl}'
8114
8115     # Set some defaults for GNU ld with shared library support. These
8116     # are reset later if shared libraries are not supported. Putting them
8117     # here allows them to be overridden if necessary.
8118     runpath_var=LD_RUN_PATH
8119     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8120     export_dynamic_flag_spec='${wl}--export-dynamic'
8121     # ancient GNU ld didn't support --whole-archive et. al.
8122     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8123         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8124       else
8125         whole_archive_flag_spec=
8126     fi
8127     supports_anon_versioning=no
8128     case `$LD -v 2>/dev/null` in
8129       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8130       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8131       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8132       *\ 2.11.*) ;; # other 2.11 versions
8133       *) supports_anon_versioning=yes ;;
8134     esac
8135
8136     # See if GNU ld supports shared libraries.
8137     case $host_os in
8138     aix3* | aix4* | aix5*)
8139       # On AIX/PPC, the GNU linker is very broken
8140       if test "$host_cpu" != ia64; then
8141         ld_shlibs=no
8142         cat <<EOF 1>&2
8143
8144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8145 *** to be unable to reliably create shared libraries on AIX.
8146 *** Therefore, libtool is disabling shared libraries support.  If you
8147 *** really care for shared libraries, you may want to modify your PATH
8148 *** so that a non-GNU linker is found, and then restart.
8149
8150 EOF
8151       fi
8152       ;;
8153
8154     amigaos*)
8155       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)'
8156       hardcode_libdir_flag_spec='-L$libdir'
8157       hardcode_minus_L=yes
8158
8159       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8160       # that the semantics of dynamic libraries on AmigaOS, at least up
8161       # to version 4, is to share data among multiple programs linked
8162       # with the same dynamic library.  Since this doesn't match the
8163       # behavior of shared libraries on other platforms, we can't use
8164       # them.
8165       ld_shlibs=no
8166       ;;
8167
8168     beos*)
8169       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8170         allow_undefined_flag=unsupported
8171         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8172         # support --undefined.  This deserves some investigation.  FIXME
8173         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174       else
8175         ld_shlibs=no
8176       fi
8177       ;;
8178
8179     cygwin* | mingw* | pw32*)
8180       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8181       # as there is no search path for DLLs.
8182       hardcode_libdir_flag_spec='-L$libdir'
8183       allow_undefined_flag=unsupported
8184       always_export_symbols=no
8185       enable_shared_with_static_runtimes=yes
8186       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8187
8188       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8189         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8190         # If the export-symbols file already is a .def file (1st line
8191         # is EXPORTS), use it as is; otherwise, prepend...
8192         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8193           cp $export_symbols $output_objdir/$soname.def;
8194         else
8195           echo EXPORTS > $output_objdir/$soname.def;
8196           cat $export_symbols >> $output_objdir/$soname.def;
8197         fi~
8198         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8199       else
8200         ld_shlibs=no
8201       fi
8202       ;;
8203
8204     linux*)
8205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206         tmp_addflag=
8207         case $cc_basename,$host_cpu in
8208         pgcc*)                          # Portland Group C compiler
8209           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'
8210           tmp_addflag=' $pic_flag'
8211           ;;
8212         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8213           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'
8214           tmp_addflag=' $pic_flag -Mnomain' ;;
8215         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8216           tmp_addflag=' -i_dynamic' ;;
8217         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8218           tmp_addflag=' -i_dynamic -nofor_main' ;;
8219         ifc* | ifort*)                  # Intel Fortran compiler
8220           tmp_addflag=' -nofor_main' ;;
8221         esac
8222         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223
8224         if test $supports_anon_versioning = yes; then
8225           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8226   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8227   $echo "local: *; };" >> $output_objdir/$libname.ver~
8228           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8229         fi
8230       else
8231         ld_shlibs=no
8232       fi
8233       ;;
8234
8235     netbsd*)
8236       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8238         wlarc=
8239       else
8240         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242       fi
8243       ;;
8244
8245     solaris* | sysv5*)
8246       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8247         ld_shlibs=no
8248         cat <<EOF 1>&2
8249
8250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8251 *** create shared libraries on Solaris systems.  Therefore, libtool
8252 *** is disabling shared libraries support.  We urge you to upgrade GNU
8253 *** binutils to release 2.9.1 or newer.  Another option is to modify
8254 *** your PATH or compiler configuration so that the native linker is
8255 *** used, and then restart.
8256
8257 EOF
8258       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261       else
8262         ld_shlibs=no
8263       fi
8264       ;;
8265
8266     sunos4*)
8267       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8268       wlarc=
8269       hardcode_direct=yes
8270       hardcode_shlibpath_var=no
8271       ;;
8272
8273     *)
8274       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8275         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8277       else
8278         ld_shlibs=no
8279       fi
8280       ;;
8281     esac
8282
8283     if test "$ld_shlibs" = no; then
8284       runpath_var=
8285       hardcode_libdir_flag_spec=
8286       export_dynamic_flag_spec=
8287       whole_archive_flag_spec=
8288     fi
8289   else
8290     # PORTME fill in a description of your system's linker (not GNU ld)
8291     case $host_os in
8292     aix3*)
8293       allow_undefined_flag=unsupported
8294       always_export_symbols=yes
8295       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'
8296       # Note: this linker hardcodes the directories in LIBPATH if there
8297       # are no directories specified by -L.
8298       hardcode_minus_L=yes
8299       if test "$GCC" = yes && test -z "$link_static_flag"; then
8300         # Neither direct hardcoding nor static linking is supported with a
8301         # broken collect2.
8302         hardcode_direct=unsupported
8303       fi
8304       ;;
8305
8306     aix4* | aix5*)
8307       if test "$host_cpu" = ia64; then
8308         # On IA64, the linker does run time linking by default, so we don't
8309         # have to do anything special.
8310         aix_use_runtimelinking=no
8311         exp_sym_flag='-Bexport'
8312         no_entry_flag=""
8313       else
8314         # If we're using GNU nm, then we don't want the "-C" option.
8315         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8316         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8317           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'
8318         else
8319           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'
8320         fi
8321         aix_use_runtimelinking=no
8322
8323         # Test if we are trying to use run time linking or normal
8324         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8325         # need to do runtime linking.
8326         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8327           for ld_flag in $LDFLAGS; do
8328           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8329             aix_use_runtimelinking=yes
8330             break
8331           fi
8332           done
8333         esac
8334
8335         exp_sym_flag='-bexport'
8336         no_entry_flag='-bnoentry'
8337       fi
8338
8339       # When large executables or shared objects are built, AIX ld can
8340       # have problems creating the table of contents.  If linking a library
8341       # or program results in "error TOC overflow" add -mminimal-toc to
8342       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8343       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8344
8345       archive_cmds=''
8346       hardcode_direct=yes
8347       hardcode_libdir_separator=':'
8348       link_all_deplibs=yes
8349
8350       if test "$GCC" = yes; then
8351         case $host_os in aix4.[012]|aix4.[012].*)
8352         # We only want to do this on AIX 4.2 and lower, the check
8353         # below for broken collect2 doesn't work under 4.3+
8354           collect2name=`${CC} -print-prog-name=collect2`
8355           if test -f "$collect2name" && \
8356            strings "$collect2name" | grep resolve_lib_name >/dev/null
8357           then
8358           # We have reworked collect2
8359           hardcode_direct=yes
8360           else
8361           # We have old collect2
8362           hardcode_direct=unsupported
8363           # It fails to find uninstalled libraries when the uninstalled
8364           # path is not listed in the libpath.  Setting hardcode_minus_L
8365           # to unsupported forces relinking
8366           hardcode_minus_L=yes
8367           hardcode_libdir_flag_spec='-L$libdir'
8368           hardcode_libdir_separator=
8369           fi
8370         esac
8371         shared_flag='-shared'
8372         if test "$aix_use_runtimelinking" = yes; then
8373           shared_flag="$shared_flag "'${wl}-G'
8374         fi
8375       else
8376         # not using gcc
8377         if test "$host_cpu" = ia64; then
8378         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379         # chokes on -Wl,-G. The following line is correct:
8380           shared_flag='-G'
8381         else
8382         if test "$aix_use_runtimelinking" = yes; then
8383             shared_flag='${wl}-G'
8384           else
8385             shared_flag='${wl}-bM:SRE'
8386         fi
8387         fi
8388       fi
8389
8390       # It seems that -bexpall does not export symbols beginning with
8391       # underscore (_), so it is better to generate a list of symbols to export.
8392       always_export_symbols=yes
8393       if test "$aix_use_runtimelinking" = yes; then
8394         # Warning - without using the other runtime loading flags (-brtl),
8395         # -berok will link without error, but may produce a broken library.
8396         allow_undefined_flag='-berok'
8397        # Determine the default libpath from the value encoded in an empty executable.
8398        cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404
8405 int
8406 main ()
8407 {
8408
8409   ;
8410   return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415   (eval $ac_link) 2>conftest.er1
8416   ac_status=$?
8417   grep -v '^ *+' conftest.er1 >conftest.err
8418   rm -f conftest.er1
8419   cat conftest.err >&5
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); } &&
8422          { ac_try='test -z "$ac_c_werror_flag"
8423                          || test ! -s conftest.err'
8424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425   (eval $ac_try) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); }; } &&
8429          { ac_try='test -s conftest$ac_exeext'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; }; then
8435
8436 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8437 }'`
8438 # Check for a 64-bit object if we didn't find anything.
8439 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; }
8440 }'`; fi
8441 else
8442   echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8444
8445 fi
8446 rm -f conftest.err conftest.$ac_objext \
8447       conftest$ac_exeext conftest.$ac_ext
8448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8449
8450        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8451         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"
8452        else
8453         if test "$host_cpu" = ia64; then
8454           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8455           allow_undefined_flag="-z nodefs"
8456           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"
8457         else
8458          # Determine the default libpath from the value encoded in an empty executable.
8459          cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h.  */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h.  */
8465
8466 int
8467 main ()
8468 {
8469
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476   (eval $ac_link) 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag"
8484                          || test ! -s conftest.err'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; } &&
8490          { ac_try='test -s conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496
8497 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8498 }'`
8499 # Check for a 64-bit object if we didn't find anything.
8500 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; }
8501 }'`; fi
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 fi
8507 rm -f conftest.err conftest.$ac_objext \
8508       conftest$ac_exeext conftest.$ac_ext
8509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8510
8511          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8512           # Warning - without using the other run time loading flags,
8513           # -berok will link without error, but may produce a broken library.
8514           no_undefined_flag=' ${wl}-bernotok'
8515           allow_undefined_flag=' ${wl}-berok'
8516           # -bexpall does not export symbols beginning with underscore (_)
8517           always_export_symbols=yes
8518           # Exported symbols can be pulled into shared objects from archives
8519           whole_archive_flag_spec=' '
8520           archive_cmds_need_lc=yes
8521           # This is similar to how AIX traditionally builds its shared libraries.
8522           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'
8523         fi
8524       fi
8525       ;;
8526
8527     amigaos*)
8528       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)'
8529       hardcode_libdir_flag_spec='-L$libdir'
8530       hardcode_minus_L=yes
8531       # see comment about different semantics on the GNU ld section
8532       ld_shlibs=no
8533       ;;
8534
8535     bsdi[45]*)
8536       export_dynamic_flag_spec=-rdynamic
8537       ;;
8538
8539     cygwin* | mingw* | pw32*)
8540       # When not using gcc, we currently assume that we are using
8541       # Microsoft Visual C++.
8542       # hardcode_libdir_flag_spec is actually meaningless, as there is
8543       # no search path for DLLs.
8544       hardcode_libdir_flag_spec=' '
8545       allow_undefined_flag=unsupported
8546       # Tell ltmain to make .lib files, not .a files.
8547       libext=lib
8548       # Tell ltmain to make .dll files, not .so files.
8549       shrext_cmds=".dll"
8550       # FIXME: Setting linknames here is a bad hack.
8551       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8552       # The linker will automatically build a .lib file if we build a DLL.
8553       old_archive_From_new_cmds='true'
8554       # FIXME: Should let the user specify the lib program.
8555       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8556       fix_srcfile_path='`cygpath -w "$srcfile"`'
8557       enable_shared_with_static_runtimes=yes
8558       ;;
8559
8560     darwin* | rhapsody*)
8561       case $host_os in
8562         rhapsody* | darwin1.[012])
8563          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8564          ;;
8565        *) # Darwin 1.3 on
8566          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8567            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8568          else
8569            case ${MACOSX_DEPLOYMENT_TARGET} in
8570              10.[012])
8571                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8572                ;;
8573              10.*)
8574                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8575                ;;
8576            esac
8577          fi
8578          ;;
8579       esac
8580       archive_cmds_need_lc=no
8581       hardcode_direct=no
8582       hardcode_automatic=yes
8583       hardcode_shlibpath_var=unsupported
8584       whole_archive_flag_spec=''
8585       link_all_deplibs=yes
8586     if test "$GCC" = yes ; then
8587         output_verbose_link_cmd='echo'
8588         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8589       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8590       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8591       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}'
8592       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}'
8593     else
8594       case $cc_basename in
8595         xlc*)
8596          output_verbose_link_cmd='echo'
8597          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8598          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8599           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8600          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}'
8601           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}'
8602           ;;
8603        *)
8604          ld_shlibs=no
8605           ;;
8606       esac
8607     fi
8608       ;;
8609
8610     dgux*)
8611       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8612       hardcode_libdir_flag_spec='-L$libdir'
8613       hardcode_shlibpath_var=no
8614       ;;
8615
8616     freebsd1*)
8617       ld_shlibs=no
8618       ;;
8619
8620     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8621     # support.  Future versions do this automatically, but an explicit c++rt0.o
8622     # does not break anything, and helps significantly (at the cost of a little
8623     # extra space).
8624     freebsd2.2*)
8625       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8626       hardcode_libdir_flag_spec='-R$libdir'
8627       hardcode_direct=yes
8628       hardcode_shlibpath_var=no
8629       ;;
8630
8631     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8632     freebsd2*)
8633       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8634       hardcode_direct=yes
8635       hardcode_minus_L=yes
8636       hardcode_shlibpath_var=no
8637       ;;
8638
8639     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8640     freebsd* | kfreebsd*-gnu | dragonfly*)
8641       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8642       hardcode_libdir_flag_spec='-R$libdir'
8643       hardcode_direct=yes
8644       hardcode_shlibpath_var=no
8645       ;;
8646
8647     hpux9*)
8648       if test "$GCC" = yes; then
8649         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'
8650       else
8651         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'
8652       fi
8653       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8654       hardcode_libdir_separator=:
8655       hardcode_direct=yes
8656
8657       # hardcode_minus_L: Not really in the search PATH,
8658       # but as the default location of the library.
8659       hardcode_minus_L=yes
8660       export_dynamic_flag_spec='${wl}-E'
8661       ;;
8662
8663     hpux10* | hpux11*)
8664       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8665         case $host_cpu in
8666         hppa*64*|ia64*)
8667           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8668           ;;
8669         *)
8670           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671           ;;
8672         esac
8673       else
8674         case $host_cpu in
8675         hppa*64*|ia64*)
8676           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8677           ;;
8678         *)
8679           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8680           ;;
8681         esac
8682       fi
8683       if test "$with_gnu_ld" = no; then
8684         case $host_cpu in
8685         hppa*64*)
8686           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8687           hardcode_libdir_flag_spec_ld='+b $libdir'
8688           hardcode_libdir_separator=:
8689           hardcode_direct=no
8690           hardcode_shlibpath_var=no
8691           ;;
8692         ia64*)
8693           hardcode_libdir_flag_spec='-L$libdir'
8694           hardcode_direct=no
8695           hardcode_shlibpath_var=no
8696
8697           # hardcode_minus_L: Not really in the search PATH,
8698           # but as the default location of the library.
8699           hardcode_minus_L=yes
8700           ;;
8701         *)
8702           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703           hardcode_libdir_separator=:
8704           hardcode_direct=yes
8705           export_dynamic_flag_spec='${wl}-E'
8706
8707           # hardcode_minus_L: Not really in the search PATH,
8708           # but as the default location of the library.
8709           hardcode_minus_L=yes
8710           ;;
8711         esac
8712       fi
8713       ;;
8714
8715     irix5* | irix6* | nonstopux*)
8716       if test "$GCC" = yes; then
8717         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'
8718       else
8719         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'
8720         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8721       fi
8722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723       hardcode_libdir_separator=:
8724       link_all_deplibs=yes
8725       ;;
8726
8727     netbsd*)
8728       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8729         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8730       else
8731         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8732       fi
8733       hardcode_libdir_flag_spec='-R$libdir'
8734       hardcode_direct=yes
8735       hardcode_shlibpath_var=no
8736       ;;
8737
8738     newsos6)
8739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740       hardcode_direct=yes
8741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742       hardcode_libdir_separator=:
8743       hardcode_shlibpath_var=no
8744       ;;
8745
8746     openbsd*)
8747       hardcode_direct=yes
8748       hardcode_shlibpath_var=no
8749       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8750         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8751         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8752         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8753         export_dynamic_flag_spec='${wl}-E'
8754       else
8755        case $host_os in
8756          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8757            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758            hardcode_libdir_flag_spec='-R$libdir'
8759            ;;
8760          *)
8761            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8762            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8763            ;;
8764        esac
8765       fi
8766       ;;
8767
8768     os2*)
8769       hardcode_libdir_flag_spec='-L$libdir'
8770       hardcode_minus_L=yes
8771       allow_undefined_flag=unsupported
8772       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'
8773       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8774       ;;
8775
8776     osf3*)
8777       if test "$GCC" = yes; then
8778         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8779         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'
8780       else
8781         allow_undefined_flag=' -expect_unresolved \*'
8782         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'
8783       fi
8784       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785       hardcode_libdir_separator=:
8786       ;;
8787
8788     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8789       if test "$GCC" = yes; then
8790         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8791         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'
8792         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793       else
8794         allow_undefined_flag=' -expect_unresolved \*'
8795         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'
8796         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8797         $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'
8798
8799         # Both c and cxx compiler support -rpath directly
8800         hardcode_libdir_flag_spec='-rpath $libdir'
8801       fi
8802       hardcode_libdir_separator=:
8803       ;;
8804
8805     sco3.2v5*)
8806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807       hardcode_shlibpath_var=no
8808       export_dynamic_flag_spec='${wl}-Bexport'
8809       runpath_var=LD_RUN_PATH
8810       hardcode_runpath_var=yes
8811       ;;
8812
8813     solaris*)
8814       no_undefined_flag=' -z text'
8815       if test "$GCC" = yes; then
8816         wlarc='${wl}'
8817         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8819           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8820       else
8821         wlarc=''
8822         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8824         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825       fi
8826       hardcode_libdir_flag_spec='-R$libdir'
8827       hardcode_shlibpath_var=no
8828       case $host_os in
8829       solaris2.[0-5] | solaris2.[0-5].*) ;;
8830       *)
8831         # The compiler driver will combine linker options so we
8832         # cannot just pass the convience library names through
8833         # without $wl, iff we do not link with $LD.
8834         # Luckily, gcc supports the same syntax we need for Sun Studio.
8835         # Supported since Solaris 2.6 (maybe 2.5.1?)
8836         case $wlarc in
8837         '')
8838           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839         *)
8840           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' ;;
8841         esac ;;
8842       esac
8843       link_all_deplibs=yes
8844       ;;
8845
8846     sunos4*)
8847       if test "x$host_vendor" = xsequent; then
8848         # Use $CC to link under sequent, because it throws in some extra .o
8849         # files that make .init and .fini sections work.
8850         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851       else
8852         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853       fi
8854       hardcode_libdir_flag_spec='-L$libdir'
8855       hardcode_direct=yes
8856       hardcode_minus_L=yes
8857       hardcode_shlibpath_var=no
8858       ;;
8859
8860     sysv4)
8861       case $host_vendor in
8862         sni)
8863           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864           hardcode_direct=yes # is this really true???
8865         ;;
8866         siemens)
8867           ## LD is ld it makes a PLAMLIB
8868           ## CC just makes a GrossModule.
8869           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870           reload_cmds='$CC -r -o $output$reload_objs'
8871           hardcode_direct=no
8872         ;;
8873         motorola)
8874           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876         ;;
8877       esac
8878       runpath_var='LD_RUN_PATH'
8879       hardcode_shlibpath_var=no
8880       ;;
8881
8882     sysv4.3*)
8883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884       hardcode_shlibpath_var=no
8885       export_dynamic_flag_spec='-Bexport'
8886       ;;
8887
8888     sysv4*MP*)
8889       if test -d /usr/nec; then
8890         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891         hardcode_shlibpath_var=no
8892         runpath_var=LD_RUN_PATH
8893         hardcode_runpath_var=yes
8894         ld_shlibs=yes
8895       fi
8896       ;;
8897
8898     sysv4.2uw2*)
8899       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900       hardcode_direct=yes
8901       hardcode_minus_L=no
8902       hardcode_shlibpath_var=no
8903       hardcode_runpath_var=yes
8904       runpath_var=LD_RUN_PATH
8905       ;;
8906
8907    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8908       no_undefined_flag='${wl}-z ${wl}text'
8909       if test "$GCC" = yes; then
8910         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8911       else
8912         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913       fi
8914       runpath_var='LD_RUN_PATH'
8915       hardcode_shlibpath_var=no
8916       ;;
8917
8918     sysv5*)
8919       no_undefined_flag=' -z text'
8920       # $CC -shared without GNU ld will not create a library from C++
8921       # object files and a static libstdc++, better avoid it by now
8922       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8924                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8925       hardcode_libdir_flag_spec=
8926       hardcode_shlibpath_var=no
8927       runpath_var='LD_RUN_PATH'
8928       ;;
8929
8930     uts4*)
8931       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932       hardcode_libdir_flag_spec='-L$libdir'
8933       hardcode_shlibpath_var=no
8934       ;;
8935
8936     *)
8937       ld_shlibs=no
8938       ;;
8939     esac
8940   fi
8941
8942 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8943 echo "${ECHO_T}$ld_shlibs" >&6
8944 test "$ld_shlibs" = no && can_build_shared=no
8945
8946 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8947 if test "$GCC" = yes; then
8948   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8949 fi
8950
8951 #
8952 # Do we need to explicitly link libc?
8953 #
8954 case "x$archive_cmds_need_lc" in
8955 x|xyes)
8956   # Assume -lc should be added
8957   archive_cmds_need_lc=yes
8958
8959   if test "$enable_shared" = yes && test "$GCC" = yes; then
8960     case $archive_cmds in
8961     *'~'*)
8962       # FIXME: we may have to deal with multi-command sequences.
8963       ;;
8964     '$CC '*)
8965       # Test whether the compiler implicitly links with -lc since on some
8966       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8967       # to ld, don't add -lc before -lgcc.
8968       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8969 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8970       $rm conftest*
8971       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974   (eval $ac_compile) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } 2>conftest.err; then
8978         soname=conftest
8979         lib=conftest
8980         libobjs=conftest.$ac_objext
8981         deplibs=
8982         wl=$lt_prog_compiler_wl
8983         compiler_flags=-v
8984         linker_flags=-v
8985         verstring=
8986         output_objdir=.
8987         libname=conftest
8988         lt_save_allow_undefined_flag=$allow_undefined_flag
8989         allow_undefined_flag=
8990         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8991   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }
8995         then
8996           archive_cmds_need_lc=no
8997         else
8998           archive_cmds_need_lc=yes
8999         fi
9000         allow_undefined_flag=$lt_save_allow_undefined_flag
9001       else
9002         cat conftest.err 1>&5
9003       fi
9004       $rm conftest*
9005       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9006 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9007       ;;
9008     esac
9009   fi
9010   ;;
9011 esac
9012
9013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9015 library_names_spec=
9016 libname_spec='lib$name'
9017 soname_spec=
9018 shrext_cmds=".so"
9019 postinstall_cmds=
9020 postuninstall_cmds=
9021 finish_cmds=
9022 finish_eval=
9023 shlibpath_var=
9024 shlibpath_overrides_runpath=unknown
9025 version_type=none
9026 dynamic_linker="$host_os ld.so"
9027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9028 if test "$GCC" = yes; then
9029   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9030   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9031     # if the path contains ";" then we assume it to be the separator
9032     # otherwise default to the standard path separator (i.e. ":") - it is
9033     # assumed that no part of a normal pathname contains ";" but that should
9034     # okay in the real world where ";" in dirpaths is itself problematic.
9035     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9036   else
9037     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9038   fi
9039 else
9040   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9041 fi
9042 need_lib_prefix=unknown
9043 hardcode_into_libs=no
9044
9045 # when you set need_version to no, make sure it does not cause -set_version
9046 # flags to be left without arguments
9047 need_version=unknown
9048
9049 case $host_os in
9050 aix3*)
9051   version_type=linux
9052   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9053   shlibpath_var=LIBPATH
9054
9055   # AIX 3 has no versioning support, so we append a major version to the name.
9056   soname_spec='${libname}${release}${shared_ext}$major'
9057   ;;
9058
9059 aix4* | aix5*)
9060   version_type=linux
9061   need_lib_prefix=no
9062   need_version=no
9063   hardcode_into_libs=yes
9064   if test "$host_cpu" = ia64; then
9065     # AIX 5 supports IA64
9066     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9067     shlibpath_var=LD_LIBRARY_PATH
9068   else
9069     # With GCC up to 2.95.x, collect2 would create an import file
9070     # for dependence libraries.  The import file would start with
9071     # the line `#! .'.  This would cause the generated library to
9072     # depend on `.', always an invalid library.  This was fixed in
9073     # development snapshots of GCC prior to 3.0.
9074     case $host_os in
9075       aix4 | aix4.[01] | aix4.[01].*)
9076       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9077            echo ' yes '
9078            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9079         :
9080       else
9081         can_build_shared=no
9082       fi
9083       ;;
9084     esac
9085     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9086     # soname into executable. Probably we can add versioning support to
9087     # collect2, so additional links can be useful in future.
9088     if test "$aix_use_runtimelinking" = yes; then
9089       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9090       # instead of lib<name>.a to let people know that these are not
9091       # typical AIX shared libraries.
9092       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093     else
9094       # We preserve .a as extension for shared libraries through AIX4.2
9095       # and later when we are not doing run time linking.
9096       library_names_spec='${libname}${release}.a $libname.a'
9097       soname_spec='${libname}${release}${shared_ext}$major'
9098     fi
9099     shlibpath_var=LIBPATH
9100   fi
9101   ;;
9102
9103 amigaos*)
9104   library_names_spec='$libname.ixlibrary $libname.a'
9105   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9106   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'
9107   ;;
9108
9109 beos*)
9110   library_names_spec='${libname}${shared_ext}'
9111   dynamic_linker="$host_os ld.so"
9112   shlibpath_var=LIBRARY_PATH
9113   ;;
9114
9115 bsdi[45]*)
9116   version_type=linux
9117   need_version=no
9118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119   soname_spec='${libname}${release}${shared_ext}$major'
9120   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9121   shlibpath_var=LD_LIBRARY_PATH
9122   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9123   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9124   # the default ld.so.conf also contains /usr/contrib/lib and
9125   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9126   # libtool to hard-code these into programs
9127   ;;
9128
9129 cygwin* | mingw* | pw32*)
9130   version_type=windows
9131   shrext_cmds=".dll"
9132   need_version=no
9133   need_lib_prefix=no
9134
9135   case $GCC,$host_os in
9136   yes,cygwin* | yes,mingw* | yes,pw32*)
9137     library_names_spec='$libname.dll.a'
9138     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9139     postinstall_cmds='base_file=`basename \${file}`~
9140       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9141       dldir=$destdir/`dirname \$dlpath`~
9142       test -d \$dldir || mkdir -p \$dldir~
9143       $install_prog $dir/$dlname \$dldir/$dlname~
9144       chmod a+x \$dldir/$dlname'
9145     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9146       dlpath=$dir/\$dldll~
9147        $rm \$dlpath'
9148     shlibpath_overrides_runpath=yes
9149
9150     case $host_os in
9151     cygwin*)
9152       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9153       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9154       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9155       ;;
9156     mingw*)
9157       # MinGW DLLs use traditional 'lib' prefix
9158       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9160       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9161         # It is most probably a Windows format PATH printed by
9162         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9163         # path with ; separators, and with drive letters. We can handle the
9164         # drive letters (cygwin fileutils understands them), so leave them,
9165         # especially as we might pass files found there to a mingw objdump,
9166         # which wouldn't understand a cygwinified path. Ahh.
9167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9168       else
9169         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9170       fi
9171       ;;
9172     pw32*)
9173       # pw32 DLLs use 'pw' prefix rather than 'lib'
9174       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175       ;;
9176     esac
9177     ;;
9178
9179   *)
9180     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9181     ;;
9182   esac
9183   dynamic_linker='Win32 ld.exe'
9184   # FIXME: first we should search . and the directory the executable is in
9185   shlibpath_var=PATH
9186   ;;
9187
9188 darwin* | rhapsody*)
9189   dynamic_linker="$host_os dyld"
9190   version_type=darwin
9191   need_lib_prefix=no
9192   need_version=no
9193   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9194   soname_spec='${libname}${release}${major}$shared_ext'
9195   shlibpath_overrides_runpath=yes
9196   shlibpath_var=DYLD_LIBRARY_PATH
9197   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9198   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9199   if test "$GCC" = yes; then
9200     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"`
9201   else
9202     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9203   fi
9204   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9205   ;;
9206
9207 dgux*)
9208   version_type=linux
9209   need_lib_prefix=no
9210   need_version=no
9211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9212   soname_spec='${libname}${release}${shared_ext}$major'
9213   shlibpath_var=LD_LIBRARY_PATH
9214   ;;
9215
9216 freebsd1*)
9217   dynamic_linker=no
9218   ;;
9219
9220 kfreebsd*-gnu)
9221   version_type=linux
9222   need_lib_prefix=no
9223   need_version=no
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   shlibpath_var=LD_LIBRARY_PATH
9227   shlibpath_overrides_runpath=no
9228   hardcode_into_libs=yes
9229   dynamic_linker='GNU ld.so'
9230   ;;
9231
9232 freebsd* | dragonfly*)
9233   # DragonFly does not have aout.  When/if they implement a new
9234   # versioning mechanism, adjust this.
9235   if test -x /usr/bin/objformat; then
9236     objformat=`/usr/bin/objformat`
9237   else
9238     case $host_os in
9239     freebsd[123]*) objformat=aout ;;
9240     *) objformat=elf ;;
9241     esac
9242   fi
9243   version_type=freebsd-$objformat
9244   case $version_type in
9245     freebsd-elf*)
9246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9247       need_version=no
9248       need_lib_prefix=no
9249       ;;
9250     freebsd-*)
9251       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9252       need_version=yes
9253       ;;
9254   esac
9255   shlibpath_var=LD_LIBRARY_PATH
9256   case $host_os in
9257   freebsd2*)
9258     shlibpath_overrides_runpath=yes
9259     ;;
9260   freebsd3.[01]* | freebsdelf3.[01]*)
9261     shlibpath_overrides_runpath=yes
9262     hardcode_into_libs=yes
9263     ;;
9264   *) # from 3.2 on
9265     shlibpath_overrides_runpath=no
9266     hardcode_into_libs=yes
9267     ;;
9268   esac
9269   ;;
9270
9271 gnu*)
9272   version_type=linux
9273   need_lib_prefix=no
9274   need_version=no
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   hardcode_into_libs=yes
9279   ;;
9280
9281 hpux9* | hpux10* | hpux11*)
9282   # Give a soname corresponding to the major version so that dld.sl refuses to
9283   # link against other versions.
9284   version_type=sunos
9285   need_lib_prefix=no
9286   need_version=no
9287   case $host_cpu in
9288   ia64*)
9289     shrext_cmds='.so'
9290     hardcode_into_libs=yes
9291     dynamic_linker="$host_os dld.so"
9292     shlibpath_var=LD_LIBRARY_PATH
9293     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295     soname_spec='${libname}${release}${shared_ext}$major'
9296     if test "X$HPUX_IA64_MODE" = X32; then
9297       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9298     else
9299       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9300     fi
9301     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9302     ;;
9303    hppa*64*)
9304      shrext_cmds='.sl'
9305      hardcode_into_libs=yes
9306      dynamic_linker="$host_os dld.sl"
9307      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9308      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9309      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310      soname_spec='${libname}${release}${shared_ext}$major'
9311      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9312      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9313      ;;
9314    *)
9315     shrext_cmds='.sl'
9316     dynamic_linker="$host_os dld.sl"
9317     shlibpath_var=SHLIB_PATH
9318     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320     soname_spec='${libname}${release}${shared_ext}$major'
9321     ;;
9322   esac
9323   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9324   postinstall_cmds='chmod 555 $lib'
9325   ;;
9326
9327 irix5* | irix6* | nonstopux*)
9328   case $host_os in
9329     nonstopux*) version_type=nonstopux ;;
9330     *)
9331         if test "$lt_cv_prog_gnu_ld" = yes; then
9332                 version_type=linux
9333         else
9334                 version_type=irix
9335         fi ;;
9336   esac
9337   need_lib_prefix=no
9338   need_version=no
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9341   case $host_os in
9342   irix5* | nonstopux*)
9343     libsuff= shlibsuff=
9344     ;;
9345   *)
9346     case $LD in # libtool.m4 will add one of these switches to LD
9347     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9348       libsuff= shlibsuff= libmagic=32-bit;;
9349     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9350       libsuff=32 shlibsuff=N32 libmagic=N32;;
9351     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9352       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9353     *) libsuff= shlibsuff= libmagic=never-match;;
9354     esac
9355     ;;
9356   esac
9357   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9358   shlibpath_overrides_runpath=no
9359   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9360   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9361   hardcode_into_libs=yes
9362   ;;
9363
9364 # No shared lib support for Linux oldld, aout, or coff.
9365 linux*oldld* | linux*aout* | linux*coff*)
9366   dynamic_linker=no
9367   ;;
9368
9369 # This must be Linux ELF.
9370 linux*)
9371   version_type=linux
9372   need_lib_prefix=no
9373   need_version=no
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   soname_spec='${libname}${release}${shared_ext}$major'
9376   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9377   shlibpath_var=LD_LIBRARY_PATH
9378   shlibpath_overrides_runpath=no
9379   # This implies no fast_install, which is unacceptable.
9380   # Some rework will be needed to allow for fast_install
9381   # before this can be enabled.
9382   hardcode_into_libs=yes
9383
9384   # Append ld.so.conf contents to the search path
9385   if test -f /etc/ld.so.conf; then
9386     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' ' '`
9387     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9388   fi
9389
9390   # We used to test for /lib/ld.so.1 and disable shared libraries on
9391   # powerpc, because MkLinux only supported shared libraries with the
9392   # GNU dynamic linker.  Since this was broken with cross compilers,
9393   # most powerpc-linux boxes support dynamic linking these days and
9394   # people can always --disable-shared, the test was removed, and we
9395   # assume the GNU/Linux dynamic linker is in use.
9396   dynamic_linker='GNU/Linux ld.so'
9397   ;;
9398
9399 knetbsd*-gnu)
9400   version_type=linux
9401   need_lib_prefix=no
9402   need_version=no
9403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404   soname_spec='${libname}${release}${shared_ext}$major'
9405   shlibpath_var=LD_LIBRARY_PATH
9406   shlibpath_overrides_runpath=no
9407   hardcode_into_libs=yes
9408   dynamic_linker='GNU ld.so'
9409   ;;
9410
9411 netbsd*)
9412   version_type=sunos
9413   need_lib_prefix=no
9414   need_version=no
9415   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9417     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9418     dynamic_linker='NetBSD (a.out) ld.so'
9419   else
9420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421     soname_spec='${libname}${release}${shared_ext}$major'
9422     dynamic_linker='NetBSD ld.elf_so'
9423   fi
9424   shlibpath_var=LD_LIBRARY_PATH
9425   shlibpath_overrides_runpath=yes
9426   hardcode_into_libs=yes
9427   ;;
9428
9429 newsos6)
9430   version_type=linux
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   shlibpath_var=LD_LIBRARY_PATH
9433   shlibpath_overrides_runpath=yes
9434   ;;
9435
9436 nto-qnx*)
9437   version_type=linux
9438   need_lib_prefix=no
9439   need_version=no
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441   soname_spec='${libname}${release}${shared_ext}$major'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   shlibpath_overrides_runpath=yes
9444   ;;
9445
9446 openbsd*)
9447   version_type=sunos
9448   need_lib_prefix=no
9449   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9450   case $host_os in
9451     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9452     *)                         need_version=no  ;;
9453   esac
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9455   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9456   shlibpath_var=LD_LIBRARY_PATH
9457   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9458     case $host_os in
9459       openbsd2.[89] | openbsd2.[89].*)
9460         shlibpath_overrides_runpath=no
9461         ;;
9462       *)
9463         shlibpath_overrides_runpath=yes
9464         ;;
9465       esac
9466   else
9467     shlibpath_overrides_runpath=yes
9468   fi
9469   ;;
9470
9471 os2*)
9472   libname_spec='$name'
9473   shrext_cmds=".dll"
9474   need_lib_prefix=no
9475   library_names_spec='$libname${shared_ext} $libname.a'
9476   dynamic_linker='OS/2 ld.exe'
9477   shlibpath_var=LIBPATH
9478   ;;
9479
9480 osf3* | osf4* | osf5*)
9481   version_type=osf
9482   need_lib_prefix=no
9483   need_version=no
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   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9488   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9489   ;;
9490
9491 sco3.2v5*)
9492   version_type=osf
9493   soname_spec='${libname}${release}${shared_ext}$major'
9494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   ;;
9497
9498 solaris*)
9499   version_type=linux
9500   need_lib_prefix=no
9501   need_version=no
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503   soname_spec='${libname}${release}${shared_ext}$major'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   shlibpath_overrides_runpath=yes
9506   hardcode_into_libs=yes
9507   # ldd complains unless libraries are executable
9508   postinstall_cmds='chmod +x $lib'
9509   ;;
9510
9511 sunos4*)
9512   version_type=sunos
9513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9514   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9515   shlibpath_var=LD_LIBRARY_PATH
9516   shlibpath_overrides_runpath=yes
9517   if test "$with_gnu_ld" = yes; then
9518     need_lib_prefix=no
9519   fi
9520   need_version=yes
9521   ;;
9522
9523 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9524   version_type=linux
9525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526   soname_spec='${libname}${release}${shared_ext}$major'
9527   shlibpath_var=LD_LIBRARY_PATH
9528   case $host_vendor in
9529     sni)
9530       shlibpath_overrides_runpath=no
9531       need_lib_prefix=no
9532       export_dynamic_flag_spec='${wl}-Blargedynsym'
9533       runpath_var=LD_RUN_PATH
9534       ;;
9535     siemens)
9536       need_lib_prefix=no
9537       ;;
9538     motorola)
9539       need_lib_prefix=no
9540       need_version=no
9541       shlibpath_overrides_runpath=no
9542       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9543       ;;
9544   esac
9545   ;;
9546
9547 sysv4*MP*)
9548   if test -d /usr/nec ;then
9549     version_type=linux
9550     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9551     soname_spec='$libname${shared_ext}.$major'
9552     shlibpath_var=LD_LIBRARY_PATH
9553   fi
9554   ;;
9555
9556 uts4*)
9557   version_type=linux
9558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559   soname_spec='${libname}${release}${shared_ext}$major'
9560   shlibpath_var=LD_LIBRARY_PATH
9561   ;;
9562
9563 *)
9564   dynamic_linker=no
9565   ;;
9566 esac
9567 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9568 echo "${ECHO_T}$dynamic_linker" >&6
9569 test "$dynamic_linker" = no && can_build_shared=no
9570
9571 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9572 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9573 hardcode_action=
9574 if test -n "$hardcode_libdir_flag_spec" || \
9575    test -n "$runpath_var" || \
9576    test "X$hardcode_automatic" = "Xyes" ; then
9577
9578   # We can hardcode non-existant directories.
9579   if test "$hardcode_direct" != no &&
9580      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9581      # have to relink, otherwise we might link with an installed library
9582      # when we should be linking with a yet-to-be-installed one
9583      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9584      test "$hardcode_minus_L" != no; then
9585     # Linking always hardcodes the temporary library directory.
9586     hardcode_action=relink
9587   else
9588     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9589     hardcode_action=immediate
9590   fi
9591 else
9592   # We cannot hardcode anything, or else we can only hardcode existing
9593   # directories.
9594   hardcode_action=unsupported
9595 fi
9596 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9597 echo "${ECHO_T}$hardcode_action" >&6
9598
9599 if test "$hardcode_action" = relink; then
9600   # Fast installation is not supported
9601   enable_fast_install=no
9602 elif test "$shlibpath_overrides_runpath" = yes ||
9603      test "$enable_shared" = no; then
9604   # Fast installation is not necessary
9605   enable_fast_install=needless
9606 fi
9607
9608 striplib=
9609 old_striplib=
9610 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9611 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9612 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9613   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9614   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9615   echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6
9617 else
9618 # FIXME - insert some real tests, host_os isn't really good enough
9619   case $host_os in
9620    darwin*)
9621        if test -n "$STRIP" ; then
9622          striplib="$STRIP -x"
9623          echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9625        else
9626   echo "$as_me:$LINENO: result: no" >&5
9627 echo "${ECHO_T}no" >&6
9628 fi
9629        ;;
9630    *)
9631   echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6
9633     ;;
9634   esac
9635 fi
9636
9637 if test "x$enable_dlopen" != xyes; then
9638   enable_dlopen=unknown
9639   enable_dlopen_self=unknown
9640   enable_dlopen_self_static=unknown
9641 else
9642   lt_cv_dlopen=no
9643   lt_cv_dlopen_libs=
9644
9645   case $host_os in
9646   beos*)
9647     lt_cv_dlopen="load_add_on"
9648     lt_cv_dlopen_libs=
9649     lt_cv_dlopen_self=yes
9650     ;;
9651
9652   mingw* | pw32*)
9653     lt_cv_dlopen="LoadLibrary"
9654     lt_cv_dlopen_libs=
9655    ;;
9656
9657   cygwin*)
9658     lt_cv_dlopen="dlopen"
9659     lt_cv_dlopen_libs=
9660    ;;
9661
9662   darwin*)
9663   # if libdl is installed we need to link against it
9664     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   ac_check_lib_save_LIBS=$LIBS
9670 LIBS="-ldl  $LIBS"
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h.  */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h.  */
9677
9678 /* Override any gcc2 internal prototype to avoid an error.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 /* We use char because int might match the return type of a gcc2
9683    builtin and then its argument prototype would still apply.  */
9684 char dlopen ();
9685 int
9686 main ()
9687 {
9688 dlopen ();
9689   ;
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest.$ac_objext conftest$ac_exeext
9694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695   (eval $ac_link) 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } &&
9702          { ac_try='test -z "$ac_c_werror_flag"
9703                          || test ! -s conftest.err'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest$ac_exeext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   ac_cv_lib_dl_dlopen=yes
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 ac_cv_lib_dl_dlopen=no
9721 fi
9722 rm -f conftest.err conftest.$ac_objext \
9723       conftest$ac_exeext conftest.$ac_ext
9724 LIBS=$ac_check_lib_save_LIBS
9725 fi
9726 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9727 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9728 if test $ac_cv_lib_dl_dlopen = yes; then
9729   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9730 else
9731
9732     lt_cv_dlopen="dyld"
9733     lt_cv_dlopen_libs=
9734     lt_cv_dlopen_self=yes
9735
9736 fi
9737
9738    ;;
9739
9740   *)
9741     echo "$as_me:$LINENO: checking for shl_load" >&5
9742 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9743 if test "${ac_cv_func_shl_load+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9754 #define shl_load innocuous_shl_load
9755
9756 /* System header to define __stub macros and hopefully few prototypes,
9757     which can conflict with char shl_load (); below.
9758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759     <limits.h> exists even on freestanding compilers.  */
9760
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9766
9767 #undef shl_load
9768
9769 /* Override any gcc2 internal prototype to avoid an error.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 {
9773 #endif
9774 /* We use char because int might match the return type of a gcc2
9775    builtin and then its argument prototype would still apply.  */
9776 char shl_load ();
9777 /* The GNU C library defines this for functions which it implements
9778     to always fail with ENOSYS.  Some functions are actually named
9779     something starting with __ and the normal name is an alias.  */
9780 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9781 choke me
9782 #else
9783 char (*f) () = shl_load;
9784 #endif
9785 #ifdef __cplusplus
9786 }
9787 #endif
9788
9789 int
9790 main ()
9791 {
9792 return f != shl_load;
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799   (eval $ac_link) 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -z "$ac_c_werror_flag"
9807                          || test ! -s conftest.err'
9808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809   (eval $ac_try) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; } &&
9813          { ac_try='test -s conftest$ac_exeext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_func_shl_load=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_func_shl_load=no
9825 fi
9826 rm -f conftest.err conftest.$ac_objext \
9827       conftest$ac_exeext conftest.$ac_ext
9828 fi
9829 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9830 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9831 if test $ac_cv_func_shl_load = yes; then
9832   lt_cv_dlopen="shl_load"
9833 else
9834   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-ldld  $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any gcc2 internal prototype to avoid an error.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 /* We use char because int might match the return type of a gcc2
9853    builtin and then its argument prototype would still apply.  */
9854 char shl_load ();
9855 int
9856 main ()
9857 {
9858 shl_load ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865   (eval $ac_link) 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -z "$ac_c_werror_flag"
9873                          || test ! -s conftest.err'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_dld_shl_load=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_dld_shl_load=no
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9897 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9898 if test $ac_cv_lib_dld_shl_load = yes; then
9899   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9900 else
9901   echo "$as_me:$LINENO: checking for dlopen" >&5
9902 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9903 if test "${ac_cv_func_dlopen+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9914 #define dlopen innocuous_dlopen
9915
9916 /* System header to define __stub macros and hopefully few prototypes,
9917     which can conflict with char dlopen (); below.
9918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919     <limits.h> exists even on freestanding compilers.  */
9920
9921 #ifdef __STDC__
9922 # include <limits.h>
9923 #else
9924 # include <assert.h>
9925 #endif
9926
9927 #undef dlopen
9928
9929 /* Override any gcc2 internal prototype to avoid an error.  */
9930 #ifdef __cplusplus
9931 extern "C"
9932 {
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935    builtin and then its argument prototype would still apply.  */
9936 char dlopen ();
9937 /* The GNU C library defines this for functions which it implements
9938     to always fail with ENOSYS.  Some functions are actually named
9939     something starting with __ and the normal name is an alias.  */
9940 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9941 choke me
9942 #else
9943 char (*f) () = dlopen;
9944 #endif
9945 #ifdef __cplusplus
9946 }
9947 #endif
9948
9949 int
9950 main ()
9951 {
9952 return f != dlopen;
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959   (eval $ac_link) 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -z "$ac_c_werror_flag"
9967                          || test ! -s conftest.err'
9968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969   (eval $ac_try) 2>&5
9970   ac_status=$?
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); }; } &&
9973          { ac_try='test -s conftest$ac_exeext'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; }; then
9979   ac_cv_func_dlopen=yes
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 ac_cv_func_dlopen=no
9985 fi
9986 rm -f conftest.err conftest.$ac_objext \
9987       conftest$ac_exeext conftest.$ac_ext
9988 fi
9989 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9990 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9991 if test $ac_cv_func_dlopen = yes; then
9992   lt_cv_dlopen="dlopen"
9993 else
9994   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9995 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9996 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9997   echo $ECHO_N "(cached) $ECHO_C" >&6
9998 else
9999   ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-ldl  $LIBS"
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007
10008 /* Override any gcc2 internal prototype to avoid an error.  */
10009 #ifdef __cplusplus
10010 extern "C"
10011 #endif
10012 /* We use char because int might match the return type of a gcc2
10013    builtin and then its argument prototype would still apply.  */
10014 char dlopen ();
10015 int
10016 main ()
10017 {
10018 dlopen ();
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 rm -f conftest.$ac_objext conftest$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025   (eval $ac_link) 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } &&
10032          { ac_try='test -z "$ac_c_werror_flag"
10033                          || test ! -s conftest.err'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; } &&
10039          { ac_try='test -s conftest$ac_exeext'
10040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041   (eval $ac_try) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   ac_cv_lib_dl_dlopen=yes
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 ac_cv_lib_dl_dlopen=no
10051 fi
10052 rm -f conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10057 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10058 if test $ac_cv_lib_dl_dlopen = yes; then
10059   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10060 else
10061   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10062 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10063 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10064   echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066   ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lsvld  $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074
10075 /* Override any gcc2 internal prototype to avoid an error.  */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 /* We use char because int might match the return type of a gcc2
10080    builtin and then its argument prototype would still apply.  */
10081 char dlopen ();
10082 int
10083 main ()
10084 {
10085 dlopen ();
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_cv_lib_svld_dlopen=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_lib_svld_dlopen=no
10118 fi
10119 rm -f conftest.err conftest.$ac_objext \
10120       conftest$ac_exeext conftest.$ac_ext
10121 LIBS=$ac_check_lib_save_LIBS
10122 fi
10123 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10124 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10125 if test $ac_cv_lib_svld_dlopen = yes; then
10126   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10127 else
10128   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10129 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10130 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   ac_check_lib_save_LIBS=$LIBS
10134 LIBS="-ldld  $LIBS"
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141
10142 /* Override any gcc2 internal prototype to avoid an error.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 /* We use char because int might match the return type of a gcc2
10147    builtin and then its argument prototype would still apply.  */
10148 char dld_link ();
10149 int
10150 main ()
10151 {
10152 dld_link ();
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159   (eval $ac_link) 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } &&
10166          { ac_try='test -z "$ac_c_werror_flag"
10167                          || test ! -s conftest.err'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; } &&
10173          { ac_try='test -s conftest$ac_exeext'
10174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175   (eval $ac_try) 2>&5
10176   ac_status=$?
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); }; }; then
10179   ac_cv_lib_dld_dld_link=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184 ac_cv_lib_dld_dld_link=no
10185 fi
10186 rm -f conftest.err conftest.$ac_objext \
10187       conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10191 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10192 if test $ac_cv_lib_dld_dld_link = yes; then
10193   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202
10203 fi
10204
10205
10206 fi
10207
10208
10209 fi
10210
10211     ;;
10212   esac
10213
10214   if test "x$lt_cv_dlopen" != xno; then
10215     enable_dlopen=yes
10216   else
10217     enable_dlopen=no
10218   fi
10219
10220   case $lt_cv_dlopen in
10221   dlopen)
10222     save_CPPFLAGS="$CPPFLAGS"
10223     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10224
10225     save_LDFLAGS="$LDFLAGS"
10226     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10227
10228     save_LIBS="$LIBS"
10229     LIBS="$lt_cv_dlopen_libs $LIBS"
10230
10231     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10232 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10233 if test "${lt_cv_dlopen_self+set}" = set; then
10234   echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236           if test "$cross_compiling" = yes; then :
10237   lt_cv_dlopen_self=cross
10238 else
10239   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10240   lt_status=$lt_dlunknown
10241   cat > conftest.$ac_ext <<EOF
10242 #line 10242 "configure"
10243 #include "confdefs.h"
10244
10245 #if HAVE_DLFCN_H
10246 #include <dlfcn.h>
10247 #endif
10248
10249 #include <stdio.h>
10250
10251 #ifdef RTLD_GLOBAL
10252 #  define LT_DLGLOBAL           RTLD_GLOBAL
10253 #else
10254 #  ifdef DL_GLOBAL
10255 #    define LT_DLGLOBAL         DL_GLOBAL
10256 #  else
10257 #    define LT_DLGLOBAL         0
10258 #  endif
10259 #endif
10260
10261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262    find out it does not work in some platform. */
10263 #ifndef LT_DLLAZY_OR_NOW
10264 #  ifdef RTLD_LAZY
10265 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10266 #  else
10267 #    ifdef DL_LAZY
10268 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10269 #    else
10270 #      ifdef RTLD_NOW
10271 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10272 #      else
10273 #        ifdef DL_NOW
10274 #          define LT_DLLAZY_OR_NOW      DL_NOW
10275 #        else
10276 #          define LT_DLLAZY_OR_NOW      0
10277 #        endif
10278 #      endif
10279 #    endif
10280 #  endif
10281 #endif
10282
10283 #ifdef __cplusplus
10284 extern "C" void exit (int);
10285 #endif
10286
10287 void fnord() { int i=42;}
10288 int main ()
10289 {
10290   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291   int status = $lt_dlunknown;
10292
10293   if (self)
10294     {
10295       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10296       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297       /* dlclose (self); */
10298     }
10299
10300     exit (status);
10301 }
10302 EOF
10303   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304   (eval $ac_link) 2>&5
10305   ac_status=$?
10306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10308     (./conftest; exit; ) >&5 2>/dev/null
10309     lt_status=$?
10310     case x$lt_status in
10311       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10312       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10313       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10314     esac
10315   else :
10316     # compilation failed
10317     lt_cv_dlopen_self=no
10318   fi
10319 fi
10320 rm -fr conftest*
10321
10322
10323 fi
10324 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10325 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10326
10327     if test "x$lt_cv_dlopen_self" = xyes; then
10328       LDFLAGS="$LDFLAGS $link_static_flag"
10329       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10330 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10331 if test "${lt_cv_dlopen_self_static+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334           if test "$cross_compiling" = yes; then :
10335   lt_cv_dlopen_self_static=cross
10336 else
10337   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10338   lt_status=$lt_dlunknown
10339   cat > conftest.$ac_ext <<EOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342
10343 #if HAVE_DLFCN_H
10344 #include <dlfcn.h>
10345 #endif
10346
10347 #include <stdio.h>
10348
10349 #ifdef RTLD_GLOBAL
10350 #  define LT_DLGLOBAL           RTLD_GLOBAL
10351 #else
10352 #  ifdef DL_GLOBAL
10353 #    define LT_DLGLOBAL         DL_GLOBAL
10354 #  else
10355 #    define LT_DLGLOBAL         0
10356 #  endif
10357 #endif
10358
10359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10360    find out it does not work in some platform. */
10361 #ifndef LT_DLLAZY_OR_NOW
10362 #  ifdef RTLD_LAZY
10363 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10364 #  else
10365 #    ifdef DL_LAZY
10366 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10367 #    else
10368 #      ifdef RTLD_NOW
10369 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10370 #      else
10371 #        ifdef DL_NOW
10372 #          define LT_DLLAZY_OR_NOW      DL_NOW
10373 #        else
10374 #          define LT_DLLAZY_OR_NOW      0
10375 #        endif
10376 #      endif
10377 #    endif
10378 #  endif
10379 #endif
10380
10381 #ifdef __cplusplus
10382 extern "C" void exit (int);
10383 #endif
10384
10385 void fnord() { int i=42;}
10386 int main ()
10387 {
10388   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10389   int status = $lt_dlunknown;
10390
10391   if (self)
10392     {
10393       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10394       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10395       /* dlclose (self); */
10396     }
10397
10398     exit (status);
10399 }
10400 EOF
10401   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402   (eval $ac_link) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10406     (./conftest; exit; ) >&5 2>/dev/null
10407     lt_status=$?
10408     case x$lt_status in
10409       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10410       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10411       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10412     esac
10413   else :
10414     # compilation failed
10415     lt_cv_dlopen_self_static=no
10416   fi
10417 fi
10418 rm -fr conftest*
10419
10420
10421 fi
10422 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10423 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10424     fi
10425
10426     CPPFLAGS="$save_CPPFLAGS"
10427     LDFLAGS="$save_LDFLAGS"
10428     LIBS="$save_LIBS"
10429     ;;
10430   esac
10431
10432   case $lt_cv_dlopen_self in
10433   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10434   *) enable_dlopen_self=unknown ;;
10435   esac
10436
10437   case $lt_cv_dlopen_self_static in
10438   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10439   *) enable_dlopen_self_static=unknown ;;
10440   esac
10441 fi
10442
10443
10444 # Report which librarie types wil actually be built
10445 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10446 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10447 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10448 echo "${ECHO_T}$can_build_shared" >&6
10449
10450 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10451 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10452 test "$can_build_shared" = "no" && enable_shared=no
10453
10454 # On AIX, shared libraries and static libraries use the same namespace, and
10455 # are all built from PIC.
10456 case $host_os in
10457 aix3*)
10458   test "$enable_shared" = yes && enable_static=no
10459   if test -n "$RANLIB"; then
10460     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10461     postinstall_cmds='$RANLIB $lib'
10462   fi
10463   ;;
10464
10465 aix4* | aix5*)
10466   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10467     test "$enable_shared" = yes && enable_static=no
10468   fi
10469     ;;
10470 esac
10471 echo "$as_me:$LINENO: result: $enable_shared" >&5
10472 echo "${ECHO_T}$enable_shared" >&6
10473
10474 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10475 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10476 # Make sure either enable_shared or enable_static is yes.
10477 test "$enable_shared" = yes || enable_static=yes
10478 echo "$as_me:$LINENO: result: $enable_static" >&5
10479 echo "${ECHO_T}$enable_static" >&6
10480
10481 # The else clause should only fire when bootstrapping the
10482 # libtool distribution, otherwise you forgot to ship ltmain.sh
10483 # with your package, and you will get complaints that there are
10484 # no rules to generate ltmain.sh.
10485 if test -f "$ltmain"; then
10486   # See if we are running on zsh, and set the options which allow our commands through
10487   # without removal of \ escapes.
10488   if test -n "${ZSH_VERSION+set}" ; then
10489     setopt NO_GLOB_SUBST
10490   fi
10491   # Now quote all the things that may contain metacharacters while being
10492   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10493   # variables and quote the copies for generation of the libtool script.
10494   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10495     SED SHELL STRIP \
10496     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10497     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10498     deplibs_check_method reload_flag reload_cmds need_locks \
10499     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10500     lt_cv_sys_global_symbol_to_c_name_address \
10501     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10502     old_postinstall_cmds old_postuninstall_cmds \
10503     compiler \
10504     CC \
10505     LD \
10506     lt_prog_compiler_wl \
10507     lt_prog_compiler_pic \
10508     lt_prog_compiler_static \
10509     lt_prog_compiler_no_builtin_flag \
10510     export_dynamic_flag_spec \
10511     thread_safe_flag_spec \
10512     whole_archive_flag_spec \
10513     enable_shared_with_static_runtimes \
10514     old_archive_cmds \
10515     old_archive_from_new_cmds \
10516     predep_objects \
10517     postdep_objects \
10518     predeps \
10519     postdeps \
10520     compiler_lib_search_path \
10521     archive_cmds \
10522     archive_expsym_cmds \
10523     postinstall_cmds \
10524     postuninstall_cmds \
10525     old_archive_from_expsyms_cmds \
10526     allow_undefined_flag \
10527     no_undefined_flag \
10528     export_symbols_cmds \
10529     hardcode_libdir_flag_spec \
10530     hardcode_libdir_flag_spec_ld \
10531     hardcode_libdir_separator \
10532     hardcode_automatic \
10533     module_cmds \
10534     module_expsym_cmds \
10535     lt_cv_prog_compiler_c_o \
10536     exclude_expsyms \
10537     include_expsyms; do
10538
10539     case $var in
10540     old_archive_cmds | \
10541     old_archive_from_new_cmds | \
10542     archive_cmds | \
10543     archive_expsym_cmds | \
10544     module_cmds | \
10545     module_expsym_cmds | \
10546     old_archive_from_expsyms_cmds | \
10547     export_symbols_cmds | \
10548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10549     postinstall_cmds | postuninstall_cmds | \
10550     old_postinstall_cmds | old_postuninstall_cmds | \
10551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10552       # Double-quote double-evaled strings.
10553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10554       ;;
10555     *)
10556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10557       ;;
10558     esac
10559   done
10560
10561   case $lt_echo in
10562   *'\$0 --fallback-echo"')
10563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10564     ;;
10565   esac
10566
10567 cfgfile="${ofile}T"
10568   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10569   $rm -f "$cfgfile"
10570   { echo "$as_me:$LINENO: creating $ofile" >&5
10571 echo "$as_me: creating $ofile" >&6;}
10572
10573   cat <<__EOF__ >> "$cfgfile"
10574 #! $SHELL
10575
10576 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10577 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10578 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10579 #
10580 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10581 # Free Software Foundation, Inc.
10582 #
10583 # This file is part of GNU Libtool:
10584 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10585 #
10586 # This program is free software; you can redistribute it and/or modify
10587 # it under the terms of the GNU General Public License as published by
10588 # the Free Software Foundation; either version 2 of the License, or
10589 # (at your option) any later version.
10590 #
10591 # This program is distributed in the hope that it will be useful, but
10592 # WITHOUT ANY WARRANTY; without even the implied warranty of
10593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10594 # General Public License for more details.
10595 #
10596 # You should have received a copy of the GNU General Public License
10597 # along with this program; if not, write to the Free Software
10598 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10599 #
10600 # As a special exception to the GNU General Public License, if you
10601 # distribute this file as part of a program that contains a
10602 # configuration script generated by Autoconf, you may include it under
10603 # the same distribution terms that you use for the rest of that program.
10604
10605 # A sed program that does not truncate output.
10606 SED=$lt_SED
10607
10608 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10609 Xsed="$SED -e 1s/^X//"
10610
10611 # The HP-UX ksh and POSIX shell print the target directory to stdout
10612 # if CDPATH is set.
10613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10614
10615 # The names of the tagged configurations supported by this script.
10616 available_tags=
10617
10618 # ### BEGIN LIBTOOL CONFIG
10619
10620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10621
10622 # Shell to use when invoking shell scripts.
10623 SHELL=$lt_SHELL
10624
10625 # Whether or not to build shared libraries.
10626 build_libtool_libs=$enable_shared
10627
10628 # Whether or not to build static libraries.
10629 build_old_libs=$enable_static
10630
10631 # Whether or not to add -lc for building shared libraries.
10632 build_libtool_need_lc=$archive_cmds_need_lc
10633
10634 # Whether or not to disallow shared libs when runtime libs are static
10635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10636
10637 # Whether or not to optimize for fast installation.
10638 fast_install=$enable_fast_install
10639
10640 # The host system.
10641 host_alias=$host_alias
10642 host=$host
10643 host_os=$host_os
10644
10645 # The build system.
10646 build_alias=$build_alias
10647 build=$build
10648 build_os=$build_os
10649
10650 # An echo program that does not interpret backslashes.
10651 echo=$lt_echo
10652
10653 # The archiver.
10654 AR=$lt_AR
10655 AR_FLAGS=$lt_AR_FLAGS
10656
10657 # A C compiler.
10658 LTCC=$lt_LTCC
10659
10660 # A language-specific compiler.
10661 CC=$lt_compiler
10662
10663 # Is the compiler the GNU C compiler?
10664 with_gcc=$GCC
10665
10666 # An ERE matcher.
10667 EGREP=$lt_EGREP
10668
10669 # The linker used to build libraries.
10670 LD=$lt_LD
10671
10672 # Whether we need hard or soft links.
10673 LN_S=$lt_LN_S
10674
10675 # A BSD-compatible nm program.
10676 NM=$lt_NM
10677
10678 # A symbol stripping program
10679 STRIP=$lt_STRIP
10680
10681 # Used to examine libraries when file_magic_cmd begins "file"
10682 MAGIC_CMD=$MAGIC_CMD
10683
10684 # Used on cygwin: DLL creation program.
10685 DLLTOOL="$DLLTOOL"
10686
10687 # Used on cygwin: object dumper.
10688 OBJDUMP="$OBJDUMP"
10689
10690 # Used on cygwin: assembler.
10691 AS="$AS"
10692
10693 # The name of the directory that contains temporary libtool files.
10694 objdir=$objdir
10695
10696 # How to create reloadable object files.
10697 reload_flag=$lt_reload_flag
10698 reload_cmds=$lt_reload_cmds
10699
10700 # How to pass a linker flag through the compiler.
10701 wl=$lt_lt_prog_compiler_wl
10702
10703 # Object file suffix (normally "o").
10704 objext="$ac_objext"
10705
10706 # Old archive suffix (normally "a").
10707 libext="$libext"
10708
10709 # Shared library suffix (normally ".so").
10710 shrext_cmds='$shrext_cmds'
10711
10712 # Executable file suffix (normally "").
10713 exeext="$exeext"
10714
10715 # Additional compiler flags for building library objects.
10716 pic_flag=$lt_lt_prog_compiler_pic
10717 pic_mode=$pic_mode
10718
10719 # What is the maximum length of a command?
10720 max_cmd_len=$lt_cv_sys_max_cmd_len
10721
10722 # Does compiler simultaneously support -c and -o options?
10723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10724
10725 # Must we lock files when doing compilation?
10726 need_locks=$lt_need_locks
10727
10728 # Do we need the lib prefix for modules?
10729 need_lib_prefix=$need_lib_prefix
10730
10731 # Do we need a version for libraries?
10732 need_version=$need_version
10733
10734 # Whether dlopen is supported.
10735 dlopen_support=$enable_dlopen
10736
10737 # Whether dlopen of programs is supported.
10738 dlopen_self=$enable_dlopen_self
10739
10740 # Whether dlopen of statically linked programs is supported.
10741 dlopen_self_static=$enable_dlopen_self_static
10742
10743 # Compiler flag to prevent dynamic linking.
10744 link_static_flag=$lt_lt_prog_compiler_static
10745
10746 # Compiler flag to turn off builtin functions.
10747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10748
10749 # Compiler flag to allow reflexive dlopens.
10750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10751
10752 # Compiler flag to generate shared objects directly from archives.
10753 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10754
10755 # Compiler flag to generate thread-safe objects.
10756 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10757
10758 # Library versioning type.
10759 version_type=$version_type
10760
10761 # Format of library name prefix.
10762 libname_spec=$lt_libname_spec
10763
10764 # List of archive names.  First name is the real one, the rest are links.
10765 # The last name is the one that the linker finds with -lNAME.
10766 library_names_spec=$lt_library_names_spec
10767
10768 # The coded name of the library, if different from the real name.
10769 soname_spec=$lt_soname_spec
10770
10771 # Commands used to build and install an old-style archive.
10772 RANLIB=$lt_RANLIB
10773 old_archive_cmds=$lt_old_archive_cmds
10774 old_postinstall_cmds=$lt_old_postinstall_cmds
10775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10776
10777 # Create an old-style archive from a shared archive.
10778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10779
10780 # Create a temporary old-style archive to link instead of a shared archive.
10781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10782
10783 # Commands used to build and install a shared archive.
10784 archive_cmds=$lt_archive_cmds
10785 archive_expsym_cmds=$lt_archive_expsym_cmds
10786 postinstall_cmds=$lt_postinstall_cmds
10787 postuninstall_cmds=$lt_postuninstall_cmds
10788
10789 # Commands used to build a loadable module (assumed same as above if empty)
10790 module_cmds=$lt_module_cmds
10791 module_expsym_cmds=$lt_module_expsym_cmds
10792
10793 # Commands to strip libraries.
10794 old_striplib=$lt_old_striplib
10795 striplib=$lt_striplib
10796
10797 # Dependencies to place before the objects being linked to create a
10798 # shared library.
10799 predep_objects=$lt_predep_objects
10800
10801 # Dependencies to place after the objects being linked to create a
10802 # shared library.
10803 postdep_objects=$lt_postdep_objects
10804
10805 # Dependencies to place before the objects being linked to create a
10806 # shared library.
10807 predeps=$lt_predeps
10808
10809 # Dependencies to place after the objects being linked to create a
10810 # shared library.
10811 postdeps=$lt_postdeps
10812
10813 # The library search path used internally by the compiler when linking
10814 # a shared library.
10815 compiler_lib_search_path=$lt_compiler_lib_search_path
10816
10817 # Method to check whether dependent libraries are shared objects.
10818 deplibs_check_method=$lt_deplibs_check_method
10819
10820 # Command to use when deplibs_check_method == file_magic.
10821 file_magic_cmd=$lt_file_magic_cmd
10822
10823 # Flag that allows shared libraries with undefined symbols to be built.
10824 allow_undefined_flag=$lt_allow_undefined_flag
10825
10826 # Flag that forces no undefined symbols.
10827 no_undefined_flag=$lt_no_undefined_flag
10828
10829 # Commands used to finish a libtool library installation in a directory.
10830 finish_cmds=$lt_finish_cmds
10831
10832 # Same as above, but a single script fragment to be evaled but not shown.
10833 finish_eval=$lt_finish_eval
10834
10835 # Take the output of nm and produce a listing of raw symbols and C names.
10836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10837
10838 # Transform the output of nm in a proper C declaration
10839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10840
10841 # Transform the output of nm in a C name address pair
10842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10843
10844 # This is the shared library runtime path variable.
10845 runpath_var=$runpath_var
10846
10847 # This is the shared library path variable.
10848 shlibpath_var=$shlibpath_var
10849
10850 # Is shlibpath searched before the hard-coded library search path?
10851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10852
10853 # How to hardcode a shared library path into an executable.
10854 hardcode_action=$hardcode_action
10855
10856 # Whether we should hardcode library paths into libraries.
10857 hardcode_into_libs=$hardcode_into_libs
10858
10859 # Flag to hardcode \$libdir into a binary during linking.
10860 # This must work even if \$libdir does not exist.
10861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10862
10863 # If ld is used when linking, flag to hardcode \$libdir into
10864 # a binary during linking. This must work even if \$libdir does
10865 # not exist.
10866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10867
10868 # Whether we need a single -rpath flag with a separated argument.
10869 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10870
10871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10872 # resulting binary.
10873 hardcode_direct=$hardcode_direct
10874
10875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10876 # resulting binary.
10877 hardcode_minus_L=$hardcode_minus_L
10878
10879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10880 # the resulting binary.
10881 hardcode_shlibpath_var=$hardcode_shlibpath_var
10882
10883 # Set to yes if building a shared library automatically hardcodes DIR into the library
10884 # and all subsequent libraries and executables linked against it.
10885 hardcode_automatic=$hardcode_automatic
10886
10887 # Variables whose values should be saved in libtool wrapper scripts and
10888 # restored at relink time.
10889 variables_saved_for_relink="$variables_saved_for_relink"
10890
10891 # Whether libtool must link a program against all its dependency libraries.
10892 link_all_deplibs=$link_all_deplibs
10893
10894 # Compile-time system search path for libraries
10895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10896
10897 # Run-time system search path for libraries
10898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10899
10900 # Fix the shell variable \$srcfile for the compiler.
10901 fix_srcfile_path="$fix_srcfile_path"
10902
10903 # Set to yes if exported symbols are required.
10904 always_export_symbols=$always_export_symbols
10905
10906 # The commands to list exported symbols.
10907 export_symbols_cmds=$lt_export_symbols_cmds
10908
10909 # The commands to extract the exported symbol list from a shared archive.
10910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10911
10912 # Symbols that should not be listed in the preloaded symbols.
10913 exclude_expsyms=$lt_exclude_expsyms
10914
10915 # Symbols that must always be exported.
10916 include_expsyms=$lt_include_expsyms
10917
10918 # ### END LIBTOOL CONFIG
10919
10920 __EOF__
10921
10922
10923   case $host_os in
10924   aix3*)
10925     cat <<\EOF >> "$cfgfile"
10926
10927 # AIX sometimes has problems with the GCC collect2 program.  For some
10928 # reason, if we set the COLLECT_NAMES environment variable, the problems
10929 # vanish in a puff of smoke.
10930 if test "X${COLLECT_NAMES+set}" != Xset; then
10931   COLLECT_NAMES=
10932   export COLLECT_NAMES
10933 fi
10934 EOF
10935     ;;
10936   esac
10937
10938   # We use sed instead of cat because bash on DJGPP gets confused if
10939   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10940   # text mode, it properly converts lines to CR/LF.  This bash problem
10941   # is reportedly fixed, but why not run on old versions too?
10942   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10943
10944   mv -f "$cfgfile" "$ofile" || \
10945     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10946   chmod +x "$ofile"
10947
10948 else
10949   # If there is no Makefile yet, we rely on a make rule to execute
10950   # `config.status --recheck' to rerun these tests and create the
10951   # libtool script then.
10952   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10953   if test -f "$ltmain_in"; then
10954     test -f Makefile && make "$ltmain"
10955   fi
10956 fi
10957
10958
10959 ac_ext=c
10960 ac_cpp='$CPP $CPPFLAGS'
10961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10964
10965 CC="$lt_save_CC"
10966
10967
10968 # Check whether --with-tags or --without-tags was given.
10969 if test "${with_tags+set}" = set; then
10970   withval="$with_tags"
10971   tagnames="$withval"
10972 fi;
10973
10974 if test -f "$ltmain" && test -n "$tagnames"; then
10975   if test ! -f "${ofile}"; then
10976     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10977 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10978   fi
10979
10980   if test -z "$LTCC"; then
10981     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10982     if test -z "$LTCC"; then
10983       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10984 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10985     else
10986       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10987 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10988     fi
10989   fi
10990
10991   # Extract list of available tagged configurations in $ofile.
10992   # Note that this assumes the entire list is on one line.
10993   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10994
10995   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10996   for tagname in $tagnames; do
10997     IFS="$lt_save_ifs"
10998     # Check whether tagname contains only valid characters
10999     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11000     "") ;;
11001     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11002 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11003    { (exit 1); exit 1; }; }
11004         ;;
11005     esac
11006
11007     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11008     then
11009       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11010 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11011    { (exit 1); exit 1; }; }
11012     fi
11013
11014     # Update the list of available tags.
11015     if test -n "$tagname"; then
11016       echo appending configuration tag \"$tagname\" to $ofile
11017
11018       case $tagname in
11019       CXX)
11020         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11021             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11022             (test "X$CXX" != "Xg++"))) ; then
11023           :
11024         else
11025           tagname=""
11026         fi
11027         ;;
11028
11029       F77)
11030         if test -n "$F77" && test "X$F77" != "Xno"; then
11031           :
11032         else
11033           tagname=""
11034         fi
11035         ;;
11036
11037       GCJ)
11038         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11039           :
11040         else
11041           tagname=""
11042         fi
11043         ;;
11044
11045       RC)
11046
11047
11048
11049 # Source file extension for RC test sources.
11050 ac_ext=rc
11051
11052 # Object file extension for compiled RC test sources.
11053 objext=o
11054 objext_RC=$objext
11055
11056 # Code to be used in simple compile tests
11057 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11058
11059 # Code to be used in simple link tests
11060 lt_simple_link_test_code="$lt_simple_compile_test_code"
11061
11062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11063
11064 # If no C compiler was specified, use CC.
11065 LTCC=${LTCC-"$CC"}
11066
11067 # Allow CC to be a program name with arguments.
11068 compiler=$CC
11069
11070
11071 # save warnings/boilerplate of simple test code
11072 ac_outfile=conftest.$ac_objext
11073 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11075 _lt_compiler_boilerplate=`cat conftest.err`
11076 $rm conftest*
11077
11078 ac_outfile=conftest.$ac_objext
11079 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11081 _lt_linker_boilerplate=`cat conftest.err`
11082 $rm conftest*
11083
11084
11085 # Allow CC to be a program name with arguments.
11086 lt_save_CC="$CC"
11087 CC=${RC-"windres"}
11088 compiler=$CC
11089 compiler_RC=$CC
11090 for cc_temp in $compiler""; do
11091   case $cc_temp in
11092     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11093     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11094     \-*) ;;
11095     *) break;;
11096   esac
11097 done
11098 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11099
11100 lt_cv_prog_compiler_c_o_RC=yes
11101
11102 # The else clause should only fire when bootstrapping the
11103 # libtool distribution, otherwise you forgot to ship ltmain.sh
11104 # with your package, and you will get complaints that there are
11105 # no rules to generate ltmain.sh.
11106 if test -f "$ltmain"; then
11107   # See if we are running on zsh, and set the options which allow our commands through
11108   # without removal of \ escapes.
11109   if test -n "${ZSH_VERSION+set}" ; then
11110     setopt NO_GLOB_SUBST
11111   fi
11112   # Now quote all the things that may contain metacharacters while being
11113   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11114   # variables and quote the copies for generation of the libtool script.
11115   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11116     SED SHELL STRIP \
11117     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11118     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11119     deplibs_check_method reload_flag reload_cmds need_locks \
11120     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11121     lt_cv_sys_global_symbol_to_c_name_address \
11122     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11123     old_postinstall_cmds old_postuninstall_cmds \
11124     compiler_RC \
11125     CC_RC \
11126     LD_RC \
11127     lt_prog_compiler_wl_RC \
11128     lt_prog_compiler_pic_RC \
11129     lt_prog_compiler_static_RC \
11130     lt_prog_compiler_no_builtin_flag_RC \
11131     export_dynamic_flag_spec_RC \
11132     thread_safe_flag_spec_RC \
11133     whole_archive_flag_spec_RC \
11134     enable_shared_with_static_runtimes_RC \
11135     old_archive_cmds_RC \
11136     old_archive_from_new_cmds_RC \
11137     predep_objects_RC \
11138     postdep_objects_RC \
11139     predeps_RC \
11140     postdeps_RC \
11141     compiler_lib_search_path_RC \
11142     archive_cmds_RC \
11143     archive_expsym_cmds_RC \
11144     postinstall_cmds_RC \
11145     postuninstall_cmds_RC \
11146     old_archive_from_expsyms_cmds_RC \
11147     allow_undefined_flag_RC \
11148     no_undefined_flag_RC \
11149     export_symbols_cmds_RC \
11150     hardcode_libdir_flag_spec_RC \
11151     hardcode_libdir_flag_spec_ld_RC \
11152     hardcode_libdir_separator_RC \
11153     hardcode_automatic_RC \
11154     module_cmds_RC \
11155     module_expsym_cmds_RC \
11156     lt_cv_prog_compiler_c_o_RC \
11157     exclude_expsyms_RC \
11158     include_expsyms_RC; do
11159
11160     case $var in
11161     old_archive_cmds_RC | \
11162     old_archive_from_new_cmds_RC | \
11163     archive_cmds_RC | \
11164     archive_expsym_cmds_RC | \
11165     module_cmds_RC | \
11166     module_expsym_cmds_RC | \
11167     old_archive_from_expsyms_cmds_RC | \
11168     export_symbols_cmds_RC | \
11169     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11170     postinstall_cmds | postuninstall_cmds | \
11171     old_postinstall_cmds | old_postuninstall_cmds | \
11172     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11173       # Double-quote double-evaled strings.
11174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11175       ;;
11176     *)
11177       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11178       ;;
11179     esac
11180   done
11181
11182   case $lt_echo in
11183   *'\$0 --fallback-echo"')
11184     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11185     ;;
11186   esac
11187
11188 cfgfile="$ofile"
11189
11190   cat <<__EOF__ >> "$cfgfile"
11191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11192
11193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11194
11195 # Shell to use when invoking shell scripts.
11196 SHELL=$lt_SHELL
11197
11198 # Whether or not to build shared libraries.
11199 build_libtool_libs=$enable_shared
11200
11201 # Whether or not to build static libraries.
11202 build_old_libs=$enable_static
11203
11204 # Whether or not to add -lc for building shared libraries.
11205 build_libtool_need_lc=$archive_cmds_need_lc_RC
11206
11207 # Whether or not to disallow shared libs when runtime libs are static
11208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11209
11210 # Whether or not to optimize for fast installation.
11211 fast_install=$enable_fast_install
11212
11213 # The host system.
11214 host_alias=$host_alias
11215 host=$host
11216 host_os=$host_os
11217
11218 # The build system.
11219 build_alias=$build_alias
11220 build=$build
11221 build_os=$build_os
11222
11223 # An echo program that does not interpret backslashes.
11224 echo=$lt_echo
11225
11226 # The archiver.
11227 AR=$lt_AR
11228 AR_FLAGS=$lt_AR_FLAGS
11229
11230 # A C compiler.
11231 LTCC=$lt_LTCC
11232
11233 # A language-specific compiler.
11234 CC=$lt_compiler_RC
11235
11236 # Is the compiler the GNU C compiler?
11237 with_gcc=$GCC_RC
11238
11239 # An ERE matcher.
11240 EGREP=$lt_EGREP
11241
11242 # The linker used to build libraries.
11243 LD=$lt_LD_RC
11244
11245 # Whether we need hard or soft links.
11246 LN_S=$lt_LN_S
11247
11248 # A BSD-compatible nm program.
11249 NM=$lt_NM
11250
11251 # A symbol stripping program
11252 STRIP=$lt_STRIP
11253
11254 # Used to examine libraries when file_magic_cmd begins "file"
11255 MAGIC_CMD=$MAGIC_CMD
11256
11257 # Used on cygwin: DLL creation program.
11258 DLLTOOL="$DLLTOOL"
11259
11260 # Used on cygwin: object dumper.
11261 OBJDUMP="$OBJDUMP"
11262
11263 # Used on cygwin: assembler.
11264 AS="$AS"
11265
11266 # The name of the directory that contains temporary libtool files.
11267 objdir=$objdir
11268
11269 # How to create reloadable object files.
11270 reload_flag=$lt_reload_flag
11271 reload_cmds=$lt_reload_cmds
11272
11273 # How to pass a linker flag through the compiler.
11274 wl=$lt_lt_prog_compiler_wl_RC
11275
11276 # Object file suffix (normally "o").
11277 objext="$ac_objext"
11278
11279 # Old archive suffix (normally "a").
11280 libext="$libext"
11281
11282 # Shared library suffix (normally ".so").
11283 shrext_cmds='$shrext_cmds'
11284
11285 # Executable file suffix (normally "").
11286 exeext="$exeext"
11287
11288 # Additional compiler flags for building library objects.
11289 pic_flag=$lt_lt_prog_compiler_pic_RC
11290 pic_mode=$pic_mode
11291
11292 # What is the maximum length of a command?
11293 max_cmd_len=$lt_cv_sys_max_cmd_len
11294
11295 # Does compiler simultaneously support -c and -o options?
11296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11297
11298 # Must we lock files when doing compilation?
11299 need_locks=$lt_need_locks
11300
11301 # Do we need the lib prefix for modules?
11302 need_lib_prefix=$need_lib_prefix
11303
11304 # Do we need a version for libraries?
11305 need_version=$need_version
11306
11307 # Whether dlopen is supported.
11308 dlopen_support=$enable_dlopen
11309
11310 # Whether dlopen of programs is supported.
11311 dlopen_self=$enable_dlopen_self
11312
11313 # Whether dlopen of statically linked programs is supported.
11314 dlopen_self_static=$enable_dlopen_self_static
11315
11316 # Compiler flag to prevent dynamic linking.
11317 link_static_flag=$lt_lt_prog_compiler_static_RC
11318
11319 # Compiler flag to turn off builtin functions.
11320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11321
11322 # Compiler flag to allow reflexive dlopens.
11323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11324
11325 # Compiler flag to generate shared objects directly from archives.
11326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11327
11328 # Compiler flag to generate thread-safe objects.
11329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11330
11331 # Library versioning type.
11332 version_type=$version_type
11333
11334 # Format of library name prefix.
11335 libname_spec=$lt_libname_spec
11336
11337 # List of archive names.  First name is the real one, the rest are links.
11338 # The last name is the one that the linker finds with -lNAME.
11339 library_names_spec=$lt_library_names_spec
11340
11341 # The coded name of the library, if different from the real name.
11342 soname_spec=$lt_soname_spec
11343
11344 # Commands used to build and install an old-style archive.
11345 RANLIB=$lt_RANLIB
11346 old_archive_cmds=$lt_old_archive_cmds_RC
11347 old_postinstall_cmds=$lt_old_postinstall_cmds
11348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11349
11350 # Create an old-style archive from a shared archive.
11351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11352
11353 # Create a temporary old-style archive to link instead of a shared archive.
11354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11355
11356 # Commands used to build and install a shared archive.
11357 archive_cmds=$lt_archive_cmds_RC
11358 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11359 postinstall_cmds=$lt_postinstall_cmds
11360 postuninstall_cmds=$lt_postuninstall_cmds
11361
11362 # Commands used to build a loadable module (assumed same as above if empty)
11363 module_cmds=$lt_module_cmds_RC
11364 module_expsym_cmds=$lt_module_expsym_cmds_RC
11365
11366 # Commands to strip libraries.
11367 old_striplib=$lt_old_striplib
11368 striplib=$lt_striplib
11369
11370 # Dependencies to place before the objects being linked to create a
11371 # shared library.
11372 predep_objects=$lt_predep_objects_RC
11373
11374 # Dependencies to place after the objects being linked to create a
11375 # shared library.
11376 postdep_objects=$lt_postdep_objects_RC
11377
11378 # Dependencies to place before the objects being linked to create a
11379 # shared library.
11380 predeps=$lt_predeps_RC
11381
11382 # Dependencies to place after the objects being linked to create a
11383 # shared library.
11384 postdeps=$lt_postdeps_RC
11385
11386 # The library search path used internally by the compiler when linking
11387 # a shared library.
11388 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11389
11390 # Method to check whether dependent libraries are shared objects.
11391 deplibs_check_method=$lt_deplibs_check_method
11392
11393 # Command to use when deplibs_check_method == file_magic.
11394 file_magic_cmd=$lt_file_magic_cmd
11395
11396 # Flag that allows shared libraries with undefined symbols to be built.
11397 allow_undefined_flag=$lt_allow_undefined_flag_RC
11398
11399 # Flag that forces no undefined symbols.
11400 no_undefined_flag=$lt_no_undefined_flag_RC
11401
11402 # Commands used to finish a libtool library installation in a directory.
11403 finish_cmds=$lt_finish_cmds
11404
11405 # Same as above, but a single script fragment to be evaled but not shown.
11406 finish_eval=$lt_finish_eval
11407
11408 # Take the output of nm and produce a listing of raw symbols and C names.
11409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11410
11411 # Transform the output of nm in a proper C declaration
11412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11413
11414 # Transform the output of nm in a C name address pair
11415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11416
11417 # This is the shared library runtime path variable.
11418 runpath_var=$runpath_var
11419
11420 # This is the shared library path variable.
11421 shlibpath_var=$shlibpath_var
11422
11423 # Is shlibpath searched before the hard-coded library search path?
11424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11425
11426 # How to hardcode a shared library path into an executable.
11427 hardcode_action=$hardcode_action_RC
11428
11429 # Whether we should hardcode library paths into libraries.
11430 hardcode_into_libs=$hardcode_into_libs
11431
11432 # Flag to hardcode \$libdir into a binary during linking.
11433 # This must work even if \$libdir does not exist.
11434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11435
11436 # If ld is used when linking, flag to hardcode \$libdir into
11437 # a binary during linking. This must work even if \$libdir does
11438 # not exist.
11439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11440
11441 # Whether we need a single -rpath flag with a separated argument.
11442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11443
11444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11445 # resulting binary.
11446 hardcode_direct=$hardcode_direct_RC
11447
11448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11449 # resulting binary.
11450 hardcode_minus_L=$hardcode_minus_L_RC
11451
11452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11453 # the resulting binary.
11454 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11455
11456 # Set to yes if building a shared library automatically hardcodes DIR into the library
11457 # and all subsequent libraries and executables linked against it.
11458 hardcode_automatic=$hardcode_automatic_RC
11459
11460 # Variables whose values should be saved in libtool wrapper scripts and
11461 # restored at relink time.
11462 variables_saved_for_relink="$variables_saved_for_relink"
11463
11464 # Whether libtool must link a program against all its dependency libraries.
11465 link_all_deplibs=$link_all_deplibs_RC
11466
11467 # Compile-time system search path for libraries
11468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11469
11470 # Run-time system search path for libraries
11471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11472
11473 # Fix the shell variable \$srcfile for the compiler.
11474 fix_srcfile_path="$fix_srcfile_path_RC"
11475
11476 # Set to yes if exported symbols are required.
11477 always_export_symbols=$always_export_symbols_RC
11478
11479 # The commands to list exported symbols.
11480 export_symbols_cmds=$lt_export_symbols_cmds_RC
11481
11482 # The commands to extract the exported symbol list from a shared archive.
11483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11484
11485 # Symbols that should not be listed in the preloaded symbols.
11486 exclude_expsyms=$lt_exclude_expsyms_RC
11487
11488 # Symbols that must always be exported.
11489 include_expsyms=$lt_include_expsyms_RC
11490
11491 # ### END LIBTOOL TAG CONFIG: $tagname
11492
11493 __EOF__
11494
11495
11496 else
11497   # If there is no Makefile yet, we rely on a make rule to execute
11498   # `config.status --recheck' to rerun these tests and create the
11499   # libtool script then.
11500   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11501   if test -f "$ltmain_in"; then
11502     test -f Makefile && make "$ltmain"
11503   fi
11504 fi
11505
11506
11507 ac_ext=c
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513 CC="$lt_save_CC"
11514
11515         ;;
11516
11517       *)
11518         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11519 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11520    { (exit 1); exit 1; }; }
11521         ;;
11522       esac
11523
11524       # Append the new tag name to the list of available tags.
11525       if test -n "$tagname" ; then
11526       available_tags="$available_tags $tagname"
11527     fi
11528     fi
11529   done
11530   IFS="$lt_save_ifs"
11531
11532   # Now substitute the updated list of available tags.
11533   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11534     mv "${ofile}T" "$ofile"
11535     chmod +x "$ofile"
11536   else
11537     rm -f "${ofile}T"
11538     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11539 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11540    { (exit 1); exit 1; }; }
11541   fi
11542 fi
11543
11544
11545
11546 # This can be used to rebuild libtool when needed
11547 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11548
11549 # Always use our own libtool.
11550 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11551
11552 # Prevent multiple expansion
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 ol_link_perl=no
11564 if test $ol_enable_perl != no ; then
11565         # Extract the first word of "perl", so it can be a program name with args.
11566 set dummy perl; ac_word=$2
11567 echo "$as_me:$LINENO: checking for $ac_word" >&5
11568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11569 if test "${ac_cv_path_PERLBIN+set}" = set; then
11570   echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572   case $PERLBIN in
11573   [\\/]* | ?:[\\/]*)
11574   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11575   ;;
11576   *)
11577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11579 do
11580   IFS=$as_save_IFS
11581   test -z "$as_dir" && as_dir=.
11582   for ac_exec_ext in '' $ac_executable_extensions; do
11583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11586     break 2
11587   fi
11588 done
11589 done
11590
11591   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11592   ;;
11593 esac
11594 fi
11595 PERLBIN=$ac_cv_path_PERLBIN
11596
11597 if test -n "$PERLBIN"; then
11598   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11599 echo "${ECHO_T}$PERLBIN" >&6
11600 else
11601   echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11603 fi
11604
11605
11606         if test "no$PERLBIN" = "no" ; then
11607                 if test $ol_enable_perl = yes ; then
11608                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11609 echo "$as_me: error: could not locate perl" >&2;}
11610    { (exit 1); exit 1; }; }
11611                 fi
11612
11613         else
11614                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11615                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11616
11617                 if test x"$ol_enable_perl" = "xyes" ; then
11618                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11619                 else
11620                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11621                 fi
11622                                 ol_link_perl=yes
11623         fi
11624 fi
11625
11626 ac_ext=c
11627 ac_cpp='$CPP $CPPFLAGS'
11628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11631 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11633 # On Suns, sometimes $CPP names a directory.
11634 if test -n "$CPP" && test -d "$CPP"; then
11635   CPP=
11636 fi
11637 if test -z "$CPP"; then
11638   if test "${ac_cv_prog_CPP+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641       # Double quotes because CPP needs to be expanded
11642     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11643     do
11644       ac_preproc_ok=false
11645 for ac_c_preproc_warn_flag in '' yes
11646 do
11647   # Use a header file that comes with gcc, so configuring glibc
11648   # with a fresh cross-compiler works.
11649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11650   # <limits.h> exists even on freestanding compilers.
11651   # On the NeXT, cc -E runs the code through the compiler's parser,
11652   # not just through cpp. "Syntax error" is here to catch this case.
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 #ifdef __STDC__
11660 # include <limits.h>
11661 #else
11662 # include <assert.h>
11663 #endif
11664                      Syntax error
11665 _ACEOF
11666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11668   ac_status=$?
11669   grep -v '^ *+' conftest.er1 >conftest.err
11670   rm -f conftest.er1
11671   cat conftest.err >&5
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); } >/dev/null; then
11674   if test -s conftest.err; then
11675     ac_cpp_err=$ac_c_preproc_warn_flag
11676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11677   else
11678     ac_cpp_err=
11679   fi
11680 else
11681   ac_cpp_err=yes
11682 fi
11683 if test -z "$ac_cpp_err"; then
11684   :
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689   # Broken: fails on valid input.
11690 continue
11691 fi
11692 rm -f conftest.err conftest.$ac_ext
11693
11694   # OK, works on sane cases.  Now check whether non-existent headers
11695   # can be detected and how.
11696   cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702 #include <ac_nonexistent.h>
11703 _ACEOF
11704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } >/dev/null; then
11712   if test -s conftest.err; then
11713     ac_cpp_err=$ac_c_preproc_warn_flag
11714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11715   else
11716     ac_cpp_err=
11717   fi
11718 else
11719   ac_cpp_err=yes
11720 fi
11721 if test -z "$ac_cpp_err"; then
11722   # Broken: success on invalid input.
11723 continue
11724 else
11725   echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11727
11728   # Passes both tests.
11729 ac_preproc_ok=:
11730 break
11731 fi
11732 rm -f conftest.err conftest.$ac_ext
11733
11734 done
11735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11736 rm -f conftest.err conftest.$ac_ext
11737 if $ac_preproc_ok; then
11738   break
11739 fi
11740
11741     done
11742     ac_cv_prog_CPP=$CPP
11743
11744 fi
11745   CPP=$ac_cv_prog_CPP
11746 else
11747   ac_cv_prog_CPP=$CPP
11748 fi
11749 echo "$as_me:$LINENO: result: $CPP" >&5
11750 echo "${ECHO_T}$CPP" >&6
11751 ac_preproc_ok=false
11752 for ac_c_preproc_warn_flag in '' yes
11753 do
11754   # Use a header file that comes with gcc, so configuring glibc
11755   # with a fresh cross-compiler works.
11756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757   # <limits.h> exists even on freestanding compilers.
11758   # On the NeXT, cc -E runs the code through the compiler's parser,
11759   # not just through cpp. "Syntax error" is here to catch this case.
11760   cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 #ifdef __STDC__
11767 # include <limits.h>
11768 #else
11769 # include <assert.h>
11770 #endif
11771                      Syntax error
11772 _ACEOF
11773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775   ac_status=$?
11776   grep -v '^ *+' conftest.er1 >conftest.err
11777   rm -f conftest.er1
11778   cat conftest.err >&5
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); } >/dev/null; then
11781   if test -s conftest.err; then
11782     ac_cpp_err=$ac_c_preproc_warn_flag
11783     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11784   else
11785     ac_cpp_err=
11786   fi
11787 else
11788   ac_cpp_err=yes
11789 fi
11790 if test -z "$ac_cpp_err"; then
11791   :
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796   # Broken: fails on valid input.
11797 continue
11798 fi
11799 rm -f conftest.err conftest.$ac_ext
11800
11801   # OK, works on sane cases.  Now check whether non-existent headers
11802   # can be detected and how.
11803   cat >conftest.$ac_ext <<_ACEOF
11804 /* confdefs.h.  */
11805 _ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h.  */
11809 #include <ac_nonexistent.h>
11810 _ACEOF
11811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } >/dev/null; then
11819   if test -s conftest.err; then
11820     ac_cpp_err=$ac_c_preproc_warn_flag
11821     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11822   else
11823     ac_cpp_err=
11824   fi
11825 else
11826   ac_cpp_err=yes
11827 fi
11828 if test -z "$ac_cpp_err"; then
11829   # Broken: success on invalid input.
11830 continue
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835   # Passes both tests.
11836 ac_preproc_ok=:
11837 break
11838 fi
11839 rm -f conftest.err conftest.$ac_ext
11840
11841 done
11842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11843 rm -f conftest.err conftest.$ac_ext
11844 if $ac_preproc_ok; then
11845   :
11846 else
11847   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11848 See \`config.log' for more details." >&5
11849 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11850 See \`config.log' for more details." >&2;}
11851    { (exit 1); exit 1; }; }
11852 fi
11853
11854 ac_ext=c
11855 ac_cpp='$CPP $CPPFLAGS'
11856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859
11860
11861 case $host_os in
11862   *mingw32* ) ac_cv_mingw32=yes ;;
11863   *cygwin* ) ac_cv_cygwin=yes ;;
11864 esac
11865
11866
11867
11868
11869 cat >>confdefs.h <<_ACEOF
11870 #define EXEEXT "${EXEEXT}"
11871 _ACEOF
11872
11873
11874 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11875 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11876 if test "${ac_cv_lib_be_be_app+set}" = set; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   ac_check_lib_save_LIBS=$LIBS
11880 LIBS="-lbe -lroot -lnet $LIBS"
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887
11888 /* Override any gcc2 internal prototype to avoid an error.  */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 /* We use char because int might match the return type of a gcc2
11893    builtin and then its argument prototype would still apply.  */
11894 char be_app ();
11895 int
11896 main ()
11897 {
11898 be_app ();
11899   ;
11900   return 0;
11901 }
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905   (eval $ac_link) 2>conftest.er1
11906   ac_status=$?
11907   grep -v '^ *+' conftest.er1 >conftest.err
11908   rm -f conftest.er1
11909   cat conftest.err >&5
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -z "$ac_c_werror_flag"
11913                          || test ! -s conftest.err'
11914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915   (eval $ac_try) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; } &&
11919          { ac_try='test -s conftest$ac_exeext'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_cv_lib_be_be_app=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 ac_cv_lib_be_be_app=no
11931 fi
11932 rm -f conftest.err conftest.$ac_objext \
11933       conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11935 fi
11936 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11937 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11938 if test $ac_cv_lib_be_be_app = yes; then
11939   LIBS="$LIBS -lbe -lroot -lnet"
11940 else
11941   :
11942 fi
11943
11944
11945 ac_ext=c
11946 ac_cpp='$CPP $CPPFLAGS'
11947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11950 if test -n "$ac_tool_prefix"; then
11951   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11952 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11953 echo "$as_me:$LINENO: checking for $ac_word" >&5
11954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11955 if test "${ac_cv_prog_CC+set}" = set; then
11956   echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958   if test -n "$CC"; then
11959   ac_cv_prog_CC="$CC" # Let the user override the test.
11960 else
11961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962 for as_dir in $PATH
11963 do
11964   IFS=$as_save_IFS
11965   test -z "$as_dir" && as_dir=.
11966   for ac_exec_ext in '' $ac_executable_extensions; do
11967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11968     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11970     break 2
11971   fi
11972 done
11973 done
11974
11975 fi
11976 fi
11977 CC=$ac_cv_prog_CC
11978 if test -n "$CC"; then
11979   echo "$as_me:$LINENO: result: $CC" >&5
11980 echo "${ECHO_T}$CC" >&6
11981 else
11982   echo "$as_me:$LINENO: result: no" >&5
11983 echo "${ECHO_T}no" >&6
11984 fi
11985
11986 fi
11987 if test -z "$ac_cv_prog_CC"; then
11988   ac_ct_CC=$CC
11989   # Extract the first word of "gcc", so it can be a program name with args.
11990 set dummy gcc; ac_word=$2
11991 echo "$as_me:$LINENO: checking for $ac_word" >&5
11992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   if test -n "$ac_ct_CC"; then
11997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11998 else
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004   for ac_exec_ext in '' $ac_executable_extensions; do
12005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12006     ac_cv_prog_ac_ct_CC="gcc"
12007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011 done
12012
12013 fi
12014 fi
12015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12016 if test -n "$ac_ct_CC"; then
12017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12018 echo "${ECHO_T}$ac_ct_CC" >&6
12019 else
12020   echo "$as_me:$LINENO: result: no" >&5
12021 echo "${ECHO_T}no" >&6
12022 fi
12023
12024   CC=$ac_ct_CC
12025 else
12026   CC="$ac_cv_prog_CC"
12027 fi
12028
12029 if test -z "$CC"; then
12030   if test -n "$ac_tool_prefix"; then
12031   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}cc; ac_word=$2
12033 echo "$as_me:$LINENO: checking for $ac_word" >&5
12034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12035 if test "${ac_cv_prog_CC+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   if test -n "$CC"; then
12039   ac_cv_prog_CC="$CC" # Let the user override the test.
12040 else
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046   for ac_exec_ext in '' $ac_executable_extensions; do
12047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048     ac_cv_prog_CC="${ac_tool_prefix}cc"
12049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053 done
12054
12055 fi
12056 fi
12057 CC=$ac_cv_prog_CC
12058 if test -n "$CC"; then
12059   echo "$as_me:$LINENO: result: $CC" >&5
12060 echo "${ECHO_T}$CC" >&6
12061 else
12062   echo "$as_me:$LINENO: result: no" >&5
12063 echo "${ECHO_T}no" >&6
12064 fi
12065
12066 fi
12067 if test -z "$ac_cv_prog_CC"; then
12068   ac_ct_CC=$CC
12069   # Extract the first word of "cc", so it can be a program name with args.
12070 set dummy cc; ac_word=$2
12071 echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   if test -n "$ac_ct_CC"; then
12077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12078 else
12079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080 for as_dir in $PATH
12081 do
12082   IFS=$as_save_IFS
12083   test -z "$as_dir" && as_dir=.
12084   for ac_exec_ext in '' $ac_executable_extensions; do
12085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086     ac_cv_prog_ac_ct_CC="cc"
12087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12088     break 2
12089   fi
12090 done
12091 done
12092
12093 fi
12094 fi
12095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12096 if test -n "$ac_ct_CC"; then
12097   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12098 echo "${ECHO_T}$ac_ct_CC" >&6
12099 else
12100   echo "$as_me:$LINENO: result: no" >&5
12101 echo "${ECHO_T}no" >&6
12102 fi
12103
12104   CC=$ac_ct_CC
12105 else
12106   CC="$ac_cv_prog_CC"
12107 fi
12108
12109 fi
12110 if test -z "$CC"; then
12111   # Extract the first word of "cc", so it can be a program name with args.
12112 set dummy cc; ac_word=$2
12113 echo "$as_me:$LINENO: checking for $ac_word" >&5
12114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12115 if test "${ac_cv_prog_CC+set}" = set; then
12116   echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118   if test -n "$CC"; then
12119   ac_cv_prog_CC="$CC" # Let the user override the test.
12120 else
12121   ac_prog_rejected=no
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125   IFS=$as_save_IFS
12126   test -z "$as_dir" && as_dir=.
12127   for ac_exec_ext in '' $ac_executable_extensions; do
12128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12130        ac_prog_rejected=yes
12131        continue
12132      fi
12133     ac_cv_prog_CC="cc"
12134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138 done
12139
12140 if test $ac_prog_rejected = yes; then
12141   # We found a bogon in the path, so make sure we never use it.
12142   set dummy $ac_cv_prog_CC
12143   shift
12144   if test $# != 0; then
12145     # We chose a different compiler from the bogus one.
12146     # However, it has the same basename, so the bogon will be chosen
12147     # first if we set CC to just the basename; use the full file name.
12148     shift
12149     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12150   fi
12151 fi
12152 fi
12153 fi
12154 CC=$ac_cv_prog_CC
12155 if test -n "$CC"; then
12156   echo "$as_me:$LINENO: result: $CC" >&5
12157 echo "${ECHO_T}$CC" >&6
12158 else
12159   echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6
12161 fi
12162
12163 fi
12164 if test -z "$CC"; then
12165   if test -n "$ac_tool_prefix"; then
12166   for ac_prog in cl
12167   do
12168     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12169 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12170 echo "$as_me:$LINENO: checking for $ac_word" >&5
12171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12172 if test "${ac_cv_prog_CC+set}" = set; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   if test -n "$CC"; then
12176   ac_cv_prog_CC="$CC" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183   for ac_exec_ext in '' $ac_executable_extensions; do
12184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190 done
12191
12192 fi
12193 fi
12194 CC=$ac_cv_prog_CC
12195 if test -n "$CC"; then
12196   echo "$as_me:$LINENO: result: $CC" >&5
12197 echo "${ECHO_T}$CC" >&6
12198 else
12199   echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12201 fi
12202
12203     test -n "$CC" && break
12204   done
12205 fi
12206 if test -z "$CC"; then
12207   ac_ct_CC=$CC
12208   for ac_prog in cl
12209 do
12210   # Extract the first word of "$ac_prog", so it can be a program name with args.
12211 set dummy $ac_prog; ac_word=$2
12212 echo "$as_me:$LINENO: checking for $ac_word" >&5
12213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   if test -n "$ac_ct_CC"; then
12218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12219 else
12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221 for as_dir in $PATH
12222 do
12223   IFS=$as_save_IFS
12224   test -z "$as_dir" && as_dir=.
12225   for ac_exec_ext in '' $ac_executable_extensions; do
12226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12227     ac_cv_prog_ac_ct_CC="$ac_prog"
12228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12229     break 2
12230   fi
12231 done
12232 done
12233
12234 fi
12235 fi
12236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12237 if test -n "$ac_ct_CC"; then
12238   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12239 echo "${ECHO_T}$ac_ct_CC" >&6
12240 else
12241   echo "$as_me:$LINENO: result: no" >&5
12242 echo "${ECHO_T}no" >&6
12243 fi
12244
12245   test -n "$ac_ct_CC" && break
12246 done
12247
12248   CC=$ac_ct_CC
12249 fi
12250
12251 fi
12252
12253
12254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12255 See \`config.log' for more details." >&5
12256 echo "$as_me: error: no acceptable C compiler found in \$PATH
12257 See \`config.log' for more details." >&2;}
12258    { (exit 1); exit 1; }; }
12259
12260 # Provide some information about the compiler.
12261 echo "$as_me:$LINENO:" \
12262      "checking for C compiler version" >&5
12263 ac_compiler=`set X $ac_compile; echo $2`
12264 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12265   (eval $ac_compiler --version </dev/null >&5) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }
12269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12270   (eval $ac_compiler -v </dev/null >&5) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }
12274 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12275   (eval $ac_compiler -V </dev/null >&5) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }
12279
12280 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12281 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12282 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12283   echo $ECHO_N "(cached) $ECHO_C" >&6
12284 else
12285   cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291
12292 int
12293 main ()
12294 {
12295 #ifndef __GNUC__
12296        choke me
12297 #endif
12298
12299   ;
12300   return 0;
12301 }
12302 _ACEOF
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305   (eval $ac_compile) 2>conftest.er1
12306   ac_status=$?
12307   grep -v '^ *+' conftest.er1 >conftest.err
12308   rm -f conftest.er1
12309   cat conftest.err >&5
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); } &&
12312          { ac_try='test -z "$ac_c_werror_flag"
12313                          || test ! -s conftest.err'
12314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315   (eval $ac_try) 2>&5
12316   ac_status=$?
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); }; } &&
12319          { ac_try='test -s conftest.$ac_objext'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; }; then
12325   ac_compiler_gnu=yes
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330 ac_compiler_gnu=no
12331 fi
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12334
12335 fi
12336 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12338 GCC=`test $ac_compiler_gnu = yes && echo yes`
12339 ac_test_CFLAGS=${CFLAGS+set}
12340 ac_save_CFLAGS=$CFLAGS
12341 CFLAGS="-g"
12342 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12344 if test "${ac_cv_prog_cc_g+set}" = set; then
12345   echo $ECHO_N "(cached) $ECHO_C" >&6
12346 else
12347   cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354 int
12355 main ()
12356 {
12357
12358   ;
12359   return 0;
12360 }
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12364   (eval $ac_compile) 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } &&
12371          { ac_try='test -z "$ac_c_werror_flag"
12372                          || test ! -s conftest.err'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; } &&
12378          { ac_try='test -s conftest.$ac_objext'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; }; then
12384   ac_cv_prog_cc_g=yes
12385 else
12386   echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_cv_prog_cc_g=no
12390 fi
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12394 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12395 if test "$ac_test_CFLAGS" = set; then
12396   CFLAGS=$ac_save_CFLAGS
12397 elif test $ac_cv_prog_cc_g = yes; then
12398   if test "$GCC" = yes; then
12399     CFLAGS="-g -O2"
12400   else
12401     CFLAGS="-g"
12402   fi
12403 else
12404   if test "$GCC" = yes; then
12405     CFLAGS="-O2"
12406   else
12407     CFLAGS=
12408   fi
12409 fi
12410 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12411 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12412 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12413   echo $ECHO_N "(cached) $ECHO_C" >&6
12414 else
12415   ac_cv_prog_cc_stdc=no
12416 ac_save_CC=$CC
12417 cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 #include <stdarg.h>
12424 #include <stdio.h>
12425 #include <sys/types.h>
12426 #include <sys/stat.h>
12427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12428 struct buf { int x; };
12429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12430 static char *e (p, i)
12431      char **p;
12432      int i;
12433 {
12434   return p[i];
12435 }
12436 static char *f (char * (*g) (char **, int), char **p, ...)
12437 {
12438   char *s;
12439   va_list v;
12440   va_start (v,p);
12441   s = g (p, va_arg (v,int));
12442   va_end (v);
12443   return s;
12444 }
12445
12446 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12447    function prototypes and stuff, but not '\xHH' hex character constants.
12448    These don't provoke an error unfortunately, instead are silently treated
12449    as 'x'.  The following induces an error, until -std1 is added to get
12450    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12451    array size at least.  It's necessary to write '\x00'==0 to get something
12452    that's true only with -std1.  */
12453 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12454
12455 int test (int i, double x);
12456 struct s1 {int (*f) (int a);};
12457 struct s2 {int (*f) (double a);};
12458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12459 int argc;
12460 char **argv;
12461 int
12462 main ()
12463 {
12464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 # Don't try gcc -ansi; that turns off useful extensions and
12470 # breaks some systems' header files.
12471 # AIX                   -qlanglvl=ansi
12472 # Ultrix and OSF/1      -std1
12473 # HP-UX 10.20 and later -Ae
12474 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12475 # SVR4                  -Xc -D__EXTENSIONS__
12476 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12477 do
12478   CC="$ac_save_CC $ac_arg"
12479   rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>conftest.er1
12482   ac_status=$?
12483   grep -v '^ *+' conftest.er1 >conftest.err
12484   rm -f conftest.er1
12485   cat conftest.err >&5
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); } &&
12488          { ac_try='test -z "$ac_c_werror_flag"
12489                          || test ! -s conftest.err'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; } &&
12495          { ac_try='test -s conftest.$ac_objext'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; }; then
12501   ac_cv_prog_cc_stdc=$ac_arg
12502 break
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 fi
12508 rm -f conftest.err conftest.$ac_objext
12509 done
12510 rm -f conftest.$ac_ext conftest.$ac_objext
12511 CC=$ac_save_CC
12512
12513 fi
12514
12515 case "x$ac_cv_prog_cc_stdc" in
12516   x|xno)
12517     echo "$as_me:$LINENO: result: none needed" >&5
12518 echo "${ECHO_T}none needed" >&6 ;;
12519   *)
12520     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12521 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12522     CC="$CC $ac_cv_prog_cc_stdc" ;;
12523 esac
12524
12525 # Some people use a C++ compiler to compile C.  Since we use `exit',
12526 # in C++ we need to declare it.  In case someone uses the same compiler
12527 # for both compiling C and C++ we need to have the C++ compiler decide
12528 # the declaration of exit, since it's the most demanding environment.
12529 cat >conftest.$ac_ext <<_ACEOF
12530 #ifndef __cplusplus
12531   choke me
12532 #endif
12533 _ACEOF
12534 rm -f conftest.$ac_objext
12535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12536   (eval $ac_compile) 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag"
12544                          || test ! -s conftest.err'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; } &&
12550          { ac_try='test -s conftest.$ac_objext'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; }; then
12556   for ac_declaration in \
12557    '' \
12558    'extern "C" void std::exit (int) throw (); using std::exit;' \
12559    'extern "C" void std::exit (int); using std::exit;' \
12560    'extern "C" void exit (int) throw ();' \
12561    'extern "C" void exit (int);' \
12562    'void exit (int);'
12563 do
12564   cat >conftest.$ac_ext <<_ACEOF
12565 /* confdefs.h.  */
12566 _ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h.  */
12570 $ac_declaration
12571 #include <stdlib.h>
12572 int
12573 main ()
12574 {
12575 exit (42);
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 rm -f conftest.$ac_objext
12581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12582   (eval $ac_compile) 2>conftest.er1
12583   ac_status=$?
12584   grep -v '^ *+' conftest.er1 >conftest.err
12585   rm -f conftest.er1
12586   cat conftest.err >&5
12587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588   (exit $ac_status); } &&
12589          { ac_try='test -z "$ac_c_werror_flag"
12590                          || test ! -s conftest.err'
12591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592   (eval $ac_try) 2>&5
12593   ac_status=$?
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); }; } &&
12596          { ac_try='test -s conftest.$ac_objext'
12597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598   (eval $ac_try) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602   :
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 continue
12608 fi
12609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12610   cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h.  */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h.  */
12616 $ac_declaration
12617 int
12618 main ()
12619 {
12620 exit (42);
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627   (eval $ac_compile) 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag"
12635                          || test ! -s conftest.err'
12636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637   (eval $ac_try) 2>&5
12638   ac_status=$?
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); }; } &&
12641          { ac_try='test -s conftest.$ac_objext'
12642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643   (eval $ac_try) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); }; }; then
12647   break
12648 else
12649   echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 fi
12653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12654 done
12655 rm -f conftest*
12656 if test -n "$ac_declaration"; then
12657   echo '#ifdef __cplusplus' >>confdefs.h
12658   echo $ac_declaration      >>confdefs.h
12659   echo '#endif'             >>confdefs.h
12660 fi
12661
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 fi
12667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673
12674 depcc="$CC"   am_compiler_list=
12675
12676 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12677 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12682   # We make a subdir and do the tests there.  Otherwise we can end up
12683   # making bogus files that we don't know about and never remove.  For
12684   # instance it was reported that on HP-UX the gcc test will end up
12685   # making a dummy file named `D' -- because `-MD' means `put the output
12686   # in D'.
12687   mkdir conftest.dir
12688   # Copy depcomp to subdir because otherwise we won't find it if we're
12689   # using a relative directory.
12690   cp "$am_depcomp" conftest.dir
12691   cd conftest.dir
12692   # We will build objects and dependencies in a subdirectory because
12693   # it helps to detect inapplicable dependency modes.  For instance
12694   # both Tru64's cc and ICC support -MD to output dependencies as a
12695   # side effect of compilation, but ICC will put the dependencies in
12696   # the current directory while Tru64 will put them in the object
12697   # directory.
12698   mkdir sub
12699
12700   am_cv_CC_dependencies_compiler_type=none
12701   if test "$am_compiler_list" = ""; then
12702      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12703   fi
12704   for depmode in $am_compiler_list; do
12705     # Setup a source with many dependencies, because some compilers
12706     # like to wrap large dependency lists on column 80 (with \), and
12707     # we should not choose a depcomp mode which is confused by this.
12708     #
12709     # We need to recreate these files for each test, as the compiler may
12710     # overwrite some of them when testing with obscure command lines.
12711     # This happens at least with the AIX C compiler.
12712     : > sub/conftest.c
12713     for i in 1 2 3 4 5 6; do
12714       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12715       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12716       # Solaris 8's {/usr,}/bin/sh.
12717       touch sub/conftst$i.h
12718     done
12719     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12720
12721     case $depmode in
12722     nosideeffect)
12723       # after this tag, mechanisms are not by side-effect, so they'll
12724       # only be used when explicitly requested
12725       if test "x$enable_dependency_tracking" = xyes; then
12726         continue
12727       else
12728         break
12729       fi
12730       ;;
12731     none) break ;;
12732     esac
12733     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12734     # mode.  It turns out that the SunPro C++ compiler does not properly
12735     # handle `-M -o', and we need to detect this.
12736     if depmode=$depmode \
12737        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12738        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12739        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12740          >/dev/null 2>conftest.err &&
12741        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12742        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12743        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12744       # icc doesn't choke on unknown options, it will just issue warnings
12745       # or remarks (even with -Werror).  So we grep stderr for any message
12746       # that says an option was ignored or not supported.
12747       # When given -MP, icc 7.0 and 7.1 complain thusly:
12748       #   icc: Command line warning: ignoring option '-M'; no argument required
12749       # The diagnosis changed in icc 8.0:
12750       #   icc: Command line remark: option '-MP' not supported
12751       if (grep 'ignoring option' conftest.err ||
12752           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12753         am_cv_CC_dependencies_compiler_type=$depmode
12754         break
12755       fi
12756     fi
12757   done
12758
12759   cd ..
12760   rm -rf conftest.dir
12761 else
12762   am_cv_CC_dependencies_compiler_type=none
12763 fi
12764
12765 fi
12766 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12767 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12768 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12769
12770
12771
12772 if
12773   test "x$enable_dependency_tracking" != xno \
12774   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12775   am__fastdepCC_TRUE=
12776   am__fastdepCC_FALSE='#'
12777 else
12778   am__fastdepCC_TRUE='#'
12779   am__fastdepCC_FALSE=
12780 fi
12781
12782
12783 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12784         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12785 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12786    { (exit 1); exit 1; }; }
12787 fi
12788
12789 # test for make depend flag
12790 OL_MKDEP=
12791 OL_MKDEP_FLAGS=
12792 if test -z "${MKDEP}"; then
12793         OL_MKDEP="${CC-cc}"
12794         if test -z "${MKDEP_FLAGS}"; then
12795                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12796 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12797 if test "${ol_cv_mkdep+set}" = set; then
12798   echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800
12801                         ol_cv_mkdep=no
12802                         for flag in "-M" "-xM"; do
12803                                 cat > conftest.c <<EOF
12804  noCode;
12805 EOF
12806                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808   (eval $ac_try) 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; } \
12812                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12813                                 then
12814                                         if test ! -f conftest."${ac_object}" ; then
12815                                                 ol_cv_mkdep=$flag
12816                                                 OL_MKDEP_FLAGS="$flag"
12817                                                 break
12818                                         fi
12819                                 fi
12820                         done
12821                         rm -f conftest*
12822
12823 fi
12824 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12825 echo "${ECHO_T}$ol_cv_mkdep" >&6
12826         else
12827                 cc_cv_mkdep=yes
12828                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12829         fi
12830 else
12831         cc_cv_mkdep=yes
12832         OL_MKDEP="${MKDEP}"
12833         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12834 fi
12835
12836
12837
12838 if test "${ol_cv_mkdep}" = no ; then
12839         # this will soon become an error
12840         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12841 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12842 fi
12843
12844 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12845 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12846 if test "${ac_cv_lib_s_afopen+set}" = set; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   ac_check_lib_save_LIBS=$LIBS
12850 LIBS="-ls  $LIBS"
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857
12858 /* Override any gcc2 internal prototype to avoid an error.  */
12859 #ifdef __cplusplus
12860 extern "C"
12861 #endif
12862 /* We use char because int might match the return type of a gcc2
12863    builtin and then its argument prototype would still apply.  */
12864 char afopen ();
12865 int
12866 main ()
12867 {
12868 afopen ();
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875   (eval $ac_link) 2>conftest.er1
12876   ac_status=$?
12877   grep -v '^ *+' conftest.er1 >conftest.err
12878   rm -f conftest.er1
12879   cat conftest.err >&5
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } &&
12882          { ac_try='test -z "$ac_c_werror_flag"
12883                          || test ! -s conftest.err'
12884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885   (eval $ac_try) 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; } &&
12889          { ac_try='test -s conftest$ac_exeext'
12890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891   (eval $ac_try) 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; }; then
12895   ac_cv_lib_s_afopen=yes
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 ac_cv_lib_s_afopen=no
12901 fi
12902 rm -f conftest.err conftest.$ac_objext \
12903       conftest$ac_exeext conftest.$ac_ext
12904 LIBS=$ac_check_lib_save_LIBS
12905 fi
12906 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12907 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12908 if test $ac_cv_lib_s_afopen = yes; then
12909
12910         AUTH_LIBS=-ls
12911
12912 cat >>confdefs.h <<\_ACEOF
12913 #define HAVE_AIX_SECURITY 1
12914 _ACEOF
12915
12916
12917 fi
12918
12919
12920 case "$target" in
12921 *-ibm-openedition)
12922         ac_cv_func_getopt=no
12923
12924 cat >>confdefs.h <<\_ACEOF
12925 #define BOTH_STRINGS_H 1
12926 _ACEOF
12927
12928         ;;
12929 esac
12930
12931 ol_link_modules=no
12932 WITH_MODULES_ENABLED=no
12933 if test $ol_enable_modules != no ; then
12934
12935 for ac_header in ltdl.h
12936 do
12937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939   echo "$as_me:$LINENO: checking for $ac_header" >&5
12940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942   echo $ECHO_N "(cached) $ECHO_C" >&6
12943 fi
12944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 else
12947   # Is the header compilable?
12948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956 $ac_includes_default
12957 #include <$ac_header>
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag"
12969                          || test ! -s conftest.err'
12970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971   (eval $ac_try) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } &&
12975          { ac_try='test -s conftest.$ac_objext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_header_compiler=yes
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986 ac_header_compiler=no
12987 fi
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990 echo "${ECHO_T}$ac_header_compiler" >&6
12991
12992 # Is the header present?
12993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h.  */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h.  */
13001 #include <$ac_header>
13002 _ACEOF
13003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005   ac_status=$?
13006   grep -v '^ *+' conftest.er1 >conftest.err
13007   rm -f conftest.er1
13008   cat conftest.err >&5
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } >/dev/null; then
13011   if test -s conftest.err; then
13012     ac_cpp_err=$ac_c_preproc_warn_flag
13013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13014   else
13015     ac_cpp_err=
13016   fi
13017 else
13018   ac_cpp_err=yes
13019 fi
13020 if test -z "$ac_cpp_err"; then
13021   ac_header_preproc=yes
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026   ac_header_preproc=no
13027 fi
13028 rm -f conftest.err conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030 echo "${ECHO_T}$ac_header_preproc" >&6
13031
13032 # So?  What about this header?
13033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034   yes:no: )
13035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039     ac_header_preproc=yes
13040     ;;
13041   no:yes:* )
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13054     (
13055       cat <<\_ASBOX
13056 ## ------------------------------------------ ##
13057 ## Report this to the AC_PACKAGE_NAME lists.  ##
13058 ## ------------------------------------------ ##
13059 _ASBOX
13060     ) |
13061       sed "s/^/$as_me: WARNING:     /" >&2
13062     ;;
13063 esac
13064 echo "$as_me:$LINENO: checking for $ac_header" >&5
13065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   eval "$as_ac_Header=\$ac_header_preproc"
13070 fi
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13073
13074 fi
13075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076   cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 _ACEOF
13079
13080 fi
13081
13082 done
13083
13084
13085         if test $ac_cv_header_ltdl_h = no ; then
13086                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13087 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13088    { (exit 1); exit 1; }; }
13089         fi
13090
13091         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13092 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13093 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13094   echo $ECHO_N "(cached) $ECHO_C" >&6
13095 else
13096   ac_check_lib_save_LIBS=$LIBS
13097 LIBS="-lltdl  $LIBS"
13098 cat >conftest.$ac_ext <<_ACEOF
13099 /* confdefs.h.  */
13100 _ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h.  */
13104
13105 /* Override any gcc2 internal prototype to avoid an error.  */
13106 #ifdef __cplusplus
13107 extern "C"
13108 #endif
13109 /* We use char because int might match the return type of a gcc2
13110    builtin and then its argument prototype would still apply.  */
13111 char lt_dlinit ();
13112 int
13113 main ()
13114 {
13115 lt_dlinit ();
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122   (eval $ac_link) 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag"
13130                          || test ! -s conftest.err'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; } &&
13136          { ac_try='test -s conftest$ac_exeext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_cv_lib_ltdl_lt_dlinit=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_cv_lib_ltdl_lt_dlinit=no
13148 fi
13149 rm -f conftest.err conftest.$ac_objext \
13150       conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_lib_save_LIBS
13152 fi
13153 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13154 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13155 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13156
13157                 MODULES_LIBS=-lltdl
13158
13159 cat >>confdefs.h <<\_ACEOF
13160 #define HAVE_LIBLTDL 1
13161 _ACEOF
13162
13163
13164 fi
13165
13166
13167         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13168                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13169 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13170    { (exit 1); exit 1; }; }
13171         fi
13172         ol_link_modules=yes
13173         WITH_MODULES_ENABLED=yes
13174
13175 else
13176         for i in $Backends; do
13177                 eval "ol_tmp=\$ol_enable_$i"
13178                 if test $ol_tmp = mod ; then
13179                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13180 echo "$as_me: WARNING: building static $i backend" >&2;}
13181                         eval "ol_enable_$i=yes"
13182                 fi
13183         done
13184         for i in $Overlays; do
13185                 eval "ol_tmp=\$ol_enable_$i"
13186                 if test $ol_tmp = mod ; then
13187                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13188 echo "$as_me: WARNING: building static $i overlay" >&2;}
13189                         eval "ol_enable_$i=yes"
13190                 fi
13191         done
13192 fi
13193
13194 # test for EBCDIC
13195 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13196 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13197 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200
13201         cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207
13208 #if !('M' == 0xd4)
13209 #include <__ASCII__/generate_error.h>
13210 #endif
13211
13212 _ACEOF
13213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } >/dev/null; then
13221   if test -s conftest.err; then
13222     ac_cpp_err=$ac_c_preproc_warn_flag
13223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13224   else
13225     ac_cpp_err=
13226   fi
13227 else
13228   ac_cpp_err=yes
13229 fi
13230 if test -z "$ac_cpp_err"; then
13231   ol_cv_cpp_ebcdic=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236   ol_cv_cpp_ebcdic=no
13237 fi
13238 rm -f conftest.err conftest.$ac_ext
13239 fi
13240 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13241 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13242 if test $ol_cv_cpp_ebcdic = yes ; then
13243
13244 cat >>confdefs.h <<\_ACEOF
13245 #define HAVE_EBCDIC 1
13246 _ACEOF
13247
13248 fi
13249
13250 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13251 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13252 if test "${ol_cv_header_stdc+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261 #include <stdlib.h>
13262 #include <stdarg.h>
13263 #include <string.h>
13264 #include <float.h>
13265 _ACEOF
13266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } >/dev/null; then
13274   if test -s conftest.err; then
13275     ac_cpp_err=$ac_c_preproc_warn_flag
13276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13277   else
13278     ac_cpp_err=
13279   fi
13280 else
13281   ac_cpp_err=yes
13282 fi
13283 if test -z "$ac_cpp_err"; then
13284   ol_cv_header_stdc=yes
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289   ol_cv_header_stdc=no
13290 fi
13291 rm -f conftest.err conftest.$ac_ext
13292
13293 if test $ol_cv_header_stdc = yes; then
13294   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301 #include <string.h>
13302
13303 _ACEOF
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305   $EGREP "memchr" >/dev/null 2>&1; then
13306   :
13307 else
13308   ol_cv_header_stdc=no
13309 fi
13310 rm -f conftest*
13311
13312 fi
13313
13314 if test $ol_cv_header_stdc = yes; then
13315   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 #include <stdlib.h>
13323
13324 _ACEOF
13325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13326   $EGREP "free" >/dev/null 2>&1; then
13327   :
13328 else
13329   ol_cv_header_stdc=no
13330 fi
13331 rm -f conftest*
13332
13333 fi
13334
13335 if test $ol_cv_header_stdc = yes; then
13336   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13337 if test "$cross_compiling" = yes; then
13338   :
13339 else
13340   cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346 #include <ctype.h>
13347 #ifndef HAVE_EBCDIC
13348 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13349 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13350 #else
13351 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13352                 || ('j' <= (c) && (c) <= 'r') \
13353                 || ('s' <= (c) && (c) <= 'z'))
13354 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13355 #endif
13356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13357 int main () { int i; for (i = 0; i < 256; i++)
13358 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13359 exit (0); }
13360
13361 _ACEOF
13362 rm -f conftest$ac_exeext
13363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13364   (eval $ac_link) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369   (eval $ac_try) 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; }; then
13373   :
13374 else
13375   echo "$as_me: program exited with status $ac_status" >&5
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ( exit $ac_status )
13380 ol_cv_header_stdc=no
13381 fi
13382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13383 fi
13384 fi
13385 fi
13386 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13387 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13388 if test $ol_cv_header_stdc = yes; then
13389   cat >>confdefs.h <<\_ACEOF
13390 #define STDC_HEADERS 1
13391 _ACEOF
13392
13393 fi
13394 ac_cv_header_stdc=disable
13395
13396
13397 if test $ol_cv_header_stdc != yes; then
13398         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13399 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13400 fi
13401
13402
13403
13404
13405
13406
13407 ac_header_dirent=no
13408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13409   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13410 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13411 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   cat >conftest.$ac_ext <<_ACEOF
13416 /* confdefs.h.  */
13417 _ACEOF
13418 cat confdefs.h >>conftest.$ac_ext
13419 cat >>conftest.$ac_ext <<_ACEOF
13420 /* end confdefs.h.  */
13421 #include <sys/types.h>
13422 #include <$ac_hdr>
13423
13424 int
13425 main ()
13426 {
13427 if ((DIR *) 0)
13428 return 0;
13429   ;
13430   return 0;
13431 }
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>conftest.er1
13436   ac_status=$?
13437   grep -v '^ *+' conftest.er1 >conftest.err
13438   rm -f conftest.er1
13439   cat conftest.err >&5
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } &&
13442          { ac_try='test -z "$ac_c_werror_flag"
13443                          || test ! -s conftest.err'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; } &&
13449          { ac_try='test -s conftest.$ac_objext'
13450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451   (eval $ac_try) 2>&5
13452   ac_status=$?
13453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454   (exit $ac_status); }; }; then
13455   eval "$as_ac_Header=yes"
13456 else
13457   echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460 eval "$as_ac_Header=no"
13461 fi
13462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13463 fi
13464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13467   cat >>confdefs.h <<_ACEOF
13468 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13469 _ACEOF
13470
13471 ac_header_dirent=$ac_hdr; break
13472 fi
13473
13474 done
13475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13476 if test $ac_header_dirent = dirent.h; then
13477   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13478 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13479 if test "${ac_cv_search_opendir+set}" = set; then
13480   echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482   ac_func_search_save_LIBS=$LIBS
13483 ac_cv_search_opendir=no
13484 cat >conftest.$ac_ext <<_ACEOF
13485 /* confdefs.h.  */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h.  */
13490
13491 /* Override any gcc2 internal prototype to avoid an error.  */
13492 #ifdef __cplusplus
13493 extern "C"
13494 #endif
13495 /* We use char because int might match the return type of a gcc2
13496    builtin and then its argument prototype would still apply.  */
13497 char opendir ();
13498 int
13499 main ()
13500 {
13501 opendir ();
13502   ;
13503   return 0;
13504 }
13505 _ACEOF
13506 rm -f conftest.$ac_objext conftest$ac_exeext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13508   (eval $ac_link) 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag"
13516                          || test ! -s conftest.err'
13517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518   (eval $ac_try) 2>&5
13519   ac_status=$?
13520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521   (exit $ac_status); }; } &&
13522          { ac_try='test -s conftest$ac_exeext'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   ac_cv_search_opendir="none required"
13529 else
13530   echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533 fi
13534 rm -f conftest.err conftest.$ac_objext \
13535       conftest$ac_exeext conftest.$ac_ext
13536 if test "$ac_cv_search_opendir" = no; then
13537   for ac_lib in dir; do
13538     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13539     cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545
13546 /* Override any gcc2 internal prototype to avoid an error.  */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 /* We use char because int might match the return type of a gcc2
13551    builtin and then its argument prototype would still apply.  */
13552 char opendir ();
13553 int
13554 main ()
13555 {
13556 opendir ();
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563   (eval $ac_link) 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } &&
13570          { ac_try='test -z "$ac_c_werror_flag"
13571                          || test ! -s conftest.err'
13572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573   (eval $ac_try) 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; } &&
13577          { ac_try='test -s conftest$ac_exeext'
13578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13579   (eval $ac_try) 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   ac_cv_search_opendir="-l$ac_lib"
13584 break
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 fi
13590 rm -f conftest.err conftest.$ac_objext \
13591       conftest$ac_exeext conftest.$ac_ext
13592   done
13593 fi
13594 LIBS=$ac_func_search_save_LIBS
13595 fi
13596 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13597 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13598 if test "$ac_cv_search_opendir" != no; then
13599   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13600
13601 fi
13602
13603 else
13604   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13605 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13606 if test "${ac_cv_search_opendir+set}" = set; then
13607   echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609   ac_func_search_save_LIBS=$LIBS
13610 ac_cv_search_opendir=no
13611 cat >conftest.$ac_ext <<_ACEOF
13612 /* confdefs.h.  */
13613 _ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h.  */
13617
13618 /* Override any gcc2 internal prototype to avoid an error.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 #endif
13622 /* We use char because int might match the return type of a gcc2
13623    builtin and then its argument prototype would still apply.  */
13624 char opendir ();
13625 int
13626 main ()
13627 {
13628 opendir ();
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext conftest$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635   (eval $ac_link) 2>conftest.er1
13636   ac_status=$?
13637   grep -v '^ *+' conftest.er1 >conftest.err
13638   rm -f conftest.er1
13639   cat conftest.err >&5
13640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); } &&
13642          { ac_try='test -z "$ac_c_werror_flag"
13643                          || test ! -s conftest.err'
13644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645   (eval $ac_try) 2>&5
13646   ac_status=$?
13647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648   (exit $ac_status); }; } &&
13649          { ac_try='test -s conftest$ac_exeext'
13650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651   (eval $ac_try) 2>&5
13652   ac_status=$?
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); }; }; then
13655   ac_cv_search_opendir="none required"
13656 else
13657   echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660 fi
13661 rm -f conftest.err conftest.$ac_objext \
13662       conftest$ac_exeext conftest.$ac_ext
13663 if test "$ac_cv_search_opendir" = no; then
13664   for ac_lib in x; do
13665     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13666     cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672
13673 /* Override any gcc2 internal prototype to avoid an error.  */
13674 #ifdef __cplusplus
13675 extern "C"
13676 #endif
13677 /* We use char because int might match the return type of a gcc2
13678    builtin and then its argument prototype would still apply.  */
13679 char opendir ();
13680 int
13681 main ()
13682 {
13683 opendir ();
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690   (eval $ac_link) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_c_werror_flag"
13698                          || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest$ac_exeext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_search_opendir="-l$ac_lib"
13711 break
13712 else
13713   echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 fi
13717 rm -f conftest.err conftest.$ac_objext \
13718       conftest$ac_exeext conftest.$ac_ext
13719   done
13720 fi
13721 LIBS=$ac_func_search_save_LIBS
13722 fi
13723 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13724 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13725 if test "$ac_cv_search_opendir" != no; then
13726   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13727
13728 fi
13729
13730 fi
13731
13732 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13733 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13734 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13735   echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737   cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h.  */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h.  */
13743 #include <sys/types.h>
13744 #include <sys/wait.h>
13745 #ifndef WEXITSTATUS
13746 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13747 #endif
13748 #ifndef WIFEXITED
13749 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13750 #endif
13751
13752 int
13753 main ()
13754 {
13755   int s;
13756   wait (&s);
13757   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764   (eval $ac_compile) 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_c_werror_flag"
13772                          || test ! -s conftest.err'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; } &&
13778          { ac_try='test -s conftest.$ac_objext'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   ac_cv_header_sys_wait_h=yes
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789 ac_cv_header_sys_wait_h=no
13790 fi
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 fi
13793 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13794 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13795 if test $ac_cv_header_sys_wait_h = yes; then
13796
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_SYS_WAIT_H 1
13799 _ACEOF
13800
13801 fi
13802
13803 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13804 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13805 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13806   echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808   cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814 #include <sys/types.h>
13815 #include <termios.h>
13816 #ifdef TIOCGWINSZ
13817   yes
13818 #endif
13819
13820 _ACEOF
13821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13822   $EGREP "yes" >/dev/null 2>&1; then
13823   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13824 else
13825   ac_cv_sys_tiocgwinsz_in_termios_h=no
13826 fi
13827 rm -f conftest*
13828
13829 fi
13830 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13831 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13832
13833 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13834   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13835 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13836 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845 #include <sys/types.h>
13846 #include <sys/ioctl.h>
13847 #ifdef TIOCGWINSZ
13848   yes
13849 #endif
13850
13851 _ACEOF
13852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13853   $EGREP "yes" >/dev/null 2>&1; then
13854   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13855 else
13856   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13857 fi
13858 rm -f conftest*
13859
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13862 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13863
13864   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13865
13866 cat >>confdefs.h <<\_ACEOF
13867 #define GWINSZ_IN_SYS_IOCTL 1
13868 _ACEOF
13869
13870   fi
13871 fi
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
13913
13914
13915
13916
13917
13918
13919
13920
13921 for ac_header in \
13922         arpa/inet.h             \
13923         arpa/nameser.h          \
13924         assert.h                \
13925         bits/types.h            \
13926         conio.h                 \
13927         crypt.h                 \
13928         direct.h                \
13929         errno.h                 \
13930         fcntl.h                 \
13931         filio.h                 \
13932         getopt.h                \
13933         grp.h                   \
13934         io.h                    \
13935         libutil.h               \
13936         limits.h                \
13937         locale.h                \
13938         netinet/tcp.h           \
13939         malloc.h                \
13940         memory.h                \
13941         psap.h                  \
13942         pwd.h                   \
13943         process.h               \
13944         sgtty.h                 \
13945         shadow.h                \
13946         stddef.h                \
13947         string.h                \
13948         strings.h               \
13949         sysexits.h              \
13950         sys/file.h              \
13951         sys/filio.h             \
13952         sys/errno.h             \
13953         sys/ioctl.h             \
13954         sys/param.h             \
13955         sys/resource.h          \
13956         sys/select.h            \
13957         sys/socket.h            \
13958         sys/stat.h              \
13959         sys/syslog.h            \
13960         sys/time.h              \
13961         sys/types.h             \
13962         sys/uio.h               \
13963         syslog.h                \
13964         termios.h               \
13965         unistd.h                \
13966         utime.h                 \
13967         winsock.h               \
13968         winsock2.h              \
13969
13970 do
13971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13973   echo "$as_me:$LINENO: checking for $ac_header" >&5
13974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13976   echo $ECHO_N "(cached) $ECHO_C" >&6
13977 fi
13978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980 else
13981   # Is the header compilable?
13982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13984 cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990 $ac_includes_default
13991 #include <$ac_header>
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995   (eval $ac_compile) 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } &&
14002          { ac_try='test -z "$ac_c_werror_flag"
14003                          || test ! -s conftest.err'
14004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005   (eval $ac_try) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; } &&
14009          { ac_try='test -s conftest.$ac_objext'
14010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011   (eval $ac_try) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; }; then
14015   ac_header_compiler=yes
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_header_compiler=no
14021 fi
14022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024 echo "${ECHO_T}$ac_header_compiler" >&6
14025
14026 # Is the header present?
14027 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14030 /* confdefs.h.  */
14031 _ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h.  */
14035 #include <$ac_header>
14036 _ACEOF
14037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14039   ac_status=$?
14040   grep -v '^ *+' conftest.er1 >conftest.err
14041   rm -f conftest.er1
14042   cat conftest.err >&5
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } >/dev/null; then
14045   if test -s conftest.err; then
14046     ac_cpp_err=$ac_c_preproc_warn_flag
14047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14048   else
14049     ac_cpp_err=
14050   fi
14051 else
14052   ac_cpp_err=yes
14053 fi
14054 if test -z "$ac_cpp_err"; then
14055   ac_header_preproc=yes
14056 else
14057   echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060   ac_header_preproc=no
14061 fi
14062 rm -f conftest.err conftest.$ac_ext
14063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14064 echo "${ECHO_T}$ac_header_preproc" >&6
14065
14066 # So?  What about this header?
14067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14068   yes:no: )
14069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14073     ac_header_preproc=yes
14074     ;;
14075   no:yes:* )
14076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14088     (
14089       cat <<\_ASBOX
14090 ## ------------------------------------------ ##
14091 ## Report this to the AC_PACKAGE_NAME lists.  ##
14092 ## ------------------------------------------ ##
14093 _ASBOX
14094     ) |
14095       sed "s/^/$as_me: WARNING:     /" >&2
14096     ;;
14097 esac
14098 echo "$as_me:$LINENO: checking for $ac_header" >&5
14099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103   eval "$as_ac_Header=\$ac_header_preproc"
14104 fi
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107
14108 fi
14109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14110   cat >>confdefs.h <<_ACEOF
14111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14112 _ACEOF
14113
14114 fi
14115
14116 done
14117
14118
14119
14120 for ac_header in resolv.h
14121 do
14122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14123 echo "$as_me:$LINENO: checking for $ac_header" >&5
14124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14126   echo $ECHO_N "(cached) $ECHO_C" >&6
14127 else
14128   cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 $ac_includes_default
14135 #include <netinet/in.h>
14136
14137
14138 #include <$ac_header>
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142   (eval $ac_compile) 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -z "$ac_c_werror_flag"
14150                          || test ! -s conftest.err'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; } &&
14156          { ac_try='test -s conftest.$ac_objext'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   eval "$as_ac_Header=yes"
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 eval "$as_ac_Header=no"
14168 fi
14169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 fi
14171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14174   cat >>confdefs.h <<_ACEOF
14175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14176 _ACEOF
14177
14178 fi
14179
14180 done
14181
14182
14183
14184 for ac_header in sys/ucred.h
14185 do
14186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14187 echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198 $ac_includes_default
14199 #ifdef HAVE_SYS_PARAM_H
14200 #include <sys/param.h>
14201 #endif
14202
14203
14204 #include <$ac_header>
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14208   (eval $ac_compile) 2>conftest.er1
14209   ac_status=$?
14210   grep -v '^ *+' conftest.er1 >conftest.err
14211   rm -f conftest.er1
14212   cat conftest.err >&5
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } &&
14215          { ac_try='test -z "$ac_c_werror_flag"
14216                          || test ! -s conftest.err'
14217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218   (eval $ac_try) 2>&5
14219   ac_status=$?
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); }; } &&
14222          { ac_try='test -s conftest.$ac_objext'
14223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224   (eval $ac_try) 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   eval "$as_ac_Header=yes"
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233 eval "$as_ac_Header=no"
14234 fi
14235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 fi
14237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14240   cat >>confdefs.h <<_ACEOF
14241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14242 _ACEOF
14243
14244 fi
14245
14246 done
14247
14248
14249
14250
14251
14252 for ac_func in sigaction sigset
14253 do
14254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14255 echo "$as_me:$LINENO: checking for $ac_func" >&5
14256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14257 if eval "test \"\${$as_ac_var+set}\" = set"; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14268 #define $ac_func innocuous_$ac_func
14269
14270 /* System header to define __stub macros and hopefully few prototypes,
14271     which can conflict with char $ac_func (); below.
14272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14273     <limits.h> exists even on freestanding compilers.  */
14274
14275 #ifdef __STDC__
14276 # include <limits.h>
14277 #else
14278 # include <assert.h>
14279 #endif
14280
14281 #undef $ac_func
14282
14283 /* Override any gcc2 internal prototype to avoid an error.  */
14284 #ifdef __cplusplus
14285 extern "C"
14286 {
14287 #endif
14288 /* We use char because int might match the return type of a gcc2
14289    builtin and then its argument prototype would still apply.  */
14290 char $ac_func ();
14291 /* The GNU C library defines this for functions which it implements
14292     to always fail with ENOSYS.  Some functions are actually named
14293     something starting with __ and the normal name is an alias.  */
14294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14295 choke me
14296 #else
14297 char (*f) () = $ac_func;
14298 #endif
14299 #ifdef __cplusplus
14300 }
14301 #endif
14302
14303 int
14304 main ()
14305 {
14306 return f != $ac_func;
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313   (eval $ac_link) 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag"
14321                          || test ! -s conftest.err'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest$ac_exeext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   eval "$as_ac_var=yes"
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 eval "$as_ac_var=no"
14339 fi
14340 rm -f conftest.err conftest.$ac_objext \
14341       conftest$ac_exeext conftest.$ac_ext
14342 fi
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14345 if test `eval echo '${'$as_ac_var'}'` = yes; then
14346   cat >>confdefs.h <<_ACEOF
14347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14348 _ACEOF
14349
14350 fi
14351 done
14352
14353
14354 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14355
14356 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14357 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14358 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-lV3  $LIBS"
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 /* Override any gcc2 internal prototype to avoid an error.  */
14371 #ifdef __cplusplus
14372 extern "C"
14373 #endif
14374 /* We use char because int might match the return type of a gcc2
14375    builtin and then its argument prototype would still apply.  */
14376 char sigset ();
14377 int
14378 main ()
14379 {
14380 sigset ();
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14387   (eval $ac_link) 2>conftest.er1
14388   ac_status=$?
14389   grep -v '^ *+' conftest.er1 >conftest.err
14390   rm -f conftest.er1
14391   cat conftest.err >&5
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); } &&
14394          { ac_try='test -z "$ac_c_werror_flag"
14395                          || test ! -s conftest.err'
14396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14397   (eval $ac_try) 2>&5
14398   ac_status=$?
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); }; } &&
14401          { ac_try='test -s conftest$ac_exeext'
14402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403   (eval $ac_try) 2>&5
14404   ac_status=$?
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); }; }; then
14407   ac_cv_lib_V3_sigset=yes
14408 else
14409   echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14411
14412 ac_cv_lib_V3_sigset=no
14413 fi
14414 rm -f conftest.err conftest.$ac_objext \
14415       conftest$ac_exeext conftest.$ac_ext
14416 LIBS=$ac_check_lib_save_LIBS
14417 fi
14418 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14419 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14420 if test $ac_cv_lib_V3_sigset = yes; then
14421   cat >>confdefs.h <<_ACEOF
14422 #define HAVE_LIBV3 1
14423 _ACEOF
14424
14425   LIBS="-lV3 $LIBS"
14426
14427 fi
14428
14429 fi
14430
14431 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14432 echo "$as_me:$LINENO: checking for winsock" >&5
14433 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14434 if test "${ol_cv_winsock+set}" = set; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   save_LIBS="$LIBS"
14438 for curlib in ws2_32 wsock32; do
14439         LIBS="$LIBS -l$curlib"
14440         cat >conftest.$ac_ext <<_ACEOF
14441 /* confdefs.h.  */
14442 _ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h.  */
14446 #include <winsock.h>
14447
14448 int
14449 main ()
14450 {
14451
14452                         socket(0,0,0);
14453                         select(0,NULL,NULL,NULL,NULL);
14454                         closesocket(0);
14455                         gethostname(NULL,0);
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>conftest.er1
14464   ac_status=$?
14465   grep -v '^ *+' conftest.er1 >conftest.err
14466   rm -f conftest.er1
14467   cat conftest.err >&5
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } &&
14470          { ac_try='test -z "$ac_c_werror_flag"
14471                          || test ! -s conftest.err'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; } &&
14477          { ac_try='test -s conftest$ac_exeext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   ol_cv_winsock=yes
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ol_cv_winsock=no
14489 fi
14490 rm -f conftest.err conftest.$ac_objext \
14491       conftest$ac_exeext conftest.$ac_ext
14492
14493         if test $ol_cv_winsock = yes; then
14494
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_WINSOCK 1
14497 _ACEOF
14498
14499                 ac_cv_func_socket=yes
14500                 ac_cv_func_select=yes
14501                 ac_cv_func_closesocket=yes
14502                 ac_cv_func_gethostname=yes
14503                 if test $curlib = ws2_32; then
14504                         ol_cv_winsock=winsock2
14505
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_WINSOCK2 1
14508 _ACEOF
14509
14510                 fi
14511                 break
14512         fi
14513         LIBS="$save_LIBS"
14514 done
14515 fi
14516 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14517 echo "${ECHO_T}$ol_cv_winsock" >&6
14518 fi
14519
14520
14521 echo "$as_me:$LINENO: checking for socket" >&5
14522 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14523 if test "${ac_cv_func_socket+set}" = set; then
14524   echo $ECHO_N "(cached) $ECHO_C" >&6
14525 else
14526   cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14534 #define socket innocuous_socket
14535
14536 /* System header to define __stub macros and hopefully few prototypes,
14537     which can conflict with char socket (); below.
14538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14539     <limits.h> exists even on freestanding compilers.  */
14540
14541 #ifdef __STDC__
14542 # include <limits.h>
14543 #else
14544 # include <assert.h>
14545 #endif
14546
14547 #undef socket
14548
14549 /* Override any gcc2 internal prototype to avoid an error.  */
14550 #ifdef __cplusplus
14551 extern "C"
14552 {
14553 #endif
14554 /* We use char because int might match the return type of a gcc2
14555    builtin and then its argument prototype would still apply.  */
14556 char socket ();
14557 /* The GNU C library defines this for functions which it implements
14558     to always fail with ENOSYS.  Some functions are actually named
14559     something starting with __ and the normal name is an alias.  */
14560 #if defined (__stub_socket) || defined (__stub___socket)
14561 choke me
14562 #else
14563 char (*f) () = socket;
14564 #endif
14565 #ifdef __cplusplus
14566 }
14567 #endif
14568
14569 int
14570 main ()
14571 {
14572 return f != socket;
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14579   (eval $ac_link) 2>conftest.er1
14580   ac_status=$?
14581   grep -v '^ *+' conftest.er1 >conftest.err
14582   rm -f conftest.er1
14583   cat conftest.err >&5
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -z "$ac_c_werror_flag"
14587                          || test ! -s conftest.err'
14588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589   (eval $ac_try) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; } &&
14593          { ac_try='test -s conftest$ac_exeext'
14594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595   (eval $ac_try) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599   ac_cv_func_socket=yes
14600 else
14601   echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ac_cv_func_socket=no
14605 fi
14606 rm -f conftest.err conftest.$ac_objext \
14607       conftest$ac_exeext conftest.$ac_ext
14608 fi
14609 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14610 echo "${ECHO_T}$ac_cv_func_socket" >&6
14611 if test $ac_cv_func_socket = yes; then
14612   :
14613 else
14614
14615
14616 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14617 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14618 if test "${ac_cv_lib_socket_main+set}" = set; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   ac_check_lib_save_LIBS=$LIBS
14622 LIBS="-lsocket  $LIBS"
14623 cat >conftest.$ac_ext <<_ACEOF
14624 /* confdefs.h.  */
14625 _ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h.  */
14629
14630
14631 int
14632 main ()
14633 {
14634 main ();
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext conftest$ac_exeext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14641   (eval $ac_link) 2>conftest.er1
14642   ac_status=$?
14643   grep -v '^ *+' conftest.er1 >conftest.err
14644   rm -f conftest.er1
14645   cat conftest.err >&5
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } &&
14648          { ac_try='test -z "$ac_c_werror_flag"
14649                          || test ! -s conftest.err'
14650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651   (eval $ac_try) 2>&5
14652   ac_status=$?
14653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654   (exit $ac_status); }; } &&
14655          { ac_try='test -s conftest$ac_exeext'
14656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657   (eval $ac_try) 2>&5
14658   ac_status=$?
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); }; }; then
14661   ac_cv_lib_socket_main=yes
14662 else
14663   echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14665
14666 ac_cv_lib_socket_main=no
14667 fi
14668 rm -f conftest.err conftest.$ac_objext \
14669       conftest$ac_exeext conftest.$ac_ext
14670 LIBS=$ac_check_lib_save_LIBS
14671 fi
14672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14673 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14674 if test $ac_cv_lib_socket_main = yes; then
14675   cat >>confdefs.h <<_ACEOF
14676 #define HAVE_LIBSOCKET 1
14677 _ACEOF
14678
14679   LIBS="-lsocket $LIBS"
14680
14681 fi
14682
14683
14684 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14685 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14686 if test "${ac_cv_lib_net_main+set}" = set; then
14687   echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689   ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-lnet  $LIBS"
14691 cat >conftest.$ac_ext <<_ACEOF
14692 /* confdefs.h.  */
14693 _ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h.  */
14697
14698
14699 int
14700 main ()
14701 {
14702 main ();
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14709   (eval $ac_link) 2>conftest.er1
14710   ac_status=$?
14711   grep -v '^ *+' conftest.er1 >conftest.err
14712   rm -f conftest.er1
14713   cat conftest.err >&5
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -z "$ac_c_werror_flag"
14717                          || test ! -s conftest.err'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; } &&
14723          { ac_try='test -s conftest$ac_exeext'
14724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725   (eval $ac_try) 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; }; then
14729   ac_cv_lib_net_main=yes
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ac_cv_lib_net_main=no
14735 fi
14736 rm -f conftest.err conftest.$ac_objext \
14737       conftest$ac_exeext conftest.$ac_ext
14738 LIBS=$ac_check_lib_save_LIBS
14739 fi
14740 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14741 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14742 if test $ac_cv_lib_net_main = yes; then
14743   cat >>confdefs.h <<_ACEOF
14744 #define HAVE_LIBNET 1
14745 _ACEOF
14746
14747   LIBS="-lnet $LIBS"
14748
14749 fi
14750
14751
14752 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14753 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14754 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14755   echo $ECHO_N "(cached) $ECHO_C" >&6
14756 else
14757   ac_check_lib_save_LIBS=$LIBS
14758 LIBS="-lnsl_s  $LIBS"
14759 cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765
14766
14767 int
14768 main ()
14769 {
14770 main ();
14771   ;
14772   return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14777   (eval $ac_link) 2>conftest.er1
14778   ac_status=$?
14779   grep -v '^ *+' conftest.er1 >conftest.err
14780   rm -f conftest.er1
14781   cat conftest.err >&5
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); } &&
14784          { ac_try='test -z "$ac_c_werror_flag"
14785                          || test ! -s conftest.err'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; } &&
14791          { ac_try='test -s conftest$ac_exeext'
14792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793   (eval $ac_try) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; }; then
14797   ac_cv_lib_nsl_s_main=yes
14798 else
14799   echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14801
14802 ac_cv_lib_nsl_s_main=no
14803 fi
14804 rm -f conftest.err conftest.$ac_objext \
14805       conftest$ac_exeext conftest.$ac_ext
14806 LIBS=$ac_check_lib_save_LIBS
14807 fi
14808 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14809 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14810 if test $ac_cv_lib_nsl_s_main = yes; then
14811   cat >>confdefs.h <<_ACEOF
14812 #define HAVE_LIBNSL_S 1
14813 _ACEOF
14814
14815   LIBS="-lnsl_s $LIBS"
14816
14817 fi
14818
14819
14820 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14821 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14822 if test "${ac_cv_lib_nsl_main+set}" = set; then
14823   echo $ECHO_N "(cached) $ECHO_C" >&6
14824 else
14825   ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-lnsl  $LIBS"
14827 cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h.  */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h.  */
14833
14834
14835 int
14836 main ()
14837 {
14838 main ();
14839   ;
14840   return 0;
14841 }
14842 _ACEOF
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845   (eval $ac_link) 2>conftest.er1
14846   ac_status=$?
14847   grep -v '^ *+' conftest.er1 >conftest.err
14848   rm -f conftest.er1
14849   cat conftest.err >&5
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); } &&
14852          { ac_try='test -z "$ac_c_werror_flag"
14853                          || test ! -s conftest.err'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; } &&
14859          { ac_try='test -s conftest$ac_exeext'
14860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861   (eval $ac_try) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); }; }; then
14865   ac_cv_lib_nsl_main=yes
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 ac_cv_lib_nsl_main=no
14871 fi
14872 rm -f conftest.err conftest.$ac_objext \
14873       conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14875 fi
14876 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14877 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14878 if test $ac_cv_lib_nsl_main = yes; then
14879   cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBNSL 1
14881 _ACEOF
14882
14883   LIBS="-lnsl $LIBS"
14884
14885 fi
14886
14887
14888 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14889 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14890 if test "${ac_cv_lib_inet_socket+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893   ac_check_lib_save_LIBS=$LIBS
14894 LIBS="-linet  $LIBS"
14895 cat >conftest.$ac_ext <<_ACEOF
14896 /* confdefs.h.  */
14897 _ACEOF
14898 cat confdefs.h >>conftest.$ac_ext
14899 cat >>conftest.$ac_ext <<_ACEOF
14900 /* end confdefs.h.  */
14901
14902 /* Override any gcc2 internal prototype to avoid an error.  */
14903 #ifdef __cplusplus
14904 extern "C"
14905 #endif
14906 /* We use char because int might match the return type of a gcc2
14907    builtin and then its argument prototype would still apply.  */
14908 char socket ();
14909 int
14910 main ()
14911 {
14912 socket ();
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14919   (eval $ac_link) 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } &&
14926          { ac_try='test -z "$ac_c_werror_flag"
14927                          || test ! -s conftest.err'
14928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14929   (eval $ac_try) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); }; } &&
14933          { ac_try='test -s conftest$ac_exeext'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; }; then
14939   ac_cv_lib_inet_socket=yes
14940 else
14941   echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ac_cv_lib_inet_socket=no
14945 fi
14946 rm -f conftest.err conftest.$ac_objext \
14947       conftest$ac_exeext conftest.$ac_ext
14948 LIBS=$ac_check_lib_save_LIBS
14949 fi
14950 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14951 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14952 if test $ac_cv_lib_inet_socket = yes; then
14953   cat >>confdefs.h <<_ACEOF
14954 #define HAVE_LIBINET 1
14955 _ACEOF
14956
14957   LIBS="-linet $LIBS"
14958
14959 fi
14960
14961
14962 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14963 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14964 if test "${ac_cv_lib_gen_main+set}" = set; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   ac_check_lib_save_LIBS=$LIBS
14968 LIBS="-lgen  $LIBS"
14969 cat >conftest.$ac_ext <<_ACEOF
14970 /* confdefs.h.  */
14971 _ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h.  */
14975
14976
14977 int
14978 main ()
14979 {
14980 main ();
14981   ;
14982   return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987   (eval $ac_link) 2>conftest.er1
14988   ac_status=$?
14989   grep -v '^ *+' conftest.er1 >conftest.err
14990   rm -f conftest.er1
14991   cat conftest.err >&5
14992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993   (exit $ac_status); } &&
14994          { ac_try='test -z "$ac_c_werror_flag"
14995                          || test ! -s conftest.err'
14996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997   (eval $ac_try) 2>&5
14998   ac_status=$?
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); }; } &&
15001          { ac_try='test -s conftest$ac_exeext'
15002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003   (eval $ac_try) 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; }; then
15007   ac_cv_lib_gen_main=yes
15008 else
15009   echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 ac_cv_lib_gen_main=no
15013 fi
15014 rm -f conftest.err conftest.$ac_objext \
15015       conftest$ac_exeext conftest.$ac_ext
15016 LIBS=$ac_check_lib_save_LIBS
15017 fi
15018 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15019 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15020 if test $ac_cv_lib_gen_main = yes; then
15021   cat >>confdefs.h <<_ACEOF
15022 #define HAVE_LIBGEN 1
15023 _ACEOF
15024
15025   LIBS="-lgen $LIBS"
15026
15027 fi
15028
15029
15030 fi
15031
15032
15033 echo "$as_me:$LINENO: checking for select" >&5
15034 echo $ECHO_N "checking for select... $ECHO_C" >&6
15035 if test "${ac_cv_func_select+set}" = set; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044 /* Define select to an innocuous variant, in case <limits.h> declares select.
15045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15046 #define select innocuous_select
15047
15048 /* System header to define __stub macros and hopefully few prototypes,
15049     which can conflict with char select (); below.
15050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15051     <limits.h> exists even on freestanding compilers.  */
15052
15053 #ifdef __STDC__
15054 # include <limits.h>
15055 #else
15056 # include <assert.h>
15057 #endif
15058
15059 #undef select
15060
15061 /* Override any gcc2 internal prototype to avoid an error.  */
15062 #ifdef __cplusplus
15063 extern "C"
15064 {
15065 #endif
15066 /* We use char because int might match the return type of a gcc2
15067    builtin and then its argument prototype would still apply.  */
15068 char select ();
15069 /* The GNU C library defines this for functions which it implements
15070     to always fail with ENOSYS.  Some functions are actually named
15071     something starting with __ and the normal name is an alias.  */
15072 #if defined (__stub_select) || defined (__stub___select)
15073 choke me
15074 #else
15075 char (*f) () = select;
15076 #endif
15077 #ifdef __cplusplus
15078 }
15079 #endif
15080
15081 int
15082 main ()
15083 {
15084 return f != select;
15085   ;
15086   return 0;
15087 }
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091   (eval $ac_link) 2>conftest.er1
15092   ac_status=$?
15093   grep -v '^ *+' conftest.er1 >conftest.err
15094   rm -f conftest.er1
15095   cat conftest.err >&5
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); } &&
15098          { ac_try='test -z "$ac_c_werror_flag"
15099                          || test ! -s conftest.err'
15100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101   (eval $ac_try) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; } &&
15105          { ac_try='test -s conftest$ac_exeext'
15106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107   (eval $ac_try) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; }; then
15111   ac_cv_func_select=yes
15112 else
15113   echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15115
15116 ac_cv_func_select=no
15117 fi
15118 rm -f conftest.err conftest.$ac_objext \
15119       conftest$ac_exeext conftest.$ac_ext
15120 fi
15121 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15122 echo "${ECHO_T}$ac_cv_func_select" >&6
15123 if test $ac_cv_func_select = yes; then
15124   :
15125 else
15126   { { echo "$as_me:$LINENO: error: select() required." >&5
15127 echo "$as_me: error: select() required." >&2;}
15128    { (exit 1); exit 1; }; }
15129 fi
15130
15131
15132 if test "${ac_cv_header_winsock_h}" != yes; then
15133
15134
15135 for ac_header in sys/select.h sys/socket.h
15136 do
15137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15139   echo "$as_me:$LINENO: checking for $ac_header" >&5
15140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 fi
15144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15146 else
15147   # Is the header compilable?
15148 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15150 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h.  */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h.  */
15156 $ac_includes_default
15157 #include <$ac_header>
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15161   (eval $ac_compile) 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -z "$ac_c_werror_flag"
15169                          || test ! -s conftest.err'
15170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171   (eval $ac_try) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; } &&
15175          { ac_try='test -s conftest.$ac_objext'
15176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177   (eval $ac_try) 2>&5
15178   ac_status=$?
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); }; }; then
15181   ac_header_compiler=yes
15182 else
15183   echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15185
15186 ac_header_compiler=no
15187 fi
15188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15190 echo "${ECHO_T}$ac_header_compiler" >&6
15191
15192 # Is the header present?
15193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h.  */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h.  */
15201 #include <$ac_header>
15202 _ACEOF
15203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } >/dev/null; then
15211   if test -s conftest.err; then
15212     ac_cpp_err=$ac_c_preproc_warn_flag
15213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15214   else
15215     ac_cpp_err=
15216   fi
15217 else
15218   ac_cpp_err=yes
15219 fi
15220 if test -z "$ac_cpp_err"; then
15221   ac_header_preproc=yes
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226   ac_header_preproc=no
15227 fi
15228 rm -f conftest.err conftest.$ac_ext
15229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15230 echo "${ECHO_T}$ac_header_preproc" >&6
15231
15232 # So?  What about this header?
15233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15234   yes:no: )
15235     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15239     ac_header_preproc=yes
15240     ;;
15241   no:yes:* )
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15244     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15245 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15246     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15248     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15249 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15254     (
15255       cat <<\_ASBOX
15256 ## ------------------------------------------ ##
15257 ## Report this to the AC_PACKAGE_NAME lists.  ##
15258 ## ------------------------------------------ ##
15259 _ASBOX
15260     ) |
15261       sed "s/^/$as_me: WARNING:     /" >&2
15262     ;;
15263 esac
15264 echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15267   echo $ECHO_N "(cached) $ECHO_C" >&6
15268 else
15269   eval "$as_ac_Header=\$ac_header_preproc"
15270 fi
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15273
15274 fi
15275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15276   cat >>confdefs.h <<_ACEOF
15277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15278 _ACEOF
15279
15280 fi
15281
15282 done
15283
15284 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15285 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15286 if test "${ac_cv_func_select_args+set}" = set; then
15287   echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15290  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15291   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15292    cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298 $ac_includes_default
15299 #if HAVE_SYS_SELECT_H
15300 # include <sys/select.h>
15301 #endif
15302 #if HAVE_SYS_SOCKET_H
15303 # include <sys/socket.h>
15304 #endif
15305
15306 int
15307 main ()
15308 {
15309 extern int select ($ac_arg1,
15310                                             $ac_arg234, $ac_arg234, $ac_arg234,
15311                                             $ac_arg5);
15312   ;
15313   return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15318   (eval $ac_compile) 2>conftest.er1
15319   ac_status=$?
15320   grep -v '^ *+' conftest.er1 >conftest.err
15321   rm -f conftest.er1
15322   cat conftest.err >&5
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } &&
15325          { ac_try='test -z "$ac_c_werror_flag"
15326                          || test ! -s conftest.err'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; } &&
15332          { ac_try='test -s conftest.$ac_objext'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }; then
15338   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15339 else
15340   echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15342
15343 fi
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345   done
15346  done
15347 done
15348 # Provide a safe default value.
15349 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15350
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15353 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15354 ac_save_IFS=$IFS; IFS=','
15355 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15356 IFS=$ac_save_IFS
15357 shift
15358
15359 cat >>confdefs.h <<_ACEOF
15360 #define SELECT_TYPE_ARG1 $1
15361 _ACEOF
15362
15363
15364 cat >>confdefs.h <<_ACEOF
15365 #define SELECT_TYPE_ARG234 ($2)
15366 _ACEOF
15367
15368
15369 cat >>confdefs.h <<_ACEOF
15370 #define SELECT_TYPE_ARG5 ($3)
15371 _ACEOF
15372
15373 rm -f conftest*
15374
15375 fi
15376
15377
15378
15379 for ac_func in poll
15380 do
15381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15382 echo "$as_me:$LINENO: checking for $ac_func" >&5
15383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15384 if eval "test \"\${$as_ac_var+set}\" = set"; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387   cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h.  */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h.  */
15393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15395 #define $ac_func innocuous_$ac_func
15396
15397 /* System header to define __stub macros and hopefully few prototypes,
15398     which can conflict with char $ac_func (); below.
15399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15400     <limits.h> exists even on freestanding compilers.  */
15401
15402 #ifdef __STDC__
15403 # include <limits.h>
15404 #else
15405 # include <assert.h>
15406 #endif
15407
15408 #undef $ac_func
15409
15410 /* Override any gcc2 internal prototype to avoid an error.  */
15411 #ifdef __cplusplus
15412 extern "C"
15413 {
15414 #endif
15415 /* We use char because int might match the return type of a gcc2
15416    builtin and then its argument prototype would still apply.  */
15417 char $ac_func ();
15418 /* The GNU C library defines this for functions which it implements
15419     to always fail with ENOSYS.  Some functions are actually named
15420     something starting with __ and the normal name is an alias.  */
15421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15422 choke me
15423 #else
15424 char (*f) () = $ac_func;
15425 #endif
15426 #ifdef __cplusplus
15427 }
15428 #endif
15429
15430 int
15431 main ()
15432 {
15433 return f != $ac_func;
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15440   (eval $ac_link) 2>conftest.er1
15441   ac_status=$?
15442   grep -v '^ *+' conftest.er1 >conftest.err
15443   rm -f conftest.er1
15444   cat conftest.err >&5
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -z "$ac_c_werror_flag"
15448                          || test ! -s conftest.err'
15449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450   (eval $ac_try) 2>&5
15451   ac_status=$?
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); }; } &&
15454          { ac_try='test -s conftest$ac_exeext'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; }; then
15460   eval "$as_ac_var=yes"
15461 else
15462   echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465 eval "$as_ac_var=no"
15466 fi
15467 rm -f conftest.err conftest.$ac_objext \
15468       conftest$ac_exeext conftest.$ac_ext
15469 fi
15470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473   cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15475 _ACEOF
15476
15477 fi
15478 done
15479
15480
15481 for ac_header in poll.h
15482 do
15483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15485   echo "$as_me:$LINENO: checking for $ac_header" >&5
15486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15488   echo $ECHO_N "(cached) $ECHO_C" >&6
15489 fi
15490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15492 else
15493   # Is the header compilable?
15494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15496 cat >conftest.$ac_ext <<_ACEOF
15497 /* confdefs.h.  */
15498 _ACEOF
15499 cat confdefs.h >>conftest.$ac_ext
15500 cat >>conftest.$ac_ext <<_ACEOF
15501 /* end confdefs.h.  */
15502 $ac_includes_default
15503 #include <$ac_header>
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507   (eval $ac_compile) 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -z "$ac_c_werror_flag"
15515                          || test ! -s conftest.err'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; } &&
15521          { ac_try='test -s conftest.$ac_objext'
15522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523   (eval $ac_try) 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; }; then
15527   ac_header_compiler=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_header_compiler=no
15533 fi
15534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6
15537
15538 # Is the header present?
15539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547 #include <$ac_header>
15548 _ACEOF
15549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15550   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } >/dev/null; then
15557   if test -s conftest.err; then
15558     ac_cpp_err=$ac_c_preproc_warn_flag
15559     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15560   else
15561     ac_cpp_err=
15562   fi
15563 else
15564   ac_cpp_err=yes
15565 fi
15566 if test -z "$ac_cpp_err"; then
15567   ac_header_preproc=yes
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572   ac_header_preproc=no
15573 fi
15574 rm -f conftest.err conftest.$ac_ext
15575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6
15577
15578 # So?  What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15580   yes:no: )
15581     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585     ac_header_preproc=yes
15586     ;;
15587   no:yes:* )
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15592     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15600     (
15601       cat <<\_ASBOX
15602 ## ------------------------------------------ ##
15603 ## Report this to the AC_PACKAGE_NAME lists.  ##
15604 ## ------------------------------------------ ##
15605 _ASBOX
15606     ) |
15607       sed "s/^/$as_me: WARNING:     /" >&2
15608     ;;
15609 esac
15610 echo "$as_me:$LINENO: checking for $ac_header" >&5
15611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   eval "$as_ac_Header=\$ac_header_preproc"
15616 fi
15617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15619
15620 fi
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 _ACEOF
15625
15626 fi
15627
15628 done
15629
15630
15631
15632 for ac_header in sys/epoll.h
15633 do
15634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15636   echo "$as_me:$LINENO: checking for $ac_header" >&5
15637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15639   echo $ECHO_N "(cached) $ECHO_C" >&6
15640 fi
15641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15643 else
15644   # Is the header compilable?
15645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 $ac_includes_default
15654 #include <$ac_header>
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658   (eval $ac_compile) 2>conftest.er1
15659   ac_status=$?
15660   grep -v '^ *+' conftest.er1 >conftest.err
15661   rm -f conftest.er1
15662   cat conftest.err >&5
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); } &&
15665          { ac_try='test -z "$ac_c_werror_flag"
15666                          || test ! -s conftest.err'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; } &&
15672          { ac_try='test -s conftest.$ac_objext'
15673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674   (eval $ac_try) 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_header_compiler=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_header_compiler=no
15684 fi
15685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687 echo "${ECHO_T}$ac_header_compiler" >&6
15688
15689 # Is the header present?
15690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15692 cat >conftest.$ac_ext <<_ACEOF
15693 /* confdefs.h.  */
15694 _ACEOF
15695 cat confdefs.h >>conftest.$ac_ext
15696 cat >>conftest.$ac_ext <<_ACEOF
15697 /* end confdefs.h.  */
15698 #include <$ac_header>
15699 _ACEOF
15700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15702   ac_status=$?
15703   grep -v '^ *+' conftest.er1 >conftest.err
15704   rm -f conftest.er1
15705   cat conftest.err >&5
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } >/dev/null; then
15708   if test -s conftest.err; then
15709     ac_cpp_err=$ac_c_preproc_warn_flag
15710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15711   else
15712     ac_cpp_err=
15713   fi
15714 else
15715   ac_cpp_err=yes
15716 fi
15717 if test -z "$ac_cpp_err"; then
15718   ac_header_preproc=yes
15719 else
15720   echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723   ac_header_preproc=no
15724 fi
15725 rm -f conftest.err conftest.$ac_ext
15726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15727 echo "${ECHO_T}$ac_header_preproc" >&6
15728
15729 # So?  What about this header?
15730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15731   yes:no: )
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15736     ac_header_preproc=yes
15737     ;;
15738   no:yes:* )
15739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15741     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15742 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15743     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15745     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15746 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15751     (
15752       cat <<\_ASBOX
15753 ## ------------------------------------------ ##
15754 ## Report this to the AC_PACKAGE_NAME lists.  ##
15755 ## ------------------------------------------ ##
15756 _ASBOX
15757     ) |
15758       sed "s/^/$as_me: WARNING:     /" >&2
15759     ;;
15760 esac
15761 echo "$as_me:$LINENO: checking for $ac_header" >&5
15762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   eval "$as_ac_Header=\$ac_header_preproc"
15767 fi
15768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15770
15771 fi
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773   cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15775 _ACEOF
15776
15777 fi
15778
15779 done
15780
15781 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15782 echo "$as_me:$LINENO: checking for epoll system call" >&5
15783 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15784 if test "$cross_compiling" = yes; then
15785   echo "$as_me:$LINENO: result: no" >&5
15786 echo "${ECHO_T}no" >&6
15787 else
15788   cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794 int main(int argc, char *argv)
15795 {
15796         int epfd = epoll_create(256);
15797         exit (epfd == -1 ? 1 : 0);
15798 }
15799 _ACEOF
15800 rm -f conftest$ac_exeext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15802   (eval $ac_link) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define HAVE_EPOLL 1
15816 _ACEOF
15817
15818 else
15819   echo "$as_me: program exited with status $ac_status" >&5
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ( exit $ac_status )
15824 echo "$as_me:$LINENO: result: no" >&5
15825 echo "${ECHO_T}no" >&6
15826 fi
15827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15828 fi
15829 fi
15830
15831 # strerror checks
15832 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15833 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15834 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837
15838         cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844
15845 #include <stdio.h>
15846 #include <sys/types.h>
15847 #include <errno.h>
15848 #ifdef WINNT
15849 #include <stdlib.h>
15850 #endif
15851 int
15852 main ()
15853 {
15854 char *c = (char *) *sys_errlist
15855   ;
15856   return 0;
15857 }
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861   (eval $ac_compile) 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -z "$ac_c_werror_flag"
15869                          || test ! -s conftest.err'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; } &&
15875          { ac_try='test -s conftest.$ac_objext'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; }; then
15881   ol_cv_dcl_sys_errlist=yes
15882         ol_cv_have_sys_errlist=yes
15883 else
15884   echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15886
15887 ol_cv_dcl_sys_errlist=no
15888 fi
15889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15890 fi
15891 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15892 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15893 #
15894 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15895 if test $ol_cv_dcl_sys_errlist = no ; then
15896
15897 cat >>confdefs.h <<\_ACEOF
15898 #define DECL_SYS_ERRLIST 1
15899 _ACEOF
15900
15901
15902         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15903 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15904 if test "${ol_cv_have_sys_errlist+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907
15908                 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 #include <errno.h>
15915 int
15916 main ()
15917 {
15918 char *c = (char *) *sys_errlist
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext conftest$ac_exeext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15925   (eval $ac_link) 2>conftest.er1
15926   ac_status=$?
15927   grep -v '^ *+' conftest.er1 >conftest.err
15928   rm -f conftest.er1
15929   cat conftest.err >&5
15930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931   (exit $ac_status); } &&
15932          { ac_try='test -z "$ac_c_werror_flag"
15933                          || test ! -s conftest.err'
15934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935   (eval $ac_try) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); }; } &&
15939          { ac_try='test -s conftest$ac_exeext'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ol_cv_have_sys_errlist=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ol_cv_have_sys_errlist=no
15951 fi
15952 rm -f conftest.err conftest.$ac_objext \
15953       conftest$ac_exeext conftest.$ac_ext
15954 fi
15955 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15956 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15957 fi
15958 if test $ol_cv_have_sys_errlist = yes ; then
15959
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE_SYS_ERRLIST 1
15962 _ACEOF
15963
15964 fi
15965
15966
15967 for ac_func in strerror strerror_r
15968 do
15969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15970 echo "$as_me:$LINENO: checking for $ac_func" >&5
15971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15972 if eval "test \"\${$as_ac_var+set}\" = set"; then
15973   echo $ECHO_N "(cached) $ECHO_C" >&6
15974 else
15975   cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15983 #define $ac_func innocuous_$ac_func
15984
15985 /* System header to define __stub macros and hopefully few prototypes,
15986     which can conflict with char $ac_func (); below.
15987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15988     <limits.h> exists even on freestanding compilers.  */
15989
15990 #ifdef __STDC__
15991 # include <limits.h>
15992 #else
15993 # include <assert.h>
15994 #endif
15995
15996 #undef $ac_func
15997
15998 /* Override any gcc2 internal prototype to avoid an error.  */
15999 #ifdef __cplusplus
16000 extern "C"
16001 {
16002 #endif
16003 /* We use char because int might match the return type of a gcc2
16004    builtin and then its argument prototype would still apply.  */
16005 char $ac_func ();
16006 /* The GNU C library defines this for functions which it implements
16007     to always fail with ENOSYS.  Some functions are actually named
16008     something starting with __ and the normal name is an alias.  */
16009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16010 choke me
16011 #else
16012 char (*f) () = $ac_func;
16013 #endif
16014 #ifdef __cplusplus
16015 }
16016 #endif
16017
16018 int
16019 main ()
16020 {
16021 return f != $ac_func;
16022   ;
16023   return 0;
16024 }
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028   (eval $ac_link) 2>conftest.er1
16029   ac_status=$?
16030   grep -v '^ *+' conftest.er1 >conftest.err
16031   rm -f conftest.er1
16032   cat conftest.err >&5
16033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034   (exit $ac_status); } &&
16035          { ac_try='test -z "$ac_c_werror_flag"
16036                          || test ! -s conftest.err'
16037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038   (eval $ac_try) 2>&5
16039   ac_status=$?
16040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041   (exit $ac_status); }; } &&
16042          { ac_try='test -s conftest$ac_exeext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   eval "$as_ac_var=yes"
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 eval "$as_ac_var=no"
16054 fi
16055 rm -f conftest.err conftest.$ac_objext \
16056       conftest$ac_exeext conftest.$ac_ext
16057 fi
16058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16060 if test `eval echo '${'$as_ac_var'}'` = yes; then
16061   cat >>confdefs.h <<_ACEOF
16062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16063 _ACEOF
16064
16065 fi
16066 done
16067
16068 ol_cv_func_strerror_r=no
16069 if test "${ac_cv_func_strerror_r}" = yes ; then
16070         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16071 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16072 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075
16076         cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <string.h>
16083 _ACEOF
16084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16085   $EGREP "strerror_r" >/dev/null 2>&1; then
16086   ol_decl_strerror_r=yes
16087 else
16088   ol_decl_strerror_r=no
16089 fi
16090 rm -f conftest*
16091
16092         if test $ol_decl_strerror_r = yes ; then
16093                 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099 #include <string.h>
16100 int
16101 main ()
16102 {
16103    /* from autoconf 2.59 */
16104                                 char buf[100];
16105                                 char x = *strerror_r (0, buf, sizeof buf);
16106                                 char *p = strerror_r (0, buf, sizeof buf);
16107
16108   ;
16109   return 0;
16110 }
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16114   (eval $ac_compile) 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag"
16122                          || test ! -s conftest.err'
16123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124   (eval $ac_try) 2>&5
16125   ac_status=$?
16126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127   (exit $ac_status); }; } &&
16128          { ac_try='test -s conftest.$ac_objext'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; }; then
16134   ol_cv_nonposix_strerror_r=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139 ol_cv_nonposix_strerror_r=no
16140 fi
16141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16142         else
16143                 if test "$cross_compiling" = yes; then
16144   ol_cv_nonposix_strerror=no
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152
16153                         main() {
16154                                 char buf[100];
16155                                 buf[0] = 0;
16156                                 strerror_r( 1, buf, sizeof buf );
16157                                 exit( buf[0] == 0 );
16158                         }
16159
16160 _ACEOF
16161 rm -f conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163   (eval $ac_link) 2>&5
16164   ac_status=$?
16165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16168   (eval $ac_try) 2>&5
16169   ac_status=$?
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); }; }; then
16172   ol_cv_nonposix_strerror_r=yes
16173 else
16174   echo "$as_me: program exited with status $ac_status" >&5
16175 echo "$as_me: failed program was:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16177
16178 ( exit $ac_status )
16179 ol_cv_nonposix_strerror=no
16180 fi
16181 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16182 fi
16183         fi
16184
16185 fi
16186 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16187 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16188 if test $ol_cv_nonposix_strerror_r = yes ; then
16189
16190 cat >>confdefs.h <<\_ACEOF
16191 #define HAVE_NONPOSIX_STRERROR_R 1
16192 _ACEOF
16193
16194 fi
16195
16196 elif test "${ac_cv_func_strerror}" = no ; then
16197         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16198 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16199 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202
16203         cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209
16210 #include <stdio.h>
16211 #include <sys/types.h>
16212 #include <errno.h>
16213 #ifdef WINNT
16214 #include <stdlib.h>
16215 #endif
16216 int
16217 main ()
16218 {
16219 char *c = (char *) *sys_errlist
16220   ;
16221   return 0;
16222 }
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16226   (eval $ac_compile) 2>conftest.er1
16227   ac_status=$?
16228   grep -v '^ *+' conftest.er1 >conftest.err
16229   rm -f conftest.er1
16230   cat conftest.err >&5
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } &&
16233          { ac_try='test -z "$ac_c_werror_flag"
16234                          || test ! -s conftest.err'
16235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16236   (eval $ac_try) 2>&5
16237   ac_status=$?
16238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239   (exit $ac_status); }; } &&
16240          { ac_try='test -s conftest.$ac_objext'
16241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242   (eval $ac_try) 2>&5
16243   ac_status=$?
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); }; }; then
16246   ol_cv_dcl_sys_errlist=yes
16247         ol_cv_have_sys_errlist=yes
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 ol_cv_dcl_sys_errlist=no
16253 fi
16254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255 fi
16256 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16257 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16258 #
16259 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16260 if test $ol_cv_dcl_sys_errlist = no ; then
16261
16262 cat >>confdefs.h <<\_ACEOF
16263 #define DECL_SYS_ERRLIST 1
16264 _ACEOF
16265
16266
16267         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16268 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16269 if test "${ol_cv_have_sys_errlist+set}" = set; then
16270   echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272
16273                 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 #include <errno.h>
16280 int
16281 main ()
16282 {
16283 char *c = (char *) *sys_errlist
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16290   (eval $ac_link) 2>conftest.er1
16291   ac_status=$?
16292   grep -v '^ *+' conftest.er1 >conftest.err
16293   rm -f conftest.er1
16294   cat conftest.err >&5
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); } &&
16297          { ac_try='test -z "$ac_c_werror_flag"
16298                          || test ! -s conftest.err'
16299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300   (eval $ac_try) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); }; } &&
16304          { ac_try='test -s conftest$ac_exeext'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; }; then
16310   ol_cv_have_sys_errlist=yes
16311 else
16312   echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 ol_cv_have_sys_errlist=no
16316 fi
16317 rm -f conftest.err conftest.$ac_objext \
16318       conftest$ac_exeext conftest.$ac_ext
16319 fi
16320 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16321 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16322 fi
16323 if test $ol_cv_have_sys_errlist = yes ; then
16324
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_SYS_ERRLIST 1
16327 _ACEOF
16328
16329 fi
16330
16331 fi
16332
16333
16334
16335 for ac_header in regex.h
16336 do
16337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16339   echo "$as_me:$LINENO: checking for $ac_header" >&5
16340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16342   echo $ECHO_N "(cached) $ECHO_C" >&6
16343 fi
16344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16346 else
16347   # Is the header compilable?
16348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 $ac_includes_default
16357 #include <$ac_header>
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16361   (eval $ac_compile) 2>conftest.er1
16362   ac_status=$?
16363   grep -v '^ *+' conftest.er1 >conftest.err
16364   rm -f conftest.er1
16365   cat conftest.err >&5
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); } &&
16368          { ac_try='test -z "$ac_c_werror_flag"
16369                          || test ! -s conftest.err'
16370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371   (eval $ac_try) 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; } &&
16375          { ac_try='test -s conftest.$ac_objext'
16376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16377   (eval $ac_try) 2>&5
16378   ac_status=$?
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); }; }; then
16381   ac_header_compiler=yes
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_header_compiler=no
16387 fi
16388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16390 echo "${ECHO_T}$ac_header_compiler" >&6
16391
16392 # Is the header present?
16393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h.  */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h.  */
16401 #include <$ac_header>
16402 _ACEOF
16403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16405   ac_status=$?
16406   grep -v '^ *+' conftest.er1 >conftest.err
16407   rm -f conftest.er1
16408   cat conftest.err >&5
16409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410   (exit $ac_status); } >/dev/null; then
16411   if test -s conftest.err; then
16412     ac_cpp_err=$ac_c_preproc_warn_flag
16413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16414   else
16415     ac_cpp_err=
16416   fi
16417 else
16418   ac_cpp_err=yes
16419 fi
16420 if test -z "$ac_cpp_err"; then
16421   ac_header_preproc=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426   ac_header_preproc=no
16427 fi
16428 rm -f conftest.err conftest.$ac_ext
16429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16430 echo "${ECHO_T}$ac_header_preproc" >&6
16431
16432 # So?  What about this header?
16433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16434   yes:no: )
16435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16439     ac_header_preproc=yes
16440     ;;
16441   no:yes:* )
16442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16454     (
16455       cat <<\_ASBOX
16456 ## ------------------------------------------ ##
16457 ## Report this to the AC_PACKAGE_NAME lists.  ##
16458 ## ------------------------------------------ ##
16459 _ASBOX
16460     ) |
16461       sed "s/^/$as_me: WARNING:     /" >&2
16462     ;;
16463 esac
16464 echo "$as_me:$LINENO: checking for $ac_header" >&5
16465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16467   echo $ECHO_N "(cached) $ECHO_C" >&6
16468 else
16469   eval "$as_ac_Header=\$ac_header_preproc"
16470 fi
16471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16473
16474 fi
16475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16476   cat >>confdefs.h <<_ACEOF
16477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16478 _ACEOF
16479
16480 fi
16481
16482 done
16483
16484 if test "$ac_cv_header_regex_h" != yes ; then
16485         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16486 echo "$as_me: error: POSIX regex.h required." >&2;}
16487    { (exit 1); exit 1; }; }
16488 fi
16489 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16490 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16491 if test "${ac_cv_search_regfree+set}" = set; then
16492   echo $ECHO_N "(cached) $ECHO_C" >&6
16493 else
16494   ac_func_search_save_LIBS=$LIBS
16495 ac_cv_search_regfree=no
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502
16503 /* Override any gcc2 internal prototype to avoid an error.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 /* We use char because int might match the return type of a gcc2
16508    builtin and then its argument prototype would still apply.  */
16509 char regfree ();
16510 int
16511 main ()
16512 {
16513 regfree ();
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520   (eval $ac_link) 2>conftest.er1
16521   ac_status=$?
16522   grep -v '^ *+' conftest.er1 >conftest.err
16523   rm -f conftest.er1
16524   cat conftest.err >&5
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); } &&
16527          { ac_try='test -z "$ac_c_werror_flag"
16528                          || test ! -s conftest.err'
16529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530   (eval $ac_try) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); }; } &&
16534          { ac_try='test -s conftest$ac_exeext'
16535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536   (eval $ac_try) 2>&5
16537   ac_status=$?
16538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539   (exit $ac_status); }; }; then
16540   ac_cv_search_regfree="none required"
16541 else
16542   echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16544
16545 fi
16546 rm -f conftest.err conftest.$ac_objext \
16547       conftest$ac_exeext conftest.$ac_ext
16548 if test "$ac_cv_search_regfree" = no; then
16549   for ac_lib in regex gnuregex; do
16550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16551     cat >conftest.$ac_ext <<_ACEOF
16552 /* confdefs.h.  */
16553 _ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h.  */
16557
16558 /* Override any gcc2 internal prototype to avoid an error.  */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 /* We use char because int might match the return type of a gcc2
16563    builtin and then its argument prototype would still apply.  */
16564 char regfree ();
16565 int
16566 main ()
16567 {
16568 regfree ();
16569   ;
16570   return 0;
16571 }
16572 _ACEOF
16573 rm -f conftest.$ac_objext conftest$ac_exeext
16574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575   (eval $ac_link) 2>conftest.er1
16576   ac_status=$?
16577   grep -v '^ *+' conftest.er1 >conftest.err
16578   rm -f conftest.er1
16579   cat conftest.err >&5
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); } &&
16582          { ac_try='test -z "$ac_c_werror_flag"
16583                          || test ! -s conftest.err'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; } &&
16589          { ac_try='test -s conftest$ac_exeext'
16590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591   (eval $ac_try) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; }; then
16595   ac_cv_search_regfree="-l$ac_lib"
16596 break
16597 else
16598   echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601 fi
16602 rm -f conftest.err conftest.$ac_objext \
16603       conftest$ac_exeext conftest.$ac_ext
16604   done
16605 fi
16606 LIBS=$ac_func_search_save_LIBS
16607 fi
16608 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16609 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16610 if test "$ac_cv_search_regfree" != no; then
16611   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16612   :
16613 else
16614   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16615 echo "$as_me: error: POSIX regex required." >&2;}
16616    { (exit 1); exit 1; }; }
16617 fi
16618
16619
16620
16621 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16622 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16623 if test "${ol_cv_c_posix_regex+set}" = set; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626
16627         if test "$cross_compiling" = yes; then
16628   ol_cv_c_posix_regex=cross
16629 else
16630   cat >conftest.$ac_ext <<_ACEOF
16631 /* confdefs.h.  */
16632 _ACEOF
16633 cat confdefs.h >>conftest.$ac_ext
16634 cat >>conftest.$ac_ext <<_ACEOF
16635 /* end confdefs.h.  */
16636
16637 #include <sys/types.h>
16638 #include <regex.h>
16639 static char *pattern, *string;
16640 main()
16641 {
16642         int rc;
16643         regex_t re;
16644
16645         pattern = "^A";
16646
16647         if(regcomp(&re, pattern, 0)) {
16648                 return -1;
16649         }
16650
16651         string = "ALL MATCH";
16652
16653         rc = regexec(&re, string, 0, (void*)0, 0);
16654
16655         regfree(&re);
16656
16657         return rc;
16658 }
16659 _ACEOF
16660 rm -f conftest$ac_exeext
16661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16662   (eval $ac_link) 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667   (eval $ac_try) 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   ol_cv_c_posix_regex=yes
16672 else
16673   echo "$as_me: program exited with status $ac_status" >&5
16674 echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677 ( exit $ac_status )
16678 ol_cv_c_posix_regex=no
16679 fi
16680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16681 fi
16682 fi
16683 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16684 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16685
16686 if test "$ol_cv_c_posix_regex" = no ; then
16687         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16688 echo "$as_me: error: broken POSIX regex!" >&2;}
16689    { (exit 1); exit 1; }; }
16690 fi
16691
16692
16693 have_uuid=no
16694
16695 for ac_header in sys/uuid.h
16696 do
16697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16699   echo "$as_me:$LINENO: checking for $ac_header" >&5
16700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 fi
16704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16706 else
16707   # Is the header compilable?
16708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16710 cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 $ac_includes_default
16717 #include <$ac_header>
16718 _ACEOF
16719 rm -f conftest.$ac_objext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16721   (eval $ac_compile) 2>conftest.er1
16722   ac_status=$?
16723   grep -v '^ *+' conftest.er1 >conftest.err
16724   rm -f conftest.er1
16725   cat conftest.err >&5
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); } &&
16728          { ac_try='test -z "$ac_c_werror_flag"
16729                          || test ! -s conftest.err'
16730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731   (eval $ac_try) 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; } &&
16735          { ac_try='test -s conftest.$ac_objext'
16736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737   (eval $ac_try) 2>&5
16738   ac_status=$?
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); }; }; then
16741   ac_header_compiler=yes
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 ac_header_compiler=no
16747 fi
16748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6
16751
16752 # Is the header present?
16753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 #include <$ac_header>
16762 _ACEOF
16763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16765   ac_status=$?
16766   grep -v '^ *+' conftest.er1 >conftest.err
16767   rm -f conftest.er1
16768   cat conftest.err >&5
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } >/dev/null; then
16771   if test -s conftest.err; then
16772     ac_cpp_err=$ac_c_preproc_warn_flag
16773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16774   else
16775     ac_cpp_err=
16776   fi
16777 else
16778   ac_cpp_err=yes
16779 fi
16780 if test -z "$ac_cpp_err"; then
16781   ac_header_preproc=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786   ac_header_preproc=no
16787 fi
16788 rm -f conftest.err conftest.$ac_ext
16789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16790 echo "${ECHO_T}$ac_header_preproc" >&6
16791
16792 # So?  What about this header?
16793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16794   yes:no: )
16795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16799     ac_header_preproc=yes
16800     ;;
16801   no:yes:* )
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16814     (
16815       cat <<\_ASBOX
16816 ## ------------------------------------------ ##
16817 ## Report this to the AC_PACKAGE_NAME lists.  ##
16818 ## ------------------------------------------ ##
16819 _ASBOX
16820     ) |
16821       sed "s/^/$as_me: WARNING:     /" >&2
16822     ;;
16823 esac
16824 echo "$as_me:$LINENO: checking for $ac_header" >&5
16825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   eval "$as_ac_Header=\$ac_header_preproc"
16830 fi
16831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16833
16834 fi
16835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 fi
16841
16842 done
16843
16844 if test $ac_cv_header_sys_uuid_h = yes ; then
16845         save_LIBS="$LIBS"
16846         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16847 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16848 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16849   echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851   ac_func_search_save_LIBS=$LIBS
16852 ac_cv_search_uuid_to_str=no
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859
16860 /* Override any gcc2 internal prototype to avoid an error.  */
16861 #ifdef __cplusplus
16862 extern "C"
16863 #endif
16864 /* We use char because int might match the return type of a gcc2
16865    builtin and then its argument prototype would still apply.  */
16866 char uuid_to_str ();
16867 int
16868 main ()
16869 {
16870 uuid_to_str ();
16871   ;
16872   return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16877   (eval $ac_link) 2>conftest.er1
16878   ac_status=$?
16879   grep -v '^ *+' conftest.er1 >conftest.err
16880   rm -f conftest.er1
16881   cat conftest.err >&5
16882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883   (exit $ac_status); } &&
16884          { ac_try='test -z "$ac_c_werror_flag"
16885                          || test ! -s conftest.err'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; } &&
16891          { ac_try='test -s conftest$ac_exeext'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; }; then
16897   ac_cv_search_uuid_to_str="none required"
16898 else
16899   echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 fi
16903 rm -f conftest.err conftest.$ac_objext \
16904       conftest$ac_exeext conftest.$ac_ext
16905 if test "$ac_cv_search_uuid_to_str" = no; then
16906   for ac_lib in uuid; do
16907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16908     cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 /* Override any gcc2 internal prototype to avoid an error.  */
16916 #ifdef __cplusplus
16917 extern "C"
16918 #endif
16919 /* We use char because int might match the return type of a gcc2
16920    builtin and then its argument prototype would still apply.  */
16921 char uuid_to_str ();
16922 int
16923 main ()
16924 {
16925 uuid_to_str ();
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16932   (eval $ac_link) 2>conftest.er1
16933   ac_status=$?
16934   grep -v '^ *+' conftest.er1 >conftest.err
16935   rm -f conftest.er1
16936   cat conftest.err >&5
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); } &&
16939          { ac_try='test -z "$ac_c_werror_flag"
16940                          || test ! -s conftest.err'
16941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942   (eval $ac_try) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); }; } &&
16946          { ac_try='test -s conftest$ac_exeext'
16947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948   (eval $ac_try) 2>&5
16949   ac_status=$?
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); }; }; then
16952   ac_cv_search_uuid_to_str="-l$ac_lib"
16953 break
16954 else
16955   echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 fi
16959 rm -f conftest.err conftest.$ac_objext \
16960       conftest$ac_exeext conftest.$ac_ext
16961   done
16962 fi
16963 LIBS=$ac_func_search_save_LIBS
16964 fi
16965 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16966 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16967 if test "$ac_cv_search_uuid_to_str" != no; then
16968   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16969   have_uuid=yes
16970 else
16971   :
16972 fi
16973
16974         LIBS="$save_LIBS"
16975
16976         if test have_uuid = yes ; then
16977
16978 cat >>confdefs.h <<\_ACEOF
16979 #define HAVE_UUID_TO_STR 1
16980 _ACEOF
16981
16982
16983                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16984                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16985         fi
16986 fi
16987
16988 if test $have_uuid = no ; then
16989         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16990 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16991         save_LIBS="$LIBS"
16992         LIBS="$LIBS -lrpcrt4"
16993         cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999
17000                 int __stdcall UuidCreate(void *);
17001                 int __stdcall UuidToStringA(void *,void **);
17002
17003 int
17004 main ()
17005 {
17006
17007                 UuidCreate(0);
17008                 UuidToStringA(0,0);
17009
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext conftest$ac_exeext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17016   (eval $ac_link) 2>conftest.er1
17017   ac_status=$?
17018   grep -v '^ *+' conftest.er1 >conftest.err
17019   rm -f conftest.er1
17020   cat conftest.err >&5
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); } &&
17023          { ac_try='test -z "$ac_c_werror_flag"
17024                          || test ! -s conftest.err'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; } &&
17030          { ac_try='test -s conftest$ac_exeext'
17031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032   (eval $ac_try) 2>&5
17033   ac_status=$?
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); }; }; then
17036   need_rpcrt=yes
17037 else
17038   echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17040
17041 need_rpcrt=no
17042 fi
17043 rm -f conftest.err conftest.$ac_objext \
17044       conftest$ac_exeext conftest.$ac_ext
17045         if test $need_rpcrt = yes; then
17046                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17047         fi
17048         LIBS="$save_LIBS"
17049         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17050 echo "${ECHO_T}$need_rpcrt" >&6
17051 fi
17052
17053 ol_cv_lib_resolver=no
17054 if test $ol_cv_lib_resolver = no ; then
17055         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17056 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17057 if test "${ol_cv_resolver_none+set}" = set; then
17058   echo $ECHO_N "(cached) $ECHO_C" >&6
17059 else
17060
17061         ol_RESOLVER_LIB=
17062         ol_LIBS=$LIBS
17063         LIBS="$ol_RESOLVER_LIB $LIBS"
17064
17065         cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h.  */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h.  */
17071
17072 #ifdef HAVE_SYS_TYPES_H
17073 #       include <sys/types.h>
17074 #endif
17075 #include <netinet/in.h>
17076 #ifdef HAVE_ARPA_NAMESER_H
17077 #       include <arpa/nameser.h>
17078 #endif
17079 #ifdef HAVE_RESOLV_H
17080 #       include <resolv.h>
17081 #endif
17082
17083 int
17084 main ()
17085 {
17086 {
17087         int len, status;
17088         char *request = NULL;
17089         unsigned char reply[64*1024];
17090         unsigned char host[64*1024];
17091         unsigned char *p;
17092
17093 #ifdef NS_HFIXEDSZ
17094         /* Bind 8/9 interface */
17095         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17096 #else
17097         /* Bind 4 interface */
17098 # ifndef T_SRV
17099 #  define T_SRV 33
17100 # endif
17101         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17102 #endif
17103         p = reply;
17104 #ifdef NS_HFIXEDSZ
17105         /* Bind 8/9 interface */
17106         p += NS_HFIXEDSZ;
17107 #elif defined(HFIXEDSZ)
17108         /* Bind 4 interface w/ HFIXEDSZ */
17109         p += HFIXEDSZ;
17110 #else
17111         /* Bind 4 interface w/o HFIXEDSZ */
17112         p += sizeof(HEADER);
17113 #endif
17114         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17115 }
17116   ;
17117   return 0;
17118 }
17119 _ACEOF
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17122   (eval $ac_link) 2>conftest.er1
17123   ac_status=$?
17124   grep -v '^ *+' conftest.er1 >conftest.err
17125   rm -f conftest.er1
17126   cat conftest.err >&5
17127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } &&
17129          { ac_try='test -z "$ac_c_werror_flag"
17130                          || test ! -s conftest.err'
17131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132   (eval $ac_try) 2>&5
17133   ac_status=$?
17134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135   (exit $ac_status); }; } &&
17136          { ac_try='test -s conftest$ac_exeext'
17137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138   (eval $ac_try) 2>&5
17139   ac_status=$?
17140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141   (exit $ac_status); }; }; then
17142   ol_cv_resolver_none=yes
17143 else
17144   echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17146
17147 ol_cv_resolver_none=no
17148 fi
17149 rm -f conftest.err conftest.$ac_objext \
17150       conftest$ac_exeext conftest.$ac_ext
17151
17152         LIBS="$ol_LIBS"
17153
17154 fi
17155 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17156 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17157
17158         if test $ol_cv_resolver_none = yes ; then
17159                 ol_cv_lib_resolver=yes
17160         fi
17161 fi
17162
17163 if test $ol_cv_lib_resolver = no ; then
17164         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17165 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17166 if test "${ol_cv_resolver_resolv+set}" = set; then
17167   echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169
17170         ol_RESOLVER_LIB=-lresolv
17171         ol_LIBS=$LIBS
17172         LIBS="$ol_RESOLVER_LIB $LIBS"
17173
17174         cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180
17181 #ifdef HAVE_SYS_TYPES_H
17182 #       include <sys/types.h>
17183 #endif
17184 #include <netinet/in.h>
17185 #ifdef HAVE_ARPA_NAMESER_H
17186 #       include <arpa/nameser.h>
17187 #endif
17188 #ifdef HAVE_RESOLV_H
17189 #       include <resolv.h>
17190 #endif
17191
17192 int
17193 main ()
17194 {
17195 {
17196         int len, status;
17197         char *request = NULL;
17198         unsigned char reply[64*1024];
17199         unsigned char host[64*1024];
17200         unsigned char *p;
17201
17202 #ifdef NS_HFIXEDSZ
17203         /* Bind 8/9 interface */
17204         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17205 #else
17206         /* Bind 4 interface */
17207 # ifndef T_SRV
17208 #  define T_SRV 33
17209 # endif
17210         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17211 #endif
17212         p = reply;
17213 #ifdef NS_HFIXEDSZ
17214         /* Bind 8/9 interface */
17215         p += NS_HFIXEDSZ;
17216 #elif defined(HFIXEDSZ)
17217         /* Bind 4 interface w/ HFIXEDSZ */
17218         p += HFIXEDSZ;
17219 #else
17220         /* Bind 4 interface w/o HFIXEDSZ */
17221         p += sizeof(HEADER);
17222 #endif
17223         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17224 }
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17231   (eval $ac_link) 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_c_werror_flag"
17239                          || test ! -s conftest.err'
17240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241   (eval $ac_try) 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; } &&
17245          { ac_try='test -s conftest$ac_exeext'
17246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247   (eval $ac_try) 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; }; then
17251   ol_cv_resolver_resolv=yes
17252 else
17253   echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256 ol_cv_resolver_resolv=no
17257 fi
17258 rm -f conftest.err conftest.$ac_objext \
17259       conftest$ac_exeext conftest.$ac_ext
17260
17261         LIBS="$ol_LIBS"
17262
17263 fi
17264 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17265 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17266
17267         if test $ol_cv_resolver_resolv = yes ; then
17268                 ol_cv_lib_resolver=-lresolv
17269         fi
17270 fi
17271
17272 if test $ol_cv_lib_resolver = no ; then
17273         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17274 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17275 if test "${ol_cv_resolver_bind+set}" = set; then
17276   echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278
17279         ol_RESOLVER_LIB=-lbind
17280         ol_LIBS=$LIBS
17281         LIBS="$ol_RESOLVER_LIB $LIBS"
17282
17283         cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289
17290 #ifdef HAVE_SYS_TYPES_H
17291 #       include <sys/types.h>
17292 #endif
17293 #include <netinet/in.h>
17294 #ifdef HAVE_ARPA_NAMESER_H
17295 #       include <arpa/nameser.h>
17296 #endif
17297 #ifdef HAVE_RESOLV_H
17298 #       include <resolv.h>
17299 #endif
17300
17301 int
17302 main ()
17303 {
17304 {
17305         int len, status;
17306         char *request = NULL;
17307         unsigned char reply[64*1024];
17308         unsigned char host[64*1024];
17309         unsigned char *p;
17310
17311 #ifdef NS_HFIXEDSZ
17312         /* Bind 8/9 interface */
17313         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17314 #else
17315         /* Bind 4 interface */
17316 # ifndef T_SRV
17317 #  define T_SRV 33
17318 # endif
17319         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17320 #endif
17321         p = reply;
17322 #ifdef NS_HFIXEDSZ
17323         /* Bind 8/9 interface */
17324         p += NS_HFIXEDSZ;
17325 #elif defined(HFIXEDSZ)
17326         /* Bind 4 interface w/ HFIXEDSZ */
17327         p += HFIXEDSZ;
17328 #else
17329         /* Bind 4 interface w/o HFIXEDSZ */
17330         p += sizeof(HEADER);
17331 #endif
17332         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17333 }
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17340   (eval $ac_link) 2>conftest.er1
17341   ac_status=$?
17342   grep -v '^ *+' conftest.er1 >conftest.err
17343   rm -f conftest.er1
17344   cat conftest.err >&5
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); } &&
17347          { ac_try='test -z "$ac_c_werror_flag"
17348                          || test ! -s conftest.err'
17349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350   (eval $ac_try) 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; } &&
17354          { ac_try='test -s conftest$ac_exeext'
17355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356   (eval $ac_try) 2>&5
17357   ac_status=$?
17358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); }; }; then
17360   ol_cv_resolver_bind=yes
17361 else
17362   echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365 ol_cv_resolver_bind=no
17366 fi
17367 rm -f conftest.err conftest.$ac_objext \
17368       conftest$ac_exeext conftest.$ac_ext
17369
17370         LIBS="$ol_LIBS"
17371
17372 fi
17373 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17374 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17375
17376         if test $ol_cv_resolver_bind = yes ; then
17377                 ol_cv_lib_resolver=-lbind
17378         fi
17379 fi
17380
17381
17382
17383 ol_link_dnssrv=no
17384 if test "$ol_cv_lib_resolver" != no ; then
17385
17386 cat >>confdefs.h <<\_ACEOF
17387 #define HAVE_RES_QUERY 1
17388 _ACEOF
17389
17390
17391         if test "$ol_enable_dnssrv" != no ; then
17392                 ol_link_dnssrv=yes
17393         fi
17394
17395         if test "$ol_cv_lib_resolver" != yes ; then
17396                 LIBS="$ol_cv_lib_resolver $LIBS"
17397         fi
17398 fi
17399
17400 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17401         if test "$ol_link_dnssrv" = no ; then
17402                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17403 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17404    { (exit 1); exit 1; }; }
17405         fi
17406 else
17407         ol_enable_dnssrv=no
17408 fi
17409
17410
17411 for ac_func in hstrerror
17412 do
17413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17414 echo "$as_me:$LINENO: checking for $ac_func" >&5
17415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_var+set}\" = set"; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   cat >conftest.$ac_ext <<_ACEOF
17420 /* confdefs.h.  */
17421 _ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h.  */
17425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17427 #define $ac_func innocuous_$ac_func
17428
17429 /* System header to define __stub macros and hopefully few prototypes,
17430     which can conflict with char $ac_func (); below.
17431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17432     <limits.h> exists even on freestanding compilers.  */
17433
17434 #ifdef __STDC__
17435 # include <limits.h>
17436 #else
17437 # include <assert.h>
17438 #endif
17439
17440 #undef $ac_func
17441
17442 /* Override any gcc2 internal prototype to avoid an error.  */
17443 #ifdef __cplusplus
17444 extern "C"
17445 {
17446 #endif
17447 /* We use char because int might match the return type of a gcc2
17448    builtin and then its argument prototype would still apply.  */
17449 char $ac_func ();
17450 /* The GNU C library defines this for functions which it implements
17451     to always fail with ENOSYS.  Some functions are actually named
17452     something starting with __ and the normal name is an alias.  */
17453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17454 choke me
17455 #else
17456 char (*f) () = $ac_func;
17457 #endif
17458 #ifdef __cplusplus
17459 }
17460 #endif
17461
17462 int
17463 main ()
17464 {
17465 return f != $ac_func;
17466   ;
17467   return 0;
17468 }
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17472   (eval $ac_link) 2>conftest.er1
17473   ac_status=$?
17474   grep -v '^ *+' conftest.er1 >conftest.err
17475   rm -f conftest.er1
17476   cat conftest.err >&5
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); } &&
17479          { ac_try='test -z "$ac_c_werror_flag"
17480                          || test ! -s conftest.err'
17481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482   (eval $ac_try) 2>&5
17483   ac_status=$?
17484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485   (exit $ac_status); }; } &&
17486          { ac_try='test -s conftest$ac_exeext'
17487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488   (eval $ac_try) 2>&5
17489   ac_status=$?
17490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491   (exit $ac_status); }; }; then
17492   eval "$as_ac_var=yes"
17493 else
17494   echo "$as_me: failed program was:" >&5
17495 sed 's/^/| /' conftest.$ac_ext >&5
17496
17497 eval "$as_ac_var=no"
17498 fi
17499 rm -f conftest.err conftest.$ac_objext \
17500       conftest$ac_exeext conftest.$ac_ext
17501 fi
17502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17504 if test `eval echo '${'$as_ac_var'}'` = yes; then
17505   cat >>confdefs.h <<_ACEOF
17506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17507 _ACEOF
17508
17509 fi
17510 done
17511
17512
17513
17514
17515
17516
17517 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17518 do
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17522 if eval "test \"\${$as_ac_var+set}\" = set"; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17533 #define $ac_func innocuous_$ac_func
17534
17535 /* System header to define __stub macros and hopefully few prototypes,
17536     which can conflict with char $ac_func (); below.
17537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538     <limits.h> exists even on freestanding compilers.  */
17539
17540 #ifdef __STDC__
17541 # include <limits.h>
17542 #else
17543 # include <assert.h>
17544 #endif
17545
17546 #undef $ac_func
17547
17548 /* Override any gcc2 internal prototype to avoid an error.  */
17549 #ifdef __cplusplus
17550 extern "C"
17551 {
17552 #endif
17553 /* We use char because int might match the return type of a gcc2
17554    builtin and then its argument prototype would still apply.  */
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557     to always fail with ENOSYS.  Some functions are actually named
17558     something starting with __ and the normal name is an alias.  */
17559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17560 choke me
17561 #else
17562 char (*f) () = $ac_func;
17563 #endif
17564 #ifdef __cplusplus
17565 }
17566 #endif
17567
17568 int
17569 main ()
17570 {
17571 return f != $ac_func;
17572   ;
17573   return 0;
17574 }
17575 _ACEOF
17576 rm -f conftest.$ac_objext conftest$ac_exeext
17577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17578   (eval $ac_link) 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_c_werror_flag"
17586                          || test ! -s conftest.err'
17587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588   (eval $ac_try) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); }; } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598   eval "$as_ac_var=yes"
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 eval "$as_ac_var=no"
17604 fi
17605 rm -f conftest.err conftest.$ac_objext \
17606       conftest$ac_exeext conftest.$ac_ext
17607 fi
17608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17610 if test `eval echo '${'$as_ac_var'}'` = yes; then
17611   cat >>confdefs.h <<_ACEOF
17612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17613 _ACEOF
17614
17615 fi
17616 done
17617
17618
17619 ol_link_ipv6=no
17620 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17621         if test $ol_enable_ipv6 = yes ; then
17622                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17623 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17624    { (exit 1); exit 1; }; }
17625         fi
17626 elif test $ol_enable_ipv6 != no ; then
17627         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17628 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17629 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632
17633                 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639
17640 #                       include <netinet/in.h>
17641 #                       ifdef INET6_ADDRSTRLEN
17642                                 __has_inet6_addrstrlen__;
17643 #                       endif
17644
17645 _ACEOF
17646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17647   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17648   ol_cv_inet6_addrstrlen=yes
17649 else
17650   ol_cv_inet6_addrstrlen=no
17651 fi
17652 rm -f conftest*
17653
17654 fi
17655 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17656 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17657
17658
17659         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17660 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17661 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17662   echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664
17665                 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671
17672 #include <sys/types.h>
17673 #include <sys/socket.h>
17674
17675 int
17676 main ()
17677 {
17678
17679                         struct sockaddr_storage ss;
17680
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687   (eval $ac_compile) 2>conftest.er1
17688   ac_status=$?
17689   grep -v '^ *+' conftest.er1 >conftest.err
17690   rm -f conftest.er1
17691   cat conftest.err >&5
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); } &&
17694          { ac_try='test -z "$ac_c_werror_flag"
17695                          || test ! -s conftest.err'
17696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697   (eval $ac_try) 2>&5
17698   ac_status=$?
17699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700   (exit $ac_status); }; } &&
17701          { ac_try='test -s conftest.$ac_objext'
17702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703   (eval $ac_try) 2>&5
17704   ac_status=$?
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); }; }; then
17707   ol_cv_struct_sockaddr_storage=yes
17708 else
17709   echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 ol_cv_struct_sockaddr_storage=no
17713 fi
17714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17715 fi
17716 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17717 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17718
17719         if test $ol_cv_inet6_addrstrlen = yes &&
17720            test $ol_cv_struct_sockaddr_storage = yes ; then
17721                 ol_link_ipv6=yes
17722         elif test $ol_enable_ipv6 = yes &&
17723              test $ol_cv_inet6_addrstrlen = no ; then
17724                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17725 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17726    { (exit 1); exit 1; }; }
17727         elif test $ol_enable_ipv6 = yes &&
17728              test $ol_cv_struct_sockaddr_storage = no ; then
17729                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17730 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17731    { (exit 1); exit 1; }; }
17732         fi
17733 fi
17734
17735 if test $ol_enable_local != no ; then
17736
17737 for ac_header in sys/un.h
17738 do
17739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17741   echo "$as_me:$LINENO: checking for $ac_header" >&5
17742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 fi
17746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17748 else
17749   # Is the header compilable?
17750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17753 /* confdefs.h.  */
17754 _ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h.  */
17758 $ac_includes_default
17759 #include <$ac_header>
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763   (eval $ac_compile) 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_c_werror_flag"
17771                          || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_header_compiler=yes
17784 else
17785   echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 ac_header_compiler=no
17789 fi
17790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17791 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17792 echo "${ECHO_T}$ac_header_compiler" >&6
17793
17794 # Is the header present?
17795 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803 #include <$ac_header>
17804 _ACEOF
17805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17807   ac_status=$?
17808   grep -v '^ *+' conftest.er1 >conftest.err
17809   rm -f conftest.er1
17810   cat conftest.err >&5
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } >/dev/null; then
17813   if test -s conftest.err; then
17814     ac_cpp_err=$ac_c_preproc_warn_flag
17815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17816   else
17817     ac_cpp_err=
17818   fi
17819 else
17820   ac_cpp_err=yes
17821 fi
17822 if test -z "$ac_cpp_err"; then
17823   ac_header_preproc=yes
17824 else
17825   echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828   ac_header_preproc=no
17829 fi
17830 rm -f conftest.err conftest.$ac_ext
17831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17832 echo "${ECHO_T}$ac_header_preproc" >&6
17833
17834 # So?  What about this header?
17835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17836   yes:no: )
17837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17841     ac_header_preproc=yes
17842     ;;
17843   no:yes:* )
17844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17856     (
17857       cat <<\_ASBOX
17858 ## ------------------------------------------ ##
17859 ## Report this to the AC_PACKAGE_NAME lists.  ##
17860 ## ------------------------------------------ ##
17861 _ASBOX
17862     ) |
17863       sed "s/^/$as_me: WARNING:     /" >&2
17864     ;;
17865 esac
17866 echo "$as_me:$LINENO: checking for $ac_header" >&5
17867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17869   echo $ECHO_N "(cached) $ECHO_C" >&6
17870 else
17871   eval "$as_ac_Header=\$ac_header_preproc"
17872 fi
17873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17875
17876 fi
17877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17878   cat >>confdefs.h <<_ACEOF
17879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17880 _ACEOF
17881
17882 fi
17883
17884 done
17885
17886
17887         if test $ol_enable_local = auto ; then
17888                 ol_enable_local=$ac_cv_header_sys_un_h
17889         elif test $ac_cv_header_sys_un_h = no ; then
17890                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17891 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17892    { (exit 1); exit 1; }; }
17893         fi
17894 fi
17895
17896 ol_link_kbind=no
17897 ol_link_krb5=no
17898 ol_link_krb4=no
17899
17900 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17901
17902
17903 for ac_header in krb5.h
17904 do
17905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17907   echo "$as_me:$LINENO: checking for $ac_header" >&5
17908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17910   echo $ECHO_N "(cached) $ECHO_C" >&6
17911 fi
17912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17914 else
17915   # Is the header compilable?
17916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17924 $ac_includes_default
17925 #include <$ac_header>
17926 _ACEOF
17927 rm -f conftest.$ac_objext
17928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17929   (eval $ac_compile) 2>conftest.er1
17930   ac_status=$?
17931   grep -v '^ *+' conftest.er1 >conftest.err
17932   rm -f conftest.er1
17933   cat conftest.err >&5
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); } &&
17936          { ac_try='test -z "$ac_c_werror_flag"
17937                          || test ! -s conftest.err'
17938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17939   (eval $ac_try) 2>&5
17940   ac_status=$?
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); }; } &&
17943          { ac_try='test -s conftest.$ac_objext'
17944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945   (eval $ac_try) 2>&5
17946   ac_status=$?
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); }; }; then
17949   ac_header_compiler=yes
17950 else
17951   echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 ac_header_compiler=no
17955 fi
17956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17958 echo "${ECHO_T}$ac_header_compiler" >&6
17959
17960 # Is the header present?
17961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17964 /* confdefs.h.  */
17965 _ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h.  */
17969 #include <$ac_header>
17970 _ACEOF
17971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17973   ac_status=$?
17974   grep -v '^ *+' conftest.er1 >conftest.err
17975   rm -f conftest.er1
17976   cat conftest.err >&5
17977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978   (exit $ac_status); } >/dev/null; then
17979   if test -s conftest.err; then
17980     ac_cpp_err=$ac_c_preproc_warn_flag
17981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17982   else
17983     ac_cpp_err=
17984   fi
17985 else
17986   ac_cpp_err=yes
17987 fi
17988 if test -z "$ac_cpp_err"; then
17989   ac_header_preproc=yes
17990 else
17991   echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17993
17994   ac_header_preproc=no
17995 fi
17996 rm -f conftest.err conftest.$ac_ext
17997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17998 echo "${ECHO_T}$ac_header_preproc" >&6
17999
18000 # So?  What about this header?
18001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18002   yes:no: )
18003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18007     ac_header_preproc=yes
18008     ;;
18009   no:yes:* )
18010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18022     (
18023       cat <<\_ASBOX
18024 ## ------------------------------------------ ##
18025 ## Report this to the AC_PACKAGE_NAME lists.  ##
18026 ## ------------------------------------------ ##
18027 _ASBOX
18028     ) |
18029       sed "s/^/$as_me: WARNING:     /" >&2
18030     ;;
18031 esac
18032 echo "$as_me:$LINENO: checking for $ac_header" >&5
18033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18035   echo $ECHO_N "(cached) $ECHO_C" >&6
18036 else
18037   eval "$as_ac_Header=\$ac_header_preproc"
18038 fi
18039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18041
18042 fi
18043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18044   cat >>confdefs.h <<_ACEOF
18045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18046 _ACEOF
18047
18048 fi
18049
18050 done
18051
18052
18053         if test $ac_cv_header_krb5_h = yes ; then
18054
18055 for ac_header in heim_err.h
18056 do
18057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059   echo "$as_me:$LINENO: checking for $ac_header" >&5
18060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18062   echo $ECHO_N "(cached) $ECHO_C" >&6
18063 fi
18064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18066 else
18067   # Is the header compilable?
18068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18070 cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 $ac_includes_default
18077 #include <$ac_header>
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081   (eval $ac_compile) 2>conftest.er1
18082   ac_status=$?
18083   grep -v '^ *+' conftest.er1 >conftest.err
18084   rm -f conftest.er1
18085   cat conftest.err >&5
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -z "$ac_c_werror_flag"
18089                          || test ! -s conftest.err'
18090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091   (eval $ac_try) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; } &&
18095          { ac_try='test -s conftest.$ac_objext'
18096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097   (eval $ac_try) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; }; then
18101   ac_header_compiler=yes
18102 else
18103   echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 ac_header_compiler=no
18107 fi
18108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18110 echo "${ECHO_T}$ac_header_compiler" >&6
18111
18112 # Is the header present?
18113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 #include <$ac_header>
18122 _ACEOF
18123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } >/dev/null; then
18131   if test -s conftest.err; then
18132     ac_cpp_err=$ac_c_preproc_warn_flag
18133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18134   else
18135     ac_cpp_err=
18136   fi
18137 else
18138   ac_cpp_err=yes
18139 fi
18140 if test -z "$ac_cpp_err"; then
18141   ac_header_preproc=yes
18142 else
18143   echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146   ac_header_preproc=no
18147 fi
18148 rm -f conftest.err conftest.$ac_ext
18149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18150 echo "${ECHO_T}$ac_header_preproc" >&6
18151
18152 # So?  What about this header?
18153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18154   yes:no: )
18155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18159     ac_header_preproc=yes
18160     ;;
18161   no:yes:* )
18162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18174     (
18175       cat <<\_ASBOX
18176 ## ------------------------------------------ ##
18177 ## Report this to the AC_PACKAGE_NAME lists.  ##
18178 ## ------------------------------------------ ##
18179 _ASBOX
18180     ) |
18181       sed "s/^/$as_me: WARNING:     /" >&2
18182     ;;
18183 esac
18184 echo "$as_me:$LINENO: checking for $ac_header" >&5
18185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   eval "$as_ac_Header=\$ac_header_preproc"
18190 fi
18191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18193
18194 fi
18195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18196   cat >>confdefs.h <<_ACEOF
18197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18198 _ACEOF
18199
18200 fi
18201
18202 done
18203
18204                 if test $ac_cv_header_heim_err_h = yes ; then
18205                         krb5_impl=heimdal
18206                 else
18207                         krb5_impl=mit
18208                 fi
18209
18210                 if test $krb5_impl = mit; then
18211                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18212 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18213 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-lk5crypto  $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225
18226 int
18227 main ()
18228 {
18229 main ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag"
18244                          || test ! -s conftest.err'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; } &&
18250          { ac_try='test -s conftest$ac_exeext'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256   ac_cv_lib_k5crypto_main=yes
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 ac_cv_lib_k5crypto_main=no
18262 fi
18263 rm -f conftest.err conftest.$ac_objext \
18264       conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18266 fi
18267 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18268 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18269 if test $ac_cv_lib_k5crypto_main = yes; then
18270   krb5crypto=k5crypto
18271 else
18272   krb5crypto=crypto
18273 fi
18274
18275
18276                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18277 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18278 if test "${ac_cv_lib_krb5_main+set}" = set; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   ac_check_lib_save_LIBS=$LIBS
18282 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18283 cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290
18291 int
18292 main ()
18293 {
18294 main ();
18295   ;
18296   return 0;
18297 }
18298 _ACEOF
18299 rm -f conftest.$ac_objext conftest$ac_exeext
18300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18301   (eval $ac_link) 2>conftest.er1
18302   ac_status=$?
18303   grep -v '^ *+' conftest.er1 >conftest.err
18304   rm -f conftest.er1
18305   cat conftest.err >&5
18306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307   (exit $ac_status); } &&
18308          { ac_try='test -z "$ac_c_werror_flag"
18309                          || test ! -s conftest.err'
18310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311   (eval $ac_try) 2>&5
18312   ac_status=$?
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); }; } &&
18315          { ac_try='test -s conftest$ac_exeext'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321   ac_cv_lib_krb5_main=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326 ac_cv_lib_krb5_main=no
18327 fi
18328 rm -f conftest.err conftest.$ac_objext \
18329       conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18331 fi
18332 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18333 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18334 if test $ac_cv_lib_krb5_main = yes; then
18335   have_krb5=yes
18336                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18337 else
18338   have_krb5=no
18339 fi
18340
18341
18342                 elif test $krb5_impl = heimdal; then
18343                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18344 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18345 if test "${ac_cv_lib_des_main+set}" = set; then
18346   echo $ECHO_N "(cached) $ECHO_C" >&6
18347 else
18348   ac_check_lib_save_LIBS=$LIBS
18349 LIBS="-ldes  $LIBS"
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356
18357
18358 int
18359 main ()
18360 {
18361 main ();
18362   ;
18363   return 0;
18364 }
18365 _ACEOF
18366 rm -f conftest.$ac_objext conftest$ac_exeext
18367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368   (eval $ac_link) 2>conftest.er1
18369   ac_status=$?
18370   grep -v '^ *+' conftest.er1 >conftest.err
18371   rm -f conftest.er1
18372   cat conftest.err >&5
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); } &&
18375          { ac_try='test -z "$ac_c_werror_flag"
18376                          || test ! -s conftest.err'
18377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378   (eval $ac_try) 2>&5
18379   ac_status=$?
18380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); }; } &&
18382          { ac_try='test -s conftest$ac_exeext'
18383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384   (eval $ac_try) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; }; then
18388   ac_cv_lib_des_main=yes
18389 else
18390   echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393 ac_cv_lib_des_main=no
18394 fi
18395 rm -f conftest.err conftest.$ac_objext \
18396       conftest$ac_exeext conftest.$ac_ext
18397 LIBS=$ac_check_lib_save_LIBS
18398 fi
18399 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18400 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18401 if test $ac_cv_lib_des_main = yes; then
18402   krb5crypto=des
18403 else
18404   krb5crypto=crypto
18405 fi
18406
18407
18408                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18409 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18410 if test "${ac_cv_lib_krb5_main+set}" = set; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   ac_check_lib_save_LIBS=$LIBS
18414 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18415 cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421
18422
18423 int
18424 main ()
18425 {
18426 main ();
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext conftest$ac_exeext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18433   (eval $ac_link) 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } &&
18440          { ac_try='test -z "$ac_c_werror_flag"
18441                          || test ! -s conftest.err'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; } &&
18447          { ac_try='test -s conftest$ac_exeext'
18448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449   (eval $ac_try) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); }; }; then
18453   ac_cv_lib_krb5_main=yes
18454 else
18455   echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 ac_cv_lib_krb5_main=no
18459 fi
18460 rm -f conftest.err conftest.$ac_objext \
18461       conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_check_lib_save_LIBS
18463 fi
18464 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18465 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18466 if test $ac_cv_lib_krb5_main = yes; then
18467   have_krb5=yes
18468                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18469 else
18470   have_krb5=no
18471 fi
18472
18473
18474
18475 cat >>confdefs.h <<\_ACEOF
18476 #define HAVE_HEIMDAL_KERBEROS 1
18477 _ACEOF
18478
18479
18480                 else
18481                         have_krb5=no
18482                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18483 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18484                 fi
18485
18486                 if test $have_krb5 = yes ; then
18487                         ol_link_krb5=yes
18488
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_KRB5 1
18492 _ACEOF
18493
18494
18495                         if test $ol_with_kerberos = k5only ; then
18496                                 ol_with_kerberos=found
18497                         fi
18498
18499                 elif test $ol_with_kerberos != auto ; then
18500                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18501 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18502    { (exit 1); exit 1; }; }
18503                 fi
18504
18505         fi
18506         ;;
18507 esac
18508
18509 if test $ol_link_krb5 = yes &&
18510    { test $ol_with_kerberos = yes ||
18511      test $ol_with_kerberos = auto ||
18512      test $ol_with_kerberos = k425; }; then
18513
18514
18515
18516 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18517 do
18518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18520   echo "$as_me:$LINENO: checking for $ac_header" >&5
18521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18523   echo $ECHO_N "(cached) $ECHO_C" >&6
18524 fi
18525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18527 else
18528   # Is the header compilable?
18529 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537 $ac_includes_default
18538 #include <$ac_header>
18539 _ACEOF
18540 rm -f conftest.$ac_objext
18541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18542   (eval $ac_compile) 2>conftest.er1
18543   ac_status=$?
18544   grep -v '^ *+' conftest.er1 >conftest.err
18545   rm -f conftest.er1
18546   cat conftest.err >&5
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } &&
18549          { ac_try='test -z "$ac_c_werror_flag"
18550                          || test ! -s conftest.err'
18551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552   (eval $ac_try) 2>&5
18553   ac_status=$?
18554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; } &&
18556          { ac_try='test -s conftest.$ac_objext'
18557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558   (eval $ac_try) 2>&5
18559   ac_status=$?
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); }; }; then
18562   ac_header_compiler=yes
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567 ac_header_compiler=no
18568 fi
18569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18571 echo "${ECHO_T}$ac_header_compiler" >&6
18572
18573 # Is the header present?
18574 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582 #include <$ac_header>
18583 _ACEOF
18584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18586   ac_status=$?
18587   grep -v '^ *+' conftest.er1 >conftest.err
18588   rm -f conftest.er1
18589   cat conftest.err >&5
18590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591   (exit $ac_status); } >/dev/null; then
18592   if test -s conftest.err; then
18593     ac_cpp_err=$ac_c_preproc_warn_flag
18594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18595   else
18596     ac_cpp_err=
18597   fi
18598 else
18599   ac_cpp_err=yes
18600 fi
18601 if test -z "$ac_cpp_err"; then
18602   ac_header_preproc=yes
18603 else
18604   echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607   ac_header_preproc=no
18608 fi
18609 rm -f conftest.err conftest.$ac_ext
18610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18611 echo "${ECHO_T}$ac_header_preproc" >&6
18612
18613 # So?  What about this header?
18614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18615   yes:no: )
18616     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18618     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18620     ac_header_preproc=yes
18621     ;;
18622   no:yes:* )
18623     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18625     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18626 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18627     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18629     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18630 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18633     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18635     (
18636       cat <<\_ASBOX
18637 ## ------------------------------------------ ##
18638 ## Report this to the AC_PACKAGE_NAME lists.  ##
18639 ## ------------------------------------------ ##
18640 _ASBOX
18641     ) |
18642       sed "s/^/$as_me: WARNING:     /" >&2
18643     ;;
18644 esac
18645 echo "$as_me:$LINENO: checking for $ac_header" >&5
18646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   eval "$as_ac_Header=\$ac_header_preproc"
18651 fi
18652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18654
18655 fi
18656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18657   cat >>confdefs.h <<_ACEOF
18658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18659 _ACEOF
18660
18661 fi
18662
18663 done
18664
18665
18666         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18667                 if test $krb5_impl = mit; then
18668                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18669 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18670 if test "${ac_cv_lib_krb4_main+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   ac_check_lib_save_LIBS=$LIBS
18674 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h.  */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h.  */
18681
18682
18683 int
18684 main ()
18685 {
18686 main ();
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18693   (eval $ac_link) 2>conftest.er1
18694   ac_status=$?
18695   grep -v '^ *+' conftest.er1 >conftest.err
18696   rm -f conftest.er1
18697   cat conftest.err >&5
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); } &&
18700          { ac_try='test -z "$ac_c_werror_flag"
18701                          || test ! -s conftest.err'
18702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703   (eval $ac_try) 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; } &&
18707          { ac_try='test -s conftest$ac_exeext'
18708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709   (eval $ac_try) 2>&5
18710   ac_status=$?
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); }; }; then
18713   ac_cv_lib_krb4_main=yes
18714 else
18715   echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ac_cv_lib_krb4_main=no
18719 fi
18720 rm -f conftest.err conftest.$ac_objext \
18721       conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18723 fi
18724 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18725 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18726 if test $ac_cv_lib_krb4_main = yes; then
18727   have_k425=yes
18728                                 KRB4_LIBS="-lkrb4 -ldes425"
18729 else
18730   have_k425=no
18731 fi
18732
18733
18734                 elif test $krb5_impl = heimdal; then
18735                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18736 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18737 if test "${ac_cv_lib_krb4_main+set}" = set; then
18738   echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740   ac_check_lib_save_LIBS=$LIBS
18741 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18742 cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749
18750 int
18751 main ()
18752 {
18753 main ();
18754   ;
18755   return 0;
18756 }
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18760   (eval $ac_link) 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } &&
18767          { ac_try='test -z "$ac_c_werror_flag"
18768                          || test ! -s conftest.err'
18769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770   (eval $ac_try) 2>&5
18771   ac_status=$?
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); }; } &&
18774          { ac_try='test -s conftest$ac_exeext'
18775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18776   (eval $ac_try) 2>&5
18777   ac_status=$?
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); }; }; then
18780   ac_cv_lib_krb4_main=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ac_cv_lib_krb4_main=no
18786 fi
18787 rm -f conftest.err conftest.$ac_objext \
18788       conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18790 fi
18791 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18792 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18793 if test $ac_cv_lib_krb4_main = yes; then
18794   have_k425=yes
18795                                 KRB4_LIBS="-lkrb4"
18796 else
18797   have_k425=no
18798 fi
18799
18800
18801                 else
18802                         have_425=no
18803                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18804 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18805                 fi
18806
18807                 if test $have_k425 = yes ; then
18808                         ol_with_kerberos=found
18809                         ol_link_krb4=yes
18810
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE_KRB425 1
18814 _ACEOF
18815
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_KRB4 1
18819 _ACEOF
18820
18821
18822                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18823 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18824 if test "${ol_cv_var_des_debug+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827
18828                                                                 save_LIBS="$LIBS"
18829                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18830                                 cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837 #include <kerberosIV/krb.h>
18838 #include <kerberosIV/des.h>
18839 extern int des_debug;
18840
18841 int
18842 main ()
18843 {
18844
18845 des_debug = 1;
18846
18847   ;
18848   return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853   (eval $ac_link) 2>conftest.er1
18854   ac_status=$?
18855   grep -v '^ *+' conftest.er1 >conftest.err
18856   rm -f conftest.er1
18857   cat conftest.err >&5
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } &&
18860          { ac_try='test -z "$ac_c_werror_flag"
18861                          || test ! -s conftest.err'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; } &&
18867          { ac_try='test -s conftest$ac_exeext'
18868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869   (eval $ac_try) 2>&5
18870   ac_status=$?
18871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872   (exit $ac_status); }; }; then
18873   ol_cv_var_des_debug=yes
18874 else
18875   echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ol_cv_var_des_debug=no
18879 fi
18880 rm -f conftest.err conftest.$ac_objext \
18881       conftest$ac_exeext conftest.$ac_ext
18882                                                                 LIBS="$save_LIBS"
18883
18884 fi
18885 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18886 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18887
18888                         if test $ol_cv_var_des_debug = yes ; then
18889
18890 cat >>confdefs.h <<\_ACEOF
18891 #define HAVE_DES_DEBUG 1
18892 _ACEOF
18893
18894                         fi
18895
18896                         LIBS="$save_LIBS"
18897                 fi
18898         fi
18899 fi
18900
18901 if test $ol_link_krb5 = yes ; then
18902         ol_with_kerberos=found
18903 fi
18904
18905 case $ol_with_kerberos in yes | auto | k4 | kth)
18906
18907
18908
18909
18910 for ac_header in krb.h des.h krb-archaeology.h
18911 do
18912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914   echo "$as_me:$LINENO: checking for $ac_header" >&5
18915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 fi
18919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18921 else
18922   # Is the header compilable?
18923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931 $ac_includes_default
18932 #include <$ac_header>
18933 _ACEOF
18934 rm -f conftest.$ac_objext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936   (eval $ac_compile) 2>conftest.er1
18937   ac_status=$?
18938   grep -v '^ *+' conftest.er1 >conftest.err
18939   rm -f conftest.er1
18940   cat conftest.err >&5
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } &&
18943          { ac_try='test -z "$ac_c_werror_flag"
18944                          || test ! -s conftest.err'
18945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946   (eval $ac_try) 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest.$ac_objext'
18951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952   (eval $ac_try) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; }; then
18956   ac_header_compiler=yes
18957 else
18958   echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18960
18961 ac_header_compiler=no
18962 fi
18963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18965 echo "${ECHO_T}$ac_header_compiler" >&6
18966
18967 # Is the header present?
18968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976 #include <$ac_header>
18977 _ACEOF
18978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } >/dev/null; then
18986   if test -s conftest.err; then
18987     ac_cpp_err=$ac_c_preproc_warn_flag
18988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18989   else
18990     ac_cpp_err=
18991   fi
18992 else
18993   ac_cpp_err=yes
18994 fi
18995 if test -z "$ac_cpp_err"; then
18996   ac_header_preproc=yes
18997 else
18998   echo "$as_me: failed program was:" >&5
18999 sed 's/^/| /' conftest.$ac_ext >&5
19000
19001   ac_header_preproc=no
19002 fi
19003 rm -f conftest.err conftest.$ac_ext
19004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6
19006
19007 # So?  What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19009   yes:no: )
19010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19014     ac_header_preproc=yes
19015     ;;
19016   no:yes:* )
19017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19029     (
19030       cat <<\_ASBOX
19031 ## ------------------------------------------ ##
19032 ## Report this to the AC_PACKAGE_NAME lists.  ##
19033 ## ------------------------------------------ ##
19034 _ASBOX
19035     ) |
19036       sed "s/^/$as_me: WARNING:     /" >&2
19037     ;;
19038 esac
19039 echo "$as_me:$LINENO: checking for $ac_header" >&5
19040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   eval "$as_ac_Header=\$ac_header_preproc"
19045 fi
19046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19048
19049 fi
19050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19051   cat >>confdefs.h <<_ACEOF
19052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19053 _ACEOF
19054
19055 fi
19056
19057 done
19058
19059
19060         if test $ac_cv_header_krb_h = yes ; then
19061                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19062 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19063 if test "${ac_cv_lib_krb_main+set}" = set; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   ac_check_lib_save_LIBS=$LIBS
19067 LIBS="-lkrb -ldes $LIBS"
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074
19075
19076 int
19077 main ()
19078 {
19079 main ();
19080   ;
19081   return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19086   (eval $ac_link) 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } &&
19093          { ac_try='test -z "$ac_c_werror_flag"
19094                          || test ! -s conftest.err'
19095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096   (eval $ac_try) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); }; } &&
19100          { ac_try='test -s conftest$ac_exeext'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; }; then
19106   ac_cv_lib_krb_main=yes
19107 else
19108   echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 ac_cv_lib_krb_main=no
19112 fi
19113 rm -f conftest.err conftest.$ac_objext \
19114       conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19118 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19119 if test $ac_cv_lib_krb_main = yes; then
19120   have_k4=yes
19121 else
19122   have_k4=no
19123 fi
19124
19125
19126                 if test $have_k4 = yes ; then
19127                         ol_with_kerberos=found
19128                         ol_link_krb4=yes
19129
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_KRB4 1
19133 _ACEOF
19134
19135
19136                         KRB4_LIBS="-lkrb -ldes"
19137
19138                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19139
19140 cat >>confdefs.h <<\_ACEOF
19141 #define HAVE_KTH_KERBEROS 1
19142 _ACEOF
19143
19144                         fi
19145                 fi
19146         fi
19147         ;;
19148 esac
19149
19150 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19151         ol_link_kbind=yes
19152
19153 elif test $ol_enable_kbind = yes ; then
19154         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19155 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19156    { (exit 1); exit 1; }; }
19157 fi
19158
19159 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19160
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_KERBEROS 1
19163 _ACEOF
19164
19165
19166 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19167         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19168 echo "$as_me: error: Kerberos detection failed" >&2;}
19169    { (exit 1); exit 1; }; }
19170 fi
19171
19172
19173 ol_link_tls=no
19174 if test $ol_with_tls != no ; then
19175
19176 for ac_header in openssl/ssl.h
19177 do
19178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19180   echo "$as_me:$LINENO: checking for $ac_header" >&5
19181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183   echo $ECHO_N "(cached) $ECHO_C" >&6
19184 fi
19185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19187 else
19188   # Is the header compilable?
19189 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19191 cat >conftest.$ac_ext <<_ACEOF
19192 /* confdefs.h.  */
19193 _ACEOF
19194 cat confdefs.h >>conftest.$ac_ext
19195 cat >>conftest.$ac_ext <<_ACEOF
19196 /* end confdefs.h.  */
19197 $ac_includes_default
19198 #include <$ac_header>
19199 _ACEOF
19200 rm -f conftest.$ac_objext
19201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202   (eval $ac_compile) 2>conftest.er1
19203   ac_status=$?
19204   grep -v '^ *+' conftest.er1 >conftest.err
19205   rm -f conftest.er1
19206   cat conftest.err >&5
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); } &&
19209          { ac_try='test -z "$ac_c_werror_flag"
19210                          || test ! -s conftest.err'
19211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212   (eval $ac_try) 2>&5
19213   ac_status=$?
19214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215   (exit $ac_status); }; } &&
19216          { ac_try='test -s conftest.$ac_objext'
19217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218   (eval $ac_try) 2>&5
19219   ac_status=$?
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); }; }; then
19222   ac_header_compiler=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227 ac_header_compiler=no
19228 fi
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19231 echo "${ECHO_T}$ac_header_compiler" >&6
19232
19233 # Is the header present?
19234 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h.  */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h.  */
19242 #include <$ac_header>
19243 _ACEOF
19244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } >/dev/null; then
19252   if test -s conftest.err; then
19253     ac_cpp_err=$ac_c_preproc_warn_flag
19254     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19255   else
19256     ac_cpp_err=
19257   fi
19258 else
19259   ac_cpp_err=yes
19260 fi
19261 if test -z "$ac_cpp_err"; then
19262   ac_header_preproc=yes
19263 else
19264   echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19266
19267   ac_header_preproc=no
19268 fi
19269 rm -f conftest.err conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271 echo "${ECHO_T}$ac_header_preproc" >&6
19272
19273 # So?  What about this header?
19274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19275   yes:no: )
19276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280     ac_header_preproc=yes
19281     ;;
19282   no:yes:* )
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19295     (
19296       cat <<\_ASBOX
19297 ## ------------------------------------------ ##
19298 ## Report this to the AC_PACKAGE_NAME lists.  ##
19299 ## ------------------------------------------ ##
19300 _ASBOX
19301     ) |
19302       sed "s/^/$as_me: WARNING:     /" >&2
19303     ;;
19304 esac
19305 echo "$as_me:$LINENO: checking for $ac_header" >&5
19306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   eval "$as_ac_Header=\$ac_header_preproc"
19311 fi
19312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19314
19315 fi
19316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19317   cat >>confdefs.h <<_ACEOF
19318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19319 _ACEOF
19320
19321 fi
19322
19323 done
19324
19325
19326         if test $ac_cv_header_openssl_ssl_h = yes ; then
19327                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19328 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19329 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lssl -lcrypto $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340
19341 /* Override any gcc2 internal prototype to avoid an error.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 /* We use char because int might match the return type of a gcc2
19346    builtin and then its argument prototype would still apply.  */
19347 char SSL_library_init ();
19348 int
19349 main ()
19350 {
19351 SSL_library_init ();
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19358   (eval $ac_link) 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } &&
19365          { ac_try='test -z "$ac_c_werror_flag"
19366                          || test ! -s conftest.err'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; } &&
19372          { ac_try='test -s conftest$ac_exeext'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; }; then
19378   ac_cv_lib_ssl_SSL_library_init=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_lib_ssl_SSL_library_init=no
19384 fi
19385 rm -f conftest.err conftest.$ac_objext \
19386       conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19388 fi
19389 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19392   have_openssl=yes
19393                         need_rsaref=no
19394 else
19395   have_openssl=no
19396 fi
19397
19398
19399                 if test $have_openssl = no ; then
19400                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any gcc2 internal prototype to avoid an error.  */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 /* We use char because int might match the return type of a gcc2
19419    builtin and then its argument prototype would still apply.  */
19420 char ssl3_accept ();
19421 int
19422 main ()
19423 {
19424 ssl3_accept ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19431   (eval $ac_link) 2>conftest.er1
19432   ac_status=$?
19433   grep -v '^ *+' conftest.er1 >conftest.err
19434   rm -f conftest.er1
19435   cat conftest.err >&5
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); } &&
19438          { ac_try='test -z "$ac_c_werror_flag"
19439                          || test ! -s conftest.err'
19440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441   (eval $ac_try) 2>&5
19442   ac_status=$?
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); }; } &&
19445          { ac_try='test -s conftest$ac_exeext'
19446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447   (eval $ac_try) 2>&5
19448   ac_status=$?
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); }; }; then
19451   ac_cv_lib_ssl_ssl3_accept=yes
19452 else
19453   echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456 ac_cv_lib_ssl_ssl3_accept=no
19457 fi
19458 rm -f conftest.err conftest.$ac_objext \
19459       conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19461 fi
19462 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19463 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19464 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19465   have_openssl=yes
19466                                 need_rsaref=yes
19467 else
19468   have_openssl=no
19469 fi
19470
19471                 fi
19472
19473                 if test $have_openssl = yes ; then
19474                         ol_with_tls=found
19475                         ol_link_tls=yes
19476
19477
19478 cat >>confdefs.h <<\_ACEOF
19479 #define HAVE_OPENSSL 1
19480 _ACEOF
19481
19482
19483                         if test $need_rsaref = yes; then
19484
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE_RSAREF 1
19487 _ACEOF
19488
19489
19490                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19491                         else
19492                                 TLS_LIBS="-lssl -lcrypto"
19493                         fi
19494                 fi
19495                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19496 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19497 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19498   echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500
19501         cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507
19508 #ifdef HAVE_OPENSSL_SSL_H
19509 #include <openssl/ssl.h>
19510 #else
19511 #include <ssl.h>
19512 #endif
19513
19514 /* Require 0.9.7d+ */
19515 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19516         char *__ssl_compat = "0.9.7d";
19517 #endif
19518
19519 _ACEOF
19520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19521   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19522   ol_cv_ssl_crl_compat=yes
19523 else
19524   ol_cv_ssl_crl_compat=no
19525 fi
19526 rm -f conftest*
19527
19528 fi
19529 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19530 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19531
19532                 if test $ol_cv_ssl_crl_compat = no ; then
19533                         ol_link_ssl=no
19534                 else
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_OPENSSL_CRL 1
19538 _ACEOF
19539
19540                 fi
19541         fi
19542
19543 else
19544         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19545 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19546 fi
19547
19548 WITH_TLS=no
19549 if test $ol_link_tls = yes ; then
19550
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE_TLS 1
19553 _ACEOF
19554
19555         WITH_TLS=yes
19556
19557 elif test $ol_with_tls = auto ; then
19558         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19559 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19560         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19561 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19562
19563 elif test $ol_with_tls != no ; then
19564         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19565 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19566    { (exit 1); exit 1; }; }
19567 fi
19568
19569 if test $ol_enable_lmpasswd != no; then
19570         if test $ol_link_tls != yes ; then
19571                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19572 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19573    { (exit 1); exit 1; }; }
19574         fi
19575
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define SLAPD_LMHASH 1
19579 _ACEOF
19580
19581 fi
19582
19583 ol_link_threads=no
19584
19585 case $ol_with_threads in auto | yes | nt)
19586
19587
19588         echo "$as_me:$LINENO: checking for _beginthread" >&5
19589 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19590 if test "${ac_cv_func__beginthread+set}" = set; then
19591   echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593   cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19601 #define _beginthread innocuous__beginthread
19602
19603 /* System header to define __stub macros and hopefully few prototypes,
19604     which can conflict with char _beginthread (); below.
19605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19606     <limits.h> exists even on freestanding compilers.  */
19607
19608 #ifdef __STDC__
19609 # include <limits.h>
19610 #else
19611 # include <assert.h>
19612 #endif
19613
19614 #undef _beginthread
19615
19616 /* Override any gcc2 internal prototype to avoid an error.  */
19617 #ifdef __cplusplus
19618 extern "C"
19619 {
19620 #endif
19621 /* We use char because int might match the return type of a gcc2
19622    builtin and then its argument prototype would still apply.  */
19623 char _beginthread ();
19624 /* The GNU C library defines this for functions which it implements
19625     to always fail with ENOSYS.  Some functions are actually named
19626     something starting with __ and the normal name is an alias.  */
19627 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19628 choke me
19629 #else
19630 char (*f) () = _beginthread;
19631 #endif
19632 #ifdef __cplusplus
19633 }
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639 return f != _beginthread;
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646   (eval $ac_link) 2>conftest.er1
19647   ac_status=$?
19648   grep -v '^ *+' conftest.er1 >conftest.err
19649   rm -f conftest.er1
19650   cat conftest.err >&5
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); } &&
19653          { ac_try='test -z "$ac_c_werror_flag"
19654                          || test ! -s conftest.err'
19655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656   (eval $ac_try) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; } &&
19660          { ac_try='test -s conftest$ac_exeext'
19661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662   (eval $ac_try) 2>&5
19663   ac_status=$?
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); }; }; then
19666   ac_cv_func__beginthread=yes
19667 else
19668   echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_cv_func__beginthread=no
19672 fi
19673 rm -f conftest.err conftest.$ac_objext \
19674       conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19677 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19678
19679
19680         if test $ac_cv_func__beginthread = yes ; then
19681
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_NT_THREADS 1
19684 _ACEOF
19685
19686                 ol_cv_nt_threads=yes
19687         fi
19688
19689
19690         if test "$ol_cv_nt_threads" = yes ; then
19691                 ol_link_threads=nt
19692                 ol_with_threads=found
19693                 ol_with_yielding_select=yes
19694
19695
19696 cat >>confdefs.h <<\_ACEOF
19697 #define HAVE_NT_SERVICE_MANAGER 1
19698 _ACEOF
19699
19700
19701 cat >>confdefs.h <<\_ACEOF
19702 #define HAVE_NT_EVENT_LOG 1
19703 _ACEOF
19704
19705         fi
19706
19707         if test $ol_with_threads = nt ; then
19708                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19709 echo "$as_me: error: could not locate NT Threads" >&2;}
19710    { (exit 1); exit 1; }; }
19711         fi
19712         ;;
19713 esac
19714
19715 case $ol_with_threads in auto | yes | posix)
19716
19717
19718 for ac_header in pthread.h
19719 do
19720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19722   echo "$as_me:$LINENO: checking for $ac_header" >&5
19723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 fi
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729 else
19730   # Is the header compilable?
19731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h.  */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h.  */
19739 $ac_includes_default
19740 #include <$ac_header>
19741 _ACEOF
19742 rm -f conftest.$ac_objext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19744   (eval $ac_compile) 2>conftest.er1
19745   ac_status=$?
19746   grep -v '^ *+' conftest.er1 >conftest.err
19747   rm -f conftest.er1
19748   cat conftest.err >&5
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); } &&
19751          { ac_try='test -z "$ac_c_werror_flag"
19752                          || test ! -s conftest.err'
19753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754   (eval $ac_try) 2>&5
19755   ac_status=$?
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); }; } &&
19758          { ac_try='test -s conftest.$ac_objext'
19759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760   (eval $ac_try) 2>&5
19761   ac_status=$?
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; }; then
19764   ac_header_compiler=yes
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769 ac_header_compiler=no
19770 fi
19771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773 echo "${ECHO_T}$ac_header_compiler" >&6
19774
19775 # Is the header present?
19776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 #include <$ac_header>
19785 _ACEOF
19786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19788   ac_status=$?
19789   grep -v '^ *+' conftest.er1 >conftest.err
19790   rm -f conftest.er1
19791   cat conftest.err >&5
19792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793   (exit $ac_status); } >/dev/null; then
19794   if test -s conftest.err; then
19795     ac_cpp_err=$ac_c_preproc_warn_flag
19796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19797   else
19798     ac_cpp_err=
19799   fi
19800 else
19801   ac_cpp_err=yes
19802 fi
19803 if test -z "$ac_cpp_err"; then
19804   ac_header_preproc=yes
19805 else
19806   echo "$as_me: failed program was:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19808
19809   ac_header_preproc=no
19810 fi
19811 rm -f conftest.err conftest.$ac_ext
19812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813 echo "${ECHO_T}$ac_header_preproc" >&6
19814
19815 # So?  What about this header?
19816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19817   yes:no: )
19818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19822     ac_header_preproc=yes
19823     ;;
19824   no:yes:* )
19825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19837     (
19838       cat <<\_ASBOX
19839 ## ------------------------------------------ ##
19840 ## Report this to the AC_PACKAGE_NAME lists.  ##
19841 ## ------------------------------------------ ##
19842 _ASBOX
19843     ) |
19844       sed "s/^/$as_me: WARNING:     /" >&2
19845     ;;
19846 esac
19847 echo "$as_me:$LINENO: checking for $ac_header" >&5
19848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19850   echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852   eval "$as_ac_Header=\$ac_header_preproc"
19853 fi
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19856
19857 fi
19858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19859   cat >>confdefs.h <<_ACEOF
19860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19861 _ACEOF
19862
19863 fi
19864
19865 done
19866
19867
19868         if test $ac_cv_header_pthread_h = yes ; then
19869                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19870 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19871 if test "${ol_cv_pthread_version+set}" = set; then
19872   echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874
19875         cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h.  */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h.  */
19881
19882 #               include <pthread.h>
19883
19884 int
19885 main ()
19886 {
19887
19888                 int i = PTHREAD_CREATE_JOINABLE;
19889
19890   ;
19891   return 0;
19892 }
19893 _ACEOF
19894 rm -f conftest.$ac_objext
19895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19896   (eval $ac_compile) 2>conftest.er1
19897   ac_status=$?
19898   grep -v '^ *+' conftest.er1 >conftest.err
19899   rm -f conftest.er1
19900   cat conftest.err >&5
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } &&
19903          { ac_try='test -z "$ac_c_werror_flag"
19904                          || test ! -s conftest.err'
19905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19906   (eval $ac_try) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); }; } &&
19910          { ac_try='test -s conftest.$ac_objext'
19911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912   (eval $ac_try) 2>&5
19913   ac_status=$?
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); }; }; then
19916
19917         cat >conftest.$ac_ext <<_ACEOF
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923 #include <pthread.h>
19924
19925 _ACEOF
19926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19927   $EGREP "pthread_detach" >/dev/null 2>&1; then
19928   ol_cv_pthread_version=10
19929 else
19930   ol_cv_pthread_version=8
19931 fi
19932 rm -f conftest*
19933
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938
19939         cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h.  */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h.  */
19945
19946 #               include <pthread.h>
19947 #               ifdef PTHREAD_CREATE_UNDETACHED
19948                 draft7
19949 #               endif
19950
19951 _ACEOF
19952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953   $EGREP "draft7" >/dev/null 2>&1; then
19954   ol_cv_pthread_version=7
19955 else
19956
19957         cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <pthread.h>
19964
19965 _ACEOF
19966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19967   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19968   ol_cv_pthread_version=6
19969 else
19970
19971         cat >conftest.$ac_ext <<_ACEOF
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977
19978 #               include <pthread.h>
19979 #ifdef          PTHREAD_MUTEX_INITIALIZER
19980                 draft5
19981 #endif
19982
19983 _ACEOF
19984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19985   $EGREP "draft5" >/dev/null 2>&1; then
19986   ol_cv_pthread_version=5
19987 else
19988   ol_cv_pthread_version=4
19989 fi
19990 rm -f conftest*
19991
19992 fi
19993 rm -f conftest*
19994
19995 fi
19996 rm -f conftest*
19997
19998 fi
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20000
20001 fi
20002 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20003 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20004
20005
20006                 if test $ol_cv_pthread_version != 0 ; then
20007
20008 cat >>confdefs.h <<_ACEOF
20009 #define HAVE_PTHREADS $ol_cv_pthread_version
20010 _ACEOF
20011
20012                 else
20013                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20014 echo "$as_me: error: unknown pthread version" >&2;}
20015    { (exit 1); exit 1; }; }
20016                 fi
20017
20018                 # consider threads found
20019                 ol_with_threads=found
20020
20021
20022         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20023 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20024 if test "${ol_cv_header_linux_threads+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033 #include <pthread.h>
20034 _ACEOF
20035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20036   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20037   ol_cv_header_linux_threads=yes
20038 else
20039   ol_cv_header_linux_threads=no
20040 fi
20041 rm -f conftest*
20042
20043
20044 fi
20045 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20046 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20047         if test $ol_cv_header_linux_threads = yes; then
20048
20049 cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_LINUX_THREADS 1
20051 _ACEOF
20052
20053         fi
20054
20055
20056         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20057 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20058 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   cat >conftest.$ac_ext <<_ACEOF
20062 /* confdefs.h.  */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h.  */
20067 #include <pthread.h>
20068 #ifdef _POSIX_THREAD_IS_GNU_PTH
20069         __gnu_pth__;
20070 #endif
20071
20072 _ACEOF
20073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20074   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20075   ol_cv_header_gnu_pth_pthread_h=yes
20076 else
20077   ol_cv_header_gnu_pth_pthread_h=no
20078 fi
20079 rm -f conftest*
20080
20081
20082 fi
20083 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20084 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20085
20086
20087                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20088
20089 for ac_header in sched.h
20090 do
20091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20093   echo "$as_me:$LINENO: checking for $ac_header" >&5
20094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 fi
20098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20100 else
20101   # Is the header compilable?
20102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h.  */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h.  */
20110 $ac_includes_default
20111 #include <$ac_header>
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115   (eval $ac_compile) 2>conftest.er1
20116   ac_status=$?
20117   grep -v '^ *+' conftest.er1 >conftest.err
20118   rm -f conftest.er1
20119   cat conftest.err >&5
20120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121   (exit $ac_status); } &&
20122          { ac_try='test -z "$ac_c_werror_flag"
20123                          || test ! -s conftest.err'
20124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125   (eval $ac_try) 2>&5
20126   ac_status=$?
20127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128   (exit $ac_status); }; } &&
20129          { ac_try='test -s conftest.$ac_objext'
20130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131   (eval $ac_try) 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_header_compiler=yes
20136 else
20137   echo "$as_me: failed program was:" >&5
20138 sed 's/^/| /' conftest.$ac_ext >&5
20139
20140 ac_header_compiler=no
20141 fi
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20144 echo "${ECHO_T}$ac_header_compiler" >&6
20145
20146 # Is the header present?
20147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 #include <$ac_header>
20156 _ACEOF
20157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20159   ac_status=$?
20160   grep -v '^ *+' conftest.er1 >conftest.err
20161   rm -f conftest.er1
20162   cat conftest.err >&5
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } >/dev/null; then
20165   if test -s conftest.err; then
20166     ac_cpp_err=$ac_c_preproc_warn_flag
20167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20168   else
20169     ac_cpp_err=
20170   fi
20171 else
20172   ac_cpp_err=yes
20173 fi
20174 if test -z "$ac_cpp_err"; then
20175   ac_header_preproc=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180   ac_header_preproc=no
20181 fi
20182 rm -f conftest.err conftest.$ac_ext
20183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20184 echo "${ECHO_T}$ac_header_preproc" >&6
20185
20186 # So?  What about this header?
20187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20188   yes:no: )
20189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20193     ac_header_preproc=yes
20194     ;;
20195   no:yes:* )
20196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20208     (
20209       cat <<\_ASBOX
20210 ## ------------------------------------------ ##
20211 ## Report this to the AC_PACKAGE_NAME lists.  ##
20212 ## ------------------------------------------ ##
20213 _ASBOX
20214     ) |
20215       sed "s/^/$as_me: WARNING:     /" >&2
20216     ;;
20217 esac
20218 echo "$as_me:$LINENO: checking for $ac_header" >&5
20219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   eval "$as_ac_Header=\$ac_header_preproc"
20224 fi
20225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20227
20228 fi
20229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20230   cat >>confdefs.h <<_ACEOF
20231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20232 _ACEOF
20233
20234 fi
20235
20236 done
20237
20238                 fi
20239
20240
20241                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20242 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20243 if test "${ol_cv_pthread_create+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246
20247                         if test "$cross_compiling" = yes; then
20248   cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254
20255 /* pthread test headers */
20256 #include <pthread.h>
20257 #if HAVE_PTHREADS < 7
20258 #include <errno.h>
20259 #endif
20260 #ifndef NULL
20261 #define NULL (void*)0
20262 #endif
20263
20264 static void *task(p)
20265         void *p;
20266 {
20267         return (void *) (p == NULL);
20268 }
20269
20270 int
20271 main ()
20272 {
20273
20274         /* pthread test function */
20275 #ifndef PTHREAD_CREATE_DETACHED
20276 #define PTHREAD_CREATE_DETACHED 1
20277 #endif
20278         pthread_t t;
20279         int status;
20280         int detach = PTHREAD_CREATE_DETACHED;
20281
20282 #if HAVE_PTHREADS > 4
20283         /* Final pthreads */
20284         pthread_attr_t attr;
20285
20286         status = pthread_attr_init(&attr);
20287         if( status ) return status;
20288
20289 #if HAVE_PTHREADS < 7
20290         status = pthread_attr_setdetachstate(&attr, &detach);
20291         if( status < 0 ) status = errno;
20292 #else
20293         status = pthread_attr_setdetachstate(&attr, detach);
20294 #endif
20295         if( status ) return status;
20296         status = pthread_create( &t, &attr, task, NULL );
20297 #if HAVE_PTHREADS < 7
20298         if( status < 0 ) status = errno;
20299 #endif
20300         if( status ) return status;
20301 #else
20302         /* Draft 4 pthreads */
20303         status = pthread_create( &t, pthread_attr_default, task, NULL );
20304         if( status ) return errno;
20305
20306         /* give thread a chance to complete */
20307         /* it should remain joinable and hence detachable */
20308         sleep( 1 );
20309
20310         status = pthread_detach( &t );
20311         if( status ) return errno;
20312 #endif
20313
20314 #ifdef HAVE_LINUX_THREADS
20315         pthread_kill_other_threads_np();
20316 #endif
20317
20318         return 0;
20319
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326   (eval $ac_link) 2>conftest.er1
20327   ac_status=$?
20328   grep -v '^ *+' conftest.er1 >conftest.err
20329   rm -f conftest.er1
20330   cat conftest.err >&5
20331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332   (exit $ac_status); } &&
20333          { ac_try='test -z "$ac_c_werror_flag"
20334                          || test ! -s conftest.err'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; } &&
20340          { ac_try='test -s conftest$ac_exeext'
20341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342   (eval $ac_try) 2>&5
20343   ac_status=$?
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); }; }; then
20346   ol_cv_pthread_create=yes
20347 else
20348   echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20350
20351 ol_cv_pthread_create=no
20352 fi
20353 rm -f conftest.err conftest.$ac_objext \
20354       conftest$ac_exeext conftest.$ac_ext
20355 else
20356   cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362
20363 /* pthread test headers */
20364 #include <pthread.h>
20365 #if HAVE_PTHREADS < 7
20366 #include <errno.h>
20367 #endif
20368 #ifndef NULL
20369 #define NULL (void*)0
20370 #endif
20371
20372 static void *task(p)
20373         void *p;
20374 {
20375         return (void *) (p == NULL);
20376 }
20377
20378
20379 int main(argc, argv)
20380         int argc;
20381         char **argv;
20382 {
20383
20384         /* pthread test function */
20385 #ifndef PTHREAD_CREATE_DETACHED
20386 #define PTHREAD_CREATE_DETACHED 1
20387 #endif
20388         pthread_t t;
20389         int status;
20390         int detach = PTHREAD_CREATE_DETACHED;
20391
20392 #if HAVE_PTHREADS > 4
20393         /* Final pthreads */
20394         pthread_attr_t attr;
20395
20396         status = pthread_attr_init(&attr);
20397         if( status ) return status;
20398
20399 #if HAVE_PTHREADS < 7
20400         status = pthread_attr_setdetachstate(&attr, &detach);
20401         if( status < 0 ) status = errno;
20402 #else
20403         status = pthread_attr_setdetachstate(&attr, detach);
20404 #endif
20405         if( status ) return status;
20406         status = pthread_create( &t, &attr, task, NULL );
20407 #if HAVE_PTHREADS < 7
20408         if( status < 0 ) status = errno;
20409 #endif
20410         if( status ) return status;
20411 #else
20412         /* Draft 4 pthreads */
20413         status = pthread_create( &t, pthread_attr_default, task, NULL );
20414         if( status ) return errno;
20415
20416         /* give thread a chance to complete */
20417         /* it should remain joinable and hence detachable */
20418         sleep( 1 );
20419
20420         status = pthread_detach( &t );
20421         if( status ) return errno;
20422 #endif
20423
20424 #ifdef HAVE_LINUX_THREADS
20425         pthread_kill_other_threads_np();
20426 #endif
20427
20428         return 0;
20429
20430 }
20431
20432 _ACEOF
20433 rm -f conftest$ac_exeext
20434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435   (eval $ac_link) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   ol_cv_pthread_create=yes
20445 else
20446   echo "$as_me: program exited with status $ac_status" >&5
20447 echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ( exit $ac_status )
20451 ol_cv_pthread_create=no
20452 fi
20453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20454 fi
20455 fi
20456 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20457 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20458
20459                 if test $ol_cv_pthread_create != no ; then
20460                         ol_link_threads=posix
20461                         ol_link_pthreads=""
20462                 fi
20463
20464                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20465 if test "$ol_link_threads" = no ; then
20466         # try -kthread
20467         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20468 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20469 if test "${ol_cv_pthread_kthread+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472
20473                 # save the flags
20474                 ol_LIBS="$LIBS"
20475                 LIBS="-kthread $LIBS"
20476
20477                 if test "$cross_compiling" = yes; then
20478   cat >conftest.$ac_ext <<_ACEOF
20479 /* confdefs.h.  */
20480 _ACEOF
20481 cat confdefs.h >>conftest.$ac_ext
20482 cat >>conftest.$ac_ext <<_ACEOF
20483 /* end confdefs.h.  */
20484
20485 /* pthread test headers */
20486 #include <pthread.h>
20487 #if HAVE_PTHREADS < 7
20488 #include <errno.h>
20489 #endif
20490 #ifndef NULL
20491 #define NULL (void*)0
20492 #endif
20493
20494 static void *task(p)
20495         void *p;
20496 {
20497         return (void *) (p == NULL);
20498 }
20499
20500 int
20501 main ()
20502 {
20503
20504         /* pthread test function */
20505 #ifndef PTHREAD_CREATE_DETACHED
20506 #define PTHREAD_CREATE_DETACHED 1
20507 #endif
20508         pthread_t t;
20509         int status;
20510         int detach = PTHREAD_CREATE_DETACHED;
20511
20512 #if HAVE_PTHREADS > 4
20513         /* Final pthreads */
20514         pthread_attr_t attr;
20515
20516         status = pthread_attr_init(&attr);
20517         if( status ) return status;
20518
20519 #if HAVE_PTHREADS < 7
20520         status = pthread_attr_setdetachstate(&attr, &detach);
20521         if( status < 0 ) status = errno;
20522 #else
20523         status = pthread_attr_setdetachstate(&attr, detach);
20524 #endif
20525         if( status ) return status;
20526         status = pthread_create( &t, &attr, task, NULL );
20527 #if HAVE_PTHREADS < 7
20528         if( status < 0 ) status = errno;
20529 #endif
20530         if( status ) return status;
20531 #else
20532         /* Draft 4 pthreads */
20533         status = pthread_create( &t, pthread_attr_default, task, NULL );
20534         if( status ) return errno;
20535
20536         /* give thread a chance to complete */
20537         /* it should remain joinable and hence detachable */
20538         sleep( 1 );
20539
20540         status = pthread_detach( &t );
20541         if( status ) return errno;
20542 #endif
20543
20544 #ifdef HAVE_LINUX_THREADS
20545         pthread_kill_other_threads_np();
20546 #endif
20547
20548         return 0;
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20556   (eval $ac_link) 2>conftest.er1
20557   ac_status=$?
20558   grep -v '^ *+' conftest.er1 >conftest.err
20559   rm -f conftest.er1
20560   cat conftest.err >&5
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } &&
20563          { ac_try='test -z "$ac_c_werror_flag"
20564                          || test ! -s conftest.err'
20565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566   (eval $ac_try) 2>&5
20567   ac_status=$?
20568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569   (exit $ac_status); }; } &&
20570          { ac_try='test -s conftest$ac_exeext'
20571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572   (eval $ac_try) 2>&5
20573   ac_status=$?
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); }; }; then
20576   ol_cv_pthread_kthread=yes
20577 else
20578   echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581 ol_cv_pthread_kthread=no
20582 fi
20583 rm -f conftest.err conftest.$ac_objext \
20584       conftest$ac_exeext conftest.$ac_ext
20585 else
20586   cat >conftest.$ac_ext <<_ACEOF
20587 /* confdefs.h.  */
20588 _ACEOF
20589 cat confdefs.h >>conftest.$ac_ext
20590 cat >>conftest.$ac_ext <<_ACEOF
20591 /* end confdefs.h.  */
20592
20593 /* pthread test headers */
20594 #include <pthread.h>
20595 #if HAVE_PTHREADS < 7
20596 #include <errno.h>
20597 #endif
20598 #ifndef NULL
20599 #define NULL (void*)0
20600 #endif
20601
20602 static void *task(p)
20603         void *p;
20604 {
20605         return (void *) (p == NULL);
20606 }
20607
20608
20609 int main(argc, argv)
20610         int argc;
20611         char **argv;
20612 {
20613
20614         /* pthread test function */
20615 #ifndef PTHREAD_CREATE_DETACHED
20616 #define PTHREAD_CREATE_DETACHED 1
20617 #endif
20618         pthread_t t;
20619         int status;
20620         int detach = PTHREAD_CREATE_DETACHED;
20621
20622 #if HAVE_PTHREADS > 4
20623         /* Final pthreads */
20624         pthread_attr_t attr;
20625
20626         status = pthread_attr_init(&attr);
20627         if( status ) return status;
20628
20629 #if HAVE_PTHREADS < 7
20630         status = pthread_attr_setdetachstate(&attr, &detach);
20631         if( status < 0 ) status = errno;
20632 #else
20633         status = pthread_attr_setdetachstate(&attr, detach);
20634 #endif
20635         if( status ) return status;
20636         status = pthread_create( &t, &attr, task, NULL );
20637 #if HAVE_PTHREADS < 7
20638         if( status < 0 ) status = errno;
20639 #endif
20640         if( status ) return status;
20641 #else
20642         /* Draft 4 pthreads */
20643         status = pthread_create( &t, pthread_attr_default, task, NULL );
20644         if( status ) return errno;
20645
20646         /* give thread a chance to complete */
20647         /* it should remain joinable and hence detachable */
20648         sleep( 1 );
20649
20650         status = pthread_detach( &t );
20651         if( status ) return errno;
20652 #endif
20653
20654 #ifdef HAVE_LINUX_THREADS
20655         pthread_kill_other_threads_np();
20656 #endif
20657
20658         return 0;
20659
20660 }
20661
20662 _ACEOF
20663 rm -f conftest$ac_exeext
20664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665   (eval $ac_link) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670   (eval $ac_try) 2>&5
20671   ac_status=$?
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); }; }; then
20674   ol_cv_pthread_kthread=yes
20675 else
20676   echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ( exit $ac_status )
20681 ol_cv_pthread_kthread=no
20682 fi
20683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20684 fi
20685
20686                 # restore the LIBS
20687                 LIBS="$ol_LIBS"
20688
20689 fi
20690 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20691 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20692
20693         if test $ol_cv_pthread_kthread = yes ; then
20694                 ol_link_pthreads="-kthread"
20695                 ol_link_threads=posix
20696         fi
20697 fi
20698
20699                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20700 if test "$ol_link_threads" = no ; then
20701         # try -pthread
20702         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20703 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20704 if test "${ol_cv_pthread_pthread+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707
20708                 # save the flags
20709                 ol_LIBS="$LIBS"
20710                 LIBS="-pthread $LIBS"
20711
20712                 if test "$cross_compiling" = yes; then
20713   cat >conftest.$ac_ext <<_ACEOF
20714 /* confdefs.h.  */
20715 _ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h.  */
20719
20720 /* pthread test headers */
20721 #include <pthread.h>
20722 #if HAVE_PTHREADS < 7
20723 #include <errno.h>
20724 #endif
20725 #ifndef NULL
20726 #define NULL (void*)0
20727 #endif
20728
20729 static void *task(p)
20730         void *p;
20731 {
20732         return (void *) (p == NULL);
20733 }
20734
20735 int
20736 main ()
20737 {
20738
20739         /* pthread test function */
20740 #ifndef PTHREAD_CREATE_DETACHED
20741 #define PTHREAD_CREATE_DETACHED 1
20742 #endif
20743         pthread_t t;
20744         int status;
20745         int detach = PTHREAD_CREATE_DETACHED;
20746
20747 #if HAVE_PTHREADS > 4
20748         /* Final pthreads */
20749         pthread_attr_t attr;
20750
20751         status = pthread_attr_init(&attr);
20752         if( status ) return status;
20753
20754 #if HAVE_PTHREADS < 7
20755         status = pthread_attr_setdetachstate(&attr, &detach);
20756         if( status < 0 ) status = errno;
20757 #else
20758         status = pthread_attr_setdetachstate(&attr, detach);
20759 #endif
20760         if( status ) return status;
20761         status = pthread_create( &t, &attr, task, NULL );
20762 #if HAVE_PTHREADS < 7
20763         if( status < 0 ) status = errno;
20764 #endif
20765         if( status ) return status;
20766 #else
20767         /* Draft 4 pthreads */
20768         status = pthread_create( &t, pthread_attr_default, task, NULL );
20769         if( status ) return errno;
20770
20771         /* give thread a chance to complete */
20772         /* it should remain joinable and hence detachable */
20773         sleep( 1 );
20774
20775         status = pthread_detach( &t );
20776         if( status ) return errno;
20777 #endif
20778
20779 #ifdef HAVE_LINUX_THREADS
20780         pthread_kill_other_threads_np();
20781 #endif
20782
20783         return 0;
20784
20785   ;
20786   return 0;
20787 }
20788 _ACEOF
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20791   (eval $ac_link) 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } &&
20798          { ac_try='test -z "$ac_c_werror_flag"
20799                          || test ! -s conftest.err'
20800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801   (eval $ac_try) 2>&5
20802   ac_status=$?
20803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804   (exit $ac_status); }; } &&
20805          { ac_try='test -s conftest$ac_exeext'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   ol_cv_pthread_pthread=yes
20812 else
20813   echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20815
20816 ol_cv_pthread_pthread=no
20817 fi
20818 rm -f conftest.err conftest.$ac_objext \
20819       conftest$ac_exeext conftest.$ac_ext
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827
20828 /* pthread test headers */
20829 #include <pthread.h>
20830 #if HAVE_PTHREADS < 7
20831 #include <errno.h>
20832 #endif
20833 #ifndef NULL
20834 #define NULL (void*)0
20835 #endif
20836
20837 static void *task(p)
20838         void *p;
20839 {
20840         return (void *) (p == NULL);
20841 }
20842
20843
20844 int main(argc, argv)
20845         int argc;
20846         char **argv;
20847 {
20848
20849         /* pthread test function */
20850 #ifndef PTHREAD_CREATE_DETACHED
20851 #define PTHREAD_CREATE_DETACHED 1
20852 #endif
20853         pthread_t t;
20854         int status;
20855         int detach = PTHREAD_CREATE_DETACHED;
20856
20857 #if HAVE_PTHREADS > 4
20858         /* Final pthreads */
20859         pthread_attr_t attr;
20860
20861         status = pthread_attr_init(&attr);
20862         if( status ) return status;
20863
20864 #if HAVE_PTHREADS < 7
20865         status = pthread_attr_setdetachstate(&attr, &detach);
20866         if( status < 0 ) status = errno;
20867 #else
20868         status = pthread_attr_setdetachstate(&attr, detach);
20869 #endif
20870         if( status ) return status;
20871         status = pthread_create( &t, &attr, task, NULL );
20872 #if HAVE_PTHREADS < 7
20873         if( status < 0 ) status = errno;
20874 #endif
20875         if( status ) return status;
20876 #else
20877         /* Draft 4 pthreads */
20878         status = pthread_create( &t, pthread_attr_default, task, NULL );
20879         if( status ) return errno;
20880
20881         /* give thread a chance to complete */
20882         /* it should remain joinable and hence detachable */
20883         sleep( 1 );
20884
20885         status = pthread_detach( &t );
20886         if( status ) return errno;
20887 #endif
20888
20889 #ifdef HAVE_LINUX_THREADS
20890         pthread_kill_other_threads_np();
20891 #endif
20892
20893         return 0;
20894
20895 }
20896
20897 _ACEOF
20898 rm -f conftest$ac_exeext
20899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20900   (eval $ac_link) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905   (eval $ac_try) 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ol_cv_pthread_pthread=yes
20910 else
20911   echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915 ( exit $ac_status )
20916 ol_cv_pthread_pthread=no
20917 fi
20918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20919 fi
20920
20921                 # restore the LIBS
20922                 LIBS="$ol_LIBS"
20923
20924 fi
20925 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20926 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20927
20928         if test $ol_cv_pthread_pthread = yes ; then
20929                 ol_link_pthreads="-pthread"
20930                 ol_link_threads=posix
20931         fi
20932 fi
20933
20934                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20935 if test "$ol_link_threads" = no ; then
20936         # try -pthreads
20937         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20938 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20939 if test "${ol_cv_pthread_pthreads+set}" = set; then
20940   echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942
20943                 # save the flags
20944                 ol_LIBS="$LIBS"
20945                 LIBS="-pthreads $LIBS"
20946
20947                 if test "$cross_compiling" = yes; then
20948   cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954
20955 /* pthread test headers */
20956 #include <pthread.h>
20957 #if HAVE_PTHREADS < 7
20958 #include <errno.h>
20959 #endif
20960 #ifndef NULL
20961 #define NULL (void*)0
20962 #endif
20963
20964 static void *task(p)
20965         void *p;
20966 {
20967         return (void *) (p == NULL);
20968 }
20969
20970 int
20971 main ()
20972 {
20973
20974         /* pthread test function */
20975 #ifndef PTHREAD_CREATE_DETACHED
20976 #define PTHREAD_CREATE_DETACHED 1
20977 #endif
20978         pthread_t t;
20979         int status;
20980         int detach = PTHREAD_CREATE_DETACHED;
20981
20982 #if HAVE_PTHREADS > 4
20983         /* Final pthreads */
20984         pthread_attr_t attr;
20985
20986         status = pthread_attr_init(&attr);
20987         if( status ) return status;
20988
20989 #if HAVE_PTHREADS < 7
20990         status = pthread_attr_setdetachstate(&attr, &detach);
20991         if( status < 0 ) status = errno;
20992 #else
20993         status = pthread_attr_setdetachstate(&attr, detach);
20994 #endif
20995         if( status ) return status;
20996         status = pthread_create( &t, &attr, task, NULL );
20997 #if HAVE_PTHREADS < 7
20998         if( status < 0 ) status = errno;
20999 #endif
21000         if( status ) return status;
21001 #else
21002         /* Draft 4 pthreads */
21003         status = pthread_create( &t, pthread_attr_default, task, NULL );
21004         if( status ) return errno;
21005
21006         /* give thread a chance to complete */
21007         /* it should remain joinable and hence detachable */
21008         sleep( 1 );
21009
21010         status = pthread_detach( &t );
21011         if( status ) return errno;
21012 #endif
21013
21014 #ifdef HAVE_LINUX_THREADS
21015         pthread_kill_other_threads_np();
21016 #endif
21017
21018         return 0;
21019
21020   ;
21021   return 0;
21022 }
21023 _ACEOF
21024 rm -f conftest.$ac_objext conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026   (eval $ac_link) 2>conftest.er1
21027   ac_status=$?
21028   grep -v '^ *+' conftest.er1 >conftest.err
21029   rm -f conftest.er1
21030   cat conftest.err >&5
21031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032   (exit $ac_status); } &&
21033          { ac_try='test -z "$ac_c_werror_flag"
21034                          || test ! -s conftest.err'
21035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036   (eval $ac_try) 2>&5
21037   ac_status=$?
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); }; } &&
21040          { ac_try='test -s conftest$ac_exeext'
21041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042   (eval $ac_try) 2>&5
21043   ac_status=$?
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); }; }; then
21046   ol_cv_pthread_pthreads=yes
21047 else
21048   echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21050
21051 ol_cv_pthread_pthreads=no
21052 fi
21053 rm -f conftest.err conftest.$ac_objext \
21054       conftest$ac_exeext conftest.$ac_ext
21055 else
21056   cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h.  */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h.  */
21062
21063 /* pthread test headers */
21064 #include <pthread.h>
21065 #if HAVE_PTHREADS < 7
21066 #include <errno.h>
21067 #endif
21068 #ifndef NULL
21069 #define NULL (void*)0
21070 #endif
21071
21072 static void *task(p)
21073         void *p;
21074 {
21075         return (void *) (p == NULL);
21076 }
21077
21078
21079 int main(argc, argv)
21080         int argc;
21081         char **argv;
21082 {
21083
21084         /* pthread test function */
21085 #ifndef PTHREAD_CREATE_DETACHED
21086 #define PTHREAD_CREATE_DETACHED 1
21087 #endif
21088         pthread_t t;
21089         int status;
21090         int detach = PTHREAD_CREATE_DETACHED;
21091
21092 #if HAVE_PTHREADS > 4
21093         /* Final pthreads */
21094         pthread_attr_t attr;
21095
21096         status = pthread_attr_init(&attr);
21097         if( status ) return status;
21098
21099 #if HAVE_PTHREADS < 7
21100         status = pthread_attr_setdetachstate(&attr, &detach);
21101         if( status < 0 ) status = errno;
21102 #else
21103         status = pthread_attr_setdetachstate(&attr, detach);
21104 #endif
21105         if( status ) return status;
21106         status = pthread_create( &t, &attr, task, NULL );
21107 #if HAVE_PTHREADS < 7
21108         if( status < 0 ) status = errno;
21109 #endif
21110         if( status ) return status;
21111 #else
21112         /* Draft 4 pthreads */
21113         status = pthread_create( &t, pthread_attr_default, task, NULL );
21114         if( status ) return errno;
21115
21116         /* give thread a chance to complete */
21117         /* it should remain joinable and hence detachable */
21118         sleep( 1 );
21119
21120         status = pthread_detach( &t );
21121         if( status ) return errno;
21122 #endif
21123
21124 #ifdef HAVE_LINUX_THREADS
21125         pthread_kill_other_threads_np();
21126 #endif
21127
21128         return 0;
21129
21130 }
21131
21132 _ACEOF
21133 rm -f conftest$ac_exeext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21135   (eval $ac_link) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140   (eval $ac_try) 2>&5
21141   ac_status=$?
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); }; }; then
21144   ol_cv_pthread_pthreads=yes
21145 else
21146   echo "$as_me: program exited with status $ac_status" >&5
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150 ( exit $ac_status )
21151 ol_cv_pthread_pthreads=no
21152 fi
21153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21154 fi
21155
21156                 # restore the LIBS
21157                 LIBS="$ol_LIBS"
21158
21159 fi
21160 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21161 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21162
21163         if test $ol_cv_pthread_pthreads = yes ; then
21164                 ol_link_pthreads="-pthreads"
21165                 ol_link_threads=posix
21166         fi
21167 fi
21168
21169                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21170 if test "$ol_link_threads" = no ; then
21171         # try -mthreads
21172         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21173 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21174 if test "${ol_cv_pthread_mthreads+set}" = set; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 else
21177
21178                 # save the flags
21179                 ol_LIBS="$LIBS"
21180                 LIBS="-mthreads $LIBS"
21181
21182                 if test "$cross_compiling" = yes; then
21183   cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189
21190 /* pthread test headers */
21191 #include <pthread.h>
21192 #if HAVE_PTHREADS < 7
21193 #include <errno.h>
21194 #endif
21195 #ifndef NULL
21196 #define NULL (void*)0
21197 #endif
21198
21199 static void *task(p)
21200         void *p;
21201 {
21202         return (void *) (p == NULL);
21203 }
21204
21205 int
21206 main ()
21207 {
21208
21209         /* pthread test function */
21210 #ifndef PTHREAD_CREATE_DETACHED
21211 #define PTHREAD_CREATE_DETACHED 1
21212 #endif
21213         pthread_t t;
21214         int status;
21215         int detach = PTHREAD_CREATE_DETACHED;
21216
21217 #if HAVE_PTHREADS > 4
21218         /* Final pthreads */
21219         pthread_attr_t attr;
21220
21221         status = pthread_attr_init(&attr);
21222         if( status ) return status;
21223
21224 #if HAVE_PTHREADS < 7
21225         status = pthread_attr_setdetachstate(&attr, &detach);
21226         if( status < 0 ) status = errno;
21227 #else
21228         status = pthread_attr_setdetachstate(&attr, detach);
21229 #endif
21230         if( status ) return status;
21231         status = pthread_create( &t, &attr, task, NULL );
21232 #if HAVE_PTHREADS < 7
21233         if( status < 0 ) status = errno;
21234 #endif
21235         if( status ) return status;
21236 #else
21237         /* Draft 4 pthreads */
21238         status = pthread_create( &t, pthread_attr_default, task, NULL );
21239         if( status ) return errno;
21240
21241         /* give thread a chance to complete */
21242         /* it should remain joinable and hence detachable */
21243         sleep( 1 );
21244
21245         status = pthread_detach( &t );
21246         if( status ) return errno;
21247 #endif
21248
21249 #ifdef HAVE_LINUX_THREADS
21250         pthread_kill_other_threads_np();
21251 #endif
21252
21253         return 0;
21254
21255   ;
21256   return 0;
21257 }
21258 _ACEOF
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261   (eval $ac_link) 2>conftest.er1
21262   ac_status=$?
21263   grep -v '^ *+' conftest.er1 >conftest.err
21264   rm -f conftest.er1
21265   cat conftest.err >&5
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); } &&
21268          { ac_try='test -z "$ac_c_werror_flag"
21269                          || test ! -s conftest.err'
21270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271   (eval $ac_try) 2>&5
21272   ac_status=$?
21273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274   (exit $ac_status); }; } &&
21275          { ac_try='test -s conftest$ac_exeext'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ol_cv_pthread_mthreads=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ol_cv_pthread_mthreads=no
21287 fi
21288 rm -f conftest.err conftest.$ac_objext \
21289       conftest$ac_exeext conftest.$ac_ext
21290 else
21291   cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297
21298 /* pthread test headers */
21299 #include <pthread.h>
21300 #if HAVE_PTHREADS < 7
21301 #include <errno.h>
21302 #endif
21303 #ifndef NULL
21304 #define NULL (void*)0
21305 #endif
21306
21307 static void *task(p)
21308         void *p;
21309 {
21310         return (void *) (p == NULL);
21311 }
21312
21313
21314 int main(argc, argv)
21315         int argc;
21316         char **argv;
21317 {
21318
21319         /* pthread test function */
21320 #ifndef PTHREAD_CREATE_DETACHED
21321 #define PTHREAD_CREATE_DETACHED 1
21322 #endif
21323         pthread_t t;
21324         int status;
21325         int detach = PTHREAD_CREATE_DETACHED;
21326
21327 #if HAVE_PTHREADS > 4
21328         /* Final pthreads */
21329         pthread_attr_t attr;
21330
21331         status = pthread_attr_init(&attr);
21332         if( status ) return status;
21333
21334 #if HAVE_PTHREADS < 7
21335         status = pthread_attr_setdetachstate(&attr, &detach);
21336         if( status < 0 ) status = errno;
21337 #else
21338         status = pthread_attr_setdetachstate(&attr, detach);
21339 #endif
21340         if( status ) return status;
21341         status = pthread_create( &t, &attr, task, NULL );
21342 #if HAVE_PTHREADS < 7
21343         if( status < 0 ) status = errno;
21344 #endif
21345         if( status ) return status;
21346 #else
21347         /* Draft 4 pthreads */
21348         status = pthread_create( &t, pthread_attr_default, task, NULL );
21349         if( status ) return errno;
21350
21351         /* give thread a chance to complete */
21352         /* it should remain joinable and hence detachable */
21353         sleep( 1 );
21354
21355         status = pthread_detach( &t );
21356         if( status ) return errno;
21357 #endif
21358
21359 #ifdef HAVE_LINUX_THREADS
21360         pthread_kill_other_threads_np();
21361 #endif
21362
21363         return 0;
21364
21365 }
21366
21367 _ACEOF
21368 rm -f conftest$ac_exeext
21369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21370   (eval $ac_link) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; }; then
21379   ol_cv_pthread_mthreads=yes
21380 else
21381   echo "$as_me: program exited with status $ac_status" >&5
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 ( exit $ac_status )
21386 ol_cv_pthread_mthreads=no
21387 fi
21388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21389 fi
21390
21391                 # restore the LIBS
21392                 LIBS="$ol_LIBS"
21393
21394 fi
21395 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21396 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21397
21398         if test $ol_cv_pthread_mthreads = yes ; then
21399                 ol_link_pthreads="-mthreads"
21400                 ol_link_threads=posix
21401         fi
21402 fi
21403
21404                 # Pthread try link: -thread (ol_cv_pthread_thread)
21405 if test "$ol_link_threads" = no ; then
21406         # try -thread
21407         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21408 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21409 if test "${ol_cv_pthread_thread+set}" = set; then
21410   echo $ECHO_N "(cached) $ECHO_C" >&6
21411 else
21412
21413                 # save the flags
21414                 ol_LIBS="$LIBS"
21415                 LIBS="-thread $LIBS"
21416
21417                 if test "$cross_compiling" = yes; then
21418   cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h.  */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h.  */
21424
21425 /* pthread test headers */
21426 #include <pthread.h>
21427 #if HAVE_PTHREADS < 7
21428 #include <errno.h>
21429 #endif
21430 #ifndef NULL
21431 #define NULL (void*)0
21432 #endif
21433
21434 static void *task(p)
21435         void *p;
21436 {
21437         return (void *) (p == NULL);
21438 }
21439
21440 int
21441 main ()
21442 {
21443
21444         /* pthread test function */
21445 #ifndef PTHREAD_CREATE_DETACHED
21446 #define PTHREAD_CREATE_DETACHED 1
21447 #endif
21448         pthread_t t;
21449         int status;
21450         int detach = PTHREAD_CREATE_DETACHED;
21451
21452 #if HAVE_PTHREADS > 4
21453         /* Final pthreads */
21454         pthread_attr_t attr;
21455
21456         status = pthread_attr_init(&attr);
21457         if( status ) return status;
21458
21459 #if HAVE_PTHREADS < 7
21460         status = pthread_attr_setdetachstate(&attr, &detach);
21461         if( status < 0 ) status = errno;
21462 #else
21463         status = pthread_attr_setdetachstate(&attr, detach);
21464 #endif
21465         if( status ) return status;
21466         status = pthread_create( &t, &attr, task, NULL );
21467 #if HAVE_PTHREADS < 7
21468         if( status < 0 ) status = errno;
21469 #endif
21470         if( status ) return status;
21471 #else
21472         /* Draft 4 pthreads */
21473         status = pthread_create( &t, pthread_attr_default, task, NULL );
21474         if( status ) return errno;
21475
21476         /* give thread a chance to complete */
21477         /* it should remain joinable and hence detachable */
21478         sleep( 1 );
21479
21480         status = pthread_detach( &t );
21481         if( status ) return errno;
21482 #endif
21483
21484 #ifdef HAVE_LINUX_THREADS
21485         pthread_kill_other_threads_np();
21486 #endif
21487
21488         return 0;
21489
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21496   (eval $ac_link) 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } &&
21503          { ac_try='test -z "$ac_c_werror_flag"
21504                          || test ! -s conftest.err'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; } &&
21510          { ac_try='test -s conftest$ac_exeext'
21511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512   (eval $ac_try) 2>&5
21513   ac_status=$?
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); }; }; then
21516   ol_cv_pthread_thread=yes
21517 else
21518   echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ol_cv_pthread_thread=no
21522 fi
21523 rm -f conftest.err conftest.$ac_objext \
21524       conftest$ac_exeext conftest.$ac_ext
21525 else
21526   cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h.  */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h.  */
21532
21533 /* pthread test headers */
21534 #include <pthread.h>
21535 #if HAVE_PTHREADS < 7
21536 #include <errno.h>
21537 #endif
21538 #ifndef NULL
21539 #define NULL (void*)0
21540 #endif
21541
21542 static void *task(p)
21543         void *p;
21544 {
21545         return (void *) (p == NULL);
21546 }
21547
21548
21549 int main(argc, argv)
21550         int argc;
21551         char **argv;
21552 {
21553
21554         /* pthread test function */
21555 #ifndef PTHREAD_CREATE_DETACHED
21556 #define PTHREAD_CREATE_DETACHED 1
21557 #endif
21558         pthread_t t;
21559         int status;
21560         int detach = PTHREAD_CREATE_DETACHED;
21561
21562 #if HAVE_PTHREADS > 4
21563         /* Final pthreads */
21564         pthread_attr_t attr;
21565
21566         status = pthread_attr_init(&attr);
21567         if( status ) return status;
21568
21569 #if HAVE_PTHREADS < 7
21570         status = pthread_attr_setdetachstate(&attr, &detach);
21571         if( status < 0 ) status = errno;
21572 #else
21573         status = pthread_attr_setdetachstate(&attr, detach);
21574 #endif
21575         if( status ) return status;
21576         status = pthread_create( &t, &attr, task, NULL );
21577 #if HAVE_PTHREADS < 7
21578         if( status < 0 ) status = errno;
21579 #endif
21580         if( status ) return status;
21581 #else
21582         /* Draft 4 pthreads */
21583         status = pthread_create( &t, pthread_attr_default, task, NULL );
21584         if( status ) return errno;
21585
21586         /* give thread a chance to complete */
21587         /* it should remain joinable and hence detachable */
21588         sleep( 1 );
21589
21590         status = pthread_detach( &t );
21591         if( status ) return errno;
21592 #endif
21593
21594 #ifdef HAVE_LINUX_THREADS
21595         pthread_kill_other_threads_np();
21596 #endif
21597
21598         return 0;
21599
21600 }
21601
21602 _ACEOF
21603 rm -f conftest$ac_exeext
21604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21605   (eval $ac_link) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610   (eval $ac_try) 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; }; then
21614   ol_cv_pthread_thread=yes
21615 else
21616   echo "$as_me: program exited with status $ac_status" >&5
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 ( exit $ac_status )
21621 ol_cv_pthread_thread=no
21622 fi
21623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21624 fi
21625
21626                 # restore the LIBS
21627                 LIBS="$ol_LIBS"
21628
21629 fi
21630 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21631 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21632
21633         if test $ol_cv_pthread_thread = yes ; then
21634                 ol_link_pthreads="-thread"
21635                 ol_link_threads=posix
21636         fi
21637 fi
21638
21639
21640                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21641 if test "$ol_link_threads" = no ; then
21642         # try -lpthread -lmach -lexc -lc_r
21643         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21644 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21645 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21646   echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648
21649                 # save the flags
21650                 ol_LIBS="$LIBS"
21651                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21652
21653                 if test "$cross_compiling" = yes; then
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660
21661 /* pthread test headers */
21662 #include <pthread.h>
21663 #if HAVE_PTHREADS < 7
21664 #include <errno.h>
21665 #endif
21666 #ifndef NULL
21667 #define NULL (void*)0
21668 #endif
21669
21670 static void *task(p)
21671         void *p;
21672 {
21673         return (void *) (p == NULL);
21674 }
21675
21676 int
21677 main ()
21678 {
21679
21680         /* pthread test function */
21681 #ifndef PTHREAD_CREATE_DETACHED
21682 #define PTHREAD_CREATE_DETACHED 1
21683 #endif
21684         pthread_t t;
21685         int status;
21686         int detach = PTHREAD_CREATE_DETACHED;
21687
21688 #if HAVE_PTHREADS > 4
21689         /* Final pthreads */
21690         pthread_attr_t attr;
21691
21692         status = pthread_attr_init(&attr);
21693         if( status ) return status;
21694
21695 #if HAVE_PTHREADS < 7
21696         status = pthread_attr_setdetachstate(&attr, &detach);
21697         if( status < 0 ) status = errno;
21698 #else
21699         status = pthread_attr_setdetachstate(&attr, detach);
21700 #endif
21701         if( status ) return status;
21702         status = pthread_create( &t, &attr, task, NULL );
21703 #if HAVE_PTHREADS < 7
21704         if( status < 0 ) status = errno;
21705 #endif
21706         if( status ) return status;
21707 #else
21708         /* Draft 4 pthreads */
21709         status = pthread_create( &t, pthread_attr_default, task, NULL );
21710         if( status ) return errno;
21711
21712         /* give thread a chance to complete */
21713         /* it should remain joinable and hence detachable */
21714         sleep( 1 );
21715
21716         status = pthread_detach( &t );
21717         if( status ) return errno;
21718 #endif
21719
21720 #ifdef HAVE_LINUX_THREADS
21721         pthread_kill_other_threads_np();
21722 #endif
21723
21724         return 0;
21725
21726   ;
21727   return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21732   (eval $ac_link) 2>conftest.er1
21733   ac_status=$?
21734   grep -v '^ *+' conftest.er1 >conftest.err
21735   rm -f conftest.er1
21736   cat conftest.err >&5
21737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738   (exit $ac_status); } &&
21739          { ac_try='test -z "$ac_c_werror_flag"
21740                          || test ! -s conftest.err'
21741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742   (eval $ac_try) 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); }; } &&
21746          { ac_try='test -s conftest$ac_exeext'
21747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748   (eval $ac_try) 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); }; }; then
21752   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21758 fi
21759 rm -f conftest.err conftest.$ac_objext \
21760       conftest$ac_exeext conftest.$ac_ext
21761 else
21762   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768
21769 /* pthread test headers */
21770 #include <pthread.h>
21771 #if HAVE_PTHREADS < 7
21772 #include <errno.h>
21773 #endif
21774 #ifndef NULL
21775 #define NULL (void*)0
21776 #endif
21777
21778 static void *task(p)
21779         void *p;
21780 {
21781         return (void *) (p == NULL);
21782 }
21783
21784
21785 int main(argc, argv)
21786         int argc;
21787         char **argv;
21788 {
21789
21790         /* pthread test function */
21791 #ifndef PTHREAD_CREATE_DETACHED
21792 #define PTHREAD_CREATE_DETACHED 1
21793 #endif
21794         pthread_t t;
21795         int status;
21796         int detach = PTHREAD_CREATE_DETACHED;
21797
21798 #if HAVE_PTHREADS > 4
21799         /* Final pthreads */
21800         pthread_attr_t attr;
21801
21802         status = pthread_attr_init(&attr);
21803         if( status ) return status;
21804
21805 #if HAVE_PTHREADS < 7
21806         status = pthread_attr_setdetachstate(&attr, &detach);
21807         if( status < 0 ) status = errno;
21808 #else
21809         status = pthread_attr_setdetachstate(&attr, detach);
21810 #endif
21811         if( status ) return status;
21812         status = pthread_create( &t, &attr, task, NULL );
21813 #if HAVE_PTHREADS < 7
21814         if( status < 0 ) status = errno;
21815 #endif
21816         if( status ) return status;
21817 #else
21818         /* Draft 4 pthreads */
21819         status = pthread_create( &t, pthread_attr_default, task, NULL );
21820         if( status ) return errno;
21821
21822         /* give thread a chance to complete */
21823         /* it should remain joinable and hence detachable */
21824         sleep( 1 );
21825
21826         status = pthread_detach( &t );
21827         if( status ) return errno;
21828 #endif
21829
21830 #ifdef HAVE_LINUX_THREADS
21831         pthread_kill_other_threads_np();
21832 #endif
21833
21834         return 0;
21835
21836 }
21837
21838 _ACEOF
21839 rm -f conftest$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841   (eval $ac_link) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846   (eval $ac_try) 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21851 else
21852   echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ( exit $ac_status )
21857 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21858 fi
21859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21860 fi
21861
21862                 # restore the LIBS
21863                 LIBS="$ol_LIBS"
21864
21865 fi
21866 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21867 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21868
21869         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21870                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21871                 ol_link_threads=posix
21872         fi
21873 fi
21874
21875                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21876 if test "$ol_link_threads" = no ; then
21877         # try -lpthread -lmach -lexc
21878         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21879 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21880 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21881   echo $ECHO_N "(cached) $ECHO_C" >&6
21882 else
21883
21884                 # save the flags
21885                 ol_LIBS="$LIBS"
21886                 LIBS="-lpthread -lmach -lexc $LIBS"
21887
21888                 if test "$cross_compiling" = yes; then
21889   cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895
21896 /* pthread test headers */
21897 #include <pthread.h>
21898 #if HAVE_PTHREADS < 7
21899 #include <errno.h>
21900 #endif
21901 #ifndef NULL
21902 #define NULL (void*)0
21903 #endif
21904
21905 static void *task(p)
21906         void *p;
21907 {
21908         return (void *) (p == NULL);
21909 }
21910
21911 int
21912 main ()
21913 {
21914
21915         /* pthread test function */
21916 #ifndef PTHREAD_CREATE_DETACHED
21917 #define PTHREAD_CREATE_DETACHED 1
21918 #endif
21919         pthread_t t;
21920         int status;
21921         int detach = PTHREAD_CREATE_DETACHED;
21922
21923 #if HAVE_PTHREADS > 4
21924         /* Final pthreads */
21925         pthread_attr_t attr;
21926
21927         status = pthread_attr_init(&attr);
21928         if( status ) return status;
21929
21930 #if HAVE_PTHREADS < 7
21931         status = pthread_attr_setdetachstate(&attr, &detach);
21932         if( status < 0 ) status = errno;
21933 #else
21934         status = pthread_attr_setdetachstate(&attr, detach);
21935 #endif
21936         if( status ) return status;
21937         status = pthread_create( &t, &attr, task, NULL );
21938 #if HAVE_PTHREADS < 7
21939         if( status < 0 ) status = errno;
21940 #endif
21941         if( status ) return status;
21942 #else
21943         /* Draft 4 pthreads */
21944         status = pthread_create( &t, pthread_attr_default, task, NULL );
21945         if( status ) return errno;
21946
21947         /* give thread a chance to complete */
21948         /* it should remain joinable and hence detachable */
21949         sleep( 1 );
21950
21951         status = pthread_detach( &t );
21952         if( status ) return errno;
21953 #endif
21954
21955 #ifdef HAVE_LINUX_THREADS
21956         pthread_kill_other_threads_np();
21957 #endif
21958
21959         return 0;
21960
21961   ;
21962   return 0;
21963 }
21964 _ACEOF
21965 rm -f conftest.$ac_objext conftest$ac_exeext
21966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21967   (eval $ac_link) 2>conftest.er1
21968   ac_status=$?
21969   grep -v '^ *+' conftest.er1 >conftest.err
21970   rm -f conftest.er1
21971   cat conftest.err >&5
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); } &&
21974          { ac_try='test -z "$ac_c_werror_flag"
21975                          || test ! -s conftest.err'
21976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21977   (eval $ac_try) 2>&5
21978   ac_status=$?
21979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980   (exit $ac_status); }; } &&
21981          { ac_try='test -s conftest$ac_exeext'
21982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21983   (eval $ac_try) 2>&5
21984   ac_status=$?
21985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986   (exit $ac_status); }; }; then
21987   ol_cv_pthread_lpthread_lmach_lexc=yes
21988 else
21989   echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 ol_cv_pthread_lpthread_lmach_lexc=no
21993 fi
21994 rm -f conftest.err conftest.$ac_objext \
21995       conftest$ac_exeext conftest.$ac_ext
21996 else
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003
22004 /* pthread test headers */
22005 #include <pthread.h>
22006 #if HAVE_PTHREADS < 7
22007 #include <errno.h>
22008 #endif
22009 #ifndef NULL
22010 #define NULL (void*)0
22011 #endif
22012
22013 static void *task(p)
22014         void *p;
22015 {
22016         return (void *) (p == NULL);
22017 }
22018
22019
22020 int main(argc, argv)
22021         int argc;
22022         char **argv;
22023 {
22024
22025         /* pthread test function */
22026 #ifndef PTHREAD_CREATE_DETACHED
22027 #define PTHREAD_CREATE_DETACHED 1
22028 #endif
22029         pthread_t t;
22030         int status;
22031         int detach = PTHREAD_CREATE_DETACHED;
22032
22033 #if HAVE_PTHREADS > 4
22034         /* Final pthreads */
22035         pthread_attr_t attr;
22036
22037         status = pthread_attr_init(&attr);
22038         if( status ) return status;
22039
22040 #if HAVE_PTHREADS < 7
22041         status = pthread_attr_setdetachstate(&attr, &detach);
22042         if( status < 0 ) status = errno;
22043 #else
22044         status = pthread_attr_setdetachstate(&attr, detach);
22045 #endif
22046         if( status ) return status;
22047         status = pthread_create( &t, &attr, task, NULL );
22048 #if HAVE_PTHREADS < 7
22049         if( status < 0 ) status = errno;
22050 #endif
22051         if( status ) return status;
22052 #else
22053         /* Draft 4 pthreads */
22054         status = pthread_create( &t, pthread_attr_default, task, NULL );
22055         if( status ) return errno;
22056
22057         /* give thread a chance to complete */
22058         /* it should remain joinable and hence detachable */
22059         sleep( 1 );
22060
22061         status = pthread_detach( &t );
22062         if( status ) return errno;
22063 #endif
22064
22065 #ifdef HAVE_LINUX_THREADS
22066         pthread_kill_other_threads_np();
22067 #endif
22068
22069         return 0;
22070
22071 }
22072
22073 _ACEOF
22074 rm -f conftest$ac_exeext
22075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22076   (eval $ac_link) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081   (eval $ac_try) 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; }; then
22085   ol_cv_pthread_lpthread_lmach_lexc=yes
22086 else
22087   echo "$as_me: program exited with status $ac_status" >&5
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 ( exit $ac_status )
22092 ol_cv_pthread_lpthread_lmach_lexc=no
22093 fi
22094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22095 fi
22096
22097                 # restore the LIBS
22098                 LIBS="$ol_LIBS"
22099
22100 fi
22101 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22102 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22103
22104         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22105                 ol_link_pthreads="-lpthread -lmach -lexc"
22106                 ol_link_threads=posix
22107         fi
22108 fi
22109
22110
22111                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22112 if test "$ol_link_threads" = no ; then
22113         # try -lpthread -Wl,-woff,85
22114         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22115 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22116 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22117   echo $ECHO_N "(cached) $ECHO_C" >&6
22118 else
22119
22120                 # save the flags
22121                 ol_LIBS="$LIBS"
22122                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22123
22124                 if test "$cross_compiling" = yes; then
22125   cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131
22132 /* pthread test headers */
22133 #include <pthread.h>
22134 #if HAVE_PTHREADS < 7
22135 #include <errno.h>
22136 #endif
22137 #ifndef NULL
22138 #define NULL (void*)0
22139 #endif
22140
22141 static void *task(p)
22142         void *p;
22143 {
22144         return (void *) (p == NULL);
22145 }
22146
22147 int
22148 main ()
22149 {
22150
22151         /* pthread test function */
22152 #ifndef PTHREAD_CREATE_DETACHED
22153 #define PTHREAD_CREATE_DETACHED 1
22154 #endif
22155         pthread_t t;
22156         int status;
22157         int detach = PTHREAD_CREATE_DETACHED;
22158
22159 #if HAVE_PTHREADS > 4
22160         /* Final pthreads */
22161         pthread_attr_t attr;
22162
22163         status = pthread_attr_init(&attr);
22164         if( status ) return status;
22165
22166 #if HAVE_PTHREADS < 7
22167         status = pthread_attr_setdetachstate(&attr, &detach);
22168         if( status < 0 ) status = errno;
22169 #else
22170         status = pthread_attr_setdetachstate(&attr, detach);
22171 #endif
22172         if( status ) return status;
22173         status = pthread_create( &t, &attr, task, NULL );
22174 #if HAVE_PTHREADS < 7
22175         if( status < 0 ) status = errno;
22176 #endif
22177         if( status ) return status;
22178 #else
22179         /* Draft 4 pthreads */
22180         status = pthread_create( &t, pthread_attr_default, task, NULL );
22181         if( status ) return errno;
22182
22183         /* give thread a chance to complete */
22184         /* it should remain joinable and hence detachable */
22185         sleep( 1 );
22186
22187         status = pthread_detach( &t );
22188         if( status ) return errno;
22189 #endif
22190
22191 #ifdef HAVE_LINUX_THREADS
22192         pthread_kill_other_threads_np();
22193 #endif
22194
22195         return 0;
22196
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 rm -f conftest.$ac_objext conftest$ac_exeext
22202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22203   (eval $ac_link) 2>conftest.er1
22204   ac_status=$?
22205   grep -v '^ *+' conftest.er1 >conftest.err
22206   rm -f conftest.er1
22207   cat conftest.err >&5
22208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209   (exit $ac_status); } &&
22210          { ac_try='test -z "$ac_c_werror_flag"
22211                          || test ! -s conftest.err'
22212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22213   (eval $ac_try) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); }; } &&
22217          { ac_try='test -s conftest$ac_exeext'
22218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219   (eval $ac_try) 2>&5
22220   ac_status=$?
22221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222   (exit $ac_status); }; }; then
22223   ol_cv_pthread_lib_lpthread_woff=yes
22224 else
22225   echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ol_cv_pthread_lib_lpthread_woff=no
22229 fi
22230 rm -f conftest.err conftest.$ac_objext \
22231       conftest$ac_exeext conftest.$ac_ext
22232 else
22233   cat >conftest.$ac_ext <<_ACEOF
22234 /* confdefs.h.  */
22235 _ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h.  */
22239
22240 /* pthread test headers */
22241 #include <pthread.h>
22242 #if HAVE_PTHREADS < 7
22243 #include <errno.h>
22244 #endif
22245 #ifndef NULL
22246 #define NULL (void*)0
22247 #endif
22248
22249 static void *task(p)
22250         void *p;
22251 {
22252         return (void *) (p == NULL);
22253 }
22254
22255
22256 int main(argc, argv)
22257         int argc;
22258         char **argv;
22259 {
22260
22261         /* pthread test function */
22262 #ifndef PTHREAD_CREATE_DETACHED
22263 #define PTHREAD_CREATE_DETACHED 1
22264 #endif
22265         pthread_t t;
22266         int status;
22267         int detach = PTHREAD_CREATE_DETACHED;
22268
22269 #if HAVE_PTHREADS > 4
22270         /* Final pthreads */
22271         pthread_attr_t attr;
22272
22273         status = pthread_attr_init(&attr);
22274         if( status ) return status;
22275
22276 #if HAVE_PTHREADS < 7
22277         status = pthread_attr_setdetachstate(&attr, &detach);
22278         if( status < 0 ) status = errno;
22279 #else
22280         status = pthread_attr_setdetachstate(&attr, detach);
22281 #endif
22282         if( status ) return status;
22283         status = pthread_create( &t, &attr, task, NULL );
22284 #if HAVE_PTHREADS < 7
22285         if( status < 0 ) status = errno;
22286 #endif
22287         if( status ) return status;
22288 #else
22289         /* Draft 4 pthreads */
22290         status = pthread_create( &t, pthread_attr_default, task, NULL );
22291         if( status ) return errno;
22292
22293         /* give thread a chance to complete */
22294         /* it should remain joinable and hence detachable */
22295         sleep( 1 );
22296
22297         status = pthread_detach( &t );
22298         if( status ) return errno;
22299 #endif
22300
22301 #ifdef HAVE_LINUX_THREADS
22302         pthread_kill_other_threads_np();
22303 #endif
22304
22305         return 0;
22306
22307 }
22308
22309 _ACEOF
22310 rm -f conftest$ac_exeext
22311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22312   (eval $ac_link) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317   (eval $ac_try) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; }; then
22321   ol_cv_pthread_lib_lpthread_woff=yes
22322 else
22323   echo "$as_me: program exited with status $ac_status" >&5
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ( exit $ac_status )
22328 ol_cv_pthread_lib_lpthread_woff=no
22329 fi
22330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22331 fi
22332
22333                 # restore the LIBS
22334                 LIBS="$ol_LIBS"
22335
22336 fi
22337 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22338 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22339
22340         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22341                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22342                 ol_link_threads=posix
22343         fi
22344 fi
22345
22346
22347                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22348 if test "$ol_link_threads" = no ; then
22349         # try -lpthread
22350         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22351 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22352 if test "${ol_cv_pthread_lpthread+set}" = set; then
22353   echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355
22356                 # save the flags
22357                 ol_LIBS="$LIBS"
22358                 LIBS="-lpthread $LIBS"
22359
22360                 if test "$cross_compiling" = yes; then
22361   cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367
22368 /* pthread test headers */
22369 #include <pthread.h>
22370 #if HAVE_PTHREADS < 7
22371 #include <errno.h>
22372 #endif
22373 #ifndef NULL
22374 #define NULL (void*)0
22375 #endif
22376
22377 static void *task(p)
22378         void *p;
22379 {
22380         return (void *) (p == NULL);
22381 }
22382
22383 int
22384 main ()
22385 {
22386
22387         /* pthread test function */
22388 #ifndef PTHREAD_CREATE_DETACHED
22389 #define PTHREAD_CREATE_DETACHED 1
22390 #endif
22391         pthread_t t;
22392         int status;
22393         int detach = PTHREAD_CREATE_DETACHED;
22394
22395 #if HAVE_PTHREADS > 4
22396         /* Final pthreads */
22397         pthread_attr_t attr;
22398
22399         status = pthread_attr_init(&attr);
22400         if( status ) return status;
22401
22402 #if HAVE_PTHREADS < 7
22403         status = pthread_attr_setdetachstate(&attr, &detach);
22404         if( status < 0 ) status = errno;
22405 #else
22406         status = pthread_attr_setdetachstate(&attr, detach);
22407 #endif
22408         if( status ) return status;
22409         status = pthread_create( &t, &attr, task, NULL );
22410 #if HAVE_PTHREADS < 7
22411         if( status < 0 ) status = errno;
22412 #endif
22413         if( status ) return status;
22414 #else
22415         /* Draft 4 pthreads */
22416         status = pthread_create( &t, pthread_attr_default, task, NULL );
22417         if( status ) return errno;
22418
22419         /* give thread a chance to complete */
22420         /* it should remain joinable and hence detachable */
22421         sleep( 1 );
22422
22423         status = pthread_detach( &t );
22424         if( status ) return errno;
22425 #endif
22426
22427 #ifdef HAVE_LINUX_THREADS
22428         pthread_kill_other_threads_np();
22429 #endif
22430
22431         return 0;
22432
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22439   (eval $ac_link) 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } &&
22446          { ac_try='test -z "$ac_c_werror_flag"
22447                          || test ! -s conftest.err'
22448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449   (eval $ac_try) 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; } &&
22453          { ac_try='test -s conftest$ac_exeext'
22454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455   (eval $ac_try) 2>&5
22456   ac_status=$?
22457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459   ol_cv_pthread_lpthread=yes
22460 else
22461   echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22463
22464 ol_cv_pthread_lpthread=no
22465 fi
22466 rm -f conftest.err conftest.$ac_objext \
22467       conftest$ac_exeext conftest.$ac_ext
22468 else
22469   cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475
22476 /* pthread test headers */
22477 #include <pthread.h>
22478 #if HAVE_PTHREADS < 7
22479 #include <errno.h>
22480 #endif
22481 #ifndef NULL
22482 #define NULL (void*)0
22483 #endif
22484
22485 static void *task(p)
22486         void *p;
22487 {
22488         return (void *) (p == NULL);
22489 }
22490
22491
22492 int main(argc, argv)
22493         int argc;
22494         char **argv;
22495 {
22496
22497         /* pthread test function */
22498 #ifndef PTHREAD_CREATE_DETACHED
22499 #define PTHREAD_CREATE_DETACHED 1
22500 #endif
22501         pthread_t t;
22502         int status;
22503         int detach = PTHREAD_CREATE_DETACHED;
22504
22505 #if HAVE_PTHREADS > 4
22506         /* Final pthreads */
22507         pthread_attr_t attr;
22508
22509         status = pthread_attr_init(&attr);
22510         if( status ) return status;
22511
22512 #if HAVE_PTHREADS < 7
22513         status = pthread_attr_setdetachstate(&attr, &detach);
22514         if( status < 0 ) status = errno;
22515 #else
22516         status = pthread_attr_setdetachstate(&attr, detach);
22517 #endif
22518         if( status ) return status;
22519         status = pthread_create( &t, &attr, task, NULL );
22520 #if HAVE_PTHREADS < 7
22521         if( status < 0 ) status = errno;
22522 #endif
22523         if( status ) return status;
22524 #else
22525         /* Draft 4 pthreads */
22526         status = pthread_create( &t, pthread_attr_default, task, NULL );
22527         if( status ) return errno;
22528
22529         /* give thread a chance to complete */
22530         /* it should remain joinable and hence detachable */
22531         sleep( 1 );
22532
22533         status = pthread_detach( &t );
22534         if( status ) return errno;
22535 #endif
22536
22537 #ifdef HAVE_LINUX_THREADS
22538         pthread_kill_other_threads_np();
22539 #endif
22540
22541         return 0;
22542
22543 }
22544
22545 _ACEOF
22546 rm -f conftest$ac_exeext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22548   (eval $ac_link) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22553   (eval $ac_try) 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; }; then
22557   ol_cv_pthread_lpthread=yes
22558 else
22559   echo "$as_me: program exited with status $ac_status" >&5
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563 ( exit $ac_status )
22564 ol_cv_pthread_lpthread=no
22565 fi
22566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22567 fi
22568
22569                 # restore the LIBS
22570                 LIBS="$ol_LIBS"
22571
22572 fi
22573 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22574 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22575
22576         if test $ol_cv_pthread_lpthread = yes ; then
22577                 ol_link_pthreads="-lpthread"
22578                 ol_link_threads=posix
22579         fi
22580 fi
22581
22582                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22583 if test "$ol_link_threads" = no ; then
22584         # try -lc_r
22585         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22586 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22587 if test "${ol_cv_pthread_lc_r+set}" = set; then
22588   echo $ECHO_N "(cached) $ECHO_C" >&6
22589 else
22590
22591                 # save the flags
22592                 ol_LIBS="$LIBS"
22593                 LIBS="-lc_r $LIBS"
22594
22595                 if test "$cross_compiling" = yes; then
22596   cat >conftest.$ac_ext <<_ACEOF
22597 /* confdefs.h.  */
22598 _ACEOF
22599 cat confdefs.h >>conftest.$ac_ext
22600 cat >>conftest.$ac_ext <<_ACEOF
22601 /* end confdefs.h.  */
22602
22603 /* pthread test headers */
22604 #include <pthread.h>
22605 #if HAVE_PTHREADS < 7
22606 #include <errno.h>
22607 #endif
22608 #ifndef NULL
22609 #define NULL (void*)0
22610 #endif
22611
22612 static void *task(p)
22613         void *p;
22614 {
22615         return (void *) (p == NULL);
22616 }
22617
22618 int
22619 main ()
22620 {
22621
22622         /* pthread test function */
22623 #ifndef PTHREAD_CREATE_DETACHED
22624 #define PTHREAD_CREATE_DETACHED 1
22625 #endif
22626         pthread_t t;
22627         int status;
22628         int detach = PTHREAD_CREATE_DETACHED;
22629
22630 #if HAVE_PTHREADS > 4
22631         /* Final pthreads */
22632         pthread_attr_t attr;
22633
22634         status = pthread_attr_init(&attr);
22635         if( status ) return status;
22636
22637 #if HAVE_PTHREADS < 7
22638         status = pthread_attr_setdetachstate(&attr, &detach);
22639         if( status < 0 ) status = errno;
22640 #else
22641         status = pthread_attr_setdetachstate(&attr, detach);
22642 #endif
22643         if( status ) return status;
22644         status = pthread_create( &t, &attr, task, NULL );
22645 #if HAVE_PTHREADS < 7
22646         if( status < 0 ) status = errno;
22647 #endif
22648         if( status ) return status;
22649 #else
22650         /* Draft 4 pthreads */
22651         status = pthread_create( &t, pthread_attr_default, task, NULL );
22652         if( status ) return errno;
22653
22654         /* give thread a chance to complete */
22655         /* it should remain joinable and hence detachable */
22656         sleep( 1 );
22657
22658         status = pthread_detach( &t );
22659         if( status ) return errno;
22660 #endif
22661
22662 #ifdef HAVE_LINUX_THREADS
22663         pthread_kill_other_threads_np();
22664 #endif
22665
22666         return 0;
22667
22668   ;
22669   return 0;
22670 }
22671 _ACEOF
22672 rm -f conftest.$ac_objext conftest$ac_exeext
22673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22674   (eval $ac_link) 2>conftest.er1
22675   ac_status=$?
22676   grep -v '^ *+' conftest.er1 >conftest.err
22677   rm -f conftest.er1
22678   cat conftest.err >&5
22679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680   (exit $ac_status); } &&
22681          { ac_try='test -z "$ac_c_werror_flag"
22682                          || test ! -s conftest.err'
22683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22684   (eval $ac_try) 2>&5
22685   ac_status=$?
22686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687   (exit $ac_status); }; } &&
22688          { ac_try='test -s conftest$ac_exeext'
22689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22690   (eval $ac_try) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); }; }; then
22694   ol_cv_pthread_lc_r=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699 ol_cv_pthread_lc_r=no
22700 fi
22701 rm -f conftest.err conftest.$ac_objext \
22702       conftest$ac_exeext conftest.$ac_ext
22703 else
22704   cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h.  */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h.  */
22710
22711 /* pthread test headers */
22712 #include <pthread.h>
22713 #if HAVE_PTHREADS < 7
22714 #include <errno.h>
22715 #endif
22716 #ifndef NULL
22717 #define NULL (void*)0
22718 #endif
22719
22720 static void *task(p)
22721         void *p;
22722 {
22723         return (void *) (p == NULL);
22724 }
22725
22726
22727 int main(argc, argv)
22728         int argc;
22729         char **argv;
22730 {
22731
22732         /* pthread test function */
22733 #ifndef PTHREAD_CREATE_DETACHED
22734 #define PTHREAD_CREATE_DETACHED 1
22735 #endif
22736         pthread_t t;
22737         int status;
22738         int detach = PTHREAD_CREATE_DETACHED;
22739
22740 #if HAVE_PTHREADS > 4
22741         /* Final pthreads */
22742         pthread_attr_t attr;
22743
22744         status = pthread_attr_init(&attr);
22745         if( status ) return status;
22746
22747 #if HAVE_PTHREADS < 7
22748         status = pthread_attr_setdetachstate(&attr, &detach);
22749         if( status < 0 ) status = errno;
22750 #else
22751         status = pthread_attr_setdetachstate(&attr, detach);
22752 #endif
22753         if( status ) return status;
22754         status = pthread_create( &t, &attr, task, NULL );
22755 #if HAVE_PTHREADS < 7
22756         if( status < 0 ) status = errno;
22757 #endif
22758         if( status ) return status;
22759 #else
22760         /* Draft 4 pthreads */
22761         status = pthread_create( &t, pthread_attr_default, task, NULL );
22762         if( status ) return errno;
22763
22764         /* give thread a chance to complete */
22765         /* it should remain joinable and hence detachable */
22766         sleep( 1 );
22767
22768         status = pthread_detach( &t );
22769         if( status ) return errno;
22770 #endif
22771
22772 #ifdef HAVE_LINUX_THREADS
22773         pthread_kill_other_threads_np();
22774 #endif
22775
22776         return 0;
22777
22778 }
22779
22780 _ACEOF
22781 rm -f conftest$ac_exeext
22782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22783   (eval $ac_link) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   ol_cv_pthread_lc_r=yes
22793 else
22794   echo "$as_me: program exited with status $ac_status" >&5
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.$ac_ext >&5
22797
22798 ( exit $ac_status )
22799 ol_cv_pthread_lc_r=no
22800 fi
22801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22802 fi
22803
22804                 # restore the LIBS
22805                 LIBS="$ol_LIBS"
22806
22807 fi
22808 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22809 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22810
22811         if test $ol_cv_pthread_lc_r = yes ; then
22812                 ol_link_pthreads="-lc_r"
22813                 ol_link_threads=posix
22814         fi
22815 fi
22816
22817
22818                 # Pthread try link: -threads (ol_cv_pthread_threads)
22819 if test "$ol_link_threads" = no ; then
22820         # try -threads
22821         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22822 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22823 if test "${ol_cv_pthread_threads+set}" = set; then
22824   echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826
22827                 # save the flags
22828                 ol_LIBS="$LIBS"
22829                 LIBS="-threads $LIBS"
22830
22831                 if test "$cross_compiling" = yes; then
22832   cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h.  */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h.  */
22838
22839 /* pthread test headers */
22840 #include <pthread.h>
22841 #if HAVE_PTHREADS < 7
22842 #include <errno.h>
22843 #endif
22844 #ifndef NULL
22845 #define NULL (void*)0
22846 #endif
22847
22848 static void *task(p)
22849         void *p;
22850 {
22851         return (void *) (p == NULL);
22852 }
22853
22854 int
22855 main ()
22856 {
22857
22858         /* pthread test function */
22859 #ifndef PTHREAD_CREATE_DETACHED
22860 #define PTHREAD_CREATE_DETACHED 1
22861 #endif
22862         pthread_t t;
22863         int status;
22864         int detach = PTHREAD_CREATE_DETACHED;
22865
22866 #if HAVE_PTHREADS > 4
22867         /* Final pthreads */
22868         pthread_attr_t attr;
22869
22870         status = pthread_attr_init(&attr);
22871         if( status ) return status;
22872
22873 #if HAVE_PTHREADS < 7
22874         status = pthread_attr_setdetachstate(&attr, &detach);
22875         if( status < 0 ) status = errno;
22876 #else
22877         status = pthread_attr_setdetachstate(&attr, detach);
22878 #endif
22879         if( status ) return status;
22880         status = pthread_create( &t, &attr, task, NULL );
22881 #if HAVE_PTHREADS < 7
22882         if( status < 0 ) status = errno;
22883 #endif
22884         if( status ) return status;
22885 #else
22886         /* Draft 4 pthreads */
22887         status = pthread_create( &t, pthread_attr_default, task, NULL );
22888         if( status ) return errno;
22889
22890         /* give thread a chance to complete */
22891         /* it should remain joinable and hence detachable */
22892         sleep( 1 );
22893
22894         status = pthread_detach( &t );
22895         if( status ) return errno;
22896 #endif
22897
22898 #ifdef HAVE_LINUX_THREADS
22899         pthread_kill_other_threads_np();
22900 #endif
22901
22902         return 0;
22903
22904   ;
22905   return 0;
22906 }
22907 _ACEOF
22908 rm -f conftest.$ac_objext conftest$ac_exeext
22909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22910   (eval $ac_link) 2>conftest.er1
22911   ac_status=$?
22912   grep -v '^ *+' conftest.er1 >conftest.err
22913   rm -f conftest.er1
22914   cat conftest.err >&5
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } &&
22917          { ac_try='test -z "$ac_c_werror_flag"
22918                          || test ! -s conftest.err'
22919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; } &&
22924          { ac_try='test -s conftest$ac_exeext'
22925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926   (eval $ac_try) 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; }; then
22930   ol_cv_pthread_threads=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935 ol_cv_pthread_threads=no
22936 fi
22937 rm -f conftest.err conftest.$ac_objext \
22938       conftest$ac_exeext conftest.$ac_ext
22939 else
22940   cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946
22947 /* pthread test headers */
22948 #include <pthread.h>
22949 #if HAVE_PTHREADS < 7
22950 #include <errno.h>
22951 #endif
22952 #ifndef NULL
22953 #define NULL (void*)0
22954 #endif
22955
22956 static void *task(p)
22957         void *p;
22958 {
22959         return (void *) (p == NULL);
22960 }
22961
22962
22963 int main(argc, argv)
22964         int argc;
22965         char **argv;
22966 {
22967
22968         /* pthread test function */
22969 #ifndef PTHREAD_CREATE_DETACHED
22970 #define PTHREAD_CREATE_DETACHED 1
22971 #endif
22972         pthread_t t;
22973         int status;
22974         int detach = PTHREAD_CREATE_DETACHED;
22975
22976 #if HAVE_PTHREADS > 4
22977         /* Final pthreads */
22978         pthread_attr_t attr;
22979
22980         status = pthread_attr_init(&attr);
22981         if( status ) return status;
22982
22983 #if HAVE_PTHREADS < 7
22984         status = pthread_attr_setdetachstate(&attr, &detach);
22985         if( status < 0 ) status = errno;
22986 #else
22987         status = pthread_attr_setdetachstate(&attr, detach);
22988 #endif
22989         if( status ) return status;
22990         status = pthread_create( &t, &attr, task, NULL );
22991 #if HAVE_PTHREADS < 7
22992         if( status < 0 ) status = errno;
22993 #endif
22994         if( status ) return status;
22995 #else
22996         /* Draft 4 pthreads */
22997         status = pthread_create( &t, pthread_attr_default, task, NULL );
22998         if( status ) return errno;
22999
23000         /* give thread a chance to complete */
23001         /* it should remain joinable and hence detachable */
23002         sleep( 1 );
23003
23004         status = pthread_detach( &t );
23005         if( status ) return errno;
23006 #endif
23007
23008 #ifdef HAVE_LINUX_THREADS
23009         pthread_kill_other_threads_np();
23010 #endif
23011
23012         return 0;
23013
23014 }
23015
23016 _ACEOF
23017 rm -f conftest$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019   (eval $ac_link) 2>&5
23020   ac_status=$?
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024   (eval $ac_try) 2>&5
23025   ac_status=$?
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); }; }; then
23028   ol_cv_pthread_threads=yes
23029 else
23030   echo "$as_me: program exited with status $ac_status" >&5
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034 ( exit $ac_status )
23035 ol_cv_pthread_threads=no
23036 fi
23037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23038 fi
23039
23040                 # restore the LIBS
23041                 LIBS="$ol_LIBS"
23042
23043 fi
23044 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23045 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23046
23047         if test $ol_cv_pthread_threads = yes ; then
23048                 ol_link_pthreads="-threads"
23049                 ol_link_threads=posix
23050         fi
23051 fi
23052
23053
23054                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23055 if test "$ol_link_threads" = no ; then
23056         # try -lpthreads -lmach -lexc -lc_r
23057         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23058 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23059 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062
23063                 # save the flags
23064                 ol_LIBS="$LIBS"
23065                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23066
23067                 if test "$cross_compiling" = yes; then
23068   cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h.  */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h.  */
23074
23075 /* pthread test headers */
23076 #include <pthread.h>
23077 #if HAVE_PTHREADS < 7
23078 #include <errno.h>
23079 #endif
23080 #ifndef NULL
23081 #define NULL (void*)0
23082 #endif
23083
23084 static void *task(p)
23085         void *p;
23086 {
23087         return (void *) (p == NULL);
23088 }
23089
23090 int
23091 main ()
23092 {
23093
23094         /* pthread test function */
23095 #ifndef PTHREAD_CREATE_DETACHED
23096 #define PTHREAD_CREATE_DETACHED 1
23097 #endif
23098         pthread_t t;
23099         int status;
23100         int detach = PTHREAD_CREATE_DETACHED;
23101
23102 #if HAVE_PTHREADS > 4
23103         /* Final pthreads */
23104         pthread_attr_t attr;
23105
23106         status = pthread_attr_init(&attr);
23107         if( status ) return status;
23108
23109 #if HAVE_PTHREADS < 7
23110         status = pthread_attr_setdetachstate(&attr, &detach);
23111         if( status < 0 ) status = errno;
23112 #else
23113         status = pthread_attr_setdetachstate(&attr, detach);
23114 #endif
23115         if( status ) return status;
23116         status = pthread_create( &t, &attr, task, NULL );
23117 #if HAVE_PTHREADS < 7
23118         if( status < 0 ) status = errno;
23119 #endif
23120         if( status ) return status;
23121 #else
23122         /* Draft 4 pthreads */
23123         status = pthread_create( &t, pthread_attr_default, task, NULL );
23124         if( status ) return errno;
23125
23126         /* give thread a chance to complete */
23127         /* it should remain joinable and hence detachable */
23128         sleep( 1 );
23129
23130         status = pthread_detach( &t );
23131         if( status ) return errno;
23132 #endif
23133
23134 #ifdef HAVE_LINUX_THREADS
23135         pthread_kill_other_threads_np();
23136 #endif
23137
23138         return 0;
23139
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 rm -f conftest.$ac_objext conftest$ac_exeext
23145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23146   (eval $ac_link) 2>conftest.er1
23147   ac_status=$?
23148   grep -v '^ *+' conftest.er1 >conftest.err
23149   rm -f conftest.er1
23150   cat conftest.err >&5
23151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152   (exit $ac_status); } &&
23153          { ac_try='test -z "$ac_c_werror_flag"
23154                          || test ! -s conftest.err'
23155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156   (eval $ac_try) 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); }; } &&
23160          { ac_try='test -s conftest$ac_exeext'
23161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162   (eval $ac_try) 2>&5
23163   ac_status=$?
23164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165   (exit $ac_status); }; }; then
23166   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23167 else
23168   echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23170
23171 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23172 fi
23173 rm -f conftest.err conftest.$ac_objext \
23174       conftest$ac_exeext conftest.$ac_ext
23175 else
23176   cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h.  */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h.  */
23182
23183 /* pthread test headers */
23184 #include <pthread.h>
23185 #if HAVE_PTHREADS < 7
23186 #include <errno.h>
23187 #endif
23188 #ifndef NULL
23189 #define NULL (void*)0
23190 #endif
23191
23192 static void *task(p)
23193         void *p;
23194 {
23195         return (void *) (p == NULL);
23196 }
23197
23198
23199 int main(argc, argv)
23200         int argc;
23201         char **argv;
23202 {
23203
23204         /* pthread test function */
23205 #ifndef PTHREAD_CREATE_DETACHED
23206 #define PTHREAD_CREATE_DETACHED 1
23207 #endif
23208         pthread_t t;
23209         int status;
23210         int detach = PTHREAD_CREATE_DETACHED;
23211
23212 #if HAVE_PTHREADS > 4
23213         /* Final pthreads */
23214         pthread_attr_t attr;
23215
23216         status = pthread_attr_init(&attr);
23217         if( status ) return status;
23218
23219 #if HAVE_PTHREADS < 7
23220         status = pthread_attr_setdetachstate(&attr, &detach);
23221         if( status < 0 ) status = errno;
23222 #else
23223         status = pthread_attr_setdetachstate(&attr, detach);
23224 #endif
23225         if( status ) return status;
23226         status = pthread_create( &t, &attr, task, NULL );
23227 #if HAVE_PTHREADS < 7
23228         if( status < 0 ) status = errno;
23229 #endif
23230         if( status ) return status;
23231 #else
23232         /* Draft 4 pthreads */
23233         status = pthread_create( &t, pthread_attr_default, task, NULL );
23234         if( status ) return errno;
23235
23236         /* give thread a chance to complete */
23237         /* it should remain joinable and hence detachable */
23238         sleep( 1 );
23239
23240         status = pthread_detach( &t );
23241         if( status ) return errno;
23242 #endif
23243
23244 #ifdef HAVE_LINUX_THREADS
23245         pthread_kill_other_threads_np();
23246 #endif
23247
23248         return 0;
23249
23250 }
23251
23252 _ACEOF
23253 rm -f conftest$ac_exeext
23254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23255   (eval $ac_link) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260   (eval $ac_try) 2>&5
23261   ac_status=$?
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); }; }; then
23264   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23265 else
23266   echo "$as_me: program exited with status $ac_status" >&5
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ( exit $ac_status )
23271 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23272 fi
23273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23274 fi
23275
23276                 # restore the LIBS
23277                 LIBS="$ol_LIBS"
23278
23279 fi
23280 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23281 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23282
23283         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23284                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23285                 ol_link_threads=posix
23286         fi
23287 fi
23288
23289                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23290 if test "$ol_link_threads" = no ; then
23291         # try -lpthreads -lmach -lexc
23292         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23293 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23294 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23295   echo $ECHO_N "(cached) $ECHO_C" >&6
23296 else
23297
23298                 # save the flags
23299                 ol_LIBS="$LIBS"
23300                 LIBS="-lpthreads -lmach -lexc $LIBS"
23301
23302                 if test "$cross_compiling" = yes; then
23303   cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h.  */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h.  */
23309
23310 /* pthread test headers */
23311 #include <pthread.h>
23312 #if HAVE_PTHREADS < 7
23313 #include <errno.h>
23314 #endif
23315 #ifndef NULL
23316 #define NULL (void*)0
23317 #endif
23318
23319 static void *task(p)
23320         void *p;
23321 {
23322         return (void *) (p == NULL);
23323 }
23324
23325 int
23326 main ()
23327 {
23328
23329         /* pthread test function */
23330 #ifndef PTHREAD_CREATE_DETACHED
23331 #define PTHREAD_CREATE_DETACHED 1
23332 #endif
23333         pthread_t t;
23334         int status;
23335         int detach = PTHREAD_CREATE_DETACHED;
23336
23337 #if HAVE_PTHREADS > 4
23338         /* Final pthreads */
23339         pthread_attr_t attr;
23340
23341         status = pthread_attr_init(&attr);
23342         if( status ) return status;
23343
23344 #if HAVE_PTHREADS < 7
23345         status = pthread_attr_setdetachstate(&attr, &detach);
23346         if( status < 0 ) status = errno;
23347 #else
23348         status = pthread_attr_setdetachstate(&attr, detach);
23349 #endif
23350         if( status ) return status;
23351         status = pthread_create( &t, &attr, task, NULL );
23352 #if HAVE_PTHREADS < 7
23353         if( status < 0 ) status = errno;
23354 #endif
23355         if( status ) return status;
23356 #else
23357         /* Draft 4 pthreads */
23358         status = pthread_create( &t, pthread_attr_default, task, NULL );
23359         if( status ) return errno;
23360
23361         /* give thread a chance to complete */
23362         /* it should remain joinable and hence detachable */
23363         sleep( 1 );
23364
23365         status = pthread_detach( &t );
23366         if( status ) return errno;
23367 #endif
23368
23369 #ifdef HAVE_LINUX_THREADS
23370         pthread_kill_other_threads_np();
23371 #endif
23372
23373         return 0;
23374
23375   ;
23376   return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381   (eval $ac_link) 2>conftest.er1
23382   ac_status=$?
23383   grep -v '^ *+' conftest.er1 >conftest.err
23384   rm -f conftest.er1
23385   cat conftest.err >&5
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); } &&
23388          { ac_try='test -z "$ac_c_werror_flag"
23389                          || test ! -s conftest.err'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; } &&
23395          { ac_try='test -s conftest$ac_exeext'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; }; then
23401   ol_cv_pthread_lpthreads_lmach_lexc=yes
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406 ol_cv_pthread_lpthreads_lmach_lexc=no
23407 fi
23408 rm -f conftest.err conftest.$ac_objext \
23409       conftest$ac_exeext conftest.$ac_ext
23410 else
23411   cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417
23418 /* pthread test headers */
23419 #include <pthread.h>
23420 #if HAVE_PTHREADS < 7
23421 #include <errno.h>
23422 #endif
23423 #ifndef NULL
23424 #define NULL (void*)0
23425 #endif
23426
23427 static void *task(p)
23428         void *p;
23429 {
23430         return (void *) (p == NULL);
23431 }
23432
23433
23434 int main(argc, argv)
23435         int argc;
23436         char **argv;
23437 {
23438
23439         /* pthread test function */
23440 #ifndef PTHREAD_CREATE_DETACHED
23441 #define PTHREAD_CREATE_DETACHED 1
23442 #endif
23443         pthread_t t;
23444         int status;
23445         int detach = PTHREAD_CREATE_DETACHED;
23446
23447 #if HAVE_PTHREADS > 4
23448         /* Final pthreads */
23449         pthread_attr_t attr;
23450
23451         status = pthread_attr_init(&attr);
23452         if( status ) return status;
23453
23454 #if HAVE_PTHREADS < 7
23455         status = pthread_attr_setdetachstate(&attr, &detach);
23456         if( status < 0 ) status = errno;
23457 #else
23458         status = pthread_attr_setdetachstate(&attr, detach);
23459 #endif
23460         if( status ) return status;
23461         status = pthread_create( &t, &attr, task, NULL );
23462 #if HAVE_PTHREADS < 7
23463         if( status < 0 ) status = errno;
23464 #endif
23465         if( status ) return status;
23466 #else
23467         /* Draft 4 pthreads */
23468         status = pthread_create( &t, pthread_attr_default, task, NULL );
23469         if( status ) return errno;
23470
23471         /* give thread a chance to complete */
23472         /* it should remain joinable and hence detachable */
23473         sleep( 1 );
23474
23475         status = pthread_detach( &t );
23476         if( status ) return errno;
23477 #endif
23478
23479 #ifdef HAVE_LINUX_THREADS
23480         pthread_kill_other_threads_np();
23481 #endif
23482
23483         return 0;
23484
23485 }
23486
23487 _ACEOF
23488 rm -f conftest$ac_exeext
23489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23490   (eval $ac_link) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; }; then
23499   ol_cv_pthread_lpthreads_lmach_lexc=yes
23500 else
23501   echo "$as_me: program exited with status $ac_status" >&5
23502 echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ( exit $ac_status )
23506 ol_cv_pthread_lpthreads_lmach_lexc=no
23507 fi
23508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23509 fi
23510
23511                 # restore the LIBS
23512                 LIBS="$ol_LIBS"
23513
23514 fi
23515 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23516 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23517
23518         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23519                 ol_link_pthreads="-lpthreads -lmach -lexc"
23520                 ol_link_threads=posix
23521         fi
23522 fi
23523
23524                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23525 if test "$ol_link_threads" = no ; then
23526         # try -lpthreads -lexc
23527         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23528 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23529 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532
23533                 # save the flags
23534                 ol_LIBS="$LIBS"
23535                 LIBS="-lpthreads -lexc $LIBS"
23536
23537                 if test "$cross_compiling" = yes; then
23538   cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h.  */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h.  */
23544
23545 /* pthread test headers */
23546 #include <pthread.h>
23547 #if HAVE_PTHREADS < 7
23548 #include <errno.h>
23549 #endif
23550 #ifndef NULL
23551 #define NULL (void*)0
23552 #endif
23553
23554 static void *task(p)
23555         void *p;
23556 {
23557         return (void *) (p == NULL);
23558 }
23559
23560 int
23561 main ()
23562 {
23563
23564         /* pthread test function */
23565 #ifndef PTHREAD_CREATE_DETACHED
23566 #define PTHREAD_CREATE_DETACHED 1
23567 #endif
23568         pthread_t t;
23569         int status;
23570         int detach = PTHREAD_CREATE_DETACHED;
23571
23572 #if HAVE_PTHREADS > 4
23573         /* Final pthreads */
23574         pthread_attr_t attr;
23575
23576         status = pthread_attr_init(&attr);
23577         if( status ) return status;
23578
23579 #if HAVE_PTHREADS < 7
23580         status = pthread_attr_setdetachstate(&attr, &detach);
23581         if( status < 0 ) status = errno;
23582 #else
23583         status = pthread_attr_setdetachstate(&attr, detach);
23584 #endif
23585         if( status ) return status;
23586         status = pthread_create( &t, &attr, task, NULL );
23587 #if HAVE_PTHREADS < 7
23588         if( status < 0 ) status = errno;
23589 #endif
23590         if( status ) return status;
23591 #else
23592         /* Draft 4 pthreads */
23593         status = pthread_create( &t, pthread_attr_default, task, NULL );
23594         if( status ) return errno;
23595
23596         /* give thread a chance to complete */
23597         /* it should remain joinable and hence detachable */
23598         sleep( 1 );
23599
23600         status = pthread_detach( &t );
23601         if( status ) return errno;
23602 #endif
23603
23604 #ifdef HAVE_LINUX_THREADS
23605         pthread_kill_other_threads_np();
23606 #endif
23607
23608         return 0;
23609
23610   ;
23611   return 0;
23612 }
23613 _ACEOF
23614 rm -f conftest.$ac_objext conftest$ac_exeext
23615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23616   (eval $ac_link) 2>conftest.er1
23617   ac_status=$?
23618   grep -v '^ *+' conftest.er1 >conftest.err
23619   rm -f conftest.er1
23620   cat conftest.err >&5
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); } &&
23623          { ac_try='test -z "$ac_c_werror_flag"
23624                          || test ! -s conftest.err'
23625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23626   (eval $ac_try) 2>&5
23627   ac_status=$?
23628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629   (exit $ac_status); }; } &&
23630          { ac_try='test -s conftest$ac_exeext'
23631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632   (eval $ac_try) 2>&5
23633   ac_status=$?
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); }; }; then
23636   ol_cv_pthread_lpthreads_lexc=yes
23637 else
23638   echo "$as_me: failed program was:" >&5
23639 sed 's/^/| /' conftest.$ac_ext >&5
23640
23641 ol_cv_pthread_lpthreads_lexc=no
23642 fi
23643 rm -f conftest.err conftest.$ac_objext \
23644       conftest$ac_exeext conftest.$ac_ext
23645 else
23646   cat >conftest.$ac_ext <<_ACEOF
23647 /* confdefs.h.  */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h.  */
23652
23653 /* pthread test headers */
23654 #include <pthread.h>
23655 #if HAVE_PTHREADS < 7
23656 #include <errno.h>
23657 #endif
23658 #ifndef NULL
23659 #define NULL (void*)0
23660 #endif
23661
23662 static void *task(p)
23663         void *p;
23664 {
23665         return (void *) (p == NULL);
23666 }
23667
23668
23669 int main(argc, argv)
23670         int argc;
23671         char **argv;
23672 {
23673
23674         /* pthread test function */
23675 #ifndef PTHREAD_CREATE_DETACHED
23676 #define PTHREAD_CREATE_DETACHED 1
23677 #endif
23678         pthread_t t;
23679         int status;
23680         int detach = PTHREAD_CREATE_DETACHED;
23681
23682 #if HAVE_PTHREADS > 4
23683         /* Final pthreads */
23684         pthread_attr_t attr;
23685
23686         status = pthread_attr_init(&attr);
23687         if( status ) return status;
23688
23689 #if HAVE_PTHREADS < 7
23690         status = pthread_attr_setdetachstate(&attr, &detach);
23691         if( status < 0 ) status = errno;
23692 #else
23693         status = pthread_attr_setdetachstate(&attr, detach);
23694 #endif
23695         if( status ) return status;
23696         status = pthread_create( &t, &attr, task, NULL );
23697 #if HAVE_PTHREADS < 7
23698         if( status < 0 ) status = errno;
23699 #endif
23700         if( status ) return status;
23701 #else
23702         /* Draft 4 pthreads */
23703         status = pthread_create( &t, pthread_attr_default, task, NULL );
23704         if( status ) return errno;
23705
23706         /* give thread a chance to complete */
23707         /* it should remain joinable and hence detachable */
23708         sleep( 1 );
23709
23710         status = pthread_detach( &t );
23711         if( status ) return errno;
23712 #endif
23713
23714 #ifdef HAVE_LINUX_THREADS
23715         pthread_kill_other_threads_np();
23716 #endif
23717
23718         return 0;
23719
23720 }
23721
23722 _ACEOF
23723 rm -f conftest$ac_exeext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23725   (eval $ac_link) 2>&5
23726   ac_status=$?
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; }; then
23734   ol_cv_pthread_lpthreads_lexc=yes
23735 else
23736   echo "$as_me: program exited with status $ac_status" >&5
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ( exit $ac_status )
23741 ol_cv_pthread_lpthreads_lexc=no
23742 fi
23743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23744 fi
23745
23746                 # restore the LIBS
23747                 LIBS="$ol_LIBS"
23748
23749 fi
23750 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23751 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23752
23753         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23754                 ol_link_pthreads="-lpthreads -lexc"
23755                 ol_link_threads=posix
23756         fi
23757 fi
23758
23759
23760                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23761 if test "$ol_link_threads" = no ; then
23762         # try -lpthreads
23763         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23764 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23765 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23766   echo $ECHO_N "(cached) $ECHO_C" >&6
23767 else
23768
23769                 # save the flags
23770                 ol_LIBS="$LIBS"
23771                 LIBS="-lpthreads $LIBS"
23772
23773                 if test "$cross_compiling" = yes; then
23774   cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 /* pthread test headers */
23782 #include <pthread.h>
23783 #if HAVE_PTHREADS < 7
23784 #include <errno.h>
23785 #endif
23786 #ifndef NULL
23787 #define NULL (void*)0
23788 #endif
23789
23790 static void *task(p)
23791         void *p;
23792 {
23793         return (void *) (p == NULL);
23794 }
23795
23796 int
23797 main ()
23798 {
23799
23800         /* pthread test function */
23801 #ifndef PTHREAD_CREATE_DETACHED
23802 #define PTHREAD_CREATE_DETACHED 1
23803 #endif
23804         pthread_t t;
23805         int status;
23806         int detach = PTHREAD_CREATE_DETACHED;
23807
23808 #if HAVE_PTHREADS > 4
23809         /* Final pthreads */
23810         pthread_attr_t attr;
23811
23812         status = pthread_attr_init(&attr);
23813         if( status ) return status;
23814
23815 #if HAVE_PTHREADS < 7
23816         status = pthread_attr_setdetachstate(&attr, &detach);
23817         if( status < 0 ) status = errno;
23818 #else
23819         status = pthread_attr_setdetachstate(&attr, detach);
23820 #endif
23821         if( status ) return status;
23822         status = pthread_create( &t, &attr, task, NULL );
23823 #if HAVE_PTHREADS < 7
23824         if( status < 0 ) status = errno;
23825 #endif
23826         if( status ) return status;
23827 #else
23828         /* Draft 4 pthreads */
23829         status = pthread_create( &t, pthread_attr_default, task, NULL );
23830         if( status ) return errno;
23831
23832         /* give thread a chance to complete */
23833         /* it should remain joinable and hence detachable */
23834         sleep( 1 );
23835
23836         status = pthread_detach( &t );
23837         if( status ) return errno;
23838 #endif
23839
23840 #ifdef HAVE_LINUX_THREADS
23841         pthread_kill_other_threads_np();
23842 #endif
23843
23844         return 0;
23845
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext conftest$ac_exeext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23852   (eval $ac_link) 2>conftest.er1
23853   ac_status=$?
23854   grep -v '^ *+' conftest.er1 >conftest.err
23855   rm -f conftest.er1
23856   cat conftest.err >&5
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); } &&
23859          { ac_try='test -z "$ac_c_werror_flag"
23860                          || test ! -s conftest.err'
23861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); }; } &&
23866          { ac_try='test -s conftest$ac_exeext'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; }; then
23872   ol_cv_pthread_lib_lpthreads=yes
23873 else
23874   echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877 ol_cv_pthread_lib_lpthreads=no
23878 fi
23879 rm -f conftest.err conftest.$ac_objext \
23880       conftest$ac_exeext conftest.$ac_ext
23881 else
23882   cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h.  */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h.  */
23888
23889 /* pthread test headers */
23890 #include <pthread.h>
23891 #if HAVE_PTHREADS < 7
23892 #include <errno.h>
23893 #endif
23894 #ifndef NULL
23895 #define NULL (void*)0
23896 #endif
23897
23898 static void *task(p)
23899         void *p;
23900 {
23901         return (void *) (p == NULL);
23902 }
23903
23904
23905 int main(argc, argv)
23906         int argc;
23907         char **argv;
23908 {
23909
23910         /* pthread test function */
23911 #ifndef PTHREAD_CREATE_DETACHED
23912 #define PTHREAD_CREATE_DETACHED 1
23913 #endif
23914         pthread_t t;
23915         int status;
23916         int detach = PTHREAD_CREATE_DETACHED;
23917
23918 #if HAVE_PTHREADS > 4
23919         /* Final pthreads */
23920         pthread_attr_t attr;
23921
23922         status = pthread_attr_init(&attr);
23923         if( status ) return status;
23924
23925 #if HAVE_PTHREADS < 7
23926         status = pthread_attr_setdetachstate(&attr, &detach);
23927         if( status < 0 ) status = errno;
23928 #else
23929         status = pthread_attr_setdetachstate(&attr, detach);
23930 #endif
23931         if( status ) return status;
23932         status = pthread_create( &t, &attr, task, NULL );
23933 #if HAVE_PTHREADS < 7
23934         if( status < 0 ) status = errno;
23935 #endif
23936         if( status ) return status;
23937 #else
23938         /* Draft 4 pthreads */
23939         status = pthread_create( &t, pthread_attr_default, task, NULL );
23940         if( status ) return errno;
23941
23942         /* give thread a chance to complete */
23943         /* it should remain joinable and hence detachable */
23944         sleep( 1 );
23945
23946         status = pthread_detach( &t );
23947         if( status ) return errno;
23948 #endif
23949
23950 #ifdef HAVE_LINUX_THREADS
23951         pthread_kill_other_threads_np();
23952 #endif
23953
23954         return 0;
23955
23956 }
23957
23958 _ACEOF
23959 rm -f conftest$ac_exeext
23960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23961   (eval $ac_link) 2>&5
23962   ac_status=$?
23963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; }; then
23970   ol_cv_pthread_lib_lpthreads=yes
23971 else
23972   echo "$as_me: program exited with status $ac_status" >&5
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23975
23976 ( exit $ac_status )
23977 ol_cv_pthread_lib_lpthreads=no
23978 fi
23979 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23980 fi
23981
23982                 # restore the LIBS
23983                 LIBS="$ol_LIBS"
23984
23985 fi
23986 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23987 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23988
23989         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23990                 ol_link_pthreads="-lpthreads"
23991                 ol_link_threads=posix
23992         fi
23993 fi
23994
23995
23996                 if test $ol_link_threads != no ; then
23997                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23998
23999                                                 save_CPPFLAGS="$CPPFLAGS"
24000                         save_LIBS="$LIBS"
24001                         LIBS="$LTHREAD_LIBS $LIBS"
24002
24003
24004
24005
24006 for ac_func in sched_yield pthread_yield thr_yield
24007 do
24008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24009 echo "$as_me:$LINENO: checking for $ac_func" >&5
24010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24011 if eval "test \"\${$as_ac_var+set}\" = set"; then
24012   echo $ECHO_N "(cached) $ECHO_C" >&6
24013 else
24014   cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24021    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24022 #define $ac_func innocuous_$ac_func
24023
24024 /* System header to define __stub macros and hopefully few prototypes,
24025     which can conflict with char $ac_func (); below.
24026     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24027     <limits.h> exists even on freestanding compilers.  */
24028
24029 #ifdef __STDC__
24030 # include <limits.h>
24031 #else
24032 # include <assert.h>
24033 #endif
24034
24035 #undef $ac_func
24036
24037 /* Override any gcc2 internal prototype to avoid an error.  */
24038 #ifdef __cplusplus
24039 extern "C"
24040 {
24041 #endif
24042 /* We use char because int might match the return type of a gcc2
24043    builtin and then its argument prototype would still apply.  */
24044 char $ac_func ();
24045 /* The GNU C library defines this for functions which it implements
24046     to always fail with ENOSYS.  Some functions are actually named
24047     something starting with __ and the normal name is an alias.  */
24048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24049 choke me
24050 #else
24051 char (*f) () = $ac_func;
24052 #endif
24053 #ifdef __cplusplus
24054 }
24055 #endif
24056
24057 int
24058 main ()
24059 {
24060 return f != $ac_func;
24061   ;
24062   return 0;
24063 }
24064 _ACEOF
24065 rm -f conftest.$ac_objext conftest$ac_exeext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24067   (eval $ac_link) 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } &&
24074          { ac_try='test -z "$ac_c_werror_flag"
24075                          || test ! -s conftest.err'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; } &&
24081          { ac_try='test -s conftest$ac_exeext'
24082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083   (eval $ac_try) 2>&5
24084   ac_status=$?
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); }; }; then
24087   eval "$as_ac_var=yes"
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092 eval "$as_ac_var=no"
24093 fi
24094 rm -f conftest.err conftest.$ac_objext \
24095       conftest$ac_exeext conftest.$ac_ext
24096 fi
24097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24099 if test `eval echo '${'$as_ac_var'}'` = yes; then
24100   cat >>confdefs.h <<_ACEOF
24101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24102 _ACEOF
24103
24104 fi
24105 done
24106
24107
24108                         if test $ac_cv_func_sched_yield = no &&
24109                            test $ac_cv_func_pthread_yield = no &&
24110                            test $ac_cv_func_thr_yield = no ; then
24111                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24112 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24113 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24114   echo $ECHO_N "(cached) $ECHO_C" >&6
24115 else
24116   ac_check_lib_save_LIBS=$LIBS
24117 LIBS="-lrt  $LIBS"
24118 cat >conftest.$ac_ext <<_ACEOF
24119 /* confdefs.h.  */
24120 _ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h.  */
24124
24125 /* Override any gcc2 internal prototype to avoid an error.  */
24126 #ifdef __cplusplus
24127 extern "C"
24128 #endif
24129 /* We use char because int might match the return type of a gcc2
24130    builtin and then its argument prototype would still apply.  */
24131 char sched_yield ();
24132 int
24133 main ()
24134 {
24135 sched_yield ();
24136   ;
24137   return 0;
24138 }
24139 _ACEOF
24140 rm -f conftest.$ac_objext conftest$ac_exeext
24141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24142   (eval $ac_link) 2>conftest.er1
24143   ac_status=$?
24144   grep -v '^ *+' conftest.er1 >conftest.err
24145   rm -f conftest.er1
24146   cat conftest.err >&5
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); } &&
24149          { ac_try='test -z "$ac_c_werror_flag"
24150                          || test ! -s conftest.err'
24151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152   (eval $ac_try) 2>&5
24153   ac_status=$?
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); }; } &&
24156          { ac_try='test -s conftest$ac_exeext'
24157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24158   (eval $ac_try) 2>&5
24159   ac_status=$?
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); }; }; then
24162   ac_cv_lib_rt_sched_yield=yes
24163 else
24164   echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24166
24167 ac_cv_lib_rt_sched_yield=no
24168 fi
24169 rm -f conftest.err conftest.$ac_objext \
24170       conftest$ac_exeext conftest.$ac_ext
24171 LIBS=$ac_check_lib_save_LIBS
24172 fi
24173 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24174 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24175 if test $ac_cv_lib_rt_sched_yield = yes; then
24176   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24177
24178 cat >>confdefs.h <<\_ACEOF
24179 #define HAVE_SCHED_YIELD 1
24180 _ACEOF
24181
24182                                         ac_cv_func_sched_yield=yes
24183 else
24184   ac_cv_func_sched_yield=no
24185 fi
24186
24187                         fi
24188                         if test $ac_cv_func_sched_yield = no &&
24189                            test $ac_cv_func_pthread_yield = no &&
24190                            test "$ac_cv_func_thr_yield" = no ; then
24191                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24192 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24193                         fi
24194
24195
24196
24197 for ac_func in pthread_kill pthread_rwlock_destroy
24198 do
24199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24200 echo "$as_me:$LINENO: checking for $ac_func" >&5
24201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24202 if eval "test \"\${$as_ac_var+set}\" = set"; then
24203   echo $ECHO_N "(cached) $ECHO_C" >&6
24204 else
24205   cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h.  */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h.  */
24211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24213 #define $ac_func innocuous_$ac_func
24214
24215 /* System header to define __stub macros and hopefully few prototypes,
24216     which can conflict with char $ac_func (); below.
24217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24218     <limits.h> exists even on freestanding compilers.  */
24219
24220 #ifdef __STDC__
24221 # include <limits.h>
24222 #else
24223 # include <assert.h>
24224 #endif
24225
24226 #undef $ac_func
24227
24228 /* Override any gcc2 internal prototype to avoid an error.  */
24229 #ifdef __cplusplus
24230 extern "C"
24231 {
24232 #endif
24233 /* We use char because int might match the return type of a gcc2
24234    builtin and then its argument prototype would still apply.  */
24235 char $ac_func ();
24236 /* The GNU C library defines this for functions which it implements
24237     to always fail with ENOSYS.  Some functions are actually named
24238     something starting with __ and the normal name is an alias.  */
24239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24240 choke me
24241 #else
24242 char (*f) () = $ac_func;
24243 #endif
24244 #ifdef __cplusplus
24245 }
24246 #endif
24247
24248 int
24249 main ()
24250 {
24251 return f != $ac_func;
24252   ;
24253   return 0;
24254 }
24255 _ACEOF
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258   (eval $ac_link) 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } &&
24265          { ac_try='test -z "$ac_c_werror_flag"
24266                          || test ! -s conftest.err'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; } &&
24272          { ac_try='test -s conftest$ac_exeext'
24273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274   (eval $ac_try) 2>&5
24275   ac_status=$?
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); }; }; then
24278   eval "$as_ac_var=yes"
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 eval "$as_ac_var=no"
24284 fi
24285 rm -f conftest.err conftest.$ac_objext \
24286       conftest$ac_exeext conftest.$ac_ext
24287 fi
24288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24290 if test `eval echo '${'$as_ac_var'}'` = yes; then
24291   cat >>confdefs.h <<_ACEOF
24292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24293 _ACEOF
24294
24295 fi
24296 done
24297
24298
24299                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24300 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24301 if test "${ol_cv_func_pthread_detach+set}" = set; then
24302   echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304
24305                                                                 cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311
24312 #include <pthread.h>
24313 #ifndef NULL
24314 #define NULL (void*)0
24315 #endif
24316
24317 int
24318 main ()
24319 {
24320 pthread_detach(NULL);
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24327   (eval $ac_link) 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } &&
24334          { ac_try='test -z "$ac_c_werror_flag"
24335                          || test ! -s conftest.err'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; } &&
24341          { ac_try='test -s conftest$ac_exeext'
24342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343   (eval $ac_try) 2>&5
24344   ac_status=$?
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); }; }; then
24347   ol_cv_func_pthread_detach=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 ol_cv_func_pthread_detach=no
24353 fi
24354 rm -f conftest.err conftest.$ac_objext \
24355       conftest$ac_exeext conftest.$ac_ext
24356
24357 fi
24358 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24359 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24360
24361                         if test $ol_cv_func_pthread_detach = no ; then
24362                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24363 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24364    { (exit 1); exit 1; }; }
24365                         fi
24366
24367
24368 cat >>confdefs.h <<\_ACEOF
24369 #define HAVE_PTHREAD_DETACH 1
24370 _ACEOF
24371
24372
24373
24374
24375
24376
24377 for ac_func in \
24378                                 pthread_setconcurrency \
24379                                 pthread_getconcurrency \
24380                                 thr_setconcurrency \
24381                                 thr_getconcurrency \
24382
24383 do
24384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24385 echo "$as_me:$LINENO: checking for $ac_func" >&5
24386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24387 if eval "test \"\${$as_ac_var+set}\" = set"; then
24388   echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390   cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h.  */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h.  */
24396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24398 #define $ac_func innocuous_$ac_func
24399
24400 /* System header to define __stub macros and hopefully few prototypes,
24401     which can conflict with char $ac_func (); below.
24402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403     <limits.h> exists even on freestanding compilers.  */
24404
24405 #ifdef __STDC__
24406 # include <limits.h>
24407 #else
24408 # include <assert.h>
24409 #endif
24410
24411 #undef $ac_func
24412
24413 /* Override any gcc2 internal prototype to avoid an error.  */
24414 #ifdef __cplusplus
24415 extern "C"
24416 {
24417 #endif
24418 /* We use char because int might match the return type of a gcc2
24419    builtin and then its argument prototype would still apply.  */
24420 char $ac_func ();
24421 /* The GNU C library defines this for functions which it implements
24422     to always fail with ENOSYS.  Some functions are actually named
24423     something starting with __ and the normal name is an alias.  */
24424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24425 choke me
24426 #else
24427 char (*f) () = $ac_func;
24428 #endif
24429 #ifdef __cplusplus
24430 }
24431 #endif
24432
24433 int
24434 main ()
24435 {
24436 return f != $ac_func;
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 rm -f conftest.$ac_objext conftest$ac_exeext
24442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24443   (eval $ac_link) 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } &&
24450          { ac_try='test -z "$ac_c_werror_flag"
24451                          || test ! -s conftest.err'
24452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); }; } &&
24457          { ac_try='test -s conftest$ac_exeext'
24458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459   (eval $ac_try) 2>&5
24460   ac_status=$?
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); }; }; then
24463   eval "$as_ac_var=yes"
24464 else
24465   echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24467
24468 eval "$as_ac_var=no"
24469 fi
24470 rm -f conftest.err conftest.$ac_objext \
24471       conftest$ac_exeext conftest.$ac_ext
24472 fi
24473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24475 if test `eval echo '${'$as_ac_var'}'` = yes; then
24476   cat >>confdefs.h <<_ACEOF
24477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24478 _ACEOF
24479
24480 fi
24481 done
24482
24483
24484
24485
24486 for ac_func in pthread_kill_other_threads_np
24487 do
24488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24489 echo "$as_me:$LINENO: checking for $ac_func" >&5
24490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24491 if eval "test \"\${$as_ac_var+set}\" = set"; then
24492   echo $ECHO_N "(cached) $ECHO_C" >&6
24493 else
24494   cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h.  */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h.  */
24500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24502 #define $ac_func innocuous_$ac_func
24503
24504 /* System header to define __stub macros and hopefully few prototypes,
24505     which can conflict with char $ac_func (); below.
24506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24507     <limits.h> exists even on freestanding compilers.  */
24508
24509 #ifdef __STDC__
24510 # include <limits.h>
24511 #else
24512 # include <assert.h>
24513 #endif
24514
24515 #undef $ac_func
24516
24517 /* Override any gcc2 internal prototype to avoid an error.  */
24518 #ifdef __cplusplus
24519 extern "C"
24520 {
24521 #endif
24522 /* We use char because int might match the return type of a gcc2
24523    builtin and then its argument prototype would still apply.  */
24524 char $ac_func ();
24525 /* The GNU C library defines this for functions which it implements
24526     to always fail with ENOSYS.  Some functions are actually named
24527     something starting with __ and the normal name is an alias.  */
24528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24529 choke me
24530 #else
24531 char (*f) () = $ac_func;
24532 #endif
24533 #ifdef __cplusplus
24534 }
24535 #endif
24536
24537 int
24538 main ()
24539 {
24540 return f != $ac_func;
24541   ;
24542   return 0;
24543 }
24544 _ACEOF
24545 rm -f conftest.$ac_objext conftest$ac_exeext
24546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24547   (eval $ac_link) 2>conftest.er1
24548   ac_status=$?
24549   grep -v '^ *+' conftest.er1 >conftest.err
24550   rm -f conftest.er1
24551   cat conftest.err >&5
24552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553   (exit $ac_status); } &&
24554          { ac_try='test -z "$ac_c_werror_flag"
24555                          || test ! -s conftest.err'
24556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557   (eval $ac_try) 2>&5
24558   ac_status=$?
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); }; } &&
24561          { ac_try='test -s conftest$ac_exeext'
24562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563   (eval $ac_try) 2>&5
24564   ac_status=$?
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); }; }; then
24567   eval "$as_ac_var=yes"
24568 else
24569   echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24571
24572 eval "$as_ac_var=no"
24573 fi
24574 rm -f conftest.err conftest.$ac_objext \
24575       conftest$ac_exeext conftest.$ac_ext
24576 fi
24577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24579 if test `eval echo '${'$as_ac_var'}'` = yes; then
24580   cat >>confdefs.h <<_ACEOF
24581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24582 _ACEOF
24583
24584 fi
24585 done
24586
24587         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24588 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24589 if test "${ol_cv_sys_linux_threads+set}" = set; then
24590   echo $ECHO_N "(cached) $ECHO_C" >&6
24591 else
24592   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24593 fi
24594 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24595 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24596
24597
24598
24599
24600         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24601 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24602 if test "${ol_cv_linux_threads+set}" = set; then
24603   echo $ECHO_N "(cached) $ECHO_C" >&6
24604 else
24605
24606                 if test $ol_cv_header_linux_threads = yes &&
24607                    test $ol_cv_sys_linux_threads = yes; then
24608                         ol_cv_linux_threads=yes
24609                 elif test $ol_cv_header_linux_threads = no &&
24610                      test $ol_cv_sys_linux_threads = no; then
24611                         ol_cv_linux_threads=no
24612                 else
24613                         ol_cv_linux_threads=error
24614                 fi
24615
24616 fi
24617 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24618 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24619
24620
24621                         if test $ol_cv_linux_threads = error; then
24622                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24623 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24624    { (exit 1); exit 1; }; };
24625                         fi
24626
24627                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24628 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24629 if test "${ol_cv_pthread_create_works+set}" = set; then
24630   echo $ECHO_N "(cached) $ECHO_C" >&6
24631 else
24632
24633                         if test "$cross_compiling" = yes; then
24634                                 ol_cv_pthread_create_works=yes
24635 else
24636   cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h.  */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h.  */
24642
24643 /* pthread test headers */
24644 #include <pthread.h>
24645 #if HAVE_PTHREADS < 7
24646 #include <errno.h>
24647 #endif
24648 #ifndef NULL
24649 #define NULL (void*)0
24650 #endif
24651
24652 static void *task(p)
24653         void *p;
24654 {
24655         return (void *) (p == NULL);
24656 }
24657
24658
24659 int main(argc, argv)
24660         int argc;
24661         char **argv;
24662 {
24663
24664         /* pthread test function */
24665 #ifndef PTHREAD_CREATE_DETACHED
24666 #define PTHREAD_CREATE_DETACHED 1
24667 #endif
24668         pthread_t t;
24669         int status;
24670         int detach = PTHREAD_CREATE_DETACHED;
24671
24672 #if HAVE_PTHREADS > 4
24673         /* Final pthreads */
24674         pthread_attr_t attr;
24675
24676         status = pthread_attr_init(&attr);
24677         if( status ) return status;
24678
24679 #if HAVE_PTHREADS < 7
24680         status = pthread_attr_setdetachstate(&attr, &detach);
24681         if( status < 0 ) status = errno;
24682 #else
24683         status = pthread_attr_setdetachstate(&attr, detach);
24684 #endif
24685         if( status ) return status;
24686         status = pthread_create( &t, &attr, task, NULL );
24687 #if HAVE_PTHREADS < 7
24688         if( status < 0 ) status = errno;
24689 #endif
24690         if( status ) return status;
24691 #else
24692         /* Draft 4 pthreads */
24693         status = pthread_create( &t, pthread_attr_default, task, NULL );
24694         if( status ) return errno;
24695
24696         /* give thread a chance to complete */
24697         /* it should remain joinable and hence detachable */
24698         sleep( 1 );
24699
24700         status = pthread_detach( &t );
24701         if( status ) return errno;
24702 #endif
24703
24704 #ifdef HAVE_LINUX_THREADS
24705         pthread_kill_other_threads_np();
24706 #endif
24707
24708         return 0;
24709
24710 }
24711
24712 _ACEOF
24713 rm -f conftest$ac_exeext
24714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24715   (eval $ac_link) 2>&5
24716   ac_status=$?
24717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); }; }; then
24724   ol_cv_pthread_create_works=yes
24725 else
24726   echo "$as_me: program exited with status $ac_status" >&5
24727 echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.$ac_ext >&5
24729
24730 ( exit $ac_status )
24731 ol_cv_pthread_create_works=no
24732 fi
24733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24734 fi
24735 fi
24736 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24737 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24738
24739                         if test $ol_cv_pthread_create_works = no ; then
24740                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24741 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24742    { (exit 1); exit 1; }; }
24743                         fi
24744
24745                                                 if test $ol_with_yielding_select = auto ; then
24746                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24747 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24748 if test "${ol_cv_pthread_select_yields+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751
24752                                 if test "$cross_compiling" = yes; then
24753   ol_cv_pthread_select_yields=cross
24754 else
24755   cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761
24762 #include <sys/types.h>
24763 #include <sys/time.h>
24764 #include <unistd.h>
24765 #include <pthread.h>
24766 #ifndef NULL
24767 #define NULL (void*) 0
24768 #endif
24769
24770 static int fildes[2];
24771
24772 static void *task(p)
24773         void *p;
24774 {
24775         int i;
24776         struct timeval tv;
24777
24778         fd_set rfds;
24779
24780         tv.tv_sec=10;
24781         tv.tv_usec=0;
24782
24783         FD_ZERO(&rfds);
24784         FD_SET(fildes[0], &rfds);
24785
24786         /* we're not interested in any fds */
24787         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24788
24789         if(i < 0) {
24790                 perror("select");
24791                 exit(10);
24792         }
24793
24794         exit(0); /* if we exit here, the select blocked the whole process */
24795 }
24796
24797 int main(argc, argv)
24798         int argc;
24799         char **argv;
24800 {
24801         pthread_t t;
24802
24803         /* create a pipe to select */
24804         if(pipe(&fildes[0])) {
24805                 perror("select");
24806                 exit(1);
24807         }
24808
24809 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24810         (void) pthread_setconcurrency(2);
24811 #else
24812 #ifdef HAVE_THR_SETCONCURRENCY
24813         /* Set Solaris LWP concurrency to 2 */
24814         thr_setconcurrency(2);
24815 #endif
24816 #endif
24817
24818 #if HAVE_PTHREADS < 6
24819         pthread_create(&t, pthread_attr_default, task, NULL);
24820 #else
24821         pthread_create(&t, NULL, task, NULL);
24822 #endif
24823
24824         /* make sure task runs first */
24825 #if HAVE_THR_YIELD
24826         thr_yield();
24827 #elif defined( HAVE_SCHED_YIELD )
24828         sched_yield();
24829 #elif defined( HAVE_PTHREAD_YIELD )
24830         pthread_yield();
24831 #endif
24832
24833         exit(2);
24834 }
24835 _ACEOF
24836 rm -f conftest$ac_exeext
24837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24838   (eval $ac_link) 2>&5
24839   ac_status=$?
24840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843   (eval $ac_try) 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; }; then
24847   ol_cv_pthread_select_yields=no
24848 else
24849   echo "$as_me: program exited with status $ac_status" >&5
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853 ( exit $ac_status )
24854 ol_cv_pthread_select_yields=yes
24855 fi
24856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24857 fi
24858 fi
24859 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24860 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24861
24862                                 if test $ol_cv_pthread_select_yields = cross ; then
24863                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24864 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24865    { (exit 1); exit 1; }; }
24866                                 fi
24867
24868                                 if test $ol_cv_pthread_select_yields = yes ; then
24869                                         ol_with_yielding_select=yes
24870                                 fi
24871                         fi
24872
24873                                                 CPPFLAGS="$save_CPPFLAGS"
24874                         LIBS="$save_LIBS"
24875                 else
24876                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24877 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24878    { (exit 1); exit 1; }; }
24879                 fi
24880         fi
24881
24882         if test $ol_with_threads = posix ; then
24883                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24884 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24885    { (exit 1); exit 1; }; }
24886         fi
24887         ;;
24888 esac
24889
24890 case $ol_with_threads in auto | yes | mach)
24891
24892
24893
24894 for ac_header in mach/cthreads.h cthreads.h
24895 do
24896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24898   echo "$as_me:$LINENO: checking for $ac_header" >&5
24899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24901   echo $ECHO_N "(cached) $ECHO_C" >&6
24902 fi
24903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24905 else
24906   # Is the header compilable?
24907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24909 cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915 $ac_includes_default
24916 #include <$ac_header>
24917 _ACEOF
24918 rm -f conftest.$ac_objext
24919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24920   (eval $ac_compile) 2>conftest.er1
24921   ac_status=$?
24922   grep -v '^ *+' conftest.er1 >conftest.err
24923   rm -f conftest.er1
24924   cat conftest.err >&5
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } &&
24927          { ac_try='test -z "$ac_c_werror_flag"
24928                          || test ! -s conftest.err'
24929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930   (eval $ac_try) 2>&5
24931   ac_status=$?
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); }; } &&
24934          { ac_try='test -s conftest.$ac_objext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_header_compiler=yes
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945 ac_header_compiler=no
24946 fi
24947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24949 echo "${ECHO_T}$ac_header_compiler" >&6
24950
24951 # Is the header present?
24952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24954 cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960 #include <$ac_header>
24961 _ACEOF
24962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24964   ac_status=$?
24965   grep -v '^ *+' conftest.er1 >conftest.err
24966   rm -f conftest.er1
24967   cat conftest.err >&5
24968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969   (exit $ac_status); } >/dev/null; then
24970   if test -s conftest.err; then
24971     ac_cpp_err=$ac_c_preproc_warn_flag
24972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24973   else
24974     ac_cpp_err=
24975   fi
24976 else
24977   ac_cpp_err=yes
24978 fi
24979 if test -z "$ac_cpp_err"; then
24980   ac_header_preproc=yes
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985   ac_header_preproc=no
24986 fi
24987 rm -f conftest.err conftest.$ac_ext
24988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24989 echo "${ECHO_T}$ac_header_preproc" >&6
24990
24991 # So?  What about this header?
24992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24993   yes:no: )
24994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24998     ac_header_preproc=yes
24999     ;;
25000   no:yes:* )
25001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25013     (
25014       cat <<\_ASBOX
25015 ## ------------------------------------------ ##
25016 ## Report this to the AC_PACKAGE_NAME lists.  ##
25017 ## ------------------------------------------ ##
25018 _ASBOX
25019     ) |
25020       sed "s/^/$as_me: WARNING:     /" >&2
25021     ;;
25022 esac
25023 echo "$as_me:$LINENO: checking for $ac_header" >&5
25024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028   eval "$as_ac_Header=\$ac_header_preproc"
25029 fi
25030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25032
25033 fi
25034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25035   cat >>confdefs.h <<_ACEOF
25036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25037 _ACEOF
25038
25039 fi
25040
25041 done
25042
25043         if test $ac_cv_header_mach_cthreads_h = yes ; then
25044                 ol_with_threads=found
25045
25046                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25047 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25048 if test "${ac_cv_func_cthread_fork+set}" = set; then
25049   echo $ECHO_N "(cached) $ECHO_C" >&6
25050 else
25051   cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25059 #define cthread_fork innocuous_cthread_fork
25060
25061 /* System header to define __stub macros and hopefully few prototypes,
25062     which can conflict with char cthread_fork (); below.
25063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25064     <limits.h> exists even on freestanding compilers.  */
25065
25066 #ifdef __STDC__
25067 # include <limits.h>
25068 #else
25069 # include <assert.h>
25070 #endif
25071
25072 #undef cthread_fork
25073
25074 /* Override any gcc2 internal prototype to avoid an error.  */
25075 #ifdef __cplusplus
25076 extern "C"
25077 {
25078 #endif
25079 /* We use char because int might match the return type of a gcc2
25080    builtin and then its argument prototype would still apply.  */
25081 char cthread_fork ();
25082 /* The GNU C library defines this for functions which it implements
25083     to always fail with ENOSYS.  Some functions are actually named
25084     something starting with __ and the normal name is an alias.  */
25085 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25086 choke me
25087 #else
25088 char (*f) () = cthread_fork;
25089 #endif
25090 #ifdef __cplusplus
25091 }
25092 #endif
25093
25094 int
25095 main ()
25096 {
25097 return f != cthread_fork;
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104   (eval $ac_link) 2>conftest.er1
25105   ac_status=$?
25106   grep -v '^ *+' conftest.er1 >conftest.err
25107   rm -f conftest.er1
25108   cat conftest.err >&5
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } &&
25111          { ac_try='test -z "$ac_c_werror_flag"
25112                          || test ! -s conftest.err'
25113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25114   (eval $ac_try) 2>&5
25115   ac_status=$?
25116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117   (exit $ac_status); }; } &&
25118          { ac_try='test -s conftest$ac_exeext'
25119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120   (eval $ac_try) 2>&5
25121   ac_status=$?
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); }; }; then
25124   ac_cv_func_cthread_fork=yes
25125 else
25126   echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25128
25129 ac_cv_func_cthread_fork=no
25130 fi
25131 rm -f conftest.err conftest.$ac_objext \
25132       conftest$ac_exeext conftest.$ac_ext
25133 fi
25134 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25135 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25136 if test $ac_cv_func_cthread_fork = yes; then
25137   ol_link_threads=yes
25138 fi
25139
25140
25141                 if test $ol_link_threads = no ; then
25142                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25143 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25144 if test "${ol_cv_cthread_all_load+set}" = set; then
25145   echo $ECHO_N "(cached) $ECHO_C" >&6
25146 else
25147
25148                                                                 save_LIBS="$LIBS"
25149                                 LIBS="-all_load $LIBS"
25150                                 cat >conftest.$ac_ext <<_ACEOF
25151 /* confdefs.h.  */
25152 _ACEOF
25153 cat confdefs.h >>conftest.$ac_ext
25154 cat >>conftest.$ac_ext <<_ACEOF
25155 /* end confdefs.h.  */
25156 #include <mach/cthreads.h>
25157 int
25158 main ()
25159 {
25160
25161                                         cthread_fork((void *)0, (void *)0);
25162
25163   ;
25164   return 0;
25165 }
25166 _ACEOF
25167 rm -f conftest.$ac_objext conftest$ac_exeext
25168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25169   (eval $ac_link) 2>conftest.er1
25170   ac_status=$?
25171   grep -v '^ *+' conftest.er1 >conftest.err
25172   rm -f conftest.er1
25173   cat conftest.err >&5
25174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175   (exit $ac_status); } &&
25176          { ac_try='test -z "$ac_c_werror_flag"
25177                          || test ! -s conftest.err'
25178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25179   (eval $ac_try) 2>&5
25180   ac_status=$?
25181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182   (exit $ac_status); }; } &&
25183          { ac_try='test -s conftest$ac_exeext'
25184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185   (eval $ac_try) 2>&5
25186   ac_status=$?
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); }; }; then
25189   ol_cv_cthread_all_load=yes
25190 else
25191   echo "$as_me: failed program was:" >&5
25192 sed 's/^/| /' conftest.$ac_ext >&5
25193
25194 ol_cv_cthread_all_load=no
25195 fi
25196 rm -f conftest.err conftest.$ac_objext \
25197       conftest$ac_exeext conftest.$ac_ext
25198                                                                 LIBS="$save_LIBS"
25199
25200 fi
25201 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25202 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25203
25204                         if test $ol_cv_cthread_all_load = yes ; then
25205                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25206                                 ol_link_threads=mach
25207                                 ol_with_threads=found
25208                         fi
25209                 fi
25210
25211         elif test $ac_cv_header_cthreads_h = yes ; then
25212
25213                 ol_with_threads=found
25214
25215                                 save_LIBS="$LIBS"
25216                 LIBS="$LIBS -lthreads"
25217                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25218 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25219 if test "${ac_cv_func_cthread_fork+set}" = set; then
25220   echo $ECHO_N "(cached) $ECHO_C" >&6
25221 else
25222   cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25230 #define cthread_fork innocuous_cthread_fork
25231
25232 /* System header to define __stub macros and hopefully few prototypes,
25233     which can conflict with char cthread_fork (); below.
25234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25235     <limits.h> exists even on freestanding compilers.  */
25236
25237 #ifdef __STDC__
25238 # include <limits.h>
25239 #else
25240 # include <assert.h>
25241 #endif
25242
25243 #undef cthread_fork
25244
25245 /* Override any gcc2 internal prototype to avoid an error.  */
25246 #ifdef __cplusplus
25247 extern "C"
25248 {
25249 #endif
25250 /* We use char because int might match the return type of a gcc2
25251    builtin and then its argument prototype would still apply.  */
25252 char cthread_fork ();
25253 /* The GNU C library defines this for functions which it implements
25254     to always fail with ENOSYS.  Some functions are actually named
25255     something starting with __ and the normal name is an alias.  */
25256 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25257 choke me
25258 #else
25259 char (*f) () = cthread_fork;
25260 #endif
25261 #ifdef __cplusplus
25262 }
25263 #endif
25264
25265 int
25266 main ()
25267 {
25268 return f != cthread_fork;
25269   ;
25270   return 0;
25271 }
25272 _ACEOF
25273 rm -f conftest.$ac_objext conftest$ac_exeext
25274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25275   (eval $ac_link) 2>conftest.er1
25276   ac_status=$?
25277   grep -v '^ *+' conftest.er1 >conftest.err
25278   rm -f conftest.er1
25279   cat conftest.err >&5
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); } &&
25282          { ac_try='test -z "$ac_c_werror_flag"
25283                          || test ! -s conftest.err'
25284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25285   (eval $ac_try) 2>&5
25286   ac_status=$?
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); }; } &&
25289          { ac_try='test -s conftest$ac_exeext'
25290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); }; }; then
25295   ac_cv_func_cthread_fork=yes
25296 else
25297   echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25299
25300 ac_cv_func_cthread_fork=no
25301 fi
25302 rm -f conftest.err conftest.$ac_objext \
25303       conftest$ac_exeext conftest.$ac_ext
25304 fi
25305 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25306 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25307 if test $ac_cv_func_cthread_fork = yes; then
25308   ol_link_threads=yes
25309 fi
25310
25311                 LIBS="$save_LIBS"
25312
25313                 if test $ol_link_threads = yes ; then
25314                         LTHREAD_LIBS="-lthreads"
25315                         ol_link_threads=mach
25316                         ol_with_threads=found
25317                 else
25318                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25319 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25320    { (exit 1); exit 1; }; }
25321                 fi
25322
25323         elif test $ol_with_threads = mach ; then
25324                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25325 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25326    { (exit 1); exit 1; }; }
25327         fi
25328
25329         if test $ol_link_threads = mach ; then
25330
25331 cat >>confdefs.h <<\_ACEOF
25332 #define HAVE_MACH_CTHREADS 1
25333 _ACEOF
25334
25335         elif test $ol_with_threads = found ; then
25336                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25337 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25338    { (exit 1); exit 1; }; }
25339         fi
25340         ;;
25341 esac
25342
25343 case $ol_with_threads in auto | yes | pth)
25344
25345
25346 for ac_header in pth.h
25347 do
25348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25350   echo "$as_me:$LINENO: checking for $ac_header" >&5
25351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25353   echo $ECHO_N "(cached) $ECHO_C" >&6
25354 fi
25355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25357 else
25358   # Is the header compilable?
25359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 $ac_includes_default
25368 #include <$ac_header>
25369 _ACEOF
25370 rm -f conftest.$ac_objext
25371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25372   (eval $ac_compile) 2>conftest.er1
25373   ac_status=$?
25374   grep -v '^ *+' conftest.er1 >conftest.err
25375   rm -f conftest.er1
25376   cat conftest.err >&5
25377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25378   (exit $ac_status); } &&
25379          { ac_try='test -z "$ac_c_werror_flag"
25380                          || test ! -s conftest.err'
25381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382   (eval $ac_try) 2>&5
25383   ac_status=$?
25384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385   (exit $ac_status); }; } &&
25386          { ac_try='test -s conftest.$ac_objext'
25387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25388   (eval $ac_try) 2>&5
25389   ac_status=$?
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); }; }; then
25392   ac_header_compiler=yes
25393 else
25394   echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397 ac_header_compiler=no
25398 fi
25399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25400 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25401 echo "${ECHO_T}$ac_header_compiler" >&6
25402
25403 # Is the header present?
25404 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25406 cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h.  */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h.  */
25412 #include <$ac_header>
25413 _ACEOF
25414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25416   ac_status=$?
25417   grep -v '^ *+' conftest.er1 >conftest.err
25418   rm -f conftest.er1
25419   cat conftest.err >&5
25420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); } >/dev/null; then
25422   if test -s conftest.err; then
25423     ac_cpp_err=$ac_c_preproc_warn_flag
25424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25425   else
25426     ac_cpp_err=
25427   fi
25428 else
25429   ac_cpp_err=yes
25430 fi
25431 if test -z "$ac_cpp_err"; then
25432   ac_header_preproc=yes
25433 else
25434   echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25436
25437   ac_header_preproc=no
25438 fi
25439 rm -f conftest.err conftest.$ac_ext
25440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25441 echo "${ECHO_T}$ac_header_preproc" >&6
25442
25443 # So?  What about this header?
25444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25445   yes:no: )
25446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25450     ac_header_preproc=yes
25451     ;;
25452   no:yes:* )
25453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25465     (
25466       cat <<\_ASBOX
25467 ## ------------------------------------------ ##
25468 ## Report this to the AC_PACKAGE_NAME lists.  ##
25469 ## ------------------------------------------ ##
25470 _ASBOX
25471     ) |
25472       sed "s/^/$as_me: WARNING:     /" >&2
25473     ;;
25474 esac
25475 echo "$as_me:$LINENO: checking for $ac_header" >&5
25476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25478   echo $ECHO_N "(cached) $ECHO_C" >&6
25479 else
25480   eval "$as_ac_Header=\$ac_header_preproc"
25481 fi
25482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25484
25485 fi
25486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25487   cat >>confdefs.h <<_ACEOF
25488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25489 _ACEOF
25490
25491 fi
25492
25493 done
25494
25495
25496         if test $ac_cv_header_pth_h = yes ; then
25497                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25498 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25499 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25500   echo $ECHO_N "(cached) $ECHO_C" >&6
25501 else
25502   ac_check_lib_save_LIBS=$LIBS
25503 LIBS="-lpth  $LIBS"
25504 cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510
25511 /* Override any gcc2 internal prototype to avoid an error.  */
25512 #ifdef __cplusplus
25513 extern "C"
25514 #endif
25515 /* We use char because int might match the return type of a gcc2
25516    builtin and then its argument prototype would still apply.  */
25517 char pth_version ();
25518 int
25519 main ()
25520 {
25521 pth_version ();
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 rm -f conftest.$ac_objext conftest$ac_exeext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25528   (eval $ac_link) 2>conftest.er1
25529   ac_status=$?
25530   grep -v '^ *+' conftest.er1 >conftest.err
25531   rm -f conftest.er1
25532   cat conftest.err >&5
25533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534   (exit $ac_status); } &&
25535          { ac_try='test -z "$ac_c_werror_flag"
25536                          || test ! -s conftest.err'
25537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25538   (eval $ac_try) 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); }; } &&
25542          { ac_try='test -s conftest$ac_exeext'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; }; then
25548   ac_cv_lib_pth_pth_version=yes
25549 else
25550   echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553 ac_cv_lib_pth_pth_version=no
25554 fi
25555 rm -f conftest.err conftest.$ac_objext \
25556       conftest$ac_exeext conftest.$ac_ext
25557 LIBS=$ac_check_lib_save_LIBS
25558 fi
25559 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25560 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25561 if test $ac_cv_lib_pth_pth_version = yes; then
25562   have_pth=yes
25563 else
25564   have_pth=no
25565 fi
25566
25567
25568                 if test $have_pth = yes ; then
25569
25570 cat >>confdefs.h <<\_ACEOF
25571 #define HAVE_GNU_PTH 1
25572 _ACEOF
25573
25574                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25575                         ol_link_threads=pth
25576                         ol_with_threads=found
25577
25578                         if test $ol_with_yielding_select = auto ; then
25579                                 ol_with_yielding_select=yes
25580                         fi
25581                 fi
25582         fi
25583         ;;
25584 esac
25585
25586 case $ol_with_threads in auto | yes | lwp)
25587
25588
25589
25590 for ac_header in thread.h synch.h
25591 do
25592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25594   echo "$as_me:$LINENO: checking for $ac_header" >&5
25595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25597   echo $ECHO_N "(cached) $ECHO_C" >&6
25598 fi
25599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25601 else
25602   # Is the header compilable?
25603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25605 cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h.  */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h.  */
25611 $ac_includes_default
25612 #include <$ac_header>
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25616   (eval $ac_compile) 2>conftest.er1
25617   ac_status=$?
25618   grep -v '^ *+' conftest.er1 >conftest.err
25619   rm -f conftest.er1
25620   cat conftest.err >&5
25621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622   (exit $ac_status); } &&
25623          { ac_try='test -z "$ac_c_werror_flag"
25624                          || test ! -s conftest.err'
25625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626   (eval $ac_try) 2>&5
25627   ac_status=$?
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); }; } &&
25630          { ac_try='test -s conftest.$ac_objext'
25631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; }; then
25636   ac_header_compiler=yes
25637 else
25638   echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25640
25641 ac_header_compiler=no
25642 fi
25643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25645 echo "${ECHO_T}$ac_header_compiler" >&6
25646
25647 # Is the header present?
25648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h.  */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h.  */
25656 #include <$ac_header>
25657 _ACEOF
25658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25660   ac_status=$?
25661   grep -v '^ *+' conftest.er1 >conftest.err
25662   rm -f conftest.er1
25663   cat conftest.err >&5
25664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); } >/dev/null; then
25666   if test -s conftest.err; then
25667     ac_cpp_err=$ac_c_preproc_warn_flag
25668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25669   else
25670     ac_cpp_err=
25671   fi
25672 else
25673   ac_cpp_err=yes
25674 fi
25675 if test -z "$ac_cpp_err"; then
25676   ac_header_preproc=yes
25677 else
25678   echo "$as_me: failed program was:" >&5
25679 sed 's/^/| /' conftest.$ac_ext >&5
25680
25681   ac_header_preproc=no
25682 fi
25683 rm -f conftest.err conftest.$ac_ext
25684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25685 echo "${ECHO_T}$ac_header_preproc" >&6
25686
25687 # So?  What about this header?
25688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25689   yes:no: )
25690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25694     ac_header_preproc=yes
25695     ;;
25696   no:yes:* )
25697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25709     (
25710       cat <<\_ASBOX
25711 ## ------------------------------------------ ##
25712 ## Report this to the AC_PACKAGE_NAME lists.  ##
25713 ## ------------------------------------------ ##
25714 _ASBOX
25715     ) |
25716       sed "s/^/$as_me: WARNING:     /" >&2
25717     ;;
25718 esac
25719 echo "$as_me:$LINENO: checking for $ac_header" >&5
25720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25722   echo $ECHO_N "(cached) $ECHO_C" >&6
25723 else
25724   eval "$as_ac_Header=\$ac_header_preproc"
25725 fi
25726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25728
25729 fi
25730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25731   cat >>confdefs.h <<_ACEOF
25732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25733 _ACEOF
25734
25735 fi
25736
25737 done
25738
25739         if test $ac_cv_header_thread_h = yes &&
25740            test $ac_cv_header_synch_h = yes ; then
25741                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25742 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25743 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25744   echo $ECHO_N "(cached) $ECHO_C" >&6
25745 else
25746   ac_check_lib_save_LIBS=$LIBS
25747 LIBS="-lthread  $LIBS"
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754
25755 /* Override any gcc2 internal prototype to avoid an error.  */
25756 #ifdef __cplusplus
25757 extern "C"
25758 #endif
25759 /* We use char because int might match the return type of a gcc2
25760    builtin and then its argument prototype would still apply.  */
25761 char thr_create ();
25762 int
25763 main ()
25764 {
25765 thr_create ();
25766   ;
25767   return 0;
25768 }
25769 _ACEOF
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772   (eval $ac_link) 2>conftest.er1
25773   ac_status=$?
25774   grep -v '^ *+' conftest.er1 >conftest.err
25775   rm -f conftest.er1
25776   cat conftest.err >&5
25777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778   (exit $ac_status); } &&
25779          { ac_try='test -z "$ac_c_werror_flag"
25780                          || test ! -s conftest.err'
25781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782   (eval $ac_try) 2>&5
25783   ac_status=$?
25784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785   (exit $ac_status); }; } &&
25786          { ac_try='test -s conftest$ac_exeext'
25787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788   (eval $ac_try) 2>&5
25789   ac_status=$?
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); }; }; then
25792   ac_cv_lib_thread_thr_create=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797 ac_cv_lib_thread_thr_create=no
25798 fi
25799 rm -f conftest.err conftest.$ac_objext \
25800       conftest$ac_exeext conftest.$ac_ext
25801 LIBS=$ac_check_lib_save_LIBS
25802 fi
25803 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25804 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25805 if test $ac_cv_lib_thread_thr_create = yes; then
25806   have_thr=yes
25807 else
25808   have_thr=no
25809 fi
25810
25811
25812                 if test $have_thr = yes ; then
25813
25814 cat >>confdefs.h <<\_ACEOF
25815 #define HAVE_THR 1
25816 _ACEOF
25817
25818                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25819                         ol_link_threads=thr
25820
25821                         if test $ol_with_yielding_select = auto ; then
25822                                 ol_with_yielding_select=yes
25823                         fi
25824
25825
25826
25827 for ac_func in \
25828                                 thr_setconcurrency \
25829                                 thr_getconcurrency \
25830
25831 do
25832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25833 echo "$as_me:$LINENO: checking for $ac_func" >&5
25834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25835 if eval "test \"\${$as_ac_var+set}\" = set"; then
25836   echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838   cat >conftest.$ac_ext <<_ACEOF
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25846 #define $ac_func innocuous_$ac_func
25847
25848 /* System header to define __stub macros and hopefully few prototypes,
25849     which can conflict with char $ac_func (); below.
25850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25851     <limits.h> exists even on freestanding compilers.  */
25852
25853 #ifdef __STDC__
25854 # include <limits.h>
25855 #else
25856 # include <assert.h>
25857 #endif
25858
25859 #undef $ac_func
25860
25861 /* Override any gcc2 internal prototype to avoid an error.  */
25862 #ifdef __cplusplus
25863 extern "C"
25864 {
25865 #endif
25866 /* We use char because int might match the return type of a gcc2
25867    builtin and then its argument prototype would still apply.  */
25868 char $ac_func ();
25869 /* The GNU C library defines this for functions which it implements
25870     to always fail with ENOSYS.  Some functions are actually named
25871     something starting with __ and the normal name is an alias.  */
25872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25873 choke me
25874 #else
25875 char (*f) () = $ac_func;
25876 #endif
25877 #ifdef __cplusplus
25878 }
25879 #endif
25880
25881 int
25882 main ()
25883 {
25884 return f != $ac_func;
25885   ;
25886   return 0;
25887 }
25888 _ACEOF
25889 rm -f conftest.$ac_objext conftest$ac_exeext
25890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25891   (eval $ac_link) 2>conftest.er1
25892   ac_status=$?
25893   grep -v '^ *+' conftest.er1 >conftest.err
25894   rm -f conftest.er1
25895   cat conftest.err >&5
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); } &&
25898          { ac_try='test -z "$ac_c_werror_flag"
25899                          || test ! -s conftest.err'
25900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901   (eval $ac_try) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); }; } &&
25905          { ac_try='test -s conftest$ac_exeext'
25906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907   (eval $ac_try) 2>&5
25908   ac_status=$?
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); }; }; then
25911   eval "$as_ac_var=yes"
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 eval "$as_ac_var=no"
25917 fi
25918 rm -f conftest.err conftest.$ac_objext \
25919       conftest$ac_exeext conftest.$ac_ext
25920 fi
25921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25923 if test `eval echo '${'$as_ac_var'}'` = yes; then
25924   cat >>confdefs.h <<_ACEOF
25925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25926 _ACEOF
25927
25928 fi
25929 done
25930
25931                 fi
25932         fi
25933
25934
25935 for ac_header in lwp/lwp.h
25936 do
25937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25939   echo "$as_me:$LINENO: checking for $ac_header" >&5
25940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25942   echo $ECHO_N "(cached) $ECHO_C" >&6
25943 fi
25944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25946 else
25947   # Is the header compilable?
25948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25950 cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956 $ac_includes_default
25957 #include <$ac_header>
25958 _ACEOF
25959 rm -f conftest.$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961   (eval $ac_compile) 2>conftest.er1
25962   ac_status=$?
25963   grep -v '^ *+' conftest.er1 >conftest.err
25964   rm -f conftest.er1
25965   cat conftest.err >&5
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } &&
25968          { ac_try='test -z "$ac_c_werror_flag"
25969                          || test ! -s conftest.err'
25970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971   (eval $ac_try) 2>&5
25972   ac_status=$?
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); }; } &&
25975          { ac_try='test -s conftest.$ac_objext'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; }; then
25981   ac_header_compiler=yes
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986 ac_header_compiler=no
25987 fi
25988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25990 echo "${ECHO_T}$ac_header_compiler" >&6
25991
25992 # Is the header present?
25993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25995 cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001 #include <$ac_header>
26002 _ACEOF
26003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } >/dev/null; then
26011   if test -s conftest.err; then
26012     ac_cpp_err=$ac_c_preproc_warn_flag
26013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26014   else
26015     ac_cpp_err=
26016   fi
26017 else
26018   ac_cpp_err=yes
26019 fi
26020 if test -z "$ac_cpp_err"; then
26021   ac_header_preproc=yes
26022 else
26023   echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026   ac_header_preproc=no
26027 fi
26028 rm -f conftest.err conftest.$ac_ext
26029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26030 echo "${ECHO_T}$ac_header_preproc" >&6
26031
26032 # So?  What about this header?
26033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26034   yes:no: )
26035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26039     ac_header_preproc=yes
26040     ;;
26041   no:yes:* )
26042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26054     (
26055       cat <<\_ASBOX
26056 ## ------------------------------------------ ##
26057 ## Report this to the AC_PACKAGE_NAME lists.  ##
26058 ## ------------------------------------------ ##
26059 _ASBOX
26060     ) |
26061       sed "s/^/$as_me: WARNING:     /" >&2
26062     ;;
26063 esac
26064 echo "$as_me:$LINENO: checking for $ac_header" >&5
26065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26067   echo $ECHO_N "(cached) $ECHO_C" >&6
26068 else
26069   eval "$as_ac_Header=\$ac_header_preproc"
26070 fi
26071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26073
26074 fi
26075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26076   cat >>confdefs.h <<_ACEOF
26077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26078 _ACEOF
26079
26080 fi
26081
26082 done
26083
26084         if test $ac_cv_header_lwp_lwp_h = yes ; then
26085                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26086 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26087 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26088   echo $ECHO_N "(cached) $ECHO_C" >&6
26089 else
26090   ac_check_lib_save_LIBS=$LIBS
26091 LIBS="-llwp  $LIBS"
26092 cat >conftest.$ac_ext <<_ACEOF
26093 /* confdefs.h.  */
26094 _ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h.  */
26098
26099 /* Override any gcc2 internal prototype to avoid an error.  */
26100 #ifdef __cplusplus
26101 extern "C"
26102 #endif
26103 /* We use char because int might match the return type of a gcc2
26104    builtin and then its argument prototype would still apply.  */
26105 char lwp_create ();
26106 int
26107 main ()
26108 {
26109 lwp_create ();
26110   ;
26111   return 0;
26112 }
26113 _ACEOF
26114 rm -f conftest.$ac_objext conftest$ac_exeext
26115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26116   (eval $ac_link) 2>conftest.er1
26117   ac_status=$?
26118   grep -v '^ *+' conftest.er1 >conftest.err
26119   rm -f conftest.er1
26120   cat conftest.err >&5
26121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122   (exit $ac_status); } &&
26123          { ac_try='test -z "$ac_c_werror_flag"
26124                          || test ! -s conftest.err'
26125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126   (eval $ac_try) 2>&5
26127   ac_status=$?
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); }; } &&
26130          { ac_try='test -s conftest$ac_exeext'
26131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26132   (eval $ac_try) 2>&5
26133   ac_status=$?
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); }; }; then
26136   ac_cv_lib_lwp_lwp_create=yes
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141 ac_cv_lib_lwp_lwp_create=no
26142 fi
26143 rm -f conftest.err conftest.$ac_objext \
26144       conftest$ac_exeext conftest.$ac_ext
26145 LIBS=$ac_check_lib_save_LIBS
26146 fi
26147 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26148 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26149 if test $ac_cv_lib_lwp_lwp_create = yes; then
26150   have_lwp=yes
26151 else
26152   have_lwp=no
26153 fi
26154
26155
26156                 if test $have_lwp = yes ; then
26157
26158 cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_LWP 1
26160 _ACEOF
26161
26162                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26163                         ol_link_threads=lwp
26164
26165                         if test $ol_with_yielding_select = auto ; then
26166                                 ol_with_yielding_select=no
26167                         fi
26168                 fi
26169         fi
26170         ;;
26171 esac
26172
26173 if test $ol_with_yielding_select = yes ; then
26174
26175 cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_YIELDING_SELECT 1
26177 _ACEOF
26178
26179 fi
26180
26181 if test $ol_with_threads = manual ; then
26182                 ol_link_threads=yes
26183
26184         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26185 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26186
26187
26188
26189 for ac_header in pthread.h sched.h
26190 do
26191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26193   echo "$as_me:$LINENO: checking for $ac_header" >&5
26194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26196   echo $ECHO_N "(cached) $ECHO_C" >&6
26197 fi
26198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26200 else
26201   # Is the header compilable?
26202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26204 cat >conftest.$ac_ext <<_ACEOF
26205 /* confdefs.h.  */
26206 _ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h.  */
26210 $ac_includes_default
26211 #include <$ac_header>
26212 _ACEOF
26213 rm -f conftest.$ac_objext
26214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26215   (eval $ac_compile) 2>conftest.er1
26216   ac_status=$?
26217   grep -v '^ *+' conftest.er1 >conftest.err
26218   rm -f conftest.er1
26219   cat conftest.err >&5
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); } &&
26222          { ac_try='test -z "$ac_c_werror_flag"
26223                          || test ! -s conftest.err'
26224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225   (eval $ac_try) 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); }; } &&
26229          { ac_try='test -s conftest.$ac_objext'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; }; then
26235   ac_header_compiler=yes
26236 else
26237   echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240 ac_header_compiler=no
26241 fi
26242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26244 echo "${ECHO_T}$ac_header_compiler" >&6
26245
26246 # Is the header present?
26247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26249 cat >conftest.$ac_ext <<_ACEOF
26250 /* confdefs.h.  */
26251 _ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h.  */
26255 #include <$ac_header>
26256 _ACEOF
26257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26259   ac_status=$?
26260   grep -v '^ *+' conftest.er1 >conftest.err
26261   rm -f conftest.er1
26262   cat conftest.err >&5
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); } >/dev/null; then
26265   if test -s conftest.err; then
26266     ac_cpp_err=$ac_c_preproc_warn_flag
26267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26268   else
26269     ac_cpp_err=
26270   fi
26271 else
26272   ac_cpp_err=yes
26273 fi
26274 if test -z "$ac_cpp_err"; then
26275   ac_header_preproc=yes
26276 else
26277   echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280   ac_header_preproc=no
26281 fi
26282 rm -f conftest.err conftest.$ac_ext
26283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26284 echo "${ECHO_T}$ac_header_preproc" >&6
26285
26286 # So?  What about this header?
26287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26288   yes:no: )
26289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26293     ac_header_preproc=yes
26294     ;;
26295   no:yes:* )
26296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26308     (
26309       cat <<\_ASBOX
26310 ## ------------------------------------------ ##
26311 ## Report this to the AC_PACKAGE_NAME lists.  ##
26312 ## ------------------------------------------ ##
26313 _ASBOX
26314     ) |
26315       sed "s/^/$as_me: WARNING:     /" >&2
26316     ;;
26317 esac
26318 echo "$as_me:$LINENO: checking for $ac_header" >&5
26319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26321   echo $ECHO_N "(cached) $ECHO_C" >&6
26322 else
26323   eval "$as_ac_Header=\$ac_header_preproc"
26324 fi
26325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26327
26328 fi
26329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26330   cat >>confdefs.h <<_ACEOF
26331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26332 _ACEOF
26333
26334 fi
26335
26336 done
26337
26338
26339
26340 for ac_func in sched_yield pthread_yield
26341 do
26342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26343 echo "$as_me:$LINENO: checking for $ac_func" >&5
26344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26345 if eval "test \"\${$as_ac_var+set}\" = set"; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h.  */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h.  */
26354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26356 #define $ac_func innocuous_$ac_func
26357
26358 /* System header to define __stub macros and hopefully few prototypes,
26359     which can conflict with char $ac_func (); below.
26360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26361     <limits.h> exists even on freestanding compilers.  */
26362
26363 #ifdef __STDC__
26364 # include <limits.h>
26365 #else
26366 # include <assert.h>
26367 #endif
26368
26369 #undef $ac_func
26370
26371 /* Override any gcc2 internal prototype to avoid an error.  */
26372 #ifdef __cplusplus
26373 extern "C"
26374 {
26375 #endif
26376 /* We use char because int might match the return type of a gcc2
26377    builtin and then its argument prototype would still apply.  */
26378 char $ac_func ();
26379 /* The GNU C library defines this for functions which it implements
26380     to always fail with ENOSYS.  Some functions are actually named
26381     something starting with __ and the normal name is an alias.  */
26382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26383 choke me
26384 #else
26385 char (*f) () = $ac_func;
26386 #endif
26387 #ifdef __cplusplus
26388 }
26389 #endif
26390
26391 int
26392 main ()
26393 {
26394 return f != $ac_func;
26395   ;
26396   return 0;
26397 }
26398 _ACEOF
26399 rm -f conftest.$ac_objext conftest$ac_exeext
26400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26401   (eval $ac_link) 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } &&
26408          { ac_try='test -z "$ac_c_werror_flag"
26409                          || test ! -s conftest.err'
26410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26411   (eval $ac_try) 2>&5
26412   ac_status=$?
26413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414   (exit $ac_status); }; } &&
26415          { ac_try='test -s conftest$ac_exeext'
26416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26417   (eval $ac_try) 2>&5
26418   ac_status=$?
26419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420   (exit $ac_status); }; }; then
26421   eval "$as_ac_var=yes"
26422 else
26423   echo "$as_me: failed program was:" >&5
26424 sed 's/^/| /' conftest.$ac_ext >&5
26425
26426 eval "$as_ac_var=no"
26427 fi
26428 rm -f conftest.err conftest.$ac_objext \
26429       conftest$ac_exeext conftest.$ac_ext
26430 fi
26431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26433 if test `eval echo '${'$as_ac_var'}'` = yes; then
26434   cat >>confdefs.h <<_ACEOF
26435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26436 _ACEOF
26437
26438 fi
26439 done
26440
26441
26442         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26443 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26444 if test "${ol_cv_header_linux_threads+set}" = set; then
26445   echo $ECHO_N "(cached) $ECHO_C" >&6
26446 else
26447   cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h.  */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h.  */
26453 #include <pthread.h>
26454 _ACEOF
26455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26456   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26457   ol_cv_header_linux_threads=yes
26458 else
26459   ol_cv_header_linux_threads=no
26460 fi
26461 rm -f conftest*
26462
26463
26464 fi
26465 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26466 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26467         if test $ol_cv_header_linux_threads = yes; then
26468
26469 cat >>confdefs.h <<\_ACEOF
26470 #define HAVE_LINUX_THREADS 1
26471 _ACEOF
26472
26473         fi
26474
26475
26476
26477 for ac_header in mach/cthreads.h
26478 do
26479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26481   echo "$as_me:$LINENO: checking for $ac_header" >&5
26482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26484   echo $ECHO_N "(cached) $ECHO_C" >&6
26485 fi
26486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26488 else
26489   # Is the header compilable?
26490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26492 cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498 $ac_includes_default
26499 #include <$ac_header>
26500 _ACEOF
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503   (eval $ac_compile) 2>conftest.er1
26504   ac_status=$?
26505   grep -v '^ *+' conftest.er1 >conftest.err
26506   rm -f conftest.er1
26507   cat conftest.err >&5
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); } &&
26510          { ac_try='test -z "$ac_c_werror_flag"
26511                          || test ! -s conftest.err'
26512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513   (eval $ac_try) 2>&5
26514   ac_status=$?
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); }; } &&
26517          { ac_try='test -s conftest.$ac_objext'
26518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519   (eval $ac_try) 2>&5
26520   ac_status=$?
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); }; }; then
26523   ac_header_compiler=yes
26524 else
26525   echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528 ac_header_compiler=no
26529 fi
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26532 echo "${ECHO_T}$ac_header_compiler" >&6
26533
26534 # Is the header present?
26535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 #include <$ac_header>
26544 _ACEOF
26545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26547   ac_status=$?
26548   grep -v '^ *+' conftest.er1 >conftest.err
26549   rm -f conftest.er1
26550   cat conftest.err >&5
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); } >/dev/null; then
26553   if test -s conftest.err; then
26554     ac_cpp_err=$ac_c_preproc_warn_flag
26555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26556   else
26557     ac_cpp_err=
26558   fi
26559 else
26560   ac_cpp_err=yes
26561 fi
26562 if test -z "$ac_cpp_err"; then
26563   ac_header_preproc=yes
26564 else
26565   echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26567
26568   ac_header_preproc=no
26569 fi
26570 rm -f conftest.err conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26572 echo "${ECHO_T}$ac_header_preproc" >&6
26573
26574 # So?  What about this header?
26575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26576   yes:no: )
26577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26581     ac_header_preproc=yes
26582     ;;
26583   no:yes:* )
26584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26596     (
26597       cat <<\_ASBOX
26598 ## ------------------------------------------ ##
26599 ## Report this to the AC_PACKAGE_NAME lists.  ##
26600 ## ------------------------------------------ ##
26601 _ASBOX
26602     ) |
26603       sed "s/^/$as_me: WARNING:     /" >&2
26604     ;;
26605 esac
26606 echo "$as_me:$LINENO: checking for $ac_header" >&5
26607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26609   echo $ECHO_N "(cached) $ECHO_C" >&6
26610 else
26611   eval "$as_ac_Header=\$ac_header_preproc"
26612 fi
26613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26615
26616 fi
26617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26618   cat >>confdefs.h <<_ACEOF
26619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26620 _ACEOF
26621
26622 fi
26623
26624 done
26625
26626
26627 for ac_header in lwp/lwp.h
26628 do
26629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26631   echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 fi
26636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26638 else
26639   # Is the header compilable?
26640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26642 cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648 $ac_includes_default
26649 #include <$ac_header>
26650 _ACEOF
26651 rm -f conftest.$ac_objext
26652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26653   (eval $ac_compile) 2>conftest.er1
26654   ac_status=$?
26655   grep -v '^ *+' conftest.er1 >conftest.err
26656   rm -f conftest.er1
26657   cat conftest.err >&5
26658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659   (exit $ac_status); } &&
26660          { ac_try='test -z "$ac_c_werror_flag"
26661                          || test ! -s conftest.err'
26662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663   (eval $ac_try) 2>&5
26664   ac_status=$?
26665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666   (exit $ac_status); }; } &&
26667          { ac_try='test -s conftest.$ac_objext'
26668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669   (eval $ac_try) 2>&5
26670   ac_status=$?
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); }; }; then
26673   ac_header_compiler=yes
26674 else
26675   echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26677
26678 ac_header_compiler=no
26679 fi
26680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26682 echo "${ECHO_T}$ac_header_compiler" >&6
26683
26684 # Is the header present?
26685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26687 cat >conftest.$ac_ext <<_ACEOF
26688 /* confdefs.h.  */
26689 _ACEOF
26690 cat confdefs.h >>conftest.$ac_ext
26691 cat >>conftest.$ac_ext <<_ACEOF
26692 /* end confdefs.h.  */
26693 #include <$ac_header>
26694 _ACEOF
26695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26697   ac_status=$?
26698   grep -v '^ *+' conftest.er1 >conftest.err
26699   rm -f conftest.er1
26700   cat conftest.err >&5
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); } >/dev/null; then
26703   if test -s conftest.err; then
26704     ac_cpp_err=$ac_c_preproc_warn_flag
26705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26706   else
26707     ac_cpp_err=
26708   fi
26709 else
26710   ac_cpp_err=yes
26711 fi
26712 if test -z "$ac_cpp_err"; then
26713   ac_header_preproc=yes
26714 else
26715   echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718   ac_header_preproc=no
26719 fi
26720 rm -f conftest.err conftest.$ac_ext
26721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26722 echo "${ECHO_T}$ac_header_preproc" >&6
26723
26724 # So?  What about this header?
26725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26726   yes:no: )
26727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26731     ac_header_preproc=yes
26732     ;;
26733   no:yes:* )
26734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26746     (
26747       cat <<\_ASBOX
26748 ## ------------------------------------------ ##
26749 ## Report this to the AC_PACKAGE_NAME lists.  ##
26750 ## ------------------------------------------ ##
26751 _ASBOX
26752     ) |
26753       sed "s/^/$as_me: WARNING:     /" >&2
26754     ;;
26755 esac
26756 echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 else
26761   eval "$as_ac_Header=\$ac_header_preproc"
26762 fi
26763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26765
26766 fi
26767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26768   cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26770 _ACEOF
26771
26772 fi
26773
26774 done
26775
26776
26777
26778 for ac_header in thread.h synch.h
26779 do
26780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782   echo "$as_me:$LINENO: checking for $ac_header" >&5
26783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26785   echo $ECHO_N "(cached) $ECHO_C" >&6
26786 fi
26787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26789 else
26790   # Is the header compilable?
26791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26793 cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h.  */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h.  */
26799 $ac_includes_default
26800 #include <$ac_header>
26801 _ACEOF
26802 rm -f conftest.$ac_objext
26803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26804   (eval $ac_compile) 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } &&
26811          { ac_try='test -z "$ac_c_werror_flag"
26812                          || test ! -s conftest.err'
26813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26814   (eval $ac_try) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); }; } &&
26818          { ac_try='test -s conftest.$ac_objext'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; }; then
26824   ac_header_compiler=yes
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829 ac_header_compiler=no
26830 fi
26831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26833 echo "${ECHO_T}$ac_header_compiler" >&6
26834
26835 # Is the header present?
26836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 #include <$ac_header>
26845 _ACEOF
26846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } >/dev/null; then
26854   if test -s conftest.err; then
26855     ac_cpp_err=$ac_c_preproc_warn_flag
26856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26857   else
26858     ac_cpp_err=
26859   fi
26860 else
26861   ac_cpp_err=yes
26862 fi
26863 if test -z "$ac_cpp_err"; then
26864   ac_header_preproc=yes
26865 else
26866   echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26868
26869   ac_header_preproc=no
26870 fi
26871 rm -f conftest.err conftest.$ac_ext
26872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26873 echo "${ECHO_T}$ac_header_preproc" >&6
26874
26875 # So?  What about this header?
26876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26877   yes:no: )
26878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26882     ac_header_preproc=yes
26883     ;;
26884   no:yes:* )
26885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26897     (
26898       cat <<\_ASBOX
26899 ## ------------------------------------------ ##
26900 ## Report this to the AC_PACKAGE_NAME lists.  ##
26901 ## ------------------------------------------ ##
26902 _ASBOX
26903     ) |
26904       sed "s/^/$as_me: WARNING:     /" >&2
26905     ;;
26906 esac
26907 echo "$as_me:$LINENO: checking for $ac_header" >&5
26908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26910   echo $ECHO_N "(cached) $ECHO_C" >&6
26911 else
26912   eval "$as_ac_Header=\$ac_header_preproc"
26913 fi
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26916
26917 fi
26918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26919   cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26921 _ACEOF
26922
26923 fi
26924
26925 done
26926
26927 fi
26928
26929 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26930                         cat >>confdefs.h <<\_ACEOF
26931 #define REENTRANT 1
26932 _ACEOF
26933
26934         cat >>confdefs.h <<\_ACEOF
26935 #define _REENTRANT 1
26936 _ACEOF
26937
26938         cat >>confdefs.h <<\_ACEOF
26939 #define THREAD_SAFE 1
26940 _ACEOF
26941
26942         cat >>confdefs.h <<\_ACEOF
26943 #define _THREAD_SAFE 1
26944 _ACEOF
26945
26946         cat >>confdefs.h <<\_ACEOF
26947 #define THREADSAFE 1
26948 _ACEOF
26949
26950         cat >>confdefs.h <<\_ACEOF
26951 #define _THREADSAFE 1
26952 _ACEOF
26953
26954         cat >>confdefs.h <<\_ACEOF
26955 #define _SGI_MP_SOURCE 1
26956 _ACEOF
26957
26958
26959                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26960 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26961 if test "${ol_cv_errno_thread_specific+set}" = set; then
26962   echo $ECHO_N "(cached) $ECHO_C" >&6
26963 else
26964
26965                 cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 #include <errno.h>
26972 int
26973 main ()
26974 {
26975 errno = 0;
26976   ;
26977   return 0;
26978 }
26979 _ACEOF
26980 rm -f conftest.$ac_objext conftest$ac_exeext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26982   (eval $ac_link) 2>conftest.er1
26983   ac_status=$?
26984   grep -v '^ *+' conftest.er1 >conftest.err
26985   rm -f conftest.er1
26986   cat conftest.err >&5
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); } &&
26989          { ac_try='test -z "$ac_c_werror_flag"
26990                          || test ! -s conftest.err'
26991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992   (eval $ac_try) 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; } &&
26996          { ac_try='test -s conftest$ac_exeext'
26997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998   (eval $ac_try) 2>&5
26999   ac_status=$?
27000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); }; }; then
27002   ol_cv_errno_thread_specific=yes
27003 else
27004   echo "$as_me: failed program was:" >&5
27005 sed 's/^/| /' conftest.$ac_ext >&5
27006
27007 ol_cv_errno_thread_specific=no
27008 fi
27009 rm -f conftest.err conftest.$ac_objext \
27010       conftest$ac_exeext conftest.$ac_ext
27011
27012 fi
27013 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27014 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27015
27016                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27017 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27018 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27019   echo $ECHO_N "(cached) $ECHO_C" >&6
27020 else
27021
27022                 cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028 #include <netdb.h>
27029 int
27030 main ()
27031 {
27032 h_errno = 0;
27033   ;
27034   return 0;
27035 }
27036 _ACEOF
27037 rm -f conftest.$ac_objext conftest$ac_exeext
27038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27039   (eval $ac_link) 2>conftest.er1
27040   ac_status=$?
27041   grep -v '^ *+' conftest.er1 >conftest.err
27042   rm -f conftest.er1
27043   cat conftest.err >&5
27044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045   (exit $ac_status); } &&
27046          { ac_try='test -z "$ac_c_werror_flag"
27047                          || test ! -s conftest.err'
27048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049   (eval $ac_try) 2>&5
27050   ac_status=$?
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); }; } &&
27053          { ac_try='test -s conftest$ac_exeext'
27054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27055   (eval $ac_try) 2>&5
27056   ac_status=$?
27057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058   (exit $ac_status); }; }; then
27059   ol_cv_h_errno_thread_specific=yes
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 ol_cv_h_errno_thread_specific=no
27065 fi
27066 rm -f conftest.err conftest.$ac_objext \
27067       conftest$ac_exeext conftest.$ac_ext
27068
27069 fi
27070 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27071 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27072
27073         if test $ol_cv_errno_thread_specific != yes ||
27074            test $ol_cv_h_errno_thread_specific != yes ; then
27075                 LIBS="$LTHREAD_LIBS $LIBS"
27076                 LTHREAD_LIBS=""
27077         fi
27078
27079 fi
27080
27081 if test $ol_link_threads = no ; then
27082         if test $ol_with_threads = yes ; then
27083                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27084 echo "$as_me: error: no suitable thread support" >&2;}
27085    { (exit 1); exit 1; }; }
27086         fi
27087
27088         if test $ol_with_threads = auto ; then
27089                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27090 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27091                 ol_with_threads=no
27092         fi
27093
27094
27095 cat >>confdefs.h <<\_ACEOF
27096 #define NO_THREADS 1
27097 _ACEOF
27098
27099         LTHREAD_LIBS=""
27100         BUILD_THREAD=no
27101 else
27102         BUILD_THREAD=yes
27103 fi
27104
27105 if test $ol_link_threads != no ; then
27106
27107 cat >>confdefs.h <<\_ACEOF
27108 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27109 _ACEOF
27110
27111 fi
27112
27113
27114
27115
27116 for ac_func in \
27117         ctime_r                 \
27118         gethostbyname_r gethostbyaddr_r \
27119
27120 do
27121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27122 echo "$as_me:$LINENO: checking for $ac_func" >&5
27123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27124 if eval "test \"\${$as_ac_var+set}\" = set"; then
27125   echo $ECHO_N "(cached) $ECHO_C" >&6
27126 else
27127   cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h.  */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h.  */
27133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27135 #define $ac_func innocuous_$ac_func
27136
27137 /* System header to define __stub macros and hopefully few prototypes,
27138     which can conflict with char $ac_func (); below.
27139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27140     <limits.h> exists even on freestanding compilers.  */
27141
27142 #ifdef __STDC__
27143 # include <limits.h>
27144 #else
27145 # include <assert.h>
27146 #endif
27147
27148 #undef $ac_func
27149
27150 /* Override any gcc2 internal prototype to avoid an error.  */
27151 #ifdef __cplusplus
27152 extern "C"
27153 {
27154 #endif
27155 /* We use char because int might match the return type of a gcc2
27156    builtin and then its argument prototype would still apply.  */
27157 char $ac_func ();
27158 /* The GNU C library defines this for functions which it implements
27159     to always fail with ENOSYS.  Some functions are actually named
27160     something starting with __ and the normal name is an alias.  */
27161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27162 choke me
27163 #else
27164 char (*f) () = $ac_func;
27165 #endif
27166 #ifdef __cplusplus
27167 }
27168 #endif
27169
27170 int
27171 main ()
27172 {
27173 return f != $ac_func;
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 rm -f conftest.$ac_objext conftest$ac_exeext
27179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27180   (eval $ac_link) 2>conftest.er1
27181   ac_status=$?
27182   grep -v '^ *+' conftest.er1 >conftest.err
27183   rm -f conftest.er1
27184   cat conftest.err >&5
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); } &&
27187          { ac_try='test -z "$ac_c_werror_flag"
27188                          || test ! -s conftest.err'
27189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27190   (eval $ac_try) 2>&5
27191   ac_status=$?
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); }; } &&
27194          { ac_try='test -s conftest$ac_exeext'
27195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196   (eval $ac_try) 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); }; }; then
27200   eval "$as_ac_var=yes"
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205 eval "$as_ac_var=no"
27206 fi
27207 rm -f conftest.err conftest.$ac_objext \
27208       conftest$ac_exeext conftest.$ac_ext
27209 fi
27210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27212 if test `eval echo '${'$as_ac_var'}'` = yes; then
27213   cat >>confdefs.h <<_ACEOF
27214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27215 _ACEOF
27216
27217 fi
27218 done
27219
27220
27221 if test "$ac_cv_func_ctime_r" = no ; then
27222         ol_cv_func_ctime_r_nargs=0
27223 else
27224         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27225 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27226 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229   cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 #include <time.h>
27236 int
27237 main ()
27238 {
27239 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27240   ;
27241   return 0;
27242 }
27243 _ACEOF
27244 rm -f conftest.$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246   (eval $ac_compile) 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } &&
27253          { ac_try='test -z "$ac_c_werror_flag"
27254                          || test ! -s conftest.err'
27255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256   (eval $ac_try) 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); }; } &&
27260          { ac_try='test -s conftest.$ac_objext'
27261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262   (eval $ac_try) 2>&5
27263   ac_status=$?
27264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265   (exit $ac_status); }; }; then
27266   ol_cv_func_ctime_r_nargs3=yes
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271 ol_cv_func_ctime_r_nargs3=no
27272 fi
27273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27274
27275         cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281 #include <time.h>
27282 int
27283 main ()
27284 {
27285 time_t ti; char *buffer; ctime_r(&ti,buffer);
27286   ;
27287   return 0;
27288 }
27289 _ACEOF
27290 rm -f conftest.$ac_objext
27291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27292   (eval $ac_compile) 2>conftest.er1
27293   ac_status=$?
27294   grep -v '^ *+' conftest.er1 >conftest.err
27295   rm -f conftest.er1
27296   cat conftest.err >&5
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); } &&
27299          { ac_try='test -z "$ac_c_werror_flag"
27300                          || test ! -s conftest.err'
27301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302   (eval $ac_try) 2>&5
27303   ac_status=$?
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); }; } &&
27306          { ac_try='test -s conftest.$ac_objext'
27307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308   (eval $ac_try) 2>&5
27309   ac_status=$?
27310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311   (exit $ac_status); }; }; then
27312   ol_cv_func_ctime_r_nargs2=yes
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317 ol_cv_func_ctime_r_nargs2=no
27318 fi
27319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27320
27321         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27322            test $ol_cv_func_ctime_r_nargs2 = no ; then
27323
27324                 ol_cv_func_ctime_r_nargs=3
27325
27326         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27327              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27328
27329                 ol_cv_func_ctime_r_nargs=2
27330
27331         else
27332                 ol_cv_func_ctime_r_nargs=0
27333         fi
27334
27335 fi
27336 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27337 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27338
27339   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27340
27341 cat >>confdefs.h <<_ACEOF
27342 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27343 _ACEOF
27344
27345   fi
27346
27347 fi
27348
27349 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27350         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27351 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27352 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355   cat >conftest.$ac_ext <<_ACEOF
27356 /* confdefs.h.  */
27357 _ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h.  */
27361 #include <sys/types.h>
27362 #include <sys/socket.h>
27363 #include <netinet/in.h>
27364 #include <netdb.h>
27365 #define BUFSIZE (sizeof(struct hostent)+10)
27366 int
27367 main ()
27368 {
27369 struct hostent hent; char buffer[BUFSIZE];
27370                 int bufsize=BUFSIZE;int h_errno;
27371                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27372                         buffer, bufsize, &h_errno);
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 rm -f conftest.$ac_objext
27378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27379   (eval $ac_compile) 2>conftest.er1
27380   ac_status=$?
27381   grep -v '^ *+' conftest.er1 >conftest.err
27382   rm -f conftest.er1
27383   cat conftest.err >&5
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); } &&
27386          { ac_try='test -z "$ac_c_werror_flag"
27387                          || test ! -s conftest.err'
27388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389   (eval $ac_try) 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; } &&
27393          { ac_try='test -s conftest.$ac_objext'
27394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395   (eval $ac_try) 2>&5
27396   ac_status=$?
27397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398   (exit $ac_status); }; }; then
27399   ol_cv_func_gethostbyname_r_nargs5=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ol_cv_func_gethostbyname_r_nargs5=no
27405 fi
27406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27407
27408         cat >conftest.$ac_ext <<_ACEOF
27409 /* confdefs.h.  */
27410 _ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h.  */
27414 #include <sys/types.h>
27415 #include <sys/socket.h>
27416 #include <netinet/in.h>
27417 #include <netdb.h>
27418 #define BUFSIZE (sizeof(struct hostent)+10)
27419 int
27420 main ()
27421 {
27422 struct hostent hent;struct hostent *rhent;
27423                 char buffer[BUFSIZE];
27424                 int bufsize=BUFSIZE;int h_errno;
27425                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27426                         &rhent, &h_errno);
27427   ;
27428   return 0;
27429 }
27430 _ACEOF
27431 rm -f conftest.$ac_objext
27432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27433   (eval $ac_compile) 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } &&
27440          { ac_try='test -z "$ac_c_werror_flag"
27441                          || test ! -s conftest.err'
27442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443   (eval $ac_try) 2>&5
27444   ac_status=$?
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); }; } &&
27447          { ac_try='test -s conftest.$ac_objext'
27448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449   (eval $ac_try) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; }; then
27453   ol_cv_func_gethostbyname_r_nargs6=yes
27454 else
27455   echo "$as_me: failed program was:" >&5
27456 sed 's/^/| /' conftest.$ac_ext >&5
27457
27458 ol_cv_func_gethostbyname_r_nargs6=no
27459 fi
27460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27461
27462         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27463            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27464
27465                 ol_cv_func_gethostbyname_r_nargs=5
27466
27467         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27468              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27469
27470                 ol_cv_func_gethostbyname_r_nargs=6
27471
27472         else
27473                 ol_cv_func_gethostbyname_r_nargs=0
27474         fi
27475
27476 fi
27477 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27478 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27479   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27480
27481 cat >>confdefs.h <<_ACEOF
27482 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27483 _ACEOF
27484
27485   fi
27486
27487 else
27488         ol_cv_func_gethostbyname_r_nargs=0
27489 fi
27490
27491 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27492         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27493 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27494 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27495   echo $ECHO_N "(cached) $ECHO_C" >&6
27496 else
27497   cat >conftest.$ac_ext <<_ACEOF
27498 /* confdefs.h.  */
27499 _ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h.  */
27503 #include <sys/types.h>
27504 #include <sys/socket.h>
27505 #include <netinet/in.h>
27506 #include <netdb.h>
27507 #define BUFSIZE (sizeof(struct hostent)+10)
27508 int
27509 main ()
27510 {
27511 struct hostent hent; char buffer[BUFSIZE];
27512             struct in_addr add;
27513             size_t alen=sizeof(struct in_addr);
27514             int bufsize=BUFSIZE;int h_errno;
27515                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27516                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27517   ;
27518   return 0;
27519 }
27520 _ACEOF
27521 rm -f conftest.$ac_objext
27522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27523   (eval $ac_compile) 2>conftest.er1
27524   ac_status=$?
27525   grep -v '^ *+' conftest.er1 >conftest.err
27526   rm -f conftest.er1
27527   cat conftest.err >&5
27528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529   (exit $ac_status); } &&
27530          { ac_try='test -z "$ac_c_werror_flag"
27531                          || test ! -s conftest.err'
27532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27533   (eval $ac_try) 2>&5
27534   ac_status=$?
27535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536   (exit $ac_status); }; } &&
27537          { ac_try='test -s conftest.$ac_objext'
27538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539   (eval $ac_try) 2>&5
27540   ac_status=$?
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); }; }; then
27543   ol_cv_func_gethostbyaddr_r_nargs7=yes
27544 else
27545   echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27547
27548 ol_cv_func_gethostbyaddr_r_nargs7=no
27549 fi
27550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27551
27552         cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h.  */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h.  */
27558 #include <sys/types.h>
27559 #include <sys/socket.h>
27560 #include <netinet/in.h>
27561 #include <netdb.h>
27562 #define BUFSIZE (sizeof(struct hostent)+10)
27563 int
27564 main ()
27565 {
27566 struct hostent hent;
27567                 struct hostent *rhent; char buffer[BUFSIZE];
27568                 struct in_addr add;
27569                 size_t alen=sizeof(struct in_addr);
27570                 int bufsize=BUFSIZE;int h_errno;
27571                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27572                         alen, AF_INET, &hent, buffer, bufsize,
27573                         &rhent, &h_errno);
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext
27579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27580   (eval $ac_compile) 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } &&
27587          { ac_try='test -z "$ac_c_werror_flag"
27588                          || test ! -s conftest.err'
27589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590   (eval $ac_try) 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; } &&
27594          { ac_try='test -s conftest.$ac_objext'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; }; then
27600   ol_cv_func_gethostbyaddr_r_nargs8=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ol_cv_func_gethostbyaddr_r_nargs8=no
27606 fi
27607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27608
27609         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27610            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27611
27612                 ol_cv_func_gethostbyaddr_r_nargs=7
27613
27614         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27615              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27616
27617                 ol_cv_func_gethostbyaddr_r_nargs=8
27618
27619         else
27620                 ol_cv_func_gethostbyaddr_r_nargs=0
27621         fi
27622
27623 fi
27624 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27625 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27626   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27627
27628 cat >>confdefs.h <<_ACEOF
27629 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27630 _ACEOF
27631
27632   fi
27633
27634 else
27635         ol_cv_func_gethostbyaddr_r_nargs=0
27636 fi
27637
27638 ol_link_ldbm=no
27639
27640 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27641
27642         if test $ol_enable_ldbm_api = bcompat; then \
27643
27644
27645 for ac_header in db_185.h db.h
27646 do
27647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27649   echo "$as_me:$LINENO: checking for $ac_header" >&5
27650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27652   echo $ECHO_N "(cached) $ECHO_C" >&6
27653 fi
27654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27656 else
27657   # Is the header compilable?
27658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27660 cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666 $ac_includes_default
27667 #include <$ac_header>
27668 _ACEOF
27669 rm -f conftest.$ac_objext
27670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27671   (eval $ac_compile) 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } &&
27678          { ac_try='test -z "$ac_c_werror_flag"
27679                          || test ! -s conftest.err'
27680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681   (eval $ac_try) 2>&5
27682   ac_status=$?
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); }; } &&
27685          { ac_try='test -s conftest.$ac_objext'
27686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687   (eval $ac_try) 2>&5
27688   ac_status=$?
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); }; }; then
27691   ac_header_compiler=yes
27692 else
27693   echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27695
27696 ac_header_compiler=no
27697 fi
27698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27700 echo "${ECHO_T}$ac_header_compiler" >&6
27701
27702 # Is the header present?
27703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27705 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 #include <$ac_header>
27712 _ACEOF
27713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27715   ac_status=$?
27716   grep -v '^ *+' conftest.er1 >conftest.err
27717   rm -f conftest.er1
27718   cat conftest.err >&5
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); } >/dev/null; then
27721   if test -s conftest.err; then
27722     ac_cpp_err=$ac_c_preproc_warn_flag
27723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27724   else
27725     ac_cpp_err=
27726   fi
27727 else
27728   ac_cpp_err=yes
27729 fi
27730 if test -z "$ac_cpp_err"; then
27731   ac_header_preproc=yes
27732 else
27733   echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27735
27736   ac_header_preproc=no
27737 fi
27738 rm -f conftest.err conftest.$ac_ext
27739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27740 echo "${ECHO_T}$ac_header_preproc" >&6
27741
27742 # So?  What about this header?
27743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27744   yes:no: )
27745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27749     ac_header_preproc=yes
27750     ;;
27751   no:yes:* )
27752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27764     (
27765       cat <<\_ASBOX
27766 ## ------------------------------------------ ##
27767 ## Report this to the AC_PACKAGE_NAME lists.  ##
27768 ## ------------------------------------------ ##
27769 _ASBOX
27770     ) |
27771       sed "s/^/$as_me: WARNING:     /" >&2
27772     ;;
27773 esac
27774 echo "$as_me:$LINENO: checking for $ac_header" >&5
27775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27777   echo $ECHO_N "(cached) $ECHO_C" >&6
27778 else
27779   eval "$as_ac_Header=\$ac_header_preproc"
27780 fi
27781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27783
27784 fi
27785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27786   cat >>confdefs.h <<_ACEOF
27787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27788 _ACEOF
27789
27790 fi
27791
27792 done
27793
27794 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27795         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27796 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27797 if test "${ol_cv_header_db1+set}" = set; then
27798   echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800
27801                 cat >conftest.$ac_ext <<_ACEOF
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807
27808 #if HAVE_DB_185_H
27809 #       include <db_185.h>
27810 #else
27811 #       include <db.h>
27812 #endif
27813
27814  /* this check could be improved */
27815 #ifndef DB_VERSION_MAJOR
27816 #       define DB_VERSION_MAJOR 1
27817 #endif
27818
27819 #if DB_VERSION_MAJOR == 1
27820         __db_version_1
27821 #endif
27822
27823 _ACEOF
27824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27825   $EGREP "__db_version_1" >/dev/null 2>&1; then
27826   ol_cv_header_db1=yes
27827 else
27828   ol_cv_header_db1=no
27829 fi
27830 rm -f conftest*
27831
27832 fi
27833 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27834 echo "${ECHO_T}$ol_cv_header_db1" >&6
27835
27836         if test $ol_cv_header_db1 = yes ; then
27837                 ol_cv_lib_db=no
27838
27839 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27840 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27841 if test "${ol_cv_bdb_major+set}" = set; then
27842   echo $ECHO_N "(cached) $ECHO_C" >&6
27843 else
27844
27845         ol_cv_bdb_major=0
27846         if test $ol_cv_bdb_major = 0 ; then
27847                 cat >conftest.$ac_ext <<_ACEOF
27848 /* confdefs.h.  */
27849 _ACEOF
27850 cat confdefs.h >>conftest.$ac_ext
27851 cat >>conftest.$ac_ext <<_ACEOF
27852 /* end confdefs.h.  */
27853
27854 #include <db.h>
27855 #ifndef DB_VERSION_MAJOR
27856 #       define DB_VERSION_MAJOR 1
27857 #endif
27858 #if DB_VERSION_MAJOR == 4
27859 __db_version
27860 #endif
27861
27862 _ACEOF
27863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27864   $EGREP "__db_version" >/dev/null 2>&1; then
27865   ol_cv_bdb_major=4
27866 else
27867   :
27868 fi
27869 rm -f conftest*
27870
27871         fi
27872         if test $ol_cv_bdb_major = 0 ; then
27873                 cat >conftest.$ac_ext <<_ACEOF
27874 /* confdefs.h.  */
27875 _ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h.  */
27879
27880 #include <db.h>
27881 #ifndef DB_VERSION_MAJOR
27882 #       define DB_VERSION_MAJOR 1
27883 #endif
27884 #if DB_VERSION_MAJOR == 3
27885 __db_version
27886 #endif
27887
27888 _ACEOF
27889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27890   $EGREP "__db_version" >/dev/null 2>&1; then
27891   ol_cv_bdb_major=3
27892 else
27893   :
27894 fi
27895 rm -f conftest*
27896
27897         fi
27898         if test $ol_cv_bdb_major = 0 ; then
27899                 cat >conftest.$ac_ext <<_ACEOF
27900 /* confdefs.h.  */
27901 _ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h.  */
27905
27906 #include <db.h>
27907 #ifndef DB_VERSION_MAJOR
27908 #       define DB_VERSION_MAJOR 1
27909 #endif
27910 #if DB_VERSION_MAJOR == 2
27911 __db_version
27912 #endif
27913
27914 _ACEOF
27915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27916   $EGREP "__db_version" >/dev/null 2>&1; then
27917   ol_cv_bdb_major=2
27918 else
27919   :
27920 fi
27921 rm -f conftest*
27922
27923         fi
27924         if test $ol_cv_bdb_major = 0 ; then
27925                 cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931
27932 #include <db.h>
27933 #ifndef DB_VERSION_MAJOR
27934 #       define DB_VERSION_MAJOR 1
27935 #endif
27936 #if DB_VERSION_MAJOR == 1
27937 __db_version
27938 #endif
27939
27940 _ACEOF
27941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27942   $EGREP "__db_version" >/dev/null 2>&1; then
27943   ol_cv_bdb_major=1
27944 else
27945   :
27946 fi
27947 rm -f conftest*
27948
27949         fi
27950
27951         if test $ol_cv_bdb_major = 0 ; then
27952                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27953 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27954    { (exit 1); exit 1; }; }
27955         fi
27956
27957 fi
27958 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27959 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27960
27961 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27962 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27963 if test "${ol_cv_bdb_minor+set}" = set; then
27964   echo $ECHO_N "(cached) $ECHO_C" >&6
27965 else
27966
27967         ol_cv_bdb_minor=0
27968         if test $ol_cv_bdb_minor = 0 ; then
27969                 cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975
27976 #include <db.h>
27977 #ifndef DB_VERSION_MINOR
27978 #       define DB_VERSION_MINOR 0
27979 #endif
27980 #if DB_VERSION_MINOR == 9
27981 __db_version
27982 #endif
27983
27984 _ACEOF
27985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27986   $EGREP "__db_version" >/dev/null 2>&1; then
27987   ol_cv_bdb_minor=9
27988 else
27989   :
27990 fi
27991 rm -f conftest*
27992
27993         fi
27994         if test $ol_cv_bdb_minor = 0 ; then
27995                 cat >conftest.$ac_ext <<_ACEOF
27996 /* confdefs.h.  */
27997 _ACEOF
27998 cat confdefs.h >>conftest.$ac_ext
27999 cat >>conftest.$ac_ext <<_ACEOF
28000 /* end confdefs.h.  */
28001
28002 #include <db.h>
28003 #ifndef DB_VERSION_MINOR
28004 #       define DB_VERSION_MINOR 0
28005 #endif
28006 #if DB_VERSION_MINOR == 8
28007 __db_version
28008 #endif
28009
28010 _ACEOF
28011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28012   $EGREP "__db_version" >/dev/null 2>&1; then
28013   ol_cv_bdb_minor=8
28014 else
28015   :
28016 fi
28017 rm -f conftest*
28018
28019         fi
28020         if test $ol_cv_bdb_minor = 0 ; then
28021                 cat >conftest.$ac_ext <<_ACEOF
28022 /* confdefs.h.  */
28023 _ACEOF
28024 cat confdefs.h >>conftest.$ac_ext
28025 cat >>conftest.$ac_ext <<_ACEOF
28026 /* end confdefs.h.  */
28027
28028 #include <db.h>
28029 #ifndef DB_VERSION_MINOR
28030 #       define DB_VERSION_MINOR 0
28031 #endif
28032 #if DB_VERSION_MINOR == 7
28033 __db_version
28034 #endif
28035
28036 _ACEOF
28037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28038   $EGREP "__db_version" >/dev/null 2>&1; then
28039   ol_cv_bdb_minor=7
28040 else
28041   :
28042 fi
28043 rm -f conftest*
28044
28045         fi
28046         if test $ol_cv_bdb_minor = 0 ; then
28047                 cat >conftest.$ac_ext <<_ACEOF
28048 /* confdefs.h.  */
28049 _ACEOF
28050 cat confdefs.h >>conftest.$ac_ext
28051 cat >>conftest.$ac_ext <<_ACEOF
28052 /* end confdefs.h.  */
28053
28054 #include <db.h>
28055 #ifndef DB_VERSION_MINOR
28056 #       define DB_VERSION_MINOR 0
28057 #endif
28058 #if DB_VERSION_MINOR == 6
28059 __db_version
28060 #endif
28061
28062 _ACEOF
28063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28064   $EGREP "__db_version" >/dev/null 2>&1; then
28065   ol_cv_bdb_minor=6
28066 else
28067   :
28068 fi
28069 rm -f conftest*
28070
28071         fi
28072         if test $ol_cv_bdb_minor = 0 ; then
28073                 cat >conftest.$ac_ext <<_ACEOF
28074 /* confdefs.h.  */
28075 _ACEOF
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h.  */
28079
28080 #include <db.h>
28081 #ifndef DB_VERSION_MINOR
28082 #       define DB_VERSION_MINOR 0
28083 #endif
28084 #if DB_VERSION_MINOR == 5
28085 __db_version
28086 #endif
28087
28088 _ACEOF
28089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28090   $EGREP "__db_version" >/dev/null 2>&1; then
28091   ol_cv_bdb_minor=5
28092 else
28093   :
28094 fi
28095 rm -f conftest*
28096
28097         fi
28098         if test $ol_cv_bdb_minor = 0 ; then
28099                 cat >conftest.$ac_ext <<_ACEOF
28100 /* confdefs.h.  */
28101 _ACEOF
28102 cat confdefs.h >>conftest.$ac_ext
28103 cat >>conftest.$ac_ext <<_ACEOF
28104 /* end confdefs.h.  */
28105
28106 #include <db.h>
28107 #ifndef DB_VERSION_MINOR
28108 #       define DB_VERSION_MINOR 0
28109 #endif
28110 #if DB_VERSION_MINOR == 4
28111 __db_version
28112 #endif
28113
28114 _ACEOF
28115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116   $EGREP "__db_version" >/dev/null 2>&1; then
28117   ol_cv_bdb_minor=4
28118 else
28119   :
28120 fi
28121 rm -f conftest*
28122
28123         fi
28124         if test $ol_cv_bdb_minor = 0 ; then
28125                 cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131
28132 #include <db.h>
28133 #ifndef DB_VERSION_MINOR
28134 #       define DB_VERSION_MINOR 0
28135 #endif
28136 #if DB_VERSION_MINOR == 3
28137 __db_version
28138 #endif
28139
28140 _ACEOF
28141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28142   $EGREP "__db_version" >/dev/null 2>&1; then
28143   ol_cv_bdb_minor=3
28144 else
28145   :
28146 fi
28147 rm -f conftest*
28148
28149         fi
28150         if test $ol_cv_bdb_minor = 0 ; then
28151                 cat >conftest.$ac_ext <<_ACEOF
28152 /* confdefs.h.  */
28153 _ACEOF
28154 cat confdefs.h >>conftest.$ac_ext
28155 cat >>conftest.$ac_ext <<_ACEOF
28156 /* end confdefs.h.  */
28157
28158 #include <db.h>
28159 #ifndef DB_VERSION_MINOR
28160 #       define DB_VERSION_MINOR 0
28161 #endif
28162 #if DB_VERSION_MINOR == 2
28163 __db_version
28164 #endif
28165
28166 _ACEOF
28167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28168   $EGREP "__db_version" >/dev/null 2>&1; then
28169   ol_cv_bdb_minor=2
28170 else
28171   :
28172 fi
28173 rm -f conftest*
28174
28175         fi
28176         if test $ol_cv_bdb_minor = 0 ; then
28177                 cat >conftest.$ac_ext <<_ACEOF
28178 /* confdefs.h.  */
28179 _ACEOF
28180 cat confdefs.h >>conftest.$ac_ext
28181 cat >>conftest.$ac_ext <<_ACEOF
28182 /* end confdefs.h.  */
28183
28184 #include <db.h>
28185 #ifndef DB_VERSION_MINOR
28186 #       define DB_VERSION_MINOR 0
28187 #endif
28188 #if DB_VERSION_MINOR == 1
28189 __db_version
28190 #endif
28191
28192 _ACEOF
28193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28194   $EGREP "__db_version" >/dev/null 2>&1; then
28195   ol_cv_bdb_minor=1
28196 else
28197   :
28198 fi
28199 rm -f conftest*
28200
28201         fi
28202
28203 fi
28204 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28205 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28206
28207 if test $ol_cv_bdb_major = 4 ; then
28208         if test $ol_cv_bdb_minor = 4 ; then
28209                 if test $ol_cv_lib_db = no ; then
28210         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28211 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28212 if test "${ol_cv_db_db44+set}" = set; then
28213   echo $ECHO_N "(cached) $ECHO_C" >&6
28214 else
28215
28216         ol_DB_LIB=-ldb44
28217         ol_LIBS=$LIBS
28218         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28219
28220         cat >conftest.$ac_ext <<_ACEOF
28221 /* confdefs.h.  */
28222 _ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h.  */
28226
28227 #ifdef HAVE_DB_185_H
28228 # include <db_185.h>
28229 #else
28230 # include <db.h>
28231 #endif
28232
28233 #ifndef DB_VERSION_MAJOR
28234 # define DB_VERSION_MAJOR 1
28235 #endif
28236
28237 #ifndef NULL
28238 #define NULL ((void*)0)
28239 #endif
28240
28241 int
28242 main ()
28243 {
28244
28245 #if DB_VERSION_MAJOR > 1
28246         {
28247                 char *version;
28248                 int major, minor, patch;
28249
28250                 version = db_version( &major, &minor, &patch );
28251
28252                 if( major != DB_VERSION_MAJOR ||
28253                         minor < DB_VERSION_MINOR )
28254                 {
28255                         printf("Berkeley DB version mismatch\n"
28256                                 "\theader: %s\n\tlibrary: %s\n",
28257                                 DB_VERSION_STRING, version);
28258                         return 1;
28259                 }
28260         }
28261 #endif
28262
28263 #if DB_VERSION_MAJOR > 2
28264         db_env_create( NULL, 0 );
28265 #elif DB_VERSION_MAJOR > 1
28266         db_appexit( NULL );
28267 #else
28268         (void) dbopen( NULL, 0, 0, 0, NULL);
28269 #endif
28270
28271   ;
28272   return 0;
28273 }
28274 _ACEOF
28275 rm -f conftest.$ac_objext conftest$ac_exeext
28276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28277   (eval $ac_link) 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } &&
28284          { ac_try='test -z "$ac_c_werror_flag"
28285                          || test ! -s conftest.err'
28286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287   (eval $ac_try) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; } &&
28291          { ac_try='test -s conftest$ac_exeext'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   ol_cv_db_db44=yes
28298 else
28299   echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ol_cv_db_db44=no
28303 fi
28304 rm -f conftest.err conftest.$ac_objext \
28305       conftest$ac_exeext conftest.$ac_ext
28306
28307         LIBS="$ol_LIBS"
28308
28309 fi
28310 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28311 echo "${ECHO_T}$ol_cv_db_db44" >&6
28312
28313         if test $ol_cv_db_db44 = yes ; then
28314                 ol_cv_lib_db=-ldb44
28315         fi
28316 fi
28317
28318                 if test $ol_cv_lib_db = no ; then
28319         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28320 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28321 if test "${ol_cv_db_db_44+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324
28325         ol_DB_LIB=-ldb-44
28326         ol_LIBS=$LIBS
28327         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28328
28329         cat >conftest.$ac_ext <<_ACEOF
28330 /* confdefs.h.  */
28331 _ACEOF
28332 cat confdefs.h >>conftest.$ac_ext
28333 cat >>conftest.$ac_ext <<_ACEOF
28334 /* end confdefs.h.  */
28335
28336 #ifdef HAVE_DB_185_H
28337 # include <db_185.h>
28338 #else
28339 # include <db.h>
28340 #endif
28341
28342 #ifndef DB_VERSION_MAJOR
28343 # define DB_VERSION_MAJOR 1
28344 #endif
28345
28346 #ifndef NULL
28347 #define NULL ((void*)0)
28348 #endif
28349
28350 int
28351 main ()
28352 {
28353
28354 #if DB_VERSION_MAJOR > 1
28355         {
28356                 char *version;
28357                 int major, minor, patch;
28358
28359                 version = db_version( &major, &minor, &patch );
28360
28361                 if( major != DB_VERSION_MAJOR ||
28362                         minor < DB_VERSION_MINOR )
28363                 {
28364                         printf("Berkeley DB version mismatch\n"
28365                                 "\theader: %s\n\tlibrary: %s\n",
28366                                 DB_VERSION_STRING, version);
28367                         return 1;
28368                 }
28369         }
28370 #endif
28371
28372 #if DB_VERSION_MAJOR > 2
28373         db_env_create( NULL, 0 );
28374 #elif DB_VERSION_MAJOR > 1
28375         db_appexit( NULL );
28376 #else
28377         (void) dbopen( NULL, 0, 0, 0, NULL);
28378 #endif
28379
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28386   (eval $ac_link) 2>conftest.er1
28387   ac_status=$?
28388   grep -v '^ *+' conftest.er1 >conftest.err
28389   rm -f conftest.er1
28390   cat conftest.err >&5
28391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392   (exit $ac_status); } &&
28393          { ac_try='test -z "$ac_c_werror_flag"
28394                          || test ! -s conftest.err'
28395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396   (eval $ac_try) 2>&5
28397   ac_status=$?
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); }; } &&
28400          { ac_try='test -s conftest$ac_exeext'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; }; then
28406   ol_cv_db_db_44=yes
28407 else
28408   echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28410
28411 ol_cv_db_db_44=no
28412 fi
28413 rm -f conftest.err conftest.$ac_objext \
28414       conftest$ac_exeext conftest.$ac_ext
28415
28416         LIBS="$ol_LIBS"
28417
28418 fi
28419 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28420 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28421
28422         if test $ol_cv_db_db_44 = yes ; then
28423                 ol_cv_lib_db=-ldb-44
28424         fi
28425 fi
28426
28427                 if test $ol_cv_lib_db = no ; then
28428         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28429 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28430 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28431   echo $ECHO_N "(cached) $ECHO_C" >&6
28432 else
28433
28434         ol_DB_LIB=-ldb-4.4
28435         ol_LIBS=$LIBS
28436         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28437
28438         cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h.  */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h.  */
28444
28445 #ifdef HAVE_DB_185_H
28446 # include <db_185.h>
28447 #else
28448 # include <db.h>
28449 #endif
28450
28451 #ifndef DB_VERSION_MAJOR
28452 # define DB_VERSION_MAJOR 1
28453 #endif
28454
28455 #ifndef NULL
28456 #define NULL ((void*)0)
28457 #endif
28458
28459 int
28460 main ()
28461 {
28462
28463 #if DB_VERSION_MAJOR > 1
28464         {
28465                 char *version;
28466                 int major, minor, patch;
28467
28468                 version = db_version( &major, &minor, &patch );
28469
28470                 if( major != DB_VERSION_MAJOR ||
28471                         minor < DB_VERSION_MINOR )
28472                 {
28473                         printf("Berkeley DB version mismatch\n"
28474                                 "\theader: %s\n\tlibrary: %s\n",
28475                                 DB_VERSION_STRING, version);
28476                         return 1;
28477                 }
28478         }
28479 #endif
28480
28481 #if DB_VERSION_MAJOR > 2
28482         db_env_create( NULL, 0 );
28483 #elif DB_VERSION_MAJOR > 1
28484         db_appexit( NULL );
28485 #else
28486         (void) dbopen( NULL, 0, 0, 0, NULL);
28487 #endif
28488
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28495   (eval $ac_link) 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } &&
28502          { ac_try='test -z "$ac_c_werror_flag"
28503                          || test ! -s conftest.err'
28504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505   (eval $ac_try) 2>&5
28506   ac_status=$?
28507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508   (exit $ac_status); }; } &&
28509          { ac_try='test -s conftest$ac_exeext'
28510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511   (eval $ac_try) 2>&5
28512   ac_status=$?
28513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514   (exit $ac_status); }; }; then
28515   ol_cv_db_db_4_dot_4=yes
28516 else
28517   echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520 ol_cv_db_db_4_dot_4=no
28521 fi
28522 rm -f conftest.err conftest.$ac_objext \
28523       conftest$ac_exeext conftest.$ac_ext
28524
28525         LIBS="$ol_LIBS"
28526
28527 fi
28528 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28529 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28530
28531         if test $ol_cv_db_db_4_dot_4 = yes ; then
28532                 ol_cv_lib_db=-ldb-4.4
28533         fi
28534 fi
28535
28536                 if test $ol_cv_lib_db = no ; then
28537         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28538 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28539 if test "${ol_cv_db_db_4_4+set}" = set; then
28540   echo $ECHO_N "(cached) $ECHO_C" >&6
28541 else
28542
28543         ol_DB_LIB=-ldb-4-4
28544         ol_LIBS=$LIBS
28545         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28546
28547         cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h.  */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h.  */
28553
28554 #ifdef HAVE_DB_185_H
28555 # include <db_185.h>
28556 #else
28557 # include <db.h>
28558 #endif
28559
28560 #ifndef DB_VERSION_MAJOR
28561 # define DB_VERSION_MAJOR 1
28562 #endif
28563
28564 #ifndef NULL
28565 #define NULL ((void*)0)
28566 #endif
28567
28568 int
28569 main ()
28570 {
28571
28572 #if DB_VERSION_MAJOR > 1
28573         {
28574                 char *version;
28575                 int major, minor, patch;
28576
28577                 version = db_version( &major, &minor, &patch );
28578
28579                 if( major != DB_VERSION_MAJOR ||
28580                         minor < DB_VERSION_MINOR )
28581                 {
28582                         printf("Berkeley DB version mismatch\n"
28583                                 "\theader: %s\n\tlibrary: %s\n",
28584                                 DB_VERSION_STRING, version);
28585                         return 1;
28586                 }
28587         }
28588 #endif
28589
28590 #if DB_VERSION_MAJOR > 2
28591         db_env_create( NULL, 0 );
28592 #elif DB_VERSION_MAJOR > 1
28593         db_appexit( NULL );
28594 #else
28595         (void) dbopen( NULL, 0, 0, 0, NULL);
28596 #endif
28597
28598   ;
28599   return 0;
28600 }
28601 _ACEOF
28602 rm -f conftest.$ac_objext conftest$ac_exeext
28603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28604   (eval $ac_link) 2>conftest.er1
28605   ac_status=$?
28606   grep -v '^ *+' conftest.er1 >conftest.err
28607   rm -f conftest.er1
28608   cat conftest.err >&5
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); } &&
28611          { ac_try='test -z "$ac_c_werror_flag"
28612                          || test ! -s conftest.err'
28613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614   (eval $ac_try) 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); }; } &&
28618          { ac_try='test -s conftest$ac_exeext'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; }; then
28624   ol_cv_db_db_4_4=yes
28625 else
28626   echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 ol_cv_db_db_4_4=no
28630 fi
28631 rm -f conftest.err conftest.$ac_objext \
28632       conftest$ac_exeext conftest.$ac_ext
28633
28634         LIBS="$ol_LIBS"
28635
28636 fi
28637 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28638 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28639
28640         if test $ol_cv_db_db_4_4 = yes ; then
28641                 ol_cv_lib_db=-ldb-4-4
28642         fi
28643 fi
28644
28645         elif test $ol_cv_bdb_minor = 3 ; then
28646                 if test $ol_cv_lib_db = no ; then
28647         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28648 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28649 if test "${ol_cv_db_db43+set}" = set; then
28650   echo $ECHO_N "(cached) $ECHO_C" >&6
28651 else
28652
28653         ol_DB_LIB=-ldb43
28654         ol_LIBS=$LIBS
28655         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28656
28657         cat >conftest.$ac_ext <<_ACEOF
28658 /* confdefs.h.  */
28659 _ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h.  */
28663
28664 #ifdef HAVE_DB_185_H
28665 # include <db_185.h>
28666 #else
28667 # include <db.h>
28668 #endif
28669
28670 #ifndef DB_VERSION_MAJOR
28671 # define DB_VERSION_MAJOR 1
28672 #endif
28673
28674 #ifndef NULL
28675 #define NULL ((void*)0)
28676 #endif
28677
28678 int
28679 main ()
28680 {
28681
28682 #if DB_VERSION_MAJOR > 1
28683         {
28684                 char *version;
28685                 int major, minor, patch;
28686
28687                 version = db_version( &major, &minor, &patch );
28688
28689                 if( major != DB_VERSION_MAJOR ||
28690                         minor < DB_VERSION_MINOR )
28691                 {
28692                         printf("Berkeley DB version mismatch\n"
28693                                 "\theader: %s\n\tlibrary: %s\n",
28694                                 DB_VERSION_STRING, version);
28695                         return 1;
28696                 }
28697         }
28698 #endif
28699
28700 #if DB_VERSION_MAJOR > 2
28701         db_env_create( NULL, 0 );
28702 #elif DB_VERSION_MAJOR > 1
28703         db_appexit( NULL );
28704 #else
28705         (void) dbopen( NULL, 0, 0, 0, NULL);
28706 #endif
28707
28708   ;
28709   return 0;
28710 }
28711 _ACEOF
28712 rm -f conftest.$ac_objext conftest$ac_exeext
28713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28714   (eval $ac_link) 2>conftest.er1
28715   ac_status=$?
28716   grep -v '^ *+' conftest.er1 >conftest.err
28717   rm -f conftest.er1
28718   cat conftest.err >&5
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); } &&
28721          { ac_try='test -z "$ac_c_werror_flag"
28722                          || test ! -s conftest.err'
28723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724   (eval $ac_try) 2>&5
28725   ac_status=$?
28726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727   (exit $ac_status); }; } &&
28728          { ac_try='test -s conftest$ac_exeext'
28729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730   (eval $ac_try) 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); }; }; then
28734   ol_cv_db_db43=yes
28735 else
28736   echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28738
28739 ol_cv_db_db43=no
28740 fi
28741 rm -f conftest.err conftest.$ac_objext \
28742       conftest$ac_exeext conftest.$ac_ext
28743
28744         LIBS="$ol_LIBS"
28745
28746 fi
28747 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28748 echo "${ECHO_T}$ol_cv_db_db43" >&6
28749
28750         if test $ol_cv_db_db43 = yes ; then
28751                 ol_cv_lib_db=-ldb43
28752         fi
28753 fi
28754
28755                 if test $ol_cv_lib_db = no ; then
28756         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28757 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28758 if test "${ol_cv_db_db_43+set}" = set; then
28759   echo $ECHO_N "(cached) $ECHO_C" >&6
28760 else
28761
28762         ol_DB_LIB=-ldb-43
28763         ol_LIBS=$LIBS
28764         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28765
28766         cat >conftest.$ac_ext <<_ACEOF
28767 /* confdefs.h.  */
28768 _ACEOF
28769 cat confdefs.h >>conftest.$ac_ext
28770 cat >>conftest.$ac_ext <<_ACEOF
28771 /* end confdefs.h.  */
28772
28773 #ifdef HAVE_DB_185_H
28774 # include <db_185.h>
28775 #else
28776 # include <db.h>
28777 #endif
28778
28779 #ifndef DB_VERSION_MAJOR
28780 # define DB_VERSION_MAJOR 1
28781 #endif
28782
28783 #ifndef NULL
28784 #define NULL ((void*)0)
28785 #endif
28786
28787 int
28788 main ()
28789 {
28790
28791 #if DB_VERSION_MAJOR > 1
28792         {
28793                 char *version;
28794                 int major, minor, patch;
28795
28796                 version = db_version( &major, &minor, &patch );
28797
28798                 if( major != DB_VERSION_MAJOR ||
28799                         minor < DB_VERSION_MINOR )
28800                 {
28801                         printf("Berkeley DB version mismatch\n"
28802                                 "\theader: %s\n\tlibrary: %s\n",
28803                                 DB_VERSION_STRING, version);
28804                         return 1;
28805                 }
28806         }
28807 #endif
28808
28809 #if DB_VERSION_MAJOR > 2
28810         db_env_create( NULL, 0 );
28811 #elif DB_VERSION_MAJOR > 1
28812         db_appexit( NULL );
28813 #else
28814         (void) dbopen( NULL, 0, 0, 0, NULL);
28815 #endif
28816
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823   (eval $ac_link) 2>conftest.er1
28824   ac_status=$?
28825   grep -v '^ *+' conftest.er1 >conftest.err
28826   rm -f conftest.er1
28827   cat conftest.err >&5
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } &&
28830          { ac_try='test -z "$ac_c_werror_flag"
28831                          || test ! -s conftest.err'
28832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833   (eval $ac_try) 2>&5
28834   ac_status=$?
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); }; } &&
28837          { ac_try='test -s conftest$ac_exeext'
28838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839   (eval $ac_try) 2>&5
28840   ac_status=$?
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); }; }; then
28843   ol_cv_db_db_43=yes
28844 else
28845   echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28847
28848 ol_cv_db_db_43=no
28849 fi
28850 rm -f conftest.err conftest.$ac_objext \
28851       conftest$ac_exeext conftest.$ac_ext
28852
28853         LIBS="$ol_LIBS"
28854
28855 fi
28856 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28857 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28858
28859         if test $ol_cv_db_db_43 = yes ; then
28860                 ol_cv_lib_db=-ldb-43
28861         fi
28862 fi
28863
28864                 if test $ol_cv_lib_db = no ; then
28865         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28866 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28867 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28868   echo $ECHO_N "(cached) $ECHO_C" >&6
28869 else
28870
28871         ol_DB_LIB=-ldb-4.3
28872         ol_LIBS=$LIBS
28873         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28874
28875         cat >conftest.$ac_ext <<_ACEOF
28876 /* confdefs.h.  */
28877 _ACEOF
28878 cat confdefs.h >>conftest.$ac_ext
28879 cat >>conftest.$ac_ext <<_ACEOF
28880 /* end confdefs.h.  */
28881
28882 #ifdef HAVE_DB_185_H
28883 # include <db_185.h>
28884 #else
28885 # include <db.h>
28886 #endif
28887
28888 #ifndef DB_VERSION_MAJOR
28889 # define DB_VERSION_MAJOR 1
28890 #endif
28891
28892 #ifndef NULL
28893 #define NULL ((void*)0)
28894 #endif
28895
28896 int
28897 main ()
28898 {
28899
28900 #if DB_VERSION_MAJOR > 1
28901         {
28902                 char *version;
28903                 int major, minor, patch;
28904
28905                 version = db_version( &major, &minor, &patch );
28906
28907                 if( major != DB_VERSION_MAJOR ||
28908                         minor < DB_VERSION_MINOR )
28909                 {
28910                         printf("Berkeley DB version mismatch\n"
28911                                 "\theader: %s\n\tlibrary: %s\n",
28912                                 DB_VERSION_STRING, version);
28913                         return 1;
28914                 }
28915         }
28916 #endif
28917
28918 #if DB_VERSION_MAJOR > 2
28919         db_env_create( NULL, 0 );
28920 #elif DB_VERSION_MAJOR > 1
28921         db_appexit( NULL );
28922 #else
28923         (void) dbopen( NULL, 0, 0, 0, NULL);
28924 #endif
28925
28926   ;
28927   return 0;
28928 }
28929 _ACEOF
28930 rm -f conftest.$ac_objext conftest$ac_exeext
28931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28932   (eval $ac_link) 2>conftest.er1
28933   ac_status=$?
28934   grep -v '^ *+' conftest.er1 >conftest.err
28935   rm -f conftest.er1
28936   cat conftest.err >&5
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); } &&
28939          { ac_try='test -z "$ac_c_werror_flag"
28940                          || test ! -s conftest.err'
28941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942   (eval $ac_try) 2>&5
28943   ac_status=$?
28944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); }; } &&
28946          { ac_try='test -s conftest$ac_exeext'
28947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948   (eval $ac_try) 2>&5
28949   ac_status=$?
28950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951   (exit $ac_status); }; }; then
28952   ol_cv_db_db_4_dot_3=yes
28953 else
28954   echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28956
28957 ol_cv_db_db_4_dot_3=no
28958 fi
28959 rm -f conftest.err conftest.$ac_objext \
28960       conftest$ac_exeext conftest.$ac_ext
28961
28962         LIBS="$ol_LIBS"
28963
28964 fi
28965 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28966 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28967
28968         if test $ol_cv_db_db_4_dot_3 = yes ; then
28969                 ol_cv_lib_db=-ldb-4.3
28970         fi
28971 fi
28972
28973                 if test $ol_cv_lib_db = no ; then
28974         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28975 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28976 if test "${ol_cv_db_db_4_3+set}" = set; then
28977   echo $ECHO_N "(cached) $ECHO_C" >&6
28978 else
28979
28980         ol_DB_LIB=-ldb-4-3
28981         ol_LIBS=$LIBS
28982         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28983
28984         cat >conftest.$ac_ext <<_ACEOF
28985 /* confdefs.h.  */
28986 _ACEOF
28987 cat confdefs.h >>conftest.$ac_ext
28988 cat >>conftest.$ac_ext <<_ACEOF
28989 /* end confdefs.h.  */
28990
28991 #ifdef HAVE_DB_185_H
28992 # include <db_185.h>
28993 #else
28994 # include <db.h>
28995 #endif
28996
28997 #ifndef DB_VERSION_MAJOR
28998 # define DB_VERSION_MAJOR 1
28999 #endif
29000
29001 #ifndef NULL
29002 #define NULL ((void*)0)
29003 #endif
29004
29005 int
29006 main ()
29007 {
29008
29009 #if DB_VERSION_MAJOR > 1
29010         {
29011                 char *version;
29012                 int major, minor, patch;
29013
29014                 version = db_version( &major, &minor, &patch );
29015
29016                 if( major != DB_VERSION_MAJOR ||
29017                         minor < DB_VERSION_MINOR )
29018                 {
29019                         printf("Berkeley DB version mismatch\n"
29020                                 "\theader: %s\n\tlibrary: %s\n",
29021                                 DB_VERSION_STRING, version);
29022                         return 1;
29023                 }
29024         }
29025 #endif
29026
29027 #if DB_VERSION_MAJOR > 2
29028         db_env_create( NULL, 0 );
29029 #elif DB_VERSION_MAJOR > 1
29030         db_appexit( NULL );
29031 #else
29032         (void) dbopen( NULL, 0, 0, 0, NULL);
29033 #endif
29034
29035   ;
29036   return 0;
29037 }
29038 _ACEOF
29039 rm -f conftest.$ac_objext conftest$ac_exeext
29040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29041   (eval $ac_link) 2>conftest.er1
29042   ac_status=$?
29043   grep -v '^ *+' conftest.er1 >conftest.err
29044   rm -f conftest.er1
29045   cat conftest.err >&5
29046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047   (exit $ac_status); } &&
29048          { ac_try='test -z "$ac_c_werror_flag"
29049                          || test ! -s conftest.err'
29050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051   (eval $ac_try) 2>&5
29052   ac_status=$?
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); }; } &&
29055          { ac_try='test -s conftest$ac_exeext'
29056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29057   (eval $ac_try) 2>&5
29058   ac_status=$?
29059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060   (exit $ac_status); }; }; then
29061   ol_cv_db_db_4_3=yes
29062 else
29063   echo "$as_me: failed program was:" >&5
29064 sed 's/^/| /' conftest.$ac_ext >&5
29065
29066 ol_cv_db_db_4_3=no
29067 fi
29068 rm -f conftest.err conftest.$ac_objext \
29069       conftest$ac_exeext conftest.$ac_ext
29070
29071         LIBS="$ol_LIBS"
29072
29073 fi
29074 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29075 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29076
29077         if test $ol_cv_db_db_4_3 = yes ; then
29078                 ol_cv_lib_db=-ldb-4-3
29079         fi
29080 fi
29081
29082         elif test $ol_cv_bdb_minor = 2 ; then
29083                 if test $ol_cv_lib_db = no ; then
29084         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29085 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29086 if test "${ol_cv_db_db42+set}" = set; then
29087   echo $ECHO_N "(cached) $ECHO_C" >&6
29088 else
29089
29090         ol_DB_LIB=-ldb42
29091         ol_LIBS=$LIBS
29092         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29093
29094         cat >conftest.$ac_ext <<_ACEOF
29095 /* confdefs.h.  */
29096 _ACEOF
29097 cat confdefs.h >>conftest.$ac_ext
29098 cat >>conftest.$ac_ext <<_ACEOF
29099 /* end confdefs.h.  */
29100
29101 #ifdef HAVE_DB_185_H
29102 # include <db_185.h>
29103 #else
29104 # include <db.h>
29105 #endif
29106
29107 #ifndef DB_VERSION_MAJOR
29108 # define DB_VERSION_MAJOR 1
29109 #endif
29110
29111 #ifndef NULL
29112 #define NULL ((void*)0)
29113 #endif
29114
29115 int
29116 main ()
29117 {
29118
29119 #if DB_VERSION_MAJOR > 1
29120         {
29121                 char *version;
29122                 int major, minor, patch;
29123
29124                 version = db_version( &major, &minor, &patch );
29125
29126                 if( major != DB_VERSION_MAJOR ||
29127                         minor < DB_VERSION_MINOR )
29128                 {
29129                         printf("Berkeley DB version mismatch\n"
29130                                 "\theader: %s\n\tlibrary: %s\n",
29131                                 DB_VERSION_STRING, version);
29132                         return 1;
29133                 }
29134         }
29135 #endif
29136
29137 #if DB_VERSION_MAJOR > 2
29138         db_env_create( NULL, 0 );
29139 #elif DB_VERSION_MAJOR > 1
29140         db_appexit( NULL );
29141 #else
29142         (void) dbopen( NULL, 0, 0, 0, NULL);
29143 #endif
29144
29145   ;
29146   return 0;
29147 }
29148 _ACEOF
29149 rm -f conftest.$ac_objext conftest$ac_exeext
29150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29151   (eval $ac_link) 2>conftest.er1
29152   ac_status=$?
29153   grep -v '^ *+' conftest.er1 >conftest.err
29154   rm -f conftest.er1
29155   cat conftest.err >&5
29156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157   (exit $ac_status); } &&
29158          { ac_try='test -z "$ac_c_werror_flag"
29159                          || test ! -s conftest.err'
29160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161   (eval $ac_try) 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; } &&
29165          { ac_try='test -s conftest$ac_exeext'
29166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167   (eval $ac_try) 2>&5
29168   ac_status=$?
29169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); }; }; then
29171   ol_cv_db_db42=yes
29172 else
29173   echo "$as_me: failed program was:" >&5
29174 sed 's/^/| /' conftest.$ac_ext >&5
29175
29176 ol_cv_db_db42=no
29177 fi
29178 rm -f conftest.err conftest.$ac_objext \
29179       conftest$ac_exeext conftest.$ac_ext
29180
29181         LIBS="$ol_LIBS"
29182
29183 fi
29184 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29185 echo "${ECHO_T}$ol_cv_db_db42" >&6
29186
29187         if test $ol_cv_db_db42 = yes ; then
29188                 ol_cv_lib_db=-ldb42
29189         fi
29190 fi
29191
29192                 if test $ol_cv_lib_db = no ; then
29193         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29194 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29195 if test "${ol_cv_db_db_42+set}" = set; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198
29199         ol_DB_LIB=-ldb-42
29200         ol_LIBS=$LIBS
29201         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29202
29203         cat >conftest.$ac_ext <<_ACEOF
29204 /* confdefs.h.  */
29205 _ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h.  */
29209
29210 #ifdef HAVE_DB_185_H
29211 # include <db_185.h>
29212 #else
29213 # include <db.h>
29214 #endif
29215
29216 #ifndef DB_VERSION_MAJOR
29217 # define DB_VERSION_MAJOR 1
29218 #endif
29219
29220 #ifndef NULL
29221 #define NULL ((void*)0)
29222 #endif
29223
29224 int
29225 main ()
29226 {
29227
29228 #if DB_VERSION_MAJOR > 1
29229         {
29230                 char *version;
29231                 int major, minor, patch;
29232
29233                 version = db_version( &major, &minor, &patch );
29234
29235                 if( major != DB_VERSION_MAJOR ||
29236                         minor < DB_VERSION_MINOR )
29237                 {
29238                         printf("Berkeley DB version mismatch\n"
29239                                 "\theader: %s\n\tlibrary: %s\n",
29240                                 DB_VERSION_STRING, version);
29241                         return 1;
29242                 }
29243         }
29244 #endif
29245
29246 #if DB_VERSION_MAJOR > 2
29247         db_env_create( NULL, 0 );
29248 #elif DB_VERSION_MAJOR > 1
29249         db_appexit( NULL );
29250 #else
29251         (void) dbopen( NULL, 0, 0, 0, NULL);
29252 #endif
29253
29254   ;
29255   return 0;
29256 }
29257 _ACEOF
29258 rm -f conftest.$ac_objext conftest$ac_exeext
29259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29260   (eval $ac_link) 2>conftest.er1
29261   ac_status=$?
29262   grep -v '^ *+' conftest.er1 >conftest.err
29263   rm -f conftest.er1
29264   cat conftest.err >&5
29265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266   (exit $ac_status); } &&
29267          { ac_try='test -z "$ac_c_werror_flag"
29268                          || test ! -s conftest.err'
29269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270   (eval $ac_try) 2>&5
29271   ac_status=$?
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); }; } &&
29274          { ac_try='test -s conftest$ac_exeext'
29275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276   (eval $ac_try) 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; }; then
29280   ol_cv_db_db_42=yes
29281 else
29282   echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29284
29285 ol_cv_db_db_42=no
29286 fi
29287 rm -f conftest.err conftest.$ac_objext \
29288       conftest$ac_exeext conftest.$ac_ext
29289
29290         LIBS="$ol_LIBS"
29291
29292 fi
29293 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29294 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29295
29296         if test $ol_cv_db_db_42 = yes ; then
29297                 ol_cv_lib_db=-ldb-42
29298         fi
29299 fi
29300
29301                 if test $ol_cv_lib_db = no ; then
29302         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29303 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29304 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29305   echo $ECHO_N "(cached) $ECHO_C" >&6
29306 else
29307
29308         ol_DB_LIB=-ldb-4.2
29309         ol_LIBS=$LIBS
29310         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29311
29312         cat >conftest.$ac_ext <<_ACEOF
29313 /* confdefs.h.  */
29314 _ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h.  */
29318
29319 #ifdef HAVE_DB_185_H
29320 # include <db_185.h>
29321 #else
29322 # include <db.h>
29323 #endif
29324
29325 #ifndef DB_VERSION_MAJOR
29326 # define DB_VERSION_MAJOR 1
29327 #endif
29328
29329 #ifndef NULL
29330 #define NULL ((void*)0)
29331 #endif
29332
29333 int
29334 main ()
29335 {
29336
29337 #if DB_VERSION_MAJOR > 1
29338         {
29339                 char *version;
29340                 int major, minor, patch;
29341
29342                 version = db_version( &major, &minor, &patch );
29343
29344                 if( major != DB_VERSION_MAJOR ||
29345                         minor < DB_VERSION_MINOR )
29346                 {
29347                         printf("Berkeley DB version mismatch\n"
29348                                 "\theader: %s\n\tlibrary: %s\n",
29349                                 DB_VERSION_STRING, version);
29350                         return 1;
29351                 }
29352         }
29353 #endif
29354
29355 #if DB_VERSION_MAJOR > 2
29356         db_env_create( NULL, 0 );
29357 #elif DB_VERSION_MAJOR > 1
29358         db_appexit( NULL );
29359 #else
29360         (void) dbopen( NULL, 0, 0, 0, NULL);
29361 #endif
29362
29363   ;
29364   return 0;
29365 }
29366 _ACEOF
29367 rm -f conftest.$ac_objext conftest$ac_exeext
29368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29369   (eval $ac_link) 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } &&
29376          { ac_try='test -z "$ac_c_werror_flag"
29377                          || test ! -s conftest.err'
29378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379   (eval $ac_try) 2>&5
29380   ac_status=$?
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); }; } &&
29383          { ac_try='test -s conftest$ac_exeext'
29384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385   (eval $ac_try) 2>&5
29386   ac_status=$?
29387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388   (exit $ac_status); }; }; then
29389   ol_cv_db_db_4_dot_2=yes
29390 else
29391   echo "$as_me: failed program was:" >&5
29392 sed 's/^/| /' conftest.$ac_ext >&5
29393
29394 ol_cv_db_db_4_dot_2=no
29395 fi
29396 rm -f conftest.err conftest.$ac_objext \
29397       conftest$ac_exeext conftest.$ac_ext
29398
29399         LIBS="$ol_LIBS"
29400
29401 fi
29402 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29403 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29404
29405         if test $ol_cv_db_db_4_dot_2 = yes ; then
29406                 ol_cv_lib_db=-ldb-4.2
29407         fi
29408 fi
29409
29410                 if test $ol_cv_lib_db = no ; then
29411         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29412 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29413 if test "${ol_cv_db_db_4_2+set}" = set; then
29414   echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416
29417         ol_DB_LIB=-ldb-4-2
29418         ol_LIBS=$LIBS
29419         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29420
29421         cat >conftest.$ac_ext <<_ACEOF
29422 /* confdefs.h.  */
29423 _ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h.  */
29427
29428 #ifdef HAVE_DB_185_H
29429 # include <db_185.h>
29430 #else
29431 # include <db.h>
29432 #endif
29433
29434 #ifndef DB_VERSION_MAJOR
29435 # define DB_VERSION_MAJOR 1
29436 #endif
29437
29438 #ifndef NULL
29439 #define NULL ((void*)0)
29440 #endif
29441
29442 int
29443 main ()
29444 {
29445
29446 #if DB_VERSION_MAJOR > 1
29447         {
29448                 char *version;
29449                 int major, minor, patch;
29450
29451                 version = db_version( &major, &minor, &patch );
29452
29453                 if( major != DB_VERSION_MAJOR ||
29454                         minor < DB_VERSION_MINOR )
29455                 {
29456                         printf("Berkeley DB version mismatch\n"
29457                                 "\theader: %s\n\tlibrary: %s\n",
29458                                 DB_VERSION_STRING, version);
29459                         return 1;
29460                 }
29461         }
29462 #endif
29463
29464 #if DB_VERSION_MAJOR > 2
29465         db_env_create( NULL, 0 );
29466 #elif DB_VERSION_MAJOR > 1
29467         db_appexit( NULL );
29468 #else
29469         (void) dbopen( NULL, 0, 0, 0, NULL);
29470 #endif
29471
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29478   (eval $ac_link) 2>conftest.er1
29479   ac_status=$?
29480   grep -v '^ *+' conftest.er1 >conftest.err
29481   rm -f conftest.er1
29482   cat conftest.err >&5
29483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484   (exit $ac_status); } &&
29485          { ac_try='test -z "$ac_c_werror_flag"
29486                          || test ! -s conftest.err'
29487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488   (eval $ac_try) 2>&5
29489   ac_status=$?
29490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491   (exit $ac_status); }; } &&
29492          { ac_try='test -s conftest$ac_exeext'
29493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494   (eval $ac_try) 2>&5
29495   ac_status=$?
29496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497   (exit $ac_status); }; }; then
29498   ol_cv_db_db_4_2=yes
29499 else
29500   echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29502
29503 ol_cv_db_db_4_2=no
29504 fi
29505 rm -f conftest.err conftest.$ac_objext \
29506       conftest$ac_exeext conftest.$ac_ext
29507
29508         LIBS="$ol_LIBS"
29509
29510 fi
29511 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29512 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29513
29514         if test $ol_cv_db_db_4_2 = yes ; then
29515                 ol_cv_lib_db=-ldb-4-2
29516         fi
29517 fi
29518
29519         elif test $ol_cv_bdb_minor = 1 ; then
29520                 if test $ol_cv_lib_db = no ; then
29521         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29522 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29523 if test "${ol_cv_db_db41+set}" = set; then
29524   echo $ECHO_N "(cached) $ECHO_C" >&6
29525 else
29526
29527         ol_DB_LIB=-ldb41
29528         ol_LIBS=$LIBS
29529         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29530
29531         cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537
29538 #ifdef HAVE_DB_185_H
29539 # include <db_185.h>
29540 #else
29541 # include <db.h>
29542 #endif
29543
29544 #ifndef DB_VERSION_MAJOR
29545 # define DB_VERSION_MAJOR 1
29546 #endif
29547
29548 #ifndef NULL
29549 #define NULL ((void*)0)
29550 #endif
29551
29552 int
29553 main ()
29554 {
29555
29556 #if DB_VERSION_MAJOR > 1
29557         {
29558                 char *version;
29559                 int major, minor, patch;
29560
29561                 version = db_version( &major, &minor, &patch );
29562
29563                 if( major != DB_VERSION_MAJOR ||
29564                         minor < DB_VERSION_MINOR )
29565                 {
29566                         printf("Berkeley DB version mismatch\n"
29567                                 "\theader: %s\n\tlibrary: %s\n",
29568                                 DB_VERSION_STRING, version);
29569                         return 1;
29570                 }
29571         }
29572 #endif
29573
29574 #if DB_VERSION_MAJOR > 2
29575         db_env_create( NULL, 0 );
29576 #elif DB_VERSION_MAJOR > 1
29577         db_appexit( NULL );
29578 #else
29579         (void) dbopen( NULL, 0, 0, 0, NULL);
29580 #endif
29581
29582   ;
29583   return 0;
29584 }
29585 _ACEOF
29586 rm -f conftest.$ac_objext conftest$ac_exeext
29587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29588   (eval $ac_link) 2>conftest.er1
29589   ac_status=$?
29590   grep -v '^ *+' conftest.er1 >conftest.err
29591   rm -f conftest.er1
29592   cat conftest.err >&5
29593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594   (exit $ac_status); } &&
29595          { ac_try='test -z "$ac_c_werror_flag"
29596                          || test ! -s conftest.err'
29597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29598   (eval $ac_try) 2>&5
29599   ac_status=$?
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); }; } &&
29602          { ac_try='test -s conftest$ac_exeext'
29603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29604   (eval $ac_try) 2>&5
29605   ac_status=$?
29606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607   (exit $ac_status); }; }; then
29608   ol_cv_db_db41=yes
29609 else
29610   echo "$as_me: failed program was:" >&5
29611 sed 's/^/| /' conftest.$ac_ext >&5
29612
29613 ol_cv_db_db41=no
29614 fi
29615 rm -f conftest.err conftest.$ac_objext \
29616       conftest$ac_exeext conftest.$ac_ext
29617
29618         LIBS="$ol_LIBS"
29619
29620 fi
29621 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29622 echo "${ECHO_T}$ol_cv_db_db41" >&6
29623
29624         if test $ol_cv_db_db41 = yes ; then
29625                 ol_cv_lib_db=-ldb41
29626         fi
29627 fi
29628
29629                 if test $ol_cv_lib_db = no ; then
29630         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29631 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29632 if test "${ol_cv_db_db_41+set}" = set; then
29633   echo $ECHO_N "(cached) $ECHO_C" >&6
29634 else
29635
29636         ol_DB_LIB=-ldb-41
29637         ol_LIBS=$LIBS
29638         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29639
29640         cat >conftest.$ac_ext <<_ACEOF
29641 /* confdefs.h.  */
29642 _ACEOF
29643 cat confdefs.h >>conftest.$ac_ext
29644 cat >>conftest.$ac_ext <<_ACEOF
29645 /* end confdefs.h.  */
29646
29647 #ifdef HAVE_DB_185_H
29648 # include <db_185.h>
29649 #else
29650 # include <db.h>
29651 #endif
29652
29653 #ifndef DB_VERSION_MAJOR
29654 # define DB_VERSION_MAJOR 1
29655 #endif
29656
29657 #ifndef NULL
29658 #define NULL ((void*)0)
29659 #endif
29660
29661 int
29662 main ()
29663 {
29664
29665 #if DB_VERSION_MAJOR > 1
29666         {
29667                 char *version;
29668                 int major, minor, patch;
29669
29670                 version = db_version( &major, &minor, &patch );
29671
29672                 if( major != DB_VERSION_MAJOR ||
29673                         minor < DB_VERSION_MINOR )
29674                 {
29675                         printf("Berkeley DB version mismatch\n"
29676                                 "\theader: %s\n\tlibrary: %s\n",
29677                                 DB_VERSION_STRING, version);
29678                         return 1;
29679                 }
29680         }
29681 #endif
29682
29683 #if DB_VERSION_MAJOR > 2
29684         db_env_create( NULL, 0 );
29685 #elif DB_VERSION_MAJOR > 1
29686         db_appexit( NULL );
29687 #else
29688         (void) dbopen( NULL, 0, 0, 0, NULL);
29689 #endif
29690
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697   (eval $ac_link) 2>conftest.er1
29698   ac_status=$?
29699   grep -v '^ *+' conftest.er1 >conftest.err
29700   rm -f conftest.er1
29701   cat conftest.err >&5
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); } &&
29704          { ac_try='test -z "$ac_c_werror_flag"
29705                          || test ! -s conftest.err'
29706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707   (eval $ac_try) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; } &&
29711          { ac_try='test -s conftest$ac_exeext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   ol_cv_db_db_41=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ol_cv_db_db_41=no
29723 fi
29724 rm -f conftest.err conftest.$ac_objext \
29725       conftest$ac_exeext conftest.$ac_ext
29726
29727         LIBS="$ol_LIBS"
29728
29729 fi
29730 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29731 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29732
29733         if test $ol_cv_db_db_41 = yes ; then
29734                 ol_cv_lib_db=-ldb-41
29735         fi
29736 fi
29737
29738                 if test $ol_cv_lib_db = no ; then
29739         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29740 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29741 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744
29745         ol_DB_LIB=-ldb-4.1
29746         ol_LIBS=$LIBS
29747         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29748
29749         cat >conftest.$ac_ext <<_ACEOF
29750 /* confdefs.h.  */
29751 _ACEOF
29752 cat confdefs.h >>conftest.$ac_ext
29753 cat >>conftest.$ac_ext <<_ACEOF
29754 /* end confdefs.h.  */
29755
29756 #ifdef HAVE_DB_185_H
29757 # include <db_185.h>
29758 #else
29759 # include <db.h>
29760 #endif
29761
29762 #ifndef DB_VERSION_MAJOR
29763 # define DB_VERSION_MAJOR 1
29764 #endif
29765
29766 #ifndef NULL
29767 #define NULL ((void*)0)
29768 #endif
29769
29770 int
29771 main ()
29772 {
29773
29774 #if DB_VERSION_MAJOR > 1
29775         {
29776                 char *version;
29777                 int major, minor, patch;
29778
29779                 version = db_version( &major, &minor, &patch );
29780
29781                 if( major != DB_VERSION_MAJOR ||
29782                         minor < DB_VERSION_MINOR )
29783                 {
29784                         printf("Berkeley DB version mismatch\n"
29785                                 "\theader: %s\n\tlibrary: %s\n",
29786                                 DB_VERSION_STRING, version);
29787                         return 1;
29788                 }
29789         }
29790 #endif
29791
29792 #if DB_VERSION_MAJOR > 2
29793         db_env_create( NULL, 0 );
29794 #elif DB_VERSION_MAJOR > 1
29795         db_appexit( NULL );
29796 #else
29797         (void) dbopen( NULL, 0, 0, 0, NULL);
29798 #endif
29799
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29806   (eval $ac_link) 2>conftest.er1
29807   ac_status=$?
29808   grep -v '^ *+' conftest.er1 >conftest.err
29809   rm -f conftest.er1
29810   cat conftest.err >&5
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } &&
29813          { ac_try='test -z "$ac_c_werror_flag"
29814                          || test ! -s conftest.err'
29815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816   (eval $ac_try) 2>&5
29817   ac_status=$?
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); }; } &&
29820          { ac_try='test -s conftest$ac_exeext'
29821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29822   (eval $ac_try) 2>&5
29823   ac_status=$?
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); }; }; then
29826   ol_cv_db_db_4_dot_1=yes
29827 else
29828   echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29830
29831 ol_cv_db_db_4_dot_1=no
29832 fi
29833 rm -f conftest.err conftest.$ac_objext \
29834       conftest$ac_exeext conftest.$ac_ext
29835
29836         LIBS="$ol_LIBS"
29837
29838 fi
29839 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29840 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29841
29842         if test $ol_cv_db_db_4_dot_1 = yes ; then
29843                 ol_cv_lib_db=-ldb-4.1
29844         fi
29845 fi
29846
29847                 if test $ol_cv_lib_db = no ; then
29848         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29849 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29850 if test "${ol_cv_db_db_4_1+set}" = set; then
29851   echo $ECHO_N "(cached) $ECHO_C" >&6
29852 else
29853
29854         ol_DB_LIB=-ldb-4-1
29855         ol_LIBS=$LIBS
29856         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29857
29858         cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864
29865 #ifdef HAVE_DB_185_H
29866 # include <db_185.h>
29867 #else
29868 # include <db.h>
29869 #endif
29870
29871 #ifndef DB_VERSION_MAJOR
29872 # define DB_VERSION_MAJOR 1
29873 #endif
29874
29875 #ifndef NULL
29876 #define NULL ((void*)0)
29877 #endif
29878
29879 int
29880 main ()
29881 {
29882
29883 #if DB_VERSION_MAJOR > 1
29884         {
29885                 char *version;
29886                 int major, minor, patch;
29887
29888                 version = db_version( &major, &minor, &patch );
29889
29890                 if( major != DB_VERSION_MAJOR ||
29891                         minor < DB_VERSION_MINOR )
29892                 {
29893                         printf("Berkeley DB version mismatch\n"
29894                                 "\theader: %s\n\tlibrary: %s\n",
29895                                 DB_VERSION_STRING, version);
29896                         return 1;
29897                 }
29898         }
29899 #endif
29900
29901 #if DB_VERSION_MAJOR > 2
29902         db_env_create( NULL, 0 );
29903 #elif DB_VERSION_MAJOR > 1
29904         db_appexit( NULL );
29905 #else
29906         (void) dbopen( NULL, 0, 0, 0, NULL);
29907 #endif
29908
29909   ;
29910   return 0;
29911 }
29912 _ACEOF
29913 rm -f conftest.$ac_objext conftest$ac_exeext
29914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29915   (eval $ac_link) 2>conftest.er1
29916   ac_status=$?
29917   grep -v '^ *+' conftest.er1 >conftest.err
29918   rm -f conftest.er1
29919   cat conftest.err >&5
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); } &&
29922          { ac_try='test -z "$ac_c_werror_flag"
29923                          || test ! -s conftest.err'
29924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925   (eval $ac_try) 2>&5
29926   ac_status=$?
29927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928   (exit $ac_status); }; } &&
29929          { ac_try='test -s conftest$ac_exeext'
29930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931   (eval $ac_try) 2>&5
29932   ac_status=$?
29933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934   (exit $ac_status); }; }; then
29935   ol_cv_db_db_4_1=yes
29936 else
29937   echo "$as_me: failed program was:" >&5
29938 sed 's/^/| /' conftest.$ac_ext >&5
29939
29940 ol_cv_db_db_4_1=no
29941 fi
29942 rm -f conftest.err conftest.$ac_objext \
29943       conftest$ac_exeext conftest.$ac_ext
29944
29945         LIBS="$ol_LIBS"
29946
29947 fi
29948 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29949 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29950
29951         if test $ol_cv_db_db_4_1 = yes ; then
29952                 ol_cv_lib_db=-ldb-4-1
29953         fi
29954 fi
29955
29956         fi
29957         if test $ol_cv_lib_db = no ; then
29958         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29959 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29960 if test "${ol_cv_db_db_4+set}" = set; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 else
29963
29964         ol_DB_LIB=-ldb-4
29965         ol_LIBS=$LIBS
29966         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29967
29968         cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h.  */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h.  */
29974
29975 #ifdef HAVE_DB_185_H
29976 # include <db_185.h>
29977 #else
29978 # include <db.h>
29979 #endif
29980
29981 #ifndef DB_VERSION_MAJOR
29982 # define DB_VERSION_MAJOR 1
29983 #endif
29984
29985 #ifndef NULL
29986 #define NULL ((void*)0)
29987 #endif
29988
29989 int
29990 main ()
29991 {
29992
29993 #if DB_VERSION_MAJOR > 1
29994         {
29995                 char *version;
29996                 int major, minor, patch;
29997
29998                 version = db_version( &major, &minor, &patch );
29999
30000                 if( major != DB_VERSION_MAJOR ||
30001                         minor < DB_VERSION_MINOR )
30002                 {
30003                         printf("Berkeley DB version mismatch\n"
30004                                 "\theader: %s\n\tlibrary: %s\n",
30005                                 DB_VERSION_STRING, version);
30006                         return 1;
30007                 }
30008         }
30009 #endif
30010
30011 #if DB_VERSION_MAJOR > 2
30012         db_env_create( NULL, 0 );
30013 #elif DB_VERSION_MAJOR > 1
30014         db_appexit( NULL );
30015 #else
30016         (void) dbopen( NULL, 0, 0, 0, NULL);
30017 #endif
30018
30019   ;
30020   return 0;
30021 }
30022 _ACEOF
30023 rm -f conftest.$ac_objext conftest$ac_exeext
30024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30025   (eval $ac_link) 2>conftest.er1
30026   ac_status=$?
30027   grep -v '^ *+' conftest.er1 >conftest.err
30028   rm -f conftest.er1
30029   cat conftest.err >&5
30030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031   (exit $ac_status); } &&
30032          { ac_try='test -z "$ac_c_werror_flag"
30033                          || test ! -s conftest.err'
30034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30035   (eval $ac_try) 2>&5
30036   ac_status=$?
30037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30038   (exit $ac_status); }; } &&
30039          { ac_try='test -s conftest$ac_exeext'
30040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041   (eval $ac_try) 2>&5
30042   ac_status=$?
30043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044   (exit $ac_status); }; }; then
30045   ol_cv_db_db_4=yes
30046 else
30047   echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.$ac_ext >&5
30049
30050 ol_cv_db_db_4=no
30051 fi
30052 rm -f conftest.err conftest.$ac_objext \
30053       conftest$ac_exeext conftest.$ac_ext
30054
30055         LIBS="$ol_LIBS"
30056
30057 fi
30058 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30059 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30060
30061         if test $ol_cv_db_db_4 = yes ; then
30062                 ol_cv_lib_db=-ldb-4
30063         fi
30064 fi
30065
30066         if test $ol_cv_lib_db = no ; then
30067         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30068 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30069 if test "${ol_cv_db_db4+set}" = set; then
30070   echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072
30073         ol_DB_LIB=-ldb4
30074         ol_LIBS=$LIBS
30075         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30076
30077         cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083
30084 #ifdef HAVE_DB_185_H
30085 # include <db_185.h>
30086 #else
30087 # include <db.h>
30088 #endif
30089
30090 #ifndef DB_VERSION_MAJOR
30091 # define DB_VERSION_MAJOR 1
30092 #endif
30093
30094 #ifndef NULL
30095 #define NULL ((void*)0)
30096 #endif
30097
30098 int
30099 main ()
30100 {
30101
30102 #if DB_VERSION_MAJOR > 1
30103         {
30104                 char *version;
30105                 int major, minor, patch;
30106
30107                 version = db_version( &major, &minor, &patch );
30108
30109                 if( major != DB_VERSION_MAJOR ||
30110                         minor < DB_VERSION_MINOR )
30111                 {
30112                         printf("Berkeley DB version mismatch\n"
30113                                 "\theader: %s\n\tlibrary: %s\n",
30114                                 DB_VERSION_STRING, version);
30115                         return 1;
30116                 }
30117         }
30118 #endif
30119
30120 #if DB_VERSION_MAJOR > 2
30121         db_env_create( NULL, 0 );
30122 #elif DB_VERSION_MAJOR > 1
30123         db_appexit( NULL );
30124 #else
30125         (void) dbopen( NULL, 0, 0, 0, NULL);
30126 #endif
30127
30128   ;
30129   return 0;
30130 }
30131 _ACEOF
30132 rm -f conftest.$ac_objext conftest$ac_exeext
30133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30134   (eval $ac_link) 2>conftest.er1
30135   ac_status=$?
30136   grep -v '^ *+' conftest.er1 >conftest.err
30137   rm -f conftest.er1
30138   cat conftest.err >&5
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); } &&
30141          { ac_try='test -z "$ac_c_werror_flag"
30142                          || test ! -s conftest.err'
30143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144   (eval $ac_try) 2>&5
30145   ac_status=$?
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); }; } &&
30148          { ac_try='test -s conftest$ac_exeext'
30149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150   (eval $ac_try) 2>&5
30151   ac_status=$?
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); }; }; then
30154   ol_cv_db_db4=yes
30155 else
30156   echo "$as_me: failed program was:" >&5
30157 sed 's/^/| /' conftest.$ac_ext >&5
30158
30159 ol_cv_db_db4=no
30160 fi
30161 rm -f conftest.err conftest.$ac_objext \
30162       conftest$ac_exeext conftest.$ac_ext
30163
30164         LIBS="$ol_LIBS"
30165
30166 fi
30167 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30168 echo "${ECHO_T}$ol_cv_db_db4" >&6
30169
30170         if test $ol_cv_db_db4 = yes ; then
30171                 ol_cv_lib_db=-ldb4
30172         fi
30173 fi
30174
30175         if test $ol_cv_lib_db = no ; then
30176         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30177 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30178 if test "${ol_cv_db_db+set}" = set; then
30179   echo $ECHO_N "(cached) $ECHO_C" >&6
30180 else
30181
30182         ol_DB_LIB=-ldb
30183         ol_LIBS=$LIBS
30184         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30185
30186         cat >conftest.$ac_ext <<_ACEOF
30187 /* confdefs.h.  */
30188 _ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h.  */
30192
30193 #ifdef HAVE_DB_185_H
30194 # include <db_185.h>
30195 #else
30196 # include <db.h>
30197 #endif
30198
30199 #ifndef DB_VERSION_MAJOR
30200 # define DB_VERSION_MAJOR 1
30201 #endif
30202
30203 #ifndef NULL
30204 #define NULL ((void*)0)
30205 #endif
30206
30207 int
30208 main ()
30209 {
30210
30211 #if DB_VERSION_MAJOR > 1
30212         {
30213                 char *version;
30214                 int major, minor, patch;
30215
30216                 version = db_version( &major, &minor, &patch );
30217
30218                 if( major != DB_VERSION_MAJOR ||
30219                         minor < DB_VERSION_MINOR )
30220                 {
30221                         printf("Berkeley DB version mismatch\n"
30222                                 "\theader: %s\n\tlibrary: %s\n",
30223                                 DB_VERSION_STRING, version);
30224                         return 1;
30225                 }
30226         }
30227 #endif
30228
30229 #if DB_VERSION_MAJOR > 2
30230         db_env_create( NULL, 0 );
30231 #elif DB_VERSION_MAJOR > 1
30232         db_appexit( NULL );
30233 #else
30234         (void) dbopen( NULL, 0, 0, 0, NULL);
30235 #endif
30236
30237   ;
30238   return 0;
30239 }
30240 _ACEOF
30241 rm -f conftest.$ac_objext conftest$ac_exeext
30242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30243   (eval $ac_link) 2>conftest.er1
30244   ac_status=$?
30245   grep -v '^ *+' conftest.er1 >conftest.err
30246   rm -f conftest.er1
30247   cat conftest.err >&5
30248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249   (exit $ac_status); } &&
30250          { ac_try='test -z "$ac_c_werror_flag"
30251                          || test ! -s conftest.err'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; } &&
30257          { ac_try='test -s conftest$ac_exeext'
30258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259   (eval $ac_try) 2>&5
30260   ac_status=$?
30261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); }; }; then
30263   ol_cv_db_db=yes
30264 else
30265   echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ol_cv_db_db=no
30269 fi
30270 rm -f conftest.err conftest.$ac_objext \
30271       conftest$ac_exeext conftest.$ac_ext
30272
30273         LIBS="$ol_LIBS"
30274
30275 fi
30276 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30277 echo "${ECHO_T}$ol_cv_db_db" >&6
30278
30279         if test $ol_cv_db_db = yes ; then
30280                 ol_cv_lib_db=-ldb
30281         fi
30282 fi
30283
30284
30285 elif test $ol_cv_bdb_major = 3 ; then
30286         if test $ol_cv_lib_db = no ; then
30287         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30288 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30289 if test "${ol_cv_db_db3+set}" = set; then
30290   echo $ECHO_N "(cached) $ECHO_C" >&6
30291 else
30292
30293         ol_DB_LIB=-ldb3
30294         ol_LIBS=$LIBS
30295         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30296
30297         cat >conftest.$ac_ext <<_ACEOF
30298 /* confdefs.h.  */
30299 _ACEOF
30300 cat confdefs.h >>conftest.$ac_ext
30301 cat >>conftest.$ac_ext <<_ACEOF
30302 /* end confdefs.h.  */
30303
30304 #ifdef HAVE_DB_185_H
30305 # include <db_185.h>
30306 #else
30307 # include <db.h>
30308 #endif
30309
30310 #ifndef DB_VERSION_MAJOR
30311 # define DB_VERSION_MAJOR 1
30312 #endif
30313
30314 #ifndef NULL
30315 #define NULL ((void*)0)
30316 #endif
30317
30318 int
30319 main ()
30320 {
30321
30322 #if DB_VERSION_MAJOR > 1
30323         {
30324                 char *version;
30325                 int major, minor, patch;
30326
30327                 version = db_version( &major, &minor, &patch );
30328
30329                 if( major != DB_VERSION_MAJOR ||
30330                         minor < DB_VERSION_MINOR )
30331                 {
30332                         printf("Berkeley DB version mismatch\n"
30333                                 "\theader: %s\n\tlibrary: %s\n",
30334                                 DB_VERSION_STRING, version);
30335                         return 1;
30336                 }
30337         }
30338 #endif
30339
30340 #if DB_VERSION_MAJOR > 2
30341         db_env_create( NULL, 0 );
30342 #elif DB_VERSION_MAJOR > 1
30343         db_appexit( NULL );
30344 #else
30345         (void) dbopen( NULL, 0, 0, 0, NULL);
30346 #endif
30347
30348   ;
30349   return 0;
30350 }
30351 _ACEOF
30352 rm -f conftest.$ac_objext conftest$ac_exeext
30353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30354   (eval $ac_link) 2>conftest.er1
30355   ac_status=$?
30356   grep -v '^ *+' conftest.er1 >conftest.err
30357   rm -f conftest.er1
30358   cat conftest.err >&5
30359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360   (exit $ac_status); } &&
30361          { ac_try='test -z "$ac_c_werror_flag"
30362                          || test ! -s conftest.err'
30363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30364   (eval $ac_try) 2>&5
30365   ac_status=$?
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); }; } &&
30368          { ac_try='test -s conftest$ac_exeext'
30369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370   (eval $ac_try) 2>&5
30371   ac_status=$?
30372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373   (exit $ac_status); }; }; then
30374   ol_cv_db_db3=yes
30375 else
30376   echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379 ol_cv_db_db3=no
30380 fi
30381 rm -f conftest.err conftest.$ac_objext \
30382       conftest$ac_exeext conftest.$ac_ext
30383
30384         LIBS="$ol_LIBS"
30385
30386 fi
30387 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30388 echo "${ECHO_T}$ol_cv_db_db3" >&6
30389
30390         if test $ol_cv_db_db3 = yes ; then
30391                 ol_cv_lib_db=-ldb3
30392         fi
30393 fi
30394
30395         if test $ol_cv_lib_db = no ; then
30396         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30397 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30398 if test "${ol_cv_db_db_3+set}" = set; then
30399   echo $ECHO_N "(cached) $ECHO_C" >&6
30400 else
30401
30402         ol_DB_LIB=-ldb-3
30403         ol_LIBS=$LIBS
30404         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30405
30406         cat >conftest.$ac_ext <<_ACEOF
30407 /* confdefs.h.  */
30408 _ACEOF
30409 cat confdefs.h >>conftest.$ac_ext
30410 cat >>conftest.$ac_ext <<_ACEOF
30411 /* end confdefs.h.  */
30412
30413 #ifdef HAVE_DB_185_H
30414 # include <db_185.h>
30415 #else
30416 # include <db.h>
30417 #endif
30418
30419 #ifndef DB_VERSION_MAJOR
30420 # define DB_VERSION_MAJOR 1
30421 #endif
30422
30423 #ifndef NULL
30424 #define NULL ((void*)0)
30425 #endif
30426
30427 int
30428 main ()
30429 {
30430
30431 #if DB_VERSION_MAJOR > 1
30432         {
30433                 char *version;
30434                 int major, minor, patch;
30435
30436                 version = db_version( &major, &minor, &patch );
30437
30438                 if( major != DB_VERSION_MAJOR ||
30439                         minor < DB_VERSION_MINOR )
30440                 {
30441                         printf("Berkeley DB version mismatch\n"
30442                                 "\theader: %s\n\tlibrary: %s\n",
30443                                 DB_VERSION_STRING, version);
30444                         return 1;
30445                 }
30446         }
30447 #endif
30448
30449 #if DB_VERSION_MAJOR > 2
30450         db_env_create( NULL, 0 );
30451 #elif DB_VERSION_MAJOR > 1
30452         db_appexit( NULL );
30453 #else
30454         (void) dbopen( NULL, 0, 0, 0, NULL);
30455 #endif
30456
30457   ;
30458   return 0;
30459 }
30460 _ACEOF
30461 rm -f conftest.$ac_objext conftest$ac_exeext
30462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30463   (eval $ac_link) 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } &&
30470          { ac_try='test -z "$ac_c_werror_flag"
30471                          || test ! -s conftest.err'
30472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473   (eval $ac_try) 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; } &&
30477          { ac_try='test -s conftest$ac_exeext'
30478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479   (eval $ac_try) 2>&5
30480   ac_status=$?
30481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482   (exit $ac_status); }; }; then
30483   ol_cv_db_db_3=yes
30484 else
30485   echo "$as_me: failed program was:" >&5
30486 sed 's/^/| /' conftest.$ac_ext >&5
30487
30488 ol_cv_db_db_3=no
30489 fi
30490 rm -f conftest.err conftest.$ac_objext \
30491       conftest$ac_exeext conftest.$ac_ext
30492
30493         LIBS="$ol_LIBS"
30494
30495 fi
30496 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30497 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30498
30499         if test $ol_cv_db_db_3 = yes ; then
30500                 ol_cv_lib_db=-ldb-3
30501         fi
30502 fi
30503
30504
30505 elif test $ol_cv_bdb_major = 2 ; then
30506         if test $ol_cv_lib_db = no ; then
30507         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30508 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30509 if test "${ol_cv_db_db2+set}" = set; then
30510   echo $ECHO_N "(cached) $ECHO_C" >&6
30511 else
30512
30513         ol_DB_LIB=-ldb2
30514         ol_LIBS=$LIBS
30515         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30516
30517         cat >conftest.$ac_ext <<_ACEOF
30518 /* confdefs.h.  */
30519 _ACEOF
30520 cat confdefs.h >>conftest.$ac_ext
30521 cat >>conftest.$ac_ext <<_ACEOF
30522 /* end confdefs.h.  */
30523
30524 #ifdef HAVE_DB_185_H
30525 # include <db_185.h>
30526 #else
30527 # include <db.h>
30528 #endif
30529
30530 #ifndef DB_VERSION_MAJOR
30531 # define DB_VERSION_MAJOR 1
30532 #endif
30533
30534 #ifndef NULL
30535 #define NULL ((void*)0)
30536 #endif
30537
30538 int
30539 main ()
30540 {
30541
30542 #if DB_VERSION_MAJOR > 1
30543         {
30544                 char *version;
30545                 int major, minor, patch;
30546
30547                 version = db_version( &major, &minor, &patch );
30548
30549                 if( major != DB_VERSION_MAJOR ||
30550                         minor < DB_VERSION_MINOR )
30551                 {
30552                         printf("Berkeley DB version mismatch\n"
30553                                 "\theader: %s\n\tlibrary: %s\n",
30554                                 DB_VERSION_STRING, version);
30555                         return 1;
30556                 }
30557         }
30558 #endif
30559
30560 #if DB_VERSION_MAJOR > 2
30561         db_env_create( NULL, 0 );
30562 #elif DB_VERSION_MAJOR > 1
30563         db_appexit( NULL );
30564 #else
30565         (void) dbopen( NULL, 0, 0, 0, NULL);
30566 #endif
30567
30568   ;
30569   return 0;
30570 }
30571 _ACEOF
30572 rm -f conftest.$ac_objext conftest$ac_exeext
30573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30574   (eval $ac_link) 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } &&
30581          { ac_try='test -z "$ac_c_werror_flag"
30582                          || test ! -s conftest.err'
30583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584   (eval $ac_try) 2>&5
30585   ac_status=$?
30586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587   (exit $ac_status); }; } &&
30588          { ac_try='test -s conftest$ac_exeext'
30589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590   (eval $ac_try) 2>&5
30591   ac_status=$?
30592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593   (exit $ac_status); }; }; then
30594   ol_cv_db_db2=yes
30595 else
30596   echo "$as_me: failed program was:" >&5
30597 sed 's/^/| /' conftest.$ac_ext >&5
30598
30599 ol_cv_db_db2=no
30600 fi
30601 rm -f conftest.err conftest.$ac_objext \
30602       conftest$ac_exeext conftest.$ac_ext
30603
30604         LIBS="$ol_LIBS"
30605
30606 fi
30607 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30608 echo "${ECHO_T}$ol_cv_db_db2" >&6
30609
30610         if test $ol_cv_db_db2 = yes ; then
30611                 ol_cv_lib_db=-ldb2
30612         fi
30613 fi
30614
30615         if test $ol_cv_lib_db = no ; then
30616         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30617 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30618 if test "${ol_cv_db_db_2+set}" = set; then
30619   echo $ECHO_N "(cached) $ECHO_C" >&6
30620 else
30621
30622         ol_DB_LIB=-ldb-2
30623         ol_LIBS=$LIBS
30624         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30625
30626         cat >conftest.$ac_ext <<_ACEOF
30627 /* confdefs.h.  */
30628 _ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h.  */
30632
30633 #ifdef HAVE_DB_185_H
30634 # include <db_185.h>
30635 #else
30636 # include <db.h>
30637 #endif
30638
30639 #ifndef DB_VERSION_MAJOR
30640 # define DB_VERSION_MAJOR 1
30641 #endif
30642
30643 #ifndef NULL
30644 #define NULL ((void*)0)
30645 #endif
30646
30647 int
30648 main ()
30649 {
30650
30651 #if DB_VERSION_MAJOR > 1
30652         {
30653                 char *version;
30654                 int major, minor, patch;
30655
30656                 version = db_version( &major, &minor, &patch );
30657
30658                 if( major != DB_VERSION_MAJOR ||
30659                         minor < DB_VERSION_MINOR )
30660                 {
30661                         printf("Berkeley DB version mismatch\n"
30662                                 "\theader: %s\n\tlibrary: %s\n",
30663                                 DB_VERSION_STRING, version);
30664                         return 1;
30665                 }
30666         }
30667 #endif
30668
30669 #if DB_VERSION_MAJOR > 2
30670         db_env_create( NULL, 0 );
30671 #elif DB_VERSION_MAJOR > 1
30672         db_appexit( NULL );
30673 #else
30674         (void) dbopen( NULL, 0, 0, 0, NULL);
30675 #endif
30676
30677   ;
30678   return 0;
30679 }
30680 _ACEOF
30681 rm -f conftest.$ac_objext conftest$ac_exeext
30682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30683   (eval $ac_link) 2>conftest.er1
30684   ac_status=$?
30685   grep -v '^ *+' conftest.er1 >conftest.err
30686   rm -f conftest.er1
30687   cat conftest.err >&5
30688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); } &&
30690          { ac_try='test -z "$ac_c_werror_flag"
30691                          || test ! -s conftest.err'
30692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693   (eval $ac_try) 2>&5
30694   ac_status=$?
30695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696   (exit $ac_status); }; } &&
30697          { ac_try='test -s conftest$ac_exeext'
30698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30699   (eval $ac_try) 2>&5
30700   ac_status=$?
30701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702   (exit $ac_status); }; }; then
30703   ol_cv_db_db_2=yes
30704 else
30705   echo "$as_me: failed program was:" >&5
30706 sed 's/^/| /' conftest.$ac_ext >&5
30707
30708 ol_cv_db_db_2=no
30709 fi
30710 rm -f conftest.err conftest.$ac_objext \
30711       conftest$ac_exeext conftest.$ac_ext
30712
30713         LIBS="$ol_LIBS"
30714
30715 fi
30716 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30717 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30718
30719         if test $ol_cv_db_db_2 = yes ; then
30720                 ol_cv_lib_db=-ldb-2
30721         fi
30722 fi
30723
30724
30725 elif test $ol_cv_bdb_major = 1 ; then
30726         if test $ol_cv_lib_db = no ; then
30727         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30728 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30729 if test "${ol_cv_db_db1+set}" = set; then
30730   echo $ECHO_N "(cached) $ECHO_C" >&6
30731 else
30732
30733         ol_DB_LIB=-ldb1
30734         ol_LIBS=$LIBS
30735         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30736
30737         cat >conftest.$ac_ext <<_ACEOF
30738 /* confdefs.h.  */
30739 _ACEOF
30740 cat confdefs.h >>conftest.$ac_ext
30741 cat >>conftest.$ac_ext <<_ACEOF
30742 /* end confdefs.h.  */
30743
30744 #ifdef HAVE_DB_185_H
30745 # include <db_185.h>
30746 #else
30747 # include <db.h>
30748 #endif
30749
30750 #ifndef DB_VERSION_MAJOR
30751 # define DB_VERSION_MAJOR 1
30752 #endif
30753
30754 #ifndef NULL
30755 #define NULL ((void*)0)
30756 #endif
30757
30758 int
30759 main ()
30760 {
30761
30762 #if DB_VERSION_MAJOR > 1
30763         {
30764                 char *version;
30765                 int major, minor, patch;
30766
30767                 version = db_version( &major, &minor, &patch );
30768
30769                 if( major != DB_VERSION_MAJOR ||
30770                         minor < DB_VERSION_MINOR )
30771                 {
30772                         printf("Berkeley DB version mismatch\n"
30773                                 "\theader: %s\n\tlibrary: %s\n",
30774                                 DB_VERSION_STRING, version);
30775                         return 1;
30776                 }
30777         }
30778 #endif
30779
30780 #if DB_VERSION_MAJOR > 2
30781         db_env_create( NULL, 0 );
30782 #elif DB_VERSION_MAJOR > 1
30783         db_appexit( NULL );
30784 #else
30785         (void) dbopen( NULL, 0, 0, 0, NULL);
30786 #endif
30787
30788   ;
30789   return 0;
30790 }
30791 _ACEOF
30792 rm -f conftest.$ac_objext conftest$ac_exeext
30793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30794   (eval $ac_link) 2>conftest.er1
30795   ac_status=$?
30796   grep -v '^ *+' conftest.er1 >conftest.err
30797   rm -f conftest.er1
30798   cat conftest.err >&5
30799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800   (exit $ac_status); } &&
30801          { ac_try='test -z "$ac_c_werror_flag"
30802                          || test ! -s conftest.err'
30803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804   (eval $ac_try) 2>&5
30805   ac_status=$?
30806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807   (exit $ac_status); }; } &&
30808          { ac_try='test -s conftest$ac_exeext'
30809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810   (eval $ac_try) 2>&5
30811   ac_status=$?
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); }; }; then
30814   ol_cv_db_db1=yes
30815 else
30816   echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819 ol_cv_db_db1=no
30820 fi
30821 rm -f conftest.err conftest.$ac_objext \
30822       conftest$ac_exeext conftest.$ac_ext
30823
30824         LIBS="$ol_LIBS"
30825
30826 fi
30827 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30828 echo "${ECHO_T}$ol_cv_db_db1" >&6
30829
30830         if test $ol_cv_db_db1 = yes ; then
30831                 ol_cv_lib_db=-ldb1
30832         fi
30833 fi
30834
30835         if test $ol_cv_lib_db = no ; then
30836         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30837 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30838 if test "${ol_cv_db_db_1+set}" = set; then
30839   echo $ECHO_N "(cached) $ECHO_C" >&6
30840 else
30841
30842         ol_DB_LIB=-ldb-1
30843         ol_LIBS=$LIBS
30844         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30845
30846         cat >conftest.$ac_ext <<_ACEOF
30847 /* confdefs.h.  */
30848 _ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h.  */
30852
30853 #ifdef HAVE_DB_185_H
30854 # include <db_185.h>
30855 #else
30856 # include <db.h>
30857 #endif
30858
30859 #ifndef DB_VERSION_MAJOR
30860 # define DB_VERSION_MAJOR 1
30861 #endif
30862
30863 #ifndef NULL
30864 #define NULL ((void*)0)
30865 #endif
30866
30867 int
30868 main ()
30869 {
30870
30871 #if DB_VERSION_MAJOR > 1
30872         {
30873                 char *version;
30874                 int major, minor, patch;
30875
30876                 version = db_version( &major, &minor, &patch );
30877
30878                 if( major != DB_VERSION_MAJOR ||
30879                         minor < DB_VERSION_MINOR )
30880                 {
30881                         printf("Berkeley DB version mismatch\n"
30882                                 "\theader: %s\n\tlibrary: %s\n",
30883                                 DB_VERSION_STRING, version);
30884                         return 1;
30885                 }
30886         }
30887 #endif
30888
30889 #if DB_VERSION_MAJOR > 2
30890         db_env_create( NULL, 0 );
30891 #elif DB_VERSION_MAJOR > 1
30892         db_appexit( NULL );
30893 #else
30894         (void) dbopen( NULL, 0, 0, 0, NULL);
30895 #endif
30896
30897   ;
30898   return 0;
30899 }
30900 _ACEOF
30901 rm -f conftest.$ac_objext conftest$ac_exeext
30902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30903   (eval $ac_link) 2>conftest.er1
30904   ac_status=$?
30905   grep -v '^ *+' conftest.er1 >conftest.err
30906   rm -f conftest.er1
30907   cat conftest.err >&5
30908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909   (exit $ac_status); } &&
30910          { ac_try='test -z "$ac_c_werror_flag"
30911                          || test ! -s conftest.err'
30912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30913   (eval $ac_try) 2>&5
30914   ac_status=$?
30915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30916   (exit $ac_status); }; } &&
30917          { ac_try='test -s conftest$ac_exeext'
30918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30919   (eval $ac_try) 2>&5
30920   ac_status=$?
30921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922   (exit $ac_status); }; }; then
30923   ol_cv_db_db_1=yes
30924 else
30925   echo "$as_me: failed program was:" >&5
30926 sed 's/^/| /' conftest.$ac_ext >&5
30927
30928 ol_cv_db_db_1=no
30929 fi
30930 rm -f conftest.err conftest.$ac_objext \
30931       conftest$ac_exeext conftest.$ac_ext
30932
30933         LIBS="$ol_LIBS"
30934
30935 fi
30936 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30937 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30938
30939         if test $ol_cv_db_db_1 = yes ; then
30940                 ol_cv_lib_db=-ldb-1
30941         fi
30942 fi
30943
30944 fi
30945 if test $ol_cv_lib_db = no ; then
30946         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30947 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30948 if test "${ol_cv_db_none+set}" = set; then
30949   echo $ECHO_N "(cached) $ECHO_C" >&6
30950 else
30951
30952         ol_DB_LIB=
30953         ol_LIBS=$LIBS
30954         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30955
30956         cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962
30963 #ifdef HAVE_DB_185_H
30964 # include <db_185.h>
30965 #else
30966 # include <db.h>
30967 #endif
30968
30969 #ifndef DB_VERSION_MAJOR
30970 # define DB_VERSION_MAJOR 1
30971 #endif
30972
30973 #ifndef NULL
30974 #define NULL ((void*)0)
30975 #endif
30976
30977 int
30978 main ()
30979 {
30980
30981 #if DB_VERSION_MAJOR > 1
30982         {
30983                 char *version;
30984                 int major, minor, patch;
30985
30986                 version = db_version( &major, &minor, &patch );
30987
30988                 if( major != DB_VERSION_MAJOR ||
30989                         minor < DB_VERSION_MINOR )
30990                 {
30991                         printf("Berkeley DB version mismatch\n"
30992                                 "\theader: %s\n\tlibrary: %s\n",
30993                                 DB_VERSION_STRING, version);
30994                         return 1;
30995                 }
30996         }
30997 #endif
30998
30999 #if DB_VERSION_MAJOR > 2
31000         db_env_create( NULL, 0 );
31001 #elif DB_VERSION_MAJOR > 1
31002         db_appexit( NULL );
31003 #else
31004         (void) dbopen( NULL, 0, 0, 0, NULL);
31005 #endif
31006
31007   ;
31008   return 0;
31009 }
31010 _ACEOF
31011 rm -f conftest.$ac_objext conftest$ac_exeext
31012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31013   (eval $ac_link) 2>conftest.er1
31014   ac_status=$?
31015   grep -v '^ *+' conftest.er1 >conftest.err
31016   rm -f conftest.er1
31017   cat conftest.err >&5
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); } &&
31020          { ac_try='test -z "$ac_c_werror_flag"
31021                          || test ! -s conftest.err'
31022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023   (eval $ac_try) 2>&5
31024   ac_status=$?
31025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026   (exit $ac_status); }; } &&
31027          { ac_try='test -s conftest$ac_exeext'
31028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029   (eval $ac_try) 2>&5
31030   ac_status=$?
31031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032   (exit $ac_status); }; }; then
31033   ol_cv_db_none=yes
31034 else
31035   echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31037
31038 ol_cv_db_none=no
31039 fi
31040 rm -f conftest.err conftest.$ac_objext \
31041       conftest$ac_exeext conftest.$ac_ext
31042
31043         LIBS="$ol_LIBS"
31044
31045 fi
31046 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31047 echo "${ECHO_T}$ol_cv_db_none" >&6
31048
31049         if test $ol_cv_db_none = yes ; then
31050                 ol_cv_lib_db=yes
31051         fi
31052 fi
31053
31054
31055                 if test "$ol_cv_lib_db" != no ; then
31056                         ol_cv_berkeley_db=yes
31057                 fi
31058         fi
31059 fi
31060
31061         else
31062                 ol_cv_berkeley_db=no
31063
31064 for ac_header in db.h
31065 do
31066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31068   echo "$as_me:$LINENO: checking for $ac_header" >&5
31069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31071   echo $ECHO_N "(cached) $ECHO_C" >&6
31072 fi
31073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31075 else
31076   # Is the header compilable?
31077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31079 cat >conftest.$ac_ext <<_ACEOF
31080 /* confdefs.h.  */
31081 _ACEOF
31082 cat confdefs.h >>conftest.$ac_ext
31083 cat >>conftest.$ac_ext <<_ACEOF
31084 /* end confdefs.h.  */
31085 $ac_includes_default
31086 #include <$ac_header>
31087 _ACEOF
31088 rm -f conftest.$ac_objext
31089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31090   (eval $ac_compile) 2>conftest.er1
31091   ac_status=$?
31092   grep -v '^ *+' conftest.er1 >conftest.err
31093   rm -f conftest.er1
31094   cat conftest.err >&5
31095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096   (exit $ac_status); } &&
31097          { ac_try='test -z "$ac_c_werror_flag"
31098                          || test ! -s conftest.err'
31099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31100   (eval $ac_try) 2>&5
31101   ac_status=$?
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); }; } &&
31104          { ac_try='test -s conftest.$ac_objext'
31105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31106   (eval $ac_try) 2>&5
31107   ac_status=$?
31108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31109   (exit $ac_status); }; }; then
31110   ac_header_compiler=yes
31111 else
31112   echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31114
31115 ac_header_compiler=no
31116 fi
31117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31119 echo "${ECHO_T}$ac_header_compiler" >&6
31120
31121 # Is the header present?
31122 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31124 cat >conftest.$ac_ext <<_ACEOF
31125 /* confdefs.h.  */
31126 _ACEOF
31127 cat confdefs.h >>conftest.$ac_ext
31128 cat >>conftest.$ac_ext <<_ACEOF
31129 /* end confdefs.h.  */
31130 #include <$ac_header>
31131 _ACEOF
31132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } >/dev/null; then
31140   if test -s conftest.err; then
31141     ac_cpp_err=$ac_c_preproc_warn_flag
31142     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31143   else
31144     ac_cpp_err=
31145   fi
31146 else
31147   ac_cpp_err=yes
31148 fi
31149 if test -z "$ac_cpp_err"; then
31150   ac_header_preproc=yes
31151 else
31152   echo "$as_me: failed program was:" >&5
31153 sed 's/^/| /' conftest.$ac_ext >&5
31154
31155   ac_header_preproc=no
31156 fi
31157 rm -f conftest.err conftest.$ac_ext
31158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31159 echo "${ECHO_T}$ac_header_preproc" >&6
31160
31161 # So?  What about this header?
31162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31163   yes:no: )
31164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31168     ac_header_preproc=yes
31169     ;;
31170   no:yes:* )
31171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31183     (
31184       cat <<\_ASBOX
31185 ## ------------------------------------------ ##
31186 ## Report this to the AC_PACKAGE_NAME lists.  ##
31187 ## ------------------------------------------ ##
31188 _ASBOX
31189     ) |
31190       sed "s/^/$as_me: WARNING:     /" >&2
31191     ;;
31192 esac
31193 echo "$as_me:$LINENO: checking for $ac_header" >&5
31194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31196   echo $ECHO_N "(cached) $ECHO_C" >&6
31197 else
31198   eval "$as_ac_Header=\$ac_header_preproc"
31199 fi
31200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31202
31203 fi
31204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31205   cat >>confdefs.h <<_ACEOF
31206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31207 _ACEOF
31208
31209 fi
31210
31211 done
31212
31213 if test $ac_cv_header_db_h = yes; then
31214         ol_cv_lib_db=no
31215
31216 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31217 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31218 if test "${ol_cv_bdb_major+set}" = set; then
31219   echo $ECHO_N "(cached) $ECHO_C" >&6
31220 else
31221
31222         ol_cv_bdb_major=0
31223         if test $ol_cv_bdb_major = 0 ; then
31224                 cat >conftest.$ac_ext <<_ACEOF
31225 /* confdefs.h.  */
31226 _ACEOF
31227 cat confdefs.h >>conftest.$ac_ext
31228 cat >>conftest.$ac_ext <<_ACEOF
31229 /* end confdefs.h.  */
31230
31231 #include <db.h>
31232 #ifndef DB_VERSION_MAJOR
31233 #       define DB_VERSION_MAJOR 1
31234 #endif
31235 #if DB_VERSION_MAJOR == 4
31236 __db_version
31237 #endif
31238
31239 _ACEOF
31240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31241   $EGREP "__db_version" >/dev/null 2>&1; then
31242   ol_cv_bdb_major=4
31243 else
31244   :
31245 fi
31246 rm -f conftest*
31247
31248         fi
31249         if test $ol_cv_bdb_major = 0 ; then
31250                 cat >conftest.$ac_ext <<_ACEOF
31251 /* confdefs.h.  */
31252 _ACEOF
31253 cat confdefs.h >>conftest.$ac_ext
31254 cat >>conftest.$ac_ext <<_ACEOF
31255 /* end confdefs.h.  */
31256
31257 #include <db.h>
31258 #ifndef DB_VERSION_MAJOR
31259 #       define DB_VERSION_MAJOR 1
31260 #endif
31261 #if DB_VERSION_MAJOR == 3
31262 __db_version
31263 #endif
31264
31265 _ACEOF
31266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31267   $EGREP "__db_version" >/dev/null 2>&1; then
31268   ol_cv_bdb_major=3
31269 else
31270   :
31271 fi
31272 rm -f conftest*
31273
31274         fi
31275         if test $ol_cv_bdb_major = 0 ; then
31276                 cat >conftest.$ac_ext <<_ACEOF
31277 /* confdefs.h.  */
31278 _ACEOF
31279 cat confdefs.h >>conftest.$ac_ext
31280 cat >>conftest.$ac_ext <<_ACEOF
31281 /* end confdefs.h.  */
31282
31283 #include <db.h>
31284 #ifndef DB_VERSION_MAJOR
31285 #       define DB_VERSION_MAJOR 1
31286 #endif
31287 #if DB_VERSION_MAJOR == 2
31288 __db_version
31289 #endif
31290
31291 _ACEOF
31292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31293   $EGREP "__db_version" >/dev/null 2>&1; then
31294   ol_cv_bdb_major=2
31295 else
31296   :
31297 fi
31298 rm -f conftest*
31299
31300         fi
31301         if test $ol_cv_bdb_major = 0 ; then
31302                 cat >conftest.$ac_ext <<_ACEOF
31303 /* confdefs.h.  */
31304 _ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h.  */
31308
31309 #include <db.h>
31310 #ifndef DB_VERSION_MAJOR
31311 #       define DB_VERSION_MAJOR 1
31312 #endif
31313 #if DB_VERSION_MAJOR == 1
31314 __db_version
31315 #endif
31316
31317 _ACEOF
31318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31319   $EGREP "__db_version" >/dev/null 2>&1; then
31320   ol_cv_bdb_major=1
31321 else
31322   :
31323 fi
31324 rm -f conftest*
31325
31326         fi
31327
31328         if test $ol_cv_bdb_major = 0 ; then
31329                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31330 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31331    { (exit 1); exit 1; }; }
31332         fi
31333
31334 fi
31335 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31336 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31337
31338 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31339 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31340 if test "${ol_cv_bdb_minor+set}" = set; then
31341   echo $ECHO_N "(cached) $ECHO_C" >&6
31342 else
31343
31344         ol_cv_bdb_minor=0
31345         if test $ol_cv_bdb_minor = 0 ; then
31346                 cat >conftest.$ac_ext <<_ACEOF
31347 /* confdefs.h.  */
31348 _ACEOF
31349 cat confdefs.h >>conftest.$ac_ext
31350 cat >>conftest.$ac_ext <<_ACEOF
31351 /* end confdefs.h.  */
31352
31353 #include <db.h>
31354 #ifndef DB_VERSION_MINOR
31355 #       define DB_VERSION_MINOR 0
31356 #endif
31357 #if DB_VERSION_MINOR == 9
31358 __db_version
31359 #endif
31360
31361 _ACEOF
31362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31363   $EGREP "__db_version" >/dev/null 2>&1; then
31364   ol_cv_bdb_minor=9
31365 else
31366   :
31367 fi
31368 rm -f conftest*
31369
31370         fi
31371         if test $ol_cv_bdb_minor = 0 ; then
31372                 cat >conftest.$ac_ext <<_ACEOF
31373 /* confdefs.h.  */
31374 _ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h.  */
31378
31379 #include <db.h>
31380 #ifndef DB_VERSION_MINOR
31381 #       define DB_VERSION_MINOR 0
31382 #endif
31383 #if DB_VERSION_MINOR == 8
31384 __db_version
31385 #endif
31386
31387 _ACEOF
31388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31389   $EGREP "__db_version" >/dev/null 2>&1; then
31390   ol_cv_bdb_minor=8
31391 else
31392   :
31393 fi
31394 rm -f conftest*
31395
31396         fi
31397         if test $ol_cv_bdb_minor = 0 ; then
31398                 cat >conftest.$ac_ext <<_ACEOF
31399 /* confdefs.h.  */
31400 _ACEOF
31401 cat confdefs.h >>conftest.$ac_ext
31402 cat >>conftest.$ac_ext <<_ACEOF
31403 /* end confdefs.h.  */
31404
31405 #include <db.h>
31406 #ifndef DB_VERSION_MINOR
31407 #       define DB_VERSION_MINOR 0
31408 #endif
31409 #if DB_VERSION_MINOR == 7
31410 __db_version
31411 #endif
31412
31413 _ACEOF
31414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31415   $EGREP "__db_version" >/dev/null 2>&1; then
31416   ol_cv_bdb_minor=7
31417 else
31418   :
31419 fi
31420 rm -f conftest*
31421
31422         fi
31423         if test $ol_cv_bdb_minor = 0 ; then
31424                 cat >conftest.$ac_ext <<_ACEOF
31425 /* confdefs.h.  */
31426 _ACEOF
31427 cat confdefs.h >>conftest.$ac_ext
31428 cat >>conftest.$ac_ext <<_ACEOF
31429 /* end confdefs.h.  */
31430
31431 #include <db.h>
31432 #ifndef DB_VERSION_MINOR
31433 #       define DB_VERSION_MINOR 0
31434 #endif
31435 #if DB_VERSION_MINOR == 6
31436 __db_version
31437 #endif
31438
31439 _ACEOF
31440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31441   $EGREP "__db_version" >/dev/null 2>&1; then
31442   ol_cv_bdb_minor=6
31443 else
31444   :
31445 fi
31446 rm -f conftest*
31447
31448         fi
31449         if test $ol_cv_bdb_minor = 0 ; then
31450                 cat >conftest.$ac_ext <<_ACEOF
31451 /* confdefs.h.  */
31452 _ACEOF
31453 cat confdefs.h >>conftest.$ac_ext
31454 cat >>conftest.$ac_ext <<_ACEOF
31455 /* end confdefs.h.  */
31456
31457 #include <db.h>
31458 #ifndef DB_VERSION_MINOR
31459 #       define DB_VERSION_MINOR 0
31460 #endif
31461 #if DB_VERSION_MINOR == 5
31462 __db_version
31463 #endif
31464
31465 _ACEOF
31466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31467   $EGREP "__db_version" >/dev/null 2>&1; then
31468   ol_cv_bdb_minor=5
31469 else
31470   :
31471 fi
31472 rm -f conftest*
31473
31474         fi
31475         if test $ol_cv_bdb_minor = 0 ; then
31476                 cat >conftest.$ac_ext <<_ACEOF
31477 /* confdefs.h.  */
31478 _ACEOF
31479 cat confdefs.h >>conftest.$ac_ext
31480 cat >>conftest.$ac_ext <<_ACEOF
31481 /* end confdefs.h.  */
31482
31483 #include <db.h>
31484 #ifndef DB_VERSION_MINOR
31485 #       define DB_VERSION_MINOR 0
31486 #endif
31487 #if DB_VERSION_MINOR == 4
31488 __db_version
31489 #endif
31490
31491 _ACEOF
31492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31493   $EGREP "__db_version" >/dev/null 2>&1; then
31494   ol_cv_bdb_minor=4
31495 else
31496   :
31497 fi
31498 rm -f conftest*
31499
31500         fi
31501         if test $ol_cv_bdb_minor = 0 ; then
31502                 cat >conftest.$ac_ext <<_ACEOF
31503 /* confdefs.h.  */
31504 _ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h.  */
31508
31509 #include <db.h>
31510 #ifndef DB_VERSION_MINOR
31511 #       define DB_VERSION_MINOR 0
31512 #endif
31513 #if DB_VERSION_MINOR == 3
31514 __db_version
31515 #endif
31516
31517 _ACEOF
31518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31519   $EGREP "__db_version" >/dev/null 2>&1; then
31520   ol_cv_bdb_minor=3
31521 else
31522   :
31523 fi
31524 rm -f conftest*
31525
31526         fi
31527         if test $ol_cv_bdb_minor = 0 ; then
31528                 cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534
31535 #include <db.h>
31536 #ifndef DB_VERSION_MINOR
31537 #       define DB_VERSION_MINOR 0
31538 #endif
31539 #if DB_VERSION_MINOR == 2
31540 __db_version
31541 #endif
31542
31543 _ACEOF
31544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31545   $EGREP "__db_version" >/dev/null 2>&1; then
31546   ol_cv_bdb_minor=2
31547 else
31548   :
31549 fi
31550 rm -f conftest*
31551
31552         fi
31553         if test $ol_cv_bdb_minor = 0 ; then
31554                 cat >conftest.$ac_ext <<_ACEOF
31555 /* confdefs.h.  */
31556 _ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h.  */
31560
31561 #include <db.h>
31562 #ifndef DB_VERSION_MINOR
31563 #       define DB_VERSION_MINOR 0
31564 #endif
31565 #if DB_VERSION_MINOR == 1
31566 __db_version
31567 #endif
31568
31569 _ACEOF
31570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571   $EGREP "__db_version" >/dev/null 2>&1; then
31572   ol_cv_bdb_minor=1
31573 else
31574   :
31575 fi
31576 rm -f conftest*
31577
31578         fi
31579
31580 fi
31581 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31582 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31583
31584 if test $ol_cv_bdb_major = 4 ; then
31585         if test $ol_cv_bdb_minor = 4 ; then
31586                 if test $ol_cv_lib_db = no ; then
31587         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31588 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31589 if test "${ol_cv_db_db44+set}" = set; then
31590   echo $ECHO_N "(cached) $ECHO_C" >&6
31591 else
31592
31593         ol_DB_LIB=-ldb44
31594         ol_LIBS=$LIBS
31595         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31596
31597         cat >conftest.$ac_ext <<_ACEOF
31598 /* confdefs.h.  */
31599 _ACEOF
31600 cat confdefs.h >>conftest.$ac_ext
31601 cat >>conftest.$ac_ext <<_ACEOF
31602 /* end confdefs.h.  */
31603
31604 #ifdef HAVE_DB_185_H
31605 # include <db_185.h>
31606 #else
31607 # include <db.h>
31608 #endif
31609
31610 #ifndef DB_VERSION_MAJOR
31611 # define DB_VERSION_MAJOR 1
31612 #endif
31613
31614 #ifndef NULL
31615 #define NULL ((void*)0)
31616 #endif
31617
31618 int
31619 main ()
31620 {
31621
31622 #if DB_VERSION_MAJOR > 1
31623         {
31624                 char *version;
31625                 int major, minor, patch;
31626
31627                 version = db_version( &major, &minor, &patch );
31628
31629                 if( major != DB_VERSION_MAJOR ||
31630                         minor < DB_VERSION_MINOR )
31631                 {
31632                         printf("Berkeley DB version mismatch\n"
31633                                 "\theader: %s\n\tlibrary: %s\n",
31634                                 DB_VERSION_STRING, version);
31635                         return 1;
31636                 }
31637         }
31638 #endif
31639
31640 #if DB_VERSION_MAJOR > 2
31641         db_env_create( NULL, 0 );
31642 #elif DB_VERSION_MAJOR > 1
31643         db_appexit( NULL );
31644 #else
31645         (void) dbopen( NULL, 0, 0, 0, NULL);
31646 #endif
31647
31648   ;
31649   return 0;
31650 }
31651 _ACEOF
31652 rm -f conftest.$ac_objext conftest$ac_exeext
31653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31654   (eval $ac_link) 2>conftest.er1
31655   ac_status=$?
31656   grep -v '^ *+' conftest.er1 >conftest.err
31657   rm -f conftest.er1
31658   cat conftest.err >&5
31659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660   (exit $ac_status); } &&
31661          { ac_try='test -z "$ac_c_werror_flag"
31662                          || test ! -s conftest.err'
31663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31664   (eval $ac_try) 2>&5
31665   ac_status=$?
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); }; } &&
31668          { ac_try='test -s conftest$ac_exeext'
31669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31670   (eval $ac_try) 2>&5
31671   ac_status=$?
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); }; }; then
31674   ol_cv_db_db44=yes
31675 else
31676   echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31678
31679 ol_cv_db_db44=no
31680 fi
31681 rm -f conftest.err conftest.$ac_objext \
31682       conftest$ac_exeext conftest.$ac_ext
31683
31684         LIBS="$ol_LIBS"
31685
31686 fi
31687 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31688 echo "${ECHO_T}$ol_cv_db_db44" >&6
31689
31690         if test $ol_cv_db_db44 = yes ; then
31691                 ol_cv_lib_db=-ldb44
31692         fi
31693 fi
31694
31695                 if test $ol_cv_lib_db = no ; then
31696         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31697 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31698 if test "${ol_cv_db_db_44+set}" = set; then
31699   echo $ECHO_N "(cached) $ECHO_C" >&6
31700 else
31701
31702         ol_DB_LIB=-ldb-44
31703         ol_LIBS=$LIBS
31704         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31705
31706         cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712
31713 #ifdef HAVE_DB_185_H
31714 # include <db_185.h>
31715 #else
31716 # include <db.h>
31717 #endif
31718
31719 #ifndef DB_VERSION_MAJOR
31720 # define DB_VERSION_MAJOR 1
31721 #endif
31722
31723 #ifndef NULL
31724 #define NULL ((void*)0)
31725 #endif
31726
31727 int
31728 main ()
31729 {
31730
31731 #if DB_VERSION_MAJOR > 1
31732         {
31733                 char *version;
31734                 int major, minor, patch;
31735
31736                 version = db_version( &major, &minor, &patch );
31737
31738                 if( major != DB_VERSION_MAJOR ||
31739                         minor < DB_VERSION_MINOR )
31740                 {
31741                         printf("Berkeley DB version mismatch\n"
31742                                 "\theader: %s\n\tlibrary: %s\n",
31743                                 DB_VERSION_STRING, version);
31744                         return 1;
31745                 }
31746         }
31747 #endif
31748
31749 #if DB_VERSION_MAJOR > 2
31750         db_env_create( NULL, 0 );
31751 #elif DB_VERSION_MAJOR > 1
31752         db_appexit( NULL );
31753 #else
31754         (void) dbopen( NULL, 0, 0, 0, NULL);
31755 #endif
31756
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31763   (eval $ac_link) 2>conftest.er1
31764   ac_status=$?
31765   grep -v '^ *+' conftest.er1 >conftest.err
31766   rm -f conftest.er1
31767   cat conftest.err >&5
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } &&
31770          { ac_try='test -z "$ac_c_werror_flag"
31771                          || test ! -s conftest.err'
31772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773   (eval $ac_try) 2>&5
31774   ac_status=$?
31775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); }; } &&
31777          { ac_try='test -s conftest$ac_exeext'
31778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31779   (eval $ac_try) 2>&5
31780   ac_status=$?
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); }; }; then
31783   ol_cv_db_db_44=yes
31784 else
31785   echo "$as_me: failed program was:" >&5
31786 sed 's/^/| /' conftest.$ac_ext >&5
31787
31788 ol_cv_db_db_44=no
31789 fi
31790 rm -f conftest.err conftest.$ac_objext \
31791       conftest$ac_exeext conftest.$ac_ext
31792
31793         LIBS="$ol_LIBS"
31794
31795 fi
31796 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31797 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31798
31799         if test $ol_cv_db_db_44 = yes ; then
31800                 ol_cv_lib_db=-ldb-44
31801         fi
31802 fi
31803
31804                 if test $ol_cv_lib_db = no ; then
31805         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31806 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31807 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31808   echo $ECHO_N "(cached) $ECHO_C" >&6
31809 else
31810
31811         ol_DB_LIB=-ldb-4.4
31812         ol_LIBS=$LIBS
31813         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31814
31815         cat >conftest.$ac_ext <<_ACEOF
31816 /* confdefs.h.  */
31817 _ACEOF
31818 cat confdefs.h >>conftest.$ac_ext
31819 cat >>conftest.$ac_ext <<_ACEOF
31820 /* end confdefs.h.  */
31821
31822 #ifdef HAVE_DB_185_H
31823 # include <db_185.h>
31824 #else
31825 # include <db.h>
31826 #endif
31827
31828 #ifndef DB_VERSION_MAJOR
31829 # define DB_VERSION_MAJOR 1
31830 #endif
31831
31832 #ifndef NULL
31833 #define NULL ((void*)0)
31834 #endif
31835
31836 int
31837 main ()
31838 {
31839
31840 #if DB_VERSION_MAJOR > 1
31841         {
31842                 char *version;
31843                 int major, minor, patch;
31844
31845                 version = db_version( &major, &minor, &patch );
31846
31847                 if( major != DB_VERSION_MAJOR ||
31848                         minor < DB_VERSION_MINOR )
31849                 {
31850                         printf("Berkeley DB version mismatch\n"
31851                                 "\theader: %s\n\tlibrary: %s\n",
31852                                 DB_VERSION_STRING, version);
31853                         return 1;
31854                 }
31855         }
31856 #endif
31857
31858 #if DB_VERSION_MAJOR > 2
31859         db_env_create( NULL, 0 );
31860 #elif DB_VERSION_MAJOR > 1
31861         db_appexit( NULL );
31862 #else
31863         (void) dbopen( NULL, 0, 0, 0, NULL);
31864 #endif
31865
31866   ;
31867   return 0;
31868 }
31869 _ACEOF
31870 rm -f conftest.$ac_objext conftest$ac_exeext
31871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31872   (eval $ac_link) 2>conftest.er1
31873   ac_status=$?
31874   grep -v '^ *+' conftest.er1 >conftest.err
31875   rm -f conftest.er1
31876   cat conftest.err >&5
31877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878   (exit $ac_status); } &&
31879          { ac_try='test -z "$ac_c_werror_flag"
31880                          || test ! -s conftest.err'
31881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882   (eval $ac_try) 2>&5
31883   ac_status=$?
31884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885   (exit $ac_status); }; } &&
31886          { ac_try='test -s conftest$ac_exeext'
31887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888   (eval $ac_try) 2>&5
31889   ac_status=$?
31890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891   (exit $ac_status); }; }; then
31892   ol_cv_db_db_4_dot_4=yes
31893 else
31894   echo "$as_me: failed program was:" >&5
31895 sed 's/^/| /' conftest.$ac_ext >&5
31896
31897 ol_cv_db_db_4_dot_4=no
31898 fi
31899 rm -f conftest.err conftest.$ac_objext \
31900       conftest$ac_exeext conftest.$ac_ext
31901
31902         LIBS="$ol_LIBS"
31903
31904 fi
31905 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31906 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31907
31908         if test $ol_cv_db_db_4_dot_4 = yes ; then
31909                 ol_cv_lib_db=-ldb-4.4
31910         fi
31911 fi
31912
31913                 if test $ol_cv_lib_db = no ; then
31914         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31915 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31916 if test "${ol_cv_db_db_4_4+set}" = set; then
31917   echo $ECHO_N "(cached) $ECHO_C" >&6
31918 else
31919
31920         ol_DB_LIB=-ldb-4-4
31921         ol_LIBS=$LIBS
31922         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31923
31924         cat >conftest.$ac_ext <<_ACEOF
31925 /* confdefs.h.  */
31926 _ACEOF
31927 cat confdefs.h >>conftest.$ac_ext
31928 cat >>conftest.$ac_ext <<_ACEOF
31929 /* end confdefs.h.  */
31930
31931 #ifdef HAVE_DB_185_H
31932 # include <db_185.h>
31933 #else
31934 # include <db.h>
31935 #endif
31936
31937 #ifndef DB_VERSION_MAJOR
31938 # define DB_VERSION_MAJOR 1
31939 #endif
31940
31941 #ifndef NULL
31942 #define NULL ((void*)0)
31943 #endif
31944
31945 int
31946 main ()
31947 {
31948
31949 #if DB_VERSION_MAJOR > 1
31950         {
31951                 char *version;
31952                 int major, minor, patch;
31953
31954                 version = db_version( &major, &minor, &patch );
31955
31956                 if( major != DB_VERSION_MAJOR ||
31957                         minor < DB_VERSION_MINOR )
31958                 {
31959                         printf("Berkeley DB version mismatch\n"
31960                                 "\theader: %s\n\tlibrary: %s\n",
31961                                 DB_VERSION_STRING, version);
31962                         return 1;
31963                 }
31964         }
31965 #endif
31966
31967 #if DB_VERSION_MAJOR > 2
31968         db_env_create( NULL, 0 );
31969 #elif DB_VERSION_MAJOR > 1
31970         db_appexit( NULL );
31971 #else
31972         (void) dbopen( NULL, 0, 0, 0, NULL);
31973 #endif
31974
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest.$ac_objext conftest$ac_exeext
31980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31981   (eval $ac_link) 2>conftest.er1
31982   ac_status=$?
31983   grep -v '^ *+' conftest.er1 >conftest.err
31984   rm -f conftest.er1
31985   cat conftest.err >&5
31986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987   (exit $ac_status); } &&
31988          { ac_try='test -z "$ac_c_werror_flag"
31989                          || test ! -s conftest.err'
31990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991   (eval $ac_try) 2>&5
31992   ac_status=$?
31993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994   (exit $ac_status); }; } &&
31995          { ac_try='test -s conftest$ac_exeext'
31996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31997   (eval $ac_try) 2>&5
31998   ac_status=$?
31999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32000   (exit $ac_status); }; }; then
32001   ol_cv_db_db_4_4=yes
32002 else
32003   echo "$as_me: failed program was:" >&5
32004 sed 's/^/| /' conftest.$ac_ext >&5
32005
32006 ol_cv_db_db_4_4=no
32007 fi
32008 rm -f conftest.err conftest.$ac_objext \
32009       conftest$ac_exeext conftest.$ac_ext
32010
32011         LIBS="$ol_LIBS"
32012
32013 fi
32014 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32015 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32016
32017         if test $ol_cv_db_db_4_4 = yes ; then
32018                 ol_cv_lib_db=-ldb-4-4
32019         fi
32020 fi
32021
32022         elif test $ol_cv_bdb_minor = 3 ; then
32023                 if test $ol_cv_lib_db = no ; then
32024         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32025 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32026 if test "${ol_cv_db_db43+set}" = set; then
32027   echo $ECHO_N "(cached) $ECHO_C" >&6
32028 else
32029
32030         ol_DB_LIB=-ldb43
32031         ol_LIBS=$LIBS
32032         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32033
32034         cat >conftest.$ac_ext <<_ACEOF
32035 /* confdefs.h.  */
32036 _ACEOF
32037 cat confdefs.h >>conftest.$ac_ext
32038 cat >>conftest.$ac_ext <<_ACEOF
32039 /* end confdefs.h.  */
32040
32041 #ifdef HAVE_DB_185_H
32042 # include <db_185.h>
32043 #else
32044 # include <db.h>
32045 #endif
32046
32047 #ifndef DB_VERSION_MAJOR
32048 # define DB_VERSION_MAJOR 1
32049 #endif
32050
32051 #ifndef NULL
32052 #define NULL ((void*)0)
32053 #endif
32054
32055 int
32056 main ()
32057 {
32058
32059 #if DB_VERSION_MAJOR > 1
32060         {
32061                 char *version;
32062                 int major, minor, patch;
32063
32064                 version = db_version( &major, &minor, &patch );
32065
32066                 if( major != DB_VERSION_MAJOR ||
32067                         minor < DB_VERSION_MINOR )
32068                 {
32069                         printf("Berkeley DB version mismatch\n"
32070                                 "\theader: %s\n\tlibrary: %s\n",
32071                                 DB_VERSION_STRING, version);
32072                         return 1;
32073                 }
32074         }
32075 #endif
32076
32077 #if DB_VERSION_MAJOR > 2
32078         db_env_create( NULL, 0 );
32079 #elif DB_VERSION_MAJOR > 1
32080         db_appexit( NULL );
32081 #else
32082         (void) dbopen( NULL, 0, 0, 0, NULL);
32083 #endif
32084
32085   ;
32086   return 0;
32087 }
32088 _ACEOF
32089 rm -f conftest.$ac_objext conftest$ac_exeext
32090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32091   (eval $ac_link) 2>conftest.er1
32092   ac_status=$?
32093   grep -v '^ *+' conftest.er1 >conftest.err
32094   rm -f conftest.er1
32095   cat conftest.err >&5
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); } &&
32098          { ac_try='test -z "$ac_c_werror_flag"
32099                          || test ! -s conftest.err'
32100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101   (eval $ac_try) 2>&5
32102   ac_status=$?
32103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104   (exit $ac_status); }; } &&
32105          { ac_try='test -s conftest$ac_exeext'
32106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107   (eval $ac_try) 2>&5
32108   ac_status=$?
32109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110   (exit $ac_status); }; }; then
32111   ol_cv_db_db43=yes
32112 else
32113   echo "$as_me: failed program was:" >&5
32114 sed 's/^/| /' conftest.$ac_ext >&5
32115
32116 ol_cv_db_db43=no
32117 fi
32118 rm -f conftest.err conftest.$ac_objext \
32119       conftest$ac_exeext conftest.$ac_ext
32120
32121         LIBS="$ol_LIBS"
32122
32123 fi
32124 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32125 echo "${ECHO_T}$ol_cv_db_db43" >&6
32126
32127         if test $ol_cv_db_db43 = yes ; then
32128                 ol_cv_lib_db=-ldb43
32129         fi
32130 fi
32131
32132                 if test $ol_cv_lib_db = no ; then
32133         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32134 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32135 if test "${ol_cv_db_db_43+set}" = set; then
32136   echo $ECHO_N "(cached) $ECHO_C" >&6
32137 else
32138
32139         ol_DB_LIB=-ldb-43
32140         ol_LIBS=$LIBS
32141         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32142
32143         cat >conftest.$ac_ext <<_ACEOF
32144 /* confdefs.h.  */
32145 _ACEOF
32146 cat confdefs.h >>conftest.$ac_ext
32147 cat >>conftest.$ac_ext <<_ACEOF
32148 /* end confdefs.h.  */
32149
32150 #ifdef HAVE_DB_185_H
32151 # include <db_185.h>
32152 #else
32153 # include <db.h>
32154 #endif
32155
32156 #ifndef DB_VERSION_MAJOR
32157 # define DB_VERSION_MAJOR 1
32158 #endif
32159
32160 #ifndef NULL
32161 #define NULL ((void*)0)
32162 #endif
32163
32164 int
32165 main ()
32166 {
32167
32168 #if DB_VERSION_MAJOR > 1
32169         {
32170                 char *version;
32171                 int major, minor, patch;
32172
32173                 version = db_version( &major, &minor, &patch );
32174
32175                 if( major != DB_VERSION_MAJOR ||
32176                         minor < DB_VERSION_MINOR )
32177                 {
32178                         printf("Berkeley DB version mismatch\n"
32179                                 "\theader: %s\n\tlibrary: %s\n",
32180                                 DB_VERSION_STRING, version);
32181                         return 1;
32182                 }
32183         }
32184 #endif
32185
32186 #if DB_VERSION_MAJOR > 2
32187         db_env_create( NULL, 0 );
32188 #elif DB_VERSION_MAJOR > 1
32189         db_appexit( NULL );
32190 #else
32191         (void) dbopen( NULL, 0, 0, 0, NULL);
32192 #endif
32193
32194   ;
32195   return 0;
32196 }
32197 _ACEOF
32198 rm -f conftest.$ac_objext conftest$ac_exeext
32199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32200   (eval $ac_link) 2>conftest.er1
32201   ac_status=$?
32202   grep -v '^ *+' conftest.er1 >conftest.err
32203   rm -f conftest.er1
32204   cat conftest.err >&5
32205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206   (exit $ac_status); } &&
32207          { ac_try='test -z "$ac_c_werror_flag"
32208                          || test ! -s conftest.err'
32209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210   (eval $ac_try) 2>&5
32211   ac_status=$?
32212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213   (exit $ac_status); }; } &&
32214          { ac_try='test -s conftest$ac_exeext'
32215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216   (eval $ac_try) 2>&5
32217   ac_status=$?
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); }; }; then
32220   ol_cv_db_db_43=yes
32221 else
32222   echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32224
32225 ol_cv_db_db_43=no
32226 fi
32227 rm -f conftest.err conftest.$ac_objext \
32228       conftest$ac_exeext conftest.$ac_ext
32229
32230         LIBS="$ol_LIBS"
32231
32232 fi
32233 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32234 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32235
32236         if test $ol_cv_db_db_43 = yes ; then
32237                 ol_cv_lib_db=-ldb-43
32238         fi
32239 fi
32240
32241                 if test $ol_cv_lib_db = no ; then
32242         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32243 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32244 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32245   echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247
32248         ol_DB_LIB=-ldb-4.3
32249         ol_LIBS=$LIBS
32250         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32251
32252         cat >conftest.$ac_ext <<_ACEOF
32253 /* confdefs.h.  */
32254 _ACEOF
32255 cat confdefs.h >>conftest.$ac_ext
32256 cat >>conftest.$ac_ext <<_ACEOF
32257 /* end confdefs.h.  */
32258
32259 #ifdef HAVE_DB_185_H
32260 # include <db_185.h>
32261 #else
32262 # include <db.h>
32263 #endif
32264
32265 #ifndef DB_VERSION_MAJOR
32266 # define DB_VERSION_MAJOR 1
32267 #endif
32268
32269 #ifndef NULL
32270 #define NULL ((void*)0)
32271 #endif
32272
32273 int
32274 main ()
32275 {
32276
32277 #if DB_VERSION_MAJOR > 1
32278         {
32279                 char *version;
32280                 int major, minor, patch;
32281
32282                 version = db_version( &major, &minor, &patch );
32283
32284                 if( major != DB_VERSION_MAJOR ||
32285                         minor < DB_VERSION_MINOR )
32286                 {
32287                         printf("Berkeley DB version mismatch\n"
32288                                 "\theader: %s\n\tlibrary: %s\n",
32289                                 DB_VERSION_STRING, version);
32290                         return 1;
32291                 }
32292         }
32293 #endif
32294
32295 #if DB_VERSION_MAJOR > 2
32296         db_env_create( NULL, 0 );
32297 #elif DB_VERSION_MAJOR > 1
32298         db_appexit( NULL );
32299 #else
32300         (void) dbopen( NULL, 0, 0, 0, NULL);
32301 #endif
32302
32303   ;
32304   return 0;
32305 }
32306 _ACEOF
32307 rm -f conftest.$ac_objext conftest$ac_exeext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32309   (eval $ac_link) 2>conftest.er1
32310   ac_status=$?
32311   grep -v '^ *+' conftest.er1 >conftest.err
32312   rm -f conftest.er1
32313   cat conftest.err >&5
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } &&
32316          { ac_try='test -z "$ac_c_werror_flag"
32317                          || test ! -s conftest.err'
32318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319   (eval $ac_try) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; } &&
32323          { ac_try='test -s conftest$ac_exeext'
32324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325   (eval $ac_try) 2>&5
32326   ac_status=$?
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); }; }; then
32329   ol_cv_db_db_4_dot_3=yes
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334 ol_cv_db_db_4_dot_3=no
32335 fi
32336 rm -f conftest.err conftest.$ac_objext \
32337       conftest$ac_exeext conftest.$ac_ext
32338
32339         LIBS="$ol_LIBS"
32340
32341 fi
32342 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32343 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32344
32345         if test $ol_cv_db_db_4_dot_3 = yes ; then
32346                 ol_cv_lib_db=-ldb-4.3
32347         fi
32348 fi
32349
32350                 if test $ol_cv_lib_db = no ; then
32351         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32352 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32353 if test "${ol_cv_db_db_4_3+set}" = set; then
32354   echo $ECHO_N "(cached) $ECHO_C" >&6
32355 else
32356
32357         ol_DB_LIB=-ldb-4-3
32358         ol_LIBS=$LIBS
32359         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32360
32361         cat >conftest.$ac_ext <<_ACEOF
32362 /* confdefs.h.  */
32363 _ACEOF
32364 cat confdefs.h >>conftest.$ac_ext
32365 cat >>conftest.$ac_ext <<_ACEOF
32366 /* end confdefs.h.  */
32367
32368 #ifdef HAVE_DB_185_H
32369 # include <db_185.h>
32370 #else
32371 # include <db.h>
32372 #endif
32373
32374 #ifndef DB_VERSION_MAJOR
32375 # define DB_VERSION_MAJOR 1
32376 #endif
32377
32378 #ifndef NULL
32379 #define NULL ((void*)0)
32380 #endif
32381
32382 int
32383 main ()
32384 {
32385
32386 #if DB_VERSION_MAJOR > 1
32387         {
32388                 char *version;
32389                 int major, minor, patch;
32390
32391                 version = db_version( &major, &minor, &patch );
32392
32393                 if( major != DB_VERSION_MAJOR ||
32394                         minor < DB_VERSION_MINOR )
32395                 {
32396                         printf("Berkeley DB version mismatch\n"
32397                                 "\theader: %s\n\tlibrary: %s\n",
32398                                 DB_VERSION_STRING, version);
32399                         return 1;
32400                 }
32401         }
32402 #endif
32403
32404 #if DB_VERSION_MAJOR > 2
32405         db_env_create( NULL, 0 );
32406 #elif DB_VERSION_MAJOR > 1
32407         db_appexit( NULL );
32408 #else
32409         (void) dbopen( NULL, 0, 0, 0, NULL);
32410 #endif
32411
32412   ;
32413   return 0;
32414 }
32415 _ACEOF
32416 rm -f conftest.$ac_objext conftest$ac_exeext
32417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32418   (eval $ac_link) 2>conftest.er1
32419   ac_status=$?
32420   grep -v '^ *+' conftest.er1 >conftest.err
32421   rm -f conftest.er1
32422   cat conftest.err >&5
32423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424   (exit $ac_status); } &&
32425          { ac_try='test -z "$ac_c_werror_flag"
32426                          || test ! -s conftest.err'
32427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428   (eval $ac_try) 2>&5
32429   ac_status=$?
32430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431   (exit $ac_status); }; } &&
32432          { ac_try='test -s conftest$ac_exeext'
32433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434   (eval $ac_try) 2>&5
32435   ac_status=$?
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); }; }; then
32438   ol_cv_db_db_4_3=yes
32439 else
32440   echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32442
32443 ol_cv_db_db_4_3=no
32444 fi
32445 rm -f conftest.err conftest.$ac_objext \
32446       conftest$ac_exeext conftest.$ac_ext
32447
32448         LIBS="$ol_LIBS"
32449
32450 fi
32451 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32452 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32453
32454         if test $ol_cv_db_db_4_3 = yes ; then
32455                 ol_cv_lib_db=-ldb-4-3
32456         fi
32457 fi
32458
32459         elif test $ol_cv_bdb_minor = 2 ; then
32460                 if test $ol_cv_lib_db = no ; then
32461         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32462 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32463 if test "${ol_cv_db_db42+set}" = set; then
32464   echo $ECHO_N "(cached) $ECHO_C" >&6
32465 else
32466
32467         ol_DB_LIB=-ldb42
32468         ol_LIBS=$LIBS
32469         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32470
32471         cat >conftest.$ac_ext <<_ACEOF
32472 /* confdefs.h.  */
32473 _ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h.  */
32477
32478 #ifdef HAVE_DB_185_H
32479 # include <db_185.h>
32480 #else
32481 # include <db.h>
32482 #endif
32483
32484 #ifndef DB_VERSION_MAJOR
32485 # define DB_VERSION_MAJOR 1
32486 #endif
32487
32488 #ifndef NULL
32489 #define NULL ((void*)0)
32490 #endif
32491
32492 int
32493 main ()
32494 {
32495
32496 #if DB_VERSION_MAJOR > 1
32497         {
32498                 char *version;
32499                 int major, minor, patch;
32500
32501                 version = db_version( &major, &minor, &patch );
32502
32503                 if( major != DB_VERSION_MAJOR ||
32504                         minor < DB_VERSION_MINOR )
32505                 {
32506                         printf("Berkeley DB version mismatch\n"
32507                                 "\theader: %s\n\tlibrary: %s\n",
32508                                 DB_VERSION_STRING, version);
32509                         return 1;
32510                 }
32511         }
32512 #endif
32513
32514 #if DB_VERSION_MAJOR > 2
32515         db_env_create( NULL, 0 );
32516 #elif DB_VERSION_MAJOR > 1
32517         db_appexit( NULL );
32518 #else
32519         (void) dbopen( NULL, 0, 0, 0, NULL);
32520 #endif
32521
32522   ;
32523   return 0;
32524 }
32525 _ACEOF
32526 rm -f conftest.$ac_objext conftest$ac_exeext
32527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32528   (eval $ac_link) 2>conftest.er1
32529   ac_status=$?
32530   grep -v '^ *+' conftest.er1 >conftest.err
32531   rm -f conftest.er1
32532   cat conftest.err >&5
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); } &&
32535          { ac_try='test -z "$ac_c_werror_flag"
32536                          || test ! -s conftest.err'
32537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538   (eval $ac_try) 2>&5
32539   ac_status=$?
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); }; } &&
32542          { ac_try='test -s conftest$ac_exeext'
32543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32544   (eval $ac_try) 2>&5
32545   ac_status=$?
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); }; }; then
32548   ol_cv_db_db42=yes
32549 else
32550   echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32552
32553 ol_cv_db_db42=no
32554 fi
32555 rm -f conftest.err conftest.$ac_objext \
32556       conftest$ac_exeext conftest.$ac_ext
32557
32558         LIBS="$ol_LIBS"
32559
32560 fi
32561 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32562 echo "${ECHO_T}$ol_cv_db_db42" >&6
32563
32564         if test $ol_cv_db_db42 = yes ; then
32565                 ol_cv_lib_db=-ldb42
32566         fi
32567 fi
32568
32569                 if test $ol_cv_lib_db = no ; then
32570         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32571 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32572 if test "${ol_cv_db_db_42+set}" = set; then
32573   echo $ECHO_N "(cached) $ECHO_C" >&6
32574 else
32575
32576         ol_DB_LIB=-ldb-42
32577         ol_LIBS=$LIBS
32578         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32579
32580         cat >conftest.$ac_ext <<_ACEOF
32581 /* confdefs.h.  */
32582 _ACEOF
32583 cat confdefs.h >>conftest.$ac_ext
32584 cat >>conftest.$ac_ext <<_ACEOF
32585 /* end confdefs.h.  */
32586
32587 #ifdef HAVE_DB_185_H
32588 # include <db_185.h>
32589 #else
32590 # include <db.h>
32591 #endif
32592
32593 #ifndef DB_VERSION_MAJOR
32594 # define DB_VERSION_MAJOR 1
32595 #endif
32596
32597 #ifndef NULL
32598 #define NULL ((void*)0)
32599 #endif
32600
32601 int
32602 main ()
32603 {
32604
32605 #if DB_VERSION_MAJOR > 1
32606         {
32607                 char *version;
32608                 int major, minor, patch;
32609
32610                 version = db_version( &major, &minor, &patch );
32611
32612                 if( major != DB_VERSION_MAJOR ||
32613                         minor < DB_VERSION_MINOR )
32614                 {
32615                         printf("Berkeley DB version mismatch\n"
32616                                 "\theader: %s\n\tlibrary: %s\n",
32617                                 DB_VERSION_STRING, version);
32618                         return 1;
32619                 }
32620         }
32621 #endif
32622
32623 #if DB_VERSION_MAJOR > 2
32624         db_env_create( NULL, 0 );
32625 #elif DB_VERSION_MAJOR > 1
32626         db_appexit( NULL );
32627 #else
32628         (void) dbopen( NULL, 0, 0, 0, NULL);
32629 #endif
32630
32631   ;
32632   return 0;
32633 }
32634 _ACEOF
32635 rm -f conftest.$ac_objext conftest$ac_exeext
32636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32637   (eval $ac_link) 2>conftest.er1
32638   ac_status=$?
32639   grep -v '^ *+' conftest.er1 >conftest.err
32640   rm -f conftest.er1
32641   cat conftest.err >&5
32642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643   (exit $ac_status); } &&
32644          { ac_try='test -z "$ac_c_werror_flag"
32645                          || test ! -s conftest.err'
32646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32647   (eval $ac_try) 2>&5
32648   ac_status=$?
32649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650   (exit $ac_status); }; } &&
32651          { ac_try='test -s conftest$ac_exeext'
32652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32653   (eval $ac_try) 2>&5
32654   ac_status=$?
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); }; }; then
32657   ol_cv_db_db_42=yes
32658 else
32659   echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32661
32662 ol_cv_db_db_42=no
32663 fi
32664 rm -f conftest.err conftest.$ac_objext \
32665       conftest$ac_exeext conftest.$ac_ext
32666
32667         LIBS="$ol_LIBS"
32668
32669 fi
32670 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32671 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32672
32673         if test $ol_cv_db_db_42 = yes ; then
32674                 ol_cv_lib_db=-ldb-42
32675         fi
32676 fi
32677
32678                 if test $ol_cv_lib_db = no ; then
32679         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32680 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32681 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32682   echo $ECHO_N "(cached) $ECHO_C" >&6
32683 else
32684
32685         ol_DB_LIB=-ldb-4.2
32686         ol_LIBS=$LIBS
32687         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32688
32689         cat >conftest.$ac_ext <<_ACEOF
32690 /* confdefs.h.  */
32691 _ACEOF
32692 cat confdefs.h >>conftest.$ac_ext
32693 cat >>conftest.$ac_ext <<_ACEOF
32694 /* end confdefs.h.  */
32695
32696 #ifdef HAVE_DB_185_H
32697 # include <db_185.h>
32698 #else
32699 # include <db.h>
32700 #endif
32701
32702 #ifndef DB_VERSION_MAJOR
32703 # define DB_VERSION_MAJOR 1
32704 #endif
32705
32706 #ifndef NULL
32707 #define NULL ((void*)0)
32708 #endif
32709
32710 int
32711 main ()
32712 {
32713
32714 #if DB_VERSION_MAJOR > 1
32715         {
32716                 char *version;
32717                 int major, minor, patch;
32718
32719                 version = db_version( &major, &minor, &patch );
32720
32721                 if( major != DB_VERSION_MAJOR ||
32722                         minor < DB_VERSION_MINOR )
32723                 {
32724                         printf("Berkeley DB version mismatch\n"
32725                                 "\theader: %s\n\tlibrary: %s\n",
32726                                 DB_VERSION_STRING, version);
32727                         return 1;
32728                 }
32729         }
32730 #endif
32731
32732 #if DB_VERSION_MAJOR > 2
32733         db_env_create( NULL, 0 );
32734 #elif DB_VERSION_MAJOR > 1
32735         db_appexit( NULL );
32736 #else
32737         (void) dbopen( NULL, 0, 0, 0, NULL);
32738 #endif
32739
32740   ;
32741   return 0;
32742 }
32743 _ACEOF
32744 rm -f conftest.$ac_objext conftest$ac_exeext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32746   (eval $ac_link) 2>conftest.er1
32747   ac_status=$?
32748   grep -v '^ *+' conftest.er1 >conftest.err
32749   rm -f conftest.er1
32750   cat conftest.err >&5
32751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752   (exit $ac_status); } &&
32753          { ac_try='test -z "$ac_c_werror_flag"
32754                          || test ! -s conftest.err'
32755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756   (eval $ac_try) 2>&5
32757   ac_status=$?
32758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759   (exit $ac_status); }; } &&
32760          { ac_try='test -s conftest$ac_exeext'
32761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762   (eval $ac_try) 2>&5
32763   ac_status=$?
32764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765   (exit $ac_status); }; }; then
32766   ol_cv_db_db_4_dot_2=yes
32767 else
32768   echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32770
32771 ol_cv_db_db_4_dot_2=no
32772 fi
32773 rm -f conftest.err conftest.$ac_objext \
32774       conftest$ac_exeext conftest.$ac_ext
32775
32776         LIBS="$ol_LIBS"
32777
32778 fi
32779 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32780 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32781
32782         if test $ol_cv_db_db_4_dot_2 = yes ; then
32783                 ol_cv_lib_db=-ldb-4.2
32784         fi
32785 fi
32786
32787                 if test $ol_cv_lib_db = no ; then
32788         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32789 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32790 if test "${ol_cv_db_db_4_2+set}" = set; then
32791   echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793
32794         ol_DB_LIB=-ldb-4-2
32795         ol_LIBS=$LIBS
32796         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32797
32798         cat >conftest.$ac_ext <<_ACEOF
32799 /* confdefs.h.  */
32800 _ACEOF
32801 cat confdefs.h >>conftest.$ac_ext
32802 cat >>conftest.$ac_ext <<_ACEOF
32803 /* end confdefs.h.  */
32804
32805 #ifdef HAVE_DB_185_H
32806 # include <db_185.h>
32807 #else
32808 # include <db.h>
32809 #endif
32810
32811 #ifndef DB_VERSION_MAJOR
32812 # define DB_VERSION_MAJOR 1
32813 #endif
32814
32815 #ifndef NULL
32816 #define NULL ((void*)0)
32817 #endif
32818
32819 int
32820 main ()
32821 {
32822
32823 #if DB_VERSION_MAJOR > 1
32824         {
32825                 char *version;
32826                 int major, minor, patch;
32827
32828                 version = db_version( &major, &minor, &patch );
32829
32830                 if( major != DB_VERSION_MAJOR ||
32831                         minor < DB_VERSION_MINOR )
32832                 {
32833                         printf("Berkeley DB version mismatch\n"
32834                                 "\theader: %s\n\tlibrary: %s\n",
32835                                 DB_VERSION_STRING, version);
32836                         return 1;
32837                 }
32838         }
32839 #endif
32840
32841 #if DB_VERSION_MAJOR > 2
32842         db_env_create( NULL, 0 );
32843 #elif DB_VERSION_MAJOR > 1
32844         db_appexit( NULL );
32845 #else
32846         (void) dbopen( NULL, 0, 0, 0, NULL);
32847 #endif
32848
32849   ;
32850   return 0;
32851 }
32852 _ACEOF
32853 rm -f conftest.$ac_objext conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855   (eval $ac_link) 2>conftest.er1
32856   ac_status=$?
32857   grep -v '^ *+' conftest.er1 >conftest.err
32858   rm -f conftest.er1
32859   cat conftest.err >&5
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); } &&
32862          { ac_try='test -z "$ac_c_werror_flag"
32863                          || test ! -s conftest.err'
32864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32865   (eval $ac_try) 2>&5
32866   ac_status=$?
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); }; } &&
32869          { ac_try='test -s conftest$ac_exeext'
32870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32871   (eval $ac_try) 2>&5
32872   ac_status=$?
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); }; }; then
32875   ol_cv_db_db_4_2=yes
32876 else
32877   echo "$as_me: failed program was:" >&5
32878 sed 's/^/| /' conftest.$ac_ext >&5
32879
32880 ol_cv_db_db_4_2=no
32881 fi
32882 rm -f conftest.err conftest.$ac_objext \
32883       conftest$ac_exeext conftest.$ac_ext
32884
32885         LIBS="$ol_LIBS"
32886
32887 fi
32888 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32889 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32890
32891         if test $ol_cv_db_db_4_2 = yes ; then
32892                 ol_cv_lib_db=-ldb-4-2
32893         fi
32894 fi
32895
32896         elif test $ol_cv_bdb_minor = 1 ; then
32897                 if test $ol_cv_lib_db = no ; then
32898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32899 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32900 if test "${ol_cv_db_db41+set}" = set; then
32901   echo $ECHO_N "(cached) $ECHO_C" >&6
32902 else
32903
32904         ol_DB_LIB=-ldb41
32905         ol_LIBS=$LIBS
32906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32907
32908         cat >conftest.$ac_ext <<_ACEOF
32909 /* confdefs.h.  */
32910 _ACEOF
32911 cat confdefs.h >>conftest.$ac_ext
32912 cat >>conftest.$ac_ext <<_ACEOF
32913 /* end confdefs.h.  */
32914
32915 #ifdef HAVE_DB_185_H
32916 # include <db_185.h>
32917 #else
32918 # include <db.h>
32919 #endif
32920
32921 #ifndef DB_VERSION_MAJOR
32922 # define DB_VERSION_MAJOR 1
32923 #endif
32924
32925 #ifndef NULL
32926 #define NULL ((void*)0)
32927 #endif
32928
32929 int
32930 main ()
32931 {
32932
32933 #if DB_VERSION_MAJOR > 1
32934         {
32935                 char *version;
32936                 int major, minor, patch;
32937
32938                 version = db_version( &major, &minor, &patch );
32939
32940                 if( major != DB_VERSION_MAJOR ||
32941                         minor < DB_VERSION_MINOR )
32942                 {
32943                         printf("Berkeley DB version mismatch\n"
32944                                 "\theader: %s\n\tlibrary: %s\n",
32945                                 DB_VERSION_STRING, version);
32946                         return 1;
32947                 }
32948         }
32949 #endif
32950
32951 #if DB_VERSION_MAJOR > 2
32952         db_env_create( NULL, 0 );
32953 #elif DB_VERSION_MAJOR > 1
32954         db_appexit( NULL );
32955 #else
32956         (void) dbopen( NULL, 0, 0, 0, NULL);
32957 #endif
32958
32959   ;
32960   return 0;
32961 }
32962 _ACEOF
32963 rm -f conftest.$ac_objext conftest$ac_exeext
32964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32965   (eval $ac_link) 2>conftest.er1
32966   ac_status=$?
32967   grep -v '^ *+' conftest.er1 >conftest.err
32968   rm -f conftest.er1
32969   cat conftest.err >&5
32970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32971   (exit $ac_status); } &&
32972          { ac_try='test -z "$ac_c_werror_flag"
32973                          || test ! -s conftest.err'
32974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975   (eval $ac_try) 2>&5
32976   ac_status=$?
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); }; } &&
32979          { ac_try='test -s conftest$ac_exeext'
32980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32981   (eval $ac_try) 2>&5
32982   ac_status=$?
32983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984   (exit $ac_status); }; }; then
32985   ol_cv_db_db41=yes
32986 else
32987   echo "$as_me: failed program was:" >&5
32988 sed 's/^/| /' conftest.$ac_ext >&5
32989
32990 ol_cv_db_db41=no
32991 fi
32992 rm -f conftest.err conftest.$ac_objext \
32993       conftest$ac_exeext conftest.$ac_ext
32994
32995         LIBS="$ol_LIBS"
32996
32997 fi
32998 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
32999 echo "${ECHO_T}$ol_cv_db_db41" >&6
33000
33001         if test $ol_cv_db_db41 = yes ; then
33002                 ol_cv_lib_db=-ldb41
33003         fi
33004 fi
33005
33006                 if test $ol_cv_lib_db = no ; then
33007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33008 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33009 if test "${ol_cv_db_db_41+set}" = set; then
33010   echo $ECHO_N "(cached) $ECHO_C" >&6
33011 else
33012
33013         ol_DB_LIB=-ldb-41
33014         ol_LIBS=$LIBS
33015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33016
33017         cat >conftest.$ac_ext <<_ACEOF
33018 /* confdefs.h.  */
33019 _ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h.  */
33023
33024 #ifdef HAVE_DB_185_H
33025 # include <db_185.h>
33026 #else
33027 # include <db.h>
33028 #endif
33029
33030 #ifndef DB_VERSION_MAJOR
33031 # define DB_VERSION_MAJOR 1
33032 #endif
33033
33034 #ifndef NULL
33035 #define NULL ((void*)0)
33036 #endif
33037
33038 int
33039 main ()
33040 {
33041
33042 #if DB_VERSION_MAJOR > 1
33043         {
33044                 char *version;
33045                 int major, minor, patch;
33046
33047                 version = db_version( &major, &minor, &patch );
33048
33049                 if( major != DB_VERSION_MAJOR ||
33050                         minor < DB_VERSION_MINOR )
33051                 {
33052                         printf("Berkeley DB version mismatch\n"
33053                                 "\theader: %s\n\tlibrary: %s\n",
33054                                 DB_VERSION_STRING, version);
33055                         return 1;
33056                 }
33057         }
33058 #endif
33059
33060 #if DB_VERSION_MAJOR > 2
33061         db_env_create( NULL, 0 );
33062 #elif DB_VERSION_MAJOR > 1
33063         db_appexit( NULL );
33064 #else
33065         (void) dbopen( NULL, 0, 0, 0, NULL);
33066 #endif
33067
33068   ;
33069   return 0;
33070 }
33071 _ACEOF
33072 rm -f conftest.$ac_objext conftest$ac_exeext
33073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33074   (eval $ac_link) 2>conftest.er1
33075   ac_status=$?
33076   grep -v '^ *+' conftest.er1 >conftest.err
33077   rm -f conftest.er1
33078   cat conftest.err >&5
33079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080   (exit $ac_status); } &&
33081          { ac_try='test -z "$ac_c_werror_flag"
33082                          || test ! -s conftest.err'
33083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084   (eval $ac_try) 2>&5
33085   ac_status=$?
33086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087   (exit $ac_status); }; } &&
33088          { ac_try='test -s conftest$ac_exeext'
33089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33090   (eval $ac_try) 2>&5
33091   ac_status=$?
33092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093   (exit $ac_status); }; }; then
33094   ol_cv_db_db_41=yes
33095 else
33096   echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33098
33099 ol_cv_db_db_41=no
33100 fi
33101 rm -f conftest.err conftest.$ac_objext \
33102       conftest$ac_exeext conftest.$ac_ext
33103
33104         LIBS="$ol_LIBS"
33105
33106 fi
33107 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33108 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33109
33110         if test $ol_cv_db_db_41 = yes ; then
33111                 ol_cv_lib_db=-ldb-41
33112         fi
33113 fi
33114
33115                 if test $ol_cv_lib_db = no ; then
33116         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33117 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33118 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33119   echo $ECHO_N "(cached) $ECHO_C" >&6
33120 else
33121
33122         ol_DB_LIB=-ldb-4.1
33123         ol_LIBS=$LIBS
33124         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33125
33126         cat >conftest.$ac_ext <<_ACEOF
33127 /* confdefs.h.  */
33128 _ACEOF
33129 cat confdefs.h >>conftest.$ac_ext
33130 cat >>conftest.$ac_ext <<_ACEOF
33131 /* end confdefs.h.  */
33132
33133 #ifdef HAVE_DB_185_H
33134 # include <db_185.h>
33135 #else
33136 # include <db.h>
33137 #endif
33138
33139 #ifndef DB_VERSION_MAJOR
33140 # define DB_VERSION_MAJOR 1
33141 #endif
33142
33143 #ifndef NULL
33144 #define NULL ((void*)0)
33145 #endif
33146
33147 int
33148 main ()
33149 {
33150
33151 #if DB_VERSION_MAJOR > 1
33152         {
33153                 char *version;
33154                 int major, minor, patch;
33155
33156                 version = db_version( &major, &minor, &patch );
33157
33158                 if( major != DB_VERSION_MAJOR ||
33159                         minor < DB_VERSION_MINOR )
33160                 {
33161                         printf("Berkeley DB version mismatch\n"
33162                                 "\theader: %s\n\tlibrary: %s\n",
33163                                 DB_VERSION_STRING, version);
33164                         return 1;
33165                 }
33166         }
33167 #endif
33168
33169 #if DB_VERSION_MAJOR > 2
33170         db_env_create( NULL, 0 );
33171 #elif DB_VERSION_MAJOR > 1
33172         db_appexit( NULL );
33173 #else
33174         (void) dbopen( NULL, 0, 0, 0, NULL);
33175 #endif
33176
33177   ;
33178   return 0;
33179 }
33180 _ACEOF
33181 rm -f conftest.$ac_objext conftest$ac_exeext
33182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33183   (eval $ac_link) 2>conftest.er1
33184   ac_status=$?
33185   grep -v '^ *+' conftest.er1 >conftest.err
33186   rm -f conftest.er1
33187   cat conftest.err >&5
33188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189   (exit $ac_status); } &&
33190          { ac_try='test -z "$ac_c_werror_flag"
33191                          || test ! -s conftest.err'
33192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33193   (eval $ac_try) 2>&5
33194   ac_status=$?
33195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196   (exit $ac_status); }; } &&
33197          { ac_try='test -s conftest$ac_exeext'
33198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33199   (eval $ac_try) 2>&5
33200   ac_status=$?
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); }; }; then
33203   ol_cv_db_db_4_dot_1=yes
33204 else
33205   echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33207
33208 ol_cv_db_db_4_dot_1=no
33209 fi
33210 rm -f conftest.err conftest.$ac_objext \
33211       conftest$ac_exeext conftest.$ac_ext
33212
33213         LIBS="$ol_LIBS"
33214
33215 fi
33216 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33217 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33218
33219         if test $ol_cv_db_db_4_dot_1 = yes ; then
33220                 ol_cv_lib_db=-ldb-4.1
33221         fi
33222 fi
33223
33224                 if test $ol_cv_lib_db = no ; then
33225         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33226 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33227 if test "${ol_cv_db_db_4_1+set}" = set; then
33228   echo $ECHO_N "(cached) $ECHO_C" >&6
33229 else
33230
33231         ol_DB_LIB=-ldb-4-1
33232         ol_LIBS=$LIBS
33233         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33234
33235         cat >conftest.$ac_ext <<_ACEOF
33236 /* confdefs.h.  */
33237 _ACEOF
33238 cat confdefs.h >>conftest.$ac_ext
33239 cat >>conftest.$ac_ext <<_ACEOF
33240 /* end confdefs.h.  */
33241
33242 #ifdef HAVE_DB_185_H
33243 # include <db_185.h>
33244 #else
33245 # include <db.h>
33246 #endif
33247
33248 #ifndef DB_VERSION_MAJOR
33249 # define DB_VERSION_MAJOR 1
33250 #endif
33251
33252 #ifndef NULL
33253 #define NULL ((void*)0)
33254 #endif
33255
33256 int
33257 main ()
33258 {
33259
33260 #if DB_VERSION_MAJOR > 1
33261         {
33262                 char *version;
33263                 int major, minor, patch;
33264
33265                 version = db_version( &major, &minor, &patch );
33266
33267                 if( major != DB_VERSION_MAJOR ||
33268                         minor < DB_VERSION_MINOR )
33269                 {
33270                         printf("Berkeley DB version mismatch\n"
33271                                 "\theader: %s\n\tlibrary: %s\n",
33272                                 DB_VERSION_STRING, version);
33273                         return 1;
33274                 }
33275         }
33276 #endif
33277
33278 #if DB_VERSION_MAJOR > 2
33279         db_env_create( NULL, 0 );
33280 #elif DB_VERSION_MAJOR > 1
33281         db_appexit( NULL );
33282 #else
33283         (void) dbopen( NULL, 0, 0, 0, NULL);
33284 #endif
33285
33286   ;
33287   return 0;
33288 }
33289 _ACEOF
33290 rm -f conftest.$ac_objext conftest$ac_exeext
33291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33292   (eval $ac_link) 2>conftest.er1
33293   ac_status=$?
33294   grep -v '^ *+' conftest.er1 >conftest.err
33295   rm -f conftest.er1
33296   cat conftest.err >&5
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); } &&
33299          { ac_try='test -z "$ac_c_werror_flag"
33300                          || test ! -s conftest.err'
33301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33302   (eval $ac_try) 2>&5
33303   ac_status=$?
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); }; } &&
33306          { ac_try='test -s conftest$ac_exeext'
33307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33308   (eval $ac_try) 2>&5
33309   ac_status=$?
33310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311   (exit $ac_status); }; }; then
33312   ol_cv_db_db_4_1=yes
33313 else
33314   echo "$as_me: failed program was:" >&5
33315 sed 's/^/| /' conftest.$ac_ext >&5
33316
33317 ol_cv_db_db_4_1=no
33318 fi
33319 rm -f conftest.err conftest.$ac_objext \
33320       conftest$ac_exeext conftest.$ac_ext
33321
33322         LIBS="$ol_LIBS"
33323
33324 fi
33325 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33326 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33327
33328         if test $ol_cv_db_db_4_1 = yes ; then
33329                 ol_cv_lib_db=-ldb-4-1
33330         fi
33331 fi
33332
33333         fi
33334         if test $ol_cv_lib_db = no ; then
33335         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33336 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33337 if test "${ol_cv_db_db_4+set}" = set; then
33338   echo $ECHO_N "(cached) $ECHO_C" >&6
33339 else
33340
33341         ol_DB_LIB=-ldb-4
33342         ol_LIBS=$LIBS
33343         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33344
33345         cat >conftest.$ac_ext <<_ACEOF
33346 /* confdefs.h.  */
33347 _ACEOF
33348 cat confdefs.h >>conftest.$ac_ext
33349 cat >>conftest.$ac_ext <<_ACEOF
33350 /* end confdefs.h.  */
33351
33352 #ifdef HAVE_DB_185_H
33353 # include <db_185.h>
33354 #else
33355 # include <db.h>
33356 #endif
33357
33358 #ifndef DB_VERSION_MAJOR
33359 # define DB_VERSION_MAJOR 1
33360 #endif
33361
33362 #ifndef NULL
33363 #define NULL ((void*)0)
33364 #endif
33365
33366 int
33367 main ()
33368 {
33369
33370 #if DB_VERSION_MAJOR > 1
33371         {
33372                 char *version;
33373                 int major, minor, patch;
33374
33375                 version = db_version( &major, &minor, &patch );
33376
33377                 if( major != DB_VERSION_MAJOR ||
33378                         minor < DB_VERSION_MINOR )
33379                 {
33380                         printf("Berkeley DB version mismatch\n"
33381                                 "\theader: %s\n\tlibrary: %s\n",
33382                                 DB_VERSION_STRING, version);
33383                         return 1;
33384                 }
33385         }
33386 #endif
33387
33388 #if DB_VERSION_MAJOR > 2
33389         db_env_create( NULL, 0 );
33390 #elif DB_VERSION_MAJOR > 1
33391         db_appexit( NULL );
33392 #else
33393         (void) dbopen( NULL, 0, 0, 0, NULL);
33394 #endif
33395
33396   ;
33397   return 0;
33398 }
33399 _ACEOF
33400 rm -f conftest.$ac_objext conftest$ac_exeext
33401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33402   (eval $ac_link) 2>conftest.er1
33403   ac_status=$?
33404   grep -v '^ *+' conftest.er1 >conftest.err
33405   rm -f conftest.er1
33406   cat conftest.err >&5
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } &&
33409          { ac_try='test -z "$ac_c_werror_flag"
33410                          || test ! -s conftest.err'
33411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33412   (eval $ac_try) 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); }; } &&
33416          { ac_try='test -s conftest$ac_exeext'
33417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418   (eval $ac_try) 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; }; then
33422   ol_cv_db_db_4=yes
33423 else
33424   echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33426
33427 ol_cv_db_db_4=no
33428 fi
33429 rm -f conftest.err conftest.$ac_objext \
33430       conftest$ac_exeext conftest.$ac_ext
33431
33432         LIBS="$ol_LIBS"
33433
33434 fi
33435 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33436 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33437
33438         if test $ol_cv_db_db_4 = yes ; then
33439                 ol_cv_lib_db=-ldb-4
33440         fi
33441 fi
33442
33443         if test $ol_cv_lib_db = no ; then
33444         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33445 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33446 if test "${ol_cv_db_db4+set}" = set; then
33447   echo $ECHO_N "(cached) $ECHO_C" >&6
33448 else
33449
33450         ol_DB_LIB=-ldb4
33451         ol_LIBS=$LIBS
33452         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33453
33454         cat >conftest.$ac_ext <<_ACEOF
33455 /* confdefs.h.  */
33456 _ACEOF
33457 cat confdefs.h >>conftest.$ac_ext
33458 cat >>conftest.$ac_ext <<_ACEOF
33459 /* end confdefs.h.  */
33460
33461 #ifdef HAVE_DB_185_H
33462 # include <db_185.h>
33463 #else
33464 # include <db.h>
33465 #endif
33466
33467 #ifndef DB_VERSION_MAJOR
33468 # define DB_VERSION_MAJOR 1
33469 #endif
33470
33471 #ifndef NULL
33472 #define NULL ((void*)0)
33473 #endif
33474
33475 int
33476 main ()
33477 {
33478
33479 #if DB_VERSION_MAJOR > 1
33480         {
33481                 char *version;
33482                 int major, minor, patch;
33483
33484                 version = db_version( &major, &minor, &patch );
33485
33486                 if( major != DB_VERSION_MAJOR ||
33487                         minor < DB_VERSION_MINOR )
33488                 {
33489                         printf("Berkeley DB version mismatch\n"
33490                                 "\theader: %s\n\tlibrary: %s\n",
33491                                 DB_VERSION_STRING, version);
33492                         return 1;
33493                 }
33494         }
33495 #endif
33496
33497 #if DB_VERSION_MAJOR > 2
33498         db_env_create( NULL, 0 );
33499 #elif DB_VERSION_MAJOR > 1
33500         db_appexit( NULL );
33501 #else
33502         (void) dbopen( NULL, 0, 0, 0, NULL);
33503 #endif
33504
33505   ;
33506   return 0;
33507 }
33508 _ACEOF
33509 rm -f conftest.$ac_objext conftest$ac_exeext
33510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33511   (eval $ac_link) 2>conftest.er1
33512   ac_status=$?
33513   grep -v '^ *+' conftest.er1 >conftest.err
33514   rm -f conftest.er1
33515   cat conftest.err >&5
33516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517   (exit $ac_status); } &&
33518          { ac_try='test -z "$ac_c_werror_flag"
33519                          || test ! -s conftest.err'
33520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521   (eval $ac_try) 2>&5
33522   ac_status=$?
33523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524   (exit $ac_status); }; } &&
33525          { ac_try='test -s conftest$ac_exeext'
33526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33527   (eval $ac_try) 2>&5
33528   ac_status=$?
33529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530   (exit $ac_status); }; }; then
33531   ol_cv_db_db4=yes
33532 else
33533   echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33535
33536 ol_cv_db_db4=no
33537 fi
33538 rm -f conftest.err conftest.$ac_objext \
33539       conftest$ac_exeext conftest.$ac_ext
33540
33541         LIBS="$ol_LIBS"
33542
33543 fi
33544 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33545 echo "${ECHO_T}$ol_cv_db_db4" >&6
33546
33547         if test $ol_cv_db_db4 = yes ; then
33548                 ol_cv_lib_db=-ldb4
33549         fi
33550 fi
33551
33552         if test $ol_cv_lib_db = no ; then
33553         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33554 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33555 if test "${ol_cv_db_db+set}" = set; then
33556   echo $ECHO_N "(cached) $ECHO_C" >&6
33557 else
33558
33559         ol_DB_LIB=-ldb
33560         ol_LIBS=$LIBS
33561         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33562
33563         cat >conftest.$ac_ext <<_ACEOF
33564 /* confdefs.h.  */
33565 _ACEOF
33566 cat confdefs.h >>conftest.$ac_ext
33567 cat >>conftest.$ac_ext <<_ACEOF
33568 /* end confdefs.h.  */
33569
33570 #ifdef HAVE_DB_185_H
33571 # include <db_185.h>
33572 #else
33573 # include <db.h>
33574 #endif
33575
33576 #ifndef DB_VERSION_MAJOR
33577 # define DB_VERSION_MAJOR 1
33578 #endif
33579
33580 #ifndef NULL
33581 #define NULL ((void*)0)
33582 #endif
33583
33584 int
33585 main ()
33586 {
33587
33588 #if DB_VERSION_MAJOR > 1
33589         {
33590                 char *version;
33591                 int major, minor, patch;
33592
33593                 version = db_version( &major, &minor, &patch );
33594
33595                 if( major != DB_VERSION_MAJOR ||
33596                         minor < DB_VERSION_MINOR )
33597                 {
33598                         printf("Berkeley DB version mismatch\n"
33599                                 "\theader: %s\n\tlibrary: %s\n",
33600                                 DB_VERSION_STRING, version);
33601                         return 1;
33602                 }
33603         }
33604 #endif
33605
33606 #if DB_VERSION_MAJOR > 2
33607         db_env_create( NULL, 0 );
33608 #elif DB_VERSION_MAJOR > 1
33609         db_appexit( NULL );
33610 #else
33611         (void) dbopen( NULL, 0, 0, 0, NULL);
33612 #endif
33613
33614   ;
33615   return 0;
33616 }
33617 _ACEOF
33618 rm -f conftest.$ac_objext conftest$ac_exeext
33619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33620   (eval $ac_link) 2>conftest.er1
33621   ac_status=$?
33622   grep -v '^ *+' conftest.er1 >conftest.err
33623   rm -f conftest.er1
33624   cat conftest.err >&5
33625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626   (exit $ac_status); } &&
33627          { ac_try='test -z "$ac_c_werror_flag"
33628                          || test ! -s conftest.err'
33629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33630   (eval $ac_try) 2>&5
33631   ac_status=$?
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); }; } &&
33634          { ac_try='test -s conftest$ac_exeext'
33635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33636   (eval $ac_try) 2>&5
33637   ac_status=$?
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); }; }; then
33640   ol_cv_db_db=yes
33641 else
33642   echo "$as_me: failed program was:" >&5
33643 sed 's/^/| /' conftest.$ac_ext >&5
33644
33645 ol_cv_db_db=no
33646 fi
33647 rm -f conftest.err conftest.$ac_objext \
33648       conftest$ac_exeext conftest.$ac_ext
33649
33650         LIBS="$ol_LIBS"
33651
33652 fi
33653 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33654 echo "${ECHO_T}$ol_cv_db_db" >&6
33655
33656         if test $ol_cv_db_db = yes ; then
33657                 ol_cv_lib_db=-ldb
33658         fi
33659 fi
33660
33661
33662 elif test $ol_cv_bdb_major = 3 ; then
33663         if test $ol_cv_lib_db = no ; then
33664         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33665 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33666 if test "${ol_cv_db_db3+set}" = set; then
33667   echo $ECHO_N "(cached) $ECHO_C" >&6
33668 else
33669
33670         ol_DB_LIB=-ldb3
33671         ol_LIBS=$LIBS
33672         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33673
33674         cat >conftest.$ac_ext <<_ACEOF
33675 /* confdefs.h.  */
33676 _ACEOF
33677 cat confdefs.h >>conftest.$ac_ext
33678 cat >>conftest.$ac_ext <<_ACEOF
33679 /* end confdefs.h.  */
33680
33681 #ifdef HAVE_DB_185_H
33682 # include <db_185.h>
33683 #else
33684 # include <db.h>
33685 #endif
33686
33687 #ifndef DB_VERSION_MAJOR
33688 # define DB_VERSION_MAJOR 1
33689 #endif
33690
33691 #ifndef NULL
33692 #define NULL ((void*)0)
33693 #endif
33694
33695 int
33696 main ()
33697 {
33698
33699 #if DB_VERSION_MAJOR > 1
33700         {
33701                 char *version;
33702                 int major, minor, patch;
33703
33704                 version = db_version( &major, &minor, &patch );
33705
33706                 if( major != DB_VERSION_MAJOR ||
33707                         minor < DB_VERSION_MINOR )
33708                 {
33709                         printf("Berkeley DB version mismatch\n"
33710                                 "\theader: %s\n\tlibrary: %s\n",
33711                                 DB_VERSION_STRING, version);
33712                         return 1;
33713                 }
33714         }
33715 #endif
33716
33717 #if DB_VERSION_MAJOR > 2
33718         db_env_create( NULL, 0 );
33719 #elif DB_VERSION_MAJOR > 1
33720         db_appexit( NULL );
33721 #else
33722         (void) dbopen( NULL, 0, 0, 0, NULL);
33723 #endif
33724
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731   (eval $ac_link) 2>conftest.er1
33732   ac_status=$?
33733   grep -v '^ *+' conftest.er1 >conftest.err
33734   rm -f conftest.er1
33735   cat conftest.err >&5
33736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737   (exit $ac_status); } &&
33738          { ac_try='test -z "$ac_c_werror_flag"
33739                          || test ! -s conftest.err'
33740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741   (eval $ac_try) 2>&5
33742   ac_status=$?
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); }; } &&
33745          { ac_try='test -s conftest$ac_exeext'
33746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747   (eval $ac_try) 2>&5
33748   ac_status=$?
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); }; }; then
33751   ol_cv_db_db3=yes
33752 else
33753   echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33755
33756 ol_cv_db_db3=no
33757 fi
33758 rm -f conftest.err conftest.$ac_objext \
33759       conftest$ac_exeext conftest.$ac_ext
33760
33761         LIBS="$ol_LIBS"
33762
33763 fi
33764 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33765 echo "${ECHO_T}$ol_cv_db_db3" >&6
33766
33767         if test $ol_cv_db_db3 = yes ; then
33768                 ol_cv_lib_db=-ldb3
33769         fi
33770 fi
33771
33772         if test $ol_cv_lib_db = no ; then
33773         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33774 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33775 if test "${ol_cv_db_db_3+set}" = set; then
33776   echo $ECHO_N "(cached) $ECHO_C" >&6
33777 else
33778
33779         ol_DB_LIB=-ldb-3
33780         ol_LIBS=$LIBS
33781         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33782
33783         cat >conftest.$ac_ext <<_ACEOF
33784 /* confdefs.h.  */
33785 _ACEOF
33786 cat confdefs.h >>conftest.$ac_ext
33787 cat >>conftest.$ac_ext <<_ACEOF
33788 /* end confdefs.h.  */
33789
33790 #ifdef HAVE_DB_185_H
33791 # include <db_185.h>
33792 #else
33793 # include <db.h>
33794 #endif
33795
33796 #ifndef DB_VERSION_MAJOR
33797 # define DB_VERSION_MAJOR 1
33798 #endif
33799
33800 #ifndef NULL
33801 #define NULL ((void*)0)
33802 #endif
33803
33804 int
33805 main ()
33806 {
33807
33808 #if DB_VERSION_MAJOR > 1
33809         {
33810                 char *version;
33811                 int major, minor, patch;
33812
33813                 version = db_version( &major, &minor, &patch );
33814
33815                 if( major != DB_VERSION_MAJOR ||
33816                         minor < DB_VERSION_MINOR )
33817                 {
33818                         printf("Berkeley DB version mismatch\n"
33819                                 "\theader: %s\n\tlibrary: %s\n",
33820                                 DB_VERSION_STRING, version);
33821                         return 1;
33822                 }
33823         }
33824 #endif
33825
33826 #if DB_VERSION_MAJOR > 2
33827         db_env_create( NULL, 0 );
33828 #elif DB_VERSION_MAJOR > 1
33829         db_appexit( NULL );
33830 #else
33831         (void) dbopen( NULL, 0, 0, 0, NULL);
33832 #endif
33833
33834   ;
33835   return 0;
33836 }
33837 _ACEOF
33838 rm -f conftest.$ac_objext conftest$ac_exeext
33839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33840   (eval $ac_link) 2>conftest.er1
33841   ac_status=$?
33842   grep -v '^ *+' conftest.er1 >conftest.err
33843   rm -f conftest.er1
33844   cat conftest.err >&5
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); } &&
33847          { ac_try='test -z "$ac_c_werror_flag"
33848                          || test ! -s conftest.err'
33849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850   (eval $ac_try) 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; } &&
33854          { ac_try='test -s conftest$ac_exeext'
33855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856   (eval $ac_try) 2>&5
33857   ac_status=$?
33858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859   (exit $ac_status); }; }; then
33860   ol_cv_db_db_3=yes
33861 else
33862   echo "$as_me: failed program was:" >&5
33863 sed 's/^/| /' conftest.$ac_ext >&5
33864
33865 ol_cv_db_db_3=no
33866 fi
33867 rm -f conftest.err conftest.$ac_objext \
33868       conftest$ac_exeext conftest.$ac_ext
33869
33870         LIBS="$ol_LIBS"
33871
33872 fi
33873 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33874 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33875
33876         if test $ol_cv_db_db_3 = yes ; then
33877                 ol_cv_lib_db=-ldb-3
33878         fi
33879 fi
33880
33881
33882 elif test $ol_cv_bdb_major = 2 ; then
33883         if test $ol_cv_lib_db = no ; then
33884         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33885 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33886 if test "${ol_cv_db_db2+set}" = set; then
33887   echo $ECHO_N "(cached) $ECHO_C" >&6
33888 else
33889
33890         ol_DB_LIB=-ldb2
33891         ol_LIBS=$LIBS
33892         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33893
33894         cat >conftest.$ac_ext <<_ACEOF
33895 /* confdefs.h.  */
33896 _ACEOF
33897 cat confdefs.h >>conftest.$ac_ext
33898 cat >>conftest.$ac_ext <<_ACEOF
33899 /* end confdefs.h.  */
33900
33901 #ifdef HAVE_DB_185_H
33902 # include <db_185.h>
33903 #else
33904 # include <db.h>
33905 #endif
33906
33907 #ifndef DB_VERSION_MAJOR
33908 # define DB_VERSION_MAJOR 1
33909 #endif
33910
33911 #ifndef NULL
33912 #define NULL ((void*)0)
33913 #endif
33914
33915 int
33916 main ()
33917 {
33918
33919 #if DB_VERSION_MAJOR > 1
33920         {
33921                 char *version;
33922                 int major, minor, patch;
33923
33924                 version = db_version( &major, &minor, &patch );
33925
33926                 if( major != DB_VERSION_MAJOR ||
33927                         minor < DB_VERSION_MINOR )
33928                 {
33929                         printf("Berkeley DB version mismatch\n"
33930                                 "\theader: %s\n\tlibrary: %s\n",
33931                                 DB_VERSION_STRING, version);
33932                         return 1;
33933                 }
33934         }
33935 #endif
33936
33937 #if DB_VERSION_MAJOR > 2
33938         db_env_create( NULL, 0 );
33939 #elif DB_VERSION_MAJOR > 1
33940         db_appexit( NULL );
33941 #else
33942         (void) dbopen( NULL, 0, 0, 0, NULL);
33943 #endif
33944
33945   ;
33946   return 0;
33947 }
33948 _ACEOF
33949 rm -f conftest.$ac_objext conftest$ac_exeext
33950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33951   (eval $ac_link) 2>conftest.er1
33952   ac_status=$?
33953   grep -v '^ *+' conftest.er1 >conftest.err
33954   rm -f conftest.er1
33955   cat conftest.err >&5
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); } &&
33958          { ac_try='test -z "$ac_c_werror_flag"
33959                          || test ! -s conftest.err'
33960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961   (eval $ac_try) 2>&5
33962   ac_status=$?
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); }; } &&
33965          { ac_try='test -s conftest$ac_exeext'
33966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33967   (eval $ac_try) 2>&5
33968   ac_status=$?
33969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33970   (exit $ac_status); }; }; then
33971   ol_cv_db_db2=yes
33972 else
33973   echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33975
33976 ol_cv_db_db2=no
33977 fi
33978 rm -f conftest.err conftest.$ac_objext \
33979       conftest$ac_exeext conftest.$ac_ext
33980
33981         LIBS="$ol_LIBS"
33982
33983 fi
33984 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
33985 echo "${ECHO_T}$ol_cv_db_db2" >&6
33986
33987         if test $ol_cv_db_db2 = yes ; then
33988                 ol_cv_lib_db=-ldb2
33989         fi
33990 fi
33991
33992         if test $ol_cv_lib_db = no ; then
33993         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
33994 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
33995 if test "${ol_cv_db_db_2+set}" = set; then
33996   echo $ECHO_N "(cached) $ECHO_C" >&6
33997 else
33998
33999         ol_DB_LIB=-ldb-2
34000         ol_LIBS=$LIBS
34001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34002
34003         cat >conftest.$ac_ext <<_ACEOF
34004 /* confdefs.h.  */
34005 _ACEOF
34006 cat confdefs.h >>conftest.$ac_ext
34007 cat >>conftest.$ac_ext <<_ACEOF
34008 /* end confdefs.h.  */
34009
34010 #ifdef HAVE_DB_185_H
34011 # include <db_185.h>
34012 #else
34013 # include <db.h>
34014 #endif
34015
34016 #ifndef DB_VERSION_MAJOR
34017 # define DB_VERSION_MAJOR 1
34018 #endif
34019
34020 #ifndef NULL
34021 #define NULL ((void*)0)
34022 #endif
34023
34024 int
34025 main ()
34026 {
34027
34028 #if DB_VERSION_MAJOR > 1
34029         {
34030                 char *version;
34031                 int major, minor, patch;
34032
34033                 version = db_version( &major, &minor, &patch );
34034
34035                 if( major != DB_VERSION_MAJOR ||
34036                         minor < DB_VERSION_MINOR )
34037                 {
34038                         printf("Berkeley DB version mismatch\n"
34039                                 "\theader: %s\n\tlibrary: %s\n",
34040                                 DB_VERSION_STRING, version);
34041                         return 1;
34042                 }
34043         }
34044 #endif
34045
34046 #if DB_VERSION_MAJOR > 2
34047         db_env_create( NULL, 0 );
34048 #elif DB_VERSION_MAJOR > 1
34049         db_appexit( NULL );
34050 #else
34051         (void) dbopen( NULL, 0, 0, 0, NULL);
34052 #endif
34053
34054   ;
34055   return 0;
34056 }
34057 _ACEOF
34058 rm -f conftest.$ac_objext conftest$ac_exeext
34059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34060   (eval $ac_link) 2>conftest.er1
34061   ac_status=$?
34062   grep -v '^ *+' conftest.er1 >conftest.err
34063   rm -f conftest.er1
34064   cat conftest.err >&5
34065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066   (exit $ac_status); } &&
34067          { ac_try='test -z "$ac_c_werror_flag"
34068                          || test ! -s conftest.err'
34069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34070   (eval $ac_try) 2>&5
34071   ac_status=$?
34072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073   (exit $ac_status); }; } &&
34074          { ac_try='test -s conftest$ac_exeext'
34075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34076   (eval $ac_try) 2>&5
34077   ac_status=$?
34078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079   (exit $ac_status); }; }; then
34080   ol_cv_db_db_2=yes
34081 else
34082   echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34084
34085 ol_cv_db_db_2=no
34086 fi
34087 rm -f conftest.err conftest.$ac_objext \
34088       conftest$ac_exeext conftest.$ac_ext
34089
34090         LIBS="$ol_LIBS"
34091
34092 fi
34093 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34094 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34095
34096         if test $ol_cv_db_db_2 = yes ; then
34097                 ol_cv_lib_db=-ldb-2
34098         fi
34099 fi
34100
34101
34102 elif test $ol_cv_bdb_major = 1 ; then
34103         if test $ol_cv_lib_db = no ; then
34104         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34105 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34106 if test "${ol_cv_db_db1+set}" = set; then
34107   echo $ECHO_N "(cached) $ECHO_C" >&6
34108 else
34109
34110         ol_DB_LIB=-ldb1
34111         ol_LIBS=$LIBS
34112         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34113
34114         cat >conftest.$ac_ext <<_ACEOF
34115 /* confdefs.h.  */
34116 _ACEOF
34117 cat confdefs.h >>conftest.$ac_ext
34118 cat >>conftest.$ac_ext <<_ACEOF
34119 /* end confdefs.h.  */
34120
34121 #ifdef HAVE_DB_185_H
34122 # include <db_185.h>
34123 #else
34124 # include <db.h>
34125 #endif
34126
34127 #ifndef DB_VERSION_MAJOR
34128 # define DB_VERSION_MAJOR 1
34129 #endif
34130
34131 #ifndef NULL
34132 #define NULL ((void*)0)
34133 #endif
34134
34135 int
34136 main ()
34137 {
34138
34139 #if DB_VERSION_MAJOR > 1
34140         {
34141                 char *version;
34142                 int major, minor, patch;
34143
34144                 version = db_version( &major, &minor, &patch );
34145
34146                 if( major != DB_VERSION_MAJOR ||
34147                         minor < DB_VERSION_MINOR )
34148                 {
34149                         printf("Berkeley DB version mismatch\n"
34150                                 "\theader: %s\n\tlibrary: %s\n",
34151                                 DB_VERSION_STRING, version);
34152                         return 1;
34153                 }
34154         }
34155 #endif
34156
34157 #if DB_VERSION_MAJOR > 2
34158         db_env_create( NULL, 0 );
34159 #elif DB_VERSION_MAJOR > 1
34160         db_appexit( NULL );
34161 #else
34162         (void) dbopen( NULL, 0, 0, 0, NULL);
34163 #endif
34164
34165   ;
34166   return 0;
34167 }
34168 _ACEOF
34169 rm -f conftest.$ac_objext conftest$ac_exeext
34170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34171   (eval $ac_link) 2>conftest.er1
34172   ac_status=$?
34173   grep -v '^ *+' conftest.er1 >conftest.err
34174   rm -f conftest.er1
34175   cat conftest.err >&5
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); } &&
34178          { ac_try='test -z "$ac_c_werror_flag"
34179                          || test ! -s conftest.err'
34180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181   (eval $ac_try) 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); }; } &&
34185          { ac_try='test -s conftest$ac_exeext'
34186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187   (eval $ac_try) 2>&5
34188   ac_status=$?
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); }; }; then
34191   ol_cv_db_db1=yes
34192 else
34193   echo "$as_me: failed program was:" >&5
34194 sed 's/^/| /' conftest.$ac_ext >&5
34195
34196 ol_cv_db_db1=no
34197 fi
34198 rm -f conftest.err conftest.$ac_objext \
34199       conftest$ac_exeext conftest.$ac_ext
34200
34201         LIBS="$ol_LIBS"
34202
34203 fi
34204 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34205 echo "${ECHO_T}$ol_cv_db_db1" >&6
34206
34207         if test $ol_cv_db_db1 = yes ; then
34208                 ol_cv_lib_db=-ldb1
34209         fi
34210 fi
34211
34212         if test $ol_cv_lib_db = no ; then
34213         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34214 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34215 if test "${ol_cv_db_db_1+set}" = set; then
34216   echo $ECHO_N "(cached) $ECHO_C" >&6
34217 else
34218
34219         ol_DB_LIB=-ldb-1
34220         ol_LIBS=$LIBS
34221         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34222
34223         cat >conftest.$ac_ext <<_ACEOF
34224 /* confdefs.h.  */
34225 _ACEOF
34226 cat confdefs.h >>conftest.$ac_ext
34227 cat >>conftest.$ac_ext <<_ACEOF
34228 /* end confdefs.h.  */
34229
34230 #ifdef HAVE_DB_185_H
34231 # include <db_185.h>
34232 #else
34233 # include <db.h>
34234 #endif
34235
34236 #ifndef DB_VERSION_MAJOR
34237 # define DB_VERSION_MAJOR 1
34238 #endif
34239
34240 #ifndef NULL
34241 #define NULL ((void*)0)
34242 #endif
34243
34244 int
34245 main ()
34246 {
34247
34248 #if DB_VERSION_MAJOR > 1
34249         {
34250                 char *version;
34251                 int major, minor, patch;
34252
34253                 version = db_version( &major, &minor, &patch );
34254
34255                 if( major != DB_VERSION_MAJOR ||
34256                         minor < DB_VERSION_MINOR )
34257                 {
34258                         printf("Berkeley DB version mismatch\n"
34259                                 "\theader: %s\n\tlibrary: %s\n",
34260                                 DB_VERSION_STRING, version);
34261                         return 1;
34262                 }
34263         }
34264 #endif
34265
34266 #if DB_VERSION_MAJOR > 2
34267         db_env_create( NULL, 0 );
34268 #elif DB_VERSION_MAJOR > 1
34269         db_appexit( NULL );
34270 #else
34271         (void) dbopen( NULL, 0, 0, 0, NULL);
34272 #endif
34273
34274   ;
34275   return 0;
34276 }
34277 _ACEOF
34278 rm -f conftest.$ac_objext conftest$ac_exeext
34279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34280   (eval $ac_link) 2>conftest.er1
34281   ac_status=$?
34282   grep -v '^ *+' conftest.er1 >conftest.err
34283   rm -f conftest.er1
34284   cat conftest.err >&5
34285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286   (exit $ac_status); } &&
34287          { ac_try='test -z "$ac_c_werror_flag"
34288                          || test ! -s conftest.err'
34289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34290   (eval $ac_try) 2>&5
34291   ac_status=$?
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); }; } &&
34294          { ac_try='test -s conftest$ac_exeext'
34295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34296   (eval $ac_try) 2>&5
34297   ac_status=$?
34298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299   (exit $ac_status); }; }; then
34300   ol_cv_db_db_1=yes
34301 else
34302   echo "$as_me: failed program was:" >&5
34303 sed 's/^/| /' conftest.$ac_ext >&5
34304
34305 ol_cv_db_db_1=no
34306 fi
34307 rm -f conftest.err conftest.$ac_objext \
34308       conftest$ac_exeext conftest.$ac_ext
34309
34310         LIBS="$ol_LIBS"
34311
34312 fi
34313 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34314 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34315
34316         if test $ol_cv_db_db_1 = yes ; then
34317                 ol_cv_lib_db=-ldb-1
34318         fi
34319 fi
34320
34321 fi
34322 if test $ol_cv_lib_db = no ; then
34323         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34324 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34325 if test "${ol_cv_db_none+set}" = set; then
34326   echo $ECHO_N "(cached) $ECHO_C" >&6
34327 else
34328
34329         ol_DB_LIB=
34330         ol_LIBS=$LIBS
34331         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34332
34333         cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h.  */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h.  */
34339
34340 #ifdef HAVE_DB_185_H
34341 # include <db_185.h>
34342 #else
34343 # include <db.h>
34344 #endif
34345
34346 #ifndef DB_VERSION_MAJOR
34347 # define DB_VERSION_MAJOR 1
34348 #endif
34349
34350 #ifndef NULL
34351 #define NULL ((void*)0)
34352 #endif
34353
34354 int
34355 main ()
34356 {
34357
34358 #if DB_VERSION_MAJOR > 1
34359         {
34360                 char *version;
34361                 int major, minor, patch;
34362
34363                 version = db_version( &major, &minor, &patch );
34364
34365                 if( major != DB_VERSION_MAJOR ||
34366                         minor < DB_VERSION_MINOR )
34367                 {
34368                         printf("Berkeley DB version mismatch\n"
34369                                 "\theader: %s\n\tlibrary: %s\n",
34370                                 DB_VERSION_STRING, version);
34371                         return 1;
34372                 }
34373         }
34374 #endif
34375
34376 #if DB_VERSION_MAJOR > 2
34377         db_env_create( NULL, 0 );
34378 #elif DB_VERSION_MAJOR > 1
34379         db_appexit( NULL );
34380 #else
34381         (void) dbopen( NULL, 0, 0, 0, NULL);
34382 #endif
34383
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34390   (eval $ac_link) 2>conftest.er1
34391   ac_status=$?
34392   grep -v '^ *+' conftest.er1 >conftest.err
34393   rm -f conftest.er1
34394   cat conftest.err >&5
34395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396   (exit $ac_status); } &&
34397          { ac_try='test -z "$ac_c_werror_flag"
34398                          || test ! -s conftest.err'
34399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400   (eval $ac_try) 2>&5
34401   ac_status=$?
34402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403   (exit $ac_status); }; } &&
34404          { ac_try='test -s conftest$ac_exeext'
34405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406   (eval $ac_try) 2>&5
34407   ac_status=$?
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); }; }; then
34410   ol_cv_db_none=yes
34411 else
34412   echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34414
34415 ol_cv_db_none=no
34416 fi
34417 rm -f conftest.err conftest.$ac_objext \
34418       conftest$ac_exeext conftest.$ac_ext
34419
34420         LIBS="$ol_LIBS"
34421
34422 fi
34423 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34424 echo "${ECHO_T}$ol_cv_db_none" >&6
34425
34426         if test $ol_cv_db_none = yes ; then
34427                 ol_cv_lib_db=yes
34428         fi
34429 fi
34430
34431
34432         if test "$ol_cv_lib_db" != no ; then
34433                 ol_cv_berkeley_db=yes
34434                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34435 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34436 if test "${ol_cv_berkeley_db_version+set}" = set; then
34437   echo $ECHO_N "(cached) $ECHO_C" >&6
34438 else
34439
34440         ol_LIBS="$LIBS"
34441         LIBS="$LTHREAD_LIBS $LIBS"
34442         if test $ol_cv_lib_db != yes ; then
34443                 LIBS="$ol_cv_lib_db $LIBS"
34444         fi
34445
34446         if test "$cross_compiling" = yes; then
34447   ol_cv_berkeley_db_version=cross
34448 else
34449   cat >conftest.$ac_ext <<_ACEOF
34450 /* confdefs.h.  */
34451 _ACEOF
34452 cat confdefs.h >>conftest.$ac_ext
34453 cat >>conftest.$ac_ext <<_ACEOF
34454 /* end confdefs.h.  */
34455
34456 #ifdef HAVE_DB_185_H
34457         choke me;
34458 #else
34459 #include <db.h>
34460 #endif
34461 #ifndef DB_VERSION_MAJOR
34462 # define DB_VERSION_MAJOR 1
34463 #endif
34464 #ifndef NULL
34465 #define NULL ((void *)0)
34466 #endif
34467 main()
34468 {
34469 #if DB_VERSION_MAJOR > 1
34470         char *version;
34471         int major, minor, patch;
34472
34473         version = db_version( &major, &minor, &patch );
34474
34475         if( major != DB_VERSION_MAJOR ||
34476                 minor != DB_VERSION_MINOR ||
34477                 patch != DB_VERSION_PATCH )
34478         {
34479                 printf("Berkeley DB version mismatch\n"
34480                         "\theader: %s\n\tlibrary: %s\n",
34481                         DB_VERSION_STRING, version);
34482                 return 1;
34483         }
34484 #endif
34485
34486         return 0;
34487 }
34488 _ACEOF
34489 rm -f conftest$ac_exeext
34490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34491   (eval $ac_link) 2>&5
34492   ac_status=$?
34493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34496   (eval $ac_try) 2>&5
34497   ac_status=$?
34498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34499   (exit $ac_status); }; }; then
34500   ol_cv_berkeley_db_version=yes
34501 else
34502   echo "$as_me: program exited with status $ac_status" >&5
34503 echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506 ( exit $ac_status )
34507 ol_cv_berkeley_db_version=no
34508 fi
34509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34510 fi
34511
34512         LIBS="$ol_LIBS"
34513
34514 fi
34515 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34516 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34517
34518         if test $ol_cv_berkeley_db_version = no ; then
34519                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34520 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34521    { (exit 1); exit 1; }; }
34522         fi
34523
34524                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34525 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34526 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34527   echo $ECHO_N "(cached) $ECHO_C" >&6
34528 else
34529
34530         ol_LIBS="$LIBS"
34531         LIBS="$LTHREAD_LIBS $LIBS"
34532         if test $ol_cv_lib_db != yes ; then
34533                 LIBS="$ol_cv_lib_db $LIBS"
34534         fi
34535
34536         if test "$cross_compiling" = yes; then
34537   ol_cv_berkeley_db_thread=cross
34538 else
34539   cat >conftest.$ac_ext <<_ACEOF
34540 /* confdefs.h.  */
34541 _ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h.  */
34545
34546 #ifdef HAVE_DB_185_H
34547         choke me;
34548 #else
34549 #include <db.h>
34550 #endif
34551 #ifndef NULL
34552 #define NULL ((void *)0)
34553 #endif
34554 main()
34555 {
34556         int rc;
34557         u_int32_t flags = DB_CREATE |
34558 #ifdef DB_PRIVATE
34559                 DB_PRIVATE |
34560 #endif
34561                 DB_THREAD;
34562
34563 #if DB_VERSION_MAJOR > 2
34564         DB_ENV *env = NULL;
34565
34566         rc = db_env_create( &env, 0 );
34567
34568         flags |= DB_INIT_MPOOL;
34569 #ifdef DB_MPOOL_PRIVATE
34570         flags |= DB_MPOOL_PRIVATE;
34571 #endif
34572
34573         if( rc ) {
34574                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34575                 return rc;
34576         }
34577
34578 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34579         rc = env->open( env, NULL, flags, 0 );
34580 #else
34581         rc = env->open( env, NULL, NULL, flags, 0 );
34582 #endif
34583
34584         if ( rc == 0 ) {
34585                 rc = env->close( env, 0 );
34586         }
34587
34588         if( rc ) {
34589                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34590                 return rc;
34591         }
34592
34593 #else
34594         DB_ENV env;
34595         memset( &env, '\0', sizeof(env) );
34596
34597         rc = db_appinit( NULL, NULL, &env, flags );
34598
34599         if( rc == 0 ) {
34600                 db_appexit( &env );
34601         }
34602
34603         unlink("__db_mpool.share");
34604         unlink("__db_lock.share");
34605 #endif
34606
34607         return rc;
34608 }
34609 _ACEOF
34610 rm -f conftest$ac_exeext
34611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34612   (eval $ac_link) 2>&5
34613   ac_status=$?
34614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34617   (eval $ac_try) 2>&5
34618   ac_status=$?
34619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620   (exit $ac_status); }; }; then
34621   ol_cv_berkeley_db_thread=yes
34622 else
34623   echo "$as_me: program exited with status $ac_status" >&5
34624 echo "$as_me: failed program was:" >&5
34625 sed 's/^/| /' conftest.$ac_ext >&5
34626
34627 ( exit $ac_status )
34628 ol_cv_berkeley_db_thread=no
34629 fi
34630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34631 fi
34632
34633         LIBS="$ol_LIBS"
34634
34635 fi
34636 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34637 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34638
34639         if test $ol_cv_berkeley_db_thread != no ; then
34640
34641 cat >>confdefs.h <<\_ACEOF
34642 #define HAVE_BERKELEY_DB_THREAD 1
34643 _ACEOF
34644
34645         fi
34646
34647         fi
34648 fi
34649
34650         fi
34651
34652         if test $ol_cv_berkeley_db != no ; then
34653
34654 cat >>confdefs.h <<\_ACEOF
34655 #define HAVE_BERKELEY_DB 1
34656 _ACEOF
34657
34658
34659                 ol_link_ldbm=berkeley
34660                 ol_enable_ldbm_api=berkeley
34661
34662                 if test $ol_enable_ldbm_type = hash ; then
34663
34664 cat >>confdefs.h <<\_ACEOF
34665 #define LDBM_USE_DBHASH 1
34666 _ACEOF
34667
34668                 else
34669
34670 cat >>confdefs.h <<\_ACEOF
34671 #define LDBM_USE_DBBTREE 1
34672 _ACEOF
34673
34674                 fi
34675
34676                                                 if test $ol_cv_lib_db != yes ; then
34677                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34678                 fi
34679         fi
34680         ;;
34681 esac
34682
34683 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34684         if test $ol_link_ldbm != berkeley ; then
34685                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34686 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34687    { (exit 1); exit 1; }; }
34688         else
34689                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34690 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34691 if test "${ol_cv_bdb_compat+set}" = set; then
34692   echo $ECHO_N "(cached) $ECHO_C" >&6
34693 else
34694
34695         cat >conftest.$ac_ext <<_ACEOF
34696 /* confdefs.h.  */
34697 _ACEOF
34698 cat confdefs.h >>conftest.$ac_ext
34699 cat >>conftest.$ac_ext <<_ACEOF
34700 /* end confdefs.h.  */
34701
34702 #include <db.h>
34703
34704  /* this check could be improved */
34705 #ifndef DB_VERSION_MAJOR
34706 #       define DB_VERSION_MAJOR 1
34707 #endif
34708 #ifndef DB_VERSION_MINOR
34709 #       define DB_VERSION_MINOR 0
34710 #endif
34711
34712 /* require 4.2 or later */
34713 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34714         __db_version_compat
34715 #endif
34716
34717 _ACEOF
34718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34719   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34720   ol_cv_bdb_compat=yes
34721 else
34722   ol_cv_bdb_compat=no
34723 fi
34724 rm -f conftest*
34725
34726 fi
34727 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34728 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34729
34730
34731                 if test $ol_cv_bdb_compat != yes ; then
34732                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34733 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34734    { (exit 1); exit 1; }; }
34735                 fi
34736         fi
34737 fi
34738
34739 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34740         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34741 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34742         ol_enable_ldbm_api=none
34743 fi
34744
34745 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34746         echo "$as_me:$LINENO: checking for MDBM library" >&5
34747 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34748 if test "${ol_cv_lib_mdbm+set}" = set; then
34749   echo $ECHO_N "(cached) $ECHO_C" >&6
34750 else
34751         ol_LIBS="$LIBS"
34752         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34753 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34754 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34755   echo $ECHO_N "(cached) $ECHO_C" >&6
34756 else
34757   cat >conftest.$ac_ext <<_ACEOF
34758 /* confdefs.h.  */
34759 _ACEOF
34760 cat confdefs.h >>conftest.$ac_ext
34761 cat >>conftest.$ac_ext <<_ACEOF
34762 /* end confdefs.h.  */
34763 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34765 #define mdbm_set_chain innocuous_mdbm_set_chain
34766
34767 /* System header to define __stub macros and hopefully few prototypes,
34768     which can conflict with char mdbm_set_chain (); below.
34769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34770     <limits.h> exists even on freestanding compilers.  */
34771
34772 #ifdef __STDC__
34773 # include <limits.h>
34774 #else
34775 # include <assert.h>
34776 #endif
34777
34778 #undef mdbm_set_chain
34779
34780 /* Override any gcc2 internal prototype to avoid an error.  */
34781 #ifdef __cplusplus
34782 extern "C"
34783 {
34784 #endif
34785 /* We use char because int might match the return type of a gcc2
34786    builtin and then its argument prototype would still apply.  */
34787 char mdbm_set_chain ();
34788 /* The GNU C library defines this for functions which it implements
34789     to always fail with ENOSYS.  Some functions are actually named
34790     something starting with __ and the normal name is an alias.  */
34791 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34792 choke me
34793 #else
34794 char (*f) () = mdbm_set_chain;
34795 #endif
34796 #ifdef __cplusplus
34797 }
34798 #endif
34799
34800 int
34801 main ()
34802 {
34803 return f != mdbm_set_chain;
34804   ;
34805   return 0;
34806 }
34807 _ACEOF
34808 rm -f conftest.$ac_objext conftest$ac_exeext
34809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34810   (eval $ac_link) 2>conftest.er1
34811   ac_status=$?
34812   grep -v '^ *+' conftest.er1 >conftest.err
34813   rm -f conftest.er1
34814   cat conftest.err >&5
34815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816   (exit $ac_status); } &&
34817          { ac_try='test -z "$ac_c_werror_flag"
34818                          || test ! -s conftest.err'
34819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34820   (eval $ac_try) 2>&5
34821   ac_status=$?
34822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823   (exit $ac_status); }; } &&
34824          { ac_try='test -s conftest$ac_exeext'
34825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34826   (eval $ac_try) 2>&5
34827   ac_status=$?
34828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829   (exit $ac_status); }; }; then
34830   ac_cv_func_mdbm_set_chain=yes
34831 else
34832   echo "$as_me: failed program was:" >&5
34833 sed 's/^/| /' conftest.$ac_ext >&5
34834
34835 ac_cv_func_mdbm_set_chain=no
34836 fi
34837 rm -f conftest.err conftest.$ac_objext \
34838       conftest$ac_exeext conftest.$ac_ext
34839 fi
34840 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34841 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34842 if test $ac_cv_func_mdbm_set_chain = yes; then
34843   ol_cv_lib_mdbm=yes
34844 else
34845
34846                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34847 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34848 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34849   echo $ECHO_N "(cached) $ECHO_C" >&6
34850 else
34851   ac_check_lib_save_LIBS=$LIBS
34852 LIBS="-lmdbm  $LIBS"
34853 cat >conftest.$ac_ext <<_ACEOF
34854 /* confdefs.h.  */
34855 _ACEOF
34856 cat confdefs.h >>conftest.$ac_ext
34857 cat >>conftest.$ac_ext <<_ACEOF
34858 /* end confdefs.h.  */
34859
34860 /* Override any gcc2 internal prototype to avoid an error.  */
34861 #ifdef __cplusplus
34862 extern "C"
34863 #endif
34864 /* We use char because int might match the return type of a gcc2
34865    builtin and then its argument prototype would still apply.  */
34866 char mdbm_set_chain ();
34867 int
34868 main ()
34869 {
34870 mdbm_set_chain ();
34871   ;
34872   return 0;
34873 }
34874 _ACEOF
34875 rm -f conftest.$ac_objext conftest$ac_exeext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34877   (eval $ac_link) 2>conftest.er1
34878   ac_status=$?
34879   grep -v '^ *+' conftest.er1 >conftest.err
34880   rm -f conftest.er1
34881   cat conftest.err >&5
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); } &&
34884          { ac_try='test -z "$ac_c_werror_flag"
34885                          || test ! -s conftest.err'
34886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887   (eval $ac_try) 2>&5
34888   ac_status=$?
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); }; } &&
34891          { ac_try='test -s conftest$ac_exeext'
34892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893   (eval $ac_try) 2>&5
34894   ac_status=$?
34895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896   (exit $ac_status); }; }; then
34897   ac_cv_lib_mdbm_mdbm_set_chain=yes
34898 else
34899   echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34901
34902 ac_cv_lib_mdbm_mdbm_set_chain=no
34903 fi
34904 rm -f conftest.err conftest.$ac_objext \
34905       conftest$ac_exeext conftest.$ac_ext
34906 LIBS=$ac_check_lib_save_LIBS
34907 fi
34908 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34909 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34910 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34911   ol_cv_lib_mdbm=-lmdbm
34912 else
34913   ol_cv_lib_mdbm=no
34914 fi
34915
34916
34917 fi
34918
34919         LIBS="$ol_LIBS"
34920
34921 fi
34922 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34923 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34924
34925
34926
34927 for ac_header in mdbm.h
34928 do
34929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34931   echo "$as_me:$LINENO: checking for $ac_header" >&5
34932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34934   echo $ECHO_N "(cached) $ECHO_C" >&6
34935 fi
34936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34938 else
34939   # Is the header compilable?
34940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34942 cat >conftest.$ac_ext <<_ACEOF
34943 /* confdefs.h.  */
34944 _ACEOF
34945 cat confdefs.h >>conftest.$ac_ext
34946 cat >>conftest.$ac_ext <<_ACEOF
34947 /* end confdefs.h.  */
34948 $ac_includes_default
34949 #include <$ac_header>
34950 _ACEOF
34951 rm -f conftest.$ac_objext
34952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34953   (eval $ac_compile) 2>conftest.er1
34954   ac_status=$?
34955   grep -v '^ *+' conftest.er1 >conftest.err
34956   rm -f conftest.er1
34957   cat conftest.err >&5
34958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959   (exit $ac_status); } &&
34960          { ac_try='test -z "$ac_c_werror_flag"
34961                          || test ! -s conftest.err'
34962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34963   (eval $ac_try) 2>&5
34964   ac_status=$?
34965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966   (exit $ac_status); }; } &&
34967          { ac_try='test -s conftest.$ac_objext'
34968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969   (eval $ac_try) 2>&5
34970   ac_status=$?
34971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972   (exit $ac_status); }; }; then
34973   ac_header_compiler=yes
34974 else
34975   echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34977
34978 ac_header_compiler=no
34979 fi
34980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34982 echo "${ECHO_T}$ac_header_compiler" >&6
34983
34984 # Is the header present?
34985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34987 cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h.  */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h.  */
34993 #include <$ac_header>
34994 _ACEOF
34995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34997   ac_status=$?
34998   grep -v '^ *+' conftest.er1 >conftest.err
34999   rm -f conftest.er1
35000   cat conftest.err >&5
35001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002   (exit $ac_status); } >/dev/null; then
35003   if test -s conftest.err; then
35004     ac_cpp_err=$ac_c_preproc_warn_flag
35005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35006   else
35007     ac_cpp_err=
35008   fi
35009 else
35010   ac_cpp_err=yes
35011 fi
35012 if test -z "$ac_cpp_err"; then
35013   ac_header_preproc=yes
35014 else
35015   echo "$as_me: failed program was:" >&5
35016 sed 's/^/| /' conftest.$ac_ext >&5
35017
35018   ac_header_preproc=no
35019 fi
35020 rm -f conftest.err conftest.$ac_ext
35021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35022 echo "${ECHO_T}$ac_header_preproc" >&6
35023
35024 # So?  What about this header?
35025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35026   yes:no: )
35027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35031     ac_header_preproc=yes
35032     ;;
35033   no:yes:* )
35034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35046     (
35047       cat <<\_ASBOX
35048 ## ------------------------------------------ ##
35049 ## Report this to the AC_PACKAGE_NAME lists.  ##
35050 ## ------------------------------------------ ##
35051 _ASBOX
35052     ) |
35053       sed "s/^/$as_me: WARNING:     /" >&2
35054     ;;
35055 esac
35056 echo "$as_me:$LINENO: checking for $ac_header" >&5
35057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35059   echo $ECHO_N "(cached) $ECHO_C" >&6
35060 else
35061   eval "$as_ac_Header=\$ac_header_preproc"
35062 fi
35063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35065
35066 fi
35067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35068   cat >>confdefs.h <<_ACEOF
35069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35070 _ACEOF
35071
35072 fi
35073
35074 done
35075
35076  echo "$as_me:$LINENO: checking for db" >&5
35077 echo $ECHO_N "checking for db... $ECHO_C" >&6
35078 if test "${ol_cv_mdbm+set}" = set; then
35079   echo $ECHO_N "(cached) $ECHO_C" >&6
35080 else
35081
35082         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35083                 ol_cv_mdbm=no
35084         else
35085                 ol_cv_mdbm=yes
35086         fi
35087
35088 fi
35089 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35090 echo "${ECHO_T}$ol_cv_mdbm" >&6
35091  if test $ol_cv_mdbm = yes ; then
35092
35093 cat >>confdefs.h <<\_ACEOF
35094 #define HAVE_MDBM 1
35095 _ACEOF
35096
35097  fi
35098
35099
35100         if test $ol_cv_mdbm = yes ; then
35101                 ol_link_ldbm=mdbm
35102                 ol_enable_ldbm_api=mdbm
35103                 if test $ol_cv_lib_mdbm != yes ; then
35104                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35105                 fi
35106         fi
35107 fi
35108
35109 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35110         echo "$as_me:$LINENO: checking for GDBM library" >&5
35111 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35112 if test "${ol_cv_lib_gdbm+set}" = set; then
35113   echo $ECHO_N "(cached) $ECHO_C" >&6
35114 else
35115         ol_LIBS="$LIBS"
35116         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35117 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35118 if test "${ac_cv_func_gdbm_open+set}" = set; then
35119   echo $ECHO_N "(cached) $ECHO_C" >&6
35120 else
35121   cat >conftest.$ac_ext <<_ACEOF
35122 /* confdefs.h.  */
35123 _ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h.  */
35127 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35129 #define gdbm_open innocuous_gdbm_open
35130
35131 /* System header to define __stub macros and hopefully few prototypes,
35132     which can conflict with char gdbm_open (); below.
35133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35134     <limits.h> exists even on freestanding compilers.  */
35135
35136 #ifdef __STDC__
35137 # include <limits.h>
35138 #else
35139 # include <assert.h>
35140 #endif
35141
35142 #undef gdbm_open
35143
35144 /* Override any gcc2 internal prototype to avoid an error.  */
35145 #ifdef __cplusplus
35146 extern "C"
35147 {
35148 #endif
35149 /* We use char because int might match the return type of a gcc2
35150    builtin and then its argument prototype would still apply.  */
35151 char gdbm_open ();
35152 /* The GNU C library defines this for functions which it implements
35153     to always fail with ENOSYS.  Some functions are actually named
35154     something starting with __ and the normal name is an alias.  */
35155 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35156 choke me
35157 #else
35158 char (*f) () = gdbm_open;
35159 #endif
35160 #ifdef __cplusplus
35161 }
35162 #endif
35163
35164 int
35165 main ()
35166 {
35167 return f != gdbm_open;
35168   ;
35169   return 0;
35170 }
35171 _ACEOF
35172 rm -f conftest.$ac_objext conftest$ac_exeext
35173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35174   (eval $ac_link) 2>conftest.er1
35175   ac_status=$?
35176   grep -v '^ *+' conftest.er1 >conftest.err
35177   rm -f conftest.er1
35178   cat conftest.err >&5
35179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180   (exit $ac_status); } &&
35181          { ac_try='test -z "$ac_c_werror_flag"
35182                          || test ! -s conftest.err'
35183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184   (eval $ac_try) 2>&5
35185   ac_status=$?
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); }; } &&
35188          { ac_try='test -s conftest$ac_exeext'
35189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190   (eval $ac_try) 2>&5
35191   ac_status=$?
35192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193   (exit $ac_status); }; }; then
35194   ac_cv_func_gdbm_open=yes
35195 else
35196   echo "$as_me: failed program was:" >&5
35197 sed 's/^/| /' conftest.$ac_ext >&5
35198
35199 ac_cv_func_gdbm_open=no
35200 fi
35201 rm -f conftest.err conftest.$ac_objext \
35202       conftest$ac_exeext conftest.$ac_ext
35203 fi
35204 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35205 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35206 if test $ac_cv_func_gdbm_open = yes; then
35207   ol_cv_lib_gdbm=yes
35208 else
35209
35210                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35211 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35212 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35213   echo $ECHO_N "(cached) $ECHO_C" >&6
35214 else
35215   ac_check_lib_save_LIBS=$LIBS
35216 LIBS="-lgdbm  $LIBS"
35217 cat >conftest.$ac_ext <<_ACEOF
35218 /* confdefs.h.  */
35219 _ACEOF
35220 cat confdefs.h >>conftest.$ac_ext
35221 cat >>conftest.$ac_ext <<_ACEOF
35222 /* end confdefs.h.  */
35223
35224 /* Override any gcc2 internal prototype to avoid an error.  */
35225 #ifdef __cplusplus
35226 extern "C"
35227 #endif
35228 /* We use char because int might match the return type of a gcc2
35229    builtin and then its argument prototype would still apply.  */
35230 char gdbm_open ();
35231 int
35232 main ()
35233 {
35234 gdbm_open ();
35235   ;
35236   return 0;
35237 }
35238 _ACEOF
35239 rm -f conftest.$ac_objext conftest$ac_exeext
35240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35241   (eval $ac_link) 2>conftest.er1
35242   ac_status=$?
35243   grep -v '^ *+' conftest.er1 >conftest.err
35244   rm -f conftest.er1
35245   cat conftest.err >&5
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); } &&
35248          { ac_try='test -z "$ac_c_werror_flag"
35249                          || test ! -s conftest.err'
35250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35251   (eval $ac_try) 2>&5
35252   ac_status=$?
35253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254   (exit $ac_status); }; } &&
35255          { ac_try='test -s conftest$ac_exeext'
35256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35257   (eval $ac_try) 2>&5
35258   ac_status=$?
35259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260   (exit $ac_status); }; }; then
35261   ac_cv_lib_gdbm_gdbm_open=yes
35262 else
35263   echo "$as_me: failed program was:" >&5
35264 sed 's/^/| /' conftest.$ac_ext >&5
35265
35266 ac_cv_lib_gdbm_gdbm_open=no
35267 fi
35268 rm -f conftest.err conftest.$ac_objext \
35269       conftest$ac_exeext conftest.$ac_ext
35270 LIBS=$ac_check_lib_save_LIBS
35271 fi
35272 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35273 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35274 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35275   ol_cv_lib_gdbm=-lgdbm
35276 else
35277   ol_cv_lib_gdbm=no
35278 fi
35279
35280
35281 fi
35282
35283         LIBS="$ol_LIBS"
35284
35285 fi
35286 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35287 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35288
35289
35290
35291 for ac_header in gdbm.h
35292 do
35293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35295   echo "$as_me:$LINENO: checking for $ac_header" >&5
35296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35298   echo $ECHO_N "(cached) $ECHO_C" >&6
35299 fi
35300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35302 else
35303   # Is the header compilable?
35304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35306 cat >conftest.$ac_ext <<_ACEOF
35307 /* confdefs.h.  */
35308 _ACEOF
35309 cat confdefs.h >>conftest.$ac_ext
35310 cat >>conftest.$ac_ext <<_ACEOF
35311 /* end confdefs.h.  */
35312 $ac_includes_default
35313 #include <$ac_header>
35314 _ACEOF
35315 rm -f conftest.$ac_objext
35316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35317   (eval $ac_compile) 2>conftest.er1
35318   ac_status=$?
35319   grep -v '^ *+' conftest.er1 >conftest.err
35320   rm -f conftest.er1
35321   cat conftest.err >&5
35322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35323   (exit $ac_status); } &&
35324          { ac_try='test -z "$ac_c_werror_flag"
35325                          || test ! -s conftest.err'
35326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35327   (eval $ac_try) 2>&5
35328   ac_status=$?
35329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35330   (exit $ac_status); }; } &&
35331          { ac_try='test -s conftest.$ac_objext'
35332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35333   (eval $ac_try) 2>&5
35334   ac_status=$?
35335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336   (exit $ac_status); }; }; then
35337   ac_header_compiler=yes
35338 else
35339   echo "$as_me: failed program was:" >&5
35340 sed 's/^/| /' conftest.$ac_ext >&5
35341
35342 ac_header_compiler=no
35343 fi
35344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35346 echo "${ECHO_T}$ac_header_compiler" >&6
35347
35348 # Is the header present?
35349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35351 cat >conftest.$ac_ext <<_ACEOF
35352 /* confdefs.h.  */
35353 _ACEOF
35354 cat confdefs.h >>conftest.$ac_ext
35355 cat >>conftest.$ac_ext <<_ACEOF
35356 /* end confdefs.h.  */
35357 #include <$ac_header>
35358 _ACEOF
35359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35361   ac_status=$?
35362   grep -v '^ *+' conftest.er1 >conftest.err
35363   rm -f conftest.er1
35364   cat conftest.err >&5
35365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366   (exit $ac_status); } >/dev/null; then
35367   if test -s conftest.err; then
35368     ac_cpp_err=$ac_c_preproc_warn_flag
35369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35370   else
35371     ac_cpp_err=
35372   fi
35373 else
35374   ac_cpp_err=yes
35375 fi
35376 if test -z "$ac_cpp_err"; then
35377   ac_header_preproc=yes
35378 else
35379   echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35381
35382   ac_header_preproc=no
35383 fi
35384 rm -f conftest.err conftest.$ac_ext
35385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35386 echo "${ECHO_T}$ac_header_preproc" >&6
35387
35388 # So?  What about this header?
35389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35390   yes:no: )
35391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35395     ac_header_preproc=yes
35396     ;;
35397   no:yes:* )
35398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35410     (
35411       cat <<\_ASBOX
35412 ## ------------------------------------------ ##
35413 ## Report this to the AC_PACKAGE_NAME lists.  ##
35414 ## ------------------------------------------ ##
35415 _ASBOX
35416     ) |
35417       sed "s/^/$as_me: WARNING:     /" >&2
35418     ;;
35419 esac
35420 echo "$as_me:$LINENO: checking for $ac_header" >&5
35421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35423   echo $ECHO_N "(cached) $ECHO_C" >&6
35424 else
35425   eval "$as_ac_Header=\$ac_header_preproc"
35426 fi
35427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35429
35430 fi
35431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35432   cat >>confdefs.h <<_ACEOF
35433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35434 _ACEOF
35435
35436 fi
35437
35438 done
35439
35440  echo "$as_me:$LINENO: checking for db" >&5
35441 echo $ECHO_N "checking for db... $ECHO_C" >&6
35442 if test "${ol_cv_gdbm+set}" = set; then
35443   echo $ECHO_N "(cached) $ECHO_C" >&6
35444 else
35445
35446         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35447                 ol_cv_gdbm=no
35448         else
35449                 ol_cv_gdbm=yes
35450         fi
35451
35452 fi
35453 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35454 echo "${ECHO_T}$ol_cv_gdbm" >&6
35455  if test $ol_cv_gdbm = yes ; then
35456
35457 cat >>confdefs.h <<\_ACEOF
35458 #define HAVE_GDBM 1
35459 _ACEOF
35460
35461  fi
35462
35463
35464         if test $ol_cv_gdbm = yes ; then
35465                 ol_link_ldbm=gdbm
35466                 ol_enable_ldbm_api=gdbm
35467
35468                 if test $ol_cv_lib_gdbm != yes ; then
35469                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35470                 fi
35471         fi
35472 fi
35473
35474 if test $ol_enable_ldbm_api = ndbm ; then
35475         echo "$as_me:$LINENO: checking for NDBM library" >&5
35476 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35477 if test "${ol_cv_lib_ndbm+set}" = set; then
35478   echo $ECHO_N "(cached) $ECHO_C" >&6
35479 else
35480         ol_LIBS="$LIBS"
35481         echo "$as_me:$LINENO: checking for dbm_open" >&5
35482 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35483 if test "${ac_cv_func_dbm_open+set}" = set; then
35484   echo $ECHO_N "(cached) $ECHO_C" >&6
35485 else
35486   cat >conftest.$ac_ext <<_ACEOF
35487 /* confdefs.h.  */
35488 _ACEOF
35489 cat confdefs.h >>conftest.$ac_ext
35490 cat >>conftest.$ac_ext <<_ACEOF
35491 /* end confdefs.h.  */
35492 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35494 #define dbm_open innocuous_dbm_open
35495
35496 /* System header to define __stub macros and hopefully few prototypes,
35497     which can conflict with char dbm_open (); below.
35498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35499     <limits.h> exists even on freestanding compilers.  */
35500
35501 #ifdef __STDC__
35502 # include <limits.h>
35503 #else
35504 # include <assert.h>
35505 #endif
35506
35507 #undef dbm_open
35508
35509 /* Override any gcc2 internal prototype to avoid an error.  */
35510 #ifdef __cplusplus
35511 extern "C"
35512 {
35513 #endif
35514 /* We use char because int might match the return type of a gcc2
35515    builtin and then its argument prototype would still apply.  */
35516 char dbm_open ();
35517 /* The GNU C library defines this for functions which it implements
35518     to always fail with ENOSYS.  Some functions are actually named
35519     something starting with __ and the normal name is an alias.  */
35520 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35521 choke me
35522 #else
35523 char (*f) () = dbm_open;
35524 #endif
35525 #ifdef __cplusplus
35526 }
35527 #endif
35528
35529 int
35530 main ()
35531 {
35532 return f != dbm_open;
35533   ;
35534   return 0;
35535 }
35536 _ACEOF
35537 rm -f conftest.$ac_objext conftest$ac_exeext
35538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35539   (eval $ac_link) 2>conftest.er1
35540   ac_status=$?
35541   grep -v '^ *+' conftest.er1 >conftest.err
35542   rm -f conftest.er1
35543   cat conftest.err >&5
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); } &&
35546          { ac_try='test -z "$ac_c_werror_flag"
35547                          || test ! -s conftest.err'
35548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549   (eval $ac_try) 2>&5
35550   ac_status=$?
35551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552   (exit $ac_status); }; } &&
35553          { ac_try='test -s conftest$ac_exeext'
35554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555   (eval $ac_try) 2>&5
35556   ac_status=$?
35557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558   (exit $ac_status); }; }; then
35559   ac_cv_func_dbm_open=yes
35560 else
35561   echo "$as_me: failed program was:" >&5
35562 sed 's/^/| /' conftest.$ac_ext >&5
35563
35564 ac_cv_func_dbm_open=no
35565 fi
35566 rm -f conftest.err conftest.$ac_objext \
35567       conftest$ac_exeext conftest.$ac_ext
35568 fi
35569 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35570 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35571 if test $ac_cv_func_dbm_open = yes; then
35572   ol_cv_lib_ndbm=yes
35573 else
35574
35575                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35576 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35577 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35578   echo $ECHO_N "(cached) $ECHO_C" >&6
35579 else
35580   ac_check_lib_save_LIBS=$LIBS
35581 LIBS="-lndbm  $LIBS"
35582 cat >conftest.$ac_ext <<_ACEOF
35583 /* confdefs.h.  */
35584 _ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h.  */
35588
35589 /* Override any gcc2 internal prototype to avoid an error.  */
35590 #ifdef __cplusplus
35591 extern "C"
35592 #endif
35593 /* We use char because int might match the return type of a gcc2
35594    builtin and then its argument prototype would still apply.  */
35595 char dbm_open ();
35596 int
35597 main ()
35598 {
35599 dbm_open ();
35600   ;
35601   return 0;
35602 }
35603 _ACEOF
35604 rm -f conftest.$ac_objext conftest$ac_exeext
35605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35606   (eval $ac_link) 2>conftest.er1
35607   ac_status=$?
35608   grep -v '^ *+' conftest.er1 >conftest.err
35609   rm -f conftest.er1
35610   cat conftest.err >&5
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); } &&
35613          { ac_try='test -z "$ac_c_werror_flag"
35614                          || test ! -s conftest.err'
35615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616   (eval $ac_try) 2>&5
35617   ac_status=$?
35618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619   (exit $ac_status); }; } &&
35620          { ac_try='test -s conftest$ac_exeext'
35621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622   (eval $ac_try) 2>&5
35623   ac_status=$?
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); }; }; then
35626   ac_cv_lib_ndbm_dbm_open=yes
35627 else
35628   echo "$as_me: failed program was:" >&5
35629 sed 's/^/| /' conftest.$ac_ext >&5
35630
35631 ac_cv_lib_ndbm_dbm_open=no
35632 fi
35633 rm -f conftest.err conftest.$ac_objext \
35634       conftest$ac_exeext conftest.$ac_ext
35635 LIBS=$ac_check_lib_save_LIBS
35636 fi
35637 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35638 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35639 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35640   ol_cv_lib_ndbm=-lndbm
35641 else
35642
35643                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35644 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35645 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35646   echo $ECHO_N "(cached) $ECHO_C" >&6
35647 else
35648   ac_check_lib_save_LIBS=$LIBS
35649 LIBS="-ldbm  $LIBS"
35650 cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656
35657 /* Override any gcc2 internal prototype to avoid an error.  */
35658 #ifdef __cplusplus
35659 extern "C"
35660 #endif
35661 /* We use char because int might match the return type of a gcc2
35662    builtin and then its argument prototype would still apply.  */
35663 char dbm_open ();
35664 int
35665 main ()
35666 {
35667 dbm_open ();
35668   ;
35669   return 0;
35670 }
35671 _ACEOF
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674   (eval $ac_link) 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } &&
35681          { ac_try='test -z "$ac_c_werror_flag"
35682                          || test ! -s conftest.err'
35683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684   (eval $ac_try) 2>&5
35685   ac_status=$?
35686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687   (exit $ac_status); }; } &&
35688          { ac_try='test -s conftest$ac_exeext'
35689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690   (eval $ac_try) 2>&5
35691   ac_status=$?
35692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693   (exit $ac_status); }; }; then
35694   ac_cv_lib_dbm_dbm_open=yes
35695 else
35696   echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35698
35699 ac_cv_lib_dbm_dbm_open=no
35700 fi
35701 rm -f conftest.err conftest.$ac_objext \
35702       conftest$ac_exeext conftest.$ac_ext
35703 LIBS=$ac_check_lib_save_LIBS
35704 fi
35705 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35706 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35707 if test $ac_cv_lib_dbm_dbm_open = yes; then
35708   ol_cv_lib_ndbm=-ldbm
35709 else
35710   ol_cv_lib_ndbm=no
35711 fi
35712
35713 fi
35714
35715
35716 fi
35717
35718         LIBS="$ol_LIBS"
35719
35720 fi
35721 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35722 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35723
35724
35725
35726 for ac_header in ndbm.h
35727 do
35728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35730   echo "$as_me:$LINENO: checking for $ac_header" >&5
35731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35733   echo $ECHO_N "(cached) $ECHO_C" >&6
35734 fi
35735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35737 else
35738   # Is the header compilable?
35739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35741 cat >conftest.$ac_ext <<_ACEOF
35742 /* confdefs.h.  */
35743 _ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h.  */
35747 $ac_includes_default
35748 #include <$ac_header>
35749 _ACEOF
35750 rm -f conftest.$ac_objext
35751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35752   (eval $ac_compile) 2>conftest.er1
35753   ac_status=$?
35754   grep -v '^ *+' conftest.er1 >conftest.err
35755   rm -f conftest.er1
35756   cat conftest.err >&5
35757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758   (exit $ac_status); } &&
35759          { ac_try='test -z "$ac_c_werror_flag"
35760                          || test ! -s conftest.err'
35761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762   (eval $ac_try) 2>&5
35763   ac_status=$?
35764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765   (exit $ac_status); }; } &&
35766          { ac_try='test -s conftest.$ac_objext'
35767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768   (eval $ac_try) 2>&5
35769   ac_status=$?
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); }; }; then
35772   ac_header_compiler=yes
35773 else
35774   echo "$as_me: failed program was:" >&5
35775 sed 's/^/| /' conftest.$ac_ext >&5
35776
35777 ac_header_compiler=no
35778 fi
35779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35781 echo "${ECHO_T}$ac_header_compiler" >&6
35782
35783 # Is the header present?
35784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35786 cat >conftest.$ac_ext <<_ACEOF
35787 /* confdefs.h.  */
35788 _ACEOF
35789 cat confdefs.h >>conftest.$ac_ext
35790 cat >>conftest.$ac_ext <<_ACEOF
35791 /* end confdefs.h.  */
35792 #include <$ac_header>
35793 _ACEOF
35794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35796   ac_status=$?
35797   grep -v '^ *+' conftest.er1 >conftest.err
35798   rm -f conftest.er1
35799   cat conftest.err >&5
35800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801   (exit $ac_status); } >/dev/null; then
35802   if test -s conftest.err; then
35803     ac_cpp_err=$ac_c_preproc_warn_flag
35804     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35805   else
35806     ac_cpp_err=
35807   fi
35808 else
35809   ac_cpp_err=yes
35810 fi
35811 if test -z "$ac_cpp_err"; then
35812   ac_header_preproc=yes
35813 else
35814   echo "$as_me: failed program was:" >&5
35815 sed 's/^/| /' conftest.$ac_ext >&5
35816
35817   ac_header_preproc=no
35818 fi
35819 rm -f conftest.err conftest.$ac_ext
35820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35821 echo "${ECHO_T}$ac_header_preproc" >&6
35822
35823 # So?  What about this header?
35824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35825   yes:no: )
35826     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35830     ac_header_preproc=yes
35831     ;;
35832   no:yes:* )
35833     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35835     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35836 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35837     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35839     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35840 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35843     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35845     (
35846       cat <<\_ASBOX
35847 ## ------------------------------------------ ##
35848 ## Report this to the AC_PACKAGE_NAME lists.  ##
35849 ## ------------------------------------------ ##
35850 _ASBOX
35851     ) |
35852       sed "s/^/$as_me: WARNING:     /" >&2
35853     ;;
35854 esac
35855 echo "$as_me:$LINENO: checking for $ac_header" >&5
35856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35858   echo $ECHO_N "(cached) $ECHO_C" >&6
35859 else
35860   eval "$as_ac_Header=\$ac_header_preproc"
35861 fi
35862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35864
35865 fi
35866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35867   cat >>confdefs.h <<_ACEOF
35868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35869 _ACEOF
35870
35871 fi
35872
35873 done
35874
35875  echo "$as_me:$LINENO: checking for db" >&5
35876 echo $ECHO_N "checking for db... $ECHO_C" >&6
35877 if test "${ol_cv_ndbm+set}" = set; then
35878   echo $ECHO_N "(cached) $ECHO_C" >&6
35879 else
35880
35881         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35882                 ol_cv_ndbm=no
35883         else
35884                 ol_cv_ndbm=yes
35885         fi
35886
35887 fi
35888 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35889 echo "${ECHO_T}$ol_cv_ndbm" >&6
35890  if test $ol_cv_ndbm = yes ; then
35891
35892 cat >>confdefs.h <<\_ACEOF
35893 #define HAVE_NDBM 1
35894 _ACEOF
35895
35896  fi
35897
35898
35899         if test $ol_cv_ndbm = yes ; then
35900                 ol_link_ldbm=ndbm
35901                 ol_enable_ldbm_api=ndbm
35902
35903                 if test $ol_cv_lib_ndbm != yes ; then
35904                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35905                 fi
35906         fi
35907 fi
35908
35909 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35910         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35911 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35912    { (exit 1); exit 1; }; }
35913 fi
35914
35915 if test $ol_enable_bdb = yes ||
35916    test $ol_enable_hdb = yes ||
35917    test $ol_enable_ldbm = yes ; then
35918         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35919 fi
35920
35921
35922 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35923         BUILD_LIBS_DYNAMIC=shared
35924
35925 cat >>confdefs.h <<\_ACEOF
35926 #define LDAP_LIBS_DYNAMIC 1
35927 _ACEOF
35928
35929         LTSTATIC=""
35930 else
35931         BUILD_LIBS_DYNAMIC=static
35932         LTSTATIC="-static"
35933 fi
35934
35935 if test $ol_enable_wrappers != no ; then
35936
35937 for ac_header in tcpd.h
35938 do
35939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35941   echo "$as_me:$LINENO: checking for $ac_header" >&5
35942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35944   echo $ECHO_N "(cached) $ECHO_C" >&6
35945 fi
35946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35948 else
35949   # Is the header compilable?
35950 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35952 cat >conftest.$ac_ext <<_ACEOF
35953 /* confdefs.h.  */
35954 _ACEOF
35955 cat confdefs.h >>conftest.$ac_ext
35956 cat >>conftest.$ac_ext <<_ACEOF
35957 /* end confdefs.h.  */
35958 $ac_includes_default
35959 #include <$ac_header>
35960 _ACEOF
35961 rm -f conftest.$ac_objext
35962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35963   (eval $ac_compile) 2>conftest.er1
35964   ac_status=$?
35965   grep -v '^ *+' conftest.er1 >conftest.err
35966   rm -f conftest.er1
35967   cat conftest.err >&5
35968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969   (exit $ac_status); } &&
35970          { ac_try='test -z "$ac_c_werror_flag"
35971                          || test ! -s conftest.err'
35972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35973   (eval $ac_try) 2>&5
35974   ac_status=$?
35975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976   (exit $ac_status); }; } &&
35977          { ac_try='test -s conftest.$ac_objext'
35978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35979   (eval $ac_try) 2>&5
35980   ac_status=$?
35981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982   (exit $ac_status); }; }; then
35983   ac_header_compiler=yes
35984 else
35985   echo "$as_me: failed program was:" >&5
35986 sed 's/^/| /' conftest.$ac_ext >&5
35987
35988 ac_header_compiler=no
35989 fi
35990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35992 echo "${ECHO_T}$ac_header_compiler" >&6
35993
35994 # Is the header present?
35995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35997 cat >conftest.$ac_ext <<_ACEOF
35998 /* confdefs.h.  */
35999 _ACEOF
36000 cat confdefs.h >>conftest.$ac_ext
36001 cat >>conftest.$ac_ext <<_ACEOF
36002 /* end confdefs.h.  */
36003 #include <$ac_header>
36004 _ACEOF
36005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36007   ac_status=$?
36008   grep -v '^ *+' conftest.er1 >conftest.err
36009   rm -f conftest.er1
36010   cat conftest.err >&5
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); } >/dev/null; then
36013   if test -s conftest.err; then
36014     ac_cpp_err=$ac_c_preproc_warn_flag
36015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36016   else
36017     ac_cpp_err=
36018   fi
36019 else
36020   ac_cpp_err=yes
36021 fi
36022 if test -z "$ac_cpp_err"; then
36023   ac_header_preproc=yes
36024 else
36025   echo "$as_me: failed program was:" >&5
36026 sed 's/^/| /' conftest.$ac_ext >&5
36027
36028   ac_header_preproc=no
36029 fi
36030 rm -f conftest.err conftest.$ac_ext
36031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36032 echo "${ECHO_T}$ac_header_preproc" >&6
36033
36034 # So?  What about this header?
36035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36036   yes:no: )
36037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36041     ac_header_preproc=yes
36042     ;;
36043   no:yes:* )
36044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36056     (
36057       cat <<\_ASBOX
36058 ## ------------------------------------------ ##
36059 ## Report this to the AC_PACKAGE_NAME lists.  ##
36060 ## ------------------------------------------ ##
36061 _ASBOX
36062     ) |
36063       sed "s/^/$as_me: WARNING:     /" >&2
36064     ;;
36065 esac
36066 echo "$as_me:$LINENO: checking for $ac_header" >&5
36067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36069   echo $ECHO_N "(cached) $ECHO_C" >&6
36070 else
36071   eval "$as_ac_Header=\$ac_header_preproc"
36072 fi
36073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36075
36076 fi
36077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36078   cat >>confdefs.h <<_ACEOF
36079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36080 _ACEOF
36081
36082                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36083 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36084                 save_LIBS="$LIBS"
36085                 LIBS="$LIBS -lwrap"
36086                 cat >conftest.$ac_ext <<_ACEOF
36087 /* confdefs.h.  */
36088 _ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h.  */
36092
36093 #include <tcpd.h>
36094 int allow_severity = 0;
36095 int deny_severity  = 0;
36096
36097 struct request_info *req;
36098
36099 int
36100 main ()
36101 {
36102
36103 hosts_access(req)
36104
36105   ;
36106   return 0;
36107 }
36108 _ACEOF
36109 rm -f conftest.$ac_objext conftest$ac_exeext
36110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36111   (eval $ac_link) 2>conftest.er1
36112   ac_status=$?
36113   grep -v '^ *+' conftest.er1 >conftest.err
36114   rm -f conftest.er1
36115   cat conftest.err >&5
36116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117   (exit $ac_status); } &&
36118          { ac_try='test -z "$ac_c_werror_flag"
36119                          || test ! -s conftest.err'
36120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121   (eval $ac_try) 2>&5
36122   ac_status=$?
36123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); }; } &&
36125          { ac_try='test -s conftest$ac_exeext'
36126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36127   (eval $ac_try) 2>&5
36128   ac_status=$?
36129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36130   (exit $ac_status); }; }; then
36131   echo "$as_me:$LINENO: result: -lwrap" >&5
36132 echo "${ECHO_T}-lwrap" >&6
36133                 have_wrappers=yes
36134                 LIBS="$save_LIBS"
36135 else
36136   echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36138
36139
36140                                 LIBS="$LIBS -lnsl"
36141                 cat >conftest.$ac_ext <<_ACEOF
36142 /* confdefs.h.  */
36143 _ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h.  */
36147
36148 #include <tcpd.h>
36149 int allow_severity = 0;
36150 int deny_severity  = 0;
36151
36152 struct request_info *req;
36153
36154 int
36155 main ()
36156 {
36157
36158 hosts_access(req)
36159
36160   ;
36161   return 0;
36162 }
36163 _ACEOF
36164 rm -f conftest.$ac_objext conftest$ac_exeext
36165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36166   (eval $ac_link) 2>conftest.er1
36167   ac_status=$?
36168   grep -v '^ *+' conftest.er1 >conftest.err
36169   rm -f conftest.er1
36170   cat conftest.err >&5
36171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172   (exit $ac_status); } &&
36173          { ac_try='test -z "$ac_c_werror_flag"
36174                          || test ! -s conftest.err'
36175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36176   (eval $ac_try) 2>&5
36177   ac_status=$?
36178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179   (exit $ac_status); }; } &&
36180          { ac_try='test -s conftest$ac_exeext'
36181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182   (eval $ac_try) 2>&5
36183   ac_status=$?
36184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185   (exit $ac_status); }; }; then
36186   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36187 echo "${ECHO_T}-lwrap -lnsl" >&6
36188                 have_wrappers=yes
36189                 LIBS="$save_LIBS -lnsl"
36190 else
36191   echo "$as_me: failed program was:" >&5
36192 sed 's/^/| /' conftest.$ac_ext >&5
36193
36194
36195                 echo "$as_me:$LINENO: result: no" >&5
36196 echo "${ECHO_T}no" >&6
36197                 have_wrappers=no
36198                 LIBS=$save_LIBS
36199 fi
36200 rm -f conftest.err conftest.$ac_objext \
36201       conftest$ac_exeext conftest.$ac_ext
36202 fi
36203 rm -f conftest.err conftest.$ac_objext \
36204       conftest$ac_exeext conftest.$ac_ext
36205 else
36206   have_wrappers=no
36207 fi
36208
36209 done
36210
36211
36212         if test $have_wrappers = yes ; then
36213
36214 cat >>confdefs.h <<\_ACEOF
36215 #define HAVE_TCPD 1
36216 _ACEOF
36217
36218                 WRAP_LIBS="-lwrap"
36219         elif test $ol_enable_wrappers = yes ; then
36220                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36221 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36222    { (exit 1); exit 1; }; }
36223         else
36224                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36225 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36226                 WRAP_LIBS=""
36227         fi
36228 fi
36229
36230 if test $ol_enable_syslog != no ; then
36231         echo "$as_me:$LINENO: checking for openlog" >&5
36232 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36233 if test "${ac_cv_func_openlog+set}" = set; then
36234   echo $ECHO_N "(cached) $ECHO_C" >&6
36235 else
36236   cat >conftest.$ac_ext <<_ACEOF
36237 /* confdefs.h.  */
36238 _ACEOF
36239 cat confdefs.h >>conftest.$ac_ext
36240 cat >>conftest.$ac_ext <<_ACEOF
36241 /* end confdefs.h.  */
36242 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36244 #define openlog innocuous_openlog
36245
36246 /* System header to define __stub macros and hopefully few prototypes,
36247     which can conflict with char openlog (); below.
36248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36249     <limits.h> exists even on freestanding compilers.  */
36250
36251 #ifdef __STDC__
36252 # include <limits.h>
36253 #else
36254 # include <assert.h>
36255 #endif
36256
36257 #undef openlog
36258
36259 /* Override any gcc2 internal prototype to avoid an error.  */
36260 #ifdef __cplusplus
36261 extern "C"
36262 {
36263 #endif
36264 /* We use char because int might match the return type of a gcc2
36265    builtin and then its argument prototype would still apply.  */
36266 char openlog ();
36267 /* The GNU C library defines this for functions which it implements
36268     to always fail with ENOSYS.  Some functions are actually named
36269     something starting with __ and the normal name is an alias.  */
36270 #if defined (__stub_openlog) || defined (__stub___openlog)
36271 choke me
36272 #else
36273 char (*f) () = openlog;
36274 #endif
36275 #ifdef __cplusplus
36276 }
36277 #endif
36278
36279 int
36280 main ()
36281 {
36282 return f != openlog;
36283   ;
36284   return 0;
36285 }
36286 _ACEOF
36287 rm -f conftest.$ac_objext conftest$ac_exeext
36288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36289   (eval $ac_link) 2>conftest.er1
36290   ac_status=$?
36291   grep -v '^ *+' conftest.er1 >conftest.err
36292   rm -f conftest.er1
36293   cat conftest.err >&5
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); } &&
36296          { ac_try='test -z "$ac_c_werror_flag"
36297                          || test ! -s conftest.err'
36298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299   (eval $ac_try) 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; } &&
36303          { ac_try='test -s conftest$ac_exeext'
36304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305   (eval $ac_try) 2>&5
36306   ac_status=$?
36307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308   (exit $ac_status); }; }; then
36309   ac_cv_func_openlog=yes
36310 else
36311   echo "$as_me: failed program was:" >&5
36312 sed 's/^/| /' conftest.$ac_ext >&5
36313
36314 ac_cv_func_openlog=no
36315 fi
36316 rm -f conftest.err conftest.$ac_objext \
36317       conftest$ac_exeext conftest.$ac_ext
36318 fi
36319 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36320 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36321
36322         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36323                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36324 echo "$as_me: error: could not find syslog" >&2;}
36325    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36326         fi
36327         ol_enable_syslog=$ac_cv_func_openlog
36328 fi
36329
36330 ol_link_sql=no
36331 if test $ol_enable_sql != no ; then
36332
36333
36334 for ac_header in sql.h sqlext.h
36335 do
36336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36338   echo "$as_me:$LINENO: checking for $ac_header" >&5
36339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36341   echo $ECHO_N "(cached) $ECHO_C" >&6
36342 fi
36343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36345 else
36346   # Is the header compilable?
36347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36349 cat >conftest.$ac_ext <<_ACEOF
36350 /* confdefs.h.  */
36351 _ACEOF
36352 cat confdefs.h >>conftest.$ac_ext
36353 cat >>conftest.$ac_ext <<_ACEOF
36354 /* end confdefs.h.  */
36355 $ac_includes_default
36356 #include <$ac_header>
36357 _ACEOF
36358 rm -f conftest.$ac_objext
36359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36360   (eval $ac_compile) 2>conftest.er1
36361   ac_status=$?
36362   grep -v '^ *+' conftest.er1 >conftest.err
36363   rm -f conftest.er1
36364   cat conftest.err >&5
36365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366   (exit $ac_status); } &&
36367          { ac_try='test -z "$ac_c_werror_flag"
36368                          || test ! -s conftest.err'
36369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36370   (eval $ac_try) 2>&5
36371   ac_status=$?
36372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36373   (exit $ac_status); }; } &&
36374          { ac_try='test -s conftest.$ac_objext'
36375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36376   (eval $ac_try) 2>&5
36377   ac_status=$?
36378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379   (exit $ac_status); }; }; then
36380   ac_header_compiler=yes
36381 else
36382   echo "$as_me: failed program was:" >&5
36383 sed 's/^/| /' conftest.$ac_ext >&5
36384
36385 ac_header_compiler=no
36386 fi
36387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36389 echo "${ECHO_T}$ac_header_compiler" >&6
36390
36391 # Is the header present?
36392 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36394 cat >conftest.$ac_ext <<_ACEOF
36395 /* confdefs.h.  */
36396 _ACEOF
36397 cat confdefs.h >>conftest.$ac_ext
36398 cat >>conftest.$ac_ext <<_ACEOF
36399 /* end confdefs.h.  */
36400 #include <$ac_header>
36401 _ACEOF
36402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36403   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } >/dev/null; then
36410   if test -s conftest.err; then
36411     ac_cpp_err=$ac_c_preproc_warn_flag
36412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36413   else
36414     ac_cpp_err=
36415   fi
36416 else
36417   ac_cpp_err=yes
36418 fi
36419 if test -z "$ac_cpp_err"; then
36420   ac_header_preproc=yes
36421 else
36422   echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425   ac_header_preproc=no
36426 fi
36427 rm -f conftest.err conftest.$ac_ext
36428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36429 echo "${ECHO_T}$ac_header_preproc" >&6
36430
36431 # So?  What about this header?
36432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36433   yes:no: )
36434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36438     ac_header_preproc=yes
36439     ;;
36440   no:yes:* )
36441     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36443     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36444 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36445     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36447     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36448 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36451     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36453     (
36454       cat <<\_ASBOX
36455 ## ------------------------------------------ ##
36456 ## Report this to the AC_PACKAGE_NAME lists.  ##
36457 ## ------------------------------------------ ##
36458 _ASBOX
36459     ) |
36460       sed "s/^/$as_me: WARNING:     /" >&2
36461     ;;
36462 esac
36463 echo "$as_me:$LINENO: checking for $ac_header" >&5
36464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36466   echo $ECHO_N "(cached) $ECHO_C" >&6
36467 else
36468   eval "$as_ac_Header=\$ac_header_preproc"
36469 fi
36470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36472
36473 fi
36474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36475   cat >>confdefs.h <<_ACEOF
36476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36477 _ACEOF
36478
36479 else
36480
36481                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36482 echo "$as_me: error: could not locate SQL headers" >&2;}
36483    { (exit 1); exit 1; }; }
36484
36485 fi
36486
36487 done
36488
36489
36490         sql_LIBS="$LIBS"
36491         LIBS="$LTHREAD_LIBS"
36492
36493         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36494 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36495 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36496   echo $ECHO_N "(cached) $ECHO_C" >&6
36497 else
36498   ac_check_lib_save_LIBS=$LIBS
36499 LIBS="-liodbc  $LIBS"
36500 cat >conftest.$ac_ext <<_ACEOF
36501 /* confdefs.h.  */
36502 _ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h.  */
36506
36507 /* Override any gcc2 internal prototype to avoid an error.  */
36508 #ifdef __cplusplus
36509 extern "C"
36510 #endif
36511 /* We use char because int might match the return type of a gcc2
36512    builtin and then its argument prototype would still apply.  */
36513 char SQLDriverConnect ();
36514 int
36515 main ()
36516 {
36517 SQLDriverConnect ();
36518   ;
36519   return 0;
36520 }
36521 _ACEOF
36522 rm -f conftest.$ac_objext conftest$ac_exeext
36523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36524   (eval $ac_link) 2>conftest.er1
36525   ac_status=$?
36526   grep -v '^ *+' conftest.er1 >conftest.err
36527   rm -f conftest.er1
36528   cat conftest.err >&5
36529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530   (exit $ac_status); } &&
36531          { ac_try='test -z "$ac_c_werror_flag"
36532                          || test ! -s conftest.err'
36533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36534   (eval $ac_try) 2>&5
36535   ac_status=$?
36536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537   (exit $ac_status); }; } &&
36538          { ac_try='test -s conftest$ac_exeext'
36539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36540   (eval $ac_try) 2>&5
36541   ac_status=$?
36542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543   (exit $ac_status); }; }; then
36544   ac_cv_lib_iodbc_SQLDriverConnect=yes
36545 else
36546   echo "$as_me: failed program was:" >&5
36547 sed 's/^/| /' conftest.$ac_ext >&5
36548
36549 ac_cv_lib_iodbc_SQLDriverConnect=no
36550 fi
36551 rm -f conftest.err conftest.$ac_objext \
36552       conftest$ac_exeext conftest.$ac_ext
36553 LIBS=$ac_check_lib_save_LIBS
36554 fi
36555 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36556 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36557 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36558   have_iodbc=yes
36559 else
36560   have_iodbc=no
36561 fi
36562
36563         if test $have_iodbc = yes ; then
36564                 ol_link_sql="-liodbc"
36565         else
36566                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36567 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36568 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36569   echo $ECHO_N "(cached) $ECHO_C" >&6
36570 else
36571   ac_check_lib_save_LIBS=$LIBS
36572 LIBS="-lodbc  $LIBS"
36573 cat >conftest.$ac_ext <<_ACEOF
36574 /* confdefs.h.  */
36575 _ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h.  */
36579
36580 /* Override any gcc2 internal prototype to avoid an error.  */
36581 #ifdef __cplusplus
36582 extern "C"
36583 #endif
36584 /* We use char because int might match the return type of a gcc2
36585    builtin and then its argument prototype would still apply.  */
36586 char SQLDriverConnect ();
36587 int
36588 main ()
36589 {
36590 SQLDriverConnect ();
36591   ;
36592   return 0;
36593 }
36594 _ACEOF
36595 rm -f conftest.$ac_objext conftest$ac_exeext
36596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36597   (eval $ac_link) 2>conftest.er1
36598   ac_status=$?
36599   grep -v '^ *+' conftest.er1 >conftest.err
36600   rm -f conftest.er1
36601   cat conftest.err >&5
36602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603   (exit $ac_status); } &&
36604          { ac_try='test -z "$ac_c_werror_flag"
36605                          || test ! -s conftest.err'
36606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607   (eval $ac_try) 2>&5
36608   ac_status=$?
36609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610   (exit $ac_status); }; } &&
36611          { ac_try='test -s conftest$ac_exeext'
36612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36613   (eval $ac_try) 2>&5
36614   ac_status=$?
36615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36616   (exit $ac_status); }; }; then
36617   ac_cv_lib_odbc_SQLDriverConnect=yes
36618 else
36619   echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36621
36622 ac_cv_lib_odbc_SQLDriverConnect=no
36623 fi
36624 rm -f conftest.err conftest.$ac_objext \
36625       conftest$ac_exeext conftest.$ac_ext
36626 LIBS=$ac_check_lib_save_LIBS
36627 fi
36628 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36629 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36630 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36631   have_odbc=yes
36632 else
36633   have_odbc=no
36634 fi
36635
36636                 if test $have_odbc = yes ; then
36637                         ol_link_sql="-lodbc"
36638                 fi
36639         fi
36640
36641         LIBS="$sql_LIBS"
36642
36643         if test $ol_link_sql != no ; then
36644                 SLAPD_SQL_LIBS="$ol_link_sql"
36645
36646         elif test $ol_enable_sql != auto ; then
36647                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36648 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36649    { (exit 1); exit 1; }; }
36650         fi
36651 fi
36652
36653 WITH_SASL=no
36654 ol_link_sasl=no
36655 ol_link_spasswd=no
36656 if test $ol_with_cyrus_sasl != no ; then
36657
36658
36659 for ac_header in sasl/sasl.h sasl.h
36660 do
36661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36663   echo "$as_me:$LINENO: checking for $ac_header" >&5
36664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36666   echo $ECHO_N "(cached) $ECHO_C" >&6
36667 fi
36668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36670 else
36671   # Is the header compilable?
36672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36674 cat >conftest.$ac_ext <<_ACEOF
36675 /* confdefs.h.  */
36676 _ACEOF
36677 cat confdefs.h >>conftest.$ac_ext
36678 cat >>conftest.$ac_ext <<_ACEOF
36679 /* end confdefs.h.  */
36680 $ac_includes_default
36681 #include <$ac_header>
36682 _ACEOF
36683 rm -f conftest.$ac_objext
36684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36685   (eval $ac_compile) 2>conftest.er1
36686   ac_status=$?
36687   grep -v '^ *+' conftest.er1 >conftest.err
36688   rm -f conftest.er1
36689   cat conftest.err >&5
36690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36691   (exit $ac_status); } &&
36692          { ac_try='test -z "$ac_c_werror_flag"
36693                          || test ! -s conftest.err'
36694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36695   (eval $ac_try) 2>&5
36696   ac_status=$?
36697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698   (exit $ac_status); }; } &&
36699          { ac_try='test -s conftest.$ac_objext'
36700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36701   (eval $ac_try) 2>&5
36702   ac_status=$?
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); }; }; then
36705   ac_header_compiler=yes
36706 else
36707   echo "$as_me: failed program was:" >&5
36708 sed 's/^/| /' conftest.$ac_ext >&5
36709
36710 ac_header_compiler=no
36711 fi
36712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36713 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36714 echo "${ECHO_T}$ac_header_compiler" >&6
36715
36716 # Is the header present?
36717 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36719 cat >conftest.$ac_ext <<_ACEOF
36720 /* confdefs.h.  */
36721 _ACEOF
36722 cat confdefs.h >>conftest.$ac_ext
36723 cat >>conftest.$ac_ext <<_ACEOF
36724 /* end confdefs.h.  */
36725 #include <$ac_header>
36726 _ACEOF
36727 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36728   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36729   ac_status=$?
36730   grep -v '^ *+' conftest.er1 >conftest.err
36731   rm -f conftest.er1
36732   cat conftest.err >&5
36733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734   (exit $ac_status); } >/dev/null; then
36735   if test -s conftest.err; then
36736     ac_cpp_err=$ac_c_preproc_warn_flag
36737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36738   else
36739     ac_cpp_err=
36740   fi
36741 else
36742   ac_cpp_err=yes
36743 fi
36744 if test -z "$ac_cpp_err"; then
36745   ac_header_preproc=yes
36746 else
36747   echo "$as_me: failed program was:" >&5
36748 sed 's/^/| /' conftest.$ac_ext >&5
36749
36750   ac_header_preproc=no
36751 fi
36752 rm -f conftest.err conftest.$ac_ext
36753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36754 echo "${ECHO_T}$ac_header_preproc" >&6
36755
36756 # So?  What about this header?
36757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36758   yes:no: )
36759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36763     ac_header_preproc=yes
36764     ;;
36765   no:yes:* )
36766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36778     (
36779       cat <<\_ASBOX
36780 ## ------------------------------------------ ##
36781 ## Report this to the AC_PACKAGE_NAME lists.  ##
36782 ## ------------------------------------------ ##
36783 _ASBOX
36784     ) |
36785       sed "s/^/$as_me: WARNING:     /" >&2
36786     ;;
36787 esac
36788 echo "$as_me:$LINENO: checking for $ac_header" >&5
36789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36791   echo $ECHO_N "(cached) $ECHO_C" >&6
36792 else
36793   eval "$as_ac_Header=\$ac_header_preproc"
36794 fi
36795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36797
36798 fi
36799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36800   cat >>confdefs.h <<_ACEOF
36801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36802 _ACEOF
36803
36804 fi
36805
36806 done
36807
36808
36809         if test $ac_cv_header_sasl_sasl_h = yes ||
36810            test $ac_cv_header_sasl_h = yes; then
36811                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
36812 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
36813 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
36814   echo $ECHO_N "(cached) $ECHO_C" >&6
36815 else
36816   ac_check_lib_save_LIBS=$LIBS
36817 LIBS="-lsasl2  $LIBS"
36818 cat >conftest.$ac_ext <<_ACEOF
36819 /* confdefs.h.  */
36820 _ACEOF
36821 cat confdefs.h >>conftest.$ac_ext
36822 cat >>conftest.$ac_ext <<_ACEOF
36823 /* end confdefs.h.  */
36824
36825 /* Override any gcc2 internal prototype to avoid an error.  */
36826 #ifdef __cplusplus
36827 extern "C"
36828 #endif
36829 /* We use char because int might match the return type of a gcc2
36830    builtin and then its argument prototype would still apply.  */
36831 char sasl_client_init ();
36832 int
36833 main ()
36834 {
36835 sasl_client_init ();
36836   ;
36837   return 0;
36838 }
36839 _ACEOF
36840 rm -f conftest.$ac_objext conftest$ac_exeext
36841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36842   (eval $ac_link) 2>conftest.er1
36843   ac_status=$?
36844   grep -v '^ *+' conftest.er1 >conftest.err
36845   rm -f conftest.er1
36846   cat conftest.err >&5
36847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848   (exit $ac_status); } &&
36849          { ac_try='test -z "$ac_c_werror_flag"
36850                          || test ! -s conftest.err'
36851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36852   (eval $ac_try) 2>&5
36853   ac_status=$?
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); }; } &&
36856          { ac_try='test -s conftest$ac_exeext'
36857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36858   (eval $ac_try) 2>&5
36859   ac_status=$?
36860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861   (exit $ac_status); }; }; then
36862   ac_cv_lib_sasl2_sasl_client_init=yes
36863 else
36864   echo "$as_me: failed program was:" >&5
36865 sed 's/^/| /' conftest.$ac_ext >&5
36866
36867 ac_cv_lib_sasl2_sasl_client_init=no
36868 fi
36869 rm -f conftest.err conftest.$ac_objext \
36870       conftest$ac_exeext conftest.$ac_ext
36871 LIBS=$ac_check_lib_save_LIBS
36872 fi
36873 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
36874 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
36875 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
36876   ol_link_sasl="-lsasl2"
36877 else
36878   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
36879 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
36880 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
36881   echo $ECHO_N "(cached) $ECHO_C" >&6
36882 else
36883   ac_check_lib_save_LIBS=$LIBS
36884 LIBS="-lsasl  $LIBS"
36885 cat >conftest.$ac_ext <<_ACEOF
36886 /* confdefs.h.  */
36887 _ACEOF
36888 cat confdefs.h >>conftest.$ac_ext
36889 cat >>conftest.$ac_ext <<_ACEOF
36890 /* end confdefs.h.  */
36891
36892 /* Override any gcc2 internal prototype to avoid an error.  */
36893 #ifdef __cplusplus
36894 extern "C"
36895 #endif
36896 /* We use char because int might match the return type of a gcc2
36897    builtin and then its argument prototype would still apply.  */
36898 char sasl_client_init ();
36899 int
36900 main ()
36901 {
36902 sasl_client_init ();
36903   ;
36904   return 0;
36905 }
36906 _ACEOF
36907 rm -f conftest.$ac_objext conftest$ac_exeext
36908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36909   (eval $ac_link) 2>conftest.er1
36910   ac_status=$?
36911   grep -v '^ *+' conftest.er1 >conftest.err
36912   rm -f conftest.er1
36913   cat conftest.err >&5
36914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915   (exit $ac_status); } &&
36916          { ac_try='test -z "$ac_c_werror_flag"
36917                          || test ! -s conftest.err'
36918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36919   (eval $ac_try) 2>&5
36920   ac_status=$?
36921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922   (exit $ac_status); }; } &&
36923          { ac_try='test -s conftest$ac_exeext'
36924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36925   (eval $ac_try) 2>&5
36926   ac_status=$?
36927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36928   (exit $ac_status); }; }; then
36929   ac_cv_lib_sasl_sasl_client_init=yes
36930 else
36931   echo "$as_me: failed program was:" >&5
36932 sed 's/^/| /' conftest.$ac_ext >&5
36933
36934 ac_cv_lib_sasl_sasl_client_init=no
36935 fi
36936 rm -f conftest.err conftest.$ac_objext \
36937       conftest$ac_exeext conftest.$ac_ext
36938 LIBS=$ac_check_lib_save_LIBS
36939 fi
36940 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
36941 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
36942 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
36943   ol_link_sasl="-lsasl"
36944 fi
36945
36946 fi
36947
36948         fi
36949
36950         if test $ol_link_sasl = no ; then
36951                 if test $ol_with_cyrus_sasl != auto ; then
36952                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
36953 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
36954    { (exit 1); exit 1; }; }
36955                 else
36956                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
36957 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
36958                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
36959 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
36960                         if test $ol_link_tls = no ; then
36961                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
36962 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
36963                         fi
36964                 fi
36965         else
36966                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
36967 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
36968 if test "${ol_cv_sasl_compat+set}" = set; then
36969   echo $ECHO_N "(cached) $ECHO_C" >&6
36970 else
36971
36972         cat >conftest.$ac_ext <<_ACEOF
36973 /* confdefs.h.  */
36974 _ACEOF
36975 cat confdefs.h >>conftest.$ac_ext
36976 cat >>conftest.$ac_ext <<_ACEOF
36977 /* end confdefs.h.  */
36978
36979 #ifdef HAVE_SASL_SASL_H
36980 #include <sasl/sasl.h>
36981 #else
36982 #include <sasl.h>
36983 #endif
36984
36985 /* Require 2.1.15+ */
36986 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
36987         char *__sasl_compat = "2.2+ or better okay (we guess)";
36988 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
36989         && SASL_VERSION_STEP >=15
36990         char *__sasl_compat = "2.1.15+ or better okay";
36991 #endif
36992
36993 _ACEOF
36994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36995   $EGREP "__sasl_compat" >/dev/null 2>&1; then
36996   ol_cv_sasl_compat=yes
36997 else
36998   ol_cv_sasl_compat=no
36999 fi
37000 rm -f conftest*
37001
37002 fi
37003 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37004 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37005
37006                 if test $ol_cv_sasl_compat = no ; then
37007                         ol_link_sasl=no
37008                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37009 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37010    { (exit 1); exit 1; }; }
37011                 fi
37012
37013
37014 cat >>confdefs.h <<\_ACEOF
37015 #define HAVE_CYRUS_SASL 1
37016 _ACEOF
37017
37018                 SASL_LIBS="$ol_link_sasl"
37019                 if test $ol_enable_spasswd != no ; then
37020                         ol_link_spasswd=yes
37021                 fi
37022
37023                 ac_save_LIBS="$LIBS"
37024                 LIBS="$LIBS $ol_link_sasl"
37025                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37026 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37027 if test "${ac_cv_func_sasl_version+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37038 #define sasl_version innocuous_sasl_version
37039
37040 /* System header to define __stub macros and hopefully few prototypes,
37041     which can conflict with char sasl_version (); below.
37042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37043     <limits.h> exists even on freestanding compilers.  */
37044
37045 #ifdef __STDC__
37046 # include <limits.h>
37047 #else
37048 # include <assert.h>
37049 #endif
37050
37051 #undef sasl_version
37052
37053 /* Override any gcc2 internal prototype to avoid an error.  */
37054 #ifdef __cplusplus
37055 extern "C"
37056 {
37057 #endif
37058 /* We use char because int might match the return type of a gcc2
37059    builtin and then its argument prototype would still apply.  */
37060 char sasl_version ();
37061 /* The GNU C library defines this for functions which it implements
37062     to always fail with ENOSYS.  Some functions are actually named
37063     something starting with __ and the normal name is an alias.  */
37064 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37065 choke me
37066 #else
37067 char (*f) () = sasl_version;
37068 #endif
37069 #ifdef __cplusplus
37070 }
37071 #endif
37072
37073 int
37074 main ()
37075 {
37076 return f != sasl_version;
37077   ;
37078   return 0;
37079 }
37080 _ACEOF
37081 rm -f conftest.$ac_objext conftest$ac_exeext
37082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37083   (eval $ac_link) 2>conftest.er1
37084   ac_status=$?
37085   grep -v '^ *+' conftest.er1 >conftest.err
37086   rm -f conftest.er1
37087   cat conftest.err >&5
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); } &&
37090          { ac_try='test -z "$ac_c_werror_flag"
37091                          || test ! -s conftest.err'
37092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093   (eval $ac_try) 2>&5
37094   ac_status=$?
37095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096   (exit $ac_status); }; } &&
37097          { ac_try='test -s conftest$ac_exeext'
37098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099   (eval $ac_try) 2>&5
37100   ac_status=$?
37101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); }; }; then
37103   ac_cv_func_sasl_version=yes
37104 else
37105   echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37107
37108 ac_cv_func_sasl_version=no
37109 fi
37110 rm -f conftest.err conftest.$ac_objext \
37111       conftest$ac_exeext conftest.$ac_ext
37112 fi
37113 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37114 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37115 if test $ac_cv_func_sasl_version = yes; then
37116
37117 cat >>confdefs.h <<\_ACEOF
37118 #define HAVE_SASL_VERSION 1
37119 _ACEOF
37120
37121 fi
37122
37123                 LIBS="$ac_save_LIBS"
37124
37125                 WITH_SASL=yes
37126         fi
37127
37128 else
37129         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37130 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37131         if test $ol_link_tls = no ; then
37132                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37133 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37134         fi
37135 fi
37136
37137 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37138         dev=no
37139         if test -r /dev/urandom ; then
37140                 dev="/dev/urandom";
37141         elif test -r /idev/urandom ; then
37142                 dev="/idev/urandom";
37143         elif test -r /dev/srandom ; then
37144                 dev="/dev/srandom";
37145         elif test -r /dev/random ; then
37146                 dev="/dev/random";
37147         elif test -r /idev/random ; then
37148                 dev="/idev/random";
37149         fi
37150
37151         if test $dev != no ; then
37152
37153 cat >>confdefs.h <<_ACEOF
37154 #define URANDOM_DEVICE "$dev"
37155 _ACEOF
37156
37157         fi
37158 fi
37159
37160 ol_link_fetch=no
37161 if test $ol_with_fetch != no ; then
37162         ol_LIBS=$LIBS
37163 LIBS="-lfetch -lcom_err $LIBS"
37164 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37165 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37166 if test "${ol_cv_lib_fetch+set}" = set; then
37167   echo $ECHO_N "(cached) $ECHO_C" >&6
37168 else
37169
37170         cat >conftest.$ac_ext <<_ACEOF
37171 /* confdefs.h.  */
37172 _ACEOF
37173 cat confdefs.h >>conftest.$ac_ext
37174 cat >>conftest.$ac_ext <<_ACEOF
37175 /* end confdefs.h.  */
37176
37177 #include <sys/param.h>
37178 #include <stdio.h>
37179 #include <fetch.h>
37180 int
37181 main ()
37182 {
37183 struct url *u = fetchParseURL("file:///");
37184   ;
37185   return 0;
37186 }
37187 _ACEOF
37188 rm -f conftest.$ac_objext conftest$ac_exeext
37189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37190   (eval $ac_link) 2>conftest.er1
37191   ac_status=$?
37192   grep -v '^ *+' conftest.er1 >conftest.err
37193   rm -f conftest.er1
37194   cat conftest.err >&5
37195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196   (exit $ac_status); } &&
37197          { ac_try='test -z "$ac_c_werror_flag"
37198                          || test ! -s conftest.err'
37199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37200   (eval $ac_try) 2>&5
37201   ac_status=$?
37202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203   (exit $ac_status); }; } &&
37204          { ac_try='test -s conftest$ac_exeext'
37205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37206   (eval $ac_try) 2>&5
37207   ac_status=$?
37208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37209   (exit $ac_status); }; }; then
37210   ol_cv_lib_fetch=yes
37211 else
37212   echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215 ol_cv_lib_fetch=no
37216 fi
37217 rm -f conftest.err conftest.$ac_objext \
37218       conftest$ac_exeext conftest.$ac_ext
37219 fi
37220 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37221 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37222 LIBS=$ol_LIBS
37223 if test $ol_cv_lib_fetch != no ; then
37224         ol_link_fetch="-lfetch -lcom_err"
37225
37226 cat >>confdefs.h <<\_ACEOF
37227 #define HAVE_FETCH 1
37228 _ACEOF
37229
37230 fi
37231
37232
37233         if test $ol_cv_lib_fetch != no ; then
37234                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37235                 ol_link_fetch=freebsd
37236
37237         elif test $ol_with_fetch != auto ; then
37238                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37239 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37240    { (exit 1); exit 1; }; }
37241         fi
37242 fi
37243
37244 if test $ol_enable_crypt != no ; then
37245         save_LIBS="$LIBS"
37246         LIBS="$TLS_LIBS $LIBS"
37247
37248         echo "$as_me:$LINENO: checking for crypt" >&5
37249 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37250 if test "${ac_cv_func_crypt+set}" = set; then
37251   echo $ECHO_N "(cached) $ECHO_C" >&6
37252 else
37253   cat >conftest.$ac_ext <<_ACEOF
37254 /* confdefs.h.  */
37255 _ACEOF
37256 cat confdefs.h >>conftest.$ac_ext
37257 cat >>conftest.$ac_ext <<_ACEOF
37258 /* end confdefs.h.  */
37259 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37261 #define crypt innocuous_crypt
37262
37263 /* System header to define __stub macros and hopefully few prototypes,
37264     which can conflict with char crypt (); below.
37265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37266     <limits.h> exists even on freestanding compilers.  */
37267
37268 #ifdef __STDC__
37269 # include <limits.h>
37270 #else
37271 # include <assert.h>
37272 #endif
37273
37274 #undef crypt
37275
37276 /* Override any gcc2 internal prototype to avoid an error.  */
37277 #ifdef __cplusplus
37278 extern "C"
37279 {
37280 #endif
37281 /* We use char because int might match the return type of a gcc2
37282    builtin and then its argument prototype would still apply.  */
37283 char crypt ();
37284 /* The GNU C library defines this for functions which it implements
37285     to always fail with ENOSYS.  Some functions are actually named
37286     something starting with __ and the normal name is an alias.  */
37287 #if defined (__stub_crypt) || defined (__stub___crypt)
37288 choke me
37289 #else
37290 char (*f) () = crypt;
37291 #endif
37292 #ifdef __cplusplus
37293 }
37294 #endif
37295
37296 int
37297 main ()
37298 {
37299 return f != crypt;
37300   ;
37301   return 0;
37302 }
37303 _ACEOF
37304 rm -f conftest.$ac_objext conftest$ac_exeext
37305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37306   (eval $ac_link) 2>conftest.er1
37307   ac_status=$?
37308   grep -v '^ *+' conftest.er1 >conftest.err
37309   rm -f conftest.er1
37310   cat conftest.err >&5
37311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37312   (exit $ac_status); } &&
37313          { ac_try='test -z "$ac_c_werror_flag"
37314                          || test ! -s conftest.err'
37315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37316   (eval $ac_try) 2>&5
37317   ac_status=$?
37318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37319   (exit $ac_status); }; } &&
37320          { ac_try='test -s conftest$ac_exeext'
37321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37322   (eval $ac_try) 2>&5
37323   ac_status=$?
37324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325   (exit $ac_status); }; }; then
37326   ac_cv_func_crypt=yes
37327 else
37328   echo "$as_me: failed program was:" >&5
37329 sed 's/^/| /' conftest.$ac_ext >&5
37330
37331 ac_cv_func_crypt=no
37332 fi
37333 rm -f conftest.err conftest.$ac_objext \
37334       conftest$ac_exeext conftest.$ac_ext
37335 fi
37336 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37337 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37338 if test $ac_cv_func_crypt = yes; then
37339   have_crypt=yes
37340 else
37341
37342                 LIBS="$save_LIBS"
37343                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37344 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37345 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37346   echo $ECHO_N "(cached) $ECHO_C" >&6
37347 else
37348   ac_check_lib_save_LIBS=$LIBS
37349 LIBS="-lcrypt  $LIBS"
37350 cat >conftest.$ac_ext <<_ACEOF
37351 /* confdefs.h.  */
37352 _ACEOF
37353 cat confdefs.h >>conftest.$ac_ext
37354 cat >>conftest.$ac_ext <<_ACEOF
37355 /* end confdefs.h.  */
37356
37357 /* Override any gcc2 internal prototype to avoid an error.  */
37358 #ifdef __cplusplus
37359 extern "C"
37360 #endif
37361 /* We use char because int might match the return type of a gcc2
37362    builtin and then its argument prototype would still apply.  */
37363 char crypt ();
37364 int
37365 main ()
37366 {
37367 crypt ();
37368   ;
37369   return 0;
37370 }
37371 _ACEOF
37372 rm -f conftest.$ac_objext conftest$ac_exeext
37373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37374   (eval $ac_link) 2>conftest.er1
37375   ac_status=$?
37376   grep -v '^ *+' conftest.er1 >conftest.err
37377   rm -f conftest.er1
37378   cat conftest.err >&5
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); } &&
37381          { ac_try='test -z "$ac_c_werror_flag"
37382                          || test ! -s conftest.err'
37383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37384   (eval $ac_try) 2>&5
37385   ac_status=$?
37386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387   (exit $ac_status); }; } &&
37388          { ac_try='test -s conftest$ac_exeext'
37389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37390   (eval $ac_try) 2>&5
37391   ac_status=$?
37392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37393   (exit $ac_status); }; }; then
37394   ac_cv_lib_crypt_crypt=yes
37395 else
37396   echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399 ac_cv_lib_crypt_crypt=no
37400 fi
37401 rm -f conftest.err conftest.$ac_objext \
37402       conftest$ac_exeext conftest.$ac_ext
37403 LIBS=$ac_check_lib_save_LIBS
37404 fi
37405 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37406 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37407 if test $ac_cv_lib_crypt_crypt = yes; then
37408   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37409                         have_crypt=yes
37410 else
37411   have_crypt=no
37412 fi
37413
37414 fi
37415
37416
37417         LIBS="$save_LIBS"
37418
37419         if test $have_crypt = yes ; then
37420
37421 cat >>confdefs.h <<\_ACEOF
37422 #define HAVE_CRYPT 1
37423 _ACEOF
37424
37425         else
37426                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37427 echo "$as_me: WARNING: could not find crypt" >&2;}
37428                 if test $ol_enable_crypt = yes ; then
37429                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37430 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37431    { (exit 1); exit 1; }; }
37432                 fi
37433
37434                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37435 echo "$as_me: WARNING: disabling crypt support" >&2;}
37436                 ol_enable_crypt=no
37437         fi
37438 fi
37439
37440 if test $ol_enable_proctitle != no ; then
37441         echo "$as_me:$LINENO: checking for setproctitle" >&5
37442 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37443 if test "${ac_cv_func_setproctitle+set}" = set; then
37444   echo $ECHO_N "(cached) $ECHO_C" >&6
37445 else
37446   cat >conftest.$ac_ext <<_ACEOF
37447 /* confdefs.h.  */
37448 _ACEOF
37449 cat confdefs.h >>conftest.$ac_ext
37450 cat >>conftest.$ac_ext <<_ACEOF
37451 /* end confdefs.h.  */
37452 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37454 #define setproctitle innocuous_setproctitle
37455
37456 /* System header to define __stub macros and hopefully few prototypes,
37457     which can conflict with char setproctitle (); below.
37458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37459     <limits.h> exists even on freestanding compilers.  */
37460
37461 #ifdef __STDC__
37462 # include <limits.h>
37463 #else
37464 # include <assert.h>
37465 #endif
37466
37467 #undef setproctitle
37468
37469 /* Override any gcc2 internal prototype to avoid an error.  */
37470 #ifdef __cplusplus
37471 extern "C"
37472 {
37473 #endif
37474 /* We use char because int might match the return type of a gcc2
37475    builtin and then its argument prototype would still apply.  */
37476 char setproctitle ();
37477 /* The GNU C library defines this for functions which it implements
37478     to always fail with ENOSYS.  Some functions are actually named
37479     something starting with __ and the normal name is an alias.  */
37480 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37481 choke me
37482 #else
37483 char (*f) () = setproctitle;
37484 #endif
37485 #ifdef __cplusplus
37486 }
37487 #endif
37488
37489 int
37490 main ()
37491 {
37492 return f != setproctitle;
37493   ;
37494   return 0;
37495 }
37496 _ACEOF
37497 rm -f conftest.$ac_objext conftest$ac_exeext
37498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37499   (eval $ac_link) 2>conftest.er1
37500   ac_status=$?
37501   grep -v '^ *+' conftest.er1 >conftest.err
37502   rm -f conftest.er1
37503   cat conftest.err >&5
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); } &&
37506          { ac_try='test -z "$ac_c_werror_flag"
37507                          || test ! -s conftest.err'
37508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37509   (eval $ac_try) 2>&5
37510   ac_status=$?
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); }; } &&
37513          { ac_try='test -s conftest$ac_exeext'
37514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37515   (eval $ac_try) 2>&5
37516   ac_status=$?
37517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518   (exit $ac_status); }; }; then
37519   ac_cv_func_setproctitle=yes
37520 else
37521   echo "$as_me: failed program was:" >&5
37522 sed 's/^/| /' conftest.$ac_ext >&5
37523
37524 ac_cv_func_setproctitle=no
37525 fi
37526 rm -f conftest.err conftest.$ac_objext \
37527       conftest$ac_exeext conftest.$ac_ext
37528 fi
37529 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37530 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37531 if test $ac_cv_func_setproctitle = yes; then
37532   have_setproctitle=yes
37533 else
37534
37535                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37536 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37537 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37538   echo $ECHO_N "(cached) $ECHO_C" >&6
37539 else
37540   ac_check_lib_save_LIBS=$LIBS
37541 LIBS="-lutil  $LIBS"
37542 cat >conftest.$ac_ext <<_ACEOF
37543 /* confdefs.h.  */
37544 _ACEOF
37545 cat confdefs.h >>conftest.$ac_ext
37546 cat >>conftest.$ac_ext <<_ACEOF
37547 /* end confdefs.h.  */
37548
37549 /* Override any gcc2 internal prototype to avoid an error.  */
37550 #ifdef __cplusplus
37551 extern "C"
37552 #endif
37553 /* We use char because int might match the return type of a gcc2
37554    builtin and then its argument prototype would still apply.  */
37555 char setproctitle ();
37556 int
37557 main ()
37558 {
37559 setproctitle ();
37560   ;
37561   return 0;
37562 }
37563 _ACEOF
37564 rm -f conftest.$ac_objext conftest$ac_exeext
37565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37566   (eval $ac_link) 2>conftest.er1
37567   ac_status=$?
37568   grep -v '^ *+' conftest.er1 >conftest.err
37569   rm -f conftest.er1
37570   cat conftest.err >&5
37571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572   (exit $ac_status); } &&
37573          { ac_try='test -z "$ac_c_werror_flag"
37574                          || test ! -s conftest.err'
37575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37576   (eval $ac_try) 2>&5
37577   ac_status=$?
37578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579   (exit $ac_status); }; } &&
37580          { ac_try='test -s conftest$ac_exeext'
37581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582   (eval $ac_try) 2>&5
37583   ac_status=$?
37584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585   (exit $ac_status); }; }; then
37586   ac_cv_lib_util_setproctitle=yes
37587 else
37588   echo "$as_me: failed program was:" >&5
37589 sed 's/^/| /' conftest.$ac_ext >&5
37590
37591 ac_cv_lib_util_setproctitle=no
37592 fi
37593 rm -f conftest.err conftest.$ac_objext \
37594       conftest$ac_exeext conftest.$ac_ext
37595 LIBS=$ac_check_lib_save_LIBS
37596 fi
37597 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37598 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37599 if test $ac_cv_lib_util_setproctitle = yes; then
37600   have_setproctitle=yes
37601                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37602 else
37603   have_setproctitle=no
37604                         case $LIBOBJS in
37605     "setproctitle.$ac_objext"   | \
37606   *" setproctitle.$ac_objext"   | \
37607     "setproctitle.$ac_objext "* | \
37608   *" setproctitle.$ac_objext "* ) ;;
37609   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37610 esac
37611
37612                         LIBSRCS="$LIBSRCS setproctitle.c"
37613 fi
37614
37615 fi
37616
37617
37618         if test $have_setproctitle = yes ; then
37619
37620 cat >>confdefs.h <<\_ACEOF
37621 #define HAVE_SETPROCTITLE 1
37622 _ACEOF
37623
37624         fi
37625 fi
37626
37627 if test $ol_enable_slp != no ; then
37628
37629 for ac_header in slp.h
37630 do
37631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37633   echo "$as_me:$LINENO: checking for $ac_header" >&5
37634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37636   echo $ECHO_N "(cached) $ECHO_C" >&6
37637 fi
37638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37640 else
37641   # Is the header compilable?
37642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37644 cat >conftest.$ac_ext <<_ACEOF
37645 /* confdefs.h.  */
37646 _ACEOF
37647 cat confdefs.h >>conftest.$ac_ext
37648 cat >>conftest.$ac_ext <<_ACEOF
37649 /* end confdefs.h.  */
37650 $ac_includes_default
37651 #include <$ac_header>
37652 _ACEOF
37653 rm -f conftest.$ac_objext
37654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37655   (eval $ac_compile) 2>conftest.er1
37656   ac_status=$?
37657   grep -v '^ *+' conftest.er1 >conftest.err
37658   rm -f conftest.er1
37659   cat conftest.err >&5
37660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37661   (exit $ac_status); } &&
37662          { ac_try='test -z "$ac_c_werror_flag"
37663                          || test ! -s conftest.err'
37664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37665   (eval $ac_try) 2>&5
37666   ac_status=$?
37667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37668   (exit $ac_status); }; } &&
37669          { ac_try='test -s conftest.$ac_objext'
37670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37671   (eval $ac_try) 2>&5
37672   ac_status=$?
37673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37674   (exit $ac_status); }; }; then
37675   ac_header_compiler=yes
37676 else
37677   echo "$as_me: failed program was:" >&5
37678 sed 's/^/| /' conftest.$ac_ext >&5
37679
37680 ac_header_compiler=no
37681 fi
37682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37684 echo "${ECHO_T}$ac_header_compiler" >&6
37685
37686 # Is the header present?
37687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37689 cat >conftest.$ac_ext <<_ACEOF
37690 /* confdefs.h.  */
37691 _ACEOF
37692 cat confdefs.h >>conftest.$ac_ext
37693 cat >>conftest.$ac_ext <<_ACEOF
37694 /* end confdefs.h.  */
37695 #include <$ac_header>
37696 _ACEOF
37697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37699   ac_status=$?
37700   grep -v '^ *+' conftest.er1 >conftest.err
37701   rm -f conftest.er1
37702   cat conftest.err >&5
37703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37704   (exit $ac_status); } >/dev/null; then
37705   if test -s conftest.err; then
37706     ac_cpp_err=$ac_c_preproc_warn_flag
37707     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37708   else
37709     ac_cpp_err=
37710   fi
37711 else
37712   ac_cpp_err=yes
37713 fi
37714 if test -z "$ac_cpp_err"; then
37715   ac_header_preproc=yes
37716 else
37717   echo "$as_me: failed program was:" >&5
37718 sed 's/^/| /' conftest.$ac_ext >&5
37719
37720   ac_header_preproc=no
37721 fi
37722 rm -f conftest.err conftest.$ac_ext
37723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37724 echo "${ECHO_T}$ac_header_preproc" >&6
37725
37726 # So?  What about this header?
37727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37728   yes:no: )
37729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37733     ac_header_preproc=yes
37734     ;;
37735   no:yes:* )
37736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37748     (
37749       cat <<\_ASBOX
37750 ## ------------------------------------------ ##
37751 ## Report this to the AC_PACKAGE_NAME lists.  ##
37752 ## ------------------------------------------ ##
37753 _ASBOX
37754     ) |
37755       sed "s/^/$as_me: WARNING:     /" >&2
37756     ;;
37757 esac
37758 echo "$as_me:$LINENO: checking for $ac_header" >&5
37759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37761   echo $ECHO_N "(cached) $ECHO_C" >&6
37762 else
37763   eval "$as_ac_Header=\$ac_header_preproc"
37764 fi
37765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37767
37768 fi
37769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37770   cat >>confdefs.h <<_ACEOF
37771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37772 _ACEOF
37773
37774 fi
37775
37776 done
37777
37778
37779         if test $ac_cv_header_slp_h = yes ; then
37780                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
37781 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
37782 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
37783   echo $ECHO_N "(cached) $ECHO_C" >&6
37784 else
37785   ac_check_lib_save_LIBS=$LIBS
37786 LIBS="-lslp  $LIBS"
37787 cat >conftest.$ac_ext <<_ACEOF
37788 /* confdefs.h.  */
37789 _ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h.  */
37793
37794 /* Override any gcc2 internal prototype to avoid an error.  */
37795 #ifdef __cplusplus
37796 extern "C"
37797 #endif
37798 /* We use char because int might match the return type of a gcc2
37799    builtin and then its argument prototype would still apply.  */
37800 char SLPOpen ();
37801 int
37802 main ()
37803 {
37804 SLPOpen ();
37805   ;
37806   return 0;
37807 }
37808 _ACEOF
37809 rm -f conftest.$ac_objext conftest$ac_exeext
37810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37811   (eval $ac_link) 2>conftest.er1
37812   ac_status=$?
37813   grep -v '^ *+' conftest.er1 >conftest.err
37814   rm -f conftest.er1
37815   cat conftest.err >&5
37816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37817   (exit $ac_status); } &&
37818          { ac_try='test -z "$ac_c_werror_flag"
37819                          || test ! -s conftest.err'
37820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821   (eval $ac_try) 2>&5
37822   ac_status=$?
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); }; } &&
37825          { ac_try='test -s conftest$ac_exeext'
37826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37827   (eval $ac_try) 2>&5
37828   ac_status=$?
37829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830   (exit $ac_status); }; }; then
37831   ac_cv_lib_slp_SLPOpen=yes
37832 else
37833   echo "$as_me: failed program was:" >&5
37834 sed 's/^/| /' conftest.$ac_ext >&5
37835
37836 ac_cv_lib_slp_SLPOpen=no
37837 fi
37838 rm -f conftest.err conftest.$ac_objext \
37839       conftest$ac_exeext conftest.$ac_ext
37840 LIBS=$ac_check_lib_save_LIBS
37841 fi
37842 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
37843 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
37844 if test $ac_cv_lib_slp_SLPOpen = yes; then
37845   have_slp=yes
37846 else
37847   have_slp=no
37848 fi
37849
37850                 if test $have_slp = yes ; then
37851
37852 cat >>confdefs.h <<\_ACEOF
37853 #define HAVE_SLP 1
37854 _ACEOF
37855
37856                         SLAPD_SLP_LIBS=-lslp
37857                 fi
37858
37859         elif test $ol_enable_slp = yes ; then
37860                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
37861 echo "$as_me: error: SLP not found" >&2;}
37862    { (exit 1); exit 1; }; }
37863         fi
37864 fi
37865
37866 if test "$ol_with_multiple_precision" != "no" ; then
37867         ol_have_bignum=no
37868         ol_have_gmp=no
37869
37870
37871
37872 for ac_header in openssl/bn.h bn.h
37873 do
37874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37876   echo "$as_me:$LINENO: checking for $ac_header" >&5
37877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37879   echo $ECHO_N "(cached) $ECHO_C" >&6
37880 fi
37881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37883 else
37884   # Is the header compilable?
37885 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37887 cat >conftest.$ac_ext <<_ACEOF
37888 /* confdefs.h.  */
37889 _ACEOF
37890 cat confdefs.h >>conftest.$ac_ext
37891 cat >>conftest.$ac_ext <<_ACEOF
37892 /* end confdefs.h.  */
37893 $ac_includes_default
37894 #include <$ac_header>
37895 _ACEOF
37896 rm -f conftest.$ac_objext
37897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37898   (eval $ac_compile) 2>conftest.er1
37899   ac_status=$?
37900   grep -v '^ *+' conftest.er1 >conftest.err
37901   rm -f conftest.er1
37902   cat conftest.err >&5
37903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904   (exit $ac_status); } &&
37905          { ac_try='test -z "$ac_c_werror_flag"
37906                          || test ! -s conftest.err'
37907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908   (eval $ac_try) 2>&5
37909   ac_status=$?
37910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911   (exit $ac_status); }; } &&
37912          { ac_try='test -s conftest.$ac_objext'
37913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914   (eval $ac_try) 2>&5
37915   ac_status=$?
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); }; }; then
37918   ac_header_compiler=yes
37919 else
37920   echo "$as_me: failed program was:" >&5
37921 sed 's/^/| /' conftest.$ac_ext >&5
37922
37923 ac_header_compiler=no
37924 fi
37925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37927 echo "${ECHO_T}$ac_header_compiler" >&6
37928
37929 # Is the header present?
37930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37932 cat >conftest.$ac_ext <<_ACEOF
37933 /* confdefs.h.  */
37934 _ACEOF
37935 cat confdefs.h >>conftest.$ac_ext
37936 cat >>conftest.$ac_ext <<_ACEOF
37937 /* end confdefs.h.  */
37938 #include <$ac_header>
37939 _ACEOF
37940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37942   ac_status=$?
37943   grep -v '^ *+' conftest.er1 >conftest.err
37944   rm -f conftest.er1
37945   cat conftest.err >&5
37946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947   (exit $ac_status); } >/dev/null; then
37948   if test -s conftest.err; then
37949     ac_cpp_err=$ac_c_preproc_warn_flag
37950     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37951   else
37952     ac_cpp_err=
37953   fi
37954 else
37955   ac_cpp_err=yes
37956 fi
37957 if test -z "$ac_cpp_err"; then
37958   ac_header_preproc=yes
37959 else
37960   echo "$as_me: failed program was:" >&5
37961 sed 's/^/| /' conftest.$ac_ext >&5
37962
37963   ac_header_preproc=no
37964 fi
37965 rm -f conftest.err conftest.$ac_ext
37966 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37967 echo "${ECHO_T}$ac_header_preproc" >&6
37968
37969 # So?  What about this header?
37970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37971   yes:no: )
37972     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37976     ac_header_preproc=yes
37977     ;;
37978   no:yes:* )
37979     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37981     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37982 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37983     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37985     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37986 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37989     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37991     (
37992       cat <<\_ASBOX
37993 ## ------------------------------------------ ##
37994 ## Report this to the AC_PACKAGE_NAME lists.  ##
37995 ## ------------------------------------------ ##
37996 _ASBOX
37997     ) |
37998       sed "s/^/$as_me: WARNING:     /" >&2
37999     ;;
38000 esac
38001 echo "$as_me:$LINENO: checking for $ac_header" >&5
38002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38004   echo $ECHO_N "(cached) $ECHO_C" >&6
38005 else
38006   eval "$as_ac_Header=\$ac_header_preproc"
38007 fi
38008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38010
38011 fi
38012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38013   cat >>confdefs.h <<_ACEOF
38014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38015 _ACEOF
38016
38017 fi
38018
38019 done
38020
38021
38022
38023 for ac_header in openssl/crypto.h crypto.h
38024 do
38025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38027   echo "$as_me:$LINENO: checking for $ac_header" >&5
38028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38030   echo $ECHO_N "(cached) $ECHO_C" >&6
38031 fi
38032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38034 else
38035   # Is the header compilable?
38036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38038 cat >conftest.$ac_ext <<_ACEOF
38039 /* confdefs.h.  */
38040 _ACEOF
38041 cat confdefs.h >>conftest.$ac_ext
38042 cat >>conftest.$ac_ext <<_ACEOF
38043 /* end confdefs.h.  */
38044 $ac_includes_default
38045 #include <$ac_header>
38046 _ACEOF
38047 rm -f conftest.$ac_objext
38048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38049   (eval $ac_compile) 2>conftest.er1
38050   ac_status=$?
38051   grep -v '^ *+' conftest.er1 >conftest.err
38052   rm -f conftest.er1
38053   cat conftest.err >&5
38054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055   (exit $ac_status); } &&
38056          { ac_try='test -z "$ac_c_werror_flag"
38057                          || test ! -s conftest.err'
38058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38059   (eval $ac_try) 2>&5
38060   ac_status=$?
38061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062   (exit $ac_status); }; } &&
38063          { ac_try='test -s conftest.$ac_objext'
38064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38065   (eval $ac_try) 2>&5
38066   ac_status=$?
38067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068   (exit $ac_status); }; }; then
38069   ac_header_compiler=yes
38070 else
38071   echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38073
38074 ac_header_compiler=no
38075 fi
38076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38077 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38078 echo "${ECHO_T}$ac_header_compiler" >&6
38079
38080 # Is the header present?
38081 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38083 cat >conftest.$ac_ext <<_ACEOF
38084 /* confdefs.h.  */
38085 _ACEOF
38086 cat confdefs.h >>conftest.$ac_ext
38087 cat >>conftest.$ac_ext <<_ACEOF
38088 /* end confdefs.h.  */
38089 #include <$ac_header>
38090 _ACEOF
38091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38093   ac_status=$?
38094   grep -v '^ *+' conftest.er1 >conftest.err
38095   rm -f conftest.er1
38096   cat conftest.err >&5
38097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098   (exit $ac_status); } >/dev/null; then
38099   if test -s conftest.err; then
38100     ac_cpp_err=$ac_c_preproc_warn_flag
38101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38102   else
38103     ac_cpp_err=
38104   fi
38105 else
38106   ac_cpp_err=yes
38107 fi
38108 if test -z "$ac_cpp_err"; then
38109   ac_header_preproc=yes
38110 else
38111   echo "$as_me: failed program was:" >&5
38112 sed 's/^/| /' conftest.$ac_ext >&5
38113
38114   ac_header_preproc=no
38115 fi
38116 rm -f conftest.err conftest.$ac_ext
38117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38118 echo "${ECHO_T}$ac_header_preproc" >&6
38119
38120 # So?  What about this header?
38121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38122   yes:no: )
38123     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38127     ac_header_preproc=yes
38128     ;;
38129   no:yes:* )
38130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38132     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38133 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38134     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38136     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38137 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38140     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38142     (
38143       cat <<\_ASBOX
38144 ## ------------------------------------------ ##
38145 ## Report this to the AC_PACKAGE_NAME lists.  ##
38146 ## ------------------------------------------ ##
38147 _ASBOX
38148     ) |
38149       sed "s/^/$as_me: WARNING:     /" >&2
38150     ;;
38151 esac
38152 echo "$as_me:$LINENO: checking for $ac_header" >&5
38153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38155   echo $ECHO_N "(cached) $ECHO_C" >&6
38156 else
38157   eval "$as_ac_Header=\$ac_header_preproc"
38158 fi
38159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38160 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38161
38162 fi
38163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38164   cat >>confdefs.h <<_ACEOF
38165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38166 _ACEOF
38167
38168 fi
38169
38170 done
38171
38172
38173 for ac_header in gmp.h
38174 do
38175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38177   echo "$as_me:$LINENO: checking for $ac_header" >&5
38178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38180   echo $ECHO_N "(cached) $ECHO_C" >&6
38181 fi
38182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38184 else
38185   # Is the header compilable?
38186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38188 cat >conftest.$ac_ext <<_ACEOF
38189 /* confdefs.h.  */
38190 _ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h.  */
38194 $ac_includes_default
38195 #include <$ac_header>
38196 _ACEOF
38197 rm -f conftest.$ac_objext
38198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38199   (eval $ac_compile) 2>conftest.er1
38200   ac_status=$?
38201   grep -v '^ *+' conftest.er1 >conftest.err
38202   rm -f conftest.er1
38203   cat conftest.err >&5
38204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205   (exit $ac_status); } &&
38206          { ac_try='test -z "$ac_c_werror_flag"
38207                          || test ! -s conftest.err'
38208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209   (eval $ac_try) 2>&5
38210   ac_status=$?
38211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212   (exit $ac_status); }; } &&
38213          { ac_try='test -s conftest.$ac_objext'
38214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38215   (eval $ac_try) 2>&5
38216   ac_status=$?
38217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38218   (exit $ac_status); }; }; then
38219   ac_header_compiler=yes
38220 else
38221   echo "$as_me: failed program was:" >&5
38222 sed 's/^/| /' conftest.$ac_ext >&5
38223
38224 ac_header_compiler=no
38225 fi
38226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38228 echo "${ECHO_T}$ac_header_compiler" >&6
38229
38230 # Is the header present?
38231 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38233 cat >conftest.$ac_ext <<_ACEOF
38234 /* confdefs.h.  */
38235 _ACEOF
38236 cat confdefs.h >>conftest.$ac_ext
38237 cat >>conftest.$ac_ext <<_ACEOF
38238 /* end confdefs.h.  */
38239 #include <$ac_header>
38240 _ACEOF
38241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38243   ac_status=$?
38244   grep -v '^ *+' conftest.er1 >conftest.err
38245   rm -f conftest.er1
38246   cat conftest.err >&5
38247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248   (exit $ac_status); } >/dev/null; then
38249   if test -s conftest.err; then
38250     ac_cpp_err=$ac_c_preproc_warn_flag
38251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38252   else
38253     ac_cpp_err=
38254   fi
38255 else
38256   ac_cpp_err=yes
38257 fi
38258 if test -z "$ac_cpp_err"; then
38259   ac_header_preproc=yes
38260 else
38261   echo "$as_me: failed program was:" >&5
38262 sed 's/^/| /' conftest.$ac_ext >&5
38263
38264   ac_header_preproc=no
38265 fi
38266 rm -f conftest.err conftest.$ac_ext
38267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38268 echo "${ECHO_T}$ac_header_preproc" >&6
38269
38270 # So?  What about this header?
38271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38272   yes:no: )
38273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38277     ac_header_preproc=yes
38278     ;;
38279   no:yes:* )
38280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38292     (
38293       cat <<\_ASBOX
38294 ## ------------------------------------------ ##
38295 ## Report this to the AC_PACKAGE_NAME lists.  ##
38296 ## ------------------------------------------ ##
38297 _ASBOX
38298     ) |
38299       sed "s/^/$as_me: WARNING:     /" >&2
38300     ;;
38301 esac
38302 echo "$as_me:$LINENO: checking for $ac_header" >&5
38303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38305   echo $ECHO_N "(cached) $ECHO_C" >&6
38306 else
38307   eval "$as_ac_Header=\$ac_header_preproc"
38308 fi
38309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38311
38312 fi
38313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38314   cat >>confdefs.h <<_ACEOF
38315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38316 _ACEOF
38317
38318 fi
38319
38320 done
38321
38322
38323         if test "$ol_with_tls" = "found" ; then
38324                 ol_have_bn_h=no
38325                 ol_have_crypto_h=no
38326
38327                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38328                    test "$ac_cv_header_bn_h" = "yes" ; then
38329                         ol_have_bn_h=yes
38330                 fi
38331
38332                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38333                    test "$ac_cv_header_crypto_h" = "yes" ; then
38334                         ol_have_crypto_h=yes
38335                 fi
38336
38337                 if test "$ol_have_bn_h" = "yes" &&
38338                    test "$ol_have_crypto_h" = "yes" ; then
38339                         ol_have_bignum=yes
38340                 fi
38341         fi
38342
38343         if test $ac_cv_header_gmp_h = yes ; then
38344                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38345 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38346 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38347   echo $ECHO_N "(cached) $ECHO_C" >&6
38348 else
38349   ac_check_lib_save_LIBS=$LIBS
38350 LIBS="-lgmp  $LIBS"
38351 cat >conftest.$ac_ext <<_ACEOF
38352 /* confdefs.h.  */
38353 _ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h.  */
38357
38358 /* Override any gcc2 internal prototype to avoid an error.  */
38359 #ifdef __cplusplus
38360 extern "C"
38361 #endif
38362 /* We use char because int might match the return type of a gcc2
38363    builtin and then its argument prototype would still apply.  */
38364 char __gmpz_add_ui ();
38365 int
38366 main ()
38367 {
38368 __gmpz_add_ui ();
38369   ;
38370   return 0;
38371 }
38372 _ACEOF
38373 rm -f conftest.$ac_objext conftest$ac_exeext
38374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38375   (eval $ac_link) 2>conftest.er1
38376   ac_status=$?
38377   grep -v '^ *+' conftest.er1 >conftest.err
38378   rm -f conftest.er1
38379   cat conftest.err >&5
38380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38381   (exit $ac_status); } &&
38382          { ac_try='test -z "$ac_c_werror_flag"
38383                          || test ! -s conftest.err'
38384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38385   (eval $ac_try) 2>&5
38386   ac_status=$?
38387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38388   (exit $ac_status); }; } &&
38389          { ac_try='test -s conftest$ac_exeext'
38390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38391   (eval $ac_try) 2>&5
38392   ac_status=$?
38393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394   (exit $ac_status); }; }; then
38395   ac_cv_lib_gmp___gmpz_add_ui=yes
38396 else
38397   echo "$as_me: failed program was:" >&5
38398 sed 's/^/| /' conftest.$ac_ext >&5
38399
38400 ac_cv_lib_gmp___gmpz_add_ui=no
38401 fi
38402 rm -f conftest.err conftest.$ac_objext \
38403       conftest$ac_exeext conftest.$ac_ext
38404 LIBS=$ac_check_lib_save_LIBS
38405 fi
38406 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38407 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38408 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38409   have_gmp=yes
38410 else
38411   have_gmp=no
38412 fi
38413
38414                 if test $have_gmp = yes ; then
38415                         ol_have_gmp=yes
38416                 fi
38417         fi
38418
38419         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38420 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38421
38422         ol_mp_support="none"
38423         case "$ol_with_multiple_precision" in
38424         auto)
38425                                                                                 if test "$ol_have_bignum" = "yes" ; then
38426                         ol_mp_support="bignum"
38427                 else
38428                         if test "$ol_have_gmp" = "yes" ; then
38429                                 ol_mp_support="gmp"
38430                         fi
38431                 fi
38432                 ;;
38433         bignum)
38434                 if test "$ol_have_bignum" != "yes" ; then
38435                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38436 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38437    { (exit 1); exit 1; }; }
38438                 fi
38439                 ol_mp_support="bignum"
38440                 ;;
38441         gmp)
38442                 if test "$ol_have_gmp" != "yes" ; then
38443                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38444 echo "$as_me: error: GMP not available" >&2;}
38445    { (exit 1); exit 1; }; }
38446                 fi
38447                 ol_mp_support="gmp"
38448                 ;;
38449         yes)
38450                 if test "$ol_have_bignum" = "yes" ; then
38451                         ol_mp_support="bignum"
38452                 elif test "$ol_have_gmp" = "yes" ; then
38453                         ol_mp_support="gmp"
38454                 else
38455                         { { echo "$as_me:$LINENO: error: not available" >&5
38456 echo "$as_me: error: not available" >&2;}
38457    { (exit 1); exit 1; }; }
38458                 fi
38459                 ;;
38460         esac
38461
38462         case "$ol_mp_support" in
38463         bignum)
38464
38465 cat >>confdefs.h <<\_ACEOF
38466 #define HAVE_BIGNUM 1
38467 _ACEOF
38468
38469                 ;;
38470         gmp)
38471
38472 cat >>confdefs.h <<\_ACEOF
38473 #define HAVE_GMP 1
38474 _ACEOF
38475
38476                 SLAPD_GMP_LIBS=-lgmp
38477                 ;;
38478         none)
38479                 ;;
38480         esac
38481
38482         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38483 echo "${ECHO_T}$ol_mp_support" >&6
38484 fi
38485
38486
38487 echo "$as_me:$LINENO: checking for mode_t" >&5
38488 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38489 if test "${ac_cv_type_mode_t+set}" = set; then
38490   echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
38499 int
38500 main ()
38501 {
38502 if ((mode_t *) 0)
38503   return 0;
38504 if (sizeof (mode_t))
38505   return 0;
38506   ;
38507   return 0;
38508 }
38509 _ACEOF
38510 rm -f conftest.$ac_objext
38511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38512   (eval $ac_compile) 2>conftest.er1
38513   ac_status=$?
38514   grep -v '^ *+' conftest.er1 >conftest.err
38515   rm -f conftest.er1
38516   cat conftest.err >&5
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); } &&
38519          { ac_try='test -z "$ac_c_werror_flag"
38520                          || test ! -s conftest.err'
38521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38522   (eval $ac_try) 2>&5
38523   ac_status=$?
38524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525   (exit $ac_status); }; } &&
38526          { ac_try='test -s conftest.$ac_objext'
38527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38528   (eval $ac_try) 2>&5
38529   ac_status=$?
38530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531   (exit $ac_status); }; }; then
38532   ac_cv_type_mode_t=yes
38533 else
38534   echo "$as_me: failed program was:" >&5
38535 sed 's/^/| /' conftest.$ac_ext >&5
38536
38537 ac_cv_type_mode_t=no
38538 fi
38539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38540 fi
38541 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38542 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38543 if test $ac_cv_type_mode_t = yes; then
38544   :
38545 else
38546
38547 cat >>confdefs.h <<_ACEOF
38548 #define mode_t int
38549 _ACEOF
38550
38551 fi
38552
38553 echo "$as_me:$LINENO: checking for off_t" >&5
38554 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38555 if test "${ac_cv_type_off_t+set}" = set; then
38556   echo $ECHO_N "(cached) $ECHO_C" >&6
38557 else
38558   cat >conftest.$ac_ext <<_ACEOF
38559 /* confdefs.h.  */
38560 _ACEOF
38561 cat confdefs.h >>conftest.$ac_ext
38562 cat >>conftest.$ac_ext <<_ACEOF
38563 /* end confdefs.h.  */
38564 $ac_includes_default
38565 int
38566 main ()
38567 {
38568 if ((off_t *) 0)
38569   return 0;
38570 if (sizeof (off_t))
38571   return 0;
38572   ;
38573   return 0;
38574 }
38575 _ACEOF
38576 rm -f conftest.$ac_objext
38577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38578   (eval $ac_compile) 2>conftest.er1
38579   ac_status=$?
38580   grep -v '^ *+' conftest.er1 >conftest.err
38581   rm -f conftest.er1
38582   cat conftest.err >&5
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); } &&
38585          { ac_try='test -z "$ac_c_werror_flag"
38586                          || test ! -s conftest.err'
38587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38588   (eval $ac_try) 2>&5
38589   ac_status=$?
38590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38591   (exit $ac_status); }; } &&
38592          { ac_try='test -s conftest.$ac_objext'
38593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594   (eval $ac_try) 2>&5
38595   ac_status=$?
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); }; }; then
38598   ac_cv_type_off_t=yes
38599 else
38600   echo "$as_me: failed program was:" >&5
38601 sed 's/^/| /' conftest.$ac_ext >&5
38602
38603 ac_cv_type_off_t=no
38604 fi
38605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38606 fi
38607 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38608 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38609 if test $ac_cv_type_off_t = yes; then
38610   :
38611 else
38612
38613 cat >>confdefs.h <<_ACEOF
38614 #define off_t long
38615 _ACEOF
38616
38617 fi
38618
38619 echo "$as_me:$LINENO: checking for pid_t" >&5
38620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38621 if test "${ac_cv_type_pid_t+set}" = set; then
38622   echo $ECHO_N "(cached) $ECHO_C" >&6
38623 else
38624   cat >conftest.$ac_ext <<_ACEOF
38625 /* confdefs.h.  */
38626 _ACEOF
38627 cat confdefs.h >>conftest.$ac_ext
38628 cat >>conftest.$ac_ext <<_ACEOF
38629 /* end confdefs.h.  */
38630 $ac_includes_default
38631 int
38632 main ()
38633 {
38634 if ((pid_t *) 0)
38635   return 0;
38636 if (sizeof (pid_t))
38637   return 0;
38638   ;
38639   return 0;
38640 }
38641 _ACEOF
38642 rm -f conftest.$ac_objext
38643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38644   (eval $ac_compile) 2>conftest.er1
38645   ac_status=$?
38646   grep -v '^ *+' conftest.er1 >conftest.err
38647   rm -f conftest.er1
38648   cat conftest.err >&5
38649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650   (exit $ac_status); } &&
38651          { ac_try='test -z "$ac_c_werror_flag"
38652                          || test ! -s conftest.err'
38653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654   (eval $ac_try) 2>&5
38655   ac_status=$?
38656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657   (exit $ac_status); }; } &&
38658          { ac_try='test -s conftest.$ac_objext'
38659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660   (eval $ac_try) 2>&5
38661   ac_status=$?
38662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663   (exit $ac_status); }; }; then
38664   ac_cv_type_pid_t=yes
38665 else
38666   echo "$as_me: failed program was:" >&5
38667 sed 's/^/| /' conftest.$ac_ext >&5
38668
38669 ac_cv_type_pid_t=no
38670 fi
38671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38672 fi
38673 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38674 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38675 if test $ac_cv_type_pid_t = yes; then
38676   :
38677 else
38678
38679 cat >>confdefs.h <<_ACEOF
38680 #define pid_t int
38681 _ACEOF
38682
38683 fi
38684
38685 echo "$as_me:$LINENO: checking for ssize_t" >&5
38686 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38687 if test "${ac_cv_type_ssize_t+set}" = set; then
38688   echo $ECHO_N "(cached) $ECHO_C" >&6
38689 else
38690   cat >conftest.$ac_ext <<_ACEOF
38691 /* confdefs.h.  */
38692 _ACEOF
38693 cat confdefs.h >>conftest.$ac_ext
38694 cat >>conftest.$ac_ext <<_ACEOF
38695 /* end confdefs.h.  */
38696 $ac_includes_default
38697 int
38698 main ()
38699 {
38700 if ((ssize_t *) 0)
38701   return 0;
38702 if (sizeof (ssize_t))
38703   return 0;
38704   ;
38705   return 0;
38706 }
38707 _ACEOF
38708 rm -f conftest.$ac_objext
38709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38710   (eval $ac_compile) 2>conftest.er1
38711   ac_status=$?
38712   grep -v '^ *+' conftest.er1 >conftest.err
38713   rm -f conftest.er1
38714   cat conftest.err >&5
38715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716   (exit $ac_status); } &&
38717          { ac_try='test -z "$ac_c_werror_flag"
38718                          || test ! -s conftest.err'
38719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38720   (eval $ac_try) 2>&5
38721   ac_status=$?
38722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38723   (exit $ac_status); }; } &&
38724          { ac_try='test -s conftest.$ac_objext'
38725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38726   (eval $ac_try) 2>&5
38727   ac_status=$?
38728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729   (exit $ac_status); }; }; then
38730   ac_cv_type_ssize_t=yes
38731 else
38732   echo "$as_me: failed program was:" >&5
38733 sed 's/^/| /' conftest.$ac_ext >&5
38734
38735 ac_cv_type_ssize_t=no
38736 fi
38737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38738 fi
38739 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38740 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38741 if test $ac_cv_type_ssize_t = yes; then
38742   :
38743 else
38744
38745 cat >>confdefs.h <<_ACEOF
38746 #define ssize_t signed int
38747 _ACEOF
38748
38749 fi
38750
38751 echo "$as_me:$LINENO: checking for caddr_t" >&5
38752 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38753 if test "${ac_cv_type_caddr_t+set}" = set; then
38754   echo $ECHO_N "(cached) $ECHO_C" >&6
38755 else
38756   cat >conftest.$ac_ext <<_ACEOF
38757 /* confdefs.h.  */
38758 _ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h.  */
38762 $ac_includes_default
38763 int
38764 main ()
38765 {
38766 if ((caddr_t *) 0)
38767   return 0;
38768 if (sizeof (caddr_t))
38769   return 0;
38770   ;
38771   return 0;
38772 }
38773 _ACEOF
38774 rm -f conftest.$ac_objext
38775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38776   (eval $ac_compile) 2>conftest.er1
38777   ac_status=$?
38778   grep -v '^ *+' conftest.er1 >conftest.err
38779   rm -f conftest.er1
38780   cat conftest.err >&5
38781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782   (exit $ac_status); } &&
38783          { ac_try='test -z "$ac_c_werror_flag"
38784                          || test ! -s conftest.err'
38785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38786   (eval $ac_try) 2>&5
38787   ac_status=$?
38788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38789   (exit $ac_status); }; } &&
38790          { ac_try='test -s conftest.$ac_objext'
38791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38792   (eval $ac_try) 2>&5
38793   ac_status=$?
38794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795   (exit $ac_status); }; }; then
38796   ac_cv_type_caddr_t=yes
38797 else
38798   echo "$as_me: failed program was:" >&5
38799 sed 's/^/| /' conftest.$ac_ext >&5
38800
38801 ac_cv_type_caddr_t=no
38802 fi
38803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38804 fi
38805 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
38806 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
38807 if test $ac_cv_type_caddr_t = yes; then
38808   :
38809 else
38810
38811 cat >>confdefs.h <<_ACEOF
38812 #define caddr_t char *
38813 _ACEOF
38814
38815 fi
38816
38817 echo "$as_me:$LINENO: checking for size_t" >&5
38818 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38819 if test "${ac_cv_type_size_t+set}" = set; then
38820   echo $ECHO_N "(cached) $ECHO_C" >&6
38821 else
38822   cat >conftest.$ac_ext <<_ACEOF
38823 /* confdefs.h.  */
38824 _ACEOF
38825 cat confdefs.h >>conftest.$ac_ext
38826 cat >>conftest.$ac_ext <<_ACEOF
38827 /* end confdefs.h.  */
38828 $ac_includes_default
38829 int
38830 main ()
38831 {
38832 if ((size_t *) 0)
38833   return 0;
38834 if (sizeof (size_t))
38835   return 0;
38836   ;
38837   return 0;
38838 }
38839 _ACEOF
38840 rm -f conftest.$ac_objext
38841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38842   (eval $ac_compile) 2>conftest.er1
38843   ac_status=$?
38844   grep -v '^ *+' conftest.er1 >conftest.err
38845   rm -f conftest.er1
38846   cat conftest.err >&5
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); } &&
38849          { ac_try='test -z "$ac_c_werror_flag"
38850                          || test ! -s conftest.err'
38851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852   (eval $ac_try) 2>&5
38853   ac_status=$?
38854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855   (exit $ac_status); }; } &&
38856          { ac_try='test -s conftest.$ac_objext'
38857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858   (eval $ac_try) 2>&5
38859   ac_status=$?
38860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861   (exit $ac_status); }; }; then
38862   ac_cv_type_size_t=yes
38863 else
38864   echo "$as_me: failed program was:" >&5
38865 sed 's/^/| /' conftest.$ac_ext >&5
38866
38867 ac_cv_type_size_t=no
38868 fi
38869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38870 fi
38871 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38872 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38873 if test $ac_cv_type_size_t = yes; then
38874   :
38875 else
38876
38877 cat >>confdefs.h <<_ACEOF
38878 #define size_t unsigned
38879 _ACEOF
38880
38881 fi
38882
38883
38884 echo "$as_me:$LINENO: checking for long long" >&5
38885 echo $ECHO_N "checking for long long... $ECHO_C" >&6
38886 if test "${ac_cv_type_long_long+set}" = set; then
38887   echo $ECHO_N "(cached) $ECHO_C" >&6
38888 else
38889   cat >conftest.$ac_ext <<_ACEOF
38890 /* confdefs.h.  */
38891 _ACEOF
38892 cat confdefs.h >>conftest.$ac_ext
38893 cat >>conftest.$ac_ext <<_ACEOF
38894 /* end confdefs.h.  */
38895 $ac_includes_default
38896 int
38897 main ()
38898 {
38899 if ((long long *) 0)
38900   return 0;
38901 if (sizeof (long long))
38902   return 0;
38903   ;
38904   return 0;
38905 }
38906 _ACEOF
38907 rm -f conftest.$ac_objext
38908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38909   (eval $ac_compile) 2>conftest.er1
38910   ac_status=$?
38911   grep -v '^ *+' conftest.er1 >conftest.err
38912   rm -f conftest.er1
38913   cat conftest.err >&5
38914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38915   (exit $ac_status); } &&
38916          { ac_try='test -z "$ac_c_werror_flag"
38917                          || test ! -s conftest.err'
38918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38919   (eval $ac_try) 2>&5
38920   ac_status=$?
38921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922   (exit $ac_status); }; } &&
38923          { ac_try='test -s conftest.$ac_objext'
38924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38925   (eval $ac_try) 2>&5
38926   ac_status=$?
38927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38928   (exit $ac_status); }; }; then
38929   ac_cv_type_long_long=yes
38930 else
38931   echo "$as_me: failed program was:" >&5
38932 sed 's/^/| /' conftest.$ac_ext >&5
38933
38934 ac_cv_type_long_long=no
38935 fi
38936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38937 fi
38938 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
38939 echo "${ECHO_T}$ac_cv_type_long_long" >&6
38940 if test $ac_cv_type_long_long = yes; then
38941
38942 cat >>confdefs.h <<_ACEOF
38943 #define HAVE_LONG_LONG 1
38944 _ACEOF
38945
38946
38947 fi
38948
38949 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
38950 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
38951 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
38952   echo $ECHO_N "(cached) $ECHO_C" >&6
38953 else
38954   cat >conftest.$ac_ext <<_ACEOF
38955 /* confdefs.h.  */
38956 _ACEOF
38957 cat confdefs.h >>conftest.$ac_ext
38958 cat >>conftest.$ac_ext <<_ACEOF
38959 /* end confdefs.h.  */
38960 $ac_includes_default
38961 int
38962 main ()
38963 {
38964 if ((ptrdiff_t *) 0)
38965   return 0;
38966 if (sizeof (ptrdiff_t))
38967   return 0;
38968   ;
38969   return 0;
38970 }
38971 _ACEOF
38972 rm -f conftest.$ac_objext
38973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38974   (eval $ac_compile) 2>conftest.er1
38975   ac_status=$?
38976   grep -v '^ *+' conftest.er1 >conftest.err
38977   rm -f conftest.er1
38978   cat conftest.err >&5
38979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980   (exit $ac_status); } &&
38981          { ac_try='test -z "$ac_c_werror_flag"
38982                          || test ! -s conftest.err'
38983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38984   (eval $ac_try) 2>&5
38985   ac_status=$?
38986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38987   (exit $ac_status); }; } &&
38988          { ac_try='test -s conftest.$ac_objext'
38989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38990   (eval $ac_try) 2>&5
38991   ac_status=$?
38992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993   (exit $ac_status); }; }; then
38994   ac_cv_type_ptrdiff_t=yes
38995 else
38996   echo "$as_me: failed program was:" >&5
38997 sed 's/^/| /' conftest.$ac_ext >&5
38998
38999 ac_cv_type_ptrdiff_t=no
39000 fi
39001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39002 fi
39003 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39004 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39005 if test $ac_cv_type_ptrdiff_t = yes; then
39006
39007 cat >>confdefs.h <<_ACEOF
39008 #define HAVE_PTRDIFF_T 1
39009 _ACEOF
39010
39011
39012 fi
39013
39014
39015 echo "$as_me:$LINENO: checking for socklen_t" >&5
39016 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39017 if test "${ac_cv_type_socklen_t+set}" = set; then
39018   echo $ECHO_N "(cached) $ECHO_C" >&6
39019 else
39020   cat >conftest.$ac_ext <<_ACEOF
39021 /* confdefs.h.  */
39022 _ACEOF
39023 cat confdefs.h >>conftest.$ac_ext
39024 cat >>conftest.$ac_ext <<_ACEOF
39025 /* end confdefs.h.  */
39026 $ac_includes_default
39027 #ifdef HAVE_SYS_SOCKET_H
39028 #include <sys/socket.h>
39029 #endif
39030
39031
39032 int
39033 main ()
39034 {
39035 if ((socklen_t *) 0)
39036   return 0;
39037 if (sizeof (socklen_t))
39038   return 0;
39039   ;
39040   return 0;
39041 }
39042 _ACEOF
39043 rm -f conftest.$ac_objext
39044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39045   (eval $ac_compile) 2>conftest.er1
39046   ac_status=$?
39047   grep -v '^ *+' conftest.er1 >conftest.err
39048   rm -f conftest.er1
39049   cat conftest.err >&5
39050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39051   (exit $ac_status); } &&
39052          { ac_try='test -z "$ac_c_werror_flag"
39053                          || test ! -s conftest.err'
39054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055   (eval $ac_try) 2>&5
39056   ac_status=$?
39057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058   (exit $ac_status); }; } &&
39059          { ac_try='test -s conftest.$ac_objext'
39060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39061   (eval $ac_try) 2>&5
39062   ac_status=$?
39063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39064   (exit $ac_status); }; }; then
39065   ac_cv_type_socklen_t=yes
39066 else
39067   echo "$as_me: failed program was:" >&5
39068 sed 's/^/| /' conftest.$ac_ext >&5
39069
39070 ac_cv_type_socklen_t=no
39071 fi
39072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39073 fi
39074 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39075 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39076 if test $ac_cv_type_socklen_t = yes; then
39077   :
39078 else
39079
39080 cat >>confdefs.h <<_ACEOF
39081 #define socklen_t int
39082 _ACEOF
39083
39084 fi
39085
39086
39087 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39088 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39089 if test "${ac_cv_type_signal+set}" = set; then
39090   echo $ECHO_N "(cached) $ECHO_C" >&6
39091 else
39092   cat >conftest.$ac_ext <<_ACEOF
39093 /* confdefs.h.  */
39094 _ACEOF
39095 cat confdefs.h >>conftest.$ac_ext
39096 cat >>conftest.$ac_ext <<_ACEOF
39097 /* end confdefs.h.  */
39098 #include <sys/types.h>
39099 #include <signal.h>
39100 #ifdef signal
39101 # undef signal
39102 #endif
39103 #ifdef __cplusplus
39104 extern "C" void (*signal (int, void (*)(int)))(int);
39105 #else
39106 void (*signal ()) ();
39107 #endif
39108
39109 int
39110 main ()
39111 {
39112 int i;
39113   ;
39114   return 0;
39115 }
39116 _ACEOF
39117 rm -f conftest.$ac_objext
39118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39119   (eval $ac_compile) 2>conftest.er1
39120   ac_status=$?
39121   grep -v '^ *+' conftest.er1 >conftest.err
39122   rm -f conftest.er1
39123   cat conftest.err >&5
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); } &&
39126          { ac_try='test -z "$ac_c_werror_flag"
39127                          || test ! -s conftest.err'
39128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39129   (eval $ac_try) 2>&5
39130   ac_status=$?
39131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39132   (exit $ac_status); }; } &&
39133          { ac_try='test -s conftest.$ac_objext'
39134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39135   (eval $ac_try) 2>&5
39136   ac_status=$?
39137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138   (exit $ac_status); }; }; then
39139   ac_cv_type_signal=void
39140 else
39141   echo "$as_me: failed program was:" >&5
39142 sed 's/^/| /' conftest.$ac_ext >&5
39143
39144 ac_cv_type_signal=int
39145 fi
39146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39147 fi
39148 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39149 echo "${ECHO_T}$ac_cv_type_signal" >&6
39150
39151 cat >>confdefs.h <<_ACEOF
39152 #define RETSIGTYPE $ac_cv_type_signal
39153 _ACEOF
39154
39155
39156
39157 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39158 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39159 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39160   echo $ECHO_N "(cached) $ECHO_C" >&6
39161 else
39162   cat >conftest.$ac_ext <<_ACEOF
39163 /* confdefs.h.  */
39164 _ACEOF
39165 cat confdefs.h >>conftest.$ac_ext
39166 cat >>conftest.$ac_ext <<_ACEOF
39167 /* end confdefs.h.  */
39168 $ac_includes_default
39169 #include <signal.h>
39170
39171
39172 int
39173 main ()
39174 {
39175 if ((sig_atomic_t *) 0)
39176   return 0;
39177 if (sizeof (sig_atomic_t))
39178   return 0;
39179   ;
39180   return 0;
39181 }
39182 _ACEOF
39183 rm -f conftest.$ac_objext
39184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39185   (eval $ac_compile) 2>conftest.er1
39186   ac_status=$?
39187   grep -v '^ *+' conftest.er1 >conftest.err
39188   rm -f conftest.er1
39189   cat conftest.err >&5
39190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191   (exit $ac_status); } &&
39192          { ac_try='test -z "$ac_c_werror_flag"
39193                          || test ! -s conftest.err'
39194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195   (eval $ac_try) 2>&5
39196   ac_status=$?
39197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198   (exit $ac_status); }; } &&
39199          { ac_try='test -s conftest.$ac_objext'
39200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39201   (eval $ac_try) 2>&5
39202   ac_status=$?
39203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204   (exit $ac_status); }; }; then
39205   ac_cv_type_sig_atomic_t=yes
39206 else
39207   echo "$as_me: failed program was:" >&5
39208 sed 's/^/| /' conftest.$ac_ext >&5
39209
39210 ac_cv_type_sig_atomic_t=no
39211 fi
39212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39213 fi
39214 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39215 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39216 if test $ac_cv_type_sig_atomic_t = yes; then
39217   :
39218 else
39219
39220 cat >>confdefs.h <<_ACEOF
39221 #define sig_atomic_t int
39222 _ACEOF
39223
39224 fi
39225
39226
39227 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39228 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39229 if test "${ac_cv_type_uid_t+set}" = set; then
39230   echo $ECHO_N "(cached) $ECHO_C" >&6
39231 else
39232   cat >conftest.$ac_ext <<_ACEOF
39233 /* confdefs.h.  */
39234 _ACEOF
39235 cat confdefs.h >>conftest.$ac_ext
39236 cat >>conftest.$ac_ext <<_ACEOF
39237 /* end confdefs.h.  */
39238 #include <sys/types.h>
39239
39240 _ACEOF
39241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39242   $EGREP "uid_t" >/dev/null 2>&1; then
39243   ac_cv_type_uid_t=yes
39244 else
39245   ac_cv_type_uid_t=no
39246 fi
39247 rm -f conftest*
39248
39249 fi
39250 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39251 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39252 if test $ac_cv_type_uid_t = no; then
39253
39254 cat >>confdefs.h <<\_ACEOF
39255 #define uid_t int
39256 _ACEOF
39257
39258
39259 cat >>confdefs.h <<\_ACEOF
39260 #define gid_t int
39261 _ACEOF
39262
39263 fi
39264
39265
39266 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39267 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39268 if test "${ac_cv_header_time+set}" = set; then
39269   echo $ECHO_N "(cached) $ECHO_C" >&6
39270 else
39271   cat >conftest.$ac_ext <<_ACEOF
39272 /* confdefs.h.  */
39273 _ACEOF
39274 cat confdefs.h >>conftest.$ac_ext
39275 cat >>conftest.$ac_ext <<_ACEOF
39276 /* end confdefs.h.  */
39277 #include <sys/types.h>
39278 #include <sys/time.h>
39279 #include <time.h>
39280
39281 int
39282 main ()
39283 {
39284 if ((struct tm *) 0)
39285 return 0;
39286   ;
39287   return 0;
39288 }
39289 _ACEOF
39290 rm -f conftest.$ac_objext
39291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39292   (eval $ac_compile) 2>conftest.er1
39293   ac_status=$?
39294   grep -v '^ *+' conftest.er1 >conftest.err
39295   rm -f conftest.er1
39296   cat conftest.err >&5
39297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298   (exit $ac_status); } &&
39299          { ac_try='test -z "$ac_c_werror_flag"
39300                          || test ! -s conftest.err'
39301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302   (eval $ac_try) 2>&5
39303   ac_status=$?
39304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305   (exit $ac_status); }; } &&
39306          { ac_try='test -s conftest.$ac_objext'
39307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308   (eval $ac_try) 2>&5
39309   ac_status=$?
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); }; }; then
39312   ac_cv_header_time=yes
39313 else
39314   echo "$as_me: failed program was:" >&5
39315 sed 's/^/| /' conftest.$ac_ext >&5
39316
39317 ac_cv_header_time=no
39318 fi
39319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39320 fi
39321 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39322 echo "${ECHO_T}$ac_cv_header_time" >&6
39323 if test $ac_cv_header_time = yes; then
39324
39325 cat >>confdefs.h <<\_ACEOF
39326 #define TIME_WITH_SYS_TIME 1
39327 _ACEOF
39328
39329 fi
39330
39331 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39332 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39333 if test "${ac_cv_struct_tm+set}" = set; then
39334   echo $ECHO_N "(cached) $ECHO_C" >&6
39335 else
39336   cat >conftest.$ac_ext <<_ACEOF
39337 /* confdefs.h.  */
39338 _ACEOF
39339 cat confdefs.h >>conftest.$ac_ext
39340 cat >>conftest.$ac_ext <<_ACEOF
39341 /* end confdefs.h.  */
39342 #include <sys/types.h>
39343 #include <time.h>
39344
39345 int
39346 main ()
39347 {
39348 struct tm *tp; tp->tm_sec;
39349   ;
39350   return 0;
39351 }
39352 _ACEOF
39353 rm -f conftest.$ac_objext
39354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39355   (eval $ac_compile) 2>conftest.er1
39356   ac_status=$?
39357   grep -v '^ *+' conftest.er1 >conftest.err
39358   rm -f conftest.er1
39359   cat conftest.err >&5
39360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361   (exit $ac_status); } &&
39362          { ac_try='test -z "$ac_c_werror_flag"
39363                          || test ! -s conftest.err'
39364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365   (eval $ac_try) 2>&5
39366   ac_status=$?
39367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368   (exit $ac_status); }; } &&
39369          { ac_try='test -s conftest.$ac_objext'
39370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39371   (eval $ac_try) 2>&5
39372   ac_status=$?
39373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374   (exit $ac_status); }; }; then
39375   ac_cv_struct_tm=time.h
39376 else
39377   echo "$as_me: failed program was:" >&5
39378 sed 's/^/| /' conftest.$ac_ext >&5
39379
39380 ac_cv_struct_tm=sys/time.h
39381 fi
39382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39383 fi
39384 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39385 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39386 if test $ac_cv_struct_tm = sys/time.h; then
39387
39388 cat >>confdefs.h <<\_ACEOF
39389 #define TM_IN_SYS_TIME 1
39390 _ACEOF
39391
39392 fi
39393
39394 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39395 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39396 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39397   echo $ECHO_N "(cached) $ECHO_C" >&6
39398 else
39399   cat >conftest.$ac_ext <<_ACEOF
39400 /* confdefs.h.  */
39401 _ACEOF
39402 cat confdefs.h >>conftest.$ac_ext
39403 cat >>conftest.$ac_ext <<_ACEOF
39404 /* end confdefs.h.  */
39405 $ac_includes_default
39406 int
39407 main ()
39408 {
39409 static struct stat ac_aggr;
39410 if (ac_aggr.st_blksize)
39411 return 0;
39412   ;
39413   return 0;
39414 }
39415 _ACEOF
39416 rm -f conftest.$ac_objext
39417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39418   (eval $ac_compile) 2>conftest.er1
39419   ac_status=$?
39420   grep -v '^ *+' conftest.er1 >conftest.err
39421   rm -f conftest.er1
39422   cat conftest.err >&5
39423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424   (exit $ac_status); } &&
39425          { ac_try='test -z "$ac_c_werror_flag"
39426                          || test ! -s conftest.err'
39427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39428   (eval $ac_try) 2>&5
39429   ac_status=$?
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); }; } &&
39432          { ac_try='test -s conftest.$ac_objext'
39433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39434   (eval $ac_try) 2>&5
39435   ac_status=$?
39436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437   (exit $ac_status); }; }; then
39438   ac_cv_member_struct_stat_st_blksize=yes
39439 else
39440   echo "$as_me: failed program was:" >&5
39441 sed 's/^/| /' conftest.$ac_ext >&5
39442
39443 cat >conftest.$ac_ext <<_ACEOF
39444 /* confdefs.h.  */
39445 _ACEOF
39446 cat confdefs.h >>conftest.$ac_ext
39447 cat >>conftest.$ac_ext <<_ACEOF
39448 /* end confdefs.h.  */
39449 $ac_includes_default
39450 int
39451 main ()
39452 {
39453 static struct stat ac_aggr;
39454 if (sizeof ac_aggr.st_blksize)
39455 return 0;
39456   ;
39457   return 0;
39458 }
39459 _ACEOF
39460 rm -f conftest.$ac_objext
39461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39462   (eval $ac_compile) 2>conftest.er1
39463   ac_status=$?
39464   grep -v '^ *+' conftest.er1 >conftest.err
39465   rm -f conftest.er1
39466   cat conftest.err >&5
39467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39468   (exit $ac_status); } &&
39469          { ac_try='test -z "$ac_c_werror_flag"
39470                          || test ! -s conftest.err'
39471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472   (eval $ac_try) 2>&5
39473   ac_status=$?
39474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475   (exit $ac_status); }; } &&
39476          { ac_try='test -s conftest.$ac_objext'
39477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39478   (eval $ac_try) 2>&5
39479   ac_status=$?
39480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481   (exit $ac_status); }; }; then
39482   ac_cv_member_struct_stat_st_blksize=yes
39483 else
39484   echo "$as_me: failed program was:" >&5
39485 sed 's/^/| /' conftest.$ac_ext >&5
39486
39487 ac_cv_member_struct_stat_st_blksize=no
39488 fi
39489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39490 fi
39491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39492 fi
39493 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39494 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39495 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39496
39497 cat >>confdefs.h <<_ACEOF
39498 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39499 _ACEOF
39500
39501
39502 fi
39503
39504 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39505 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39506 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39507   echo $ECHO_N "(cached) $ECHO_C" >&6
39508 else
39509   cat >conftest.$ac_ext <<_ACEOF
39510 /* confdefs.h.  */
39511 _ACEOF
39512 cat confdefs.h >>conftest.$ac_ext
39513 cat >>conftest.$ac_ext <<_ACEOF
39514 /* end confdefs.h.  */
39515 $ac_includes_default
39516 #include <pwd.h>
39517
39518 int
39519 main ()
39520 {
39521 static struct passwd ac_aggr;
39522 if (ac_aggr.pw_gecos)
39523 return 0;
39524   ;
39525   return 0;
39526 }
39527 _ACEOF
39528 rm -f conftest.$ac_objext
39529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39530   (eval $ac_compile) 2>conftest.er1
39531   ac_status=$?
39532   grep -v '^ *+' conftest.er1 >conftest.err
39533   rm -f conftest.er1
39534   cat conftest.err >&5
39535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39536   (exit $ac_status); } &&
39537          { ac_try='test -z "$ac_c_werror_flag"
39538                          || test ! -s conftest.err'
39539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39540   (eval $ac_try) 2>&5
39541   ac_status=$?
39542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39543   (exit $ac_status); }; } &&
39544          { ac_try='test -s conftest.$ac_objext'
39545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39546   (eval $ac_try) 2>&5
39547   ac_status=$?
39548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549   (exit $ac_status); }; }; then
39550   ac_cv_member_struct_passwd_pw_gecos=yes
39551 else
39552   echo "$as_me: failed program was:" >&5
39553 sed 's/^/| /' conftest.$ac_ext >&5
39554
39555 cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561 $ac_includes_default
39562 #include <pwd.h>
39563
39564 int
39565 main ()
39566 {
39567 static struct passwd ac_aggr;
39568 if (sizeof ac_aggr.pw_gecos)
39569 return 0;
39570   ;
39571   return 0;
39572 }
39573 _ACEOF
39574 rm -f conftest.$ac_objext
39575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39576   (eval $ac_compile) 2>conftest.er1
39577   ac_status=$?
39578   grep -v '^ *+' conftest.er1 >conftest.err
39579   rm -f conftest.er1
39580   cat conftest.err >&5
39581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582   (exit $ac_status); } &&
39583          { ac_try='test -z "$ac_c_werror_flag"
39584                          || test ! -s conftest.err'
39585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39586   (eval $ac_try) 2>&5
39587   ac_status=$?
39588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589   (exit $ac_status); }; } &&
39590          { ac_try='test -s conftest.$ac_objext'
39591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39592   (eval $ac_try) 2>&5
39593   ac_status=$?
39594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595   (exit $ac_status); }; }; then
39596   ac_cv_member_struct_passwd_pw_gecos=yes
39597 else
39598   echo "$as_me: failed program was:" >&5
39599 sed 's/^/| /' conftest.$ac_ext >&5
39600
39601 ac_cv_member_struct_passwd_pw_gecos=no
39602 fi
39603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39604 fi
39605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39606 fi
39607 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39608 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39609 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39610
39611 cat >>confdefs.h <<_ACEOF
39612 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39613 _ACEOF
39614
39615
39616 fi
39617
39618 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39619 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39620 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39621   echo $ECHO_N "(cached) $ECHO_C" >&6
39622 else
39623   cat >conftest.$ac_ext <<_ACEOF
39624 /* confdefs.h.  */
39625 _ACEOF
39626 cat confdefs.h >>conftest.$ac_ext
39627 cat >>conftest.$ac_ext <<_ACEOF
39628 /* end confdefs.h.  */
39629 $ac_includes_default
39630 #include <pwd.h>
39631
39632 int
39633 main ()
39634 {
39635 static struct passwd ac_aggr;
39636 if (ac_aggr.pw_passwd)
39637 return 0;
39638   ;
39639   return 0;
39640 }
39641 _ACEOF
39642 rm -f conftest.$ac_objext
39643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39644   (eval $ac_compile) 2>conftest.er1
39645   ac_status=$?
39646   grep -v '^ *+' conftest.er1 >conftest.err
39647   rm -f conftest.er1
39648   cat conftest.err >&5
39649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650   (exit $ac_status); } &&
39651          { ac_try='test -z "$ac_c_werror_flag"
39652                          || test ! -s conftest.err'
39653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39654   (eval $ac_try) 2>&5
39655   ac_status=$?
39656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657   (exit $ac_status); }; } &&
39658          { ac_try='test -s conftest.$ac_objext'
39659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39660   (eval $ac_try) 2>&5
39661   ac_status=$?
39662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663   (exit $ac_status); }; }; then
39664   ac_cv_member_struct_passwd_pw_passwd=yes
39665 else
39666   echo "$as_me: failed program was:" >&5
39667 sed 's/^/| /' conftest.$ac_ext >&5
39668
39669 cat >conftest.$ac_ext <<_ACEOF
39670 /* confdefs.h.  */
39671 _ACEOF
39672 cat confdefs.h >>conftest.$ac_ext
39673 cat >>conftest.$ac_ext <<_ACEOF
39674 /* end confdefs.h.  */
39675 $ac_includes_default
39676 #include <pwd.h>
39677
39678 int
39679 main ()
39680 {
39681 static struct passwd ac_aggr;
39682 if (sizeof ac_aggr.pw_passwd)
39683 return 0;
39684   ;
39685   return 0;
39686 }
39687 _ACEOF
39688 rm -f conftest.$ac_objext
39689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39690   (eval $ac_compile) 2>conftest.er1
39691   ac_status=$?
39692   grep -v '^ *+' conftest.er1 >conftest.err
39693   rm -f conftest.er1
39694   cat conftest.err >&5
39695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696   (exit $ac_status); } &&
39697          { ac_try='test -z "$ac_c_werror_flag"
39698                          || test ! -s conftest.err'
39699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700   (eval $ac_try) 2>&5
39701   ac_status=$?
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); }; } &&
39704          { ac_try='test -s conftest.$ac_objext'
39705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39706   (eval $ac_try) 2>&5
39707   ac_status=$?
39708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39709   (exit $ac_status); }; }; then
39710   ac_cv_member_struct_passwd_pw_passwd=yes
39711 else
39712   echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39714
39715 ac_cv_member_struct_passwd_pw_passwd=no
39716 fi
39717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39718 fi
39719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39720 fi
39721 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39722 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39723 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39724
39725 cat >>confdefs.h <<_ACEOF
39726 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39727 _ACEOF
39728
39729
39730 fi
39731
39732
39733 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39734 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39735 if test "${ol_cv_c_upper_lower+set}" = set; then
39736   echo $ECHO_N "(cached) $ECHO_C" >&6
39737 else
39738
39739         if test "$cross_compiling" = yes; then
39740   ol_cv_c_upper_lower=safe
39741 else
39742   cat >conftest.$ac_ext <<_ACEOF
39743 /* confdefs.h.  */
39744 _ACEOF
39745 cat confdefs.h >>conftest.$ac_ext
39746 cat >>conftest.$ac_ext <<_ACEOF
39747 /* end confdefs.h.  */
39748
39749 #include <ctype.h>
39750 main()
39751 {
39752         if ('C' == toupper('C'))
39753                 exit(0);
39754         else
39755                 exit(1);
39756 }
39757 _ACEOF
39758 rm -f conftest$ac_exeext
39759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39760   (eval $ac_link) 2>&5
39761   ac_status=$?
39762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39765   (eval $ac_try) 2>&5
39766   ac_status=$?
39767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768   (exit $ac_status); }; }; then
39769   ol_cv_c_upper_lower=no
39770 else
39771   echo "$as_me: program exited with status $ac_status" >&5
39772 echo "$as_me: failed program was:" >&5
39773 sed 's/^/| /' conftest.$ac_ext >&5
39774
39775 ( exit $ac_status )
39776 ol_cv_c_upper_lower=yes
39777 fi
39778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39779 fi
39780 fi
39781 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
39782 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
39783 if test $ol_cv_c_upper_lower != no ; then
39784
39785 cat >>confdefs.h <<\_ACEOF
39786 #define C_UPPER_LOWER 1
39787 _ACEOF
39788
39789 fi
39790
39791 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
39792 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
39793 if test "${ac_cv_c_const+set}" = set; then
39794   echo $ECHO_N "(cached) $ECHO_C" >&6
39795 else
39796   cat >conftest.$ac_ext <<_ACEOF
39797 /* confdefs.h.  */
39798 _ACEOF
39799 cat confdefs.h >>conftest.$ac_ext
39800 cat >>conftest.$ac_ext <<_ACEOF
39801 /* end confdefs.h.  */
39802
39803 int
39804 main ()
39805 {
39806 /* FIXME: Include the comments suggested by Paul. */
39807 #ifndef __cplusplus
39808   /* Ultrix mips cc rejects this.  */
39809   typedef int charset[2];
39810   const charset x;
39811   /* SunOS 4.1.1 cc rejects this.  */
39812   char const *const *ccp;
39813   char **p;
39814   /* NEC SVR4.0.2 mips cc rejects this.  */
39815   struct point {int x, y;};
39816   static struct point const zero = {0,0};
39817   /* AIX XL C 1.02.0.0 rejects this.
39818      It does not let you subtract one const X* pointer from another in
39819      an arm of an if-expression whose if-part is not a constant
39820      expression */
39821   const char *g = "string";
39822   ccp = &g + (g ? g-g : 0);
39823   /* HPUX 7.0 cc rejects these. */
39824   ++ccp;
39825   p = (char**) ccp;
39826   ccp = (char const *const *) p;
39827   { /* SCO 3.2v4 cc rejects this.  */
39828     char *t;
39829     char const *s = 0 ? (char *) 0 : (char const *) 0;
39830
39831     *t++ = 0;
39832   }
39833   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
39834     int x[] = {25, 17};
39835     const int *foo = &x[0];
39836     ++foo;
39837   }
39838   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
39839     typedef const int *iptr;
39840     iptr p = 0;
39841     ++p;
39842   }
39843   { /* AIX XL C 1.02.0.0 rejects this saying
39844        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
39845     struct s { int j; const int *ap[3]; };
39846     struct s *b; b->j = 5;
39847   }
39848   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
39849     const int foo = 10;
39850   }
39851 #endif
39852
39853   ;
39854   return 0;
39855 }
39856 _ACEOF
39857 rm -f conftest.$ac_objext
39858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39859   (eval $ac_compile) 2>conftest.er1
39860   ac_status=$?
39861   grep -v '^ *+' conftest.er1 >conftest.err
39862   rm -f conftest.er1
39863   cat conftest.err >&5
39864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865   (exit $ac_status); } &&
39866          { ac_try='test -z "$ac_c_werror_flag"
39867                          || test ! -s conftest.err'
39868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869   (eval $ac_try) 2>&5
39870   ac_status=$?
39871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872   (exit $ac_status); }; } &&
39873          { ac_try='test -s conftest.$ac_objext'
39874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39875   (eval $ac_try) 2>&5
39876   ac_status=$?
39877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39878   (exit $ac_status); }; }; then
39879   ac_cv_c_const=yes
39880 else
39881   echo "$as_me: failed program was:" >&5
39882 sed 's/^/| /' conftest.$ac_ext >&5
39883
39884 ac_cv_c_const=no
39885 fi
39886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39887 fi
39888 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
39889 echo "${ECHO_T}$ac_cv_c_const" >&6
39890 if test $ac_cv_c_const = no; then
39891
39892 cat >>confdefs.h <<\_ACEOF
39893 #define const
39894 _ACEOF
39895
39896 fi
39897
39898 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
39899 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
39900 if test "${ol_cv_c_volatile+set}" = set; then
39901   echo $ECHO_N "(cached) $ECHO_C" >&6
39902 else
39903   cat >conftest.$ac_ext <<_ACEOF
39904 /* confdefs.h.  */
39905 _ACEOF
39906 cat confdefs.h >>conftest.$ac_ext
39907 cat >>conftest.$ac_ext <<_ACEOF
39908 /* end confdefs.h.  */
39909 int x, y, z;
39910 int
39911 main ()
39912 {
39913 volatile int a; int * volatile b = x ? &y : &z;
39914       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
39915       *b = 0;
39916   ;
39917   return 0;
39918 }
39919 _ACEOF
39920 rm -f conftest.$ac_objext
39921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39922   (eval $ac_compile) 2>conftest.er1
39923   ac_status=$?
39924   grep -v '^ *+' conftest.er1 >conftest.err
39925   rm -f conftest.er1
39926   cat conftest.err >&5
39927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39928   (exit $ac_status); } &&
39929          { ac_try='test -z "$ac_c_werror_flag"
39930                          || test ! -s conftest.err'
39931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39932   (eval $ac_try) 2>&5
39933   ac_status=$?
39934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935   (exit $ac_status); }; } &&
39936          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
39942   ol_cv_c_volatile=yes
39943 else
39944   echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.$ac_ext >&5
39946
39947 ol_cv_c_volatile=no
39948 fi
39949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39950 fi
39951 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
39952 echo "${ECHO_T}$ol_cv_c_volatile" >&6
39953   if test $ol_cv_c_volatile = yes; then
39954     :
39955   else
39956
39957 cat >>confdefs.h <<\_ACEOF
39958 #define volatile
39959 _ACEOF
39960
39961   fi
39962
39963
39964 if test $cross_compiling = yes ; then
39965         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
39966 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
39967
39968 cat >>confdefs.h <<\_ACEOF
39969 #define CROSS_COMPILING 1
39970 _ACEOF
39971
39972 else
39973         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
39974 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
39975 if test "${ac_cv_c_bigendian+set}" = set; then
39976   echo $ECHO_N "(cached) $ECHO_C" >&6
39977 else
39978   # See if sys/param.h defines the BYTE_ORDER macro.
39979 cat >conftest.$ac_ext <<_ACEOF
39980 /* confdefs.h.  */
39981 _ACEOF
39982 cat confdefs.h >>conftest.$ac_ext
39983 cat >>conftest.$ac_ext <<_ACEOF
39984 /* end confdefs.h.  */
39985 #include <sys/types.h>
39986 #include <sys/param.h>
39987
39988 int
39989 main ()
39990 {
39991 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
39992  bogus endian macros
39993 #endif
39994
39995   ;
39996   return 0;
39997 }
39998 _ACEOF
39999 rm -f conftest.$ac_objext
40000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40001   (eval $ac_compile) 2>conftest.er1
40002   ac_status=$?
40003   grep -v '^ *+' conftest.er1 >conftest.err
40004   rm -f conftest.er1
40005   cat conftest.err >&5
40006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007   (exit $ac_status); } &&
40008          { ac_try='test -z "$ac_c_werror_flag"
40009                          || test ! -s conftest.err'
40010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40011   (eval $ac_try) 2>&5
40012   ac_status=$?
40013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40014   (exit $ac_status); }; } &&
40015          { ac_try='test -s conftest.$ac_objext'
40016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017   (eval $ac_try) 2>&5
40018   ac_status=$?
40019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020   (exit $ac_status); }; }; then
40021   # It does; now see whether it defined to BIG_ENDIAN or not.
40022 cat >conftest.$ac_ext <<_ACEOF
40023 /* confdefs.h.  */
40024 _ACEOF
40025 cat confdefs.h >>conftest.$ac_ext
40026 cat >>conftest.$ac_ext <<_ACEOF
40027 /* end confdefs.h.  */
40028 #include <sys/types.h>
40029 #include <sys/param.h>
40030
40031 int
40032 main ()
40033 {
40034 #if BYTE_ORDER != BIG_ENDIAN
40035  not big endian
40036 #endif
40037
40038   ;
40039   return 0;
40040 }
40041 _ACEOF
40042 rm -f conftest.$ac_objext
40043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40044   (eval $ac_compile) 2>conftest.er1
40045   ac_status=$?
40046   grep -v '^ *+' conftest.er1 >conftest.err
40047   rm -f conftest.er1
40048   cat conftest.err >&5
40049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40050   (exit $ac_status); } &&
40051          { ac_try='test -z "$ac_c_werror_flag"
40052                          || test ! -s conftest.err'
40053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054   (eval $ac_try) 2>&5
40055   ac_status=$?
40056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057   (exit $ac_status); }; } &&
40058          { ac_try='test -s conftest.$ac_objext'
40059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060   (eval $ac_try) 2>&5
40061   ac_status=$?
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); }; }; then
40064   ac_cv_c_bigendian=yes
40065 else
40066   echo "$as_me: failed program was:" >&5
40067 sed 's/^/| /' conftest.$ac_ext >&5
40068
40069 ac_cv_c_bigendian=no
40070 fi
40071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40072 else
40073   echo "$as_me: failed program was:" >&5
40074 sed 's/^/| /' conftest.$ac_ext >&5
40075
40076 # It does not; compile a test program.
40077 if test "$cross_compiling" = yes; then
40078   # try to guess the endianness by grepping values into an object file
40079   ac_cv_c_bigendian=unknown
40080   cat >conftest.$ac_ext <<_ACEOF
40081 /* confdefs.h.  */
40082 _ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h.  */
40086 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40087 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40088 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40089 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40090 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40091 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40092 int
40093 main ()
40094 {
40095  _ascii (); _ebcdic ();
40096   ;
40097   return 0;
40098 }
40099 _ACEOF
40100 rm -f conftest.$ac_objext
40101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40102   (eval $ac_compile) 2>conftest.er1
40103   ac_status=$?
40104   grep -v '^ *+' conftest.er1 >conftest.err
40105   rm -f conftest.er1
40106   cat conftest.err >&5
40107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108   (exit $ac_status); } &&
40109          { ac_try='test -z "$ac_c_werror_flag"
40110                          || test ! -s conftest.err'
40111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112   (eval $ac_try) 2>&5
40113   ac_status=$?
40114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115   (exit $ac_status); }; } &&
40116          { ac_try='test -s conftest.$ac_objext'
40117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40118   (eval $ac_try) 2>&5
40119   ac_status=$?
40120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121   (exit $ac_status); }; }; then
40122   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40123   ac_cv_c_bigendian=yes
40124 fi
40125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40126   if test "$ac_cv_c_bigendian" = unknown; then
40127     ac_cv_c_bigendian=no
40128   else
40129     # finding both strings is unlikely to happen, but who knows?
40130     ac_cv_c_bigendian=unknown
40131   fi
40132 fi
40133 else
40134   echo "$as_me: failed program was:" >&5
40135 sed 's/^/| /' conftest.$ac_ext >&5
40136
40137 fi
40138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40139 else
40140   cat >conftest.$ac_ext <<_ACEOF
40141 /* confdefs.h.  */
40142 _ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h.  */
40146 int
40147 main ()
40148 {
40149   /* Are we little or big endian?  From Harbison&Steele.  */
40150   union
40151   {
40152     long l;
40153     char c[sizeof (long)];
40154   } u;
40155   u.l = 1;
40156   exit (u.c[sizeof (long) - 1] == 1);
40157 }
40158 _ACEOF
40159 rm -f conftest$ac_exeext
40160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40161   (eval $ac_link) 2>&5
40162   ac_status=$?
40163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166   (eval $ac_try) 2>&5
40167   ac_status=$?
40168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169   (exit $ac_status); }; }; then
40170   ac_cv_c_bigendian=no
40171 else
40172   echo "$as_me: program exited with status $ac_status" >&5
40173 echo "$as_me: failed program was:" >&5
40174 sed 's/^/| /' conftest.$ac_ext >&5
40175
40176 ( exit $ac_status )
40177 ac_cv_c_bigendian=yes
40178 fi
40179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40180 fi
40181 fi
40182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40183 fi
40184 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40185 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40186 case $ac_cv_c_bigendian in
40187   yes)
40188
40189 cat >>confdefs.h <<\_ACEOF
40190 #define WORDS_BIGENDIAN 1
40191 _ACEOF
40192  ;;
40193   no)
40194      ;;
40195   *)
40196     { { echo "$as_me:$LINENO: error: unknown endianness
40197 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40198 echo "$as_me: error: unknown endianness
40199 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40200    { (exit 1); exit 1; }; } ;;
40201 esac
40202
40203 fi
40204
40205 echo "$as_me:$LINENO: checking for short" >&5
40206 echo $ECHO_N "checking for short... $ECHO_C" >&6
40207 if test "${ac_cv_type_short+set}" = set; then
40208   echo $ECHO_N "(cached) $ECHO_C" >&6
40209 else
40210   cat >conftest.$ac_ext <<_ACEOF
40211 /* confdefs.h.  */
40212 _ACEOF
40213 cat confdefs.h >>conftest.$ac_ext
40214 cat >>conftest.$ac_ext <<_ACEOF
40215 /* end confdefs.h.  */
40216 $ac_includes_default
40217 int
40218 main ()
40219 {
40220 if ((short *) 0)
40221   return 0;
40222 if (sizeof (short))
40223   return 0;
40224   ;
40225   return 0;
40226 }
40227 _ACEOF
40228 rm -f conftest.$ac_objext
40229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40230   (eval $ac_compile) 2>conftest.er1
40231   ac_status=$?
40232   grep -v '^ *+' conftest.er1 >conftest.err
40233   rm -f conftest.er1
40234   cat conftest.err >&5
40235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236   (exit $ac_status); } &&
40237          { ac_try='test -z "$ac_c_werror_flag"
40238                          || test ! -s conftest.err'
40239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40240   (eval $ac_try) 2>&5
40241   ac_status=$?
40242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243   (exit $ac_status); }; } &&
40244          { ac_try='test -s conftest.$ac_objext'
40245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40246   (eval $ac_try) 2>&5
40247   ac_status=$?
40248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249   (exit $ac_status); }; }; then
40250   ac_cv_type_short=yes
40251 else
40252   echo "$as_me: failed program was:" >&5
40253 sed 's/^/| /' conftest.$ac_ext >&5
40254
40255 ac_cv_type_short=no
40256 fi
40257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40258 fi
40259 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40260 echo "${ECHO_T}$ac_cv_type_short" >&6
40261
40262 echo "$as_me:$LINENO: checking size of short" >&5
40263 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40264 if test "${ac_cv_sizeof_short+set}" = set; then
40265   echo $ECHO_N "(cached) $ECHO_C" >&6
40266 else
40267   if test "$ac_cv_type_short" = yes; then
40268   # The cast to unsigned long works around a bug in the HP C Compiler
40269   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40270   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40271   # This bug is HP SR number 8606223364.
40272   if test "$cross_compiling" = yes; then
40273   # Depending upon the size, compute the lo and hi bounds.
40274 cat >conftest.$ac_ext <<_ACEOF
40275 /* confdefs.h.  */
40276 _ACEOF
40277 cat confdefs.h >>conftest.$ac_ext
40278 cat >>conftest.$ac_ext <<_ACEOF
40279 /* end confdefs.h.  */
40280 $ac_includes_default
40281 int
40282 main ()
40283 {
40284 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40285 test_array [0] = 0
40286
40287   ;
40288   return 0;
40289 }
40290 _ACEOF
40291 rm -f conftest.$ac_objext
40292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40293   (eval $ac_compile) 2>conftest.er1
40294   ac_status=$?
40295   grep -v '^ *+' conftest.er1 >conftest.err
40296   rm -f conftest.er1
40297   cat conftest.err >&5
40298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299   (exit $ac_status); } &&
40300          { ac_try='test -z "$ac_c_werror_flag"
40301                          || test ! -s conftest.err'
40302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40303   (eval $ac_try) 2>&5
40304   ac_status=$?
40305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306   (exit $ac_status); }; } &&
40307          { ac_try='test -s conftest.$ac_objext'
40308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40309   (eval $ac_try) 2>&5
40310   ac_status=$?
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); }; }; then
40313   ac_lo=0 ac_mid=0
40314   while :; do
40315     cat >conftest.$ac_ext <<_ACEOF
40316 /* confdefs.h.  */
40317 _ACEOF
40318 cat confdefs.h >>conftest.$ac_ext
40319 cat >>conftest.$ac_ext <<_ACEOF
40320 /* end confdefs.h.  */
40321 $ac_includes_default
40322 int
40323 main ()
40324 {
40325 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40326 test_array [0] = 0
40327
40328   ;
40329   return 0;
40330 }
40331 _ACEOF
40332 rm -f conftest.$ac_objext
40333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40334   (eval $ac_compile) 2>conftest.er1
40335   ac_status=$?
40336   grep -v '^ *+' conftest.er1 >conftest.err
40337   rm -f conftest.er1
40338   cat conftest.err >&5
40339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40340   (exit $ac_status); } &&
40341          { ac_try='test -z "$ac_c_werror_flag"
40342                          || test ! -s conftest.err'
40343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40344   (eval $ac_try) 2>&5
40345   ac_status=$?
40346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347   (exit $ac_status); }; } &&
40348          { ac_try='test -s conftest.$ac_objext'
40349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40350   (eval $ac_try) 2>&5
40351   ac_status=$?
40352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353   (exit $ac_status); }; }; then
40354   ac_hi=$ac_mid; break
40355 else
40356   echo "$as_me: failed program was:" >&5
40357 sed 's/^/| /' conftest.$ac_ext >&5
40358
40359 ac_lo=`expr $ac_mid + 1`
40360                     if test $ac_lo -le $ac_mid; then
40361                       ac_lo= ac_hi=
40362                       break
40363                     fi
40364                     ac_mid=`expr 2 '*' $ac_mid + 1`
40365 fi
40366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40367   done
40368 else
40369   echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 cat >conftest.$ac_ext <<_ACEOF
40373 /* confdefs.h.  */
40374 _ACEOF
40375 cat confdefs.h >>conftest.$ac_ext
40376 cat >>conftest.$ac_ext <<_ACEOF
40377 /* end confdefs.h.  */
40378 $ac_includes_default
40379 int
40380 main ()
40381 {
40382 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40383 test_array [0] = 0
40384
40385   ;
40386   return 0;
40387 }
40388 _ACEOF
40389 rm -f conftest.$ac_objext
40390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40391   (eval $ac_compile) 2>conftest.er1
40392   ac_status=$?
40393   grep -v '^ *+' conftest.er1 >conftest.err
40394   rm -f conftest.er1
40395   cat conftest.err >&5
40396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397   (exit $ac_status); } &&
40398          { ac_try='test -z "$ac_c_werror_flag"
40399                          || test ! -s conftest.err'
40400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401   (eval $ac_try) 2>&5
40402   ac_status=$?
40403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404   (exit $ac_status); }; } &&
40405          { ac_try='test -s conftest.$ac_objext'
40406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40407   (eval $ac_try) 2>&5
40408   ac_status=$?
40409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40410   (exit $ac_status); }; }; then
40411   ac_hi=-1 ac_mid=-1
40412   while :; do
40413     cat >conftest.$ac_ext <<_ACEOF
40414 /* confdefs.h.  */
40415 _ACEOF
40416 cat confdefs.h >>conftest.$ac_ext
40417 cat >>conftest.$ac_ext <<_ACEOF
40418 /* end confdefs.h.  */
40419 $ac_includes_default
40420 int
40421 main ()
40422 {
40423 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40424 test_array [0] = 0
40425
40426   ;
40427   return 0;
40428 }
40429 _ACEOF
40430 rm -f conftest.$ac_objext
40431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40432   (eval $ac_compile) 2>conftest.er1
40433   ac_status=$?
40434   grep -v '^ *+' conftest.er1 >conftest.err
40435   rm -f conftest.er1
40436   cat conftest.err >&5
40437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40438   (exit $ac_status); } &&
40439          { ac_try='test -z "$ac_c_werror_flag"
40440                          || test ! -s conftest.err'
40441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40442   (eval $ac_try) 2>&5
40443   ac_status=$?
40444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40445   (exit $ac_status); }; } &&
40446          { ac_try='test -s conftest.$ac_objext'
40447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40448   (eval $ac_try) 2>&5
40449   ac_status=$?
40450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40451   (exit $ac_status); }; }; then
40452   ac_lo=$ac_mid; break
40453 else
40454   echo "$as_me: failed program was:" >&5
40455 sed 's/^/| /' conftest.$ac_ext >&5
40456
40457 ac_hi=`expr '(' $ac_mid ')' - 1`
40458                        if test $ac_mid -le $ac_hi; then
40459                          ac_lo= ac_hi=
40460                          break
40461                        fi
40462                        ac_mid=`expr 2 '*' $ac_mid`
40463 fi
40464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40465   done
40466 else
40467   echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40469
40470 ac_lo= ac_hi=
40471 fi
40472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40473 fi
40474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40475 # Binary search between lo and hi bounds.
40476 while test "x$ac_lo" != "x$ac_hi"; do
40477   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40478   cat >conftest.$ac_ext <<_ACEOF
40479 /* confdefs.h.  */
40480 _ACEOF
40481 cat confdefs.h >>conftest.$ac_ext
40482 cat >>conftest.$ac_ext <<_ACEOF
40483 /* end confdefs.h.  */
40484 $ac_includes_default
40485 int
40486 main ()
40487 {
40488 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40489 test_array [0] = 0
40490
40491   ;
40492   return 0;
40493 }
40494 _ACEOF
40495 rm -f conftest.$ac_objext
40496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40497   (eval $ac_compile) 2>conftest.er1
40498   ac_status=$?
40499   grep -v '^ *+' conftest.er1 >conftest.err
40500   rm -f conftest.er1
40501   cat conftest.err >&5
40502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40503   (exit $ac_status); } &&
40504          { ac_try='test -z "$ac_c_werror_flag"
40505                          || test ! -s conftest.err'
40506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507   (eval $ac_try) 2>&5
40508   ac_status=$?
40509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510   (exit $ac_status); }; } &&
40511          { ac_try='test -s conftest.$ac_objext'
40512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513   (eval $ac_try) 2>&5
40514   ac_status=$?
40515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516   (exit $ac_status); }; }; then
40517   ac_hi=$ac_mid
40518 else
40519   echo "$as_me: failed program was:" >&5
40520 sed 's/^/| /' conftest.$ac_ext >&5
40521
40522 ac_lo=`expr '(' $ac_mid ')' + 1`
40523 fi
40524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40525 done
40526 case $ac_lo in
40527 ?*) ac_cv_sizeof_short=$ac_lo;;
40528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40529 See \`config.log' for more details." >&5
40530 echo "$as_me: error: cannot compute sizeof (short), 77
40531 See \`config.log' for more details." >&2;}
40532    { (exit 1); exit 1; }; } ;;
40533 esac
40534 else
40535   if test "$cross_compiling" = yes; then
40536   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40537 See \`config.log' for more details." >&5
40538 echo "$as_me: error: cannot run test program while cross compiling
40539 See \`config.log' for more details." >&2;}
40540    { (exit 1); exit 1; }; }
40541 else
40542   cat >conftest.$ac_ext <<_ACEOF
40543 /* confdefs.h.  */
40544 _ACEOF
40545 cat confdefs.h >>conftest.$ac_ext
40546 cat >>conftest.$ac_ext <<_ACEOF
40547 /* end confdefs.h.  */
40548 $ac_includes_default
40549 long longval () { return (long) (sizeof (short)); }
40550 unsigned long ulongval () { return (long) (sizeof (short)); }
40551 #include <stdio.h>
40552 #include <stdlib.h>
40553 int
40554 main ()
40555 {
40556
40557   FILE *f = fopen ("conftest.val", "w");
40558   if (! f)
40559     exit (1);
40560   if (((long) (sizeof (short))) < 0)
40561     {
40562       long i = longval ();
40563       if (i != ((long) (sizeof (short))))
40564         exit (1);
40565       fprintf (f, "%ld\n", i);
40566     }
40567   else
40568     {
40569       unsigned long i = ulongval ();
40570       if (i != ((long) (sizeof (short))))
40571         exit (1);
40572       fprintf (f, "%lu\n", i);
40573     }
40574   exit (ferror (f) || fclose (f) != 0);
40575
40576   ;
40577   return 0;
40578 }
40579 _ACEOF
40580 rm -f conftest$ac_exeext
40581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40582   (eval $ac_link) 2>&5
40583   ac_status=$?
40584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40587   (eval $ac_try) 2>&5
40588   ac_status=$?
40589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40590   (exit $ac_status); }; }; then
40591   ac_cv_sizeof_short=`cat conftest.val`
40592 else
40593   echo "$as_me: program exited with status $ac_status" >&5
40594 echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40596
40597 ( exit $ac_status )
40598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40599 See \`config.log' for more details." >&5
40600 echo "$as_me: error: cannot compute sizeof (short), 77
40601 See \`config.log' for more details." >&2;}
40602    { (exit 1); exit 1; }; }
40603 fi
40604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40605 fi
40606 fi
40607 rm -f conftest.val
40608 else
40609   ac_cv_sizeof_short=0
40610 fi
40611 fi
40612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40613 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40614 cat >>confdefs.h <<_ACEOF
40615 #define SIZEOF_SHORT $ac_cv_sizeof_short
40616 _ACEOF
40617
40618
40619 echo "$as_me:$LINENO: checking for int" >&5
40620 echo $ECHO_N "checking for int... $ECHO_C" >&6
40621 if test "${ac_cv_type_int+set}" = set; then
40622   echo $ECHO_N "(cached) $ECHO_C" >&6
40623 else
40624   cat >conftest.$ac_ext <<_ACEOF
40625 /* confdefs.h.  */
40626 _ACEOF
40627 cat confdefs.h >>conftest.$ac_ext
40628 cat >>conftest.$ac_ext <<_ACEOF
40629 /* end confdefs.h.  */
40630 $ac_includes_default
40631 int
40632 main ()
40633 {
40634 if ((int *) 0)
40635   return 0;
40636 if (sizeof (int))
40637   return 0;
40638   ;
40639   return 0;
40640 }
40641 _ACEOF
40642 rm -f conftest.$ac_objext
40643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40644   (eval $ac_compile) 2>conftest.er1
40645   ac_status=$?
40646   grep -v '^ *+' conftest.er1 >conftest.err
40647   rm -f conftest.er1
40648   cat conftest.err >&5
40649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650   (exit $ac_status); } &&
40651          { ac_try='test -z "$ac_c_werror_flag"
40652                          || test ! -s conftest.err'
40653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40654   (eval $ac_try) 2>&5
40655   ac_status=$?
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); }; } &&
40658          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
40664   ac_cv_type_int=yes
40665 else
40666   echo "$as_me: failed program was:" >&5
40667 sed 's/^/| /' conftest.$ac_ext >&5
40668
40669 ac_cv_type_int=no
40670 fi
40671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40672 fi
40673 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40674 echo "${ECHO_T}$ac_cv_type_int" >&6
40675
40676 echo "$as_me:$LINENO: checking size of int" >&5
40677 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40678 if test "${ac_cv_sizeof_int+set}" = set; then
40679   echo $ECHO_N "(cached) $ECHO_C" >&6
40680 else
40681   if test "$ac_cv_type_int" = yes; then
40682   # The cast to unsigned long works around a bug in the HP C Compiler
40683   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40684   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40685   # This bug is HP SR number 8606223364.
40686   if test "$cross_compiling" = yes; then
40687   # Depending upon the size, compute the lo and hi bounds.
40688 cat >conftest.$ac_ext <<_ACEOF
40689 /* confdefs.h.  */
40690 _ACEOF
40691 cat confdefs.h >>conftest.$ac_ext
40692 cat >>conftest.$ac_ext <<_ACEOF
40693 /* end confdefs.h.  */
40694 $ac_includes_default
40695 int
40696 main ()
40697 {
40698 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40699 test_array [0] = 0
40700
40701   ;
40702   return 0;
40703 }
40704 _ACEOF
40705 rm -f conftest.$ac_objext
40706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40707   (eval $ac_compile) 2>conftest.er1
40708   ac_status=$?
40709   grep -v '^ *+' conftest.er1 >conftest.err
40710   rm -f conftest.er1
40711   cat conftest.err >&5
40712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40713   (exit $ac_status); } &&
40714          { ac_try='test -z "$ac_c_werror_flag"
40715                          || test ! -s conftest.err'
40716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40717   (eval $ac_try) 2>&5
40718   ac_status=$?
40719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40720   (exit $ac_status); }; } &&
40721          { ac_try='test -s conftest.$ac_objext'
40722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40723   (eval $ac_try) 2>&5
40724   ac_status=$?
40725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726   (exit $ac_status); }; }; then
40727   ac_lo=0 ac_mid=0
40728   while :; do
40729     cat >conftest.$ac_ext <<_ACEOF
40730 /* confdefs.h.  */
40731 _ACEOF
40732 cat confdefs.h >>conftest.$ac_ext
40733 cat >>conftest.$ac_ext <<_ACEOF
40734 /* end confdefs.h.  */
40735 $ac_includes_default
40736 int
40737 main ()
40738 {
40739 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40740 test_array [0] = 0
40741
40742   ;
40743   return 0;
40744 }
40745 _ACEOF
40746 rm -f conftest.$ac_objext
40747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40748   (eval $ac_compile) 2>conftest.er1
40749   ac_status=$?
40750   grep -v '^ *+' conftest.er1 >conftest.err
40751   rm -f conftest.er1
40752   cat conftest.err >&5
40753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754   (exit $ac_status); } &&
40755          { ac_try='test -z "$ac_c_werror_flag"
40756                          || test ! -s conftest.err'
40757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40758   (eval $ac_try) 2>&5
40759   ac_status=$?
40760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761   (exit $ac_status); }; } &&
40762          { ac_try='test -s conftest.$ac_objext'
40763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40764   (eval $ac_try) 2>&5
40765   ac_status=$?
40766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40767   (exit $ac_status); }; }; then
40768   ac_hi=$ac_mid; break
40769 else
40770   echo "$as_me: failed program was:" >&5
40771 sed 's/^/| /' conftest.$ac_ext >&5
40772
40773 ac_lo=`expr $ac_mid + 1`
40774                     if test $ac_lo -le $ac_mid; then
40775                       ac_lo= ac_hi=
40776                       break
40777                     fi
40778                     ac_mid=`expr 2 '*' $ac_mid + 1`
40779 fi
40780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40781   done
40782 else
40783   echo "$as_me: failed program was:" >&5
40784 sed 's/^/| /' conftest.$ac_ext >&5
40785
40786 cat >conftest.$ac_ext <<_ACEOF
40787 /* confdefs.h.  */
40788 _ACEOF
40789 cat confdefs.h >>conftest.$ac_ext
40790 cat >>conftest.$ac_ext <<_ACEOF
40791 /* end confdefs.h.  */
40792 $ac_includes_default
40793 int
40794 main ()
40795 {
40796 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
40797 test_array [0] = 0
40798
40799   ;
40800   return 0;
40801 }
40802 _ACEOF
40803 rm -f conftest.$ac_objext
40804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40805   (eval $ac_compile) 2>conftest.er1
40806   ac_status=$?
40807   grep -v '^ *+' conftest.er1 >conftest.err
40808   rm -f conftest.er1
40809   cat conftest.err >&5
40810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811   (exit $ac_status); } &&
40812          { ac_try='test -z "$ac_c_werror_flag"
40813                          || test ! -s conftest.err'
40814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815   (eval $ac_try) 2>&5
40816   ac_status=$?
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); }; } &&
40819          { ac_try='test -s conftest.$ac_objext'
40820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40821   (eval $ac_try) 2>&5
40822   ac_status=$?
40823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824   (exit $ac_status); }; }; then
40825   ac_hi=-1 ac_mid=-1
40826   while :; do
40827     cat >conftest.$ac_ext <<_ACEOF
40828 /* confdefs.h.  */
40829 _ACEOF
40830 cat confdefs.h >>conftest.$ac_ext
40831 cat >>conftest.$ac_ext <<_ACEOF
40832 /* end confdefs.h.  */
40833 $ac_includes_default
40834 int
40835 main ()
40836 {
40837 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
40838 test_array [0] = 0
40839
40840   ;
40841   return 0;
40842 }
40843 _ACEOF
40844 rm -f conftest.$ac_objext
40845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40846   (eval $ac_compile) 2>conftest.er1
40847   ac_status=$?
40848   grep -v '^ *+' conftest.er1 >conftest.err
40849   rm -f conftest.er1
40850   cat conftest.err >&5
40851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852   (exit $ac_status); } &&
40853          { ac_try='test -z "$ac_c_werror_flag"
40854                          || test ! -s conftest.err'
40855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40856   (eval $ac_try) 2>&5
40857   ac_status=$?
40858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40859   (exit $ac_status); }; } &&
40860          { ac_try='test -s conftest.$ac_objext'
40861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40862   (eval $ac_try) 2>&5
40863   ac_status=$?
40864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865   (exit $ac_status); }; }; then
40866   ac_lo=$ac_mid; break
40867 else
40868   echo "$as_me: failed program was:" >&5
40869 sed 's/^/| /' conftest.$ac_ext >&5
40870
40871 ac_hi=`expr '(' $ac_mid ')' - 1`
40872                        if test $ac_mid -le $ac_hi; then
40873                          ac_lo= ac_hi=
40874                          break
40875                        fi
40876                        ac_mid=`expr 2 '*' $ac_mid`
40877 fi
40878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40879   done
40880 else
40881   echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40883
40884 ac_lo= ac_hi=
40885 fi
40886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40887 fi
40888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40889 # Binary search between lo and hi bounds.
40890 while test "x$ac_lo" != "x$ac_hi"; do
40891   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40892   cat >conftest.$ac_ext <<_ACEOF
40893 /* confdefs.h.  */
40894 _ACEOF
40895 cat confdefs.h >>conftest.$ac_ext
40896 cat >>conftest.$ac_ext <<_ACEOF
40897 /* end confdefs.h.  */
40898 $ac_includes_default
40899 int
40900 main ()
40901 {
40902 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40903 test_array [0] = 0
40904
40905   ;
40906   return 0;
40907 }
40908 _ACEOF
40909 rm -f conftest.$ac_objext
40910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40911   (eval $ac_compile) 2>conftest.er1
40912   ac_status=$?
40913   grep -v '^ *+' conftest.er1 >conftest.err
40914   rm -f conftest.er1
40915   cat conftest.err >&5
40916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917   (exit $ac_status); } &&
40918          { ac_try='test -z "$ac_c_werror_flag"
40919                          || test ! -s conftest.err'
40920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921   (eval $ac_try) 2>&5
40922   ac_status=$?
40923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924   (exit $ac_status); }; } &&
40925          { ac_try='test -s conftest.$ac_objext'
40926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927   (eval $ac_try) 2>&5
40928   ac_status=$?
40929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930   (exit $ac_status); }; }; then
40931   ac_hi=$ac_mid
40932 else
40933   echo "$as_me: failed program was:" >&5
40934 sed 's/^/| /' conftest.$ac_ext >&5
40935
40936 ac_lo=`expr '(' $ac_mid ')' + 1`
40937 fi
40938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40939 done
40940 case $ac_lo in
40941 ?*) ac_cv_sizeof_int=$ac_lo;;
40942 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
40943 See \`config.log' for more details." >&5
40944 echo "$as_me: error: cannot compute sizeof (int), 77
40945 See \`config.log' for more details." >&2;}
40946    { (exit 1); exit 1; }; } ;;
40947 esac
40948 else
40949   if test "$cross_compiling" = yes; then
40950   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40951 See \`config.log' for more details." >&5
40952 echo "$as_me: error: cannot run test program while cross compiling
40953 See \`config.log' for more details." >&2;}
40954    { (exit 1); exit 1; }; }
40955 else
40956   cat >conftest.$ac_ext <<_ACEOF
40957 /* confdefs.h.  */
40958 _ACEOF
40959 cat confdefs.h >>conftest.$ac_ext
40960 cat >>conftest.$ac_ext <<_ACEOF
40961 /* end confdefs.h.  */
40962 $ac_includes_default
40963 long longval () { return (long) (sizeof (int)); }
40964 unsigned long ulongval () { return (long) (sizeof (int)); }
40965 #include <stdio.h>
40966 #include <stdlib.h>
40967 int
40968 main ()
40969 {
40970
40971   FILE *f = fopen ("conftest.val", "w");
40972   if (! f)
40973     exit (1);
40974   if (((long) (sizeof (int))) < 0)
40975     {
40976       long i = longval ();
40977       if (i != ((long) (sizeof (int))))
40978         exit (1);
40979       fprintf (f, "%ld\n", i);
40980     }
40981   else
40982     {
40983       unsigned long i = ulongval ();
40984       if (i != ((long) (sizeof (int))))
40985         exit (1);
40986       fprintf (f, "%lu\n", i);
40987     }
40988   exit (ferror (f) || fclose (f) != 0);
40989
40990   ;
40991   return 0;
40992 }
40993 _ACEOF
40994 rm -f conftest$ac_exeext
40995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40996   (eval $ac_link) 2>&5
40997   ac_status=$?
40998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001   (eval $ac_try) 2>&5
41002   ac_status=$?
41003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004   (exit $ac_status); }; }; then
41005   ac_cv_sizeof_int=`cat conftest.val`
41006 else
41007   echo "$as_me: program exited with status $ac_status" >&5
41008 echo "$as_me: failed program was:" >&5
41009 sed 's/^/| /' conftest.$ac_ext >&5
41010
41011 ( exit $ac_status )
41012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41013 See \`config.log' for more details." >&5
41014 echo "$as_me: error: cannot compute sizeof (int), 77
41015 See \`config.log' for more details." >&2;}
41016    { (exit 1); exit 1; }; }
41017 fi
41018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41019 fi
41020 fi
41021 rm -f conftest.val
41022 else
41023   ac_cv_sizeof_int=0
41024 fi
41025 fi
41026 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41027 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41028 cat >>confdefs.h <<_ACEOF
41029 #define SIZEOF_INT $ac_cv_sizeof_int
41030 _ACEOF
41031
41032
41033 echo "$as_me:$LINENO: checking for long" >&5
41034 echo $ECHO_N "checking for long... $ECHO_C" >&6
41035 if test "${ac_cv_type_long+set}" = set; then
41036   echo $ECHO_N "(cached) $ECHO_C" >&6
41037 else
41038   cat >conftest.$ac_ext <<_ACEOF
41039 /* confdefs.h.  */
41040 _ACEOF
41041 cat confdefs.h >>conftest.$ac_ext
41042 cat >>conftest.$ac_ext <<_ACEOF
41043 /* end confdefs.h.  */
41044 $ac_includes_default
41045 int
41046 main ()
41047 {
41048 if ((long *) 0)
41049   return 0;
41050 if (sizeof (long))
41051   return 0;
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext
41057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41058   (eval $ac_compile) 2>conftest.er1
41059   ac_status=$?
41060   grep -v '^ *+' conftest.er1 >conftest.err
41061   rm -f conftest.er1
41062   cat conftest.err >&5
41063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064   (exit $ac_status); } &&
41065          { ac_try='test -z "$ac_c_werror_flag"
41066                          || test ! -s conftest.err'
41067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068   (eval $ac_try) 2>&5
41069   ac_status=$?
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); }; } &&
41072          { ac_try='test -s conftest.$ac_objext'
41073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074   (eval $ac_try) 2>&5
41075   ac_status=$?
41076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077   (exit $ac_status); }; }; then
41078   ac_cv_type_long=yes
41079 else
41080   echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41082
41083 ac_cv_type_long=no
41084 fi
41085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41086 fi
41087 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41088 echo "${ECHO_T}$ac_cv_type_long" >&6
41089
41090 echo "$as_me:$LINENO: checking size of long" >&5
41091 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41092 if test "${ac_cv_sizeof_long+set}" = set; then
41093   echo $ECHO_N "(cached) $ECHO_C" >&6
41094 else
41095   if test "$ac_cv_type_long" = yes; then
41096   # The cast to unsigned long works around a bug in the HP C Compiler
41097   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41098   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41099   # This bug is HP SR number 8606223364.
41100   if test "$cross_compiling" = yes; then
41101   # Depending upon the size, compute the lo and hi bounds.
41102 cat >conftest.$ac_ext <<_ACEOF
41103 /* confdefs.h.  */
41104 _ACEOF
41105 cat confdefs.h >>conftest.$ac_ext
41106 cat >>conftest.$ac_ext <<_ACEOF
41107 /* end confdefs.h.  */
41108 $ac_includes_default
41109 int
41110 main ()
41111 {
41112 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41113 test_array [0] = 0
41114
41115   ;
41116   return 0;
41117 }
41118 _ACEOF
41119 rm -f conftest.$ac_objext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41121   (eval $ac_compile) 2>conftest.er1
41122   ac_status=$?
41123   grep -v '^ *+' conftest.er1 >conftest.err
41124   rm -f conftest.er1
41125   cat conftest.err >&5
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); } &&
41128          { ac_try='test -z "$ac_c_werror_flag"
41129                          || test ! -s conftest.err'
41130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131   (eval $ac_try) 2>&5
41132   ac_status=$?
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); }; } &&
41135          { ac_try='test -s conftest.$ac_objext'
41136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137   (eval $ac_try) 2>&5
41138   ac_status=$?
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); }; }; then
41141   ac_lo=0 ac_mid=0
41142   while :; do
41143     cat >conftest.$ac_ext <<_ACEOF
41144 /* confdefs.h.  */
41145 _ACEOF
41146 cat confdefs.h >>conftest.$ac_ext
41147 cat >>conftest.$ac_ext <<_ACEOF
41148 /* end confdefs.h.  */
41149 $ac_includes_default
41150 int
41151 main ()
41152 {
41153 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41154 test_array [0] = 0
41155
41156   ;
41157   return 0;
41158 }
41159 _ACEOF
41160 rm -f conftest.$ac_objext
41161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41162   (eval $ac_compile) 2>conftest.er1
41163   ac_status=$?
41164   grep -v '^ *+' conftest.er1 >conftest.err
41165   rm -f conftest.er1
41166   cat conftest.err >&5
41167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168   (exit $ac_status); } &&
41169          { ac_try='test -z "$ac_c_werror_flag"
41170                          || test ! -s conftest.err'
41171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172   (eval $ac_try) 2>&5
41173   ac_status=$?
41174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175   (exit $ac_status); }; } &&
41176          { ac_try='test -s conftest.$ac_objext'
41177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41178   (eval $ac_try) 2>&5
41179   ac_status=$?
41180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181   (exit $ac_status); }; }; then
41182   ac_hi=$ac_mid; break
41183 else
41184   echo "$as_me: failed program was:" >&5
41185 sed 's/^/| /' conftest.$ac_ext >&5
41186
41187 ac_lo=`expr $ac_mid + 1`
41188                     if test $ac_lo -le $ac_mid; then
41189                       ac_lo= ac_hi=
41190                       break
41191                     fi
41192                     ac_mid=`expr 2 '*' $ac_mid + 1`
41193 fi
41194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41195   done
41196 else
41197   echo "$as_me: failed program was:" >&5
41198 sed 's/^/| /' conftest.$ac_ext >&5
41199
41200 cat >conftest.$ac_ext <<_ACEOF
41201 /* confdefs.h.  */
41202 _ACEOF
41203 cat confdefs.h >>conftest.$ac_ext
41204 cat >>conftest.$ac_ext <<_ACEOF
41205 /* end confdefs.h.  */
41206 $ac_includes_default
41207 int
41208 main ()
41209 {
41210 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41211 test_array [0] = 0
41212
41213   ;
41214   return 0;
41215 }
41216 _ACEOF
41217 rm -f conftest.$ac_objext
41218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41219   (eval $ac_compile) 2>conftest.er1
41220   ac_status=$?
41221   grep -v '^ *+' conftest.er1 >conftest.err
41222   rm -f conftest.er1
41223   cat conftest.err >&5
41224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225   (exit $ac_status); } &&
41226          { ac_try='test -z "$ac_c_werror_flag"
41227                          || test ! -s conftest.err'
41228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41229   (eval $ac_try) 2>&5
41230   ac_status=$?
41231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); }; } &&
41233          { ac_try='test -s conftest.$ac_objext'
41234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41235   (eval $ac_try) 2>&5
41236   ac_status=$?
41237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238   (exit $ac_status); }; }; then
41239   ac_hi=-1 ac_mid=-1
41240   while :; do
41241     cat >conftest.$ac_ext <<_ACEOF
41242 /* confdefs.h.  */
41243 _ACEOF
41244 cat confdefs.h >>conftest.$ac_ext
41245 cat >>conftest.$ac_ext <<_ACEOF
41246 /* end confdefs.h.  */
41247 $ac_includes_default
41248 int
41249 main ()
41250 {
41251 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41252 test_array [0] = 0
41253
41254   ;
41255   return 0;
41256 }
41257 _ACEOF
41258 rm -f conftest.$ac_objext
41259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41260   (eval $ac_compile) 2>conftest.er1
41261   ac_status=$?
41262   grep -v '^ *+' conftest.er1 >conftest.err
41263   rm -f conftest.er1
41264   cat conftest.err >&5
41265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266   (exit $ac_status); } &&
41267          { ac_try='test -z "$ac_c_werror_flag"
41268                          || test ! -s conftest.err'
41269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270   (eval $ac_try) 2>&5
41271   ac_status=$?
41272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273   (exit $ac_status); }; } &&
41274          { ac_try='test -s conftest.$ac_objext'
41275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41276   (eval $ac_try) 2>&5
41277   ac_status=$?
41278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41279   (exit $ac_status); }; }; then
41280   ac_lo=$ac_mid; break
41281 else
41282   echo "$as_me: failed program was:" >&5
41283 sed 's/^/| /' conftest.$ac_ext >&5
41284
41285 ac_hi=`expr '(' $ac_mid ')' - 1`
41286                        if test $ac_mid -le $ac_hi; then
41287                          ac_lo= ac_hi=
41288                          break
41289                        fi
41290                        ac_mid=`expr 2 '*' $ac_mid`
41291 fi
41292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41293   done
41294 else
41295   echo "$as_me: failed program was:" >&5
41296 sed 's/^/| /' conftest.$ac_ext >&5
41297
41298 ac_lo= ac_hi=
41299 fi
41300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41301 fi
41302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41303 # Binary search between lo and hi bounds.
41304 while test "x$ac_lo" != "x$ac_hi"; do
41305   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41306   cat >conftest.$ac_ext <<_ACEOF
41307 /* confdefs.h.  */
41308 _ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h.  */
41312 $ac_includes_default
41313 int
41314 main ()
41315 {
41316 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41317 test_array [0] = 0
41318
41319   ;
41320   return 0;
41321 }
41322 _ACEOF
41323 rm -f conftest.$ac_objext
41324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41325   (eval $ac_compile) 2>conftest.er1
41326   ac_status=$?
41327   grep -v '^ *+' conftest.er1 >conftest.err
41328   rm -f conftest.er1
41329   cat conftest.err >&5
41330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41331   (exit $ac_status); } &&
41332          { ac_try='test -z "$ac_c_werror_flag"
41333                          || test ! -s conftest.err'
41334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41335   (eval $ac_try) 2>&5
41336   ac_status=$?
41337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338   (exit $ac_status); }; } &&
41339          { ac_try='test -s conftest.$ac_objext'
41340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41341   (eval $ac_try) 2>&5
41342   ac_status=$?
41343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344   (exit $ac_status); }; }; then
41345   ac_hi=$ac_mid
41346 else
41347   echo "$as_me: failed program was:" >&5
41348 sed 's/^/| /' conftest.$ac_ext >&5
41349
41350 ac_lo=`expr '(' $ac_mid ')' + 1`
41351 fi
41352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41353 done
41354 case $ac_lo in
41355 ?*) ac_cv_sizeof_long=$ac_lo;;
41356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41357 See \`config.log' for more details." >&5
41358 echo "$as_me: error: cannot compute sizeof (long), 77
41359 See \`config.log' for more details." >&2;}
41360    { (exit 1); exit 1; }; } ;;
41361 esac
41362 else
41363   if test "$cross_compiling" = yes; then
41364   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41365 See \`config.log' for more details." >&5
41366 echo "$as_me: error: cannot run test program while cross compiling
41367 See \`config.log' for more details." >&2;}
41368    { (exit 1); exit 1; }; }
41369 else
41370   cat >conftest.$ac_ext <<_ACEOF
41371 /* confdefs.h.  */
41372 _ACEOF
41373 cat confdefs.h >>conftest.$ac_ext
41374 cat >>conftest.$ac_ext <<_ACEOF
41375 /* end confdefs.h.  */
41376 $ac_includes_default
41377 long longval () { return (long) (sizeof (long)); }
41378 unsigned long ulongval () { return (long) (sizeof (long)); }
41379 #include <stdio.h>
41380 #include <stdlib.h>
41381 int
41382 main ()
41383 {
41384
41385   FILE *f = fopen ("conftest.val", "w");
41386   if (! f)
41387     exit (1);
41388   if (((long) (sizeof (long))) < 0)
41389     {
41390       long i = longval ();
41391       if (i != ((long) (sizeof (long))))
41392         exit (1);
41393       fprintf (f, "%ld\n", i);
41394     }
41395   else
41396     {
41397       unsigned long i = ulongval ();
41398       if (i != ((long) (sizeof (long))))
41399         exit (1);
41400       fprintf (f, "%lu\n", i);
41401     }
41402   exit (ferror (f) || fclose (f) != 0);
41403
41404   ;
41405   return 0;
41406 }
41407 _ACEOF
41408 rm -f conftest$ac_exeext
41409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41410   (eval $ac_link) 2>&5
41411   ac_status=$?
41412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41415   (eval $ac_try) 2>&5
41416   ac_status=$?
41417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418   (exit $ac_status); }; }; then
41419   ac_cv_sizeof_long=`cat conftest.val`
41420 else
41421   echo "$as_me: program exited with status $ac_status" >&5
41422 echo "$as_me: failed program was:" >&5
41423 sed 's/^/| /' conftest.$ac_ext >&5
41424
41425 ( exit $ac_status )
41426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41427 See \`config.log' for more details." >&5
41428 echo "$as_me: error: cannot compute sizeof (long), 77
41429 See \`config.log' for more details." >&2;}
41430    { (exit 1); exit 1; }; }
41431 fi
41432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41433 fi
41434 fi
41435 rm -f conftest.val
41436 else
41437   ac_cv_sizeof_long=0
41438 fi
41439 fi
41440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41441 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41442 cat >>confdefs.h <<_ACEOF
41443 #define SIZEOF_LONG $ac_cv_sizeof_long
41444 _ACEOF
41445
41446
41447 echo "$as_me:$LINENO: checking for wchar_t" >&5
41448 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41449 if test "${ac_cv_type_wchar_t+set}" = set; then
41450   echo $ECHO_N "(cached) $ECHO_C" >&6
41451 else
41452   cat >conftest.$ac_ext <<_ACEOF
41453 /* confdefs.h.  */
41454 _ACEOF
41455 cat confdefs.h >>conftest.$ac_ext
41456 cat >>conftest.$ac_ext <<_ACEOF
41457 /* end confdefs.h.  */
41458 $ac_includes_default
41459 int
41460 main ()
41461 {
41462 if ((wchar_t *) 0)
41463   return 0;
41464 if (sizeof (wchar_t))
41465   return 0;
41466   ;
41467   return 0;
41468 }
41469 _ACEOF
41470 rm -f conftest.$ac_objext
41471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41472   (eval $ac_compile) 2>conftest.er1
41473   ac_status=$?
41474   grep -v '^ *+' conftest.er1 >conftest.err
41475   rm -f conftest.er1
41476   cat conftest.err >&5
41477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478   (exit $ac_status); } &&
41479          { ac_try='test -z "$ac_c_werror_flag"
41480                          || test ! -s conftest.err'
41481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41482   (eval $ac_try) 2>&5
41483   ac_status=$?
41484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485   (exit $ac_status); }; } &&
41486          { ac_try='test -s conftest.$ac_objext'
41487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41488   (eval $ac_try) 2>&5
41489   ac_status=$?
41490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41491   (exit $ac_status); }; }; then
41492   ac_cv_type_wchar_t=yes
41493 else
41494   echo "$as_me: failed program was:" >&5
41495 sed 's/^/| /' conftest.$ac_ext >&5
41496
41497 ac_cv_type_wchar_t=no
41498 fi
41499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41500 fi
41501 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41502 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41503
41504 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41505 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41506 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41507   echo $ECHO_N "(cached) $ECHO_C" >&6
41508 else
41509   if test "$ac_cv_type_wchar_t" = yes; then
41510   # The cast to unsigned long works around a bug in the HP C Compiler
41511   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41512   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41513   # This bug is HP SR number 8606223364.
41514   if test "$cross_compiling" = yes; then
41515   # Depending upon the size, compute the lo and hi bounds.
41516 cat >conftest.$ac_ext <<_ACEOF
41517 /* confdefs.h.  */
41518 _ACEOF
41519 cat confdefs.h >>conftest.$ac_ext
41520 cat >>conftest.$ac_ext <<_ACEOF
41521 /* end confdefs.h.  */
41522 $ac_includes_default
41523 int
41524 main ()
41525 {
41526 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41527 test_array [0] = 0
41528
41529   ;
41530   return 0;
41531 }
41532 _ACEOF
41533 rm -f conftest.$ac_objext
41534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41535   (eval $ac_compile) 2>conftest.er1
41536   ac_status=$?
41537   grep -v '^ *+' conftest.er1 >conftest.err
41538   rm -f conftest.er1
41539   cat conftest.err >&5
41540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541   (exit $ac_status); } &&
41542          { ac_try='test -z "$ac_c_werror_flag"
41543                          || test ! -s conftest.err'
41544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41545   (eval $ac_try) 2>&5
41546   ac_status=$?
41547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41548   (exit $ac_status); }; } &&
41549          { ac_try='test -s conftest.$ac_objext'
41550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41551   (eval $ac_try) 2>&5
41552   ac_status=$?
41553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41554   (exit $ac_status); }; }; then
41555   ac_lo=0 ac_mid=0
41556   while :; do
41557     cat >conftest.$ac_ext <<_ACEOF
41558 /* confdefs.h.  */
41559 _ACEOF
41560 cat confdefs.h >>conftest.$ac_ext
41561 cat >>conftest.$ac_ext <<_ACEOF
41562 /* end confdefs.h.  */
41563 $ac_includes_default
41564 int
41565 main ()
41566 {
41567 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41568 test_array [0] = 0
41569
41570   ;
41571   return 0;
41572 }
41573 _ACEOF
41574 rm -f conftest.$ac_objext
41575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41576   (eval $ac_compile) 2>conftest.er1
41577   ac_status=$?
41578   grep -v '^ *+' conftest.er1 >conftest.err
41579   rm -f conftest.er1
41580   cat conftest.err >&5
41581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41582   (exit $ac_status); } &&
41583          { ac_try='test -z "$ac_c_werror_flag"
41584                          || test ! -s conftest.err'
41585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41586   (eval $ac_try) 2>&5
41587   ac_status=$?
41588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41589   (exit $ac_status); }; } &&
41590          { ac_try='test -s conftest.$ac_objext'
41591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41592   (eval $ac_try) 2>&5
41593   ac_status=$?
41594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595   (exit $ac_status); }; }; then
41596   ac_hi=$ac_mid; break
41597 else
41598   echo "$as_me: failed program was:" >&5
41599 sed 's/^/| /' conftest.$ac_ext >&5
41600
41601 ac_lo=`expr $ac_mid + 1`
41602                     if test $ac_lo -le $ac_mid; then
41603                       ac_lo= ac_hi=
41604                       break
41605                     fi
41606                     ac_mid=`expr 2 '*' $ac_mid + 1`
41607 fi
41608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41609   done
41610 else
41611   echo "$as_me: failed program was:" >&5
41612 sed 's/^/| /' conftest.$ac_ext >&5
41613
41614 cat >conftest.$ac_ext <<_ACEOF
41615 /* confdefs.h.  */
41616 _ACEOF
41617 cat confdefs.h >>conftest.$ac_ext
41618 cat >>conftest.$ac_ext <<_ACEOF
41619 /* end confdefs.h.  */
41620 $ac_includes_default
41621 int
41622 main ()
41623 {
41624 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41625 test_array [0] = 0
41626
41627   ;
41628   return 0;
41629 }
41630 _ACEOF
41631 rm -f conftest.$ac_objext
41632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41633   (eval $ac_compile) 2>conftest.er1
41634   ac_status=$?
41635   grep -v '^ *+' conftest.er1 >conftest.err
41636   rm -f conftest.er1
41637   cat conftest.err >&5
41638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41639   (exit $ac_status); } &&
41640          { ac_try='test -z "$ac_c_werror_flag"
41641                          || test ! -s conftest.err'
41642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643   (eval $ac_try) 2>&5
41644   ac_status=$?
41645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646   (exit $ac_status); }; } &&
41647          { ac_try='test -s conftest.$ac_objext'
41648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41649   (eval $ac_try) 2>&5
41650   ac_status=$?
41651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41652   (exit $ac_status); }; }; then
41653   ac_hi=-1 ac_mid=-1
41654   while :; do
41655     cat >conftest.$ac_ext <<_ACEOF
41656 /* confdefs.h.  */
41657 _ACEOF
41658 cat confdefs.h >>conftest.$ac_ext
41659 cat >>conftest.$ac_ext <<_ACEOF
41660 /* end confdefs.h.  */
41661 $ac_includes_default
41662 int
41663 main ()
41664 {
41665 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41666 test_array [0] = 0
41667
41668   ;
41669   return 0;
41670 }
41671 _ACEOF
41672 rm -f conftest.$ac_objext
41673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41674   (eval $ac_compile) 2>conftest.er1
41675   ac_status=$?
41676   grep -v '^ *+' conftest.er1 >conftest.err
41677   rm -f conftest.er1
41678   cat conftest.err >&5
41679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41680   (exit $ac_status); } &&
41681          { ac_try='test -z "$ac_c_werror_flag"
41682                          || test ! -s conftest.err'
41683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41684   (eval $ac_try) 2>&5
41685   ac_status=$?
41686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41687   (exit $ac_status); }; } &&
41688          { ac_try='test -s conftest.$ac_objext'
41689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41690   (eval $ac_try) 2>&5
41691   ac_status=$?
41692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41693   (exit $ac_status); }; }; then
41694   ac_lo=$ac_mid; break
41695 else
41696   echo "$as_me: failed program was:" >&5
41697 sed 's/^/| /' conftest.$ac_ext >&5
41698
41699 ac_hi=`expr '(' $ac_mid ')' - 1`
41700                        if test $ac_mid -le $ac_hi; then
41701                          ac_lo= ac_hi=
41702                          break
41703                        fi
41704                        ac_mid=`expr 2 '*' $ac_mid`
41705 fi
41706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41707   done
41708 else
41709   echo "$as_me: failed program was:" >&5
41710 sed 's/^/| /' conftest.$ac_ext >&5
41711
41712 ac_lo= ac_hi=
41713 fi
41714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41715 fi
41716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41717 # Binary search between lo and hi bounds.
41718 while test "x$ac_lo" != "x$ac_hi"; do
41719   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41720   cat >conftest.$ac_ext <<_ACEOF
41721 /* confdefs.h.  */
41722 _ACEOF
41723 cat confdefs.h >>conftest.$ac_ext
41724 cat >>conftest.$ac_ext <<_ACEOF
41725 /* end confdefs.h.  */
41726 $ac_includes_default
41727 int
41728 main ()
41729 {
41730 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41731 test_array [0] = 0
41732
41733   ;
41734   return 0;
41735 }
41736 _ACEOF
41737 rm -f conftest.$ac_objext
41738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41739   (eval $ac_compile) 2>conftest.er1
41740   ac_status=$?
41741   grep -v '^ *+' conftest.er1 >conftest.err
41742   rm -f conftest.er1
41743   cat conftest.err >&5
41744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41745   (exit $ac_status); } &&
41746          { ac_try='test -z "$ac_c_werror_flag"
41747                          || test ! -s conftest.err'
41748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41749   (eval $ac_try) 2>&5
41750   ac_status=$?
41751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752   (exit $ac_status); }; } &&
41753          { ac_try='test -s conftest.$ac_objext'
41754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41755   (eval $ac_try) 2>&5
41756   ac_status=$?
41757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41758   (exit $ac_status); }; }; then
41759   ac_hi=$ac_mid
41760 else
41761   echo "$as_me: failed program was:" >&5
41762 sed 's/^/| /' conftest.$ac_ext >&5
41763
41764 ac_lo=`expr '(' $ac_mid ')' + 1`
41765 fi
41766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41767 done
41768 case $ac_lo in
41769 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
41770 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41771 See \`config.log' for more details." >&5
41772 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41773 See \`config.log' for more details." >&2;}
41774    { (exit 1); exit 1; }; } ;;
41775 esac
41776 else
41777   if test "$cross_compiling" = yes; then
41778   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41779 See \`config.log' for more details." >&5
41780 echo "$as_me: error: cannot run test program while cross compiling
41781 See \`config.log' for more details." >&2;}
41782    { (exit 1); exit 1; }; }
41783 else
41784   cat >conftest.$ac_ext <<_ACEOF
41785 /* confdefs.h.  */
41786 _ACEOF
41787 cat confdefs.h >>conftest.$ac_ext
41788 cat >>conftest.$ac_ext <<_ACEOF
41789 /* end confdefs.h.  */
41790 $ac_includes_default
41791 long longval () { return (long) (sizeof (wchar_t)); }
41792 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
41793 #include <stdio.h>
41794 #include <stdlib.h>
41795 int
41796 main ()
41797 {
41798
41799   FILE *f = fopen ("conftest.val", "w");
41800   if (! f)
41801     exit (1);
41802   if (((long) (sizeof (wchar_t))) < 0)
41803     {
41804       long i = longval ();
41805       if (i != ((long) (sizeof (wchar_t))))
41806         exit (1);
41807       fprintf (f, "%ld\n", i);
41808     }
41809   else
41810     {
41811       unsigned long i = ulongval ();
41812       if (i != ((long) (sizeof (wchar_t))))
41813         exit (1);
41814       fprintf (f, "%lu\n", i);
41815     }
41816   exit (ferror (f) || fclose (f) != 0);
41817
41818   ;
41819   return 0;
41820 }
41821 _ACEOF
41822 rm -f conftest$ac_exeext
41823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41824   (eval $ac_link) 2>&5
41825   ac_status=$?
41826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829   (eval $ac_try) 2>&5
41830   ac_status=$?
41831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832   (exit $ac_status); }; }; then
41833   ac_cv_sizeof_wchar_t=`cat conftest.val`
41834 else
41835   echo "$as_me: program exited with status $ac_status" >&5
41836 echo "$as_me: failed program was:" >&5
41837 sed 's/^/| /' conftest.$ac_ext >&5
41838
41839 ( exit $ac_status )
41840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
41841 See \`config.log' for more details." >&5
41842 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
41843 See \`config.log' for more details." >&2;}
41844    { (exit 1); exit 1; }; }
41845 fi
41846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41847 fi
41848 fi
41849 rm -f conftest.val
41850 else
41851   ac_cv_sizeof_wchar_t=0
41852 fi
41853 fi
41854 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
41855 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
41856 cat >>confdefs.h <<_ACEOF
41857 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
41858 _ACEOF
41859
41860
41861
41862 if test "$ac_cv_sizeof_int" -lt 4 ; then
41863         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
41864 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
41865
41866
41867 cat >>confdefs.h <<\_ACEOF
41868 #define LBER_INT_T long
41869 _ACEOF
41870
41871 else
41872
41873 cat >>confdefs.h <<\_ACEOF
41874 #define LBER_INT_T int
41875 _ACEOF
41876
41877 fi
41878
41879
41880 cat >>confdefs.h <<\_ACEOF
41881 #define LBER_LEN_T long
41882 _ACEOF
41883
41884
41885 cat >>confdefs.h <<\_ACEOF
41886 #define LBER_SOCKET_T int
41887 _ACEOF
41888
41889
41890 cat >>confdefs.h <<\_ACEOF
41891 #define LBER_TAG_T long
41892 _ACEOF
41893
41894
41895 echo "$as_me:$LINENO: checking for working memcmp" >&5
41896 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
41897 if test "${ac_cv_func_memcmp_working+set}" = set; then
41898   echo $ECHO_N "(cached) $ECHO_C" >&6
41899 else
41900   if test "$cross_compiling" = yes; then
41901   ac_cv_func_memcmp_working=no
41902 else
41903   cat >conftest.$ac_ext <<_ACEOF
41904 /* confdefs.h.  */
41905 _ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h.  */
41909 $ac_includes_default
41910 int
41911 main ()
41912 {
41913
41914   /* Some versions of memcmp are not 8-bit clean.  */
41915   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
41916   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
41917     exit (1);
41918
41919   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
41920      or more and with at least one buffer not starting on a 4-byte boundary.
41921      William Lewis provided this test program.   */
41922   {
41923     char foo[21];
41924     char bar[21];
41925     int i;
41926     for (i = 0; i < 4; i++)
41927       {
41928         char *a = foo + i;
41929         char *b = bar + i;
41930         strcpy (a, "--------01111111");
41931         strcpy (b, "--------10000000");
41932         if (memcmp (a, b, 16) >= 0)
41933           exit (1);
41934       }
41935     exit (0);
41936   }
41937
41938   ;
41939   return 0;
41940 }
41941 _ACEOF
41942 rm -f conftest$ac_exeext
41943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41944   (eval $ac_link) 2>&5
41945   ac_status=$?
41946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41949   (eval $ac_try) 2>&5
41950   ac_status=$?
41951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41952   (exit $ac_status); }; }; then
41953   ac_cv_func_memcmp_working=yes
41954 else
41955   echo "$as_me: program exited with status $ac_status" >&5
41956 echo "$as_me: failed program was:" >&5
41957 sed 's/^/| /' conftest.$ac_ext >&5
41958
41959 ( exit $ac_status )
41960 ac_cv_func_memcmp_working=no
41961 fi
41962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41963 fi
41964 fi
41965 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
41966 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
41967 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
41968     "memcmp.$ac_objext"   | \
41969   *" memcmp.$ac_objext"   | \
41970     "memcmp.$ac_objext "* | \
41971   *" memcmp.$ac_objext "* ) ;;
41972   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
41973 esac
41974
41975
41976
41977 if test $ac_cv_func_memcmp_working = no ; then
41978
41979 cat >>confdefs.h <<\_ACEOF
41980 #define NEED_MEMCMP_REPLACEMENT 1
41981 _ACEOF
41982
41983 fi
41984
41985
41986 for ac_func in strftime
41987 do
41988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41989 echo "$as_me:$LINENO: checking for $ac_func" >&5
41990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41991 if eval "test \"\${$as_ac_var+set}\" = set"; then
41992   echo $ECHO_N "(cached) $ECHO_C" >&6
41993 else
41994   cat >conftest.$ac_ext <<_ACEOF
41995 /* confdefs.h.  */
41996 _ACEOF
41997 cat confdefs.h >>conftest.$ac_ext
41998 cat >>conftest.$ac_ext <<_ACEOF
41999 /* end confdefs.h.  */
42000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42002 #define $ac_func innocuous_$ac_func
42003
42004 /* System header to define __stub macros and hopefully few prototypes,
42005     which can conflict with char $ac_func (); below.
42006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42007     <limits.h> exists even on freestanding compilers.  */
42008
42009 #ifdef __STDC__
42010 # include <limits.h>
42011 #else
42012 # include <assert.h>
42013 #endif
42014
42015 #undef $ac_func
42016
42017 /* Override any gcc2 internal prototype to avoid an error.  */
42018 #ifdef __cplusplus
42019 extern "C"
42020 {
42021 #endif
42022 /* We use char because int might match the return type of a gcc2
42023    builtin and then its argument prototype would still apply.  */
42024 char $ac_func ();
42025 /* The GNU C library defines this for functions which it implements
42026     to always fail with ENOSYS.  Some functions are actually named
42027     something starting with __ and the normal name is an alias.  */
42028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42029 choke me
42030 #else
42031 char (*f) () = $ac_func;
42032 #endif
42033 #ifdef __cplusplus
42034 }
42035 #endif
42036
42037 int
42038 main ()
42039 {
42040 return f != $ac_func;
42041   ;
42042   return 0;
42043 }
42044 _ACEOF
42045 rm -f conftest.$ac_objext conftest$ac_exeext
42046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42047   (eval $ac_link) 2>conftest.er1
42048   ac_status=$?
42049   grep -v '^ *+' conftest.er1 >conftest.err
42050   rm -f conftest.er1
42051   cat conftest.err >&5
42052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42053   (exit $ac_status); } &&
42054          { ac_try='test -z "$ac_c_werror_flag"
42055                          || test ! -s conftest.err'
42056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057   (eval $ac_try) 2>&5
42058   ac_status=$?
42059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060   (exit $ac_status); }; } &&
42061          { ac_try='test -s conftest$ac_exeext'
42062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063   (eval $ac_try) 2>&5
42064   ac_status=$?
42065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066   (exit $ac_status); }; }; then
42067   eval "$as_ac_var=yes"
42068 else
42069   echo "$as_me: failed program was:" >&5
42070 sed 's/^/| /' conftest.$ac_ext >&5
42071
42072 eval "$as_ac_var=no"
42073 fi
42074 rm -f conftest.err conftest.$ac_objext \
42075       conftest$ac_exeext conftest.$ac_ext
42076 fi
42077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42079 if test `eval echo '${'$as_ac_var'}'` = yes; then
42080   cat >>confdefs.h <<_ACEOF
42081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42082 _ACEOF
42083
42084 else
42085   # strftime is in -lintl on SCO UNIX.
42086 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42087 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42088 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42089   echo $ECHO_N "(cached) $ECHO_C" >&6
42090 else
42091   ac_check_lib_save_LIBS=$LIBS
42092 LIBS="-lintl  $LIBS"
42093 cat >conftest.$ac_ext <<_ACEOF
42094 /* confdefs.h.  */
42095 _ACEOF
42096 cat confdefs.h >>conftest.$ac_ext
42097 cat >>conftest.$ac_ext <<_ACEOF
42098 /* end confdefs.h.  */
42099
42100 /* Override any gcc2 internal prototype to avoid an error.  */
42101 #ifdef __cplusplus
42102 extern "C"
42103 #endif
42104 /* We use char because int might match the return type of a gcc2
42105    builtin and then its argument prototype would still apply.  */
42106 char strftime ();
42107 int
42108 main ()
42109 {
42110 strftime ();
42111   ;
42112   return 0;
42113 }
42114 _ACEOF
42115 rm -f conftest.$ac_objext conftest$ac_exeext
42116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42117   (eval $ac_link) 2>conftest.er1
42118   ac_status=$?
42119   grep -v '^ *+' conftest.er1 >conftest.err
42120   rm -f conftest.er1
42121   cat conftest.err >&5
42122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42123   (exit $ac_status); } &&
42124          { ac_try='test -z "$ac_c_werror_flag"
42125                          || test ! -s conftest.err'
42126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42127   (eval $ac_try) 2>&5
42128   ac_status=$?
42129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130   (exit $ac_status); }; } &&
42131          { ac_try='test -s conftest$ac_exeext'
42132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42133   (eval $ac_try) 2>&5
42134   ac_status=$?
42135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136   (exit $ac_status); }; }; then
42137   ac_cv_lib_intl_strftime=yes
42138 else
42139   echo "$as_me: failed program was:" >&5
42140 sed 's/^/| /' conftest.$ac_ext >&5
42141
42142 ac_cv_lib_intl_strftime=no
42143 fi
42144 rm -f conftest.err conftest.$ac_objext \
42145       conftest$ac_exeext conftest.$ac_ext
42146 LIBS=$ac_check_lib_save_LIBS
42147 fi
42148 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42149 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42150 if test $ac_cv_lib_intl_strftime = yes; then
42151   cat >>confdefs.h <<\_ACEOF
42152 #define HAVE_STRFTIME 1
42153 _ACEOF
42154
42155 LIBS="-lintl $LIBS"
42156 fi
42157
42158 fi
42159 done
42160
42161
42162 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42163 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42164 if test "${ol_cv_func_inet_aton+set}" = set; then
42165   echo $ECHO_N "(cached) $ECHO_C" >&6
42166 else
42167   cat >conftest.$ac_ext <<_ACEOF
42168 /* confdefs.h.  */
42169 _ACEOF
42170 cat confdefs.h >>conftest.$ac_ext
42171 cat >>conftest.$ac_ext <<_ACEOF
42172 /* end confdefs.h.  */
42173
42174 #ifdef HAVE_SYS_TYPES_H
42175 #       include <sys/types.h>
42176 #endif
42177 #ifdef HAVE_SYS_SOCKET_H
42178 #       include <sys/socket.h>
42179 #       ifdef HAVE_SYS_SELECT_H
42180 #               include <sys/select.h>
42181 #       endif
42182 #       include <netinet/in.h>
42183 #       ifdef HAVE_ARPA_INET_H
42184 #               include <arpa/inet.h>
42185 #       endif
42186 #endif
42187
42188 int
42189 main ()
42190 {
42191 struct in_addr in;
42192 int rc = inet_aton( "255.255.255.255", &in );
42193   ;
42194   return 0;
42195 }
42196 _ACEOF
42197 rm -f conftest.$ac_objext conftest$ac_exeext
42198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42199   (eval $ac_link) 2>conftest.er1
42200   ac_status=$?
42201   grep -v '^ *+' conftest.er1 >conftest.err
42202   rm -f conftest.er1
42203   cat conftest.err >&5
42204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42205   (exit $ac_status); } &&
42206          { ac_try='test -z "$ac_c_werror_flag"
42207                          || test ! -s conftest.err'
42208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209   (eval $ac_try) 2>&5
42210   ac_status=$?
42211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212   (exit $ac_status); }; } &&
42213          { ac_try='test -s conftest$ac_exeext'
42214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42215   (eval $ac_try) 2>&5
42216   ac_status=$?
42217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218   (exit $ac_status); }; }; then
42219   ol_cv_func_inet_aton=yes
42220 else
42221   echo "$as_me: failed program was:" >&5
42222 sed 's/^/| /' conftest.$ac_ext >&5
42223
42224 ol_cv_func_inet_aton=no
42225 fi
42226 rm -f conftest.err conftest.$ac_objext \
42227       conftest$ac_exeext conftest.$ac_ext
42228 fi
42229 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42230 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42231   if test $ol_cv_func_inet_aton != no; then
42232
42233 cat >>confdefs.h <<\_ACEOF
42234 #define HAVE_INET_ATON 1
42235 _ACEOF
42236
42237   fi
42238
42239
42240 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42241 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42242 if test "${ac_cv_func__spawnlp+set}" = set; then
42243   echo $ECHO_N "(cached) $ECHO_C" >&6
42244 else
42245   cat >conftest.$ac_ext <<_ACEOF
42246 /* confdefs.h.  */
42247 _ACEOF
42248 cat confdefs.h >>conftest.$ac_ext
42249 cat >>conftest.$ac_ext <<_ACEOF
42250 /* end confdefs.h.  */
42251 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42253 #define _spawnlp innocuous__spawnlp
42254
42255 /* System header to define __stub macros and hopefully few prototypes,
42256     which can conflict with char _spawnlp (); below.
42257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42258     <limits.h> exists even on freestanding compilers.  */
42259
42260 #ifdef __STDC__
42261 # include <limits.h>
42262 #else
42263 # include <assert.h>
42264 #endif
42265
42266 #undef _spawnlp
42267
42268 /* Override any gcc2 internal prototype to avoid an error.  */
42269 #ifdef __cplusplus
42270 extern "C"
42271 {
42272 #endif
42273 /* We use char because int might match the return type of a gcc2
42274    builtin and then its argument prototype would still apply.  */
42275 char _spawnlp ();
42276 /* The GNU C library defines this for functions which it implements
42277     to always fail with ENOSYS.  Some functions are actually named
42278     something starting with __ and the normal name is an alias.  */
42279 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42280 choke me
42281 #else
42282 char (*f) () = _spawnlp;
42283 #endif
42284 #ifdef __cplusplus
42285 }
42286 #endif
42287
42288 int
42289 main ()
42290 {
42291 return f != _spawnlp;
42292   ;
42293   return 0;
42294 }
42295 _ACEOF
42296 rm -f conftest.$ac_objext conftest$ac_exeext
42297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42298   (eval $ac_link) 2>conftest.er1
42299   ac_status=$?
42300   grep -v '^ *+' conftest.er1 >conftest.err
42301   rm -f conftest.er1
42302   cat conftest.err >&5
42303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304   (exit $ac_status); } &&
42305          { ac_try='test -z "$ac_c_werror_flag"
42306                          || test ! -s conftest.err'
42307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42308   (eval $ac_try) 2>&5
42309   ac_status=$?
42310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311   (exit $ac_status); }; } &&
42312          { ac_try='test -s conftest$ac_exeext'
42313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42314   (eval $ac_try) 2>&5
42315   ac_status=$?
42316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42317   (exit $ac_status); }; }; then
42318   ac_cv_func__spawnlp=yes
42319 else
42320   echo "$as_me: failed program was:" >&5
42321 sed 's/^/| /' conftest.$ac_ext >&5
42322
42323 ac_cv_func__spawnlp=no
42324 fi
42325 rm -f conftest.err conftest.$ac_objext \
42326       conftest$ac_exeext conftest.$ac_ext
42327 fi
42328 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42329 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42330 if test $ac_cv_func__spawnlp = yes; then
42331
42332 cat >>confdefs.h <<\_ACEOF
42333 #define HAVE_SPAWNLP 1
42334 _ACEOF
42335
42336 fi
42337
42338
42339 echo "$as_me:$LINENO: checking for _snprintf" >&5
42340 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42341 if test "${ac_cv_func__snprintf+set}" = set; then
42342   echo $ECHO_N "(cached) $ECHO_C" >&6
42343 else
42344   cat >conftest.$ac_ext <<_ACEOF
42345 /* confdefs.h.  */
42346 _ACEOF
42347 cat confdefs.h >>conftest.$ac_ext
42348 cat >>conftest.$ac_ext <<_ACEOF
42349 /* end confdefs.h.  */
42350 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42352 #define _snprintf innocuous__snprintf
42353
42354 /* System header to define __stub macros and hopefully few prototypes,
42355     which can conflict with char _snprintf (); below.
42356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42357     <limits.h> exists even on freestanding compilers.  */
42358
42359 #ifdef __STDC__
42360 # include <limits.h>
42361 #else
42362 # include <assert.h>
42363 #endif
42364
42365 #undef _snprintf
42366
42367 /* Override any gcc2 internal prototype to avoid an error.  */
42368 #ifdef __cplusplus
42369 extern "C"
42370 {
42371 #endif
42372 /* We use char because int might match the return type of a gcc2
42373    builtin and then its argument prototype would still apply.  */
42374 char _snprintf ();
42375 /* The GNU C library defines this for functions which it implements
42376     to always fail with ENOSYS.  Some functions are actually named
42377     something starting with __ and the normal name is an alias.  */
42378 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42379 choke me
42380 #else
42381 char (*f) () = _snprintf;
42382 #endif
42383 #ifdef __cplusplus
42384 }
42385 #endif
42386
42387 int
42388 main ()
42389 {
42390 return f != _snprintf;
42391   ;
42392   return 0;
42393 }
42394 _ACEOF
42395 rm -f conftest.$ac_objext conftest$ac_exeext
42396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42397   (eval $ac_link) 2>conftest.er1
42398   ac_status=$?
42399   grep -v '^ *+' conftest.er1 >conftest.err
42400   rm -f conftest.er1
42401   cat conftest.err >&5
42402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403   (exit $ac_status); } &&
42404          { ac_try='test -z "$ac_c_werror_flag"
42405                          || test ! -s conftest.err'
42406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42407   (eval $ac_try) 2>&5
42408   ac_status=$?
42409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410   (exit $ac_status); }; } &&
42411          { ac_try='test -s conftest$ac_exeext'
42412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413   (eval $ac_try) 2>&5
42414   ac_status=$?
42415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416   (exit $ac_status); }; }; then
42417   ac_cv_func__snprintf=yes
42418 else
42419   echo "$as_me: failed program was:" >&5
42420 sed 's/^/| /' conftest.$ac_ext >&5
42421
42422 ac_cv_func__snprintf=no
42423 fi
42424 rm -f conftest.err conftest.$ac_objext \
42425       conftest$ac_exeext conftest.$ac_ext
42426 fi
42427 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42428 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42429 if test $ac_cv_func__snprintf = yes; then
42430   ac_cv_func_snprintf=yes
42431
42432 cat >>confdefs.h <<\_ACEOF
42433 #define snprintf _snprintf
42434 _ACEOF
42435
42436
42437 fi
42438
42439
42440 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42441 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42442 if test "${ac_cv_func__vsnprintf+set}" = set; then
42443   echo $ECHO_N "(cached) $ECHO_C" >&6
42444 else
42445   cat >conftest.$ac_ext <<_ACEOF
42446 /* confdefs.h.  */
42447 _ACEOF
42448 cat confdefs.h >>conftest.$ac_ext
42449 cat >>conftest.$ac_ext <<_ACEOF
42450 /* end confdefs.h.  */
42451 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42453 #define _vsnprintf innocuous__vsnprintf
42454
42455 /* System header to define __stub macros and hopefully few prototypes,
42456     which can conflict with char _vsnprintf (); below.
42457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42458     <limits.h> exists even on freestanding compilers.  */
42459
42460 #ifdef __STDC__
42461 # include <limits.h>
42462 #else
42463 # include <assert.h>
42464 #endif
42465
42466 #undef _vsnprintf
42467
42468 /* Override any gcc2 internal prototype to avoid an error.  */
42469 #ifdef __cplusplus
42470 extern "C"
42471 {
42472 #endif
42473 /* We use char because int might match the return type of a gcc2
42474    builtin and then its argument prototype would still apply.  */
42475 char _vsnprintf ();
42476 /* The GNU C library defines this for functions which it implements
42477     to always fail with ENOSYS.  Some functions are actually named
42478     something starting with __ and the normal name is an alias.  */
42479 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42480 choke me
42481 #else
42482 char (*f) () = _vsnprintf;
42483 #endif
42484 #ifdef __cplusplus
42485 }
42486 #endif
42487
42488 int
42489 main ()
42490 {
42491 return f != _vsnprintf;
42492   ;
42493   return 0;
42494 }
42495 _ACEOF
42496 rm -f conftest.$ac_objext conftest$ac_exeext
42497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42498   (eval $ac_link) 2>conftest.er1
42499   ac_status=$?
42500   grep -v '^ *+' conftest.er1 >conftest.err
42501   rm -f conftest.er1
42502   cat conftest.err >&5
42503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42504   (exit $ac_status); } &&
42505          { ac_try='test -z "$ac_c_werror_flag"
42506                          || test ! -s conftest.err'
42507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42508   (eval $ac_try) 2>&5
42509   ac_status=$?
42510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42511   (exit $ac_status); }; } &&
42512          { ac_try='test -s conftest$ac_exeext'
42513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42514   (eval $ac_try) 2>&5
42515   ac_status=$?
42516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42517   (exit $ac_status); }; }; then
42518   ac_cv_func__vsnprintf=yes
42519 else
42520   echo "$as_me: failed program was:" >&5
42521 sed 's/^/| /' conftest.$ac_ext >&5
42522
42523 ac_cv_func__vsnprintf=no
42524 fi
42525 rm -f conftest.err conftest.$ac_objext \
42526       conftest$ac_exeext conftest.$ac_ext
42527 fi
42528 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42529 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42530 if test $ac_cv_func__vsnprintf = yes; then
42531   ac_cv_func_vsnprintf=yes
42532
42533 cat >>confdefs.h <<\_ACEOF
42534 #define vsnprintf _vsnprintf
42535 _ACEOF
42536
42537
42538 fi
42539
42540
42541
42542 for ac_func in vprintf
42543 do
42544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42545 echo "$as_me:$LINENO: checking for $ac_func" >&5
42546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42547 if eval "test \"\${$as_ac_var+set}\" = set"; then
42548   echo $ECHO_N "(cached) $ECHO_C" >&6
42549 else
42550   cat >conftest.$ac_ext <<_ACEOF
42551 /* confdefs.h.  */
42552 _ACEOF
42553 cat confdefs.h >>conftest.$ac_ext
42554 cat >>conftest.$ac_ext <<_ACEOF
42555 /* end confdefs.h.  */
42556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42558 #define $ac_func innocuous_$ac_func
42559
42560 /* System header to define __stub macros and hopefully few prototypes,
42561     which can conflict with char $ac_func (); below.
42562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42563     <limits.h> exists even on freestanding compilers.  */
42564
42565 #ifdef __STDC__
42566 # include <limits.h>
42567 #else
42568 # include <assert.h>
42569 #endif
42570
42571 #undef $ac_func
42572
42573 /* Override any gcc2 internal prototype to avoid an error.  */
42574 #ifdef __cplusplus
42575 extern "C"
42576 {
42577 #endif
42578 /* We use char because int might match the return type of a gcc2
42579    builtin and then its argument prototype would still apply.  */
42580 char $ac_func ();
42581 /* The GNU C library defines this for functions which it implements
42582     to always fail with ENOSYS.  Some functions are actually named
42583     something starting with __ and the normal name is an alias.  */
42584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42585 choke me
42586 #else
42587 char (*f) () = $ac_func;
42588 #endif
42589 #ifdef __cplusplus
42590 }
42591 #endif
42592
42593 int
42594 main ()
42595 {
42596 return f != $ac_func;
42597   ;
42598   return 0;
42599 }
42600 _ACEOF
42601 rm -f conftest.$ac_objext conftest$ac_exeext
42602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42603   (eval $ac_link) 2>conftest.er1
42604   ac_status=$?
42605   grep -v '^ *+' conftest.er1 >conftest.err
42606   rm -f conftest.er1
42607   cat conftest.err >&5
42608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42609   (exit $ac_status); } &&
42610          { ac_try='test -z "$ac_c_werror_flag"
42611                          || test ! -s conftest.err'
42612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42613   (eval $ac_try) 2>&5
42614   ac_status=$?
42615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42616   (exit $ac_status); }; } &&
42617          { ac_try='test -s conftest$ac_exeext'
42618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42619   (eval $ac_try) 2>&5
42620   ac_status=$?
42621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622   (exit $ac_status); }; }; then
42623   eval "$as_ac_var=yes"
42624 else
42625   echo "$as_me: failed program was:" >&5
42626 sed 's/^/| /' conftest.$ac_ext >&5
42627
42628 eval "$as_ac_var=no"
42629 fi
42630 rm -f conftest.err conftest.$ac_objext \
42631       conftest$ac_exeext conftest.$ac_ext
42632 fi
42633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42635 if test `eval echo '${'$as_ac_var'}'` = yes; then
42636   cat >>confdefs.h <<_ACEOF
42637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42638 _ACEOF
42639
42640 echo "$as_me:$LINENO: checking for _doprnt" >&5
42641 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42642 if test "${ac_cv_func__doprnt+set}" = set; then
42643   echo $ECHO_N "(cached) $ECHO_C" >&6
42644 else
42645   cat >conftest.$ac_ext <<_ACEOF
42646 /* confdefs.h.  */
42647 _ACEOF
42648 cat confdefs.h >>conftest.$ac_ext
42649 cat >>conftest.$ac_ext <<_ACEOF
42650 /* end confdefs.h.  */
42651 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42653 #define _doprnt innocuous__doprnt
42654
42655 /* System header to define __stub macros and hopefully few prototypes,
42656     which can conflict with char _doprnt (); below.
42657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42658     <limits.h> exists even on freestanding compilers.  */
42659
42660 #ifdef __STDC__
42661 # include <limits.h>
42662 #else
42663 # include <assert.h>
42664 #endif
42665
42666 #undef _doprnt
42667
42668 /* Override any gcc2 internal prototype to avoid an error.  */
42669 #ifdef __cplusplus
42670 extern "C"
42671 {
42672 #endif
42673 /* We use char because int might match the return type of a gcc2
42674    builtin and then its argument prototype would still apply.  */
42675 char _doprnt ();
42676 /* The GNU C library defines this for functions which it implements
42677     to always fail with ENOSYS.  Some functions are actually named
42678     something starting with __ and the normal name is an alias.  */
42679 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42680 choke me
42681 #else
42682 char (*f) () = _doprnt;
42683 #endif
42684 #ifdef __cplusplus
42685 }
42686 #endif
42687
42688 int
42689 main ()
42690 {
42691 return f != _doprnt;
42692   ;
42693   return 0;
42694 }
42695 _ACEOF
42696 rm -f conftest.$ac_objext conftest$ac_exeext
42697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42698   (eval $ac_link) 2>conftest.er1
42699   ac_status=$?
42700   grep -v '^ *+' conftest.er1 >conftest.err
42701   rm -f conftest.er1
42702   cat conftest.err >&5
42703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704   (exit $ac_status); } &&
42705          { ac_try='test -z "$ac_c_werror_flag"
42706                          || test ! -s conftest.err'
42707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42708   (eval $ac_try) 2>&5
42709   ac_status=$?
42710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711   (exit $ac_status); }; } &&
42712          { ac_try='test -s conftest$ac_exeext'
42713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42714   (eval $ac_try) 2>&5
42715   ac_status=$?
42716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717   (exit $ac_status); }; }; then
42718   ac_cv_func__doprnt=yes
42719 else
42720   echo "$as_me: failed program was:" >&5
42721 sed 's/^/| /' conftest.$ac_ext >&5
42722
42723 ac_cv_func__doprnt=no
42724 fi
42725 rm -f conftest.err conftest.$ac_objext \
42726       conftest$ac_exeext conftest.$ac_ext
42727 fi
42728 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42729 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
42730 if test $ac_cv_func__doprnt = yes; then
42731
42732 cat >>confdefs.h <<\_ACEOF
42733 #define HAVE_DOPRNT 1
42734 _ACEOF
42735
42736 fi
42737
42738 fi
42739 done
42740
42741
42742
42743 if test $ac_cv_func_vprintf = yes ; then
42744
42745
42746 for ac_func in snprintf vsnprintf
42747 do
42748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42749 echo "$as_me:$LINENO: checking for $ac_func" >&5
42750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42751 if eval "test \"\${$as_ac_var+set}\" = set"; then
42752   echo $ECHO_N "(cached) $ECHO_C" >&6
42753 else
42754   cat >conftest.$ac_ext <<_ACEOF
42755 /* confdefs.h.  */
42756 _ACEOF
42757 cat confdefs.h >>conftest.$ac_ext
42758 cat >>conftest.$ac_ext <<_ACEOF
42759 /* end confdefs.h.  */
42760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42762 #define $ac_func innocuous_$ac_func
42763
42764 /* System header to define __stub macros and hopefully few prototypes,
42765     which can conflict with char $ac_func (); below.
42766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42767     <limits.h> exists even on freestanding compilers.  */
42768
42769 #ifdef __STDC__
42770 # include <limits.h>
42771 #else
42772 # include <assert.h>
42773 #endif
42774
42775 #undef $ac_func
42776
42777 /* Override any gcc2 internal prototype to avoid an error.  */
42778 #ifdef __cplusplus
42779 extern "C"
42780 {
42781 #endif
42782 /* We use char because int might match the return type of a gcc2
42783    builtin and then its argument prototype would still apply.  */
42784 char $ac_func ();
42785 /* The GNU C library defines this for functions which it implements
42786     to always fail with ENOSYS.  Some functions are actually named
42787     something starting with __ and the normal name is an alias.  */
42788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42789 choke me
42790 #else
42791 char (*f) () = $ac_func;
42792 #endif
42793 #ifdef __cplusplus
42794 }
42795 #endif
42796
42797 int
42798 main ()
42799 {
42800 return f != $ac_func;
42801   ;
42802   return 0;
42803 }
42804 _ACEOF
42805 rm -f conftest.$ac_objext conftest$ac_exeext
42806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42807   (eval $ac_link) 2>conftest.er1
42808   ac_status=$?
42809   grep -v '^ *+' conftest.er1 >conftest.err
42810   rm -f conftest.er1
42811   cat conftest.err >&5
42812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42813   (exit $ac_status); } &&
42814          { ac_try='test -z "$ac_c_werror_flag"
42815                          || test ! -s conftest.err'
42816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42817   (eval $ac_try) 2>&5
42818   ac_status=$?
42819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42820   (exit $ac_status); }; } &&
42821          { ac_try='test -s conftest$ac_exeext'
42822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42823   (eval $ac_try) 2>&5
42824   ac_status=$?
42825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42826   (exit $ac_status); }; }; then
42827   eval "$as_ac_var=yes"
42828 else
42829   echo "$as_me: failed program was:" >&5
42830 sed 's/^/| /' conftest.$ac_ext >&5
42831
42832 eval "$as_ac_var=no"
42833 fi
42834 rm -f conftest.err conftest.$ac_objext \
42835       conftest$ac_exeext conftest.$ac_ext
42836 fi
42837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42839 if test `eval echo '${'$as_ac_var'}'` = yes; then
42840   cat >>confdefs.h <<_ACEOF
42841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42842 _ACEOF
42843
42844 fi
42845 done
42846
42847 fi
42848
42849
42850
42851
42852
42853
42854
42855
42856
42857
42858
42859
42860
42861
42862
42863
42864
42865
42866
42867
42868
42869
42870
42871
42872
42873
42874
42875
42876
42877
42878
42879
42880
42881
42882
42883
42884
42885
42886
42887
42888
42889
42890
42891
42892
42893
42894
42895
42896
42897
42898
42899
42900
42901
42902
42903
42904 for ac_func in \
42905         bcopy                   \
42906         closesocket             \
42907         chroot                  \
42908         endgrent                \
42909         endpwent                \
42910         fcntl                   \
42911         flock                   \
42912         fstat                   \
42913         getdtablesize   \
42914         getgrgid                \
42915         gethostname             \
42916         getpass                 \
42917         getpassphrase   \
42918         getpwuid                \
42919         getpwnam                \
42920         getspnam                \
42921         gettimeofday    \
42922         initgroups              \
42923         inet_ntoa_b             \
42924         lockf                   \
42925         memcpy                  \
42926         memmove                 \
42927         memrchr                 \
42928         mkstemp                 \
42929         mktemp                  \
42930         pipe                    \
42931         read                    \
42932         recv                    \
42933         recvfrom                \
42934         setpwfile               \
42935         setgid                  \
42936         setegid                 \
42937         setsid                  \
42938         setuid                  \
42939         seteuid                 \
42940         signal                  \
42941         strdup                  \
42942         strpbrk                 \
42943         strrchr                 \
42944         strsep                  \
42945         strstr                  \
42946         strtol                  \
42947         strtoul                 \
42948         strtoq                  \
42949         strtouq                 \
42950         strtoll                 \
42951         strspn                  \
42952         sysconf                 \
42953         usleep                  \
42954         waitpid                 \
42955         wait4                   \
42956         write                   \
42957         send                    \
42958         sendmsg                 \
42959         sendto                  \
42960
42961 do
42962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42963 echo "$as_me:$LINENO: checking for $ac_func" >&5
42964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42965 if eval "test \"\${$as_ac_var+set}\" = set"; then
42966   echo $ECHO_N "(cached) $ECHO_C" >&6
42967 else
42968   cat >conftest.$ac_ext <<_ACEOF
42969 /* confdefs.h.  */
42970 _ACEOF
42971 cat confdefs.h >>conftest.$ac_ext
42972 cat >>conftest.$ac_ext <<_ACEOF
42973 /* end confdefs.h.  */
42974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42976 #define $ac_func innocuous_$ac_func
42977
42978 /* System header to define __stub macros and hopefully few prototypes,
42979     which can conflict with char $ac_func (); below.
42980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42981     <limits.h> exists even on freestanding compilers.  */
42982
42983 #ifdef __STDC__
42984 # include <limits.h>
42985 #else
42986 # include <assert.h>
42987 #endif
42988
42989 #undef $ac_func
42990
42991 /* Override any gcc2 internal prototype to avoid an error.  */
42992 #ifdef __cplusplus
42993 extern "C"
42994 {
42995 #endif
42996 /* We use char because int might match the return type of a gcc2
42997    builtin and then its argument prototype would still apply.  */
42998 char $ac_func ();
42999 /* The GNU C library defines this for functions which it implements
43000     to always fail with ENOSYS.  Some functions are actually named
43001     something starting with __ and the normal name is an alias.  */
43002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43003 choke me
43004 #else
43005 char (*f) () = $ac_func;
43006 #endif
43007 #ifdef __cplusplus
43008 }
43009 #endif
43010
43011 int
43012 main ()
43013 {
43014 return f != $ac_func;
43015   ;
43016   return 0;
43017 }
43018 _ACEOF
43019 rm -f conftest.$ac_objext conftest$ac_exeext
43020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43021   (eval $ac_link) 2>conftest.er1
43022   ac_status=$?
43023   grep -v '^ *+' conftest.er1 >conftest.err
43024   rm -f conftest.er1
43025   cat conftest.err >&5
43026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43027   (exit $ac_status); } &&
43028          { ac_try='test -z "$ac_c_werror_flag"
43029                          || test ! -s conftest.err'
43030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43031   (eval $ac_try) 2>&5
43032   ac_status=$?
43033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43034   (exit $ac_status); }; } &&
43035          { ac_try='test -s conftest$ac_exeext'
43036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43037   (eval $ac_try) 2>&5
43038   ac_status=$?
43039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43040   (exit $ac_status); }; }; then
43041   eval "$as_ac_var=yes"
43042 else
43043   echo "$as_me: failed program was:" >&5
43044 sed 's/^/| /' conftest.$ac_ext >&5
43045
43046 eval "$as_ac_var=no"
43047 fi
43048 rm -f conftest.err conftest.$ac_objext \
43049       conftest$ac_exeext conftest.$ac_ext
43050 fi
43051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43053 if test `eval echo '${'$as_ac_var'}'` = yes; then
43054   cat >>confdefs.h <<_ACEOF
43055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43056 _ACEOF
43057
43058 fi
43059 done
43060
43061
43062
43063
43064 for ac_func in getopt getpeereid
43065 do
43066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43067 echo "$as_me:$LINENO: checking for $ac_func" >&5
43068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43069 if eval "test \"\${$as_ac_var+set}\" = set"; then
43070   echo $ECHO_N "(cached) $ECHO_C" >&6
43071 else
43072   cat >conftest.$ac_ext <<_ACEOF
43073 /* confdefs.h.  */
43074 _ACEOF
43075 cat confdefs.h >>conftest.$ac_ext
43076 cat >>conftest.$ac_ext <<_ACEOF
43077 /* end confdefs.h.  */
43078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43080 #define $ac_func innocuous_$ac_func
43081
43082 /* System header to define __stub macros and hopefully few prototypes,
43083     which can conflict with char $ac_func (); below.
43084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43085     <limits.h> exists even on freestanding compilers.  */
43086
43087 #ifdef __STDC__
43088 # include <limits.h>
43089 #else
43090 # include <assert.h>
43091 #endif
43092
43093 #undef $ac_func
43094
43095 /* Override any gcc2 internal prototype to avoid an error.  */
43096 #ifdef __cplusplus
43097 extern "C"
43098 {
43099 #endif
43100 /* We use char because int might match the return type of a gcc2
43101    builtin and then its argument prototype would still apply.  */
43102 char $ac_func ();
43103 /* The GNU C library defines this for functions which it implements
43104     to always fail with ENOSYS.  Some functions are actually named
43105     something starting with __ and the normal name is an alias.  */
43106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43107 choke me
43108 #else
43109 char (*f) () = $ac_func;
43110 #endif
43111 #ifdef __cplusplus
43112 }
43113 #endif
43114
43115 int
43116 main ()
43117 {
43118 return f != $ac_func;
43119   ;
43120   return 0;
43121 }
43122 _ACEOF
43123 rm -f conftest.$ac_objext conftest$ac_exeext
43124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43125   (eval $ac_link) 2>conftest.er1
43126   ac_status=$?
43127   grep -v '^ *+' conftest.er1 >conftest.err
43128   rm -f conftest.er1
43129   cat conftest.err >&5
43130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131   (exit $ac_status); } &&
43132          { ac_try='test -z "$ac_c_werror_flag"
43133                          || test ! -s conftest.err'
43134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43135   (eval $ac_try) 2>&5
43136   ac_status=$?
43137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43138   (exit $ac_status); }; } &&
43139          { ac_try='test -s conftest$ac_exeext'
43140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43141   (eval $ac_try) 2>&5
43142   ac_status=$?
43143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43144   (exit $ac_status); }; }; then
43145   eval "$as_ac_var=yes"
43146 else
43147   echo "$as_me: failed program was:" >&5
43148 sed 's/^/| /' conftest.$ac_ext >&5
43149
43150 eval "$as_ac_var=no"
43151 fi
43152 rm -f conftest.err conftest.$ac_objext \
43153       conftest$ac_exeext conftest.$ac_ext
43154 fi
43155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43157 if test `eval echo '${'$as_ac_var'}'` = yes; then
43158   cat >>confdefs.h <<_ACEOF
43159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43160 _ACEOF
43161
43162 else
43163   case $LIBOBJS in
43164     "$ac_func.$ac_objext"   | \
43165   *" $ac_func.$ac_objext"   | \
43166     "$ac_func.$ac_objext "* | \
43167   *" $ac_func.$ac_objext "* ) ;;
43168   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43169 esac
43170
43171 fi
43172 done
43173
43174
43175
43176 if test "$ac_cv_func_getopt" != yes; then
43177         LIBSRCS="$LIBSRCS getopt.c"
43178 fi
43179 if test "$ac_cv_func_getpeereid" != yes; then
43180         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43181 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43182 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43183   echo $ECHO_N "(cached) $ECHO_C" >&6
43184 else
43185   cat >conftest.$ac_ext <<_ACEOF
43186 /* confdefs.h.  */
43187 _ACEOF
43188 cat confdefs.h >>conftest.$ac_ext
43189 cat >>conftest.$ac_ext <<_ACEOF
43190 /* end confdefs.h.  */
43191 $ac_includes_default
43192 #ifdef HAVE_SYS_SOCKET_H
43193 #include <sys/socket.h>
43194 #endif
43195
43196 int
43197 main ()
43198 {
43199 static struct msghdr ac_aggr;
43200 if (ac_aggr.msg_accrightslen)
43201 return 0;
43202   ;
43203   return 0;
43204 }
43205 _ACEOF
43206 rm -f conftest.$ac_objext
43207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43208   (eval $ac_compile) 2>conftest.er1
43209   ac_status=$?
43210   grep -v '^ *+' conftest.er1 >conftest.err
43211   rm -f conftest.er1
43212   cat conftest.err >&5
43213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214   (exit $ac_status); } &&
43215          { ac_try='test -z "$ac_c_werror_flag"
43216                          || test ! -s conftest.err'
43217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43218   (eval $ac_try) 2>&5
43219   ac_status=$?
43220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43221   (exit $ac_status); }; } &&
43222          { ac_try='test -s conftest.$ac_objext'
43223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43224   (eval $ac_try) 2>&5
43225   ac_status=$?
43226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227   (exit $ac_status); }; }; then
43228   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43229 else
43230   echo "$as_me: failed program was:" >&5
43231 sed 's/^/| /' conftest.$ac_ext >&5
43232
43233 cat >conftest.$ac_ext <<_ACEOF
43234 /* confdefs.h.  */
43235 _ACEOF
43236 cat confdefs.h >>conftest.$ac_ext
43237 cat >>conftest.$ac_ext <<_ACEOF
43238 /* end confdefs.h.  */
43239 $ac_includes_default
43240 #ifdef HAVE_SYS_SOCKET_H
43241 #include <sys/socket.h>
43242 #endif
43243
43244 int
43245 main ()
43246 {
43247 static struct msghdr ac_aggr;
43248 if (sizeof ac_aggr.msg_accrightslen)
43249 return 0;
43250   ;
43251   return 0;
43252 }
43253 _ACEOF
43254 rm -f conftest.$ac_objext
43255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43256   (eval $ac_compile) 2>conftest.er1
43257   ac_status=$?
43258   grep -v '^ *+' conftest.er1 >conftest.err
43259   rm -f conftest.er1
43260   cat conftest.err >&5
43261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262   (exit $ac_status); } &&
43263          { ac_try='test -z "$ac_c_werror_flag"
43264                          || test ! -s conftest.err'
43265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266   (eval $ac_try) 2>&5
43267   ac_status=$?
43268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269   (exit $ac_status); }; } &&
43270          { ac_try='test -s conftest.$ac_objext'
43271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43272   (eval $ac_try) 2>&5
43273   ac_status=$?
43274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275   (exit $ac_status); }; }; then
43276   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281 ac_cv_member_struct_msghdr_msg_accrightslen=no
43282 fi
43283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43284 fi
43285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43286 fi
43287 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43288 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43289 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43290
43291 cat >>confdefs.h <<_ACEOF
43292 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43293 _ACEOF
43294
43295
43296 fi
43297
43298         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43299                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43300 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43301 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43302   echo $ECHO_N "(cached) $ECHO_C" >&6
43303 else
43304   cat >conftest.$ac_ext <<_ACEOF
43305 /* confdefs.h.  */
43306 _ACEOF
43307 cat confdefs.h >>conftest.$ac_ext
43308 cat >>conftest.$ac_ext <<_ACEOF
43309 /* end confdefs.h.  */
43310 $ac_includes_default
43311 #ifdef HAVE_SYS_SOCKET_H
43312 #include <sys/socket.h>
43313 #endif
43314
43315 int
43316 main ()
43317 {
43318 static struct msghdr ac_aggr;
43319 if (ac_aggr.msg_control)
43320 return 0;
43321   ;
43322   return 0;
43323 }
43324 _ACEOF
43325 rm -f conftest.$ac_objext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43327   (eval $ac_compile) 2>conftest.er1
43328   ac_status=$?
43329   grep -v '^ *+' conftest.er1 >conftest.err
43330   rm -f conftest.er1
43331   cat conftest.err >&5
43332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333   (exit $ac_status); } &&
43334          { ac_try='test -z "$ac_c_werror_flag"
43335                          || test ! -s conftest.err'
43336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337   (eval $ac_try) 2>&5
43338   ac_status=$?
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); }; } &&
43341          { ac_try='test -s conftest.$ac_objext'
43342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343   (eval $ac_try) 2>&5
43344   ac_status=$?
43345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346   (exit $ac_status); }; }; then
43347   ac_cv_member_struct_msghdr_msg_control=yes
43348 else
43349   echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43351
43352 cat >conftest.$ac_ext <<_ACEOF
43353 /* confdefs.h.  */
43354 _ACEOF
43355 cat confdefs.h >>conftest.$ac_ext
43356 cat >>conftest.$ac_ext <<_ACEOF
43357 /* end confdefs.h.  */
43358 $ac_includes_default
43359 #ifdef HAVE_SYS_SOCKET_H
43360 #include <sys/socket.h>
43361 #endif
43362
43363 int
43364 main ()
43365 {
43366 static struct msghdr ac_aggr;
43367 if (sizeof ac_aggr.msg_control)
43368 return 0;
43369   ;
43370   return 0;
43371 }
43372 _ACEOF
43373 rm -f conftest.$ac_objext
43374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43375   (eval $ac_compile) 2>conftest.er1
43376   ac_status=$?
43377   grep -v '^ *+' conftest.er1 >conftest.err
43378   rm -f conftest.er1
43379   cat conftest.err >&5
43380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381   (exit $ac_status); } &&
43382          { ac_try='test -z "$ac_c_werror_flag"
43383                          || test ! -s conftest.err'
43384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43385   (eval $ac_try) 2>&5
43386   ac_status=$?
43387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43388   (exit $ac_status); }; } &&
43389          { ac_try='test -s conftest.$ac_objext'
43390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43391   (eval $ac_try) 2>&5
43392   ac_status=$?
43393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394   (exit $ac_status); }; }; then
43395   ac_cv_member_struct_msghdr_msg_control=yes
43396 else
43397   echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43399
43400 ac_cv_member_struct_msghdr_msg_control=no
43401 fi
43402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43403 fi
43404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43405 fi
43406 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43407 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43408 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43409
43410 cat >>confdefs.h <<_ACEOF
43411 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43412 _ACEOF
43413
43414
43415 fi
43416
43417         fi
43418         LIBSRCS="$LIBSRCS getpeereid.c"
43419 fi
43420 if test "$ac_cv_func_snprintf" != yes ||
43421    test "$ac_cv_func_vsnprintf" != yes; then
43422         if test "$ac_cv_func_snprintf" != yes; then
43423
43424 cat >>confdefs.h <<\_ACEOF
43425 #define snprintf ber_pvt_snprintf
43426 _ACEOF
43427
43428         fi
43429         if test "$ac_cv_func_vsnprintf" != yes; then
43430
43431 cat >>confdefs.h <<\_ACEOF
43432 #define vsnprintf ber_pvt_vsnprintf
43433 _ACEOF
43434
43435         fi
43436 fi
43437
43438
43439 if test "$ol_enable_slapi" != no ; then
43440
43441 for ac_header in ltdl.h
43442 do
43443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43445   echo "$as_me:$LINENO: checking for $ac_header" >&5
43446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43448   echo $ECHO_N "(cached) $ECHO_C" >&6
43449 fi
43450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43452 else
43453   # Is the header compilable?
43454 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43456 cat >conftest.$ac_ext <<_ACEOF
43457 /* confdefs.h.  */
43458 _ACEOF
43459 cat confdefs.h >>conftest.$ac_ext
43460 cat >>conftest.$ac_ext <<_ACEOF
43461 /* end confdefs.h.  */
43462 $ac_includes_default
43463 #include <$ac_header>
43464 _ACEOF
43465 rm -f conftest.$ac_objext
43466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43467   (eval $ac_compile) 2>conftest.er1
43468   ac_status=$?
43469   grep -v '^ *+' conftest.er1 >conftest.err
43470   rm -f conftest.er1
43471   cat conftest.err >&5
43472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43473   (exit $ac_status); } &&
43474          { ac_try='test -z "$ac_c_werror_flag"
43475                          || test ! -s conftest.err'
43476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43477   (eval $ac_try) 2>&5
43478   ac_status=$?
43479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480   (exit $ac_status); }; } &&
43481          { ac_try='test -s conftest.$ac_objext'
43482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43483   (eval $ac_try) 2>&5
43484   ac_status=$?
43485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486   (exit $ac_status); }; }; then
43487   ac_header_compiler=yes
43488 else
43489   echo "$as_me: failed program was:" >&5
43490 sed 's/^/| /' conftest.$ac_ext >&5
43491
43492 ac_header_compiler=no
43493 fi
43494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43496 echo "${ECHO_T}$ac_header_compiler" >&6
43497
43498 # Is the header present?
43499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43501 cat >conftest.$ac_ext <<_ACEOF
43502 /* confdefs.h.  */
43503 _ACEOF
43504 cat confdefs.h >>conftest.$ac_ext
43505 cat >>conftest.$ac_ext <<_ACEOF
43506 /* end confdefs.h.  */
43507 #include <$ac_header>
43508 _ACEOF
43509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43510   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43511   ac_status=$?
43512   grep -v '^ *+' conftest.er1 >conftest.err
43513   rm -f conftest.er1
43514   cat conftest.err >&5
43515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43516   (exit $ac_status); } >/dev/null; then
43517   if test -s conftest.err; then
43518     ac_cpp_err=$ac_c_preproc_warn_flag
43519     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43520   else
43521     ac_cpp_err=
43522   fi
43523 else
43524   ac_cpp_err=yes
43525 fi
43526 if test -z "$ac_cpp_err"; then
43527   ac_header_preproc=yes
43528 else
43529   echo "$as_me: failed program was:" >&5
43530 sed 's/^/| /' conftest.$ac_ext >&5
43531
43532   ac_header_preproc=no
43533 fi
43534 rm -f conftest.err conftest.$ac_ext
43535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43536 echo "${ECHO_T}$ac_header_preproc" >&6
43537
43538 # So?  What about this header?
43539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43540   yes:no: )
43541     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43545     ac_header_preproc=yes
43546     ;;
43547   no:yes:* )
43548     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43550     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43551 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43552     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43554     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43555 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43558     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43560     (
43561       cat <<\_ASBOX
43562 ## ------------------------------------------ ##
43563 ## Report this to the AC_PACKAGE_NAME lists.  ##
43564 ## ------------------------------------------ ##
43565 _ASBOX
43566     ) |
43567       sed "s/^/$as_me: WARNING:     /" >&2
43568     ;;
43569 esac
43570 echo "$as_me:$LINENO: checking for $ac_header" >&5
43571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43573   echo $ECHO_N "(cached) $ECHO_C" >&6
43574 else
43575   eval "$as_ac_Header=\$ac_header_preproc"
43576 fi
43577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43579
43580 fi
43581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43582   cat >>confdefs.h <<_ACEOF
43583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43584 _ACEOF
43585
43586 fi
43587
43588 done
43589
43590
43591         if test $ac_cv_header_ltdl_h != yes ; then
43592                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43593 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43594    { (exit 1); exit 1; }; }
43595         fi
43596         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43597 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43598 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43599   echo $ECHO_N "(cached) $ECHO_C" >&6
43600 else
43601   ac_check_lib_save_LIBS=$LIBS
43602 LIBS="-lltdl  $LIBS"
43603 cat >conftest.$ac_ext <<_ACEOF
43604 /* confdefs.h.  */
43605 _ACEOF
43606 cat confdefs.h >>conftest.$ac_ext
43607 cat >>conftest.$ac_ext <<_ACEOF
43608 /* end confdefs.h.  */
43609
43610 /* Override any gcc2 internal prototype to avoid an error.  */
43611 #ifdef __cplusplus
43612 extern "C"
43613 #endif
43614 /* We use char because int might match the return type of a gcc2
43615    builtin and then its argument prototype would still apply.  */
43616 char lt_dlinit ();
43617 int
43618 main ()
43619 {
43620 lt_dlinit ();
43621   ;
43622   return 0;
43623 }
43624 _ACEOF
43625 rm -f conftest.$ac_objext conftest$ac_exeext
43626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43627   (eval $ac_link) 2>conftest.er1
43628   ac_status=$?
43629   grep -v '^ *+' conftest.er1 >conftest.err
43630   rm -f conftest.er1
43631   cat conftest.err >&5
43632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43633   (exit $ac_status); } &&
43634          { ac_try='test -z "$ac_c_werror_flag"
43635                          || test ! -s conftest.err'
43636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43637   (eval $ac_try) 2>&5
43638   ac_status=$?
43639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43640   (exit $ac_status); }; } &&
43641          { ac_try='test -s conftest$ac_exeext'
43642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43643   (eval $ac_try) 2>&5
43644   ac_status=$?
43645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43646   (exit $ac_status); }; }; then
43647   ac_cv_lib_ltdl_lt_dlinit=yes
43648 else
43649   echo "$as_me: failed program was:" >&5
43650 sed 's/^/| /' conftest.$ac_ext >&5
43651
43652 ac_cv_lib_ltdl_lt_dlinit=no
43653 fi
43654 rm -f conftest.err conftest.$ac_objext \
43655       conftest$ac_exeext conftest.$ac_ext
43656 LIBS=$ac_check_lib_save_LIBS
43657 fi
43658 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
43659 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
43660 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
43661
43662                 SLAPI_LIBS=-lltdl
43663                 LIBSLAPI=libslapi.a
43664                 LIBSLAPITOOLS=../libslapi.a
43665
43666 cat >>confdefs.h <<\_ACEOF
43667 #define HAVE_LIBLTDL 1
43668 _ACEOF
43669
43670
43671 else
43672   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
43673 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
43674    { (exit 1); exit 1; }; }
43675 fi
43676
43677
43678
43679 cat >>confdefs.h <<\_ACEOF
43680 #define LDAP_SLAPI 1
43681 _ACEOF
43682
43683 fi
43684
43685 if test "$ol_enable_debug" != no ; then
43686
43687 cat >>confdefs.h <<\_ACEOF
43688 #define LDAP_DEBUG 1
43689 _ACEOF
43690
43691 fi
43692 if test "$ol_enable_syslog" = yes ; then
43693
43694 cat >>confdefs.h <<\_ACEOF
43695 #define LDAP_SYSLOG 1
43696 _ACEOF
43697
43698 fi
43699 if test "$ol_link_kbind" != no ; then
43700
43701 cat >>confdefs.h <<\_ACEOF
43702 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
43703 _ACEOF
43704
43705 fi
43706 if test "$ol_enable_proctitle" != no ; then
43707
43708 cat >>confdefs.h <<\_ACEOF
43709 #define LDAP_PROCTITLE 1
43710 _ACEOF
43711
43712 fi
43713 if test "$ol_enable_referrals" != no ; then
43714
43715 cat >>confdefs.h <<\_ACEOF
43716 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
43717 _ACEOF
43718
43719 fi
43720 if test "$ol_enable_local" != no; then
43721
43722 cat >>confdefs.h <<\_ACEOF
43723 #define LDAP_PF_LOCAL 1
43724 _ACEOF
43725
43726 fi
43727 if test "$ol_link_ipv6" != no; then
43728
43729 cat >>confdefs.h <<\_ACEOF
43730 #define LDAP_PF_INET6 1
43731 _ACEOF
43732
43733 fi
43734 if test "$ol_enable_cleartext" != no ; then
43735
43736 cat >>confdefs.h <<\_ACEOF
43737 #define SLAPD_CLEARTEXT 1
43738 _ACEOF
43739
43740 fi
43741 if test "$ol_enable_crypt" != no ; then
43742
43743 cat >>confdefs.h <<\_ACEOF
43744 #define SLAPD_CRYPT 1
43745 _ACEOF
43746
43747 fi
43748 if test "$ol_link_spasswd" != no ; then
43749
43750 cat >>confdefs.h <<\_ACEOF
43751 #define SLAPD_SPASSWD 1
43752 _ACEOF
43753
43754 fi
43755 if test "$ol_enable_multimaster" != no ; then
43756
43757 cat >>confdefs.h <<\_ACEOF
43758 #define SLAPD_MULTIMASTER 1
43759 _ACEOF
43760
43761 fi
43762 if test "$ol_enable_rlookups" != no ; then
43763
43764 cat >>confdefs.h <<\_ACEOF
43765 #define SLAPD_RLOOKUPS 1
43766 _ACEOF
43767
43768 fi
43769 if test "$ol_enable_aci" != no ; then
43770
43771 cat >>confdefs.h <<\_ACEOF
43772 #define SLAPD_ACI_ENABLED 1
43773 _ACEOF
43774
43775         WITH_ACI_ENABLED=yes
43776 else
43777         WITH_ACI_ENABLED=no
43778 fi
43779
43780 if test "$ol_link_modules" != no ; then
43781
43782 cat >>confdefs.h <<\_ACEOF
43783 #define SLAPD_MODULES 1
43784 _ACEOF
43785
43786         BUILD_SLAPD=yes
43787         SLAPD_MODULES_LDFLAGS="-dlopen self"
43788 fi
43789
43790
43791 cat >>confdefs.h <<\_ACEOF
43792 #define SLAPD_MOD_STATIC 1
43793 _ACEOF
43794
43795
43796 cat >>confdefs.h <<\_ACEOF
43797 #define SLAPD_MOD_DYNAMIC 2
43798 _ACEOF
43799
43800
43801 if test "$ol_enable_bdb" != no ; then
43802         BUILD_SLAPD=yes
43803         BUILD_BDB=$ol_enable_bdb
43804         if test "$ol_enable_bdb" = mod ; then
43805                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
43806                 MFLAG=SLAPD_MOD_DYNAMIC
43807         else
43808                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
43809                 MFLAG=SLAPD_MOD_STATIC
43810         fi
43811
43812 cat >>confdefs.h <<_ACEOF
43813 #define SLAPD_BDB $MFLAG
43814 _ACEOF
43815
43816 fi
43817
43818 if test "$ol_enable_dnssrv" != no ; then
43819         BUILD_SLAPD=yes
43820         BUILD_DNSSRV=$ol_enable_dnssrv
43821         if test "$ol_enable_dnssrv" = mod ; then
43822                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
43823                 MFLAG=SLAPD_MOD_DYNAMIC
43824         else
43825                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
43826                 MFLAG=SLAPD_MOD_STATIC
43827         fi
43828
43829 cat >>confdefs.h <<_ACEOF
43830 #define SLAPD_DNSSRV $MFLAG
43831 _ACEOF
43832
43833 fi
43834
43835 if test "$ol_enable_hdb" != no ; then
43836         BUILD_SLAPD=yes
43837         BUILD_HDB=$ol_enable_hdb
43838         if test "$ol_enable_hdb" = mod ; then
43839                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
43840                 MFLAG=SLAPD_MOD_DYNAMIC
43841         else
43842                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
43843                 MFLAG=SLAPD_MOD_STATIC
43844         fi
43845
43846 cat >>confdefs.h <<_ACEOF
43847 #define SLAPD_HDB $MFLAG
43848 _ACEOF
43849
43850 fi
43851
43852 if test "$ol_enable_ldap" != no ; then
43853         BUILD_SLAPD=yes
43854         BUILD_LDAP=$ol_enable_ldap
43855         if test "$ol_enable_ldap" = mod ; then
43856                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
43857                 MFLAG=SLAPD_MOD_DYNAMIC
43858         else
43859                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
43860                 MFLAG=SLAPD_MOD_STATIC
43861         fi
43862
43863 cat >>confdefs.h <<_ACEOF
43864 #define SLAPD_LDAP $MFLAG
43865 _ACEOF
43866
43867 fi
43868
43869 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
43870         BUILD_SLAPD=yes
43871         BUILD_LDBM=$ol_enable_ldbm
43872         if test "$ol_enable_ldbm" = mod ; then
43873                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
43874                 MFLAG=SLAPD_MOD_DYNAMIC
43875         else
43876                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
43877                 MFLAG=SLAPD_MOD_STATIC
43878         fi
43879
43880 cat >>confdefs.h <<_ACEOF
43881 #define SLAPD_LDBM $MFLAG
43882 _ACEOF
43883
43884 fi
43885
43886 if test "$ol_enable_meta" != no ; then
43887         BUILD_SLAPD=yes
43888         BUILD_META=$ol_enable_meta
43889         BUILD_REWRITE=yes
43890         if test "$ol_enable_meta" = mod ; then
43891                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
43892                 MFLAG=SLAPD_MOD_DYNAMIC
43893         else
43894                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
43895                 MFLAG=SLAPD_MOD_STATIC
43896         fi
43897
43898 cat >>confdefs.h <<_ACEOF
43899 #define SLAPD_META $MFLAG
43900 _ACEOF
43901
43902 fi
43903
43904 if test "$ol_enable_monitor" != no ; then
43905         BUILD_SLAPD=yes
43906         BUILD_MONITOR=$ol_enable_monitor
43907         if test "$ol_enable_monitor" = mod ; then
43908                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
43909                 MFLAG=SLAPD_MOD_DYNAMIC
43910         else
43911                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
43912                 MFLAG=SLAPD_MOD_STATIC
43913         fi
43914
43915 cat >>confdefs.h <<_ACEOF
43916 #define SLAPD_MONITOR $MFLAG
43917 _ACEOF
43918
43919 fi
43920
43921 if test "$ol_enable_null" != no ; then
43922         BUILD_SLAPD=yes
43923         BUILD_NULL=$ol_enable_null
43924         if test "$ol_enable_null" = mod ; then
43925                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
43926                 MFLAG=SLAPD_MOD_DYNAMIC
43927         else
43928                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
43929                 MFLAG=SLAPD_MOD_STATIC
43930         fi
43931
43932 cat >>confdefs.h <<_ACEOF
43933 #define SLAPD_NULL $MFLAG
43934 _ACEOF
43935
43936 fi
43937
43938 if test "$ol_enable_passwd" != no ; then
43939         BUILD_SLAPD=yes
43940         BUILD_PASSWD=$ol_enable_passwd
43941         if test "$ol_enable_passwd" = mod ; then
43942                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
43943                 MFLAG=SLAPD_MOD_DYNAMIC
43944         else
43945                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
43946                 MFLAG=SLAPD_MOD_STATIC
43947         fi
43948
43949 cat >>confdefs.h <<_ACEOF
43950 #define SLAPD_PASSWD $MFLAG
43951 _ACEOF
43952
43953 fi
43954
43955 if test "$ol_link_perl" != no ; then
43956         BUILD_SLAPD=yes
43957         BUILD_PERL=$ol_enable_perl
43958         if test "$ol_enable_perl" = mod ; then
43959                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
43960                 MFLAG=SLAPD_MOD_DYNAMIC
43961         else
43962                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
43963                 MFLAG=SLAPD_MOD_STATIC
43964         fi
43965
43966 cat >>confdefs.h <<_ACEOF
43967 #define SLAPD_PERL $MFLAG
43968 _ACEOF
43969
43970 fi
43971
43972 if test "$ol_enable_relay" != no ; then
43973         BUILD_SLAPD=yes
43974         BUILD_RELAY=$ol_enable_relay
43975         if test "$ol_enable_relay" = mod ; then
43976                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
43977                 MFLAG=SLAPD_MOD_DYNAMIC
43978         else
43979                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
43980                 MFLAG=SLAPD_MOD_STATIC
43981         fi
43982
43983 cat >>confdefs.h <<_ACEOF
43984 #define SLAPD_RELAY $MFLAG
43985 _ACEOF
43986
43987 fi
43988
43989 if test "$ol_enable_shell" != no ; then
43990         if test "$ol_link_threads" != no ; then
43991                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
43992 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
43993         fi
43994         BUILD_SLAPD=yes
43995         BUILD_SHELL=$ol_enable_shell
43996         if test "$ol_enable_shell" = mod ; then
43997                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
43998                 MFLAG=SLAPD_MOD_DYNAMIC
43999         else
44000                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44001                 MFLAG=SLAPD_MOD_STATIC
44002         fi
44003
44004 cat >>confdefs.h <<_ACEOF
44005 #define SLAPD_SHELL $MFLAG
44006 _ACEOF
44007
44008 fi
44009
44010 if test "$ol_link_sql" != no ; then
44011         BUILD_SLAPD=yes
44012         BUILD_SQL=$ol_enable_sql
44013         if test "$ol_enable_sql" = mod; then
44014                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44015                 MFLAG=SLAPD_MOD_DYNAMIC
44016         else
44017                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44018                 MFLAG=SLAPD_MOD_STATIC
44019         fi
44020
44021 cat >>confdefs.h <<_ACEOF
44022 #define SLAPD_SQL $MFLAG
44023 _ACEOF
44024
44025 fi
44026
44027 if test "$ol_enable_accesslog" != no ; then
44028         BUILD_ACCESSLOG=$ol_enable_accesslog
44029         if test "$ol_enable_accesslog" = mod ; then
44030                 MFLAG=SLAPD_MOD_DYNAMIC
44031                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44032         else
44033                 MFLAG=SLAPD_MOD_STATIC
44034                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44035         fi
44036
44037 cat >>confdefs.h <<_ACEOF
44038 #define SLAPD_OVER_ACCESSLOG $MFLAG
44039 _ACEOF
44040
44041 fi
44042
44043 if test "$ol_enable_denyop" != no ; then
44044         BUILD_DENYOP=$ol_enable_denyop
44045         if test "$ol_enable_denyop" = mod ; then
44046                 MFLAG=SLAPD_MOD_DYNAMIC
44047                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44048         else
44049                 MFLAG=SLAPD_MOD_STATIC
44050                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44051         fi
44052
44053 cat >>confdefs.h <<_ACEOF
44054 #define SLAPD_OVER_DENYOP $MFLAG
44055 _ACEOF
44056
44057 fi
44058
44059 if test "$ol_enable_dyngroup" != no ; then
44060         BUILD_DYNGROUP=$ol_enable_dyngroup
44061         if test "$ol_enable_dyngroup" = mod ; then
44062                 MFLAG=SLAPD_MOD_DYNAMIC
44063                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44064         else
44065                 MFLAG=SLAPD_MOD_STATIC
44066                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44067         fi
44068
44069 cat >>confdefs.h <<_ACEOF
44070 #define SLAPD_OVER_DYNGROUP $MFLAG
44071 _ACEOF
44072
44073 fi
44074
44075 if test "$ol_enable_dynlist" != no ; then
44076         BUILD_DYNLIST=$ol_enable_dynlist
44077         if test "$ol_enable_dynlist" = mod ; then
44078                 MFLAG=SLAPD_MOD_DYNAMIC
44079                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44080         else
44081                 MFLAG=SLAPD_MOD_STATIC
44082                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44083         fi
44084
44085 cat >>confdefs.h <<_ACEOF
44086 #define SLAPD_OVER_DYNLIST $MFLAG
44087 _ACEOF
44088
44089 fi
44090
44091 if test "$ol_enable_lastmod" != no ; then
44092         BUILD_LASTMOD=$ol_enable_lastmod
44093         if test "$ol_enable_lastmod" = mod ; then
44094                 MFLAG=SLAPD_MOD_DYNAMIC
44095                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44096         else
44097                 MFLAG=SLAPD_MOD_STATIC
44098                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44099         fi
44100
44101 cat >>confdefs.h <<_ACEOF
44102 #define SLAPD_OVER_LASTMOD $MFLAG
44103 _ACEOF
44104
44105 fi
44106
44107 if test "$ol_enable_ppolicy" != no ; then
44108         BUILD_PPOLICY=$ol_enable_ppolicy
44109         if test "$ol_enable_ppolicy" = mod ; then
44110                 MFLAG=SLAPD_MOD_DYNAMIC
44111                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44112         else
44113                 MFLAG=SLAPD_MOD_STATIC
44114                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44115         fi
44116
44117 cat >>confdefs.h <<_ACEOF
44118 #define SLAPD_OVER_PPOLICY $MFLAG
44119 _ACEOF
44120
44121 fi
44122
44123 if test "$ol_enable_proxycache" != no ; then
44124         BUILD_PROXYCACHE=$ol_enable_proxycache
44125         if test "$ol_enable_proxycache" = mod ; then
44126                 MFLAG=SLAPD_MOD_DYNAMIC
44127                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44128         else
44129                 MFLAG=SLAPD_MOD_STATIC
44130                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44131         fi
44132
44133 cat >>confdefs.h <<_ACEOF
44134 #define SLAPD_OVER_PROXYCACHE $MFLAG
44135 _ACEOF
44136
44137 fi
44138
44139 if test "$ol_enable_refint" != no ; then
44140         BUILD_REFINT=$ol_enable_refint
44141         if test "$ol_enable_refint" = mod ; then
44142                 MFLAG=SLAPD_MOD_DYNAMIC
44143                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44144         else
44145                 MFLAG=SLAPD_MOD_STATIC
44146                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44147         fi
44148
44149 cat >>confdefs.h <<_ACEOF
44150 #define SLAPD_OVER_REFINT $MFLAG
44151 _ACEOF
44152
44153 fi
44154
44155 if test "$ol_enable_retcode" != no ; then
44156         BUILD_RETCODE=$ol_enable_retcode
44157         if test "$ol_enable_retcode" = mod ; then
44158                 MFLAG=SLAPD_MOD_DYNAMIC
44159                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44160         else
44161                 MFLAG=SLAPD_MOD_STATIC
44162                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44163         fi
44164
44165 cat >>confdefs.h <<_ACEOF
44166 #define SLAPD_OVER_RETCODE $MFLAG
44167 _ACEOF
44168
44169 fi
44170
44171 if test "$ol_enable_rwm" != no ; then
44172         BUILD_REWRITE=yes
44173         BUILD_RWM=$ol_enable_rwm
44174         if test "$ol_enable_rwm" = mod ; then
44175                 MFLAG=SLAPD_MOD_DYNAMIC
44176                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44177         else
44178                 MFLAG=SLAPD_MOD_STATIC
44179                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44180         fi
44181
44182 cat >>confdefs.h <<_ACEOF
44183 #define SLAPD_OVER_RWM $MFLAG
44184 _ACEOF
44185
44186 fi
44187
44188 if test "$ol_enable_syncprov" != no ; then
44189         BUILD_SYNCPROV=$ol_enable_syncprov
44190         if test "$ol_enable_syncprov" = mod ; then
44191                 MFLAG=SLAPD_MOD_DYNAMIC
44192                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44193         else
44194                 MFLAG=SLAPD_MOD_STATIC
44195                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44196         fi
44197
44198 cat >>confdefs.h <<_ACEOF
44199 #define SLAPD_OVER_SYNCPROV $MFLAG
44200 _ACEOF
44201
44202 fi
44203
44204 if test "$ol_enable_translucent" != no ; then
44205         BUILD_TRANSLUCENT=$ol_enable_translucent
44206         if test "$ol_enable_translucent" = mod ; then
44207                 MFLAG=SLAPD_MOD_DYNAMIC
44208                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44209         else
44210                 MFLAG=SLAPD_MOD_STATIC
44211                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44212         fi
44213
44214 cat >>confdefs.h <<_ACEOF
44215 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44216 _ACEOF
44217
44218 fi
44219
44220 if test "$ol_enable_unique" != no ; then
44221         BUILD_UNIQUE=$ol_enable_unique
44222         if test "$ol_enable_unique" = mod ; then
44223                 MFLAG=SLAPD_MOD_DYNAMIC
44224                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44225         else
44226                 MFLAG=SLAPD_MOD_STATIC
44227                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44228         fi
44229
44230 cat >>confdefs.h <<_ACEOF
44231 #define SLAPD_OVER_UNIQUE $MFLAG
44232 _ACEOF
44233
44234 fi
44235
44236 if test "$ol_enable_valsort" != no ; then
44237         BUILD_VALSORT=$ol_enable_valsort
44238         if test "$ol_enable_valsort" = mod ; then
44239                 MFLAG=SLAPD_MOD_DYNAMIC
44240                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44241         else
44242                 MFLAG=SLAPD_MOD_STATIC
44243                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44244         fi
44245
44246 cat >>confdefs.h <<_ACEOF
44247 #define SLAPD_OVER_VALSORT $MFLAG
44248 _ACEOF
44249
44250 fi
44251
44252 if test "$ol_enable_slurpd" != no &&
44253    test "$ol_link_threads" != no &&
44254    test $BUILD_SLAPD = yes ; then
44255         BUILD_SLURPD=yes
44256 fi
44257
44258 if test "$ol_enable_rewrite" != no ; then
44259
44260 cat >>confdefs.h <<\_ACEOF
44261 #define ENABLE_REWRITE 1
44262 _ACEOF
44263
44264         BUILD_REWRITE=yes
44265 fi
44266
44267 if test "$ol_enable_slapi" != no ; then
44268
44269 cat >>confdefs.h <<\_ACEOF
44270 #define ENABLE_SLAPI 1
44271 _ACEOF
44272
44273         BUILD_SLAPI=yes
44274         SLAPD_SLAPI_DEPEND=libslapi.a
44275 fi
44276
44277
44278
44279 if test "$ac_cv_mingw32" = yes ; then
44280         PLAT=NT
44281         SLAPD_MODULES_LDFLAGS=
44282 else
44283         PLAT=UNIX
44284 fi
44285
44286
44287
44288
44289
44290
44291
44292
44293
44294
44295
44296
44297
44298
44299
44300
44301
44302
44303
44304
44305
44306
44307
44308
44309
44310
44311
44312
44313
44314
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
44326
44327
44328
44329
44330
44331
44332
44333
44334
44335
44336
44337
44338
44339
44340
44341
44342
44343
44344
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357
44358
44359
44360
44361
44362
44363
44364
44365
44366 # Check whether --with-xxinstall or --without-xxinstall was given.
44367 if test "${with_xxinstall+set}" = set; then
44368   withval="$with_xxinstall"
44369
44370 fi;
44371
44372
44373                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44374
44375
44376           ac_config_commands="$ac_config_commands default"
44377
44378
44379
44380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44381 # Let make expand exec_prefix.
44382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44383
44384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44386 # trailing colons and then remove the whole line if VPATH becomes empty
44387 # (actually we leave an empty line to preserve line numbers).
44388 if test "x$srcdir" = x.; then
44389   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44390 s/:*\$(srcdir):*/:/;
44391 s/:*\${srcdir}:*/:/;
44392 s/:*@srcdir@:*/:/;
44393 s/^\([^=]*=[     ]*\):*/\1/;
44394 s/:*$//;
44395 s/^[^=]*=[       ]*$//;
44396 }'
44397 fi
44398
44399 DEFS=-DHAVE_CONFIG_H
44400
44401 ac_libobjs=
44402 ac_ltlibobjs=
44403 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44404   # 1. Remove the extension, and $U if already installed.
44405   ac_i=`echo "$ac_i" |
44406          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44407   # 2. Add them.
44408   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44409   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44410 done
44411 LIBOBJS=$ac_libobjs
44412
44413 LTLIBOBJS=$ac_ltlibobjs
44414
44415
44416 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44417   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44418 Usually this means the macro was only invoked conditionally." >&5
44419 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44420 Usually this means the macro was only invoked conditionally." >&2;}
44421    { (exit 1); exit 1; }; }
44422 fi
44423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44424   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44425 Usually this means the macro was only invoked conditionally." >&5
44426 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44427 Usually this means the macro was only invoked conditionally." >&2;}
44428    { (exit 1); exit 1; }; }
44429 fi
44430 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44431   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44432 Usually this means the macro was only invoked conditionally." >&5
44433 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44434 Usually this means the macro was only invoked conditionally." >&2;}
44435    { (exit 1); exit 1; }; }
44436 fi
44437
44438 : ${CONFIG_STATUS=./config.status}
44439 ac_clean_files_save=$ac_clean_files
44440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44441 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44442 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44443 cat >$CONFIG_STATUS <<_ACEOF
44444 #! $SHELL
44445 # Generated by $as_me.
44446 # Run this file to recreate the current configuration.
44447 # Compiler output produced by configure, useful for debugging
44448 # configure, is in config.log if it exists.
44449
44450 debug=false
44451 ac_cs_recheck=false
44452 ac_cs_silent=false
44453 SHELL=\${CONFIG_SHELL-$SHELL}
44454 _ACEOF
44455
44456 cat >>$CONFIG_STATUS <<\_ACEOF
44457 ## --------------------- ##
44458 ## M4sh Initialization.  ##
44459 ## --------------------- ##
44460
44461 # Be Bourne compatible
44462 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44463   emulate sh
44464   NULLCMD=:
44465   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44466   # is contrary to our usage.  Disable this feature.
44467   alias -g '${1+"$@"}'='"$@"'
44468 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44469   set -o posix
44470 fi
44471 DUALCASE=1; export DUALCASE # for MKS sh
44472
44473 # Support unset when possible.
44474 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44475   as_unset=unset
44476 else
44477   as_unset=false
44478 fi
44479
44480
44481 # Work around bugs in pre-3.0 UWIN ksh.
44482 $as_unset ENV MAIL MAILPATH
44483 PS1='$ '
44484 PS2='> '
44485 PS4='+ '
44486
44487 # NLS nuisances.
44488 for as_var in \
44489   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44490   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44491   LC_TELEPHONE LC_TIME
44492 do
44493   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44494     eval $as_var=C; export $as_var
44495   else
44496     $as_unset $as_var
44497   fi
44498 done
44499
44500 # Required to use basename.
44501 if expr a : '\(a\)' >/dev/null 2>&1; then
44502   as_expr=expr
44503 else
44504   as_expr=false
44505 fi
44506
44507 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44508   as_basename=basename
44509 else
44510   as_basename=false
44511 fi
44512
44513
44514 # Name of the executable.
44515 as_me=`$as_basename "$0" ||
44516 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44517          X"$0" : 'X\(//\)$' \| \
44518          X"$0" : 'X\(/\)$' \| \
44519          .     : '\(.\)' 2>/dev/null ||
44520 echo X/"$0" |
44521     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44522           /^X\/\(\/\/\)$/{ s//\1/; q; }
44523           /^X\/\(\/\).*/{ s//\1/; q; }
44524           s/.*/./; q'`
44525
44526
44527 # PATH needs CR, and LINENO needs CR and PATH.
44528 # Avoid depending upon Character Ranges.
44529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44532 as_cr_digits='0123456789'
44533 as_cr_alnum=$as_cr_Letters$as_cr_digits
44534
44535 # The user is always right.
44536 if test "${PATH_SEPARATOR+set}" != set; then
44537   echo "#! /bin/sh" >conf$$.sh
44538   echo  "exit 0"   >>conf$$.sh
44539   chmod +x conf$$.sh
44540   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44541     PATH_SEPARATOR=';'
44542   else
44543     PATH_SEPARATOR=:
44544   fi
44545   rm -f conf$$.sh
44546 fi
44547
44548
44549   as_lineno_1=$LINENO
44550   as_lineno_2=$LINENO
44551   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44552   test "x$as_lineno_1" != "x$as_lineno_2" &&
44553   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
44554   # Find who we are.  Look in the path if we contain no path at all
44555   # relative or not.
44556   case $0 in
44557     *[\\/]* ) as_myself=$0 ;;
44558     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44559 for as_dir in $PATH
44560 do
44561   IFS=$as_save_IFS
44562   test -z "$as_dir" && as_dir=.
44563   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44564 done
44565
44566        ;;
44567   esac
44568   # We did not find ourselves, most probably we were run as `sh COMMAND'
44569   # in which case we are not to be found in the path.
44570   if test "x$as_myself" = x; then
44571     as_myself=$0
44572   fi
44573   if test ! -f "$as_myself"; then
44574     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44575 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44576    { (exit 1); exit 1; }; }
44577   fi
44578   case $CONFIG_SHELL in
44579   '')
44580     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44581 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44582 do
44583   IFS=$as_save_IFS
44584   test -z "$as_dir" && as_dir=.
44585   for as_base in sh bash ksh sh5; do
44586          case $as_dir in
44587          /*)
44588            if ("$as_dir/$as_base" -c '
44589   as_lineno_1=$LINENO
44590   as_lineno_2=$LINENO
44591   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44592   test "x$as_lineno_1" != "x$as_lineno_2" &&
44593   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
44594              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44595              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44596              CONFIG_SHELL=$as_dir/$as_base
44597              export CONFIG_SHELL
44598              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44599            fi;;
44600          esac
44601        done
44602 done
44603 ;;
44604   esac
44605
44606   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44607   # uniformly replaced by the line number.  The first 'sed' inserts a
44608   # line-number line before each line; the second 'sed' does the real
44609   # work.  The second script uses 'N' to pair each line-number line
44610   # with the numbered line, and appends trailing '-' during
44611   # substitution so that $LINENO is not a special case at line end.
44612   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44613   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
44614   sed '=' <$as_myself |
44615     sed '
44616       N
44617       s,$,-,
44618       : loop
44619       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44620       t loop
44621       s,-$,,
44622       s,^['$as_cr_digits']*\n,,
44623     ' >$as_me.lineno &&
44624   chmod +x $as_me.lineno ||
44625     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44626 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44627    { (exit 1); exit 1; }; }
44628
44629   # Don't try to exec as it changes $[0], causing all sort of problems
44630   # (the dirname of $[0] is not the place where we might find the
44631   # original and so on.  Autoconf is especially sensible to this).
44632   . ./$as_me.lineno
44633   # Exit status is that of the last command.
44634   exit
44635 }
44636
44637
44638 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44639   *c*,-n*) ECHO_N= ECHO_C='
44640 ' ECHO_T='      ' ;;
44641   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44642   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
44643 esac
44644
44645 if expr a : '\(a\)' >/dev/null 2>&1; then
44646   as_expr=expr
44647 else
44648   as_expr=false
44649 fi
44650
44651 rm -f conf$$ conf$$.exe conf$$.file
44652 echo >conf$$.file
44653 if ln -s conf$$.file conf$$ 2>/dev/null; then
44654   # We could just check for DJGPP; but this test a) works b) is more generic
44655   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44656   if test -f conf$$.exe; then
44657     # Don't use ln at all; we don't have any links
44658     as_ln_s='cp -p'
44659   else
44660     as_ln_s='ln -s'
44661   fi
44662 elif ln conf$$.file conf$$ 2>/dev/null; then
44663   as_ln_s=ln
44664 else
44665   as_ln_s='cp -p'
44666 fi
44667 rm -f conf$$ conf$$.exe conf$$.file
44668
44669 if mkdir -p . 2>/dev/null; then
44670   as_mkdir_p=:
44671 else
44672   test -d ./-p && rmdir ./-p
44673   as_mkdir_p=false
44674 fi
44675
44676 as_executable_p="test -f"
44677
44678 # Sed expression to map a string onto a valid CPP name.
44679 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44680
44681 # Sed expression to map a string onto a valid variable name.
44682 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44683
44684
44685 # IFS
44686 # We need space, tab and new line, in precisely that order.
44687 as_nl='
44688 '
44689 IFS="   $as_nl"
44690
44691 # CDPATH.
44692 $as_unset CDPATH
44693
44694 exec 6>&1
44695
44696 # Open the log real soon, to keep \$[0] and so on meaningful, and to
44697 # report actual input values of CONFIG_FILES etc. instead of their
44698 # values after options handling.  Logging --version etc. is OK.
44699 exec 5>>config.log
44700 {
44701   echo
44702   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44703 ## Running $as_me. ##
44704 _ASBOX
44705 } >&5
44706 cat >&5 <<_CSEOF
44707
44708 This file was extended by $as_me, which was
44709 generated by GNU Autoconf 2.59.  Invocation command line was
44710
44711   CONFIG_FILES    = $CONFIG_FILES
44712   CONFIG_HEADERS  = $CONFIG_HEADERS
44713   CONFIG_LINKS    = $CONFIG_LINKS
44714   CONFIG_COMMANDS = $CONFIG_COMMANDS
44715   $ $0 $@
44716
44717 _CSEOF
44718 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44719 echo >&5
44720 _ACEOF
44721
44722 # Files that config.status was made for.
44723 if test -n "$ac_config_files"; then
44724   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44725 fi
44726
44727 if test -n "$ac_config_headers"; then
44728   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44729 fi
44730
44731 if test -n "$ac_config_links"; then
44732   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44733 fi
44734
44735 if test -n "$ac_config_commands"; then
44736   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44737 fi
44738
44739 cat >>$CONFIG_STATUS <<\_ACEOF
44740
44741 ac_cs_usage="\
44742 \`$as_me' instantiates files from templates according to the
44743 current configuration.
44744
44745 Usage: $0 [OPTIONS] [FILE]...
44746
44747   -h, --help       print this help, then exit
44748   -V, --version    print version number, then exit
44749   -q, --quiet      do not print progress messages
44750   -d, --debug      don't remove temporary files
44751       --recheck    update $as_me by reconfiguring in the same conditions
44752   --file=FILE[:TEMPLATE]
44753                    instantiate the configuration file FILE
44754   --header=FILE[:TEMPLATE]
44755                    instantiate the configuration header FILE
44756
44757 Configuration files:
44758 $config_files
44759
44760 Configuration headers:
44761 $config_headers
44762
44763 Configuration commands:
44764 $config_commands
44765
44766 Report bugs to <bug-autoconf@gnu.org>."
44767 _ACEOF
44768
44769 cat >>$CONFIG_STATUS <<_ACEOF
44770 ac_cs_version="\\
44771 config.status
44772 configured by $0, generated by GNU Autoconf 2.59,
44773   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44774
44775 Copyright (C) 2003 Free Software Foundation, Inc.
44776 This config.status script is free software; the Free Software Foundation
44777 gives unlimited permission to copy, distribute and modify it."
44778 srcdir=$srcdir
44779 INSTALL="$INSTALL"
44780 _ACEOF
44781
44782 cat >>$CONFIG_STATUS <<\_ACEOF
44783 # If no file are specified by the user, then we need to provide default
44784 # value.  By we need to know if files were specified by the user.
44785 ac_need_defaults=:
44786 while test $# != 0
44787 do
44788   case $1 in
44789   --*=*)
44790     ac_option=`expr "x$1" : 'x\([^=]*\)='`
44791     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44792     ac_shift=:
44793     ;;
44794   -*)
44795     ac_option=$1
44796     ac_optarg=$2
44797     ac_shift=shift
44798     ;;
44799   *) # This is not an option, so the user has probably given explicit
44800      # arguments.
44801      ac_option=$1
44802      ac_need_defaults=false;;
44803   esac
44804
44805   case $ac_option in
44806   # Handling of the options.
44807 _ACEOF
44808 cat >>$CONFIG_STATUS <<\_ACEOF
44809   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44810     ac_cs_recheck=: ;;
44811   --version | --vers* | -V )
44812     echo "$ac_cs_version"; exit 0 ;;
44813   --he | --h)
44814     # Conflict between --help and --header
44815     { { echo "$as_me:$LINENO: error: ambiguous option: $1
44816 Try \`$0 --help' for more information." >&5
44817 echo "$as_me: error: ambiguous option: $1
44818 Try \`$0 --help' for more information." >&2;}
44819    { (exit 1); exit 1; }; };;
44820   --help | --hel | -h )
44821     echo "$ac_cs_usage"; exit 0 ;;
44822   --debug | --d* | -d )
44823     debug=: ;;
44824   --file | --fil | --fi | --f )
44825     $ac_shift
44826     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44827     ac_need_defaults=false;;
44828   --header | --heade | --head | --hea )
44829     $ac_shift
44830     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44831     ac_need_defaults=false;;
44832   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44833   | -silent | --silent | --silen | --sile | --sil | --si | --s)
44834     ac_cs_silent=: ;;
44835
44836   # This is an error.
44837   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44838 Try \`$0 --help' for more information." >&5
44839 echo "$as_me: error: unrecognized option: $1
44840 Try \`$0 --help' for more information." >&2;}
44841    { (exit 1); exit 1; }; } ;;
44842
44843   *) ac_config_targets="$ac_config_targets $1" ;;
44844
44845   esac
44846   shift
44847 done
44848
44849 ac_configure_extra_args=
44850
44851 if $ac_cs_silent; then
44852   exec 6>/dev/null
44853   ac_configure_extra_args="$ac_configure_extra_args --silent"
44854 fi
44855
44856 _ACEOF
44857 cat >>$CONFIG_STATUS <<_ACEOF
44858 if \$ac_cs_recheck; then
44859   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44860   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44861 fi
44862
44863 _ACEOF
44864
44865 cat >>$CONFIG_STATUS <<_ACEOF
44866 #
44867 # INIT-COMMANDS section.
44868 #
44869
44870 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
44871
44872 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
44873 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
44874
44875
44876 _ACEOF
44877
44878
44879
44880 cat >>$CONFIG_STATUS <<\_ACEOF
44881 for ac_config_target in $ac_config_targets
44882 do
44883   case "$ac_config_target" in
44884   # Handling of arguments.
44885   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
44886   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
44887   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
44888   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
44889   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
44890   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
44891   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
44892   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
44893   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
44894   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
44895   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
44896   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
44897   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
44898   "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" ;;
44899   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44900   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44901   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
44902   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
44903   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
44904   "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" ;;
44905   "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" ;;
44906   "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" ;;
44907   "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" ;;
44908   "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" ;;
44909   "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" ;;
44910   "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" ;;
44911   "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" ;;
44912   "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" ;;
44913   "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" ;;
44914   "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" ;;
44915   "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" ;;
44916   "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" ;;
44917   "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" ;;
44918   "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" ;;
44919   "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" ;;
44920   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
44921   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
44922   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
44923   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
44924   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
44925   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
44926   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44927   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
44928   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
44929   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
44930   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44932    { (exit 1); exit 1; }; };;
44933   esac
44934 done
44935
44936 # If the user did not use the arguments to specify the items to instantiate,
44937 # then the envvar interface is used.  Set only those that are not.
44938 # We use the long form for the default assignment because of an extremely
44939 # bizarre bug on SunOS 4.1.3.
44940 if $ac_need_defaults; then
44941   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44942   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44943   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44944 fi
44945
44946 # Have a temporary directory for convenience.  Make it in the build tree
44947 # simply because there is no reason to put it here, and in addition,
44948 # creating and moving files from /tmp can sometimes cause problems.
44949 # Create a temporary directory, and hook for its removal unless debugging.
44950 $debug ||
44951 {
44952   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44953   trap '{ (exit 1); exit 1; }' 1 2 13 15
44954 }
44955
44956 # Create a (secure) tmp directory for tmp files.
44957
44958 {
44959   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44960   test -n "$tmp" && test -d "$tmp"
44961 }  ||
44962 {
44963   tmp=./confstat$$-$RANDOM
44964   (umask 077 && mkdir $tmp)
44965 } ||
44966 {
44967    echo "$me: cannot create a temporary directory in ." >&2
44968    { (exit 1); exit 1; }
44969 }
44970
44971 _ACEOF
44972
44973 cat >>$CONFIG_STATUS <<_ACEOF
44974
44975 #
44976 # CONFIG_FILES section.
44977 #
44978
44979 # No need to generate the scripts if there are no CONFIG_FILES.
44980 # This happens for instance when ./config.status config.h
44981 if test -n "\$CONFIG_FILES"; then
44982   # Protect against being on the right side of a sed subst in config.status.
44983   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44984    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44985 s,@SHELL@,$SHELL,;t t
44986 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44987 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44988 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44989 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44990 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44991 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44992 s,@exec_prefix@,$exec_prefix,;t t
44993 s,@prefix@,$prefix,;t t
44994 s,@program_transform_name@,$program_transform_name,;t t
44995 s,@bindir@,$bindir,;t t
44996 s,@sbindir@,$sbindir,;t t
44997 s,@libexecdir@,$libexecdir,;t t
44998 s,@datadir@,$datadir,;t t
44999 s,@sysconfdir@,$sysconfdir,;t t
45000 s,@sharedstatedir@,$sharedstatedir,;t t
45001 s,@localstatedir@,$localstatedir,;t t
45002 s,@libdir@,$libdir,;t t
45003 s,@includedir@,$includedir,;t t
45004 s,@oldincludedir@,$oldincludedir,;t t
45005 s,@infodir@,$infodir,;t t
45006 s,@mandir@,$mandir,;t t
45007 s,@build_alias@,$build_alias,;t t
45008 s,@host_alias@,$host_alias,;t t
45009 s,@target_alias@,$target_alias,;t t
45010 s,@DEFS@,$DEFS,;t t
45011 s,@ECHO_C@,$ECHO_C,;t t
45012 s,@ECHO_N@,$ECHO_N,;t t
45013 s,@ECHO_T@,$ECHO_T,;t t
45014 s,@LIBS@,$LIBS,;t t
45015 s,@build@,$build,;t t
45016 s,@build_cpu@,$build_cpu,;t t
45017 s,@build_vendor@,$build_vendor,;t t
45018 s,@build_os@,$build_os,;t t
45019 s,@host@,$host,;t t
45020 s,@host_cpu@,$host_cpu,;t t
45021 s,@host_vendor@,$host_vendor,;t t
45022 s,@host_os@,$host_os,;t t
45023 s,@target@,$target,;t t
45024 s,@target_cpu@,$target_cpu,;t t
45025 s,@target_vendor@,$target_vendor,;t t
45026 s,@target_os@,$target_os,;t t
45027 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45028 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45029 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45030 s,@CYGPATH_W@,$CYGPATH_W,;t t
45031 s,@PACKAGE@,$PACKAGE,;t t
45032 s,@VERSION@,$VERSION,;t t
45033 s,@ACLOCAL@,$ACLOCAL,;t t
45034 s,@AUTOCONF@,$AUTOCONF,;t t
45035 s,@AUTOMAKE@,$AUTOMAKE,;t t
45036 s,@AUTOHEADER@,$AUTOHEADER,;t t
45037 s,@MAKEINFO@,$MAKEINFO,;t t
45038 s,@install_sh@,$install_sh,;t t
45039 s,@STRIP@,$STRIP,;t t
45040 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45041 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45042 s,@mkdir_p@,$mkdir_p,;t t
45043 s,@AWK@,$AWK,;t t
45044 s,@SET_MAKE@,$SET_MAKE,;t t
45045 s,@am__leading_dot@,$am__leading_dot,;t t
45046 s,@AMTAR@,$AMTAR,;t t
45047 s,@am__tar@,$am__tar,;t t
45048 s,@am__untar@,$am__untar,;t t
45049 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45050 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45051 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45052 s,@top_builddir@,$top_builddir,;t t
45053 s,@ldap_subdir@,$ldap_subdir,;t t
45054 s,@CC@,$CC,;t t
45055 s,@AR@,$AR,;t t
45056 s,@CFLAGS@,$CFLAGS,;t t
45057 s,@LDFLAGS@,$LDFLAGS,;t t
45058 s,@CPPFLAGS@,$CPPFLAGS,;t t
45059 s,@ac_ct_CC@,$ac_ct_CC,;t t
45060 s,@EXEEXT@,$EXEEXT,;t t
45061 s,@OBJEXT@,$OBJEXT,;t t
45062 s,@DEPDIR@,$DEPDIR,;t t
45063 s,@am__include@,$am__include,;t t
45064 s,@am__quote@,$am__quote,;t t
45065 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45066 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45067 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45068 s,@CCDEPMODE@,$CCDEPMODE,;t t
45069 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45070 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45071 s,@EGREP@,$EGREP,;t t
45072 s,@LN_S@,$LN_S,;t t
45073 s,@ECHO@,$ECHO,;t t
45074 s,@ac_ct_AR@,$ac_ct_AR,;t t
45075 s,@RANLIB@,$RANLIB,;t t
45076 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45077 s,@DLLTOOL@,$DLLTOOL,;t t
45078 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45079 s,@AS@,$AS,;t t
45080 s,@ac_ct_AS@,$ac_ct_AS,;t t
45081 s,@OBJDUMP@,$OBJDUMP,;t t
45082 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45083 s,@CPP@,$CPP,;t t
45084 s,@LIBTOOL@,$LIBTOOL,;t t
45085 s,@PERLBIN@,$PERLBIN,;t t
45086 s,@OL_MKDEP@,$OL_MKDEP,;t t
45087 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45088 s,@LTSTATIC@,$LTSTATIC,;t t
45089 s,@LIBOBJS@,$LIBOBJS,;t t
45090 s,@LIBSRCS@,$LIBSRCS,;t t
45091 s,@PLAT@,$PLAT,;t t
45092 s,@WITH_SASL@,$WITH_SASL,;t t
45093 s,@WITH_TLS@,$WITH_TLS,;t t
45094 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45095 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45096 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45097 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45098 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45099 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45100 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45101 s,@BUILD_BDB@,$BUILD_BDB,;t t
45102 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45103 s,@BUILD_HDB@,$BUILD_HDB,;t t
45104 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45105 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45106 s,@BUILD_META@,$BUILD_META,;t t
45107 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45108 s,@BUILD_NULL@,$BUILD_NULL,;t t
45109 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45110 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45111 s,@BUILD_PERL@,$BUILD_PERL,;t t
45112 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45113 s,@BUILD_SQL@,$BUILD_SQL,;t t
45114 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45115 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45116 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45117 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45118 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45119 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45120 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45121 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45122 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45123 s,@BUILD_RWM@,$BUILD_RWM,;t t
45124 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45125 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45126 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45127 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45128 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45129 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45130 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45131 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45132 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45133 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45134 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45135 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45136 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45137 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45138 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45139 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45140 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45141 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45142 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45143 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45144 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45145 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45146 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45147 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45148 s,@SASL_LIBS@,$SASL_LIBS,;t t
45149 s,@TLS_LIBS@,$TLS_LIBS,;t t
45150 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45151 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45152 s,@LIBSLAPI@,$LIBSLAPI,;t t
45153 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45154 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45155 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45156 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45157 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45158 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45159 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45160 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45161 CEOF
45162
45163 _ACEOF
45164
45165   cat >>$CONFIG_STATUS <<\_ACEOF
45166   # Split the substitutions into bite-sized pieces for seds with
45167   # small command number limits, like on Digital OSF/1 and HP-UX.
45168   ac_max_sed_lines=48
45169   ac_sed_frag=1 # Number of current file.
45170   ac_beg=1 # First line for current file.
45171   ac_end=$ac_max_sed_lines # Line after last line for current file.
45172   ac_more_lines=:
45173   ac_sed_cmds=
45174   while $ac_more_lines; do
45175     if test $ac_beg -gt 1; then
45176       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45177     else
45178       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45179     fi
45180     if test ! -s $tmp/subs.frag; then
45181       ac_more_lines=false
45182     else
45183       # The purpose of the label and of the branching condition is to
45184       # speed up the sed processing (if there are no `@' at all, there
45185       # is no need to browse any of the substitutions).
45186       # These are the two extra sed commands mentioned above.
45187       (echo ':t
45188   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45189       if test -z "$ac_sed_cmds"; then
45190         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45191       else
45192         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45193       fi
45194       ac_sed_frag=`expr $ac_sed_frag + 1`
45195       ac_beg=$ac_end
45196       ac_end=`expr $ac_end + $ac_max_sed_lines`
45197     fi
45198   done
45199   if test -z "$ac_sed_cmds"; then
45200     ac_sed_cmds=cat
45201   fi
45202 fi # test -n "$CONFIG_FILES"
45203
45204 _ACEOF
45205 cat >>$CONFIG_STATUS <<\_ACEOF
45206 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45207   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45208   case $ac_file in
45209   - | *:- | *:-:* ) # input from stdin
45210         cat >$tmp/stdin
45211         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45212         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45213   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45214         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45215   * )   ac_file_in=$ac_file.in ;;
45216   esac
45217
45218   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45219   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45221          X"$ac_file" : 'X\(//\)[^/]' \| \
45222          X"$ac_file" : 'X\(//\)$' \| \
45223          X"$ac_file" : 'X\(/\)' \| \
45224          .     : '\(.\)' 2>/dev/null ||
45225 echo X"$ac_file" |
45226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45227           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45228           /^X\(\/\/\)$/{ s//\1/; q; }
45229           /^X\(\/\).*/{ s//\1/; q; }
45230           s/.*/./; q'`
45231   { if $as_mkdir_p; then
45232     mkdir -p "$ac_dir"
45233   else
45234     as_dir="$ac_dir"
45235     as_dirs=
45236     while test ! -d "$as_dir"; do
45237       as_dirs="$as_dir $as_dirs"
45238       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45240          X"$as_dir" : 'X\(//\)[^/]' \| \
45241          X"$as_dir" : 'X\(//\)$' \| \
45242          X"$as_dir" : 'X\(/\)' \| \
45243          .     : '\(.\)' 2>/dev/null ||
45244 echo X"$as_dir" |
45245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45246           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45247           /^X\(\/\/\)$/{ s//\1/; q; }
45248           /^X\(\/\).*/{ s//\1/; q; }
45249           s/.*/./; q'`
45250     done
45251     test ! -n "$as_dirs" || mkdir $as_dirs
45252   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45254    { (exit 1); exit 1; }; }; }
45255
45256   ac_builddir=.
45257
45258 if test "$ac_dir" != .; then
45259   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45260   # A "../" for each directory in $ac_dir_suffix.
45261   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45262 else
45263   ac_dir_suffix= ac_top_builddir=
45264 fi
45265
45266 case $srcdir in
45267   .)  # No --srcdir option.  We are building in place.
45268     ac_srcdir=.
45269     if test -z "$ac_top_builddir"; then
45270        ac_top_srcdir=.
45271     else
45272        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45273     fi ;;
45274   [\\/]* | ?:[\\/]* )  # Absolute path.
45275     ac_srcdir=$srcdir$ac_dir_suffix;
45276     ac_top_srcdir=$srcdir ;;
45277   *) # Relative path.
45278     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45279     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45280 esac
45281
45282 # Do not use `cd foo && pwd` to compute absolute paths, because
45283 # the directories may not exist.
45284 case `pwd` in
45285 .) ac_abs_builddir="$ac_dir";;
45286 *)
45287   case "$ac_dir" in
45288   .) ac_abs_builddir=`pwd`;;
45289   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45290   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45291   esac;;
45292 esac
45293 case $ac_abs_builddir in
45294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45295 *)
45296   case ${ac_top_builddir}. in
45297   .) ac_abs_top_builddir=$ac_abs_builddir;;
45298   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45299   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45300   esac;;
45301 esac
45302 case $ac_abs_builddir in
45303 .) ac_abs_srcdir=$ac_srcdir;;
45304 *)
45305   case $ac_srcdir in
45306   .) ac_abs_srcdir=$ac_abs_builddir;;
45307   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45308   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45309   esac;;
45310 esac
45311 case $ac_abs_builddir in
45312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45313 *)
45314   case $ac_top_srcdir in
45315   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45316   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45317   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45318   esac;;
45319 esac
45320
45321
45322   case $INSTALL in
45323   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45324   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45325   esac
45326
45327   if test x"$ac_file" != x-; then
45328     { echo "$as_me:$LINENO: creating $ac_file" >&5
45329 echo "$as_me: creating $ac_file" >&6;}
45330     rm -f "$ac_file"
45331   fi
45332   # Let's still pretend it is `configure' which instantiates (i.e., don't
45333   # use $as_me), people would be surprised to read:
45334   #    /* config.h.  Generated by config.status.  */
45335   if test x"$ac_file" = x-; then
45336     configure_input=
45337   else
45338     configure_input="$ac_file.  "
45339   fi
45340   configure_input=$configure_input"Generated from `echo $ac_file_in |
45341                                      sed 's,.*/,,'` by configure."
45342
45343   # First look for the input files in the build tree, otherwise in the
45344   # src tree.
45345   ac_file_inputs=`IFS=:
45346     for f in $ac_file_in; do
45347       case $f in
45348       -) echo $tmp/stdin ;;
45349       [\\/$]*)
45350          # Absolute (can't be DOS-style, as IFS=:)
45351          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45352 echo "$as_me: error: cannot find input file: $f" >&2;}
45353    { (exit 1); exit 1; }; }
45354          echo "$f";;
45355       *) # Relative
45356          if test -f "$f"; then
45357            # Build tree
45358            echo "$f"
45359          elif test -f "$srcdir/$f"; then
45360            # Source tree
45361            echo "$srcdir/$f"
45362          else
45363            # /dev/null tree
45364            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45365 echo "$as_me: error: cannot find input file: $f" >&2;}
45366    { (exit 1); exit 1; }; }
45367          fi;;
45368       esac
45369     done` || { (exit 1); exit 1; }
45370 _ACEOF
45371 cat >>$CONFIG_STATUS <<_ACEOF
45372   sed "$ac_vpsub
45373 $extrasub
45374 _ACEOF
45375 cat >>$CONFIG_STATUS <<\_ACEOF
45376 :t
45377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45378 s,@configure_input@,$configure_input,;t t
45379 s,@srcdir@,$ac_srcdir,;t t
45380 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45381 s,@top_srcdir@,$ac_top_srcdir,;t t
45382 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45383 s,@builddir@,$ac_builddir,;t t
45384 s,@abs_builddir@,$ac_abs_builddir,;t t
45385 s,@top_builddir@,$ac_top_builddir,;t t
45386 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45387 s,@INSTALL@,$ac_INSTALL,;t t
45388 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45389   rm -f $tmp/stdin
45390   if test x"$ac_file" != x-; then
45391     mv $tmp/out $ac_file
45392   else
45393     cat $tmp/out
45394     rm -f $tmp/out
45395   fi
45396
45397 done
45398 _ACEOF
45399 cat >>$CONFIG_STATUS <<\_ACEOF
45400
45401 #
45402 # CONFIG_HEADER section.
45403 #
45404
45405 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45406 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45407 #
45408 # ac_d sets the value in "#define NAME VALUE" lines.
45409 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45410 ac_dB='[         ].*$,\1#\2'
45411 ac_dC=' '
45412 ac_dD=',;t'
45413 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45414 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45415 ac_uB='$,\1#\2define\3'
45416 ac_uC=' '
45417 ac_uD=',;t'
45418
45419 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45420   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45421   case $ac_file in
45422   - | *:- | *:-:* ) # input from stdin
45423         cat >$tmp/stdin
45424         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45425         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45426   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45427         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45428   * )   ac_file_in=$ac_file.in ;;
45429   esac
45430
45431   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45432 echo "$as_me: creating $ac_file" >&6;}
45433
45434   # First look for the input files in the build tree, otherwise in the
45435   # src tree.
45436   ac_file_inputs=`IFS=:
45437     for f in $ac_file_in; do
45438       case $f in
45439       -) echo $tmp/stdin ;;
45440       [\\/$]*)
45441          # Absolute (can't be DOS-style, as IFS=:)
45442          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45443 echo "$as_me: error: cannot find input file: $f" >&2;}
45444    { (exit 1); exit 1; }; }
45445          # Do quote $f, to prevent DOS paths from being IFS'd.
45446          echo "$f";;
45447       *) # Relative
45448          if test -f "$f"; then
45449            # Build tree
45450            echo "$f"
45451          elif test -f "$srcdir/$f"; then
45452            # Source tree
45453            echo "$srcdir/$f"
45454          else
45455            # /dev/null tree
45456            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45457 echo "$as_me: error: cannot find input file: $f" >&2;}
45458    { (exit 1); exit 1; }; }
45459          fi;;
45460       esac
45461     done` || { (exit 1); exit 1; }
45462   # Remove the trailing spaces.
45463   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45464
45465 _ACEOF
45466
45467 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45468 # `conftest.undefs', that substitutes the proper values into
45469 # config.h.in to produce config.h.  The first handles `#define'
45470 # templates, and the second `#undef' templates.
45471 # And first: Protect against being on the right side of a sed subst in
45472 # config.status.  Protect against being in an unquoted here document
45473 # in config.status.
45474 rm -f conftest.defines conftest.undefs
45475 # Using a here document instead of a string reduces the quoting nightmare.
45476 # Putting comments in sed scripts is not portable.
45477 #
45478 # `end' is used to avoid that the second main sed command (meant for
45479 # 0-ary CPP macros) applies to n-ary macro definitions.
45480 # See the Autoconf documentation for `clear'.
45481 cat >confdef2sed.sed <<\_ACEOF
45482 s/[\\&,]/\\&/g
45483 s,[\\$`],\\&,g
45484 t clear
45485 : clear
45486 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45487 t end
45488 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45489 : end
45490 _ACEOF
45491 # If some macros were called several times there might be several times
45492 # the same #defines, which is useless.  Nevertheless, we may not want to
45493 # sort them, since we want the *last* AC-DEFINE to be honored.
45494 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45495 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45496 rm -f confdef2sed.sed
45497
45498 # This sed command replaces #undef with comments.  This is necessary, for
45499 # example, in the case of _POSIX_SOURCE, which is predefined and required
45500 # on some systems where configure will not decide to define it.
45501 cat >>conftest.undefs <<\_ACEOF
45502 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45503 _ACEOF
45504
45505 # Break up conftest.defines because some shells have a limit on the size
45506 # of here documents, and old seds have small limits too (100 cmds).
45507 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45508 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45509 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45510 echo '  :' >>$CONFIG_STATUS
45511 rm -f conftest.tail
45512 while grep . conftest.defines >/dev/null
45513 do
45514   # Write a limited-size here document to $tmp/defines.sed.
45515   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45516   # Speed up: don't consider the non `#define' lines.
45517   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45518   # Work around the forget-to-reset-the-flag bug.
45519   echo 't clr' >>$CONFIG_STATUS
45520   echo ': clr' >>$CONFIG_STATUS
45521   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45522   echo 'CEOF
45523   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45524   rm -f $tmp/in
45525   mv $tmp/out $tmp/in
45526 ' >>$CONFIG_STATUS
45527   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45528   rm -f conftest.defines
45529   mv conftest.tail conftest.defines
45530 done
45531 rm -f conftest.defines
45532 echo '  fi # grep' >>$CONFIG_STATUS
45533 echo >>$CONFIG_STATUS
45534
45535 # Break up conftest.undefs because some shells have a limit on the size
45536 # of here documents, and old seds have small limits too (100 cmds).
45537 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45538 rm -f conftest.tail
45539 while grep . conftest.undefs >/dev/null
45540 do
45541   # Write a limited-size here document to $tmp/undefs.sed.
45542   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45543   # Speed up: don't consider the non `#undef'
45544   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
45545   # Work around the forget-to-reset-the-flag bug.
45546   echo 't clr' >>$CONFIG_STATUS
45547   echo ': clr' >>$CONFIG_STATUS
45548   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45549   echo 'CEOF
45550   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45551   rm -f $tmp/in
45552   mv $tmp/out $tmp/in
45553 ' >>$CONFIG_STATUS
45554   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45555   rm -f conftest.undefs
45556   mv conftest.tail conftest.undefs
45557 done
45558 rm -f conftest.undefs
45559
45560 cat >>$CONFIG_STATUS <<\_ACEOF
45561   # Let's still pretend it is `configure' which instantiates (i.e., don't
45562   # use $as_me), people would be surprised to read:
45563   #    /* config.h.  Generated by config.status.  */
45564   if test x"$ac_file" = x-; then
45565     echo "/* Generated by configure.  */" >$tmp/config.h
45566   else
45567     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
45568   fi
45569   cat $tmp/in >>$tmp/config.h
45570   rm -f $tmp/in
45571   if test x"$ac_file" != x-; then
45572     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45573       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45574 echo "$as_me: $ac_file is unchanged" >&6;}
45575     else
45576       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45578          X"$ac_file" : 'X\(//\)[^/]' \| \
45579          X"$ac_file" : 'X\(//\)$' \| \
45580          X"$ac_file" : 'X\(/\)' \| \
45581          .     : '\(.\)' 2>/dev/null ||
45582 echo X"$ac_file" |
45583     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45584           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45585           /^X\(\/\/\)$/{ s//\1/; q; }
45586           /^X\(\/\).*/{ s//\1/; q; }
45587           s/.*/./; q'`
45588       { if $as_mkdir_p; then
45589     mkdir -p "$ac_dir"
45590   else
45591     as_dir="$ac_dir"
45592     as_dirs=
45593     while test ! -d "$as_dir"; do
45594       as_dirs="$as_dir $as_dirs"
45595       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45597          X"$as_dir" : 'X\(//\)[^/]' \| \
45598          X"$as_dir" : 'X\(//\)$' \| \
45599          X"$as_dir" : 'X\(/\)' \| \
45600          .     : '\(.\)' 2>/dev/null ||
45601 echo X"$as_dir" |
45602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45603           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45604           /^X\(\/\/\)$/{ s//\1/; q; }
45605           /^X\(\/\).*/{ s//\1/; q; }
45606           s/.*/./; q'`
45607     done
45608     test ! -n "$as_dirs" || mkdir $as_dirs
45609   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45611    { (exit 1); exit 1; }; }; }
45612
45613       rm -f $ac_file
45614       mv $tmp/config.h $ac_file
45615     fi
45616   else
45617     cat $tmp/config.h
45618     rm -f $tmp/config.h
45619   fi
45620 # Compute $ac_file's index in $config_headers.
45621 _am_stamp_count=1
45622 for _am_header in $config_headers :; do
45623   case $_am_header in
45624     $ac_file | $ac_file:* )
45625       break ;;
45626     * )
45627       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
45628   esac
45629 done
45630 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
45631 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45632          X$ac_file : 'X\(//\)[^/]' \| \
45633          X$ac_file : 'X\(//\)$' \| \
45634          X$ac_file : 'X\(/\)' \| \
45635          .     : '\(.\)' 2>/dev/null ||
45636 echo X$ac_file |
45637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45638           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45639           /^X\(\/\/\)$/{ s//\1/; q; }
45640           /^X\(\/\).*/{ s//\1/; q; }
45641           s/.*/./; q'`/stamp-h$_am_stamp_count
45642 done
45643 _ACEOF
45644 cat >>$CONFIG_STATUS <<\_ACEOF
45645
45646 #
45647 # CONFIG_COMMANDS section.
45648 #
45649 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45650   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45651   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45652   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45653 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45654          X"$ac_dest" : 'X\(//\)[^/]' \| \
45655          X"$ac_dest" : 'X\(//\)$' \| \
45656          X"$ac_dest" : 'X\(/\)' \| \
45657          .     : '\(.\)' 2>/dev/null ||
45658 echo X"$ac_dest" |
45659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45661           /^X\(\/\/\)$/{ s//\1/; q; }
45662           /^X\(\/\).*/{ s//\1/; q; }
45663           s/.*/./; q'`
45664   { if $as_mkdir_p; then
45665     mkdir -p "$ac_dir"
45666   else
45667     as_dir="$ac_dir"
45668     as_dirs=
45669     while test ! -d "$as_dir"; do
45670       as_dirs="$as_dir $as_dirs"
45671       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45673          X"$as_dir" : 'X\(//\)[^/]' \| \
45674          X"$as_dir" : 'X\(//\)$' \| \
45675          X"$as_dir" : 'X\(/\)' \| \
45676          .     : '\(.\)' 2>/dev/null ||
45677 echo X"$as_dir" |
45678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45680           /^X\(\/\/\)$/{ s//\1/; q; }
45681           /^X\(\/\).*/{ s//\1/; q; }
45682           s/.*/./; q'`
45683     done
45684     test ! -n "$as_dirs" || mkdir $as_dirs
45685   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45687    { (exit 1); exit 1; }; }; }
45688
45689   ac_builddir=.
45690
45691 if test "$ac_dir" != .; then
45692   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45693   # A "../" for each directory in $ac_dir_suffix.
45694   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45695 else
45696   ac_dir_suffix= ac_top_builddir=
45697 fi
45698
45699 case $srcdir in
45700   .)  # No --srcdir option.  We are building in place.
45701     ac_srcdir=.
45702     if test -z "$ac_top_builddir"; then
45703        ac_top_srcdir=.
45704     else
45705        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45706     fi ;;
45707   [\\/]* | ?:[\\/]* )  # Absolute path.
45708     ac_srcdir=$srcdir$ac_dir_suffix;
45709     ac_top_srcdir=$srcdir ;;
45710   *) # Relative path.
45711     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45712     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45713 esac
45714
45715 # Do not use `cd foo && pwd` to compute absolute paths, because
45716 # the directories may not exist.
45717 case `pwd` in
45718 .) ac_abs_builddir="$ac_dir";;
45719 *)
45720   case "$ac_dir" in
45721   .) ac_abs_builddir=`pwd`;;
45722   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45723   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45724   esac;;
45725 esac
45726 case $ac_abs_builddir in
45727 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45728 *)
45729   case ${ac_top_builddir}. in
45730   .) ac_abs_top_builddir=$ac_abs_builddir;;
45731   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45732   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45733   esac;;
45734 esac
45735 case $ac_abs_builddir in
45736 .) ac_abs_srcdir=$ac_srcdir;;
45737 *)
45738   case $ac_srcdir in
45739   .) ac_abs_srcdir=$ac_abs_builddir;;
45740   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45741   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45742   esac;;
45743 esac
45744 case $ac_abs_builddir in
45745 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45746 *)
45747   case $ac_top_srcdir in
45748   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45749   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45750   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45751   esac;;
45752 esac
45753
45754
45755   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45756 echo "$as_me: executing $ac_dest commands" >&6;}
45757   case $ac_dest in
45758     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
45759   # Strip MF so we end up with the name of the file.
45760   mf=`echo "$mf" | sed -e 's/:.*$//'`
45761   # Check whether this is an Automake generated Makefile or not.
45762   # We used to match only the files named `Makefile.in', but
45763   # some people rename them; so instead we look at the file content.
45764   # Grep'ing the first line is not enough: some people post-process
45765   # each Makefile.in and add a new line on top of each file to say so.
45766   # So let's grep whole file.
45767   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
45768     dirpart=`(dirname "$mf") 2>/dev/null ||
45769 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45770          X"$mf" : 'X\(//\)[^/]' \| \
45771          X"$mf" : 'X\(//\)$' \| \
45772          X"$mf" : 'X\(/\)' \| \
45773          .     : '\(.\)' 2>/dev/null ||
45774 echo X"$mf" |
45775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45776           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45777           /^X\(\/\/\)$/{ s//\1/; q; }
45778           /^X\(\/\).*/{ s//\1/; q; }
45779           s/.*/./; q'`
45780   else
45781     continue
45782   fi
45783   # Extract the definition of DEPDIR, am__include, and am__quote
45784   # from the Makefile without running `make'.
45785   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
45786   test -z "$DEPDIR" && continue
45787   am__include=`sed -n 's/^am__include = //p' < "$mf"`
45788   test -z "am__include" && continue
45789   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
45790   # When using ansi2knr, U may be empty or an underscore; expand it
45791   U=`sed -n 's/^U = //p' < "$mf"`
45792   # Find all dependency output files, they are included files with
45793   # $(DEPDIR) in their names.  We invoke sed twice because it is the
45794   # simplest approach to changing $(DEPDIR) to its actual value in the
45795   # expansion.
45796   for file in `sed -n "
45797     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
45798        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
45799     # Make sure the directory exists.
45800     test -f "$dirpart/$file" && continue
45801     fdir=`(dirname "$file") 2>/dev/null ||
45802 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45803          X"$file" : 'X\(//\)[^/]' \| \
45804          X"$file" : 'X\(//\)$' \| \
45805          X"$file" : 'X\(/\)' \| \
45806          .     : '\(.\)' 2>/dev/null ||
45807 echo X"$file" |
45808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45809           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45810           /^X\(\/\/\)$/{ s//\1/; q; }
45811           /^X\(\/\).*/{ s//\1/; q; }
45812           s/.*/./; q'`
45813     { if $as_mkdir_p; then
45814     mkdir -p $dirpart/$fdir
45815   else
45816     as_dir=$dirpart/$fdir
45817     as_dirs=
45818     while test ! -d "$as_dir"; do
45819       as_dirs="$as_dir $as_dirs"
45820       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45822          X"$as_dir" : 'X\(//\)[^/]' \| \
45823          X"$as_dir" : 'X\(//\)$' \| \
45824          X"$as_dir" : 'X\(/\)' \| \
45825          .     : '\(.\)' 2>/dev/null ||
45826 echo X"$as_dir" |
45827     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45828           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45829           /^X\(\/\/\)$/{ s//\1/; q; }
45830           /^X\(\/\).*/{ s//\1/; q; }
45831           s/.*/./; q'`
45832     done
45833     test ! -n "$as_dirs" || mkdir $as_dirs
45834   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
45835 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
45836    { (exit 1); exit 1; }; }; }
45837
45838     # echo "creating $dirpart/$file"
45839     echo '# dummy' > "$dirpart/$file"
45840   done
45841 done
45842  ;;
45843     default )
45844 chmod +x tests/run
45845 date > stamp-h
45846 BACKENDSC="servers/slapd/backends.c"
45847 echo "Making $BACKENDSC"
45848 rm -f $BACKENDSC
45849 cat > $BACKENDSC << ENDX
45850 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
45851  *
45852  * Copyright 1998-2005 The OpenLDAP Foundation.
45853  * All rights reserved.
45854  *
45855  * Redistribution and use in source and binary forms, with or without
45856  * modification, are permitted only as authorized by the OpenLDAP
45857  * Public License.
45858  *
45859  * A copy of this license is available in the file LICENSE in the
45860  * top-level directory of the distribution or, alternatively, at
45861  * <http://www.OpenLDAP.org/license.html>.
45862  */
45863 /* This file is automatically generated by configure; please do not edit. */
45864
45865 #include "portable.h"
45866 #include "slap.h"
45867
45868 ENDX
45869 if test "${STATIC_BACKENDS}"; then
45870         for b in config ${STATIC_BACKENDS}; do
45871                 bb=`echo "${b}" | sed -e 's/back-//'`
45872                 cat >> $BACKENDSC << ENDX
45873 extern BI_init ${bb}_back_initialize;
45874 ENDX
45875         done
45876
45877         cat >> $BACKENDSC << ENDX
45878
45879 BackendInfo slap_binfo[] = {
45880 ENDX
45881
45882         for b in config ${STATIC_BACKENDS}; do
45883                 bb=`echo "${b}" | sed -e 's/back-//'`
45884                 echo "    Add ${bb} ..."
45885                 cat >> $BACKENDSC << ENDX
45886         { "${bb}", ${bb}_back_initialize },
45887 ENDX
45888         done
45889
45890         cat >> $BACKENDSC << ENDX
45891         { NULL, NULL },
45892 };
45893
45894 /* end of generated file */
45895 ENDX
45896 fi
45897 OVERLAYSC="servers/slapd/overlays/statover.c"
45898 echo "Making $OVERLAYSC"
45899 rm -f $OVERLAYSC
45900 cat > $OVERLAYSC << ENDX
45901 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
45902  *
45903  * Copyright 1998-2005 The OpenLDAP Foundation.
45904  * All rights reserved.
45905  *
45906  * Redistribution and use in source and binary forms, with or without
45907  * modification, are permitted only as authorized by the OpenLDAP
45908  * Public License.
45909  *
45910  * A copy of this license is available in the file LICENSE in the
45911  * top-level directory of the distribution or, alternatively, at
45912  * <http://www.OpenLDAP.org/license.html>.
45913  */
45914 /* This file is automatically generated by configure; please do not edit. */
45915
45916 #include "portable.h"
45917 #include "slap.h"
45918
45919 ENDX
45920 if test "${STATIC_OVERLAYS}"; then
45921         for o in ${STATIC_OVERLAYS}; do
45922                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
45923                 cat >> $OVERLAYSC << ENDX
45924 extern OV_init ${oo}_initialize;
45925 ENDX
45926         done
45927 fi
45928
45929 cat >> $OVERLAYSC << ENDX
45930
45931 OverlayInit slap_oinfo[] = {
45932 ENDX
45933
45934 if test "${STATIC_OVERLAYS}"; then
45935         for o in ${STATIC_OVERLAYS}; do
45936                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
45937                 echo "    Add ${oo} ..."
45938                 cat >> $OVERLAYSC << ENDX
45939         { "${oo}", ${oo}_initialize },
45940 ENDX
45941         done
45942 fi
45943
45944         cat >> $OVERLAYSC << ENDX
45945         { NULL, NULL },
45946 };
45947
45948 /* end of generated file */
45949 ENDX
45950
45951 echo Please run \"make depend\" to build dependencies
45952  ;;
45953   esac
45954 done
45955 _ACEOF
45956
45957 cat >>$CONFIG_STATUS <<\_ACEOF
45958
45959 { (exit 0); exit 0; }
45960 _ACEOF
45961 chmod +x $CONFIG_STATUS
45962 ac_clean_files=$ac_clean_files_save
45963
45964
45965 # configure is writing to config.log, and then calls config.status.
45966 # config.status does its own redirection, appending to config.log.
45967 # Unfortunately, on DOS this fails, as config.log is still kept open
45968 # by configure, so config.status won't be able to write to it; its
45969 # output is simply discarded.  So we exec the FD to /dev/null,
45970 # effectively closing config.log, so it can be properly (re)opened and
45971 # appended to by config.status.  When coming back to configure, we
45972 # need to make the FD available again.
45973 if test "$no_create" != yes; then
45974   ac_cs_success=:
45975   ac_config_status_args=
45976   test "$silent" = yes &&
45977     ac_config_status_args="$ac_config_status_args --quiet"
45978   exec 5>/dev/null
45979   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45980   exec 5>>config.log
45981   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45982   # would make configure fail if this is the last instruction.
45983   $ac_cs_success || { (exit 1); exit 1; }
45984 fi
45985