]> git.sur5r.net Git - openldap/blob - configure
ITS#4310 seems to affect also back-ldbm
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.618 2006/01/06 16:12:35 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_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 ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1038       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1039       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1040     --enable-meta         enable metadirectory backend no|yes|mod [no]
1041     --enable-monitor      enable monitor backend no|yes|mod [yes]
1042     --enable-null         enable null backend no|yes|mod [no]
1043     --enable-passwd       enable passwd backend no|yes|mod [no]
1044     --enable-perl         enable perl backend no|yes|mod [no]
1045     --enable-relay        enable relay backend no|yes|mod [yes]
1046     --enable-shell        enable shell backend no|yes|mod [no]
1047     --enable-sql          enable sql backend no|yes|mod [no]
1048
1049 SLAPD Overlay Options:
1050     --enable-overlays     enable all available overlays no|yes|mod
1051     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1052     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1053     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1054     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1062     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1063     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1064     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1065
1066 SLURPD (Replication Daemon) Options:
1067   --enable-slurpd         enable building slurpd [auto]
1068
1069 Library Generation & Linking Options
1070   --enable-static[=PKGS]
1071                           build static libraries [default=yes]
1072   --enable-shared[=PKGS]
1073                           build shared libraries [default=yes]
1074   --enable-fast-install[=PKGS]
1075                           optimize for fast installation [default=yes]
1076   --disable-dependency-tracking  speeds up one-time build
1077   --enable-dependency-tracking   do not reject slow dependency extractors
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079
1080 Optional Packages:
1081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1083   --with-subdir=DIR       change default subdirectory used for installs
1084   --with-cyrus-sasl       with Cyrus SASL support [auto]
1085   --with-fetch            with fetch(3) URL support [auto]
1086   --with-threads          with threads [auto]
1087   --with-tls              with TLS/SSL support [auto]
1088   --with-yielding-select  with implicitly yielding select [auto]
1089   --with-multiple-precision
1090                           multiple precision support for statistics
1091                           auto|bignum|gmp [auto]
1092
1093   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094   --with-pic              try to use only PIC/non-PIC objects [default=use
1095                           both]
1096   --with-tags[=TAGS]
1097                           include additional configurations [automatic]
1098
1099 See INSTALL file for further details.
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CPP         C preprocessor
1109
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1112
1113 _ACEOF
1114 fi
1115
1116 if test "$ac_init_help" = "recursive"; then
1117   # If there are subdirs, report their specific --help.
1118   ac_popdir=`pwd`
1119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120     test -d $ac_dir || continue
1121     ac_builddir=.
1122
1123 if test "$ac_dir" != .; then
1124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125   # A "../" for each directory in $ac_dir_suffix.
1126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 else
1128   ac_dir_suffix= ac_top_builddir=
1129 fi
1130
1131 case $srcdir in
1132   .)  # No --srcdir option.  We are building in place.
1133     ac_srcdir=.
1134     if test -z "$ac_top_builddir"; then
1135        ac_top_srcdir=.
1136     else
1137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138     fi ;;
1139   [\\/]* | ?:[\\/]* )  # Absolute path.
1140     ac_srcdir=$srcdir$ac_dir_suffix;
1141     ac_top_srcdir=$srcdir ;;
1142   *) # Relative path.
1143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 esac
1146
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1149 case `pwd` in
1150 .) ac_abs_builddir="$ac_dir";;
1151 *)
1152   case "$ac_dir" in
1153   .) ac_abs_builddir=`pwd`;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *)
1161   case ${ac_top_builddir}. in
1162   .) ac_abs_top_builddir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1169 *)
1170   case $ac_srcdir in
1171   .) ac_abs_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *)
1179   case $ac_top_srcdir in
1180   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183   esac;;
1184 esac
1185
1186     cd $ac_dir
1187     # Check for guested configure; otherwise get Cygnus style configure.
1188     if test -f $ac_srcdir/configure.gnu; then
1189       echo
1190       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1191     elif test -f $ac_srcdir/configure; then
1192       echo
1193       $SHELL $ac_srcdir/configure  --help=recursive
1194     elif test -f $ac_srcdir/configure.ac ||
1195            test -f $ac_srcdir/configure.in; then
1196       echo
1197       $ac_configure --help
1198     else
1199       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200     fi
1201     cd $ac_popdir
1202   done
1203 fi
1204
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1207   cat <<\_ACEOF
1208
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1212
1213 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 _ACEOF
1216   exit 0
1217 fi
1218 exec 5>config.log
1219 cat >&5 <<_ACEOF
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1222
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59.  Invocation command line was
1225
1226   $ $0 $@
1227
1228 _ACEOF
1229 {
1230 cat <<_ASUNAME
1231 ## --------- ##
1232 ## Platform. ##
1233 ## --------- ##
1234
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1243
1244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1251
1252 _ASUNAME
1253
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1256 do
1257   IFS=$as_save_IFS
1258   test -z "$as_dir" && as_dir=.
1259   echo "PATH: $as_dir"
1260 done
1261
1262 } >&5
1263
1264 cat >&5 <<_ACEOF
1265
1266
1267 ## ----------- ##
1268 ## Core tests. ##
1269 ## ----------- ##
1270
1271 _ACEOF
1272
1273
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_configure_args=
1280 ac_configure_args0=
1281 ac_configure_args1=
1282 ac_sep=
1283 ac_must_keep_next=false
1284 for ac_pass in 1 2
1285 do
1286   for ac_arg
1287   do
1288     case $ac_arg in
1289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291     | -silent | --silent | --silen | --sile | --sil)
1292       continue ;;
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     esac
1296     case $ac_pass in
1297     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298     2)
1299       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300       if test $ac_must_keep_next = true; then
1301         ac_must_keep_next=false # Got value, back to normal.
1302       else
1303         case $ac_arg in
1304           *=* | --config-cache | -C | -disable-* | --disable-* \
1305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307           | -with-* | --with-* | -without-* | --without-* | --x)
1308             case "$ac_configure_args0 " in
1309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310             esac
1311             ;;
1312           -* ) ac_must_keep_next=true ;;
1313         esac
1314       fi
1315       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316       # Get rid of the leading space.
1317       ac_sep=" "
1318       ;;
1319     esac
1320   done
1321 done
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log.  We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331   # Save into config.log some information that might help in debugging.
1332   {
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1339 _ASBOX
1340     echo
1341     # The following way of writing the cache mishandles newlines in values,
1342 {
1343   (set) 2>&1 |
1344     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345     *ac_space=\ *)
1346       sed -n \
1347         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349       ;;
1350     *)
1351       sed -n \
1352         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353       ;;
1354     esac;
1355 }
1356     echo
1357
1358     cat <<\_ASBOX
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1362 _ASBOX
1363     echo
1364     for ac_var in $ac_subst_vars
1365     do
1366       eval ac_val=$`echo $ac_var`
1367       echo "$ac_var='"'"'$ac_val'"'"'"
1368     done | sort
1369     echo
1370
1371     if test -n "$ac_subst_files"; then
1372       cat <<\_ASBOX
1373 ## ------------- ##
1374 ## Output files. ##
1375 ## ------------- ##
1376 _ASBOX
1377       echo
1378       for ac_var in $ac_subst_files
1379       do
1380         eval ac_val=$`echo $ac_var`
1381         echo "$ac_var='"'"'$ac_val'"'"'"
1382       done | sort
1383       echo
1384     fi
1385
1386     if test -s confdefs.h; then
1387       cat <<\_ASBOX
1388 ## ----------- ##
1389 ## confdefs.h. ##
1390 ## ----------- ##
1391 _ASBOX
1392       echo
1393       sed "/^$/d" confdefs.h | sort
1394       echo
1395     fi
1396     test "$ac_signal" != 0 &&
1397       echo "$as_me: caught signal $ac_signal"
1398     echo "$as_me: exit $exit_status"
1399   } >&5
1400   rm -f core *.core &&
1401   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402     exit $exit_status
1403      ' 0
1404 for ac_signal in 1 2 13 15; do
1405   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 done
1407 ac_signal=0
1408
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 echo >confdefs.h
1413
1414 # Predefined preprocessor variables.
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 _ACEOF
1439
1440
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444   if test "x$prefix" != xNONE; then
1445     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446   else
1447     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448   fi
1449 fi
1450 for ac_site_file in $CONFIG_SITE; do
1451   if test -r "$ac_site_file"; then
1452     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454     sed 's/^/| /' "$ac_site_file" >&5
1455     . "$ac_site_file"
1456   fi
1457 done
1458
1459
1460 # Check that the precious variables saved in the cache have kept the same
1461 # value.
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466   eval ac_new_set=\$ac_env_${ac_var}_set
1467   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468   eval ac_new_val="\$ac_env_${ac_var}_value"
1469   case $ac_old_set,$ac_new_set in
1470     set,)
1471       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473       ac_cache_corrupted=: ;;
1474     ,set)
1475       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477       ac_cache_corrupted=: ;;
1478     ,);;
1479     *)
1480       if test "x$ac_old_val" != "x$ac_new_val"; then
1481         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1484 echo "$as_me:   former value:  $ac_old_val" >&2;}
1485         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1486 echo "$as_me:   current value: $ac_new_val" >&2;}
1487         ac_cache_corrupted=:
1488       fi;;
1489   esac
1490   # Pass precious variables to config.status.
1491   if test "$ac_new_set" = set; then
1492     case $ac_new_val in
1493     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495     *) ac_arg=$ac_var=$ac_new_val ;;
1496     esac
1497     case " $ac_configure_args " in
1498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1499       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500     esac
1501   fi
1502 done
1503 if $ac_cache_corrupted; then
1504   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1558 ac_aux_dir=
1559 for ac_dir in build $srcdir/build; do
1560   if test -f $ac_dir/install-sh; then
1561     ac_aux_dir=$ac_dir
1562     ac_install_sh="$ac_aux_dir/install-sh -c"
1563     break
1564   elif test -f $ac_dir/install.sh; then
1565     ac_aux_dir=$ac_dir
1566     ac_install_sh="$ac_aux_dir/install.sh -c"
1567     break
1568   elif test -f $ac_dir/shtool; then
1569     ac_aux_dir=$ac_dir
1570     ac_install_sh="$ac_aux_dir/shtool install -c"
1571     break
1572   fi
1573 done
1574 if test -z "$ac_aux_dir"; then
1575   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1576 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1577    { (exit 1); exit 1; }; }
1578 fi
1579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1582
1583 eval `$ac_aux_dir/version.sh`
1584 if test -z "$OL_STRING"; then
1585         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1586 echo "$as_me: error: could not determine version" >&2;}
1587    { (exit 1); exit 1; }; }
1588 fi
1589
1590 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1591         ac_cv_shtool="$ac_aux_dir/shtool"
1592 else
1593         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1594 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1595    { (exit 1); exit 1; }; }
1596 fi
1597
1598 SHTOOL="$ac_cv_shtool"
1599
1600 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1601 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1602
1603 OPENLDAP_CVS=""
1604 if test -d $ac_aux_dir/CVS; then
1605         OPENLDAP_CVS="(from CVS sources) "
1606 fi
1607
1608 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1609
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614    { (exit 1); exit 1; }; }
1615
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623   ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627    { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631    { (exit 1); exit 1; }; }
1632
1633 fi
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1636 build=$ac_cv_build
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649   ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653    { (exit 1); exit 1; }; }
1654
1655 fi
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1658 host=$ac_cv_host
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662
1663
1664 echo "$as_me:$LINENO: checking target system type" >&5
1665 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1666 if test "${ac_cv_target+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   ac_cv_target_alias=$target_alias
1670 test "x$ac_cv_target_alias" = "x" &&
1671   ac_cv_target_alias=$ac_cv_host_alias
1672 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1673   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1674 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1675    { (exit 1); exit 1; }; }
1676
1677 fi
1678 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1679 echo "${ECHO_T}$ac_cv_target" >&6
1680 target=$ac_cv_target
1681 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686 # The aliases save the names the user supplied, while $host etc.
1687 # will get canonicalized.
1688 test -n "$target_alias" &&
1689   test "$program_prefix$program_suffix$program_transform_name" = \
1690     NONENONEs,x,x, &&
1691   program_prefix=${target_alias}-
1692
1693 am__api_version="1.9"
1694 # Find a good install program.  We prefer a C program (faster),
1695 # so one script is as good as another.  But avoid the broken or
1696 # incompatible versions:
1697 # SysV /etc/install, /usr/sbin/install
1698 # SunOS /usr/etc/install
1699 # IRIX /sbin/install
1700 # AIX /bin/install
1701 # AmigaOS /C/install, which installs bootblocks on floppy discs
1702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1705 # OS/2's system install, which has a completely different semantic
1706 # ./install, which can be erroneously created by make from ./install.sh.
1707 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1708 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1709 if test -z "$INSTALL"; then
1710 if test "${ac_cv_path_install+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   # Account for people who put trailing slashes in PATH elements.
1719 case $as_dir/ in
1720   ./ | .// | /cC/* | \
1721   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1722   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1723   /usr/ucb/* ) ;;
1724   *)
1725     # OSF1 and SCO ODT 3.0 have their own names for install.
1726     # Don't use installbsd from OSF since it installs stuff as root
1727     # by default.
1728     for ac_prog in ginstall scoinst install; do
1729       for ac_exec_ext in '' $ac_executable_extensions; do
1730         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1731           if test $ac_prog = install &&
1732             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1733             # AIX install.  It has an incompatible calling convention.
1734             :
1735           elif test $ac_prog = install &&
1736             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1737             # program-specific install script used by HP pwplus--don't use.
1738             :
1739           else
1740             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1741             break 3
1742           fi
1743         fi
1744       done
1745     done
1746     ;;
1747 esac
1748 done
1749
1750
1751 fi
1752   if test "${ac_cv_path_install+set}" = set; then
1753     INSTALL=$ac_cv_path_install
1754   else
1755     # As a last resort, use the slow shell script.  We don't cache a
1756     # path for INSTALL within a source directory, because that will
1757     # break other packages using the cache if that directory is
1758     # removed, or if the path is relative.
1759     INSTALL=$ac_install_sh
1760   fi
1761 fi
1762 echo "$as_me:$LINENO: result: $INSTALL" >&5
1763 echo "${ECHO_T}$INSTALL" >&6
1764
1765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1766 # It thinks the first close brace ends the variable substitution.
1767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1768
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1770
1771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1772
1773 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1774 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1775 # Just in case
1776 sleep 1
1777 echo timestamp > conftest.file
1778 # Do `set' in a subshell so we don't clobber the current shell's
1779 # arguments.  Must try -L first in case configure is actually a
1780 # symlink; some systems play weird games with the mod time of symlinks
1781 # (eg FreeBSD returns the mod time of the symlink's containing
1782 # directory).
1783 if (
1784    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1785    if test "$*" = "X"; then
1786       # -L didn't work.
1787       set X `ls -t $srcdir/configure conftest.file`
1788    fi
1789    rm -f conftest.file
1790    if test "$*" != "X $srcdir/configure conftest.file" \
1791       && test "$*" != "X conftest.file $srcdir/configure"; then
1792
1793       # If neither matched, then we have a broken ls.  This can happen
1794       # if, for instance, CONFIG_SHELL is bash and it inherits a
1795       # broken ls alias from the environment.  This has actually
1796       # happened.  Such a system could not be considered "sane".
1797       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&5
1799 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1800 alias in your environment" >&2;}
1801    { (exit 1); exit 1; }; }
1802    fi
1803
1804    test "$2" = conftest.file
1805    )
1806 then
1807    # Ok.
1808    :
1809 else
1810    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1811 Check your system clock" >&5
1812 echo "$as_me: error: newly created file is older than distributed files!
1813 Check your system clock" >&2;}
1814    { (exit 1); exit 1; }; }
1815 fi
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 test "$program_prefix" != NONE &&
1819   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1820 # Use a double $ so make ignores it.
1821 test "$program_suffix" != NONE &&
1822   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1823 # Double any \ or $.  echo might interpret backslashes.
1824 # By default was `s,x,x', remove it if useless.
1825 cat <<\_ACEOF >conftest.sed
1826 s/[\\$]/&&/g;s/;s,x,x,$//
1827 _ACEOF
1828 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1829 rm conftest.sed
1830
1831 # expand $ac_aux_dir to an absolute path
1832 am_aux_dir=`cd $ac_aux_dir && pwd`
1833
1834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1835 # Use eval to expand $SHELL
1836 if eval "$MISSING --run true"; then
1837   am_missing_run="$MISSING --run "
1838 else
1839   am_missing_run=
1840   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1841 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1842 fi
1843
1844 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1845   # We used to keeping the `.' as first argument, in order to
1846   # allow $(mkdir_p) to be used without argument.  As in
1847   #   $(mkdir_p) $(somedir)
1848   # where $(somedir) is conditionally defined.  However this is wrong
1849   # for two reasons:
1850   #  1. if the package is installed by a user who cannot write `.'
1851   #     make install will fail,
1852   #  2. the above comment should most certainly read
1853   #     $(mkdir_p) $(DESTDIR)$(somedir)
1854   #     so it does not work when $(somedir) is undefined and
1855   #     $(DESTDIR) is not.
1856   #  To support the latter case, we have to write
1857   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1858   #  so the `.' trick is pointless.
1859   mkdir_p='mkdir -p --'
1860 else
1861   # On NextStep and OpenStep, the `mkdir' command does not
1862   # recognize any option.  It will interpret all options as
1863   # directories to create, and then abort because `.' already
1864   # exists.
1865   for d in ./-p ./--version;
1866   do
1867     test -d $d && rmdir $d
1868   done
1869   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1870   if test -f "$ac_aux_dir/mkinstalldirs"; then
1871     mkdir_p='$(mkinstalldirs)'
1872   else
1873     mkdir_p='$(install_sh) -d'
1874   fi
1875 fi
1876
1877 for ac_prog in gawk mawk nawk awk
1878 do
1879   # Extract the first word of "$ac_prog", so it can be a program name with args.
1880 set dummy $ac_prog; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_AWK+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$AWK"; then
1887   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_AWK="$ac_prog"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 AWK=$ac_cv_prog_AWK
1906 if test -n "$AWK"; then
1907   echo "$as_me:$LINENO: result: $AWK" >&5
1908 echo "${ECHO_T}$AWK" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914   test -n "$AWK" && break
1915 done
1916
1917 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1918 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1919 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1920 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   cat >conftest.make <<\_ACEOF
1924 all:
1925         @echo 'ac_maketemp="$(MAKE)"'
1926 _ACEOF
1927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1928 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1929 if test -n "$ac_maketemp"; then
1930   eval ac_cv_prog_make_${ac_make}_set=yes
1931 else
1932   eval ac_cv_prog_make_${ac_make}_set=no
1933 fi
1934 rm -f conftest.make
1935 fi
1936 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1937   echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1939   SET_MAKE=
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943   SET_MAKE="MAKE=${MAKE-make}"
1944 fi
1945
1946 rm -rf .tst 2>/dev/null
1947 mkdir .tst 2>/dev/null
1948 if test -d .tst; then
1949   am__leading_dot=.
1950 else
1951   am__leading_dot=_
1952 fi
1953 rmdir .tst 2>/dev/null
1954
1955 # test to see if srcdir already configured
1956 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1957    test -f $srcdir/config.status; then
1958   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1959 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # test whether we have cygpath
1964 if test -z "$CYGPATH_W"; then
1965   if (cygpath --version) >/dev/null 2>/dev/null; then
1966     CYGPATH_W='cygpath -w'
1967   else
1968     CYGPATH_W=echo
1969   fi
1970 fi
1971
1972
1973 # Define the identity of the package.
1974  PACKAGE=$OL_PACKAGE
1975  VERSION=$OL_VERSION
1976
1977
1978 # Some tools Automake needs.
1979
1980 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1981
1982
1983 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1984
1985
1986 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1987
1988
1989 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1990
1991
1992 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1993
1994 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1995
1996 # Installed binaries are usually stripped using `strip' when the user
1997 # run `make install-strip'.  However `strip' might not be the right
1998 # tool to use in cross-compilation environments, therefore Automake
1999 # will honor the `STRIP' environment variable to overrule this program.
2000 if test "$cross_compiling" != no; then
2001   if test -n "$ac_tool_prefix"; then
2002   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2003 set dummy ${ac_tool_prefix}strip; ac_word=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_STRIP+set}" = set; then
2007   echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009   if test -n "$STRIP"; then
2010   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2011 else
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2014 do
2015   IFS=$as_save_IFS
2016   test -z "$as_dir" && as_dir=.
2017   for ac_exec_ext in '' $ac_executable_extensions; do
2018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2021     break 2
2022   fi
2023 done
2024 done
2025
2026 fi
2027 fi
2028 STRIP=$ac_cv_prog_STRIP
2029 if test -n "$STRIP"; then
2030   echo "$as_me:$LINENO: result: $STRIP" >&5
2031 echo "${ECHO_T}$STRIP" >&6
2032 else
2033   echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2035 fi
2036
2037 fi
2038 if test -z "$ac_cv_prog_STRIP"; then
2039   ac_ct_STRIP=$STRIP
2040   # Extract the first word of "strip", so it can be a program name with args.
2041 set dummy strip; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2045   echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047   if test -n "$ac_ct_STRIP"; then
2048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2049 else
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     ac_cv_prog_ac_ct_STRIP="strip"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063
2064   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2065 fi
2066 fi
2067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2068 if test -n "$ac_ct_STRIP"; then
2069   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2070 echo "${ECHO_T}$ac_ct_STRIP" >&6
2071 else
2072   echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076   STRIP=$ac_ct_STRIP
2077 else
2078   STRIP="$ac_cv_prog_STRIP"
2079 fi
2080
2081 fi
2082 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2083
2084 # We need awk for the "check" target.  The system "awk" is bad on
2085 # some platforms.
2086 # Always define AMTAR for backward compatibility.
2087
2088 AMTAR=${AMTAR-"${am_missing_run}tar"}
2089
2090 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091
2092
2093
2094
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define OPENLDAP_PACKAGE "$PACKAGE"
2098 _ACEOF
2099
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define OPENLDAP_VERSION "$VERSION"
2103 _ACEOF
2104
2105
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define LDAP_VENDOR_VERSION $OL_API_INC
2109 _ACEOF
2110
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2114 _ACEOF
2115
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2119 _ACEOF
2120
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2124 _ACEOF
2125
2126
2127 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2128
2129 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2130
2131 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2132
2133
2134
2135
2136
2137
2138
2139           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2140
2141           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2142
2143           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2144
2145
2146 echo "$as_me:$LINENO: checking configure arguments" >&5
2147 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2148
2149
2150 top_builddir=`pwd`
2151
2152 ldap_subdir="/openldap"
2153
2154
2155 # Check whether --with-subdir or --without-subdir was given.
2156 if test "${with_subdir+set}" = set; then
2157   withval="$with_subdir"
2158   case "$withval" in
2159         no) ldap_subdir=""
2160                 ;;
2161         yes)
2162                 ;;
2163         /*|\\*)
2164                 ldap_subdir="$withval"
2165                 ;;
2166         *)
2167                 ldap_subdir="/$withval"
2168                 ;;
2169 esac
2170
2171 fi;
2172
2173 # OpenLDAP --enable-debug
2174
2175         # Check whether --enable-debug or --disable-debug was given.
2176 if test "${enable_debug+set}" = set; then
2177   enableval="$enable_debug"
2178
2179         ol_arg=invalid
2180         for ol_val in no yes traditional ; do
2181                 if test "$enableval" = "$ol_val" ; then
2182                         ol_arg="$ol_val"
2183                 fi
2184         done
2185         if test "$ol_arg" = "invalid" ; then
2186                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2187 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2188    { (exit 1); exit 1; }; }
2189         fi
2190         ol_enable_debug="$ol_arg"
2191
2192 else
2193         ol_enable_debug=yes
2194 fi;
2195 # end --enable-debug
2196 # OpenLDAP --enable-dynamic
2197
2198         # Check whether --enable-dynamic or --disable-dynamic was given.
2199 if test "${enable_dynamic+set}" = set; then
2200   enableval="$enable_dynamic"
2201
2202         ol_arg=invalid
2203         for ol_val in auto yes no ; do
2204                 if test "$enableval" = "$ol_val" ; then
2205                         ol_arg="$ol_val"
2206                 fi
2207         done
2208         if test "$ol_arg" = "invalid" ; then
2209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2210 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2211    { (exit 1); exit 1; }; }
2212         fi
2213         ol_enable_dynamic="$ol_arg"
2214
2215 else
2216         ol_enable_dynamic=no
2217 fi;
2218 # end --enable-dynamic
2219 # OpenLDAP --enable-syslog
2220
2221         # Check whether --enable-syslog or --disable-syslog was given.
2222 if test "${enable_syslog+set}" = set; then
2223   enableval="$enable_syslog"
2224
2225         ol_arg=invalid
2226         for ol_val in auto yes no ; do
2227                 if test "$enableval" = "$ol_val" ; then
2228                         ol_arg="$ol_val"
2229                 fi
2230         done
2231         if test "$ol_arg" = "invalid" ; then
2232                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2234    { (exit 1); exit 1; }; }
2235         fi
2236         ol_enable_syslog="$ol_arg"
2237
2238 else
2239         ol_enable_syslog=auto
2240 fi;
2241 # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2243
2244         # Check whether --enable-proctitle or --disable-proctitle was given.
2245 if test "${enable_proctitle+set}" = set; then
2246   enableval="$enable_proctitle"
2247
2248         ol_arg=invalid
2249         for ol_val in auto yes no ; do
2250                 if test "$enableval" = "$ol_val" ; then
2251                         ol_arg="$ol_val"
2252                 fi
2253         done
2254         if test "$ol_arg" = "invalid" ; then
2255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2256 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2257    { (exit 1); exit 1; }; }
2258         fi
2259         ol_enable_proctitle="$ol_arg"
2260
2261 else
2262         ol_enable_proctitle=yes
2263 fi;
2264 # end --enable-proctitle
2265 ol_enable_referrals=${ol_enable_referrals-no}
2266 ol_enable_kbind=${ol_enable_kbind-no}
2267 # OpenLDAP --enable-ipv6
2268
2269         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2270 if test "${enable_ipv6+set}" = set; then
2271   enableval="$enable_ipv6"
2272
2273         ol_arg=invalid
2274         for ol_val in auto yes no ; do
2275                 if test "$enableval" = "$ol_val" ; then
2276                         ol_arg="$ol_val"
2277                 fi
2278         done
2279         if test "$ol_arg" = "invalid" ; then
2280                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2282    { (exit 1); exit 1; }; }
2283         fi
2284         ol_enable_ipv6="$ol_arg"
2285
2286 else
2287         ol_enable_ipv6=auto
2288 fi;
2289 # end --enable-ipv6
2290 # OpenLDAP --enable-local
2291
2292         # Check whether --enable-local or --disable-local was given.
2293 if test "${enable_local+set}" = set; then
2294   enableval="$enable_local"
2295
2296         ol_arg=invalid
2297         for ol_val in auto yes no ; do
2298                 if test "$enableval" = "$ol_val" ; then
2299                         ol_arg="$ol_val"
2300                 fi
2301         done
2302         if test "$ol_arg" = "invalid" ; then
2303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2304 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2305    { (exit 1); exit 1; }; }
2306         fi
2307         ol_enable_local="$ol_arg"
2308
2309 else
2310         ol_enable_local=auto
2311 fi;
2312 # end --enable-local
2313
2314 # OpenLDAP --with-cyrus_sasl
2315
2316 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2317 if test "${with_cyrus_sasl+set}" = set; then
2318   withval="$with_cyrus_sasl"
2319
2320         ol_arg=invalid
2321         for ol_val in auto yes no  ; do
2322                 if test "$withval" = "$ol_val" ; then
2323                         ol_arg="$ol_val"
2324                 fi
2325         done
2326         if test "$ol_arg" = "invalid" ; then
2327                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2328 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2329    { (exit 1); exit 1; }; }
2330         fi
2331         ol_with_cyrus_sasl="$ol_arg"
2332
2333 else
2334         ol_with_cyrus_sasl="auto"
2335 fi; # end --with-cyrus_sasl
2336
2337 # OpenLDAP --with-fetch
2338
2339 # Check whether --with-fetch or --without-fetch was given.
2340 if test "${with_fetch+set}" = set; then
2341   withval="$with_fetch"
2342
2343         ol_arg=invalid
2344         for ol_val in auto yes no  ; do
2345                 if test "$withval" = "$ol_val" ; then
2346                         ol_arg="$ol_val"
2347                 fi
2348         done
2349         if test "$ol_arg" = "invalid" ; then
2350                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2351 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2352    { (exit 1); exit 1; }; }
2353         fi
2354         ol_with_fetch="$ol_arg"
2355
2356 else
2357         ol_with_fetch="auto"
2358 fi; # end --with-fetch
2359
2360 ol_with_kerberos=${ol_with_kerberos-auto}
2361 # OpenLDAP --with-threads
2362
2363 # Check whether --with-threads or --without-threads was given.
2364 if test "${with_threads+set}" = set; then
2365   withval="$with_threads"
2366
2367         ol_arg=invalid
2368         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2369                 if test "$withval" = "$ol_val" ; then
2370                         ol_arg="$ol_val"
2371                 fi
2372         done
2373         if test "$ol_arg" = "invalid" ; then
2374                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2375 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2376    { (exit 1); exit 1; }; }
2377         fi
2378         ol_with_threads="$ol_arg"
2379
2380 else
2381         ol_with_threads="auto"
2382 fi; # end --with-threads
2383
2384 # OpenLDAP --with-tls
2385
2386 # Check whether --with-tls or --without-tls was given.
2387 if test "${with_tls+set}" = set; then
2388   withval="$with_tls"
2389
2390         ol_arg=invalid
2391         for ol_val in auto openssl yes no  ; do
2392                 if test "$withval" = "$ol_val" ; then
2393                         ol_arg="$ol_val"
2394                 fi
2395         done
2396         if test "$ol_arg" = "invalid" ; then
2397                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2398 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2399    { (exit 1); exit 1; }; }
2400         fi
2401         ol_with_tls="$ol_arg"
2402
2403 else
2404         ol_with_tls="auto"
2405 fi; # end --with-tls
2406
2407 # OpenLDAP --with-yielding_select
2408
2409 # Check whether --with-yielding_select or --without-yielding_select was given.
2410 if test "${with_yielding_select+set}" = set; then
2411   withval="$with_yielding_select"
2412
2413         ol_arg=invalid
2414         for ol_val in auto yes no manual  ; do
2415                 if test "$withval" = "$ol_val" ; then
2416                         ol_arg="$ol_val"
2417                 fi
2418         done
2419         if test "$ol_arg" = "invalid" ; then
2420                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2421 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2422    { (exit 1); exit 1; }; }
2423         fi
2424         ol_with_yielding_select="$ol_arg"
2425
2426 else
2427         ol_with_yielding_select="auto"
2428 fi; # end --with-yielding_select
2429
2430 # OpenLDAP --with-multiple_precision
2431
2432 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2433 if test "${with_multiple_precision+set}" = set; then
2434   withval="$with_multiple_precision"
2435
2436         ol_arg=invalid
2437         for ol_val in auto bignum gmp yes no  ; do
2438                 if test "$withval" = "$ol_val" ; then
2439                         ol_arg="$ol_val"
2440                 fi
2441         done
2442         if test "$ol_arg" = "invalid" ; then
2443                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2444 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2445    { (exit 1); exit 1; }; }
2446         fi
2447         ol_with_multiple_precision="$ol_arg"
2448
2449 else
2450         ol_with_multiple_precision="auto"
2451 fi; # end --with-multiple_precision
2452
2453
2454
2455 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2456 if test "${enable_xxslapdoptions+set}" = set; then
2457   enableval="$enable_xxslapdoptions"
2458
2459 fi;
2460 # OpenLDAP --enable-slapd
2461
2462         # Check whether --enable-slapd or --disable-slapd was given.
2463 if test "${enable_slapd+set}" = set; then
2464   enableval="$enable_slapd"
2465
2466         ol_arg=invalid
2467         for ol_val in auto yes no ; do
2468                 if test "$enableval" = "$ol_val" ; then
2469                         ol_arg="$ol_val"
2470                 fi
2471         done
2472         if test "$ol_arg" = "invalid" ; then
2473                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2474 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2475    { (exit 1); exit 1; }; }
2476         fi
2477         ol_enable_slapd="$ol_arg"
2478
2479 else
2480         ol_enable_slapd=yes
2481 fi;
2482 # end --enable-slapd
2483 # OpenLDAP --enable-dynacl
2484
2485         # Check whether --enable-dynacl or --disable-dynacl was given.
2486 if test "${enable_dynacl+set}" = set; then
2487   enableval="$enable_dynacl"
2488
2489         ol_arg=invalid
2490         for ol_val in auto yes no ; do
2491                 if test "$enableval" = "$ol_val" ; then
2492                         ol_arg="$ol_val"
2493                 fi
2494         done
2495         if test "$ol_arg" = "invalid" ; then
2496                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2497 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2498    { (exit 1); exit 1; }; }
2499         fi
2500         ol_enable_dynacl="$ol_arg"
2501
2502 else
2503         ol_enable_dynacl=no
2504 fi;
2505 # end --enable-dynacl
2506 # OpenLDAP --enable-aci
2507
2508         # Check whether --enable-aci or --disable-aci was given.
2509 if test "${enable_aci+set}" = set; then
2510   enableval="$enable_aci"
2511
2512         ol_arg=invalid
2513         for ol_val in no yes mod ; do
2514                 if test "$enableval" = "$ol_val" ; then
2515                         ol_arg="$ol_val"
2516                 fi
2517         done
2518         if test "$ol_arg" = "invalid" ; then
2519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2520 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2521    { (exit 1); exit 1; }; }
2522         fi
2523         ol_enable_aci="$ol_arg"
2524
2525 else
2526         ol_enable_aci=no
2527 fi;
2528 # end --enable-aci
2529 # OpenLDAP --enable-cleartext
2530
2531         # Check whether --enable-cleartext or --disable-cleartext was given.
2532 if test "${enable_cleartext+set}" = set; then
2533   enableval="$enable_cleartext"
2534
2535         ol_arg=invalid
2536         for ol_val in auto yes no ; do
2537                 if test "$enableval" = "$ol_val" ; then
2538                         ol_arg="$ol_val"
2539                 fi
2540         done
2541         if test "$ol_arg" = "invalid" ; then
2542                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2543 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2544    { (exit 1); exit 1; }; }
2545         fi
2546         ol_enable_cleartext="$ol_arg"
2547
2548 else
2549         ol_enable_cleartext=yes
2550 fi;
2551 # end --enable-cleartext
2552 # OpenLDAP --enable-crypt
2553
2554         # Check whether --enable-crypt or --disable-crypt was given.
2555 if test "${enable_crypt+set}" = set; then
2556   enableval="$enable_crypt"
2557
2558         ol_arg=invalid
2559         for ol_val in auto yes no ; do
2560                 if test "$enableval" = "$ol_val" ; then
2561                         ol_arg="$ol_val"
2562                 fi
2563         done
2564         if test "$ol_arg" = "invalid" ; then
2565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2566 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2567    { (exit 1); exit 1; }; }
2568         fi
2569         ol_enable_crypt="$ol_arg"
2570
2571 else
2572         ol_enable_crypt=no
2573 fi;
2574 # end --enable-crypt
2575 # OpenLDAP --enable-lmpasswd
2576
2577         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2578 if test "${enable_lmpasswd+set}" = set; then
2579   enableval="$enable_lmpasswd"
2580
2581         ol_arg=invalid
2582         for ol_val in auto yes no ; do
2583                 if test "$enableval" = "$ol_val" ; then
2584                         ol_arg="$ol_val"
2585                 fi
2586         done
2587         if test "$ol_arg" = "invalid" ; then
2588                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2589 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2590    { (exit 1); exit 1; }; }
2591         fi
2592         ol_enable_lmpasswd="$ol_arg"
2593
2594 else
2595         ol_enable_lmpasswd=no
2596 fi;
2597 # end --enable-lmpasswd
2598 # OpenLDAP --enable-spasswd
2599
2600         # Check whether --enable-spasswd or --disable-spasswd was given.
2601 if test "${enable_spasswd+set}" = set; then
2602   enableval="$enable_spasswd"
2603
2604         ol_arg=invalid
2605         for ol_val in auto yes no ; do
2606                 if test "$enableval" = "$ol_val" ; then
2607                         ol_arg="$ol_val"
2608                 fi
2609         done
2610         if test "$ol_arg" = "invalid" ; then
2611                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2612 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2613    { (exit 1); exit 1; }; }
2614         fi
2615         ol_enable_spasswd="$ol_arg"
2616
2617 else
2618         ol_enable_spasswd=no
2619 fi;
2620 # end --enable-spasswd
2621 # OpenLDAP --enable-modules
2622
2623         # Check whether --enable-modules or --disable-modules was given.
2624 if test "${enable_modules+set}" = set; then
2625   enableval="$enable_modules"
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-modules" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_modules="$ol_arg"
2639
2640 else
2641         ol_enable_modules=no
2642 fi;
2643 # end --enable-modules
2644 ol_enable_multimaster=${ol_enable_multimaster-no}
2645 # OpenLDAP --enable-rewrite
2646
2647         # Check whether --enable-rewrite or --disable-rewrite was given.
2648 if test "${enable_rewrite+set}" = set; then
2649   enableval="$enable_rewrite"
2650
2651         ol_arg=invalid
2652         for ol_val in auto yes no ; do
2653                 if test "$enableval" = "$ol_val" ; then
2654                         ol_arg="$ol_val"
2655                 fi
2656         done
2657         if test "$ol_arg" = "invalid" ; then
2658                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2660    { (exit 1); exit 1; }; }
2661         fi
2662         ol_enable_rewrite="$ol_arg"
2663
2664 else
2665         ol_enable_rewrite=auto
2666 fi;
2667 # end --enable-rewrite
2668 # OpenLDAP --enable-rlookups
2669
2670         # Check whether --enable-rlookups or --disable-rlookups was given.
2671 if test "${enable_rlookups+set}" = set; then
2672   enableval="$enable_rlookups"
2673
2674         ol_arg=invalid
2675         for ol_val in auto yes no ; do
2676                 if test "$enableval" = "$ol_val" ; then
2677                         ol_arg="$ol_val"
2678                 fi
2679         done
2680         if test "$ol_arg" = "invalid" ; then
2681                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2682 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2683    { (exit 1); exit 1; }; }
2684         fi
2685         ol_enable_rlookups="$ol_arg"
2686
2687 else
2688         ol_enable_rlookups=no
2689 fi;
2690 # end --enable-rlookups
2691 # OpenLDAP --enable-slapi
2692
2693         # Check whether --enable-slapi or --disable-slapi was given.
2694 if test "${enable_slapi+set}" = set; then
2695   enableval="$enable_slapi"
2696
2697         ol_arg=invalid
2698         for ol_val in auto yes no ; do
2699                 if test "$enableval" = "$ol_val" ; then
2700                         ol_arg="$ol_val"
2701                 fi
2702         done
2703         if test "$ol_arg" = "invalid" ; then
2704                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2705 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2706    { (exit 1); exit 1; }; }
2707         fi
2708         ol_enable_slapi="$ol_arg"
2709
2710 else
2711         ol_enable_slapi=no
2712 fi;
2713 # end --enable-slapi
2714 # OpenLDAP --enable-slp
2715
2716         # Check whether --enable-slp or --disable-slp was given.
2717 if test "${enable_slp+set}" = set; then
2718   enableval="$enable_slp"
2719
2720         ol_arg=invalid
2721         for ol_val in auto yes no ; do
2722                 if test "$enableval" = "$ol_val" ; then
2723                         ol_arg="$ol_val"
2724                 fi
2725         done
2726         if test "$ol_arg" = "invalid" ; then
2727                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2728 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2729    { (exit 1); exit 1; }; }
2730         fi
2731         ol_enable_slp="$ol_arg"
2732
2733 else
2734         ol_enable_slp=no
2735 fi;
2736 # end --enable-slp
2737 # OpenLDAP --enable-wrappers
2738
2739         # Check whether --enable-wrappers or --disable-wrappers was given.
2740 if test "${enable_wrappers+set}" = set; then
2741   enableval="$enable_wrappers"
2742
2743         ol_arg=invalid
2744         for ol_val in auto yes no ; do
2745                 if test "$enableval" = "$ol_val" ; then
2746                         ol_arg="$ol_val"
2747                 fi
2748         done
2749         if test "$ol_arg" = "invalid" ; then
2750                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2751 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2752    { (exit 1); exit 1; }; }
2753         fi
2754         ol_enable_wrappers="$ol_arg"
2755
2756 else
2757         ol_enable_wrappers=no
2758 fi;
2759 # end --enable-wrappers
2760
2761 Backends="bdb \
2762         dnssrv \
2763         hdb \
2764         ldap \
2765         ldbm \
2766         meta \
2767         monitor \
2768         null \
2769         passwd \
2770         perl \
2771         relay \
2772         shell \
2773         sql"
2774
2775 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2776 if test "${enable_xxslapbackends+set}" = set; then
2777   enableval="$enable_xxslapbackends"
2778
2779 fi;
2780
2781 # OpenLDAP --enable-backends
2782
2783         # Check whether --enable-backends or --disable-backends was given.
2784 if test "${enable_backends+set}" = set; then
2785   enableval="$enable_backends"
2786
2787         ol_arg=invalid
2788         for ol_val in no yes mod ; do
2789                 if test "$enableval" = "$ol_val" ; then
2790                         ol_arg="$ol_val"
2791                 fi
2792         done
2793         if test "$ol_arg" = "invalid" ; then
2794                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2796    { (exit 1); exit 1; }; }
2797         fi
2798         ol_enable_backends="$ol_arg"
2799
2800 fi;
2801 # end --enable-backends
2802 # OpenLDAP --enable-bdb
2803
2804         # Check whether --enable-bdb or --disable-bdb was given.
2805 if test "${enable_bdb+set}" = set; then
2806   enableval="$enable_bdb"
2807
2808         ol_arg=invalid
2809         for ol_val in no yes mod ; do
2810                 if test "$enableval" = "$ol_val" ; then
2811                         ol_arg="$ol_val"
2812                 fi
2813         done
2814         if test "$ol_arg" = "invalid" ; then
2815                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2817    { (exit 1); exit 1; }; }
2818         fi
2819         ol_enable_bdb="$ol_arg"
2820
2821 else
2822         ol_enable_bdb=${ol_enable_backends:-yes}
2823 fi;
2824 # end --enable-bdb
2825 # OpenLDAP --enable-dnssrv
2826
2827         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2828 if test "${enable_dnssrv+set}" = set; then
2829   enableval="$enable_dnssrv"
2830
2831         ol_arg=invalid
2832         for ol_val in no yes mod ; do
2833                 if test "$enableval" = "$ol_val" ; then
2834                         ol_arg="$ol_val"
2835                 fi
2836         done
2837         if test "$ol_arg" = "invalid" ; then
2838                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2839 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2840    { (exit 1); exit 1; }; }
2841         fi
2842         ol_enable_dnssrv="$ol_arg"
2843
2844 else
2845         ol_enable_dnssrv=${ol_enable_backends:-no}
2846 fi;
2847 # end --enable-dnssrv
2848 # OpenLDAP --enable-hdb
2849
2850         # Check whether --enable-hdb or --disable-hdb was given.
2851 if test "${enable_hdb+set}" = set; then
2852   enableval="$enable_hdb"
2853
2854         ol_arg=invalid
2855         for ol_val in no yes mod ; do
2856                 if test "$enableval" = "$ol_val" ; then
2857                         ol_arg="$ol_val"
2858                 fi
2859         done
2860         if test "$ol_arg" = "invalid" ; then
2861                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2862 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2863    { (exit 1); exit 1; }; }
2864         fi
2865         ol_enable_hdb="$ol_arg"
2866
2867 else
2868         ol_enable_hdb=${ol_enable_backends:-yes}
2869 fi;
2870 # end --enable-hdb
2871 # OpenLDAP --enable-ldap
2872
2873         # Check whether --enable-ldap or --disable-ldap was given.
2874 if test "${enable_ldap+set}" = set; then
2875   enableval="$enable_ldap"
2876
2877         ol_arg=invalid
2878         for ol_val in no yes mod ; do
2879                 if test "$enableval" = "$ol_val" ; then
2880                         ol_arg="$ol_val"
2881                 fi
2882         done
2883         if test "$ol_arg" = "invalid" ; then
2884                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2885 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2886    { (exit 1); exit 1; }; }
2887         fi
2888         ol_enable_ldap="$ol_arg"
2889
2890 else
2891         ol_enable_ldap=${ol_enable_backends:-no}
2892 fi;
2893 # end --enable-ldap
2894 # OpenLDAP --enable-ldbm
2895
2896         # Check whether --enable-ldbm or --disable-ldbm was given.
2897 if test "${enable_ldbm+set}" = set; then
2898   enableval="$enable_ldbm"
2899
2900         ol_arg=invalid
2901         for ol_val in no yes mod ; do
2902                 if test "$enableval" = "$ol_val" ; then
2903                         ol_arg="$ol_val"
2904                 fi
2905         done
2906         if test "$ol_arg" = "invalid" ; then
2907                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2908 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2909    { (exit 1); exit 1; }; }
2910         fi
2911         ol_enable_ldbm="$ol_arg"
2912
2913 else
2914         ol_enable_ldbm=${ol_enable_backends:-no}
2915 fi;
2916 # end --enable-ldbm
2917
2918 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2919 if test "${with_ldbm_api+set}" = set; then
2920   withval="$with_ldbm_api"
2921
2922         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2923 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2924         enable_ldbm_api="$with_ldbm_api"
2925 fi;
2926 # OpenLDAP --enable-ldbm_api
2927
2928         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2929 if test "${enable_ldbm_api+set}" = set; then
2930   enableval="$enable_ldbm_api"
2931
2932         ol_arg=invalid
2933         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2934                 if test "$enableval" = "$ol_val" ; then
2935                         ol_arg="$ol_val"
2936                 fi
2937         done
2938         if test "$ol_arg" = "invalid" ; then
2939                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2940 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2941    { (exit 1); exit 1; }; }
2942         fi
2943         ol_enable_ldbm_api="$ol_arg"
2944
2945 else
2946         ol_enable_ldbm_api=auto
2947 fi;
2948 # end --enable-ldbm_api
2949
2950
2951 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2952 if test "${with_ldbm_type+set}" = set; then
2953   withval="$with_ldbm_type"
2954
2955         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2956 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2957         enable_ldbm_type="$with_ldbm_type"
2958 fi;
2959 # OpenLDAP --enable-ldbm_type
2960
2961         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2962 if test "${enable_ldbm_type+set}" = set; then
2963   enableval="$enable_ldbm_type"
2964
2965         ol_arg=invalid
2966         for ol_val in auto btree hash ; 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-ldbm_type" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2974    { (exit 1); exit 1; }; }
2975         fi
2976         ol_enable_ldbm_type="$ol_arg"
2977
2978 else
2979         ol_enable_ldbm_type=auto
2980 fi;
2981 # end --enable-ldbm_type
2982
2983 # OpenLDAP --enable-meta
2984
2985         # Check whether --enable-meta or --disable-meta was given.
2986 if test "${enable_meta+set}" = set; then
2987   enableval="$enable_meta"
2988
2989         ol_arg=invalid
2990         for ol_val in no yes mod ; do
2991                 if test "$enableval" = "$ol_val" ; then
2992                         ol_arg="$ol_val"
2993                 fi
2994         done
2995         if test "$ol_arg" = "invalid" ; then
2996                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2998    { (exit 1); exit 1; }; }
2999         fi
3000         ol_enable_meta="$ol_arg"
3001
3002 else
3003         ol_enable_meta=${ol_enable_backends:-no}
3004 fi;
3005 # end --enable-meta
3006 # OpenLDAP --enable-monitor
3007
3008         # Check whether --enable-monitor or --disable-monitor was given.
3009 if test "${enable_monitor+set}" = set; then
3010   enableval="$enable_monitor"
3011
3012         ol_arg=invalid
3013         for ol_val in no yes mod ; do
3014                 if test "$enableval" = "$ol_val" ; then
3015                         ol_arg="$ol_val"
3016                 fi
3017         done
3018         if test "$ol_arg" = "invalid" ; then
3019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3021    { (exit 1); exit 1; }; }
3022         fi
3023         ol_enable_monitor="$ol_arg"
3024
3025 else
3026         ol_enable_monitor=${ol_enable_backends:-yes}
3027 fi;
3028 # end --enable-monitor
3029 # OpenLDAP --enable-null
3030
3031         # Check whether --enable-null or --disable-null was given.
3032 if test "${enable_null+set}" = set; then
3033   enableval="$enable_null"
3034
3035         ol_arg=invalid
3036         for ol_val in no yes mod ; do
3037                 if test "$enableval" = "$ol_val" ; then
3038                         ol_arg="$ol_val"
3039                 fi
3040         done
3041         if test "$ol_arg" = "invalid" ; then
3042                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3044    { (exit 1); exit 1; }; }
3045         fi
3046         ol_enable_null="$ol_arg"
3047
3048 else
3049         ol_enable_null=${ol_enable_backends:-no}
3050 fi;
3051 # end --enable-null
3052 # OpenLDAP --enable-passwd
3053
3054         # Check whether --enable-passwd or --disable-passwd was given.
3055 if test "${enable_passwd+set}" = set; then
3056   enableval="$enable_passwd"
3057
3058         ol_arg=invalid
3059         for ol_val in no yes mod ; do
3060                 if test "$enableval" = "$ol_val" ; then
3061                         ol_arg="$ol_val"
3062                 fi
3063         done
3064         if test "$ol_arg" = "invalid" ; then
3065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3067    { (exit 1); exit 1; }; }
3068         fi
3069         ol_enable_passwd="$ol_arg"
3070
3071 else
3072         ol_enable_passwd=${ol_enable_backends:-no}
3073 fi;
3074 # end --enable-passwd
3075 # OpenLDAP --enable-perl
3076
3077         # Check whether --enable-perl or --disable-perl was given.
3078 if test "${enable_perl+set}" = set; then
3079   enableval="$enable_perl"
3080
3081         ol_arg=invalid
3082         for ol_val in no yes mod ; do
3083                 if test "$enableval" = "$ol_val" ; then
3084                         ol_arg="$ol_val"
3085                 fi
3086         done
3087         if test "$ol_arg" = "invalid" ; then
3088                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3090    { (exit 1); exit 1; }; }
3091         fi
3092         ol_enable_perl="$ol_arg"
3093
3094 else
3095         ol_enable_perl=${ol_enable_backends:-no}
3096 fi;
3097 # end --enable-perl
3098 # OpenLDAP --enable-relay
3099
3100         # Check whether --enable-relay or --disable-relay was given.
3101 if test "${enable_relay+set}" = set; then
3102   enableval="$enable_relay"
3103
3104         ol_arg=invalid
3105         for ol_val in no yes mod ; do
3106                 if test "$enableval" = "$ol_val" ; then
3107                         ol_arg="$ol_val"
3108                 fi
3109         done
3110         if test "$ol_arg" = "invalid" ; then
3111                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3113    { (exit 1); exit 1; }; }
3114         fi
3115         ol_enable_relay="$ol_arg"
3116
3117 else
3118         ol_enable_relay=${ol_enable_backends:-yes}
3119 fi;
3120 # end --enable-relay
3121 # OpenLDAP --enable-shell
3122
3123         # Check whether --enable-shell or --disable-shell was given.
3124 if test "${enable_shell+set}" = set; then
3125   enableval="$enable_shell"
3126
3127         ol_arg=invalid
3128         for ol_val in no yes mod ; do
3129                 if test "$enableval" = "$ol_val" ; then
3130                         ol_arg="$ol_val"
3131                 fi
3132         done
3133         if test "$ol_arg" = "invalid" ; then
3134                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3136    { (exit 1); exit 1; }; }
3137         fi
3138         ol_enable_shell="$ol_arg"
3139
3140 else
3141         ol_enable_shell=${ol_enable_backends:-no}
3142 fi;
3143 # end --enable-shell
3144 # OpenLDAP --enable-sql
3145
3146         # Check whether --enable-sql or --disable-sql was given.
3147 if test "${enable_sql+set}" = set; then
3148   enableval="$enable_sql"
3149
3150         ol_arg=invalid
3151         for ol_val in no yes mod ; do
3152                 if test "$enableval" = "$ol_val" ; then
3153                         ol_arg="$ol_val"
3154                 fi
3155         done
3156         if test "$ol_arg" = "invalid" ; then
3157                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3159    { (exit 1); exit 1; }; }
3160         fi
3161         ol_enable_sql="$ol_arg"
3162
3163 else
3164         ol_enable_sql=${ol_enable_backends:-no}
3165 fi;
3166 # end --enable-sql
3167
3168 Overlays="accesslog \
3169         denyop \
3170         dyngroup \
3171         dynlist \
3172         lastmod \
3173         ppolicy \
3174         proxycache \
3175         refint \
3176         retcode \
3177         rwm \
3178         syncprov \
3179         translucent \
3180         unique \
3181         valsort"
3182
3183 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3184 if test "${enable_xxslapoverlays+set}" = set; then
3185   enableval="$enable_xxslapoverlays"
3186
3187 fi;
3188
3189 # OpenLDAP --enable-overlays
3190
3191         # Check whether --enable-overlays or --disable-overlays was given.
3192 if test "${enable_overlays+set}" = set; then
3193   enableval="$enable_overlays"
3194
3195         ol_arg=invalid
3196         for ol_val in no yes mod ; do
3197                 if test "$enableval" = "$ol_val" ; then
3198                         ol_arg="$ol_val"
3199                 fi
3200         done
3201         if test "$ol_arg" = "invalid" ; then
3202                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3203 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3204    { (exit 1); exit 1; }; }
3205         fi
3206         ol_enable_overlays="$ol_arg"
3207
3208 fi;
3209 # end --enable-overlays
3210 # OpenLDAP --enable-accesslog
3211
3212         # Check whether --enable-accesslog or --disable-accesslog was given.
3213 if test "${enable_accesslog+set}" = set; then
3214   enableval="$enable_accesslog"
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-accesslog" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_accesslog="$ol_arg"
3228
3229 else
3230         ol_enable_accesslog=${ol_enable_overlays:-no}
3231 fi;
3232 # end --enable-accesslog
3233
3234 # OpenLDAP --enable-denyop
3235
3236         # Check whether --enable-denyop or --disable-denyop was given.
3237 if test "${enable_denyop+set}" = set; then
3238   enableval="$enable_denyop"
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-denyop" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3249    { (exit 1); exit 1; }; }
3250         fi
3251         ol_enable_denyop="$ol_arg"
3252
3253 else
3254         ol_enable_denyop=${ol_enable_overlays:-no}
3255 fi;
3256 # end --enable-denyop
3257
3258 # OpenLDAP --enable-dyngroup
3259
3260         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3261 if test "${enable_dyngroup+set}" = set; then
3262   enableval="$enable_dyngroup"
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-dyngroup" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3273    { (exit 1); exit 1; }; }
3274         fi
3275         ol_enable_dyngroup="$ol_arg"
3276
3277 else
3278         ol_enable_dyngroup=${ol_enable_overlays:-no}
3279 fi;
3280 # end --enable-dyngroup
3281
3282 # OpenLDAP --enable-dynlist
3283
3284         # Check whether --enable-dynlist or --disable-dynlist was given.
3285 if test "${enable_dynlist+set}" = set; then
3286   enableval="$enable_dynlist"
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-dynlist" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_dynlist="$ol_arg"
3300
3301 else
3302         ol_enable_dynlist=${ol_enable_overlays:-no}
3303 fi;
3304 # end --enable-dynlist
3305
3306 # OpenLDAP --enable-lastmod
3307
3308         # Check whether --enable-lastmod or --disable-lastmod was given.
3309 if test "${enable_lastmod+set}" = set; then
3310   enableval="$enable_lastmod"
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-lastmod" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_lastmod="$ol_arg"
3324
3325 else
3326         ol_enable_lastmod=${ol_enable_overlays:-no}
3327 fi;
3328 # end --enable-lastmod
3329
3330 # OpenLDAP --enable-ppolicy
3331
3332         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3333 if test "${enable_ppolicy+set}" = set; then
3334   enableval="$enable_ppolicy"
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-ppolicy" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_ppolicy="$ol_arg"
3348
3349 else
3350         ol_enable_ppolicy=${ol_enable_overlays:-no}
3351 fi;
3352 # end --enable-ppolicy
3353
3354 # OpenLDAP --enable-proxycache
3355
3356         # Check whether --enable-proxycache or --disable-proxycache was given.
3357 if test "${enable_proxycache+set}" = set; then
3358   enableval="$enable_proxycache"
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-proxycache" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_proxycache="$ol_arg"
3372
3373 else
3374         ol_enable_proxycache=${ol_enable_overlays:-no}
3375 fi;
3376 # end --enable-proxycache
3377
3378 # OpenLDAP --enable-refint
3379
3380         # Check whether --enable-refint or --disable-refint was given.
3381 if test "${enable_refint+set}" = set; then
3382   enableval="$enable_refint"
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-refint" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3393    { (exit 1); exit 1; }; }
3394         fi
3395         ol_enable_refint="$ol_arg"
3396
3397 else
3398         ol_enable_refint=${ol_enable_overlays:-no}
3399 fi;
3400 # end --enable-refint
3401
3402 # OpenLDAP --enable-retcode
3403
3404         # Check whether --enable-retcode or --disable-retcode was given.
3405 if test "${enable_retcode+set}" = set; then
3406   enableval="$enable_retcode"
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-retcode" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3417    { (exit 1); exit 1; }; }
3418         fi
3419         ol_enable_retcode="$ol_arg"
3420
3421 else
3422         ol_enable_retcode=${ol_enable_overlays:-no}
3423 fi;
3424 # end --enable-retcode
3425
3426 # OpenLDAP --enable-rwm
3427
3428         # Check whether --enable-rwm or --disable-rwm was given.
3429 if test "${enable_rwm+set}" = set; then
3430   enableval="$enable_rwm"
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-rwm" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3441    { (exit 1); exit 1; }; }
3442         fi
3443         ol_enable_rwm="$ol_arg"
3444
3445 else
3446         ol_enable_rwm=${ol_enable_overlays:-no}
3447 fi;
3448 # end --enable-rwm
3449
3450 # OpenLDAP --enable-syncprov
3451
3452         # Check whether --enable-syncprov or --disable-syncprov was given.
3453 if test "${enable_syncprov+set}" = set; then
3454   enableval="$enable_syncprov"
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-syncprov" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3465    { (exit 1); exit 1; }; }
3466         fi
3467         ol_enable_syncprov="$ol_arg"
3468
3469 else
3470         ol_enable_syncprov=${ol_enable_overlays:-yes}
3471 fi;
3472 # end --enable-syncprov
3473
3474 # OpenLDAP --enable-translucent
3475
3476         # Check whether --enable-translucent or --disable-translucent was given.
3477 if test "${enable_translucent+set}" = set; then
3478   enableval="$enable_translucent"
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-translucent" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3489    { (exit 1); exit 1; }; }
3490         fi
3491         ol_enable_translucent="$ol_arg"
3492
3493 else
3494         ol_enable_translucent=${ol_enable_overlays:-no}
3495 fi;
3496 # end --enable-translucent
3497
3498 # OpenLDAP --enable-unique
3499
3500         # Check whether --enable-unique or --disable-unique was given.
3501 if test "${enable_unique+set}" = set; then
3502   enableval="$enable_unique"
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-unique" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3513    { (exit 1); exit 1; }; }
3514         fi
3515         ol_enable_unique="$ol_arg"
3516
3517 else
3518         ol_enable_unique=${ol_enable_overlays:-no}
3519 fi;
3520 # end --enable-unique
3521
3522 # OpenLDAP --enable-valsort
3523
3524         # Check whether --enable-valsort or --disable-valsort was given.
3525 if test "${enable_valsort+set}" = set; then
3526   enableval="$enable_valsort"
3527
3528         ol_arg=invalid
3529         for ol_val in no yes mod ; do
3530                 if test "$enableval" = "$ol_val" ; then
3531                         ol_arg="$ol_val"
3532                 fi
3533         done
3534         if test "$ol_arg" = "invalid" ; then
3535                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3536 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3537    { (exit 1); exit 1; }; }
3538         fi
3539         ol_enable_valsort="$ol_arg"
3540
3541 else
3542         ol_enable_valsort=${ol_enable_overlays:-no}
3543 fi;
3544 # end --enable-valsort
3545
3546
3547 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3548 if test "${enable_xxslurpdoptions+set}" = set; then
3549   enableval="$enable_xxslurpdoptions"
3550
3551 fi;
3552 # OpenLDAP --enable-slurpd
3553
3554         # Check whether --enable-slurpd or --disable-slurpd was given.
3555 if test "${enable_slurpd+set}" = set; then
3556   enableval="$enable_slurpd"
3557
3558         ol_arg=invalid
3559         for ol_val in auto yes no ; do
3560                 if test "$enableval" = "$ol_val" ; then
3561                         ol_arg="$ol_val"
3562                 fi
3563         done
3564         if test "$ol_arg" = "invalid" ; then
3565                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3566 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3567    { (exit 1); exit 1; }; }
3568         fi
3569         ol_enable_slurpd="$ol_arg"
3570
3571 else
3572         ol_enable_slurpd=auto
3573 fi;
3574 # end --enable-slurpd
3575
3576 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3577 if test "${enable_xxliboptions+set}" = set; then
3578   enableval="$enable_xxliboptions"
3579
3580 fi;
3581 # Check whether --enable-static or --disable-static was given.
3582 if test "${enable_static+set}" = set; then
3583   enableval="$enable_static"
3584   p=${PACKAGE-default}
3585     case $enableval in
3586     yes) enable_static=yes ;;
3587     no) enable_static=no ;;
3588     *)
3589      enable_static=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_static=yes
3596         fi
3597       done
3598       IFS="$lt_save_ifs"
3599       ;;
3600     esac
3601 else
3602   enable_static=yes
3603 fi;
3604
3605 # Check whether --enable-shared or --disable-shared was given.
3606 if test "${enable_shared+set}" = set; then
3607   enableval="$enable_shared"
3608   p=${PACKAGE-default}
3609     case $enableval in
3610     yes) enable_shared=yes ;;
3611     no) enable_shared=no ;;
3612     *)
3613       enable_shared=no
3614       # Look at the argument we got.  We use all the common list separators.
3615       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3616       for pkg in $enableval; do
3617         IFS="$lt_save_ifs"
3618         if test "X$pkg" = "X$p"; then
3619           enable_shared=yes
3620         fi
3621       done
3622       IFS="$lt_save_ifs"
3623       ;;
3624     esac
3625 else
3626   enable_shared=yes
3627 fi;
3628
3629
3630
3631 # validate options
3632 if test $ol_enable_slapd = no ; then
3633                 if test $ol_enable_slapi = yes ; then
3634                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3636         fi
3637         case "$ol_enable_backends" in yes | mod)
3638                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3640         esac
3641         for i in $Backends; do
3642                 eval "ol_tmp=\$ol_enable_$i"
3643                 if test $ol_tmp != no ; then
3644                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3646                         eval "ol_enable_$i=no"
3647                 fi
3648         done
3649         if test $ol_enable_modules = yes ; then
3650                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3652         fi
3653         if test $ol_enable_multimaster = yes ; then
3654                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3655 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3656         fi
3657         if test $ol_enable_wrappers = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3660         fi
3661         if test $ol_enable_rlookups = yes ; then
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3664         fi
3665         if test $ol_enable_aci = yes ; then
3666                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3668         fi
3669         if test $ol_enable_ldbm_api != auto ; then
3670                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3672         fi
3673         if test $ol_enable_ldbm_type != auto ; then
3674                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3676         fi
3677         if test $ol_enable_slurpd = yes ; then
3678                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         if test $ol_enable_rewrite = yes ; then
3683                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3685         fi
3686                 case "$ol_enable_overlays" in yes | mod)
3687                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3689         esac
3690         for i in $Overlays; do
3691                 eval "ol_tmp=\$ol_enable_$i"
3692                 if test $ol_tmp != no ; then
3693                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695                         eval "ol_enable_$i=no"
3696                 fi
3697         done
3698
3699         # force settings to no
3700         ol_enable_slapi=no
3701
3702         ol_enable_backends=
3703         ol_enable_overlays=
3704         ol_enable_modules=no
3705         ol_enable_multimaster=no
3706         ol_enable_rlookups=no
3707         ol_enable_dynacl=no
3708         ol_enable_aci=no
3709         ol_enable_wrappers=no
3710
3711         ol_enable_ldbm_api=no
3712         ol_enable_ldbm_type=no
3713
3714         ol_enable_slurpd=no
3715
3716         ol_enable_rewrite=no
3717
3718 elif test $ol_enable_ldbm = no ; then
3719
3720         if test $ol_enable_ldbm_api != auto ; then
3721                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3723         fi
3724
3725         if test $ol_enable_ldbm_type != auto ; then
3726                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3728         fi
3729
3730         if test $ol_enable_modules != yes &&
3731            test $ol_enable_bdb = no &&
3732            test $ol_enable_dnssrv = no &&
3733            test $ol_enable_hdb = no &&
3734            test $ol_enable_ldap = no &&
3735            test $ol_enable_meta = no &&
3736            test $ol_enable_monitor = no &&
3737            test $ol_enable_null = no &&
3738            test $ol_enable_passwd = no &&
3739            test $ol_enable_perl = no &&
3740            test $ol_enable_relay = no &&
3741            test $ol_enable_shell = no &&
3742            test $ol_enable_sql = no ; then
3743
3744                 if test $ol_enable_slapd = yes ; then
3745                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747    { (exit 1); exit 1; }; }
3748                 else
3749                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3751                         ol_enable_slapd=no
3752                 fi
3753         fi
3754
3755         ol_enable_ldbm_api=no
3756         ol_enable_ldbm_type=no
3757
3758         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3759                 ol_enable_ldbm_api=berkeley
3760         fi
3761
3762 else
3763                 if test $ol_enable_ldbm_api = gdbm &&
3764            test $ol_enable_ldbm_type = btree ; then
3765                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767    { (exit 1); exit 1; }; }
3768         fi
3769         if test $ol_enable_ldbm_api = mdbm &&
3770            test $ol_enable_ldbm_type = btree ; then
3771                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773    { (exit 1); exit 1; }; }
3774         fi
3775         if test $ol_enable_ldbm_api = ndbm &&
3776            test $ol_enable_ldbm_type = btree ; then
3777                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779    { (exit 1); exit 1; }; }
3780         fi
3781
3782         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3783                 if test $ol_enable_ldbm_api = auto ; then
3784                         ol_enable_ldbm_api=berkeley
3785                 elif test $ol_enable_ldbm_api != berkeley ; then
3786                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788    { (exit 1); exit 1; }; }
3789                 fi
3790         fi
3791 fi
3792
3793 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3794         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 if test $ol_enable_slurpd = yes ; then
3800                 if test $ol_with_threads = no ; then
3801                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803    { (exit 1); exit 1; }; }
3804         fi
3805 fi
3806
3807 if test $ol_enable_lmpasswd = yes ; then
3808         if test $ol_with_tls = no ; then
3809                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811    { (exit 1); exit 1; }; }
3812         fi
3813 fi
3814
3815 if test $ol_enable_kbind = yes ; then
3816         if test $ol_with_kerberos = no ; then
3817                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819    { (exit 1); exit 1; }; }
3820         elif test $ol_with_kerberos = auto ; then
3821                 ol_with_kerberos=yes
3822         fi
3823
3824 elif test $ol_enable_kbind = no ; then
3825         if test $ol_with_kerberos = auto ; then
3826                 ol_with_kerberos=no
3827         elif test $ol_with_kerberos != no ; then
3828                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3830                 ol_with_kerberos=no
3831         fi
3832 fi
3833
3834 if test $ol_enable_spasswd = yes ; then
3835         if test $ol_with_cyrus_sasl = no ; then
3836                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838    { (exit 1); exit 1; }; }
3839         fi
3840         ol_with_cyrus_sasl=yes
3841 fi
3842
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3845
3846 LDAP_LIBS=
3847 LDBM_LIBS=
3848 LTHREAD_LIBS=
3849 LUTIL_LIBS=
3850
3851 SLAPD_LIBS=
3852 SLURPD_LIBS=
3853
3854 BUILD_SLAPD=no
3855 BUILD_SLURPD=no
3856
3857 BUILD_THREAD=no
3858
3859 BUILD_SLAPI=no
3860 SLAPD_SLAPI_DEPEND=
3861
3862 BUILD_BDB=no
3863 BUILD_DNSSRV=no
3864 BUILD_HDB=no
3865 BUILD_LDAP=no
3866 BUILD_LDBM=no
3867 BUILD_META=no
3868 BUILD_MONITOR=no
3869 BUILD_NULL=no
3870 BUILD_PASSWD=no
3871 BUILD_PERL=no
3872 BUILD_RELAY=no
3873 BUILD_SHELL=no
3874 BUILD_SQL=no
3875
3876 BUILD_ACCESSLOG=no
3877 BUILD_DENYOP=no
3878 BUILD_DYNGROUP=no
3879 BUILD_DYNLIST=no
3880 BUILD_LASTMOD=no
3881 BUILD_PPOLICY=no
3882 BUILD_PROXYCACHE=no
3883 BUILD_REFINT=no
3884 BUILD_RETCODE=no
3885 BUILD_RWM=no
3886 BUILD_SYNCPROV=no
3887 BUILD_TRANSLUCENT=no
3888 BUILD_UNIQUE=no
3889 BUILD_VALSORT=no
3890
3891 SLAPD_STATIC_OVERLAYS=
3892 SLAPD_DYNAMIC_OVERLAYS=
3893
3894 SLAPD_MODULES_LDFLAGS=
3895 SLAPD_MODULES_CPPFLAGS=
3896
3897 SLAPD_STATIC_BACKENDS=back-ldif
3898 SLAPD_DYNAMIC_BACKENDS=
3899
3900 SLAPD_PERL_LDFLAGS=
3901 MOD_PERL_LDFLAGS=
3902 PERL_CPPFLAGS=
3903
3904 SLAPD_SQL_LDFLAGS=
3905 SLAPD_SQL_LIBS=
3906 SLAPD_SQL_INCLUDES=
3907
3908 KRB4_LIBS=
3909 KRB5_LIBS=
3910 SASL_LIBS=
3911 TLS_LIBS=
3912 MODULES_LIBS=
3913 SLAPI_LIBS=
3914 LIBSLAPI=
3915 LIBSLAPITOOLS=
3916 AUTH_LIBS=
3917 ICU_LIBS=
3918
3919 SLAPD_SLP_LIBS=
3920 SLAPD_GMP_LIBS=
3921
3922
3923
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3926 _ACEOF
3927
3928
3929
3930
3931 ol_aix_threads=no
3932 case "$target" in
3933 *-*-aix*)       if test -z "$CC" ; then
3934                 case "$ol_with_threads" in
3935                 auto | yes |  posix) ol_aix_threads=yes ;;
3936                 esac
3937         fi
3938 ;;
3939 esac
3940
3941 if test $ol_aix_threads = yes ; then
3942         if test -z "${CC}" ; then
3943                 for ac_prog in cc_r xlc_r cc
3944 do
3945   # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_CC="$ac_prog"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969 fi
3970 fi
3971 CC=$ac_cv_prog_CC
3972 if test -n "$CC"; then
3973   echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980   test -n "$CC" && break
3981 done
3982
3983
3984                 if test "$CC" = cc ; then
3985                                                 if test $ol_with_threads != auto ; then
3986                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988    { (exit 1); exit 1; }; }
3989                         else
3990                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3992                         fi
3993                         ol_with_threads=no
3994                 fi
3995         fi
3996
3997         case ${CC} in cc_r | xlc_r)
3998                 ol_with_threads=posix
3999                 ol_cv_pthread_create=yes
4000                 ;;
4001         esac
4002 fi
4003
4004 if test -z "${CC}"; then
4005         for ac_prog in cc gcc
4006 do
4007   # Extract the first word of "$ac_prog", so it can be a program name with args.
4008 set dummy $ac_prog; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_CC+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$CC"; then
4015   ac_cv_prog_CC="$CC" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_CC="$ac_prog"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 CC=$ac_cv_prog_CC
4034 if test -n "$CC"; then
4035   echo "$as_me:$LINENO: result: $CC" >&5
4036 echo "${ECHO_T}$CC" >&6
4037 else
4038   echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042   test -n "$CC" && break
4043 done
4044 test -n "$CC" || CC="missing"
4045
4046
4047         if test "${CC}" = "missing" ; then
4048                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4049 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4050    { (exit 1); exit 1; }; }
4051         fi
4052 fi
4053
4054 if test -z "${AR}"; then
4055         for ac_prog in ar gar
4056 do
4057   # Extract the first word of "$ac_prog", so it can be a program name with args.
4058 set dummy $ac_prog; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_AR+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if test -n "$AR"; then
4065   ac_cv_prog_AR="$AR" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_exec_ext in '' $ac_executable_extensions; do
4073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074     ac_cv_prog_AR="$ac_prog"
4075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079 done
4080
4081 fi
4082 fi
4083 AR=$ac_cv_prog_AR
4084 if test -n "$AR"; then
4085   echo "$as_me:$LINENO: result: $AR" >&5
4086 echo "${ECHO_T}$AR" >&6
4087 else
4088   echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090 fi
4091
4092   test -n "$AR" && break
4093 done
4094 test -n "$AR" || AR="missing"
4095
4096
4097         if test "${AR}" = "missing" ; then
4098                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4099 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4100    { (exit 1); exit 1; }; }
4101         fi
4102 fi
4103
4104
4105
4106
4107
4108 # Check whether --enable-fast-install or --disable-fast-install was given.
4109 if test "${enable_fast_install+set}" = set; then
4110   enableval="$enable_fast_install"
4111   p=${PACKAGE-default}
4112     case $enableval in
4113     yes) enable_fast_install=yes ;;
4114     no) enable_fast_install=no ;;
4115     *)
4116       enable_fast_install=no
4117       # Look at the argument we got.  We use all the common list separators.
4118       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4119       for pkg in $enableval; do
4120         IFS="$lt_save_ifs"
4121         if test "X$pkg" = "X$p"; then
4122           enable_fast_install=yes
4123         fi
4124       done
4125       IFS="$lt_save_ifs"
4126       ;;
4127     esac
4128 else
4129   enable_fast_install=yes
4130 fi;
4131
4132 DEPDIR="${am__leading_dot}deps"
4133
4134           ac_config_commands="$ac_config_commands depfiles"
4135
4136
4137 am_make=${MAKE-make}
4138 cat > confinc << 'END'
4139 am__doit:
4140         @echo done
4141 .PHONY: am__doit
4142 END
4143 # If we don't find an include directive, just comment out the code.
4144 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4145 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4146 am__include="#"
4147 am__quote=
4148 _am_result=none
4149 # First try GNU make style include.
4150 echo "include confinc" > confmf
4151 # We grep out `Entering directory' and `Leaving directory'
4152 # messages which can occur if `w' ends up in MAKEFLAGS.
4153 # In particular we don't look at `^make:' because GNU make might
4154 # be invoked under some other name (usually "gmake"), in which
4155 # case it prints its new name instead of `make'.
4156 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4157    am__include=include
4158    am__quote=
4159    _am_result=GNU
4160 fi
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163    echo '.include "confinc"' > confmf
4164    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4165       am__include=.include
4166       am__quote="\""
4167       _am_result=BSD
4168    fi
4169 fi
4170
4171
4172 echo "$as_me:$LINENO: result: $_am_result" >&5
4173 echo "${ECHO_T}$_am_result" >&6
4174 rm -f confinc confmf
4175
4176 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4177 if test "${enable_dependency_tracking+set}" = set; then
4178   enableval="$enable_dependency_tracking"
4179
4180 fi;
4181 if test "x$enable_dependency_tracking" != xno; then
4182   am_depcomp="$ac_aux_dir/depcomp"
4183   AMDEPBACKSLASH='\'
4184 fi
4185
4186
4187 if test "x$enable_dependency_tracking" != xno; then
4188   AMDEP_TRUE=
4189   AMDEP_FALSE='#'
4190 else
4191   AMDEP_TRUE='#'
4192   AMDEP_FALSE=
4193 fi
4194
4195
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_CC+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   if test -n "$CC"; then
4211   ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_exec_ext in '' $ac_executable_extensions; do
4219   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222     break 2
4223   fi
4224 done
4225 done
4226
4227 fi
4228 fi
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231   echo "$as_me:$LINENO: result: $CC" >&5
4232 echo "${ECHO_T}$CC" >&6
4233 else
4234   echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6
4236 fi
4237
4238 fi
4239 if test -z "$ac_cv_prog_CC"; then
4240   ac_ct_CC=$CC
4241   # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$ac_ct_CC"; then
4249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_ac_ct_CC="gcc"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264
4265 fi
4266 fi
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4270 echo "${ECHO_T}$ac_ct_CC" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276   CC=$ac_ct_CC
4277 else
4278   CC="$ac_cv_prog_CC"
4279 fi
4280
4281 if test -z "$CC"; then
4282   if test -n "$ac_tool_prefix"; then
4283   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}cc; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_CC+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   if test -n "$CC"; then
4291   ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_prog_CC="${ac_tool_prefix}cc"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307 fi
4308 fi
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311   echo "$as_me:$LINENO: result: $CC" >&5
4312 echo "${ECHO_T}$CC" >&6
4313 else
4314   echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4316 fi
4317
4318 fi
4319 if test -z "$ac_cv_prog_CC"; then
4320   ac_ct_CC=$CC
4321   # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   if test -n "$ac_ct_CC"; then
4329   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_ac_ct_CC="cc"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345 fi
4346 fi
4347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4348 if test -n "$ac_ct_CC"; then
4349   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4350 echo "${ECHO_T}$ac_ct_CC" >&6
4351 else
4352   echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6
4354 fi
4355
4356   CC=$ac_ct_CC
4357 else
4358   CC="$ac_cv_prog_CC"
4359 fi
4360
4361 fi
4362 if test -z "$CC"; then
4363   # Extract the first word of "cc", so it can be a program name with args.
4364 set dummy cc; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_prog_CC+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   if test -n "$CC"; then
4371   ac_cv_prog_CC="$CC" # Let the user override the test.
4372 else
4373   ac_prog_rejected=no
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379   for ac_exec_ext in '' $ac_executable_extensions; do
4380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4382        ac_prog_rejected=yes
4383        continue
4384      fi
4385     ac_cv_prog_CC="cc"
4386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387     break 2
4388   fi
4389 done
4390 done
4391
4392 if test $ac_prog_rejected = yes; then
4393   # We found a bogon in the path, so make sure we never use it.
4394   set dummy $ac_cv_prog_CC
4395   shift
4396   if test $# != 0; then
4397     # We chose a different compiler from the bogus one.
4398     # However, it has the same basename, so the bogon will be chosen
4399     # first if we set CC to just the basename; use the full file name.
4400     shift
4401     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4402   fi
4403 fi
4404 fi
4405 fi
4406 CC=$ac_cv_prog_CC
4407 if test -n "$CC"; then
4408   echo "$as_me:$LINENO: result: $CC" >&5
4409 echo "${ECHO_T}$CC" >&6
4410 else
4411   echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4413 fi
4414
4415 fi
4416 if test -z "$CC"; then
4417   if test -n "$ac_tool_prefix"; then
4418   for ac_prog in cl
4419   do
4420     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_CC+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   if test -n "$CC"; then
4428   ac_cv_prog_CC="$CC" # Let the user override the test.
4429 else
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443
4444 fi
4445 fi
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448   echo "$as_me:$LINENO: result: $CC" >&5
4449 echo "${ECHO_T}$CC" >&6
4450 else
4451   echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6
4453 fi
4454
4455     test -n "$CC" && break
4456   done
4457 fi
4458 if test -z "$CC"; then
4459   ac_ct_CC=$CC
4460   for ac_prog in cl
4461 do
4462   # Extract the first word of "$ac_prog", so it can be a program name with args.
4463 set dummy $ac_prog; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$ac_ct_CC"; then
4470   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475   IFS=$as_save_IFS
4476   test -z "$as_dir" && as_dir=.
4477   for ac_exec_ext in '' $ac_executable_extensions; do
4478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4479     ac_cv_prog_ac_ct_CC="$ac_prog"
4480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481     break 2
4482   fi
4483 done
4484 done
4485
4486 fi
4487 fi
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4491 echo "${ECHO_T}$ac_ct_CC" >&6
4492 else
4493   echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4495 fi
4496
4497   test -n "$ac_ct_CC" && break
4498 done
4499
4500   CC=$ac_ct_CC
4501 fi
4502
4503 fi
4504
4505
4506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details." >&5
4508 echo "$as_me: error: no acceptable C compiler found in \$PATH
4509 See \`config.log' for more details." >&2;}
4510    { (exit 1); exit 1; }; }
4511
4512 # Provide some information about the compiler.
4513 echo "$as_me:$LINENO:" \
4514      "checking for C compiler version" >&5
4515 ac_compiler=`set X $ac_compile; echo $2`
4516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4517   (eval $ac_compiler --version </dev/null >&5) 2>&5
4518   ac_status=$?
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); }
4521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4522   (eval $ac_compiler -v </dev/null >&5) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }
4526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4527   (eval $ac_compiler -V </dev/null >&5) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }
4531
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538
4539 int
4540 main ()
4541 {
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 ac_clean_files_save=$ac_clean_files
4548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4549 # Try to create an executable without -o first, disregard a.out.
4550 # It will help us diagnose broken compilers, and finding out an intuition
4551 # of exeext.
4552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4556   (eval $ac_link_default) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; then
4560   # Find the output, starting from the most likely.  This scheme is
4561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4562 # resort.
4563
4564 # Be careful to initialize this variable, since it used to be cached.
4565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4566 ac_cv_exeext=
4567 # b.out is created by i960 compilers.
4568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4569 do
4570   test -f "$ac_file" || continue
4571   case $ac_file in
4572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4573         ;;
4574     conftest.$ac_ext )
4575         # This is the source file.
4576         ;;
4577     [ab].out )
4578         # We found the default executable, but exeext='' is most
4579         # certainly right.
4580         break;;
4581     *.* )
4582         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4583         # FIXME: I believe we export ac_cv_exeext for Libtool,
4584         # but it would be cool to find out if it's true.  Does anybody
4585         # maintain Libtool? --akim.
4586         export ac_cv_exeext
4587         break;;
4588     * )
4589         break;;
4590   esac
4591 done
4592 else
4593   echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: C compiler cannot create executables
4599 See \`config.log' for more details." >&2;}
4600    { (exit 77); exit 77; }; }
4601 fi
4602
4603 ac_exeext=$ac_cv_exeext
4604 echo "$as_me:$LINENO: result: $ac_file" >&5
4605 echo "${ECHO_T}$ac_file" >&6
4606
4607 # Check the compiler produces executables we can run.  If not, either
4608 # the compiler is broken, or we cross compile.
4609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4612 # If not cross compiling, check that we can run a simple program.
4613 if test "$cross_compiling" != yes; then
4614   if { ac_try='./$ac_file'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620     cross_compiling=no
4621   else
4622     if test "$cross_compiling" = maybe; then
4623         cross_compiling=yes
4624     else
4625         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4626 If you meant to cross compile, use \`--host'.
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot run C compiled programs.
4629 If you meant to cross compile, use \`--host'.
4630 See \`config.log' for more details." >&2;}
4631    { (exit 1); exit 1; }; }
4632     fi
4633   fi
4634 fi
4635 echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6
4637
4638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4639 ac_clean_files=$ac_clean_files_save
4640 # Check the compiler produces executables we can run.  If not, either
4641 # the compiler is broken, or we cross compile.
4642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4645 echo "${ECHO_T}$cross_compiling" >&6
4646
4647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650   (eval $ac_link) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; then
4654   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4655 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4656 # work properly (i.e., refer to `conftest.exe'), while it won't with
4657 # `rm'.
4658 for ac_file in conftest.exe conftest conftest.*; do
4659   test -f "$ac_file" || continue
4660   case $ac_file in
4661     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4662     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4663           export ac_cv_exeext
4664           break;;
4665     * ) break;;
4666   esac
4667 done
4668 else
4669   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4672 See \`config.log' for more details." >&2;}
4673    { (exit 1); exit 1; }; }
4674 fi
4675
4676 rm -f conftest$ac_cv_exeext
4677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4678 echo "${ECHO_T}$ac_cv_exeext" >&6
4679
4680 rm -f conftest.$ac_ext
4681 EXEEXT=$ac_cv_exeext
4682 ac_exeext=$EXEEXT
4683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4685 if test "${ac_cv_objext+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694
4695 int
4696 main ()
4697 {
4698
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.o conftest.obj
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; then
4709   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4710   case $ac_file in
4711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4712     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4713        break;;
4714   esac
4715 done
4716 else
4717   echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4721 See \`config.log' for more details." >&5
4722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4723 See \`config.log' for more details." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4730 echo "${ECHO_T}$ac_cv_objext" >&6
4731 OBJEXT=$ac_cv_objext
4732 ac_objext=$OBJEXT
4733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744
4745 int
4746 main ()
4747 {
4748 #ifndef __GNUC__
4749        choke me
4750 #endif
4751
4752   ;
4753   return 0;
4754 }
4755 _ACEOF
4756 rm -f conftest.$ac_objext
4757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758   (eval $ac_compile) 2>conftest.er1
4759   ac_status=$?
4760   grep -v '^ *+' conftest.er1 >conftest.err
4761   rm -f conftest.er1
4762   cat conftest.err >&5
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); } &&
4765          { ac_try='test -z "$ac_c_werror_flag"
4766                          || test ! -s conftest.err'
4767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768   (eval $ac_try) 2>&5
4769   ac_status=$?
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); }; } &&
4772          { ac_try='test -s conftest.$ac_objext'
4773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774   (eval $ac_try) 2>&5
4775   ac_status=$?
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); }; }; then
4778   ac_compiler_gnu=yes
4779 else
4780   echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 ac_compiler_gnu=no
4784 fi
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4787
4788 fi
4789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4791 GCC=`test $ac_compiler_gnu = yes && echo yes`
4792 ac_test_CFLAGS=${CFLAGS+set}
4793 ac_save_CFLAGS=$CFLAGS
4794 CFLAGS="-g"
4795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4797 if test "${ac_cv_prog_cc_g+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806
4807 int
4808 main ()
4809 {
4810
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4817   (eval $ac_compile) 2>conftest.er1
4818   ac_status=$?
4819   grep -v '^ *+' conftest.er1 >conftest.err
4820   rm -f conftest.er1
4821   cat conftest.err >&5
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); } &&
4824          { ac_try='test -z "$ac_c_werror_flag"
4825                          || test ! -s conftest.err'
4826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4827   (eval $ac_try) 2>&5
4828   ac_status=$?
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); }; } &&
4831          { ac_try='test -s conftest.$ac_objext'
4832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833   (eval $ac_try) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; }; then
4837   ac_cv_prog_cc_g=yes
4838 else
4839   echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_prog_cc_g=no
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845 fi
4846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4848 if test "$ac_test_CFLAGS" = set; then
4849   CFLAGS=$ac_save_CFLAGS
4850 elif test $ac_cv_prog_cc_g = yes; then
4851   if test "$GCC" = yes; then
4852     CFLAGS="-g -O2"
4853   else
4854     CFLAGS="-g"
4855   fi
4856 else
4857   if test "$GCC" = yes; then
4858     CFLAGS="-O2"
4859   else
4860     CFLAGS=
4861   fi
4862 fi
4863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   ac_cv_prog_cc_stdc=no
4869 ac_save_CC=$CC
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #include <stdarg.h>
4877 #include <stdio.h>
4878 #include <sys/types.h>
4879 #include <sys/stat.h>
4880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4881 struct buf { int x; };
4882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4883 static char *e (p, i)
4884      char **p;
4885      int i;
4886 {
4887   return p[i];
4888 }
4889 static char *f (char * (*g) (char **, int), char **p, ...)
4890 {
4891   char *s;
4892   va_list v;
4893   va_start (v,p);
4894   s = g (p, va_arg (v,int));
4895   va_end (v);
4896   return s;
4897 }
4898
4899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4900    function prototypes and stuff, but not '\xHH' hex character constants.
4901    These don't provoke an error unfortunately, instead are silently treated
4902    as 'x'.  The following induces an error, until -std1 is added to get
4903    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4904    array size at least.  It's necessary to write '\x00'==0 to get something
4905    that's true only with -std1.  */
4906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4907
4908 int test (int i, double x);
4909 struct s1 {int (*f) (int a);};
4910 struct s2 {int (*f) (double a);};
4911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4912 int argc;
4913 char **argv;
4914 int
4915 main ()
4916 {
4917 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 # Don't try gcc -ansi; that turns off useful extensions and
4923 # breaks some systems' header files.
4924 # AIX                   -qlanglvl=ansi
4925 # Ultrix and OSF/1      -std1
4926 # HP-UX 10.20 and later -Ae
4927 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4928 # SVR4                  -Xc -D__EXTENSIONS__
4929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4930 do
4931   CC="$ac_save_CC $ac_arg"
4932   rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   ac_cv_prog_cc_stdc=$ac_arg
4955 break
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 fi
4961 rm -f conftest.err conftest.$ac_objext
4962 done
4963 rm -f conftest.$ac_ext conftest.$ac_objext
4964 CC=$ac_save_CC
4965
4966 fi
4967
4968 case "x$ac_cv_prog_cc_stdc" in
4969   x|xno)
4970     echo "$as_me:$LINENO: result: none needed" >&5
4971 echo "${ECHO_T}none needed" >&6 ;;
4972   *)
4973     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4975     CC="$CC $ac_cv_prog_cc_stdc" ;;
4976 esac
4977
4978 # Some people use a C++ compiler to compile C.  Since we use `exit',
4979 # in C++ we need to declare it.  In case someone uses the same compiler
4980 # for both compiling C and C++ we need to have the C++ compiler decide
4981 # the declaration of exit, since it's the most demanding environment.
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #ifndef __cplusplus
4984   choke me
4985 #endif
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989   (eval $ac_compile) 2>conftest.er1
4990   ac_status=$?
4991   grep -v '^ *+' conftest.er1 >conftest.err
4992   rm -f conftest.er1
4993   cat conftest.err >&5
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } &&
4996          { ac_try='test -z "$ac_c_werror_flag"
4997                          || test ! -s conftest.err'
4998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999   (eval $ac_try) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   for ac_declaration in \
5010    '' \
5011    'extern "C" void std::exit (int) throw (); using std::exit;' \
5012    'extern "C" void std::exit (int); using std::exit;' \
5013    'extern "C" void exit (int) throw ();' \
5014    'extern "C" void exit (int);' \
5015    'void exit (int);'
5016 do
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 $ac_declaration
5024 #include <stdlib.h>
5025 int
5026 main ()
5027 {
5028 exit (42);
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 rm -f conftest.$ac_objext
5034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035   (eval $ac_compile) 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } &&
5042          { ac_try='test -z "$ac_c_werror_flag"
5043                          || test ! -s conftest.err'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; } &&
5049          { ac_try='test -s conftest.$ac_objext'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; }; then
5055   :
5056 else
5057   echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5059
5060 continue
5061 fi
5062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063   cat >conftest.$ac_ext <<_ACEOF
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 $ac_declaration
5070 int
5071 main ()
5072 {
5073 exit (42);
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080   (eval $ac_compile) 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } &&
5087          { ac_try='test -z "$ac_c_werror_flag"
5088                          || test ! -s conftest.err'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; } &&
5094          { ac_try='test -s conftest.$ac_objext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   break
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 fi
5106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 done
5108 rm -f conftest*
5109 if test -n "$ac_declaration"; then
5110   echo '#ifdef __cplusplus' >>confdefs.h
5111   echo $ac_declaration      >>confdefs.h
5112   echo '#endif'             >>confdefs.h
5113 fi
5114
5115 else
5116   echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 fi
5120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5121 ac_ext=c
5122 ac_cpp='$CPP $CPPFLAGS'
5123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126
5127 depcc="$CC"   am_compiler_list=
5128
5129 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5130 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5131 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5135   # We make a subdir and do the tests there.  Otherwise we can end up
5136   # making bogus files that we don't know about and never remove.  For
5137   # instance it was reported that on HP-UX the gcc test will end up
5138   # making a dummy file named `D' -- because `-MD' means `put the output
5139   # in D'.
5140   mkdir conftest.dir
5141   # Copy depcomp to subdir because otherwise we won't find it if we're
5142   # using a relative directory.
5143   cp "$am_depcomp" conftest.dir
5144   cd conftest.dir
5145   # We will build objects and dependencies in a subdirectory because
5146   # it helps to detect inapplicable dependency modes.  For instance
5147   # both Tru64's cc and ICC support -MD to output dependencies as a
5148   # side effect of compilation, but ICC will put the dependencies in
5149   # the current directory while Tru64 will put them in the object
5150   # directory.
5151   mkdir sub
5152
5153   am_cv_CC_dependencies_compiler_type=none
5154   if test "$am_compiler_list" = ""; then
5155      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5156   fi
5157   for depmode in $am_compiler_list; do
5158     # Setup a source with many dependencies, because some compilers
5159     # like to wrap large dependency lists on column 80 (with \), and
5160     # we should not choose a depcomp mode which is confused by this.
5161     #
5162     # We need to recreate these files for each test, as the compiler may
5163     # overwrite some of them when testing with obscure command lines.
5164     # This happens at least with the AIX C compiler.
5165     : > sub/conftest.c
5166     for i in 1 2 3 4 5 6; do
5167       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5168       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5169       # Solaris 8's {/usr,}/bin/sh.
5170       touch sub/conftst$i.h
5171     done
5172     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5173
5174     case $depmode in
5175     nosideeffect)
5176       # after this tag, mechanisms are not by side-effect, so they'll
5177       # only be used when explicitly requested
5178       if test "x$enable_dependency_tracking" = xyes; then
5179         continue
5180       else
5181         break
5182       fi
5183       ;;
5184     none) break ;;
5185     esac
5186     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5187     # mode.  It turns out that the SunPro C++ compiler does not properly
5188     # handle `-M -o', and we need to detect this.
5189     if depmode=$depmode \
5190        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5191        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5193          >/dev/null 2>conftest.err &&
5194        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5195        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5196        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5197       # icc doesn't choke on unknown options, it will just issue warnings
5198       # or remarks (even with -Werror).  So we grep stderr for any message
5199       # that says an option was ignored or not supported.
5200       # When given -MP, icc 7.0 and 7.1 complain thusly:
5201       #   icc: Command line warning: ignoring option '-M'; no argument required
5202       # The diagnosis changed in icc 8.0:
5203       #   icc: Command line remark: option '-MP' not supported
5204       if (grep 'ignoring option' conftest.err ||
5205           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5206         am_cv_CC_dependencies_compiler_type=$depmode
5207         break
5208       fi
5209     fi
5210   done
5211
5212   cd ..
5213   rm -rf conftest.dir
5214 else
5215   am_cv_CC_dependencies_compiler_type=none
5216 fi
5217
5218 fi
5219 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5220 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5222
5223
5224
5225 if
5226   test "x$enable_dependency_tracking" != xno \
5227   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5228   am__fastdepCC_TRUE=
5229   am__fastdepCC_FALSE='#'
5230 else
5231   am__fastdepCC_TRUE='#'
5232   am__fastdepCC_FALSE=
5233 fi
5234
5235
5236 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5237 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5238 if test "${lt_cv_path_SED+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   # Loop through the user's path and test for sed and gsed.
5242 # Then use that list of sed's as ones to test for truncation.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248   for lt_ac_prog in sed gsed; do
5249     for ac_exec_ext in '' $ac_executable_extensions; do
5250       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5251         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5252       fi
5253     done
5254   done
5255 done
5256 lt_ac_max=0
5257 lt_ac_count=0
5258 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5259 # along with /bin/sed that truncates output.
5260 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5261   test ! -f $lt_ac_sed && continue
5262   cat /dev/null > conftest.in
5263   lt_ac_count=0
5264   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5265   # Check for GNU sed and select it if it is found.
5266   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5267     lt_cv_path_SED=$lt_ac_sed
5268     break
5269   fi
5270   while true; do
5271     cat conftest.in conftest.in >conftest.tmp
5272     mv conftest.tmp conftest.in
5273     cp conftest.in conftest.nl
5274     echo >>conftest.nl
5275     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5276     cmp -s conftest.out conftest.nl || break
5277     # 10000 chars as input seems more than enough
5278     test $lt_ac_count -gt 10 && break
5279     lt_ac_count=`expr $lt_ac_count + 1`
5280     if test $lt_ac_count -gt $lt_ac_max; then
5281       lt_ac_max=$lt_ac_count
5282       lt_cv_path_SED=$lt_ac_sed
5283     fi
5284   done
5285 done
5286
5287 fi
5288
5289 SED=$lt_cv_path_SED
5290 echo "$as_me:$LINENO: result: $SED" >&5
5291 echo "${ECHO_T}$SED" >&6
5292
5293 echo "$as_me:$LINENO: checking for egrep" >&5
5294 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5295 if test "${ac_cv_prog_egrep+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5299     then ac_cv_prog_egrep='grep -E'
5300     else ac_cv_prog_egrep='egrep'
5301     fi
5302 fi
5303 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5304 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5305  EGREP=$ac_cv_prog_egrep
5306
5307
5308
5309 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5310 if test "${with_gnu_ld+set}" = set; then
5311   withval="$with_gnu_ld"
5312   test "$withval" = no || with_gnu_ld=yes
5313 else
5314   with_gnu_ld=no
5315 fi;
5316 ac_prog=ld
5317 if test "$GCC" = yes; then
5318   # Check if gcc -print-prog-name=ld gives a path.
5319   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5320 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5321   case $host in
5322   *-*-mingw*)
5323     # gcc leaves a trailing carriage return which upsets mingw
5324     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325   *)
5326     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5327   esac
5328   case $ac_prog in
5329     # Accept absolute paths.
5330     [\\/]* | ?:[\\/]*)
5331       re_direlt='/[^/][^/]*/\.\./'
5332       # Canonicalize the pathname of ld
5333       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5334       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5335         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5336       done
5337       test -z "$LD" && LD="$ac_prog"
5338       ;;
5339   "")
5340     # If it fails, then pretend we aren't using GCC.
5341     ac_prog=ld
5342     ;;
5343   *)
5344     # If it is relative, then search for the first ld in PATH.
5345     with_gnu_ld=unknown
5346     ;;
5347   esac
5348 elif test "$with_gnu_ld" = yes; then
5349   echo "$as_me:$LINENO: checking for GNU ld" >&5
5350 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5351 else
5352   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5353 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5354 fi
5355 if test "${lt_cv_path_LD+set}" = set; then
5356   echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358   if test -z "$LD"; then
5359   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5360   for ac_dir in $PATH; do
5361     IFS="$lt_save_ifs"
5362     test -z "$ac_dir" && ac_dir=.
5363     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364       lt_cv_path_LD="$ac_dir/$ac_prog"
5365       # Check to see if the program is GNU ld.  I'd rather use --version,
5366       # but apparently some variants of GNU ld only accept -v.
5367       # Break only if it was the GNU/non-GNU ld that we prefer.
5368       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369       *GNU* | *'with BFD'*)
5370         test "$with_gnu_ld" != no && break
5371         ;;
5372       *)
5373         test "$with_gnu_ld" != yes && break
5374         ;;
5375       esac
5376     fi
5377   done
5378   IFS="$lt_save_ifs"
5379 else
5380   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5381 fi
5382 fi
5383
5384 LD="$lt_cv_path_LD"
5385 if test -n "$LD"; then
5386   echo "$as_me:$LINENO: result: $LD" >&5
5387 echo "${ECHO_T}$LD" >&6
5388 else
5389   echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5391 fi
5392 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5393 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5394    { (exit 1); exit 1; }; }
5395 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5396 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5397 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401 case `$LD -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403   lt_cv_prog_gnu_ld=yes
5404   ;;
5405 *)
5406   lt_cv_prog_gnu_ld=no
5407   ;;
5408 esac
5409 fi
5410 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412 with_gnu_ld=$lt_cv_prog_gnu_ld
5413
5414
5415 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417 if test "${lt_cv_ld_reload_flag+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   lt_cv_ld_reload_flag='-r'
5421 fi
5422 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424 reload_flag=$lt_cv_ld_reload_flag
5425 case $reload_flag in
5426 "" | " "*) ;;
5427 *) reload_flag=" $reload_flag" ;;
5428 esac
5429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430 case $host_os in
5431   darwin*)
5432     if test "$GCC" = yes; then
5433       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5434     else
5435       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5436     fi
5437     ;;
5438 esac
5439
5440 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5441 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5442 if test "${lt_cv_path_NM+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   if test -n "$NM"; then
5446   # Let the user override the test.
5447   lt_cv_path_NM="$NM"
5448 else
5449   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5451     IFS="$lt_save_ifs"
5452     test -z "$ac_dir" && ac_dir=.
5453     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5454     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5455       # Check to see if the nm accepts a BSD-compat flag.
5456       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5457       #   nm: unknown option "B" ignored
5458       # Tru64's nm complains that /dev/null is an invalid object file
5459       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5460       */dev/null* | *'Invalid file or object type'*)
5461         lt_cv_path_NM="$tmp_nm -B"
5462         break
5463         ;;
5464       *)
5465         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5466         */dev/null*)
5467           lt_cv_path_NM="$tmp_nm -p"
5468           break
5469           ;;
5470         *)
5471           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5472           continue # so that we can try to find one that supports BSD flags
5473           ;;
5474         esac
5475       esac
5476     fi
5477   done
5478   IFS="$lt_save_ifs"
5479   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5480 fi
5481 fi
5482 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5483 echo "${ECHO_T}$lt_cv_path_NM" >&6
5484 NM="$lt_cv_path_NM"
5485
5486 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5487 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5488 LN_S=$as_ln_s
5489 if test "$LN_S" = "ln -s"; then
5490   echo "$as_me:$LINENO: result: yes" >&5
5491 echo "${ECHO_T}yes" >&6
5492 else
5493   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5494 echo "${ECHO_T}no, using $LN_S" >&6
5495 fi
5496
5497 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5498 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5499 if test "${lt_cv_deplibs_check_method+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   lt_cv_file_magic_cmd='$MAGIC_CMD'
5503 lt_cv_file_magic_test_file=
5504 lt_cv_deplibs_check_method='unknown'
5505 # Need to set the preceding variable on all platforms that support
5506 # interlibrary dependencies.
5507 # 'none' -- dependencies not supported.
5508 # `unknown' -- same as none, but documents that we really don't know.
5509 # 'pass_all' -- all dependencies passed with no checks.
5510 # 'test_compile' -- check by making test program.
5511 # 'file_magic [[regex]]' -- check by looking for files in library path
5512 # which responds to the $file_magic_cmd with a given extended regex.
5513 # If you have `file' or equivalent on your system and you're not sure
5514 # whether `pass_all' will *always* work, you probably want this one.
5515
5516 case $host_os in
5517 aix4* | aix5*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 beos*)
5522   lt_cv_deplibs_check_method=pass_all
5523   ;;
5524
5525 bsdi[45]*)
5526   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5527   lt_cv_file_magic_cmd='/usr/bin/file -L'
5528   lt_cv_file_magic_test_file=/shlib/libc.so
5529   ;;
5530
5531 cygwin*)
5532   # func_win32_libid is a shell function defined in ltmain.sh
5533   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5534   lt_cv_file_magic_cmd='func_win32_libid'
5535   ;;
5536
5537 mingw* | pw32*)
5538   # Base MSYS/MinGW do not provide the 'file' command needed by
5539   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5540   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5541   lt_cv_file_magic_cmd='$OBJDUMP -f'
5542   ;;
5543
5544 darwin* | rhapsody*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 freebsd* | kfreebsd*-gnu | dragonfly*)
5549   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5550     case $host_cpu in
5551     i*86 )
5552       # Not sure whether the presence of OpenBSD here was a mistake.
5553       # Let's accept both of them until this is cleared up.
5554       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5555       lt_cv_file_magic_cmd=/usr/bin/file
5556       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5557       ;;
5558     esac
5559   else
5560     lt_cv_deplibs_check_method=pass_all
5561   fi
5562   ;;
5563
5564 gnu*)
5565   lt_cv_deplibs_check_method=pass_all
5566   ;;
5567
5568 hpux10.20* | hpux11*)
5569   lt_cv_file_magic_cmd=/usr/bin/file
5570   case $host_cpu in
5571   ia64*)
5572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5573     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5574     ;;
5575   hppa*64*)
5576     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]'
5577     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5578     ;;
5579   *)
5580     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5581     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5582     ;;
5583   esac
5584   ;;
5585
5586 irix5* | irix6* | nonstopux*)
5587   case $LD in
5588   *-32|*"-32 ") libmagic=32-bit;;
5589   *-n32|*"-n32 ") libmagic=N32;;
5590   *-64|*"-64 ") libmagic=64-bit;;
5591   *) libmagic=never-match;;
5592   esac
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 # This must be Linux ELF.
5597 linux*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 netbsd*)
5602   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604   else
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606   fi
5607   ;;
5608
5609 newos6*)
5610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611   lt_cv_file_magic_cmd=/usr/bin/file
5612   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613   ;;
5614
5615 nto-qnx*)
5616   lt_cv_deplibs_check_method=unknown
5617   ;;
5618
5619 openbsd*)
5620   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622   else
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624   fi
5625   ;;
5626
5627 osf3* | osf4* | osf5*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 sco3.2v5*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 solaris*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5640   case $host_vendor in
5641   motorola)
5642     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]'
5643     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644     ;;
5645   ncr)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648   sequent)
5649     lt_cv_file_magic_cmd='/bin/file'
5650     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651     ;;
5652   sni)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655     lt_cv_file_magic_test_file=/lib/libc.so
5656     ;;
5657   siemens)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660   esac
5661   ;;
5662
5663 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5664   lt_cv_deplibs_check_method=pass_all
5665   ;;
5666 esac
5667
5668 fi
5669 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5670 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5671 file_magic_cmd=$lt_cv_file_magic_cmd
5672 deplibs_check_method=$lt_cv_deplibs_check_method
5673 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5674
5675
5676
5677
5678 # If no C compiler was specified, use CC.
5679 LTCC=${LTCC-"$CC"}
5680
5681 # Allow CC to be a program name with arguments.
5682 compiler=$CC
5683
5684
5685 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5686 if test "${enable_libtool_lock+set}" = set; then
5687   enableval="$enable_libtool_lock"
5688
5689 fi;
5690 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5691
5692 # Some flags need to be propagated to the compiler or linker for good
5693 # libtool support.
5694 case $host in
5695 ia64-*-hpux*)
5696   # Find out which ABI we are using.
5697   echo 'int i;' > conftest.$ac_ext
5698   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699   (eval $ac_compile) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; then
5703     case `/usr/bin/file conftest.$ac_objext` in
5704     *ELF-32*)
5705       HPUX_IA64_MODE="32"
5706       ;;
5707     *ELF-64*)
5708       HPUX_IA64_MODE="64"
5709       ;;
5710     esac
5711   fi
5712   rm -rf conftest*
5713   ;;
5714 *-*-irix6*)
5715   # Find out which ABI we are using.
5716   echo '#line 5716 "configure"' > conftest.$ac_ext
5717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; then
5722    if test "$lt_cv_prog_gnu_ld" = yes; then
5723     case `/usr/bin/file conftest.$ac_objext` in
5724     *32-bit*)
5725       LD="${LD-ld} -melf32bsmip"
5726       ;;
5727     *N32*)
5728       LD="${LD-ld} -melf32bmipn32"
5729       ;;
5730     *64-bit*)
5731       LD="${LD-ld} -melf64bmip"
5732       ;;
5733     esac
5734    else
5735     case `/usr/bin/file conftest.$ac_objext` in
5736     *32-bit*)
5737       LD="${LD-ld} -32"
5738       ;;
5739     *N32*)
5740       LD="${LD-ld} -n32"
5741       ;;
5742     *64-bit*)
5743       LD="${LD-ld} -64"
5744       ;;
5745     esac
5746    fi
5747   fi
5748   rm -rf conftest*
5749   ;;
5750
5751 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5752   # Find out which ABI we are using.
5753   echo 'int i;' > conftest.$ac_ext
5754   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5755   (eval $ac_compile) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; then
5759     case `/usr/bin/file conftest.o` in
5760     *32-bit*)
5761       case $host in
5762         x86_64-*linux*)
5763           LD="${LD-ld} -m elf_i386"
5764           ;;
5765         ppc64-*linux*|powerpc64-*linux*)
5766           LD="${LD-ld} -m elf32ppclinux"
5767           ;;
5768         s390x-*linux*)
5769           LD="${LD-ld} -m elf_s390"
5770           ;;
5771         sparc64-*linux*)
5772           LD="${LD-ld} -m elf32_sparc"
5773           ;;
5774       esac
5775       ;;
5776     *64-bit*)
5777       case $host in
5778         x86_64-*linux*)
5779           LD="${LD-ld} -m elf_x86_64"
5780           ;;
5781         ppc*-*linux*|powerpc*-*linux*)
5782           LD="${LD-ld} -m elf64ppc"
5783           ;;
5784         s390*-*linux*)
5785           LD="${LD-ld} -m elf64_s390"
5786           ;;
5787         sparc*-*linux*)
5788           LD="${LD-ld} -m elf64_sparc"
5789           ;;
5790       esac
5791       ;;
5792     esac
5793   fi
5794   rm -rf conftest*
5795   ;;
5796
5797 *-*-sco3.2v5*)
5798   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5799   SAVE_CFLAGS="$CFLAGS"
5800   CFLAGS="$CFLAGS -belf"
5801   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5802 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5803 if test "${lt_cv_cc_needs_belf+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_ext=c
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812      cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h.  */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h.  */
5818
5819 int
5820 main ()
5821 {
5822
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829   (eval $ac_link) 2>conftest.er1
5830   ac_status=$?
5831   grep -v '^ *+' conftest.er1 >conftest.err
5832   rm -f conftest.er1
5833   cat conftest.err >&5
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); } &&
5836          { ac_try='test -z "$ac_c_werror_flag"
5837                          || test ! -s conftest.err'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; } &&
5843          { ac_try='test -s conftest$ac_exeext'
5844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845   (eval $ac_try) 2>&5
5846   ac_status=$?
5847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848   (exit $ac_status); }; }; then
5849   lt_cv_cc_needs_belf=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854 lt_cv_cc_needs_belf=no
5855 fi
5856 rm -f conftest.err conftest.$ac_objext \
5857       conftest$ac_exeext conftest.$ac_ext
5858      ac_ext=c
5859 ac_cpp='$CPP $CPPFLAGS'
5860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
5864 fi
5865 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5866 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5867   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5868     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5869     CFLAGS="$SAVE_CFLAGS"
5870   fi
5871   ;;
5872 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5873   if test -n "$ac_tool_prefix"; then
5874   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5875 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   if test -n "$DLLTOOL"; then
5882   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887   IFS=$as_save_IFS
5888   test -z "$as_dir" && as_dir=.
5889   for ac_exec_ext in '' $ac_executable_extensions; do
5890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894   fi
5895 done
5896 done
5897
5898 fi
5899 fi
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5903 echo "${ECHO_T}$DLLTOOL" >&6
5904 else
5905   echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907 fi
5908
5909 fi
5910 if test -z "$ac_cv_prog_DLLTOOL"; then
5911   ac_ct_DLLTOOL=$DLLTOOL
5912   # Extract the first word of "dlltool", so it can be a program name with args.
5913 set dummy dlltool; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$ac_ct_DLLTOOL"; then
5920   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5937 fi
5938 fi
5939 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5940 if test -n "$ac_ct_DLLTOOL"; then
5941   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5942 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948   DLLTOOL=$ac_ct_DLLTOOL
5949 else
5950   DLLTOOL="$ac_cv_prog_DLLTOOL"
5951 fi
5952
5953   if test -n "$ac_tool_prefix"; then
5954   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5955 set dummy ${ac_tool_prefix}as; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_AS+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961   if test -n "$AS"; then
5962   ac_cv_prog_AS="$AS" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969   for ac_exec_ext in '' $ac_executable_extensions; do
5970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_AS="${ac_tool_prefix}as"
5972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976 done
5977
5978 fi
5979 fi
5980 AS=$ac_cv_prog_AS
5981 if test -n "$AS"; then
5982   echo "$as_me:$LINENO: result: $AS" >&5
5983 echo "${ECHO_T}$AS" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989 fi
5990 if test -z "$ac_cv_prog_AS"; then
5991   ac_ct_AS=$AS
5992   # Extract the first word of "as", so it can be a program name with args.
5993 set dummy as; ac_word=$2
5994 echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5996 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   if test -n "$ac_ct_AS"; then
6000   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6001 else
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH
6004 do
6005   IFS=$as_save_IFS
6006   test -z "$as_dir" && as_dir=.
6007   for ac_exec_ext in '' $ac_executable_extensions; do
6008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6009     ac_cv_prog_ac_ct_AS="as"
6010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011     break 2
6012   fi
6013 done
6014 done
6015
6016   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6017 fi
6018 fi
6019 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6020 if test -n "$ac_ct_AS"; then
6021   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6022 echo "${ECHO_T}$ac_ct_AS" >&6
6023 else
6024   echo "$as_me:$LINENO: result: no" >&5
6025 echo "${ECHO_T}no" >&6
6026 fi
6027
6028   AS=$ac_ct_AS
6029 else
6030   AS="$ac_cv_prog_AS"
6031 fi
6032
6033   if test -n "$ac_tool_prefix"; then
6034   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6036 echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   if test -n "$OBJDUMP"; then
6042   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047   IFS=$as_save_IFS
6048   test -z "$as_dir" && as_dir=.
6049   for ac_exec_ext in '' $ac_executable_extensions; do
6050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6051     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053     break 2
6054   fi
6055 done
6056 done
6057
6058 fi
6059 fi
6060 OBJDUMP=$ac_cv_prog_OBJDUMP
6061 if test -n "$OBJDUMP"; then
6062   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6063 echo "${ECHO_T}$OBJDUMP" >&6
6064 else
6065   echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6067 fi
6068
6069 fi
6070 if test -z "$ac_cv_prog_OBJDUMP"; then
6071   ac_ct_OBJDUMP=$OBJDUMP
6072   # Extract the first word of "objdump", so it can be a program name with args.
6073 set dummy objdump; ac_word=$2
6074 echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6076 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   if test -n "$ac_ct_OBJDUMP"; then
6080   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087   for ac_exec_ext in '' $ac_executable_extensions; do
6088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094 done
6095
6096   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6097 fi
6098 fi
6099 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6100 if test -n "$ac_ct_OBJDUMP"; then
6101   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6102 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6103 else
6104   echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6
6106 fi
6107
6108   OBJDUMP=$ac_ct_OBJDUMP
6109 else
6110   OBJDUMP="$ac_cv_prog_OBJDUMP"
6111 fi
6112
6113   ;;
6114
6115 esac
6116
6117 need_locks="$enable_libtool_lock"
6118
6119
6120 ac_ext=c
6121 ac_cpp='$CPP $CPPFLAGS'
6122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6125 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6126 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6127 # On Suns, sometimes $CPP names a directory.
6128 if test -n "$CPP" && test -d "$CPP"; then
6129   CPP=
6130 fi
6131 if test -z "$CPP"; then
6132   if test "${ac_cv_prog_CPP+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135       # Double quotes because CPP needs to be expanded
6136     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6137     do
6138       ac_preproc_ok=false
6139 for ac_c_preproc_warn_flag in '' yes
6140 do
6141   # Use a header file that comes with gcc, so configuring glibc
6142   # with a fresh cross-compiler works.
6143   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6144   # <limits.h> exists even on freestanding compilers.
6145   # On the NeXT, cc -E runs the code through the compiler's parser,
6146   # not just through cpp. "Syntax error" is here to catch this case.
6147   cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h.  */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h.  */
6153 #ifdef __STDC__
6154 # include <limits.h>
6155 #else
6156 # include <assert.h>
6157 #endif
6158                      Syntax error
6159 _ACEOF
6160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } >/dev/null; then
6168   if test -s conftest.err; then
6169     ac_cpp_err=$ac_c_preproc_warn_flag
6170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6171   else
6172     ac_cpp_err=
6173   fi
6174 else
6175   ac_cpp_err=yes
6176 fi
6177 if test -z "$ac_cpp_err"; then
6178   :
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183   # Broken: fails on valid input.
6184 continue
6185 fi
6186 rm -f conftest.err conftest.$ac_ext
6187
6188   # OK, works on sane cases.  Now check whether non-existent headers
6189   # can be detected and how.
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 #include <ac_nonexistent.h>
6197 _ACEOF
6198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6200   ac_status=$?
6201   grep -v '^ *+' conftest.er1 >conftest.err
6202   rm -f conftest.er1
6203   cat conftest.err >&5
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } >/dev/null; then
6206   if test -s conftest.err; then
6207     ac_cpp_err=$ac_c_preproc_warn_flag
6208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6209   else
6210     ac_cpp_err=
6211   fi
6212 else
6213   ac_cpp_err=yes
6214 fi
6215 if test -z "$ac_cpp_err"; then
6216   # Broken: success on invalid input.
6217 continue
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222   # Passes both tests.
6223 ac_preproc_ok=:
6224 break
6225 fi
6226 rm -f conftest.err conftest.$ac_ext
6227
6228 done
6229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6230 rm -f conftest.err conftest.$ac_ext
6231 if $ac_preproc_ok; then
6232   break
6233 fi
6234
6235     done
6236     ac_cv_prog_CPP=$CPP
6237
6238 fi
6239   CPP=$ac_cv_prog_CPP
6240 else
6241   ac_cv_prog_CPP=$CPP
6242 fi
6243 echo "$as_me:$LINENO: result: $CPP" >&5
6244 echo "${ECHO_T}$CPP" >&6
6245 ac_preproc_ok=false
6246 for ac_c_preproc_warn_flag in '' yes
6247 do
6248   # Use a header file that comes with gcc, so configuring glibc
6249   # with a fresh cross-compiler works.
6250   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6251   # <limits.h> exists even on freestanding compilers.
6252   # On the NeXT, cc -E runs the code through the compiler's parser,
6253   # not just through cpp. "Syntax error" is here to catch this case.
6254   cat >conftest.$ac_ext <<_ACEOF
6255 /* confdefs.h.  */
6256 _ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h.  */
6260 #ifdef __STDC__
6261 # include <limits.h>
6262 #else
6263 # include <assert.h>
6264 #endif
6265                      Syntax error
6266 _ACEOF
6267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } >/dev/null; then
6275   if test -s conftest.err; then
6276     ac_cpp_err=$ac_c_preproc_warn_flag
6277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6278   else
6279     ac_cpp_err=
6280   fi
6281 else
6282   ac_cpp_err=yes
6283 fi
6284 if test -z "$ac_cpp_err"; then
6285   :
6286 else
6287   echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6289
6290   # Broken: fails on valid input.
6291 continue
6292 fi
6293 rm -f conftest.err conftest.$ac_ext
6294
6295   # OK, works on sane cases.  Now check whether non-existent headers
6296   # can be detected and how.
6297   cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <ac_nonexistent.h>
6304 _ACEOF
6305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6307   ac_status=$?
6308   grep -v '^ *+' conftest.er1 >conftest.err
6309   rm -f conftest.er1
6310   cat conftest.err >&5
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } >/dev/null; then
6313   if test -s conftest.err; then
6314     ac_cpp_err=$ac_c_preproc_warn_flag
6315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6316   else
6317     ac_cpp_err=
6318   fi
6319 else
6320   ac_cpp_err=yes
6321 fi
6322 if test -z "$ac_cpp_err"; then
6323   # Broken: success on invalid input.
6324 continue
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329   # Passes both tests.
6330 ac_preproc_ok=:
6331 break
6332 fi
6333 rm -f conftest.err conftest.$ac_ext
6334
6335 done
6336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6337 rm -f conftest.err conftest.$ac_ext
6338 if $ac_preproc_ok; then
6339   :
6340 else
6341   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6344 See \`config.log' for more details." >&2;}
6345    { (exit 1); exit 1; }; }
6346 fi
6347
6348 ac_ext=c
6349 ac_cpp='$CPP $CPPFLAGS'
6350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353
6354
6355 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6356 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6357 if test "${ac_cv_header_stdc+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <stdlib.h>
6367 #include <stdarg.h>
6368 #include <string.h>
6369 #include <float.h>
6370
6371 int
6372 main ()
6373 {
6374
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381   (eval $ac_compile) 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -z "$ac_c_werror_flag"
6389                          || test ! -s conftest.err'
6390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391   (eval $ac_try) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; } &&
6395          { ac_try='test -s conftest.$ac_objext'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_cv_header_stdc=yes
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_cv_header_stdc=no
6407 fi
6408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6409
6410 if test $ac_cv_header_stdc = yes; then
6411   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6412   cat >conftest.$ac_ext <<_ACEOF
6413 /* confdefs.h.  */
6414 _ACEOF
6415 cat confdefs.h >>conftest.$ac_ext
6416 cat >>conftest.$ac_ext <<_ACEOF
6417 /* end confdefs.h.  */
6418 #include <string.h>
6419
6420 _ACEOF
6421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422   $EGREP "memchr" >/dev/null 2>&1; then
6423   :
6424 else
6425   ac_cv_header_stdc=no
6426 fi
6427 rm -f conftest*
6428
6429 fi
6430
6431 if test $ac_cv_header_stdc = yes; then
6432   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6433   cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h.  */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h.  */
6439 #include <stdlib.h>
6440
6441 _ACEOF
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443   $EGREP "free" >/dev/null 2>&1; then
6444   :
6445 else
6446   ac_cv_header_stdc=no
6447 fi
6448 rm -f conftest*
6449
6450 fi
6451
6452 if test $ac_cv_header_stdc = yes; then
6453   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6454   if test "$cross_compiling" = yes; then
6455   :
6456 else
6457   cat >conftest.$ac_ext <<_ACEOF
6458 /* confdefs.h.  */
6459 _ACEOF
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h.  */
6463 #include <ctype.h>
6464 #if ((' ' & 0x0FF) == 0x020)
6465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6467 #else
6468 # define ISLOWER(c) \
6469                    (('a' <= (c) && (c) <= 'i') \
6470                      || ('j' <= (c) && (c) <= 'r') \
6471                      || ('s' <= (c) && (c) <= 'z'))
6472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6473 #endif
6474
6475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6476 int
6477 main ()
6478 {
6479   int i;
6480   for (i = 0; i < 256; i++)
6481     if (XOR (islower (i), ISLOWER (i))
6482         || toupper (i) != TOUPPER (i))
6483       exit(2);
6484   exit (0);
6485 }
6486 _ACEOF
6487 rm -f conftest$ac_exeext
6488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489   (eval $ac_link) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); }; }; then
6498   :
6499 else
6500   echo "$as_me: program exited with status $ac_status" >&5
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6503
6504 ( exit $ac_status )
6505 ac_cv_header_stdc=no
6506 fi
6507 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6508 fi
6509 fi
6510 fi
6511 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6512 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6513 if test $ac_cv_header_stdc = yes; then
6514
6515 cat >>confdefs.h <<\_ACEOF
6516 #define STDC_HEADERS 1
6517 _ACEOF
6518
6519 fi
6520
6521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532                   inttypes.h stdint.h unistd.h
6533 do
6534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 $ac_includes_default
6547
6548 #include <$ac_header>
6549 _ACEOF
6550 rm -f conftest.$ac_objext
6551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552   (eval $ac_compile) 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } &&
6559          { ac_try='test -z "$ac_c_werror_flag"
6560                          || test ! -s conftest.err'
6561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562   (eval $ac_try) 2>&5
6563   ac_status=$?
6564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565   (exit $ac_status); }; } &&
6566          { ac_try='test -s conftest.$ac_objext'
6567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568   (eval $ac_try) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); }; }; then
6572   eval "$as_ac_Header=yes"
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 eval "$as_ac_Header=no"
6578 fi
6579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6582 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584   cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586 _ACEOF
6587
6588 fi
6589
6590 done
6591
6592
6593
6594 for ac_header in dlfcn.h
6595 do
6596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6598   echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601   echo $ECHO_N "(cached) $ECHO_C" >&6
6602 fi
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605 else
6606   # Is the header compilable?
6607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615 $ac_includes_default
6616 #include <$ac_header>
6617 _ACEOF
6618 rm -f conftest.$ac_objext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620   (eval $ac_compile) 2>conftest.er1
6621   ac_status=$?
6622   grep -v '^ *+' conftest.er1 >conftest.err
6623   rm -f conftest.er1
6624   cat conftest.err >&5
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } &&
6627          { ac_try='test -z "$ac_c_werror_flag"
6628                          || test ! -s conftest.err'
6629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630   (eval $ac_try) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; } &&
6634          { ac_try='test -s conftest.$ac_objext'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640   ac_header_compiler=yes
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645 ac_header_compiler=no
6646 fi
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649 echo "${ECHO_T}$ac_header_compiler" >&6
6650
6651 # Is the header present?
6652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660 #include <$ac_header>
6661 _ACEOF
6662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664   ac_status=$?
6665   grep -v '^ *+' conftest.er1 >conftest.err
6666   rm -f conftest.er1
6667   cat conftest.err >&5
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } >/dev/null; then
6670   if test -s conftest.err; then
6671     ac_cpp_err=$ac_c_preproc_warn_flag
6672     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6673   else
6674     ac_cpp_err=
6675   fi
6676 else
6677   ac_cpp_err=yes
6678 fi
6679 if test -z "$ac_cpp_err"; then
6680   ac_header_preproc=yes
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685   ac_header_preproc=no
6686 fi
6687 rm -f conftest.err conftest.$ac_ext
6688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689 echo "${ECHO_T}$ac_header_preproc" >&6
6690
6691 # So?  What about this header?
6692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6693   yes:no: )
6694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6698     ac_header_preproc=yes
6699     ;;
6700   no:yes:* )
6701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6713     (
6714       cat <<\_ASBOX
6715 ## ------------------------------------------ ##
6716 ## Report this to the AC_PACKAGE_NAME lists.  ##
6717 ## ------------------------------------------ ##
6718 _ASBOX
6719     ) |
6720       sed "s/^/$as_me: WARNING:     /" >&2
6721     ;;
6722 esac
6723 echo "$as_me:$LINENO: checking for $ac_header" >&5
6724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   eval "$as_ac_Header=\$ac_header_preproc"
6729 fi
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732
6733 fi
6734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6735   cat >>confdefs.h <<_ACEOF
6736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 _ACEOF
6738
6739 fi
6740
6741 done
6742
6743
6744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6745
6746 # find the maximum length of command line arguments
6747 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6748 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6749 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752     i=0
6753   teststring="ABCD"
6754
6755   case $build_os in
6756   msdosdjgpp*)
6757     # On DJGPP, this test can blow up pretty badly due to problems in libc
6758     # (any single argument exceeding 2000 bytes causes a buffer overrun
6759     # during glob expansion).  Even if it were fixed, the result of this
6760     # check would be larger than it should be.
6761     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6762     ;;
6763
6764   gnu*)
6765     # Under GNU Hurd, this test is not required because there is
6766     # no limit to the length of command line arguments.
6767     # Libtool will interpret -1 as no limit whatsoever
6768     lt_cv_sys_max_cmd_len=-1;
6769     ;;
6770
6771   cygwin* | mingw*)
6772     # On Win9x/ME, this test blows up -- it succeeds, but takes
6773     # about 5 minutes as the teststring grows exponentially.
6774     # Worse, since 9x/ME are not pre-emptively multitasking,
6775     # you end up with a "frozen" computer, even though with patience
6776     # the test eventually succeeds (with a max line length of 256k).
6777     # Instead, let's just punt: use the minimum linelength reported by
6778     # all of the supported platforms: 8192 (on NT/2K/XP).
6779     lt_cv_sys_max_cmd_len=8192;
6780     ;;
6781
6782   amigaos*)
6783     # On AmigaOS with pdksh, this test takes hours, literally.
6784     # So we just punt and use a minimum line length of 8192.
6785     lt_cv_sys_max_cmd_len=8192;
6786     ;;
6787
6788   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6789     # This has been around since 386BSD, at least.  Likely further.
6790     if test -x /sbin/sysctl; then
6791       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6792     elif test -x /usr/sbin/sysctl; then
6793       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6794     else
6795       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6796     fi
6797     # And add a safety zone
6798     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6799     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6800     ;;
6801   osf*)
6802     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6803     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6804     # nice to cause kernel panics so lets avoid the loop below.
6805     # First set a reasonable default.
6806     lt_cv_sys_max_cmd_len=16384
6807     #
6808     if test -x /sbin/sysconfig; then
6809       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6810         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6811       esac
6812     fi
6813     ;;
6814   *)
6815     # If test is not a shell built-in, we'll probably end up computing a
6816     # maximum length that is only half of the actual maximum length, but
6817     # we can't tell.
6818     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6819     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6820                = "XX$teststring") >/dev/null 2>&1 &&
6821             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6822             lt_cv_sys_max_cmd_len=$new_result &&
6823             test $i != 17 # 1/2 MB should be enough
6824     do
6825       i=`expr $i + 1`
6826       teststring=$teststring$teststring
6827     done
6828     teststring=
6829     # Add a significant safety factor because C++ compilers can tack on massive
6830     # amounts of additional arguments before passing them to the linker.
6831     # It appears as though 1/2 is a usable value.
6832     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6833     ;;
6834   esac
6835
6836 fi
6837
6838 if test -n $lt_cv_sys_max_cmd_len ; then
6839   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6841 else
6842   echo "$as_me:$LINENO: result: none" >&5
6843 echo "${ECHO_T}none" >&6
6844 fi
6845
6846
6847
6848
6849 # Check for command to grab the raw symbol name followed by C symbol from nm.
6850 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6851 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6852 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6853   echo $ECHO_N "(cached) $ECHO_C" >&6
6854 else
6855
6856 # These are sane defaults that work on at least a few old systems.
6857 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6858
6859 # Character class describing NM global symbol codes.
6860 symcode='[BCDEGRST]'
6861
6862 # Regexp to match symbols that can be accessed directly from C.
6863 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6864
6865 # Transform an extracted symbol line into a proper C declaration
6866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6867
6868 # Transform an extracted symbol line into symbol name and symbol address
6869 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'"
6870
6871 # Define system-specific variables.
6872 case $host_os in
6873 aix*)
6874   symcode='[BCDT]'
6875   ;;
6876 cygwin* | mingw* | pw32*)
6877   symcode='[ABCDGISTW]'
6878   ;;
6879 hpux*) # Its linker distinguishes data from code symbols
6880   if test "$host_cpu" = ia64; then
6881     symcode='[ABCDEGRST]'
6882   fi
6883   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6884   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'"
6885   ;;
6886 linux*)
6887   if test "$host_cpu" = ia64; then
6888     symcode='[ABCDGIRSTW]'
6889     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6890     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'"
6891   fi
6892   ;;
6893 irix* | nonstopux*)
6894   symcode='[BCDEGRST]'
6895   ;;
6896 osf*)
6897   symcode='[BCDEGQRST]'
6898   ;;
6899 solaris* | sysv5*)
6900   symcode='[BDRT]'
6901   ;;
6902 sysv4)
6903   symcode='[DFNSTU]'
6904   ;;
6905 esac
6906
6907 # Handle CRLF in mingw tool chain
6908 opt_cr=
6909 case $build_os in
6910 mingw*)
6911   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6912   ;;
6913 esac
6914
6915 # If we're using GNU nm, then use its standard symbol codes.
6916 case `$NM -V 2>&1` in
6917 *GNU* | *'with BFD'*)
6918   symcode='[ABCDGIRSTW]' ;;
6919 esac
6920
6921 # Try without a prefix undercore, then with it.
6922 for ac_symprfx in "" "_"; do
6923
6924   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925   symxfrm="\\1 $ac_symprfx\\2 \\2"
6926
6927   # Write the raw and C identifiers.
6928   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6929
6930   # Check to see that the pipe works correctly.
6931   pipe_works=no
6932
6933   rm -f conftest*
6934   cat > conftest.$ac_ext <<EOF
6935 #ifdef __cplusplus
6936 extern "C" {
6937 #endif
6938 char nm_test_var;
6939 void nm_test_func(){}
6940 #ifdef __cplusplus
6941 }
6942 #endif
6943 int main(){nm_test_var='a';nm_test_func();return(0);}
6944 EOF
6945
6946   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947   (eval $ac_compile) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; then
6951     # Now try to grab the symbols.
6952     nlist=conftest.nm
6953     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6954   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); } && test -s "$nlist"; then
6958       # Try sorting and uniquifying the output.
6959       if sort "$nlist" | uniq > "$nlist"T; then
6960         mv -f "$nlist"T "$nlist"
6961       else
6962         rm -f "$nlist"T
6963       fi
6964
6965       # Make sure that we snagged all the symbols we need.
6966       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6967         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6968           cat <<EOF > conftest.$ac_ext
6969 #ifdef __cplusplus
6970 extern "C" {
6971 #endif
6972
6973 EOF
6974           # Now generate the symbol file.
6975           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6976
6977           cat <<EOF >> conftest.$ac_ext
6978 #if defined (__STDC__) && __STDC__
6979 # define lt_ptr_t void *
6980 #else
6981 # define lt_ptr_t char *
6982 # define const
6983 #endif
6984
6985 /* The mapping between symbol names and symbols. */
6986 const struct {
6987   const char *name;
6988   lt_ptr_t address;
6989 }
6990 lt_preloaded_symbols[] =
6991 {
6992 EOF
6993           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6994           cat <<\EOF >> conftest.$ac_ext
6995   {0, (lt_ptr_t) 0}
6996 };
6997
6998 #ifdef __cplusplus
6999 }
7000 #endif
7001 EOF
7002           # Now try linking the two files.
7003           mv conftest.$ac_objext conftstm.$ac_objext
7004           lt_save_LIBS="$LIBS"
7005           lt_save_CFLAGS="$CFLAGS"
7006           LIBS="conftstm.$ac_objext"
7007           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7008           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7013             pipe_works=yes
7014           fi
7015           LIBS="$lt_save_LIBS"
7016           CFLAGS="$lt_save_CFLAGS"
7017         else
7018           echo "cannot find nm_test_func in $nlist" >&5
7019         fi
7020       else
7021         echo "cannot find nm_test_var in $nlist" >&5
7022       fi
7023     else
7024       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7025     fi
7026   else
7027     echo "$progname: failed program was:" >&5
7028     cat conftest.$ac_ext >&5
7029   fi
7030   rm -f conftest* conftst*
7031
7032   # Do not use the global_symbol_pipe unless it works.
7033   if test "$pipe_works" = yes; then
7034     break
7035   else
7036     lt_cv_sys_global_symbol_pipe=
7037   fi
7038 done
7039
7040 fi
7041
7042 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7043   lt_cv_sys_global_symbol_to_cdecl=
7044 fi
7045 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7046   echo "$as_me:$LINENO: result: failed" >&5
7047 echo "${ECHO_T}failed" >&6
7048 else
7049   echo "$as_me:$LINENO: result: ok" >&5
7050 echo "${ECHO_T}ok" >&6
7051 fi
7052
7053 echo "$as_me:$LINENO: checking for objdir" >&5
7054 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7055 if test "${lt_cv_objdir+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   rm -f .libs 2>/dev/null
7059 mkdir .libs 2>/dev/null
7060 if test -d .libs; then
7061   lt_cv_objdir=.libs
7062 else
7063   # MS-DOS does not allow filenames that begin with a dot.
7064   lt_cv_objdir=_libs
7065 fi
7066 rmdir .libs 2>/dev/null
7067 fi
7068 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7069 echo "${ECHO_T}$lt_cv_objdir" >&6
7070 objdir=$lt_cv_objdir
7071
7072
7073
7074
7075
7076 case $host_os in
7077 aix3*)
7078   # AIX sometimes has problems with the GCC collect2 program.  For some
7079   # reason, if we set the COLLECT_NAMES environment variable, the problems
7080   # vanish in a puff of smoke.
7081   if test "X${COLLECT_NAMES+set}" != Xset; then
7082     COLLECT_NAMES=
7083     export COLLECT_NAMES
7084   fi
7085   ;;
7086 esac
7087
7088 # Sed substitution that helps us do robust quoting.  It backslashifies
7089 # metacharacters that are still active within double-quoted strings.
7090 Xsed='sed -e 1s/^X//'
7091 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7092
7093 # Same as above, but do not quote variable references.
7094 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7095
7096 # Sed substitution to delay expansion of an escaped shell variable in a
7097 # double_quote_subst'ed string.
7098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7099
7100 # Sed substitution to avoid accidental globbing in evaled expressions
7101 no_glob_subst='s/\*/\\\*/g'
7102
7103 # Constants:
7104 rm="rm -f"
7105
7106 # Global variables:
7107 default_ofile=libtool
7108 can_build_shared=yes
7109
7110 # All known linkers require a `.a' archive for static linking (except MSVC,
7111 # which needs '.lib').
7112 libext=a
7113 ltmain="$ac_aux_dir/ltmain.sh"
7114 ofile="$default_ofile"
7115 with_gnu_ld="$lt_cv_prog_gnu_ld"
7116
7117 if test -n "$ac_tool_prefix"; then
7118   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}ar; ac_word=$2
7120 echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7122 if test "${ac_cv_prog_AR+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   if test -n "$AR"; then
7126   ac_cv_prog_AR="$AR" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131   IFS=$as_save_IFS
7132   test -z "$as_dir" && as_dir=.
7133   for ac_exec_ext in '' $ac_executable_extensions; do
7134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135     ac_cv_prog_AR="${ac_tool_prefix}ar"
7136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137     break 2
7138   fi
7139 done
7140 done
7141
7142 fi
7143 fi
7144 AR=$ac_cv_prog_AR
7145 if test -n "$AR"; then
7146   echo "$as_me:$LINENO: result: $AR" >&5
7147 echo "${ECHO_T}$AR" >&6
7148 else
7149   echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6
7151 fi
7152
7153 fi
7154 if test -z "$ac_cv_prog_AR"; then
7155   ac_ct_AR=$AR
7156   # Extract the first word of "ar", so it can be a program name with args.
7157 set dummy ar; ac_word=$2
7158 echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7160 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   if test -n "$ac_ct_AR"; then
7164   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_AR="ar"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179
7180   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7181 fi
7182 fi
7183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7184 if test -n "$ac_ct_AR"; then
7185   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7186 echo "${ECHO_T}$ac_ct_AR" >&6
7187 else
7188   echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6
7190 fi
7191
7192   AR=$ac_ct_AR
7193 else
7194   AR="$ac_cv_prog_AR"
7195 fi
7196
7197 if test -n "$ac_tool_prefix"; then
7198   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7200 echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7202 if test "${ac_cv_prog_RANLIB+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   if test -n "$RANLIB"; then
7206   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213   for ac_exec_ext in '' $ac_executable_extensions; do
7214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220 done
7221
7222 fi
7223 fi
7224 RANLIB=$ac_cv_prog_RANLIB
7225 if test -n "$RANLIB"; then
7226   echo "$as_me:$LINENO: result: $RANLIB" >&5
7227 echo "${ECHO_T}$RANLIB" >&6
7228 else
7229   echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7231 fi
7232
7233 fi
7234 if test -z "$ac_cv_prog_RANLIB"; then
7235   ac_ct_RANLIB=$RANLIB
7236   # Extract the first word of "ranlib", so it can be a program name with args.
7237 set dummy ranlib; ac_word=$2
7238 echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   if test -n "$ac_ct_RANLIB"; then
7244   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253     ac_cv_prog_ac_ct_RANLIB="ranlib"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259
7260   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7261 fi
7262 fi
7263 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7264 if test -n "$ac_ct_RANLIB"; then
7265   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7266 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7267 else
7268   echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6
7270 fi
7271
7272   RANLIB=$ac_ct_RANLIB
7273 else
7274   RANLIB="$ac_cv_prog_RANLIB"
7275 fi
7276
7277 if test -n "$ac_tool_prefix"; then
7278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}strip; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_prog_STRIP+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   if test -n "$STRIP"; then
7286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293   for ac_exec_ext in '' $ac_executable_extensions; do
7294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300 done
7301
7302 fi
7303 fi
7304 STRIP=$ac_cv_prog_STRIP
7305 if test -n "$STRIP"; then
7306   echo "$as_me:$LINENO: result: $STRIP" >&5
7307 echo "${ECHO_T}$STRIP" >&6
7308 else
7309   echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7311 fi
7312
7313 fi
7314 if test -z "$ac_cv_prog_STRIP"; then
7315   ac_ct_STRIP=$STRIP
7316   # Extract the first word of "strip", so it can be a program name with args.
7317 set dummy strip; ac_word=$2
7318 echo "$as_me:$LINENO: checking for $ac_word" >&5
7319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   if test -n "$ac_ct_STRIP"; then
7324   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331   for ac_exec_ext in '' $ac_executable_extensions; do
7332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333     ac_cv_prog_ac_ct_STRIP="strip"
7334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338 done
7339
7340   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7341 fi
7342 fi
7343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7344 if test -n "$ac_ct_STRIP"; then
7345   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7346 echo "${ECHO_T}$ac_ct_STRIP" >&6
7347 else
7348   echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350 fi
7351
7352   STRIP=$ac_ct_STRIP
7353 else
7354   STRIP="$ac_cv_prog_STRIP"
7355 fi
7356
7357
7358 old_CC="$CC"
7359 old_CFLAGS="$CFLAGS"
7360
7361 # Set sane defaults for various variables
7362 test -z "$AR" && AR=ar
7363 test -z "$AR_FLAGS" && AR_FLAGS=cru
7364 test -z "$AS" && AS=as
7365 test -z "$CC" && CC=cc
7366 test -z "$LTCC" && LTCC=$CC
7367 test -z "$DLLTOOL" && DLLTOOL=dlltool
7368 test -z "$LD" && LD=ld
7369 test -z "$LN_S" && LN_S="ln -s"
7370 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7371 test -z "$NM" && NM=nm
7372 test -z "$SED" && SED=sed
7373 test -z "$OBJDUMP" && OBJDUMP=objdump
7374 test -z "$RANLIB" && RANLIB=:
7375 test -z "$STRIP" && STRIP=:
7376 test -z "$ac_objext" && ac_objext=o
7377
7378 # Determine commands to create old-style static archives.
7379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7380 old_postinstall_cmds='chmod 644 $oldlib'
7381 old_postuninstall_cmds=
7382
7383 if test -n "$RANLIB"; then
7384   case $host_os in
7385   openbsd*)
7386     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7387     ;;
7388   *)
7389     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7390     ;;
7391   esac
7392   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7393 fi
7394
7395 for cc_temp in $compiler""; do
7396   case $cc_temp in
7397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7399     \-*) ;;
7400     *) break;;
7401   esac
7402 done
7403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7404
7405
7406 # Only perform the check for file, if the check method requires it
7407 case $deplibs_check_method in
7408 file_magic*)
7409   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7410     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7411 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7412 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   case $MAGIC_CMD in
7416 [\\/*] |  ?:[\\/]*)
7417   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418   ;;
7419 *)
7420   lt_save_MAGIC_CMD="$MAGIC_CMD"
7421   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7422   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7423   for ac_dir in $ac_dummy; do
7424     IFS="$lt_save_ifs"
7425     test -z "$ac_dir" && ac_dir=.
7426     if test -f $ac_dir/${ac_tool_prefix}file; then
7427       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7428       if test -n "$file_magic_test_file"; then
7429         case $deplibs_check_method in
7430         "file_magic "*)
7431           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7432           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7433           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7434             $EGREP "$file_magic_regex" > /dev/null; then
7435             :
7436           else
7437             cat <<EOF 1>&2
7438
7439 *** Warning: the command libtool uses to detect shared libraries,
7440 *** $file_magic_cmd, produces output that libtool cannot recognize.
7441 *** The result is that libtool may fail to recognize shared libraries
7442 *** as such.  This will affect the creation of libtool libraries that
7443 *** depend on shared libraries, but programs linked with such libtool
7444 *** libraries will work regardless of this problem.  Nevertheless, you
7445 *** may want to report the problem to your system manager and/or to
7446 *** bug-libtool@gnu.org
7447
7448 EOF
7449           fi ;;
7450         esac
7451       fi
7452       break
7453     fi
7454   done
7455   IFS="$lt_save_ifs"
7456   MAGIC_CMD="$lt_save_MAGIC_CMD"
7457   ;;
7458 esac
7459 fi
7460
7461 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7462 if test -n "$MAGIC_CMD"; then
7463   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7464 echo "${ECHO_T}$MAGIC_CMD" >&6
7465 else
7466   echo "$as_me:$LINENO: result: no" >&5
7467 echo "${ECHO_T}no" >&6
7468 fi
7469
7470 if test -z "$lt_cv_path_MAGIC_CMD"; then
7471   if test -n "$ac_tool_prefix"; then
7472     echo "$as_me:$LINENO: checking for file" >&5
7473 echo $ECHO_N "checking for file... $ECHO_C" >&6
7474 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7475   echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477   case $MAGIC_CMD in
7478 [\\/*] |  ?:[\\/]*)
7479   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7480   ;;
7481 *)
7482   lt_save_MAGIC_CMD="$MAGIC_CMD"
7483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7484   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7485   for ac_dir in $ac_dummy; do
7486     IFS="$lt_save_ifs"
7487     test -z "$ac_dir" && ac_dir=.
7488     if test -f $ac_dir/file; then
7489       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7490       if test -n "$file_magic_test_file"; then
7491         case $deplibs_check_method in
7492         "file_magic "*)
7493           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7494           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7495           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7496             $EGREP "$file_magic_regex" > /dev/null; then
7497             :
7498           else
7499             cat <<EOF 1>&2
7500
7501 *** Warning: the command libtool uses to detect shared libraries,
7502 *** $file_magic_cmd, produces output that libtool cannot recognize.
7503 *** The result is that libtool may fail to recognize shared libraries
7504 *** as such.  This will affect the creation of libtool libraries that
7505 *** depend on shared libraries, but programs linked with such libtool
7506 *** libraries will work regardless of this problem.  Nevertheless, you
7507 *** may want to report the problem to your system manager and/or to
7508 *** bug-libtool@gnu.org
7509
7510 EOF
7511           fi ;;
7512         esac
7513       fi
7514       break
7515     fi
7516   done
7517   IFS="$lt_save_ifs"
7518   MAGIC_CMD="$lt_save_MAGIC_CMD"
7519   ;;
7520 esac
7521 fi
7522
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if test -n "$MAGIC_CMD"; then
7525   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7526 echo "${ECHO_T}$MAGIC_CMD" >&6
7527 else
7528   echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6
7530 fi
7531
7532   else
7533     MAGIC_CMD=:
7534   fi
7535 fi
7536
7537   fi
7538   ;;
7539 esac
7540
7541 enable_dlopen=yes
7542 enable_win32_dll=yes
7543
7544 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7545 if test "${enable_libtool_lock+set}" = set; then
7546   enableval="$enable_libtool_lock"
7547
7548 fi;
7549 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7550
7551
7552 # Check whether --with-pic or --without-pic was given.
7553 if test "${with_pic+set}" = set; then
7554   withval="$with_pic"
7555   pic_mode="$withval"
7556 else
7557   pic_mode=default
7558 fi;
7559 test -z "$pic_mode" && pic_mode=default
7560
7561 # Use C for the default configuration in the libtool script
7562 tagname=
7563 lt_save_CC="$CC"
7564 ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570
7571 # Source file extension for C test sources.
7572 ac_ext=c
7573
7574 # Object file extension for compiled C test sources.
7575 objext=o
7576 objext=$objext
7577
7578 # Code to be used in simple compile tests
7579 lt_simple_compile_test_code="int some_variable = 0;\n"
7580
7581 # Code to be used in simple link tests
7582 lt_simple_link_test_code='int main(){return(0);}\n'
7583
7584
7585 # If no C compiler was specified, use CC.
7586 LTCC=${LTCC-"$CC"}
7587
7588 # Allow CC to be a program name with arguments.
7589 compiler=$CC
7590
7591
7592 # save warnings/boilerplate of simple test code
7593 ac_outfile=conftest.$ac_objext
7594 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7596 _lt_compiler_boilerplate=`cat conftest.err`
7597 $rm conftest*
7598
7599 ac_outfile=conftest.$ac_objext
7600 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7602 _lt_linker_boilerplate=`cat conftest.err`
7603 $rm conftest*
7604
7605
7606 #
7607 # Check for any special shared library compilation flags.
7608 #
7609 lt_prog_cc_shlib=
7610 if test "$GCC" = no; then
7611   case $host_os in
7612   sco3.2v5*)
7613     lt_prog_cc_shlib='-belf'
7614     ;;
7615   esac
7616 fi
7617 if test -n "$lt_prog_cc_shlib"; then
7618   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7619 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7620   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7621   else
7622     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7623 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7624     lt_cv_prog_cc_can_build_shared=no
7625   fi
7626 fi
7627
7628
7629 #
7630 # Check to make sure the static flag actually works.
7631 #
7632 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7633 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7634 if test "${lt_prog_compiler_static_works+set}" = set; then
7635   echo $ECHO_N "(cached) $ECHO_C" >&6
7636 else
7637   lt_prog_compiler_static_works=no
7638    save_LDFLAGS="$LDFLAGS"
7639    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7640    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7641    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7642      # The linker can only warn and ignore the option if not recognized
7643      # So say no if there are warnings
7644      if test -s conftest.err; then
7645        # Append any errors to the config.log.
7646        cat conftest.err 1>&5
7647        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7648        $SED '/^$/d' conftest.err >conftest.er2
7649        if diff conftest.exp conftest.er2 >/dev/null; then
7650          lt_prog_compiler_static_works=yes
7651        fi
7652      else
7653        lt_prog_compiler_static_works=yes
7654      fi
7655    fi
7656    $rm conftest*
7657    LDFLAGS="$save_LDFLAGS"
7658
7659 fi
7660 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7661 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7662
7663 if test x"$lt_prog_compiler_static_works" = xyes; then
7664     :
7665 else
7666     lt_prog_compiler_static=
7667 fi
7668
7669
7670
7671
7672 lt_prog_compiler_no_builtin_flag=
7673
7674 if test "$GCC" = yes; then
7675   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7676
7677
7678 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7679 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7680 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   lt_cv_prog_compiler_rtti_exceptions=no
7684   ac_outfile=conftest.$ac_objext
7685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686    lt_compiler_flag="-fno-rtti -fno-exceptions"
7687    # Insert the option either (1) after the last *FLAGS variable, or
7688    # (2) before a word containing "conftest.", or (3) at the end.
7689    # Note that $ac_compile itself does not contain backslashes and begins
7690    # with a dollar sign (not a hyphen), so the echo should work correctly.
7691    # The option is referenced via a variable to avoid confusing sed.
7692    lt_compile=`echo "$ac_compile" | $SED \
7693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695    -e 's:$: $lt_compiler_flag:'`
7696    (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697    (eval "$lt_compile" 2>conftest.err)
7698    ac_status=$?
7699    cat conftest.err >&5
7700    echo "$as_me:7700: \$? = $ac_status" >&5
7701    if (exit $ac_status) && test -s "$ac_outfile"; then
7702      # The compiler can only warn and ignore the option if not recognized
7703      # So say no if there are warnings other than the usual output.
7704      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7705      $SED '/^$/d' conftest.err >conftest.er2
7706      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7707        lt_cv_prog_compiler_rtti_exceptions=yes
7708      fi
7709    fi
7710    $rm conftest*
7711
7712 fi
7713 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7714 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7715
7716 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7717     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7718 else
7719     :
7720 fi
7721
7722 fi
7723
7724 lt_prog_compiler_wl=
7725 lt_prog_compiler_pic=
7726 lt_prog_compiler_static=
7727
7728 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7729 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7730
7731   if test "$GCC" = yes; then
7732     lt_prog_compiler_wl='-Wl,'
7733     lt_prog_compiler_static='-static'
7734
7735     case $host_os in
7736       aix*)
7737       # All AIX code is PIC.
7738       if test "$host_cpu" = ia64; then
7739         # AIX 5 now supports IA64 processor
7740         lt_prog_compiler_static='-Bstatic'
7741       fi
7742       ;;
7743
7744     amigaos*)
7745       # FIXME: we need at least 68020 code to build shared libraries, but
7746       # adding the `-m68020' flag to GCC prevents building anything better,
7747       # like `-m68040'.
7748       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7749       ;;
7750
7751     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7752       # PIC is the default for these OSes.
7753       ;;
7754
7755     mingw* | pw32* | os2*)
7756       # This hack is so that the source file can tell whether it is being
7757       # built for inclusion in a dll (and should export symbols for example).
7758       lt_prog_compiler_pic='-DDLL_EXPORT'
7759       ;;
7760
7761     darwin* | rhapsody*)
7762       # PIC is the default on this platform
7763       # Common symbols not allowed in MH_DYLIB files
7764       lt_prog_compiler_pic='-fno-common'
7765       ;;
7766
7767     msdosdjgpp*)
7768       # Just because we use GCC doesn't mean we suddenly get shared libraries
7769       # on systems that don't support them.
7770       lt_prog_compiler_can_build_shared=no
7771       enable_shared=no
7772       ;;
7773
7774     sysv4*MP*)
7775       if test -d /usr/nec; then
7776         lt_prog_compiler_pic=-Kconform_pic
7777       fi
7778       ;;
7779
7780     hpux*)
7781       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7782       # not for PA HP-UX.
7783       case $host_cpu in
7784       hppa*64*|ia64*)
7785         # +Z the default
7786         ;;
7787       *)
7788         lt_prog_compiler_pic='-fPIC'
7789         ;;
7790       esac
7791       ;;
7792
7793     *)
7794       lt_prog_compiler_pic='-fPIC'
7795       ;;
7796     esac
7797   else
7798     # PORTME Check for flag to pass linker flags through the system compiler.
7799     case $host_os in
7800     aix*)
7801       lt_prog_compiler_wl='-Wl,'
7802       if test "$host_cpu" = ia64; then
7803         # AIX 5 now supports IA64 processor
7804         lt_prog_compiler_static='-Bstatic'
7805       else
7806         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7807       fi
7808       ;;
7809       darwin*)
7810         # PIC is the default on this platform
7811         # Common symbols not allowed in MH_DYLIB files
7812        case $cc_basename in
7813          xlc*)
7814          lt_prog_compiler_pic='-qnocommon'
7815          lt_prog_compiler_wl='-Wl,'
7816          ;;
7817        esac
7818        ;;
7819
7820     mingw* | pw32* | os2*)
7821       # This hack is so that the source file can tell whether it is being
7822       # built for inclusion in a dll (and should export symbols for example).
7823       lt_prog_compiler_pic='-DDLL_EXPORT'
7824       ;;
7825
7826     hpux9* | hpux10* | hpux11*)
7827       lt_prog_compiler_wl='-Wl,'
7828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7829       # not for PA HP-UX.
7830       case $host_cpu in
7831       hppa*64*|ia64*)
7832         # +Z the default
7833         ;;
7834       *)
7835         lt_prog_compiler_pic='+Z'
7836         ;;
7837       esac
7838       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7839       lt_prog_compiler_static='${wl}-a ${wl}archive'
7840       ;;
7841
7842     irix5* | irix6* | nonstopux*)
7843       lt_prog_compiler_wl='-Wl,'
7844       # PIC (with -KPIC) is the default.
7845       lt_prog_compiler_static='-non_shared'
7846       ;;
7847
7848     newsos6)
7849       lt_prog_compiler_pic='-KPIC'
7850       lt_prog_compiler_static='-Bstatic'
7851       ;;
7852
7853     linux*)
7854       case $cc_basename in
7855       icc* | ecc*)
7856         lt_prog_compiler_wl='-Wl,'
7857         lt_prog_compiler_pic='-KPIC'
7858         lt_prog_compiler_static='-static'
7859         ;;
7860       pgcc* | pgf77* | pgf90* | pgf95*)
7861         # Portland Group compilers (*not* the Pentium gcc compiler,
7862         # which looks to be a dead project)
7863         lt_prog_compiler_wl='-Wl,'
7864         lt_prog_compiler_pic='-fpic'
7865         lt_prog_compiler_static='-Bstatic'
7866         ;;
7867       ccc*)
7868         lt_prog_compiler_wl='-Wl,'
7869         # All Alpha code is PIC.
7870         lt_prog_compiler_static='-non_shared'
7871         ;;
7872       esac
7873       ;;
7874
7875     osf3* | osf4* | osf5*)
7876       lt_prog_compiler_wl='-Wl,'
7877       # All OSF/1 code is PIC.
7878       lt_prog_compiler_static='-non_shared'
7879       ;;
7880
7881     sco3.2v5*)
7882       lt_prog_compiler_pic='-Kpic'
7883       lt_prog_compiler_static='-dn'
7884       ;;
7885
7886     solaris*)
7887       lt_prog_compiler_pic='-KPIC'
7888       lt_prog_compiler_static='-Bstatic'
7889       case $cc_basename in
7890       f77* | f90* | f95*)
7891         lt_prog_compiler_wl='-Qoption ld ';;
7892       *)
7893         lt_prog_compiler_wl='-Wl,';;
7894       esac
7895       ;;
7896
7897     sunos4*)
7898       lt_prog_compiler_wl='-Qoption ld '
7899       lt_prog_compiler_pic='-PIC'
7900       lt_prog_compiler_static='-Bstatic'
7901       ;;
7902
7903     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7904       lt_prog_compiler_wl='-Wl,'
7905       lt_prog_compiler_pic='-KPIC'
7906       lt_prog_compiler_static='-Bstatic'
7907       ;;
7908
7909     sysv4*MP*)
7910       if test -d /usr/nec ;then
7911         lt_prog_compiler_pic='-Kconform_pic'
7912         lt_prog_compiler_static='-Bstatic'
7913       fi
7914       ;;
7915
7916     unicos*)
7917       lt_prog_compiler_wl='-Wl,'
7918       lt_prog_compiler_can_build_shared=no
7919       ;;
7920
7921     uts4*)
7922       lt_prog_compiler_pic='-pic'
7923       lt_prog_compiler_static='-Bstatic'
7924       ;;
7925
7926     *)
7927       lt_prog_compiler_can_build_shared=no
7928       ;;
7929     esac
7930   fi
7931
7932 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7933 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7934
7935 #
7936 # Check to make sure the PIC flag actually works.
7937 #
7938 if test -n "$lt_prog_compiler_pic"; then
7939
7940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7941 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7942 if test "${lt_prog_compiler_pic_works+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   lt_prog_compiler_pic_works=no
7946   ac_outfile=conftest.$ac_objext
7947    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7948    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7949    # Insert the option either (1) after the last *FLAGS variable, or
7950    # (2) before a word containing "conftest.", or (3) at the end.
7951    # Note that $ac_compile itself does not contain backslashes and begins
7952    # with a dollar sign (not a hyphen), so the echo should work correctly.
7953    # The option is referenced via a variable to avoid confusing sed.
7954    lt_compile=`echo "$ac_compile" | $SED \
7955    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7956    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7957    -e 's:$: $lt_compiler_flag:'`
7958    (eval echo "\"\$as_me:7958: $lt_compile\"" >&5)
7959    (eval "$lt_compile" 2>conftest.err)
7960    ac_status=$?
7961    cat conftest.err >&5
7962    echo "$as_me:7962: \$? = $ac_status" >&5
7963    if (exit $ac_status) && test -s "$ac_outfile"; then
7964      # The compiler can only warn and ignore the option if not recognized
7965      # So say no if there are warnings other than the usual output.
7966      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7967      $SED '/^$/d' conftest.err >conftest.er2
7968      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7969        lt_prog_compiler_pic_works=yes
7970      fi
7971    fi
7972    $rm conftest*
7973
7974 fi
7975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7977
7978 if test x"$lt_prog_compiler_pic_works" = xyes; then
7979     case $lt_prog_compiler_pic in
7980      "" | " "*) ;;
7981      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7982      esac
7983 else
7984     lt_prog_compiler_pic=
7985      lt_prog_compiler_can_build_shared=no
7986 fi
7987
7988 fi
7989 case $host_os in
7990   # For platforms which do not support PIC, -DPIC is meaningless:
7991   *djgpp*)
7992     lt_prog_compiler_pic=
7993     ;;
7994   *)
7995     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7996     ;;
7997 esac
7998
7999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   lt_cv_prog_compiler_c_o=no
8005    $rm -r conftest 2>/dev/null
8006    mkdir conftest
8007    cd conftest
8008    mkdir out
8009    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8010
8011    lt_compiler_flag="-o out/conftest2.$ac_objext"
8012    # Insert the option either (1) after the last *FLAGS variable, or
8013    # (2) before a word containing "conftest.", or (3) at the end.
8014    # Note that $ac_compile itself does not contain backslashes and begins
8015    # with a dollar sign (not a hyphen), so the echo should work correctly.
8016    lt_compile=`echo "$ac_compile" | $SED \
8017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8019    -e 's:$: $lt_compiler_flag:'`
8020    (eval echo "\"\$as_me:8020: $lt_compile\"" >&5)
8021    (eval "$lt_compile" 2>out/conftest.err)
8022    ac_status=$?
8023    cat out/conftest.err >&5
8024    echo "$as_me:8024: \$? = $ac_status" >&5
8025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8026    then
8027      # The compiler can only warn and ignore the option if not recognized
8028      # So say no if there are warnings
8029      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8030      $SED '/^$/d' out/conftest.err >out/conftest.er2
8031      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8032        lt_cv_prog_compiler_c_o=yes
8033      fi
8034    fi
8035    chmod u+w . 2>&5
8036    $rm conftest*
8037    # SGI C++ compiler will create directory out/ii_files/ for
8038    # template instantiation
8039    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8040    $rm out/* && rmdir out
8041    cd ..
8042    rmdir conftest
8043    $rm conftest*
8044
8045 fi
8046 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8047 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8048
8049
8050 hard_links="nottested"
8051 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8052   # do not overwrite the value of need_locks provided by the user
8053   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8054 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8055   hard_links=yes
8056   $rm conftest*
8057   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8058   touch conftest.a
8059   ln conftest.a conftest.b 2>&5 || hard_links=no
8060   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061   echo "$as_me:$LINENO: result: $hard_links" >&5
8062 echo "${ECHO_T}$hard_links" >&6
8063   if test "$hard_links" = no; then
8064     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8065 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8066     need_locks=warn
8067   fi
8068 else
8069   need_locks=no
8070 fi
8071
8072 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8073 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8074
8075   runpath_var=
8076   allow_undefined_flag=
8077   enable_shared_with_static_runtimes=no
8078   archive_cmds=
8079   archive_expsym_cmds=
8080   old_archive_From_new_cmds=
8081   old_archive_from_expsyms_cmds=
8082   export_dynamic_flag_spec=
8083   whole_archive_flag_spec=
8084   thread_safe_flag_spec=
8085   hardcode_libdir_flag_spec=
8086   hardcode_libdir_flag_spec_ld=
8087   hardcode_libdir_separator=
8088   hardcode_direct=no
8089   hardcode_minus_L=no
8090   hardcode_shlibpath_var=unsupported
8091   link_all_deplibs=unknown
8092   hardcode_automatic=no
8093   module_cmds=
8094   module_expsym_cmds=
8095   always_export_symbols=no
8096   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8097   # include_expsyms should be a list of space-separated symbols to be *always*
8098   # included in the symbol list
8099   include_expsyms=
8100   # exclude_expsyms can be an extended regexp of symbols to exclude
8101   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103   # as well as any symbol that contains `d'.
8104   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8105   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106   # platforms (ab)use it in PIC code, but their linkers get confused if
8107   # the symbol is explicitly referenced.  Since portable code cannot
8108   # rely on this symbol name, it's probably fine to never include it in
8109   # preloaded symbol tables.
8110   extract_expsyms_cmds=
8111   # Just being paranoid about ensuring that cc_basename is set.
8112   for cc_temp in $compiler""; do
8113   case $cc_temp in
8114     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8115     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8116     \-*) ;;
8117     *) break;;
8118   esac
8119 done
8120 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8121
8122   case $host_os in
8123   cygwin* | mingw* | pw32*)
8124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8125     # When not using gcc, we currently assume that we are using
8126     # Microsoft Visual C++.
8127     if test "$GCC" != yes; then
8128       with_gnu_ld=no
8129     fi
8130     ;;
8131   openbsd*)
8132     with_gnu_ld=no
8133     ;;
8134   esac
8135
8136   ld_shlibs=yes
8137   if test "$with_gnu_ld" = yes; then
8138     # If archive_cmds runs LD, not CC, wlarc should be empty
8139     wlarc='${wl}'
8140
8141     # Set some defaults for GNU ld with shared library support. These
8142     # are reset later if shared libraries are not supported. Putting them
8143     # here allows them to be overridden if necessary.
8144     runpath_var=LD_RUN_PATH
8145     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8146     export_dynamic_flag_spec='${wl}--export-dynamic'
8147     # ancient GNU ld didn't support --whole-archive et. al.
8148     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8149         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8150       else
8151         whole_archive_flag_spec=
8152     fi
8153     supports_anon_versioning=no
8154     case `$LD -v 2>/dev/null` in
8155       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8156       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8157       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8158       *\ 2.11.*) ;; # other 2.11 versions
8159       *) supports_anon_versioning=yes ;;
8160     esac
8161
8162     # See if GNU ld supports shared libraries.
8163     case $host_os in
8164     aix3* | aix4* | aix5*)
8165       # On AIX/PPC, the GNU linker is very broken
8166       if test "$host_cpu" != ia64; then
8167         ld_shlibs=no
8168         cat <<EOF 1>&2
8169
8170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8171 *** to be unable to reliably create shared libraries on AIX.
8172 *** Therefore, libtool is disabling shared libraries support.  If you
8173 *** really care for shared libraries, you may want to modify your PATH
8174 *** so that a non-GNU linker is found, and then restart.
8175
8176 EOF
8177       fi
8178       ;;
8179
8180     amigaos*)
8181       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)'
8182       hardcode_libdir_flag_spec='-L$libdir'
8183       hardcode_minus_L=yes
8184
8185       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8186       # that the semantics of dynamic libraries on AmigaOS, at least up
8187       # to version 4, is to share data among multiple programs linked
8188       # with the same dynamic library.  Since this doesn't match the
8189       # behavior of shared libraries on other platforms, we can't use
8190       # them.
8191       ld_shlibs=no
8192       ;;
8193
8194     beos*)
8195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8196         allow_undefined_flag=unsupported
8197         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8198         # support --undefined.  This deserves some investigation.  FIXME
8199         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200       else
8201         ld_shlibs=no
8202       fi
8203       ;;
8204
8205     cygwin* | mingw* | pw32*)
8206       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8207       # as there is no search path for DLLs.
8208       hardcode_libdir_flag_spec='-L$libdir'
8209       allow_undefined_flag=unsupported
8210       always_export_symbols=no
8211       enable_shared_with_static_runtimes=yes
8212       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8213
8214       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8216         # If the export-symbols file already is a .def file (1st line
8217         # is EXPORTS), use it as is; otherwise, prepend...
8218         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8219           cp $export_symbols $output_objdir/$soname.def;
8220         else
8221           echo EXPORTS > $output_objdir/$soname.def;
8222           cat $export_symbols >> $output_objdir/$soname.def;
8223         fi~
8224         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8225       else
8226         ld_shlibs=no
8227       fi
8228       ;;
8229
8230     linux*)
8231       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8232         tmp_addflag=
8233         case $cc_basename,$host_cpu in
8234         pgcc*)                          # Portland Group C compiler
8235           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'
8236           tmp_addflag=' $pic_flag'
8237           ;;
8238         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8239           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'
8240           tmp_addflag=' $pic_flag -Mnomain' ;;
8241         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8242           tmp_addflag=' -i_dynamic' ;;
8243         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8244           tmp_addflag=' -i_dynamic -nofor_main' ;;
8245         ifc* | ifort*)                  # Intel Fortran compiler
8246           tmp_addflag=' -nofor_main' ;;
8247         esac
8248         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249
8250         if test $supports_anon_versioning = yes; then
8251           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8252   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8253   $echo "local: *; };" >> $output_objdir/$libname.ver~
8254           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8255         fi
8256       else
8257         ld_shlibs=no
8258       fi
8259       ;;
8260
8261     netbsd*)
8262       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8264         wlarc=
8265       else
8266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8268       fi
8269       ;;
8270
8271     solaris* | sysv5*)
8272       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8273         ld_shlibs=no
8274         cat <<EOF 1>&2
8275
8276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8277 *** create shared libraries on Solaris systems.  Therefore, libtool
8278 *** is disabling shared libraries support.  We urge you to upgrade GNU
8279 *** binutils to release 2.9.1 or newer.  Another option is to modify
8280 *** your PATH or compiler configuration so that the native linker is
8281 *** used, and then restart.
8282
8283 EOF
8284       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8285         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287       else
8288         ld_shlibs=no
8289       fi
8290       ;;
8291
8292     sunos4*)
8293       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8294       wlarc=
8295       hardcode_direct=yes
8296       hardcode_shlibpath_var=no
8297       ;;
8298
8299     *)
8300       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8303       else
8304         ld_shlibs=no
8305       fi
8306       ;;
8307     esac
8308
8309     if test "$ld_shlibs" = no; then
8310       runpath_var=
8311       hardcode_libdir_flag_spec=
8312       export_dynamic_flag_spec=
8313       whole_archive_flag_spec=
8314     fi
8315   else
8316     # PORTME fill in a description of your system's linker (not GNU ld)
8317     case $host_os in
8318     aix3*)
8319       allow_undefined_flag=unsupported
8320       always_export_symbols=yes
8321       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'
8322       # Note: this linker hardcodes the directories in LIBPATH if there
8323       # are no directories specified by -L.
8324       hardcode_minus_L=yes
8325       if test "$GCC" = yes && test -z "$link_static_flag"; then
8326         # Neither direct hardcoding nor static linking is supported with a
8327         # broken collect2.
8328         hardcode_direct=unsupported
8329       fi
8330       ;;
8331
8332     aix4* | aix5*)
8333       if test "$host_cpu" = ia64; then
8334         # On IA64, the linker does run time linking by default, so we don't
8335         # have to do anything special.
8336         aix_use_runtimelinking=no
8337         exp_sym_flag='-Bexport'
8338         no_entry_flag=""
8339       else
8340         # If we're using GNU nm, then we don't want the "-C" option.
8341         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8342         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8343           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'
8344         else
8345           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'
8346         fi
8347         aix_use_runtimelinking=no
8348
8349         # Test if we are trying to use run time linking or normal
8350         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8351         # need to do runtime linking.
8352         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8353           for ld_flag in $LDFLAGS; do
8354           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8355             aix_use_runtimelinking=yes
8356             break
8357           fi
8358           done
8359         esac
8360
8361         exp_sym_flag='-bexport'
8362         no_entry_flag='-bnoentry'
8363       fi
8364
8365       # When large executables or shared objects are built, AIX ld can
8366       # have problems creating the table of contents.  If linking a library
8367       # or program results in "error TOC overflow" add -mminimal-toc to
8368       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8369       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8370
8371       archive_cmds=''
8372       hardcode_direct=yes
8373       hardcode_libdir_separator=':'
8374       link_all_deplibs=yes
8375
8376       if test "$GCC" = yes; then
8377         case $host_os in aix4.[012]|aix4.[012].*)
8378         # We only want to do this on AIX 4.2 and lower, the check
8379         # below for broken collect2 doesn't work under 4.3+
8380           collect2name=`${CC} -print-prog-name=collect2`
8381           if test -f "$collect2name" && \
8382            strings "$collect2name" | grep resolve_lib_name >/dev/null
8383           then
8384           # We have reworked collect2
8385           hardcode_direct=yes
8386           else
8387           # We have old collect2
8388           hardcode_direct=unsupported
8389           # It fails to find uninstalled libraries when the uninstalled
8390           # path is not listed in the libpath.  Setting hardcode_minus_L
8391           # to unsupported forces relinking
8392           hardcode_minus_L=yes
8393           hardcode_libdir_flag_spec='-L$libdir'
8394           hardcode_libdir_separator=
8395           fi
8396         esac
8397         shared_flag='-shared'
8398         if test "$aix_use_runtimelinking" = yes; then
8399           shared_flag="$shared_flag "'${wl}-G'
8400         fi
8401       else
8402         # not using gcc
8403         if test "$host_cpu" = ia64; then
8404         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8405         # chokes on -Wl,-G. The following line is correct:
8406           shared_flag='-G'
8407         else
8408         if test "$aix_use_runtimelinking" = yes; then
8409             shared_flag='${wl}-G'
8410           else
8411             shared_flag='${wl}-bM:SRE'
8412         fi
8413         fi
8414       fi
8415
8416       # It seems that -bexpall does not export symbols beginning with
8417       # underscore (_), so it is better to generate a list of symbols to export.
8418       always_export_symbols=yes
8419       if test "$aix_use_runtimelinking" = yes; then
8420         # Warning - without using the other runtime loading flags (-brtl),
8421         # -berok will link without error, but may produce a broken library.
8422         allow_undefined_flag='-berok'
8423        # Determine the default libpath from the value encoded in an empty executable.
8424        cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 int
8432 main ()
8433 {
8434
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461
8462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8463 }'`
8464 # Check for a 64-bit object if we didn't find anything.
8465 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; }
8466 }'`; fi
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 fi
8472 rm -f conftest.err conftest.$ac_objext \
8473       conftest$ac_exeext conftest.$ac_ext
8474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8475
8476        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8477         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"
8478        else
8479         if test "$host_cpu" = ia64; then
8480           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8481           allow_undefined_flag="-z nodefs"
8482           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"
8483         else
8484          # Determine the default libpath from the value encoded in an empty executable.
8485          cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h.  */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h.  */
8491
8492 int
8493 main ()
8494 {
8495
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext conftest$ac_exeext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8502   (eval $ac_link) 2>conftest.er1
8503   ac_status=$?
8504   grep -v '^ *+' conftest.er1 >conftest.err
8505   rm -f conftest.er1
8506   cat conftest.err >&5
8507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508   (exit $ac_status); } &&
8509          { ac_try='test -z "$ac_c_werror_flag"
8510                          || test ! -s conftest.err'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest$ac_exeext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522
8523 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8524 }'`
8525 # Check for a 64-bit object if we didn't find anything.
8526 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; }
8527 }'`; fi
8528 else
8529   echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 fi
8533 rm -f conftest.err conftest.$ac_objext \
8534       conftest$ac_exeext conftest.$ac_ext
8535 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8536
8537          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8538           # Warning - without using the other run time loading flags,
8539           # -berok will link without error, but may produce a broken library.
8540           no_undefined_flag=' ${wl}-bernotok'
8541           allow_undefined_flag=' ${wl}-berok'
8542           # -bexpall does not export symbols beginning with underscore (_)
8543           always_export_symbols=yes
8544           # Exported symbols can be pulled into shared objects from archives
8545           whole_archive_flag_spec=' '
8546           archive_cmds_need_lc=yes
8547           # This is similar to how AIX traditionally builds its shared libraries.
8548           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'
8549         fi
8550       fi
8551       ;;
8552
8553     amigaos*)
8554       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)'
8555       hardcode_libdir_flag_spec='-L$libdir'
8556       hardcode_minus_L=yes
8557       # see comment about different semantics on the GNU ld section
8558       ld_shlibs=no
8559       ;;
8560
8561     bsdi[45]*)
8562       export_dynamic_flag_spec=-rdynamic
8563       ;;
8564
8565     cygwin* | mingw* | pw32*)
8566       # When not using gcc, we currently assume that we are using
8567       # Microsoft Visual C++.
8568       # hardcode_libdir_flag_spec is actually meaningless, as there is
8569       # no search path for DLLs.
8570       hardcode_libdir_flag_spec=' '
8571       allow_undefined_flag=unsupported
8572       # Tell ltmain to make .lib files, not .a files.
8573       libext=lib
8574       # Tell ltmain to make .dll files, not .so files.
8575       shrext_cmds=".dll"
8576       # FIXME: Setting linknames here is a bad hack.
8577       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8578       # The linker will automatically build a .lib file if we build a DLL.
8579       old_archive_From_new_cmds='true'
8580       # FIXME: Should let the user specify the lib program.
8581       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8582       fix_srcfile_path='`cygpath -w "$srcfile"`'
8583       enable_shared_with_static_runtimes=yes
8584       ;;
8585
8586     darwin* | rhapsody*)
8587       case $host_os in
8588         rhapsody* | darwin1.[012])
8589          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8590          ;;
8591        *) # Darwin 1.3 on
8592          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8593            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594          else
8595            case ${MACOSX_DEPLOYMENT_TARGET} in
8596              10.[012])
8597                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8598                ;;
8599              10.*)
8600                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8601                ;;
8602            esac
8603          fi
8604          ;;
8605       esac
8606       archive_cmds_need_lc=no
8607       hardcode_direct=no
8608       hardcode_automatic=yes
8609       hardcode_shlibpath_var=unsupported
8610       whole_archive_flag_spec=''
8611       link_all_deplibs=yes
8612     if test "$GCC" = yes ; then
8613         output_verbose_link_cmd='echo'
8614         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8615       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8616       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8617       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}'
8618       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}'
8619     else
8620       case $cc_basename in
8621         xlc*)
8622          output_verbose_link_cmd='echo'
8623          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8624          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8625           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8626          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}'
8627           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}'
8628           ;;
8629        *)
8630          ld_shlibs=no
8631           ;;
8632       esac
8633     fi
8634       ;;
8635
8636     dgux*)
8637       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8638       hardcode_libdir_flag_spec='-L$libdir'
8639       hardcode_shlibpath_var=no
8640       ;;
8641
8642     freebsd1*)
8643       ld_shlibs=no
8644       ;;
8645
8646     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8647     # support.  Future versions do this automatically, but an explicit c++rt0.o
8648     # does not break anything, and helps significantly (at the cost of a little
8649     # extra space).
8650     freebsd2.2*)
8651       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8652       hardcode_libdir_flag_spec='-R$libdir'
8653       hardcode_direct=yes
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8658     freebsd2*)
8659       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660       hardcode_direct=yes
8661       hardcode_minus_L=yes
8662       hardcode_shlibpath_var=no
8663       ;;
8664
8665     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8666     freebsd* | kfreebsd*-gnu | dragonfly*)
8667       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8668       hardcode_libdir_flag_spec='-R$libdir'
8669       hardcode_direct=yes
8670       hardcode_shlibpath_var=no
8671       ;;
8672
8673     hpux9*)
8674       if test "$GCC" = yes; then
8675         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'
8676       else
8677         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'
8678       fi
8679       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680       hardcode_libdir_separator=:
8681       hardcode_direct=yes
8682
8683       # hardcode_minus_L: Not really in the search PATH,
8684       # but as the default location of the library.
8685       hardcode_minus_L=yes
8686       export_dynamic_flag_spec='${wl}-E'
8687       ;;
8688
8689     hpux10* | hpux11*)
8690       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8691         case $host_cpu in
8692         hppa*64*|ia64*)
8693           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694           ;;
8695         *)
8696           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697           ;;
8698         esac
8699       else
8700         case $host_cpu in
8701         hppa*64*|ia64*)
8702           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8703           ;;
8704         *)
8705           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8706           ;;
8707         esac
8708       fi
8709       if test "$with_gnu_ld" = no; then
8710         case $host_cpu in
8711         hppa*64*)
8712           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8713           hardcode_libdir_flag_spec_ld='+b $libdir'
8714           hardcode_libdir_separator=:
8715           hardcode_direct=no
8716           hardcode_shlibpath_var=no
8717           ;;
8718         ia64*)
8719           hardcode_libdir_flag_spec='-L$libdir'
8720           hardcode_direct=no
8721           hardcode_shlibpath_var=no
8722
8723           # hardcode_minus_L: Not really in the search PATH,
8724           # but as the default location of the library.
8725           hardcode_minus_L=yes
8726           ;;
8727         *)
8728           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729           hardcode_libdir_separator=:
8730           hardcode_direct=yes
8731           export_dynamic_flag_spec='${wl}-E'
8732
8733           # hardcode_minus_L: Not really in the search PATH,
8734           # but as the default location of the library.
8735           hardcode_minus_L=yes
8736           ;;
8737         esac
8738       fi
8739       ;;
8740
8741     irix5* | irix6* | nonstopux*)
8742       if test "$GCC" = yes; then
8743         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'
8744       else
8745         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'
8746         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8747       fi
8748       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8749       hardcode_libdir_separator=:
8750       link_all_deplibs=yes
8751       ;;
8752
8753     netbsd*)
8754       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8756       else
8757         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8758       fi
8759       hardcode_libdir_flag_spec='-R$libdir'
8760       hardcode_direct=yes
8761       hardcode_shlibpath_var=no
8762       ;;
8763
8764     newsos6)
8765       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766       hardcode_direct=yes
8767       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768       hardcode_libdir_separator=:
8769       hardcode_shlibpath_var=no
8770       ;;
8771
8772     openbsd*)
8773       hardcode_direct=yes
8774       hardcode_shlibpath_var=no
8775       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8776         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8777         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8778         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8779         export_dynamic_flag_spec='${wl}-E'
8780       else
8781        case $host_os in
8782          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8783            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8784            hardcode_libdir_flag_spec='-R$libdir'
8785            ;;
8786          *)
8787            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8789            ;;
8790        esac
8791       fi
8792       ;;
8793
8794     os2*)
8795       hardcode_libdir_flag_spec='-L$libdir'
8796       hardcode_minus_L=yes
8797       allow_undefined_flag=unsupported
8798       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'
8799       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8800       ;;
8801
8802     osf3*)
8803       if test "$GCC" = yes; then
8804         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805         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'
8806       else
8807         allow_undefined_flag=' -expect_unresolved \*'
8808         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'
8809       fi
8810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811       hardcode_libdir_separator=:
8812       ;;
8813
8814     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8815       if test "$GCC" = yes; then
8816         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817         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'
8818         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819       else
8820         allow_undefined_flag=' -expect_unresolved \*'
8821         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'
8822         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823         $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'
8824
8825         # Both c and cxx compiler support -rpath directly
8826         hardcode_libdir_flag_spec='-rpath $libdir'
8827       fi
8828       hardcode_libdir_separator=:
8829       ;;
8830
8831     sco3.2v5*)
8832       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8833       hardcode_shlibpath_var=no
8834       export_dynamic_flag_spec='${wl}-Bexport'
8835       runpath_var=LD_RUN_PATH
8836       hardcode_runpath_var=yes
8837       ;;
8838
8839     solaris*)
8840       no_undefined_flag=' -z text'
8841       if test "$GCC" = yes; then
8842         wlarc='${wl}'
8843         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8845           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8846       else
8847         wlarc=''
8848         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851       fi
8852       hardcode_libdir_flag_spec='-R$libdir'
8853       hardcode_shlibpath_var=no
8854       case $host_os in
8855       solaris2.[0-5] | solaris2.[0-5].*) ;;
8856       *)
8857         # The compiler driver will combine linker options so we
8858         # cannot just pass the convience library names through
8859         # without $wl, iff we do not link with $LD.
8860         # Luckily, gcc supports the same syntax we need for Sun Studio.
8861         # Supported since Solaris 2.6 (maybe 2.5.1?)
8862         case $wlarc in
8863         '')
8864           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8865         *)
8866           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' ;;
8867         esac ;;
8868       esac
8869       link_all_deplibs=yes
8870       ;;
8871
8872     sunos4*)
8873       if test "x$host_vendor" = xsequent; then
8874         # Use $CC to link under sequent, because it throws in some extra .o
8875         # files that make .init and .fini sections work.
8876         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8877       else
8878         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8879       fi
8880       hardcode_libdir_flag_spec='-L$libdir'
8881       hardcode_direct=yes
8882       hardcode_minus_L=yes
8883       hardcode_shlibpath_var=no
8884       ;;
8885
8886     sysv4)
8887       case $host_vendor in
8888         sni)
8889           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890           hardcode_direct=yes # is this really true???
8891         ;;
8892         siemens)
8893           ## LD is ld it makes a PLAMLIB
8894           ## CC just makes a GrossModule.
8895           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8896           reload_cmds='$CC -r -o $output$reload_objs'
8897           hardcode_direct=no
8898         ;;
8899         motorola)
8900           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8902         ;;
8903       esac
8904       runpath_var='LD_RUN_PATH'
8905       hardcode_shlibpath_var=no
8906       ;;
8907
8908     sysv4.3*)
8909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8910       hardcode_shlibpath_var=no
8911       export_dynamic_flag_spec='-Bexport'
8912       ;;
8913
8914     sysv4*MP*)
8915       if test -d /usr/nec; then
8916         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917         hardcode_shlibpath_var=no
8918         runpath_var=LD_RUN_PATH
8919         hardcode_runpath_var=yes
8920         ld_shlibs=yes
8921       fi
8922       ;;
8923
8924     sysv4.2uw2*)
8925       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8926       hardcode_direct=yes
8927       hardcode_minus_L=no
8928       hardcode_shlibpath_var=no
8929       hardcode_runpath_var=yes
8930       runpath_var=LD_RUN_PATH
8931       ;;
8932
8933    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8934       no_undefined_flag='${wl}-z ${wl}text'
8935       if test "$GCC" = yes; then
8936         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8937       else
8938         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8939       fi
8940       runpath_var='LD_RUN_PATH'
8941       hardcode_shlibpath_var=no
8942       ;;
8943
8944     sysv5*)
8945       no_undefined_flag=' -z text'
8946       # $CC -shared without GNU ld will not create a library from C++
8947       # object files and a static libstdc++, better avoid it by now
8948       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8950                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8951       hardcode_libdir_flag_spec=
8952       hardcode_shlibpath_var=no
8953       runpath_var='LD_RUN_PATH'
8954       ;;
8955
8956     uts4*)
8957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958       hardcode_libdir_flag_spec='-L$libdir'
8959       hardcode_shlibpath_var=no
8960       ;;
8961
8962     *)
8963       ld_shlibs=no
8964       ;;
8965     esac
8966   fi
8967
8968 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 echo "${ECHO_T}$ld_shlibs" >&6
8970 test "$ld_shlibs" = no && can_build_shared=no
8971
8972 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8973 if test "$GCC" = yes; then
8974   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8975 fi
8976
8977 #
8978 # Do we need to explicitly link libc?
8979 #
8980 case "x$archive_cmds_need_lc" in
8981 x|xyes)
8982   # Assume -lc should be added
8983   archive_cmds_need_lc=yes
8984
8985   if test "$enable_shared" = yes && test "$GCC" = yes; then
8986     case $archive_cmds in
8987     *'~'*)
8988       # FIXME: we may have to deal with multi-command sequences.
8989       ;;
8990     '$CC '*)
8991       # Test whether the compiler implicitly links with -lc since on some
8992       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8993       # to ld, don't add -lc before -lgcc.
8994       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8995 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8996       $rm conftest*
8997       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8998
8999       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>&5
9001   ac_status=$?
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } 2>conftest.err; then
9004         soname=conftest
9005         lib=conftest
9006         libobjs=conftest.$ac_objext
9007         deplibs=
9008         wl=$lt_prog_compiler_wl
9009         compiler_flags=-v
9010         linker_flags=-v
9011         verstring=
9012         output_objdir=.
9013         libname=conftest
9014         lt_save_allow_undefined_flag=$allow_undefined_flag
9015         allow_undefined_flag=
9016         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9017   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); }
9021         then
9022           archive_cmds_need_lc=no
9023         else
9024           archive_cmds_need_lc=yes
9025         fi
9026         allow_undefined_flag=$lt_save_allow_undefined_flag
9027       else
9028         cat conftest.err 1>&5
9029       fi
9030       $rm conftest*
9031       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9032 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9033       ;;
9034     esac
9035   fi
9036   ;;
9037 esac
9038
9039 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9040 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9041 library_names_spec=
9042 libname_spec='lib$name'
9043 soname_spec=
9044 shrext_cmds=".so"
9045 postinstall_cmds=
9046 postuninstall_cmds=
9047 finish_cmds=
9048 finish_eval=
9049 shlibpath_var=
9050 shlibpath_overrides_runpath=unknown
9051 version_type=none
9052 dynamic_linker="$host_os ld.so"
9053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9054 if test "$GCC" = yes; then
9055   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9057     # if the path contains ";" then we assume it to be the separator
9058     # otherwise default to the standard path separator (i.e. ":") - it is
9059     # assumed that no part of a normal pathname contains ";" but that should
9060     # okay in the real world where ";" in dirpaths is itself problematic.
9061     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062   else
9063     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064   fi
9065 else
9066   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9067 fi
9068 need_lib_prefix=unknown
9069 hardcode_into_libs=no
9070
9071 # when you set need_version to no, make sure it does not cause -set_version
9072 # flags to be left without arguments
9073 need_version=unknown
9074
9075 case $host_os in
9076 aix3*)
9077   version_type=linux
9078   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9079   shlibpath_var=LIBPATH
9080
9081   # AIX 3 has no versioning support, so we append a major version to the name.
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   ;;
9084
9085 aix4* | aix5*)
9086   version_type=linux
9087   need_lib_prefix=no
9088   need_version=no
9089   hardcode_into_libs=yes
9090   if test "$host_cpu" = ia64; then
9091     # AIX 5 supports IA64
9092     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9093     shlibpath_var=LD_LIBRARY_PATH
9094   else
9095     # With GCC up to 2.95.x, collect2 would create an import file
9096     # for dependence libraries.  The import file would start with
9097     # the line `#! .'.  This would cause the generated library to
9098     # depend on `.', always an invalid library.  This was fixed in
9099     # development snapshots of GCC prior to 3.0.
9100     case $host_os in
9101       aix4 | aix4.[01] | aix4.[01].*)
9102       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9103            echo ' yes '
9104            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9105         :
9106       else
9107         can_build_shared=no
9108       fi
9109       ;;
9110     esac
9111     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9112     # soname into executable. Probably we can add versioning support to
9113     # collect2, so additional links can be useful in future.
9114     if test "$aix_use_runtimelinking" = yes; then
9115       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9116       # instead of lib<name>.a to let people know that these are not
9117       # typical AIX shared libraries.
9118       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9119     else
9120       # We preserve .a as extension for shared libraries through AIX4.2
9121       # and later when we are not doing run time linking.
9122       library_names_spec='${libname}${release}.a $libname.a'
9123       soname_spec='${libname}${release}${shared_ext}$major'
9124     fi
9125     shlibpath_var=LIBPATH
9126   fi
9127   ;;
9128
9129 amigaos*)
9130   library_names_spec='$libname.ixlibrary $libname.a'
9131   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9132   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'
9133   ;;
9134
9135 beos*)
9136   library_names_spec='${libname}${shared_ext}'
9137   dynamic_linker="$host_os ld.so"
9138   shlibpath_var=LIBRARY_PATH
9139   ;;
9140
9141 bsdi[45]*)
9142   version_type=linux
9143   need_version=no
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145   soname_spec='${libname}${release}${shared_ext}$major'
9146   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9147   shlibpath_var=LD_LIBRARY_PATH
9148   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9149   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9150   # the default ld.so.conf also contains /usr/contrib/lib and
9151   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9152   # libtool to hard-code these into programs
9153   ;;
9154
9155 cygwin* | mingw* | pw32*)
9156   version_type=windows
9157   shrext_cmds=".dll"
9158   need_version=no
9159   need_lib_prefix=no
9160
9161   case $GCC,$host_os in
9162   yes,cygwin* | yes,mingw* | yes,pw32*)
9163     library_names_spec='$libname.dll.a'
9164     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9165     postinstall_cmds='base_file=`basename \${file}`~
9166       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9167       dldir=$destdir/`dirname \$dlpath`~
9168       test -d \$dldir || mkdir -p \$dldir~
9169       $install_prog $dir/$dlname \$dldir/$dlname~
9170       chmod a+x \$dldir/$dlname'
9171     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9172       dlpath=$dir/\$dldll~
9173        $rm \$dlpath'
9174     shlibpath_overrides_runpath=yes
9175
9176     case $host_os in
9177     cygwin*)
9178       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9179       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9181       ;;
9182     mingw*)
9183       # MinGW DLLs use traditional 'lib' prefix
9184       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9185       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9187         # It is most probably a Windows format PATH printed by
9188         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9189         # path with ; separators, and with drive letters. We can handle the
9190         # drive letters (cygwin fileutils understands them), so leave them,
9191         # especially as we might pass files found there to a mingw objdump,
9192         # which wouldn't understand a cygwinified path. Ahh.
9193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9194       else
9195         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9196       fi
9197       ;;
9198     pw32*)
9199       # pw32 DLLs use 'pw' prefix rather than 'lib'
9200       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201       ;;
9202     esac
9203     ;;
9204
9205   *)
9206     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9207     ;;
9208   esac
9209   dynamic_linker='Win32 ld.exe'
9210   # FIXME: first we should search . and the directory the executable is in
9211   shlibpath_var=PATH
9212   ;;
9213
9214 darwin* | rhapsody*)
9215   dynamic_linker="$host_os dyld"
9216   version_type=darwin
9217   need_lib_prefix=no
9218   need_version=no
9219   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9220   soname_spec='${libname}${release}${major}$shared_ext'
9221   shlibpath_overrides_runpath=yes
9222   shlibpath_var=DYLD_LIBRARY_PATH
9223   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9224   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9225   if test "$GCC" = yes; then
9226     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"`
9227   else
9228     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9229   fi
9230   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9231   ;;
9232
9233 dgux*)
9234   version_type=linux
9235   need_lib_prefix=no
9236   need_version=no
9237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9238   soname_spec='${libname}${release}${shared_ext}$major'
9239   shlibpath_var=LD_LIBRARY_PATH
9240   ;;
9241
9242 freebsd1*)
9243   dynamic_linker=no
9244   ;;
9245
9246 kfreebsd*-gnu)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   shlibpath_overrides_runpath=no
9254   hardcode_into_libs=yes
9255   dynamic_linker='GNU ld.so'
9256   ;;
9257
9258 freebsd* | dragonfly*)
9259   # DragonFly does not have aout.  When/if they implement a new
9260   # versioning mechanism, adjust this.
9261   if test -x /usr/bin/objformat; then
9262     objformat=`/usr/bin/objformat`
9263   else
9264     case $host_os in
9265     freebsd[123]*) objformat=aout ;;
9266     *) objformat=elf ;;
9267     esac
9268   fi
9269   version_type=freebsd-$objformat
9270   case $version_type in
9271     freebsd-elf*)
9272       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9273       need_version=no
9274       need_lib_prefix=no
9275       ;;
9276     freebsd-*)
9277       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9278       need_version=yes
9279       ;;
9280   esac
9281   shlibpath_var=LD_LIBRARY_PATH
9282   case $host_os in
9283   freebsd2*)
9284     shlibpath_overrides_runpath=yes
9285     ;;
9286   freebsd3.[01]* | freebsdelf3.[01]*)
9287     shlibpath_overrides_runpath=yes
9288     hardcode_into_libs=yes
9289     ;;
9290   *) # from 3.2 on
9291     shlibpath_overrides_runpath=no
9292     hardcode_into_libs=yes
9293     ;;
9294   esac
9295   ;;
9296
9297 gnu*)
9298   version_type=linux
9299   need_lib_prefix=no
9300   need_version=no
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9302   soname_spec='${libname}${release}${shared_ext}$major'
9303   shlibpath_var=LD_LIBRARY_PATH
9304   hardcode_into_libs=yes
9305   ;;
9306
9307 hpux9* | hpux10* | hpux11*)
9308   # Give a soname corresponding to the major version so that dld.sl refuses to
9309   # link against other versions.
9310   version_type=sunos
9311   need_lib_prefix=no
9312   need_version=no
9313   case $host_cpu in
9314   ia64*)
9315     shrext_cmds='.so'
9316     hardcode_into_libs=yes
9317     dynamic_linker="$host_os dld.so"
9318     shlibpath_var=LD_LIBRARY_PATH
9319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321     soname_spec='${libname}${release}${shared_ext}$major'
9322     if test "X$HPUX_IA64_MODE" = X32; then
9323       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9324     else
9325       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9326     fi
9327     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9328     ;;
9329    hppa*64*)
9330      shrext_cmds='.sl'
9331      hardcode_into_libs=yes
9332      dynamic_linker="$host_os dld.sl"
9333      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9334      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336      soname_spec='${libname}${release}${shared_ext}$major'
9337      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9338      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9339      ;;
9340    *)
9341     shrext_cmds='.sl'
9342     dynamic_linker="$host_os dld.sl"
9343     shlibpath_var=SHLIB_PATH
9344     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346     soname_spec='${libname}${release}${shared_ext}$major'
9347     ;;
9348   esac
9349   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9350   postinstall_cmds='chmod 555 $lib'
9351   ;;
9352
9353 irix5* | irix6* | nonstopux*)
9354   case $host_os in
9355     nonstopux*) version_type=nonstopux ;;
9356     *)
9357         if test "$lt_cv_prog_gnu_ld" = yes; then
9358                 version_type=linux
9359         else
9360                 version_type=irix
9361         fi ;;
9362   esac
9363   need_lib_prefix=no
9364   need_version=no
9365   soname_spec='${libname}${release}${shared_ext}$major'
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9367   case $host_os in
9368   irix5* | nonstopux*)
9369     libsuff= shlibsuff=
9370     ;;
9371   *)
9372     case $LD in # libtool.m4 will add one of these switches to LD
9373     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9374       libsuff= shlibsuff= libmagic=32-bit;;
9375     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9376       libsuff=32 shlibsuff=N32 libmagic=N32;;
9377     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9378       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9379     *) libsuff= shlibsuff= libmagic=never-match;;
9380     esac
9381     ;;
9382   esac
9383   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9384   shlibpath_overrides_runpath=no
9385   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9386   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9387   hardcode_into_libs=yes
9388   ;;
9389
9390 # No shared lib support for Linux oldld, aout, or coff.
9391 linux*oldld* | linux*aout* | linux*coff*)
9392   dynamic_linker=no
9393   ;;
9394
9395 # This must be Linux ELF.
9396 linux*)
9397   version_type=linux
9398   need_lib_prefix=no
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   shlibpath_overrides_runpath=no
9405   # This implies no fast_install, which is unacceptable.
9406   # Some rework will be needed to allow for fast_install
9407   # before this can be enabled.
9408   hardcode_into_libs=yes
9409
9410   # Append ld.so.conf contents to the search path
9411   if test -f /etc/ld.so.conf; then
9412     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' ' '`
9413     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9414   fi
9415
9416   # We used to test for /lib/ld.so.1 and disable shared libraries on
9417   # powerpc, because MkLinux only supported shared libraries with the
9418   # GNU dynamic linker.  Since this was broken with cross compilers,
9419   # most powerpc-linux boxes support dynamic linking these days and
9420   # people can always --disable-shared, the test was removed, and we
9421   # assume the GNU/Linux dynamic linker is in use.
9422   dynamic_linker='GNU/Linux ld.so'
9423   ;;
9424
9425 knetbsd*-gnu)
9426   version_type=linux
9427   need_lib_prefix=no
9428   need_version=no
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430   soname_spec='${libname}${release}${shared_ext}$major'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   shlibpath_overrides_runpath=no
9433   hardcode_into_libs=yes
9434   dynamic_linker='GNU ld.so'
9435   ;;
9436
9437 netbsd*)
9438   version_type=sunos
9439   need_lib_prefix=no
9440   need_version=no
9441   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9443     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9444     dynamic_linker='NetBSD (a.out) ld.so'
9445   else
9446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447     soname_spec='${libname}${release}${shared_ext}$major'
9448     dynamic_linker='NetBSD ld.elf_so'
9449   fi
9450   shlibpath_var=LD_LIBRARY_PATH
9451   shlibpath_overrides_runpath=yes
9452   hardcode_into_libs=yes
9453   ;;
9454
9455 newsos6)
9456   version_type=linux
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=yes
9460   ;;
9461
9462 nto-qnx*)
9463   version_type=linux
9464   need_lib_prefix=no
9465   need_version=no
9466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467   soname_spec='${libname}${release}${shared_ext}$major'
9468   shlibpath_var=LD_LIBRARY_PATH
9469   shlibpath_overrides_runpath=yes
9470   ;;
9471
9472 openbsd*)
9473   version_type=sunos
9474   need_lib_prefix=no
9475   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9476   case $host_os in
9477     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9478     *)                         need_version=no  ;;
9479   esac
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9484     case $host_os in
9485       openbsd2.[89] | openbsd2.[89].*)
9486         shlibpath_overrides_runpath=no
9487         ;;
9488       *)
9489         shlibpath_overrides_runpath=yes
9490         ;;
9491       esac
9492   else
9493     shlibpath_overrides_runpath=yes
9494   fi
9495   ;;
9496
9497 os2*)
9498   libname_spec='$name'
9499   shrext_cmds=".dll"
9500   need_lib_prefix=no
9501   library_names_spec='$libname${shared_ext} $libname.a'
9502   dynamic_linker='OS/2 ld.exe'
9503   shlibpath_var=LIBPATH
9504   ;;
9505
9506 osf3* | osf4* | osf5*)
9507   version_type=osf
9508   need_lib_prefix=no
9509   need_version=no
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9514   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9515   ;;
9516
9517 sco3.2v5*)
9518   version_type=osf
9519   soname_spec='${libname}${release}${shared_ext}$major'
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   ;;
9523
9524 solaris*)
9525   version_type=linux
9526   need_lib_prefix=no
9527   need_version=no
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529   soname_spec='${libname}${release}${shared_ext}$major'
9530   shlibpath_var=LD_LIBRARY_PATH
9531   shlibpath_overrides_runpath=yes
9532   hardcode_into_libs=yes
9533   # ldd complains unless libraries are executable
9534   postinstall_cmds='chmod +x $lib'
9535   ;;
9536
9537 sunos4*)
9538   version_type=sunos
9539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9541   shlibpath_var=LD_LIBRARY_PATH
9542   shlibpath_overrides_runpath=yes
9543   if test "$with_gnu_ld" = yes; then
9544     need_lib_prefix=no
9545   fi
9546   need_version=yes
9547   ;;
9548
9549 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9550   version_type=linux
9551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552   soname_spec='${libname}${release}${shared_ext}$major'
9553   shlibpath_var=LD_LIBRARY_PATH
9554   case $host_vendor in
9555     sni)
9556       shlibpath_overrides_runpath=no
9557       need_lib_prefix=no
9558       export_dynamic_flag_spec='${wl}-Blargedynsym'
9559       runpath_var=LD_RUN_PATH
9560       ;;
9561     siemens)
9562       need_lib_prefix=no
9563       ;;
9564     motorola)
9565       need_lib_prefix=no
9566       need_version=no
9567       shlibpath_overrides_runpath=no
9568       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9569       ;;
9570   esac
9571   ;;
9572
9573 sysv4*MP*)
9574   if test -d /usr/nec ;then
9575     version_type=linux
9576     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9577     soname_spec='$libname${shared_ext}.$major'
9578     shlibpath_var=LD_LIBRARY_PATH
9579   fi
9580   ;;
9581
9582 uts4*)
9583   version_type=linux
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   shlibpath_var=LD_LIBRARY_PATH
9587   ;;
9588
9589 *)
9590   dynamic_linker=no
9591   ;;
9592 esac
9593 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9594 echo "${ECHO_T}$dynamic_linker" >&6
9595 test "$dynamic_linker" = no && can_build_shared=no
9596
9597 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9598 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9599 hardcode_action=
9600 if test -n "$hardcode_libdir_flag_spec" || \
9601    test -n "$runpath_var" || \
9602    test "X$hardcode_automatic" = "Xyes" ; then
9603
9604   # We can hardcode non-existant directories.
9605   if test "$hardcode_direct" != no &&
9606      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9607      # have to relink, otherwise we might link with an installed library
9608      # when we should be linking with a yet-to-be-installed one
9609      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9610      test "$hardcode_minus_L" != no; then
9611     # Linking always hardcodes the temporary library directory.
9612     hardcode_action=relink
9613   else
9614     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9615     hardcode_action=immediate
9616   fi
9617 else
9618   # We cannot hardcode anything, or else we can only hardcode existing
9619   # directories.
9620   hardcode_action=unsupported
9621 fi
9622 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9623 echo "${ECHO_T}$hardcode_action" >&6
9624
9625 if test "$hardcode_action" = relink; then
9626   # Fast installation is not supported
9627   enable_fast_install=no
9628 elif test "$shlibpath_overrides_runpath" = yes ||
9629      test "$enable_shared" = no; then
9630   # Fast installation is not necessary
9631   enable_fast_install=needless
9632 fi
9633
9634 striplib=
9635 old_striplib=
9636 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9637 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9638 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9641   echo "$as_me:$LINENO: result: yes" >&5
9642 echo "${ECHO_T}yes" >&6
9643 else
9644 # FIXME - insert some real tests, host_os isn't really good enough
9645   case $host_os in
9646    darwin*)
9647        if test -n "$STRIP" ; then
9648          striplib="$STRIP -x"
9649          echo "$as_me:$LINENO: result: yes" >&5
9650 echo "${ECHO_T}yes" >&6
9651        else
9652   echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6
9654 fi
9655        ;;
9656    *)
9657   echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6
9659     ;;
9660   esac
9661 fi
9662
9663 if test "x$enable_dlopen" != xyes; then
9664   enable_dlopen=unknown
9665   enable_dlopen_self=unknown
9666   enable_dlopen_self_static=unknown
9667 else
9668   lt_cv_dlopen=no
9669   lt_cv_dlopen_libs=
9670
9671   case $host_os in
9672   beos*)
9673     lt_cv_dlopen="load_add_on"
9674     lt_cv_dlopen_libs=
9675     lt_cv_dlopen_self=yes
9676     ;;
9677
9678   mingw* | pw32*)
9679     lt_cv_dlopen="LoadLibrary"
9680     lt_cv_dlopen_libs=
9681    ;;
9682
9683   cygwin*)
9684     lt_cv_dlopen="dlopen"
9685     lt_cv_dlopen_libs=
9686    ;;
9687
9688   darwin*)
9689   # if libdl is installed we need to link against it
9690     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9691 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9692 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-ldl  $LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703
9704 /* Override any gcc2 internal prototype to avoid an error.  */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 /* We use char because int might match the return type of a gcc2
9709    builtin and then its argument prototype would still apply.  */
9710 char dlopen ();
9711 int
9712 main ()
9713 {
9714 dlopen ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721   (eval $ac_link) 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } &&
9728          { ac_try='test -z "$ac_c_werror_flag"
9729                          || test ! -s conftest.err'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; } &&
9735          { ac_try='test -s conftest$ac_exeext'
9736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737   (eval $ac_try) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); }; }; then
9741   ac_cv_lib_dl_dlopen=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_cv_lib_dl_dlopen=no
9747 fi
9748 rm -f conftest.err conftest.$ac_objext \
9749       conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9753 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9754 if test $ac_cv_lib_dl_dlopen = yes; then
9755   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9756 else
9757
9758     lt_cv_dlopen="dyld"
9759     lt_cv_dlopen_libs=
9760     lt_cv_dlopen_self=yes
9761
9762 fi
9763
9764    ;;
9765
9766   *)
9767     echo "$as_me:$LINENO: checking for shl_load" >&5
9768 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9769 if test "${ac_cv_func_shl_load+set}" = set; then
9770   echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772   cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9780 #define shl_load innocuous_shl_load
9781
9782 /* System header to define __stub macros and hopefully few prototypes,
9783     which can conflict with char shl_load (); below.
9784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9785     <limits.h> exists even on freestanding compilers.  */
9786
9787 #ifdef __STDC__
9788 # include <limits.h>
9789 #else
9790 # include <assert.h>
9791 #endif
9792
9793 #undef shl_load
9794
9795 /* Override any gcc2 internal prototype to avoid an error.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 {
9799 #endif
9800 /* We use char because int might match the return type of a gcc2
9801    builtin and then its argument prototype would still apply.  */
9802 char shl_load ();
9803 /* The GNU C library defines this for functions which it implements
9804     to always fail with ENOSYS.  Some functions are actually named
9805     something starting with __ and the normal name is an alias.  */
9806 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9807 choke me
9808 #else
9809 char (*f) () = shl_load;
9810 #endif
9811 #ifdef __cplusplus
9812 }
9813 #endif
9814
9815 int
9816 main ()
9817 {
9818 return f != shl_load;
9819   ;
9820   return 0;
9821 }
9822 _ACEOF
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825   (eval $ac_link) 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag"
9833                          || test ! -s conftest.err'
9834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835   (eval $ac_try) 2>&5
9836   ac_status=$?
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); }; } &&
9839          { ac_try='test -s conftest$ac_exeext'
9840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841   (eval $ac_try) 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   ac_cv_func_shl_load=yes
9846 else
9847   echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_cv_func_shl_load=no
9851 fi
9852 rm -f conftest.err conftest.$ac_objext \
9853       conftest$ac_exeext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9857 if test $ac_cv_func_shl_load = yes; then
9858   lt_cv_dlopen="shl_load"
9859 else
9860   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldld  $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873
9874 /* Override any gcc2 internal prototype to avoid an error.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 #endif
9878 /* We use char because int might match the return type of a gcc2
9879    builtin and then its argument prototype would still apply.  */
9880 char shl_load ();
9881 int
9882 main ()
9883 {
9884 shl_load ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891   (eval $ac_link) 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -z "$ac_c_werror_flag"
9899                          || test ! -s conftest.err'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; } &&
9905          { ac_try='test -s conftest$ac_exeext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911   ac_cv_lib_dld_shl_load=yes
9912 else
9913   echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_cv_lib_dld_shl_load=no
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 LIBS=$ac_check_lib_save_LIBS
9921 fi
9922 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9923 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9924 if test $ac_cv_lib_dld_shl_load = yes; then
9925   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9926 else
9927   echo "$as_me:$LINENO: checking for dlopen" >&5
9928 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9929 if test "${ac_cv_func_dlopen+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9940 #define dlopen innocuous_dlopen
9941
9942 /* System header to define __stub macros and hopefully few prototypes,
9943     which can conflict with char dlopen (); below.
9944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9945     <limits.h> exists even on freestanding compilers.  */
9946
9947 #ifdef __STDC__
9948 # include <limits.h>
9949 #else
9950 # include <assert.h>
9951 #endif
9952
9953 #undef dlopen
9954
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 {
9959 #endif
9960 /* We use char because int might match the return type of a gcc2
9961    builtin and then its argument prototype would still apply.  */
9962 char dlopen ();
9963 /* The GNU C library defines this for functions which it implements
9964     to always fail with ENOSYS.  Some functions are actually named
9965     something starting with __ and the normal name is an alias.  */
9966 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9967 choke me
9968 #else
9969 char (*f) () = dlopen;
9970 #endif
9971 #ifdef __cplusplus
9972 }
9973 #endif
9974
9975 int
9976 main ()
9977 {
9978 return f != dlopen;
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -z "$ac_c_werror_flag"
9993                          || test ! -s conftest.err'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; } &&
9999          { ac_try='test -s conftest$ac_exeext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_func_dlopen=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_func_dlopen=no
10011 fi
10012 rm -f conftest.err conftest.$ac_objext \
10013       conftest$ac_exeext conftest.$ac_ext
10014 fi
10015 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10016 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10017 if test $ac_cv_func_dlopen = yes; then
10018   lt_cv_dlopen="dlopen"
10019 else
10020   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10021 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10022 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025   ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldl  $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033
10034 /* Override any gcc2 internal prototype to avoid an error.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 /* We use char because int might match the return type of a gcc2
10039    builtin and then its argument prototype would still apply.  */
10040 char dlopen ();
10041 int
10042 main ()
10043 {
10044 dlopen ();
10045   ;
10046   return 0;
10047 }
10048 _ACEOF
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051   (eval $ac_link) 2>conftest.er1
10052   ac_status=$?
10053   grep -v '^ *+' conftest.er1 >conftest.err
10054   rm -f conftest.er1
10055   cat conftest.err >&5
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -z "$ac_c_werror_flag"
10059                          || test ! -s conftest.err'
10060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061   (eval $ac_try) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); }; } &&
10065          { ac_try='test -s conftest$ac_exeext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_cv_lib_dl_dlopen=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_cv_lib_dl_dlopen=no
10077 fi
10078 rm -f conftest.err conftest.$ac_objext \
10079       conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10081 fi
10082 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10084 if test $ac_cv_lib_dl_dlopen = yes; then
10085   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10086 else
10087   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lsvld  $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any gcc2 internal prototype to avoid an error.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 /* We use char because int might match the return type of a gcc2
10106    builtin and then its argument prototype would still apply.  */
10107 char dlopen ();
10108 int
10109 main ()
10110 {
10111 dlopen ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118   (eval $ac_link) 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } &&
10125          { ac_try='test -z "$ac_c_werror_flag"
10126                          || test ! -s conftest.err'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; } &&
10132          { ac_try='test -s conftest$ac_exeext'
10133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134   (eval $ac_try) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; }; then
10138   ac_cv_lib_svld_dlopen=yes
10139 else
10140   echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143 ac_cv_lib_svld_dlopen=no
10144 fi
10145 rm -f conftest.err conftest.$ac_objext \
10146       conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10148 fi
10149 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10150 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10151 if test $ac_cv_lib_svld_dlopen = yes; then
10152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10153 else
10154   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10155 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10156 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   ac_check_lib_save_LIBS=$LIBS
10160 LIBS="-ldld  $LIBS"
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h.  */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h.  */
10167
10168 /* Override any gcc2 internal prototype to avoid an error.  */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 /* We use char because int might match the return type of a gcc2
10173    builtin and then its argument prototype would still apply.  */
10174 char dld_link ();
10175 int
10176 main ()
10177 {
10178 dld_link ();
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185   (eval $ac_link) 2>conftest.er1
10186   ac_status=$?
10187   grep -v '^ *+' conftest.er1 >conftest.err
10188   rm -f conftest.er1
10189   cat conftest.err >&5
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -z "$ac_c_werror_flag"
10193                          || test ! -s conftest.err'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; } &&
10199          { ac_try='test -s conftest$ac_exeext'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_cv_lib_dld_dld_link=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_cv_lib_dld_dld_link=no
10211 fi
10212 rm -f conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10218 if test $ac_cv_lib_dld_dld_link = yes; then
10219   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228
10229 fi
10230
10231
10232 fi
10233
10234
10235 fi
10236
10237     ;;
10238   esac
10239
10240   if test "x$lt_cv_dlopen" != xno; then
10241     enable_dlopen=yes
10242   else
10243     enable_dlopen=no
10244   fi
10245
10246   case $lt_cv_dlopen in
10247   dlopen)
10248     save_CPPFLAGS="$CPPFLAGS"
10249     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10250
10251     save_LDFLAGS="$LDFLAGS"
10252     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10253
10254     save_LIBS="$LIBS"
10255     LIBS="$lt_cv_dlopen_libs $LIBS"
10256
10257     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10258 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10259 if test "${lt_cv_dlopen_self+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262           if test "$cross_compiling" = yes; then :
10263   lt_cv_dlopen_self=cross
10264 else
10265   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10266   lt_status=$lt_dlunknown
10267   cat > conftest.$ac_ext <<EOF
10268 #line 10268 "configure"
10269 #include "confdefs.h"
10270
10271 #if HAVE_DLFCN_H
10272 #include <dlfcn.h>
10273 #endif
10274
10275 #include <stdio.h>
10276
10277 #ifdef RTLD_GLOBAL
10278 #  define LT_DLGLOBAL           RTLD_GLOBAL
10279 #else
10280 #  ifdef DL_GLOBAL
10281 #    define LT_DLGLOBAL         DL_GLOBAL
10282 #  else
10283 #    define LT_DLGLOBAL         0
10284 #  endif
10285 #endif
10286
10287 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10288    find out it does not work in some platform. */
10289 #ifndef LT_DLLAZY_OR_NOW
10290 #  ifdef RTLD_LAZY
10291 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10292 #  else
10293 #    ifdef DL_LAZY
10294 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10295 #    else
10296 #      ifdef RTLD_NOW
10297 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10298 #      else
10299 #        ifdef DL_NOW
10300 #          define LT_DLLAZY_OR_NOW      DL_NOW
10301 #        else
10302 #          define LT_DLLAZY_OR_NOW      0
10303 #        endif
10304 #      endif
10305 #    endif
10306 #  endif
10307 #endif
10308
10309 #ifdef __cplusplus
10310 extern "C" void exit (int);
10311 #endif
10312
10313 void fnord() { int i=42;}
10314 int main ()
10315 {
10316   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10317   int status = $lt_dlunknown;
10318
10319   if (self)
10320     {
10321       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10322       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10323       /* dlclose (self); */
10324     }
10325
10326     exit (status);
10327 }
10328 EOF
10329   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330   (eval $ac_link) 2>&5
10331   ac_status=$?
10332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10334     (./conftest; exit; ) >&5 2>/dev/null
10335     lt_status=$?
10336     case x$lt_status in
10337       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10338       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10339       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10340     esac
10341   else :
10342     # compilation failed
10343     lt_cv_dlopen_self=no
10344   fi
10345 fi
10346 rm -fr conftest*
10347
10348
10349 fi
10350 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10351 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10352
10353     if test "x$lt_cv_dlopen_self" = xyes; then
10354       LDFLAGS="$LDFLAGS $link_static_flag"
10355       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10356 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10357 if test "${lt_cv_dlopen_self_static+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360           if test "$cross_compiling" = yes; then :
10361   lt_cv_dlopen_self_static=cross
10362 else
10363   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10364   lt_status=$lt_dlunknown
10365   cat > conftest.$ac_ext <<EOF
10366 #line 10366 "configure"
10367 #include "confdefs.h"
10368
10369 #if HAVE_DLFCN_H
10370 #include <dlfcn.h>
10371 #endif
10372
10373 #include <stdio.h>
10374
10375 #ifdef RTLD_GLOBAL
10376 #  define LT_DLGLOBAL           RTLD_GLOBAL
10377 #else
10378 #  ifdef DL_GLOBAL
10379 #    define LT_DLGLOBAL         DL_GLOBAL
10380 #  else
10381 #    define LT_DLGLOBAL         0
10382 #  endif
10383 #endif
10384
10385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10386    find out it does not work in some platform. */
10387 #ifndef LT_DLLAZY_OR_NOW
10388 #  ifdef RTLD_LAZY
10389 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10390 #  else
10391 #    ifdef DL_LAZY
10392 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10393 #    else
10394 #      ifdef RTLD_NOW
10395 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10396 #      else
10397 #        ifdef DL_NOW
10398 #          define LT_DLLAZY_OR_NOW      DL_NOW
10399 #        else
10400 #          define LT_DLLAZY_OR_NOW      0
10401 #        endif
10402 #      endif
10403 #    endif
10404 #  endif
10405 #endif
10406
10407 #ifdef __cplusplus
10408 extern "C" void exit (int);
10409 #endif
10410
10411 void fnord() { int i=42;}
10412 int main ()
10413 {
10414   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10415   int status = $lt_dlunknown;
10416
10417   if (self)
10418     {
10419       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10420       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10421       /* dlclose (self); */
10422     }
10423
10424     exit (status);
10425 }
10426 EOF
10427   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428   (eval $ac_link) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10432     (./conftest; exit; ) >&5 2>/dev/null
10433     lt_status=$?
10434     case x$lt_status in
10435       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10436       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10437       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10438     esac
10439   else :
10440     # compilation failed
10441     lt_cv_dlopen_self_static=no
10442   fi
10443 fi
10444 rm -fr conftest*
10445
10446
10447 fi
10448 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10449 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10450     fi
10451
10452     CPPFLAGS="$save_CPPFLAGS"
10453     LDFLAGS="$save_LDFLAGS"
10454     LIBS="$save_LIBS"
10455     ;;
10456   esac
10457
10458   case $lt_cv_dlopen_self in
10459   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10460   *) enable_dlopen_self=unknown ;;
10461   esac
10462
10463   case $lt_cv_dlopen_self_static in
10464   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10465   *) enable_dlopen_self_static=unknown ;;
10466   esac
10467 fi
10468
10469
10470 # Report which librarie types wil actually be built
10471 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10472 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10473 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10474 echo "${ECHO_T}$can_build_shared" >&6
10475
10476 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10477 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10478 test "$can_build_shared" = "no" && enable_shared=no
10479
10480 # On AIX, shared libraries and static libraries use the same namespace, and
10481 # are all built from PIC.
10482 case $host_os in
10483 aix3*)
10484   test "$enable_shared" = yes && enable_static=no
10485   if test -n "$RANLIB"; then
10486     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10487     postinstall_cmds='$RANLIB $lib'
10488   fi
10489   ;;
10490
10491 aix4* | aix5*)
10492   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10493     test "$enable_shared" = yes && enable_static=no
10494   fi
10495     ;;
10496 esac
10497 echo "$as_me:$LINENO: result: $enable_shared" >&5
10498 echo "${ECHO_T}$enable_shared" >&6
10499
10500 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10501 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10502 # Make sure either enable_shared or enable_static is yes.
10503 test "$enable_shared" = yes || enable_static=yes
10504 echo "$as_me:$LINENO: result: $enable_static" >&5
10505 echo "${ECHO_T}$enable_static" >&6
10506
10507 # The else clause should only fire when bootstrapping the
10508 # libtool distribution, otherwise you forgot to ship ltmain.sh
10509 # with your package, and you will get complaints that there are
10510 # no rules to generate ltmain.sh.
10511 if test -f "$ltmain"; then
10512   # See if we are running on zsh, and set the options which allow our commands through
10513   # without removal of \ escapes.
10514   if test -n "${ZSH_VERSION+set}" ; then
10515     setopt NO_GLOB_SUBST
10516   fi
10517   # Now quote all the things that may contain metacharacters while being
10518   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10519   # variables and quote the copies for generation of the libtool script.
10520   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10521     SED SHELL STRIP \
10522     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10523     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10524     deplibs_check_method reload_flag reload_cmds need_locks \
10525     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10526     lt_cv_sys_global_symbol_to_c_name_address \
10527     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10528     old_postinstall_cmds old_postuninstall_cmds \
10529     compiler \
10530     CC \
10531     LD \
10532     lt_prog_compiler_wl \
10533     lt_prog_compiler_pic \
10534     lt_prog_compiler_static \
10535     lt_prog_compiler_no_builtin_flag \
10536     export_dynamic_flag_spec \
10537     thread_safe_flag_spec \
10538     whole_archive_flag_spec \
10539     enable_shared_with_static_runtimes \
10540     old_archive_cmds \
10541     old_archive_from_new_cmds \
10542     predep_objects \
10543     postdep_objects \
10544     predeps \
10545     postdeps \
10546     compiler_lib_search_path \
10547     archive_cmds \
10548     archive_expsym_cmds \
10549     postinstall_cmds \
10550     postuninstall_cmds \
10551     old_archive_from_expsyms_cmds \
10552     allow_undefined_flag \
10553     no_undefined_flag \
10554     export_symbols_cmds \
10555     hardcode_libdir_flag_spec \
10556     hardcode_libdir_flag_spec_ld \
10557     hardcode_libdir_separator \
10558     hardcode_automatic \
10559     module_cmds \
10560     module_expsym_cmds \
10561     lt_cv_prog_compiler_c_o \
10562     exclude_expsyms \
10563     include_expsyms; do
10564
10565     case $var in
10566     old_archive_cmds | \
10567     old_archive_from_new_cmds | \
10568     archive_cmds | \
10569     archive_expsym_cmds | \
10570     module_cmds | \
10571     module_expsym_cmds | \
10572     old_archive_from_expsyms_cmds | \
10573     export_symbols_cmds | \
10574     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10575     postinstall_cmds | postuninstall_cmds | \
10576     old_postinstall_cmds | old_postuninstall_cmds | \
10577     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10578       # Double-quote double-evaled strings.
10579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10580       ;;
10581     *)
10582       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10583       ;;
10584     esac
10585   done
10586
10587   case $lt_echo in
10588   *'\$0 --fallback-echo"')
10589     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10590     ;;
10591   esac
10592
10593 cfgfile="${ofile}T"
10594   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10595   $rm -f "$cfgfile"
10596   { echo "$as_me:$LINENO: creating $ofile" >&5
10597 echo "$as_me: creating $ofile" >&6;}
10598
10599   cat <<__EOF__ >> "$cfgfile"
10600 #! $SHELL
10601
10602 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10603 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10604 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10605 #
10606 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10607 # Free Software Foundation, Inc.
10608 #
10609 # This file is part of GNU Libtool:
10610 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10611 #
10612 # This program is free software; you can redistribute it and/or modify
10613 # it under the terms of the GNU General Public License as published by
10614 # the Free Software Foundation; either version 2 of the License, or
10615 # (at your option) any later version.
10616 #
10617 # This program is distributed in the hope that it will be useful, but
10618 # WITHOUT ANY WARRANTY; without even the implied warranty of
10619 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10620 # General Public License for more details.
10621 #
10622 # You should have received a copy of the GNU General Public License
10623 # along with this program; if not, write to the Free Software
10624 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10625 #
10626 # As a special exception to the GNU General Public License, if you
10627 # distribute this file as part of a program that contains a
10628 # configuration script generated by Autoconf, you may include it under
10629 # the same distribution terms that you use for the rest of that program.
10630
10631 # A sed program that does not truncate output.
10632 SED=$lt_SED
10633
10634 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10635 Xsed="$SED -e 1s/^X//"
10636
10637 # The HP-UX ksh and POSIX shell print the target directory to stdout
10638 # if CDPATH is set.
10639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10640
10641 # The names of the tagged configurations supported by this script.
10642 available_tags=
10643
10644 # ### BEGIN LIBTOOL CONFIG
10645
10646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10647
10648 # Shell to use when invoking shell scripts.
10649 SHELL=$lt_SHELL
10650
10651 # Whether or not to build shared libraries.
10652 build_libtool_libs=$enable_shared
10653
10654 # Whether or not to build static libraries.
10655 build_old_libs=$enable_static
10656
10657 # Whether or not to add -lc for building shared libraries.
10658 build_libtool_need_lc=$archive_cmds_need_lc
10659
10660 # Whether or not to disallow shared libs when runtime libs are static
10661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10662
10663 # Whether or not to optimize for fast installation.
10664 fast_install=$enable_fast_install
10665
10666 # The host system.
10667 host_alias=$host_alias
10668 host=$host
10669 host_os=$host_os
10670
10671 # The build system.
10672 build_alias=$build_alias
10673 build=$build
10674 build_os=$build_os
10675
10676 # An echo program that does not interpret backslashes.
10677 echo=$lt_echo
10678
10679 # The archiver.
10680 AR=$lt_AR
10681 AR_FLAGS=$lt_AR_FLAGS
10682
10683 # A C compiler.
10684 LTCC=$lt_LTCC
10685
10686 # A language-specific compiler.
10687 CC=$lt_compiler
10688
10689 # Is the compiler the GNU C compiler?
10690 with_gcc=$GCC
10691
10692 # An ERE matcher.
10693 EGREP=$lt_EGREP
10694
10695 # The linker used to build libraries.
10696 LD=$lt_LD
10697
10698 # Whether we need hard or soft links.
10699 LN_S=$lt_LN_S
10700
10701 # A BSD-compatible nm program.
10702 NM=$lt_NM
10703
10704 # A symbol stripping program
10705 STRIP=$lt_STRIP
10706
10707 # Used to examine libraries when file_magic_cmd begins "file"
10708 MAGIC_CMD=$MAGIC_CMD
10709
10710 # Used on cygwin: DLL creation program.
10711 DLLTOOL="$DLLTOOL"
10712
10713 # Used on cygwin: object dumper.
10714 OBJDUMP="$OBJDUMP"
10715
10716 # Used on cygwin: assembler.
10717 AS="$AS"
10718
10719 # The name of the directory that contains temporary libtool files.
10720 objdir=$objdir
10721
10722 # How to create reloadable object files.
10723 reload_flag=$lt_reload_flag
10724 reload_cmds=$lt_reload_cmds
10725
10726 # How to pass a linker flag through the compiler.
10727 wl=$lt_lt_prog_compiler_wl
10728
10729 # Object file suffix (normally "o").
10730 objext="$ac_objext"
10731
10732 # Old archive suffix (normally "a").
10733 libext="$libext"
10734
10735 # Shared library suffix (normally ".so").
10736 shrext_cmds='$shrext_cmds'
10737
10738 # Executable file suffix (normally "").
10739 exeext="$exeext"
10740
10741 # Additional compiler flags for building library objects.
10742 pic_flag=$lt_lt_prog_compiler_pic
10743 pic_mode=$pic_mode
10744
10745 # What is the maximum length of a command?
10746 max_cmd_len=$lt_cv_sys_max_cmd_len
10747
10748 # Does compiler simultaneously support -c and -o options?
10749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10750
10751 # Must we lock files when doing compilation?
10752 need_locks=$lt_need_locks
10753
10754 # Do we need the lib prefix for modules?
10755 need_lib_prefix=$need_lib_prefix
10756
10757 # Do we need a version for libraries?
10758 need_version=$need_version
10759
10760 # Whether dlopen is supported.
10761 dlopen_support=$enable_dlopen
10762
10763 # Whether dlopen of programs is supported.
10764 dlopen_self=$enable_dlopen_self
10765
10766 # Whether dlopen of statically linked programs is supported.
10767 dlopen_self_static=$enable_dlopen_self_static
10768
10769 # Compiler flag to prevent dynamic linking.
10770 link_static_flag=$lt_lt_prog_compiler_static
10771
10772 # Compiler flag to turn off builtin functions.
10773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10774
10775 # Compiler flag to allow reflexive dlopens.
10776 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10777
10778 # Compiler flag to generate shared objects directly from archives.
10779 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10780
10781 # Compiler flag to generate thread-safe objects.
10782 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10783
10784 # Library versioning type.
10785 version_type=$version_type
10786
10787 # Format of library name prefix.
10788 libname_spec=$lt_libname_spec
10789
10790 # List of archive names.  First name is the real one, the rest are links.
10791 # The last name is the one that the linker finds with -lNAME.
10792 library_names_spec=$lt_library_names_spec
10793
10794 # The coded name of the library, if different from the real name.
10795 soname_spec=$lt_soname_spec
10796
10797 # Commands used to build and install an old-style archive.
10798 RANLIB=$lt_RANLIB
10799 old_archive_cmds=$lt_old_archive_cmds
10800 old_postinstall_cmds=$lt_old_postinstall_cmds
10801 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10802
10803 # Create an old-style archive from a shared archive.
10804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10805
10806 # Create a temporary old-style archive to link instead of a shared archive.
10807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10808
10809 # Commands used to build and install a shared archive.
10810 archive_cmds=$lt_archive_cmds
10811 archive_expsym_cmds=$lt_archive_expsym_cmds
10812 postinstall_cmds=$lt_postinstall_cmds
10813 postuninstall_cmds=$lt_postuninstall_cmds
10814
10815 # Commands used to build a loadable module (assumed same as above if empty)
10816 module_cmds=$lt_module_cmds
10817 module_expsym_cmds=$lt_module_expsym_cmds
10818
10819 # Commands to strip libraries.
10820 old_striplib=$lt_old_striplib
10821 striplib=$lt_striplib
10822
10823 # Dependencies to place before the objects being linked to create a
10824 # shared library.
10825 predep_objects=$lt_predep_objects
10826
10827 # Dependencies to place after the objects being linked to create a
10828 # shared library.
10829 postdep_objects=$lt_postdep_objects
10830
10831 # Dependencies to place before the objects being linked to create a
10832 # shared library.
10833 predeps=$lt_predeps
10834
10835 # Dependencies to place after the objects being linked to create a
10836 # shared library.
10837 postdeps=$lt_postdeps
10838
10839 # The library search path used internally by the compiler when linking
10840 # a shared library.
10841 compiler_lib_search_path=$lt_compiler_lib_search_path
10842
10843 # Method to check whether dependent libraries are shared objects.
10844 deplibs_check_method=$lt_deplibs_check_method
10845
10846 # Command to use when deplibs_check_method == file_magic.
10847 file_magic_cmd=$lt_file_magic_cmd
10848
10849 # Flag that allows shared libraries with undefined symbols to be built.
10850 allow_undefined_flag=$lt_allow_undefined_flag
10851
10852 # Flag that forces no undefined symbols.
10853 no_undefined_flag=$lt_no_undefined_flag
10854
10855 # Commands used to finish a libtool library installation in a directory.
10856 finish_cmds=$lt_finish_cmds
10857
10858 # Same as above, but a single script fragment to be evaled but not shown.
10859 finish_eval=$lt_finish_eval
10860
10861 # Take the output of nm and produce a listing of raw symbols and C names.
10862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10863
10864 # Transform the output of nm in a proper C declaration
10865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10866
10867 # Transform the output of nm in a C name address pair
10868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10869
10870 # This is the shared library runtime path variable.
10871 runpath_var=$runpath_var
10872
10873 # This is the shared library path variable.
10874 shlibpath_var=$shlibpath_var
10875
10876 # Is shlibpath searched before the hard-coded library search path?
10877 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10878
10879 # How to hardcode a shared library path into an executable.
10880 hardcode_action=$hardcode_action
10881
10882 # Whether we should hardcode library paths into libraries.
10883 hardcode_into_libs=$hardcode_into_libs
10884
10885 # Flag to hardcode \$libdir into a binary during linking.
10886 # This must work even if \$libdir does not exist.
10887 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10888
10889 # If ld is used when linking, flag to hardcode \$libdir into
10890 # a binary during linking. This must work even if \$libdir does
10891 # not exist.
10892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10893
10894 # Whether we need a single -rpath flag with a separated argument.
10895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10896
10897 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10898 # resulting binary.
10899 hardcode_direct=$hardcode_direct
10900
10901 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10902 # resulting binary.
10903 hardcode_minus_L=$hardcode_minus_L
10904
10905 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10906 # the resulting binary.
10907 hardcode_shlibpath_var=$hardcode_shlibpath_var
10908
10909 # Set to yes if building a shared library automatically hardcodes DIR into the library
10910 # and all subsequent libraries and executables linked against it.
10911 hardcode_automatic=$hardcode_automatic
10912
10913 # Variables whose values should be saved in libtool wrapper scripts and
10914 # restored at relink time.
10915 variables_saved_for_relink="$variables_saved_for_relink"
10916
10917 # Whether libtool must link a program against all its dependency libraries.
10918 link_all_deplibs=$link_all_deplibs
10919
10920 # Compile-time system search path for libraries
10921 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10922
10923 # Run-time system search path for libraries
10924 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10925
10926 # Fix the shell variable \$srcfile for the compiler.
10927 fix_srcfile_path="$fix_srcfile_path"
10928
10929 # Set to yes if exported symbols are required.
10930 always_export_symbols=$always_export_symbols
10931
10932 # The commands to list exported symbols.
10933 export_symbols_cmds=$lt_export_symbols_cmds
10934
10935 # The commands to extract the exported symbol list from a shared archive.
10936 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10937
10938 # Symbols that should not be listed in the preloaded symbols.
10939 exclude_expsyms=$lt_exclude_expsyms
10940
10941 # Symbols that must always be exported.
10942 include_expsyms=$lt_include_expsyms
10943
10944 # ### END LIBTOOL CONFIG
10945
10946 __EOF__
10947
10948
10949   case $host_os in
10950   aix3*)
10951     cat <<\EOF >> "$cfgfile"
10952
10953 # AIX sometimes has problems with the GCC collect2 program.  For some
10954 # reason, if we set the COLLECT_NAMES environment variable, the problems
10955 # vanish in a puff of smoke.
10956 if test "X${COLLECT_NAMES+set}" != Xset; then
10957   COLLECT_NAMES=
10958   export COLLECT_NAMES
10959 fi
10960 EOF
10961     ;;
10962   esac
10963
10964   # We use sed instead of cat because bash on DJGPP gets confused if
10965   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10966   # text mode, it properly converts lines to CR/LF.  This bash problem
10967   # is reportedly fixed, but why not run on old versions too?
10968   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10969
10970   mv -f "$cfgfile" "$ofile" || \
10971     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10972   chmod +x "$ofile"
10973
10974 else
10975   # If there is no Makefile yet, we rely on a make rule to execute
10976   # `config.status --recheck' to rerun these tests and create the
10977   # libtool script then.
10978   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10979   if test -f "$ltmain_in"; then
10980     test -f Makefile && make "$ltmain"
10981   fi
10982 fi
10983
10984
10985 ac_ext=c
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10990
10991 CC="$lt_save_CC"
10992
10993
10994 # Check whether --with-tags or --without-tags was given.
10995 if test "${with_tags+set}" = set; then
10996   withval="$with_tags"
10997   tagnames="$withval"
10998 fi;
10999
11000 if test -f "$ltmain" && test -n "$tagnames"; then
11001   if test ! -f "${ofile}"; then
11002     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11003 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11004   fi
11005
11006   if test -z "$LTCC"; then
11007     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11008     if test -z "$LTCC"; then
11009       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11010 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11011     else
11012       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11013 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11014     fi
11015   fi
11016
11017   # Extract list of available tagged configurations in $ofile.
11018   # Note that this assumes the entire list is on one line.
11019   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11020
11021   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11022   for tagname in $tagnames; do
11023     IFS="$lt_save_ifs"
11024     # Check whether tagname contains only valid characters
11025     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11026     "") ;;
11027     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11028 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11029    { (exit 1); exit 1; }; }
11030         ;;
11031     esac
11032
11033     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11034     then
11035       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11036 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11037    { (exit 1); exit 1; }; }
11038     fi
11039
11040     # Update the list of available tags.
11041     if test -n "$tagname"; then
11042       echo appending configuration tag \"$tagname\" to $ofile
11043
11044       case $tagname in
11045       CXX)
11046         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11047             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11048             (test "X$CXX" != "Xg++"))) ; then
11049           :
11050         else
11051           tagname=""
11052         fi
11053         ;;
11054
11055       F77)
11056         if test -n "$F77" && test "X$F77" != "Xno"; then
11057           :
11058         else
11059           tagname=""
11060         fi
11061         ;;
11062
11063       GCJ)
11064         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11065           :
11066         else
11067           tagname=""
11068         fi
11069         ;;
11070
11071       RC)
11072
11073
11074
11075 # Source file extension for RC test sources.
11076 ac_ext=rc
11077
11078 # Object file extension for compiled RC test sources.
11079 objext=o
11080 objext_RC=$objext
11081
11082 # Code to be used in simple compile tests
11083 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11084
11085 # Code to be used in simple link tests
11086 lt_simple_link_test_code="$lt_simple_compile_test_code"
11087
11088 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11089
11090 # If no C compiler was specified, use CC.
11091 LTCC=${LTCC-"$CC"}
11092
11093 # Allow CC to be a program name with arguments.
11094 compiler=$CC
11095
11096
11097 # save warnings/boilerplate of simple test code
11098 ac_outfile=conftest.$ac_objext
11099 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11100 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11101 _lt_compiler_boilerplate=`cat conftest.err`
11102 $rm conftest*
11103
11104 ac_outfile=conftest.$ac_objext
11105 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11106 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11107 _lt_linker_boilerplate=`cat conftest.err`
11108 $rm conftest*
11109
11110
11111 # Allow CC to be a program name with arguments.
11112 lt_save_CC="$CC"
11113 CC=${RC-"windres"}
11114 compiler=$CC
11115 compiler_RC=$CC
11116 for cc_temp in $compiler""; do
11117   case $cc_temp in
11118     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11119     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11120     \-*) ;;
11121     *) break;;
11122   esac
11123 done
11124 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11125
11126 lt_cv_prog_compiler_c_o_RC=yes
11127
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133   # See if we are running on zsh, and set the options which allow our commands through
11134   # without removal of \ escapes.
11135   if test -n "${ZSH_VERSION+set}" ; then
11136     setopt NO_GLOB_SUBST
11137   fi
11138   # Now quote all the things that may contain metacharacters while being
11139   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11140   # variables and quote the copies for generation of the libtool script.
11141   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11142     SED SHELL STRIP \
11143     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145     deplibs_check_method reload_flag reload_cmds need_locks \
11146     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147     lt_cv_sys_global_symbol_to_c_name_address \
11148     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149     old_postinstall_cmds old_postuninstall_cmds \
11150     compiler_RC \
11151     CC_RC \
11152     LD_RC \
11153     lt_prog_compiler_wl_RC \
11154     lt_prog_compiler_pic_RC \
11155     lt_prog_compiler_static_RC \
11156     lt_prog_compiler_no_builtin_flag_RC \
11157     export_dynamic_flag_spec_RC \
11158     thread_safe_flag_spec_RC \
11159     whole_archive_flag_spec_RC \
11160     enable_shared_with_static_runtimes_RC \
11161     old_archive_cmds_RC \
11162     old_archive_from_new_cmds_RC \
11163     predep_objects_RC \
11164     postdep_objects_RC \
11165     predeps_RC \
11166     postdeps_RC \
11167     compiler_lib_search_path_RC \
11168     archive_cmds_RC \
11169     archive_expsym_cmds_RC \
11170     postinstall_cmds_RC \
11171     postuninstall_cmds_RC \
11172     old_archive_from_expsyms_cmds_RC \
11173     allow_undefined_flag_RC \
11174     no_undefined_flag_RC \
11175     export_symbols_cmds_RC \
11176     hardcode_libdir_flag_spec_RC \
11177     hardcode_libdir_flag_spec_ld_RC \
11178     hardcode_libdir_separator_RC \
11179     hardcode_automatic_RC \
11180     module_cmds_RC \
11181     module_expsym_cmds_RC \
11182     lt_cv_prog_compiler_c_o_RC \
11183     exclude_expsyms_RC \
11184     include_expsyms_RC; do
11185
11186     case $var in
11187     old_archive_cmds_RC | \
11188     old_archive_from_new_cmds_RC | \
11189     archive_cmds_RC | \
11190     archive_expsym_cmds_RC | \
11191     module_cmds_RC | \
11192     module_expsym_cmds_RC | \
11193     old_archive_from_expsyms_cmds_RC | \
11194     export_symbols_cmds_RC | \
11195     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11196     postinstall_cmds | postuninstall_cmds | \
11197     old_postinstall_cmds | old_postuninstall_cmds | \
11198     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11199       # Double-quote double-evaled strings.
11200       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11201       ;;
11202     *)
11203       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11204       ;;
11205     esac
11206   done
11207
11208   case $lt_echo in
11209   *'\$0 --fallback-echo"')
11210     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11211     ;;
11212   esac
11213
11214 cfgfile="$ofile"
11215
11216   cat <<__EOF__ >> "$cfgfile"
11217 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11218
11219 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11220
11221 # Shell to use when invoking shell scripts.
11222 SHELL=$lt_SHELL
11223
11224 # Whether or not to build shared libraries.
11225 build_libtool_libs=$enable_shared
11226
11227 # Whether or not to build static libraries.
11228 build_old_libs=$enable_static
11229
11230 # Whether or not to add -lc for building shared libraries.
11231 build_libtool_need_lc=$archive_cmds_need_lc_RC
11232
11233 # Whether or not to disallow shared libs when runtime libs are static
11234 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11235
11236 # Whether or not to optimize for fast installation.
11237 fast_install=$enable_fast_install
11238
11239 # The host system.
11240 host_alias=$host_alias
11241 host=$host
11242 host_os=$host_os
11243
11244 # The build system.
11245 build_alias=$build_alias
11246 build=$build
11247 build_os=$build_os
11248
11249 # An echo program that does not interpret backslashes.
11250 echo=$lt_echo
11251
11252 # The archiver.
11253 AR=$lt_AR
11254 AR_FLAGS=$lt_AR_FLAGS
11255
11256 # A C compiler.
11257 LTCC=$lt_LTCC
11258
11259 # A language-specific compiler.
11260 CC=$lt_compiler_RC
11261
11262 # Is the compiler the GNU C compiler?
11263 with_gcc=$GCC_RC
11264
11265 # An ERE matcher.
11266 EGREP=$lt_EGREP
11267
11268 # The linker used to build libraries.
11269 LD=$lt_LD_RC
11270
11271 # Whether we need hard or soft links.
11272 LN_S=$lt_LN_S
11273
11274 # A BSD-compatible nm program.
11275 NM=$lt_NM
11276
11277 # A symbol stripping program
11278 STRIP=$lt_STRIP
11279
11280 # Used to examine libraries when file_magic_cmd begins "file"
11281 MAGIC_CMD=$MAGIC_CMD
11282
11283 # Used on cygwin: DLL creation program.
11284 DLLTOOL="$DLLTOOL"
11285
11286 # Used on cygwin: object dumper.
11287 OBJDUMP="$OBJDUMP"
11288
11289 # Used on cygwin: assembler.
11290 AS="$AS"
11291
11292 # The name of the directory that contains temporary libtool files.
11293 objdir=$objdir
11294
11295 # How to create reloadable object files.
11296 reload_flag=$lt_reload_flag
11297 reload_cmds=$lt_reload_cmds
11298
11299 # How to pass a linker flag through the compiler.
11300 wl=$lt_lt_prog_compiler_wl_RC
11301
11302 # Object file suffix (normally "o").
11303 objext="$ac_objext"
11304
11305 # Old archive suffix (normally "a").
11306 libext="$libext"
11307
11308 # Shared library suffix (normally ".so").
11309 shrext_cmds='$shrext_cmds'
11310
11311 # Executable file suffix (normally "").
11312 exeext="$exeext"
11313
11314 # Additional compiler flags for building library objects.
11315 pic_flag=$lt_lt_prog_compiler_pic_RC
11316 pic_mode=$pic_mode
11317
11318 # What is the maximum length of a command?
11319 max_cmd_len=$lt_cv_sys_max_cmd_len
11320
11321 # Does compiler simultaneously support -c and -o options?
11322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11323
11324 # Must we lock files when doing compilation?
11325 need_locks=$lt_need_locks
11326
11327 # Do we need the lib prefix for modules?
11328 need_lib_prefix=$need_lib_prefix
11329
11330 # Do we need a version for libraries?
11331 need_version=$need_version
11332
11333 # Whether dlopen is supported.
11334 dlopen_support=$enable_dlopen
11335
11336 # Whether dlopen of programs is supported.
11337 dlopen_self=$enable_dlopen_self
11338
11339 # Whether dlopen of statically linked programs is supported.
11340 dlopen_self_static=$enable_dlopen_self_static
11341
11342 # Compiler flag to prevent dynamic linking.
11343 link_static_flag=$lt_lt_prog_compiler_static_RC
11344
11345 # Compiler flag to turn off builtin functions.
11346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11347
11348 # Compiler flag to allow reflexive dlopens.
11349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11350
11351 # Compiler flag to generate shared objects directly from archives.
11352 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11353
11354 # Compiler flag to generate thread-safe objects.
11355 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11356
11357 # Library versioning type.
11358 version_type=$version_type
11359
11360 # Format of library name prefix.
11361 libname_spec=$lt_libname_spec
11362
11363 # List of archive names.  First name is the real one, the rest are links.
11364 # The last name is the one that the linker finds with -lNAME.
11365 library_names_spec=$lt_library_names_spec
11366
11367 # The coded name of the library, if different from the real name.
11368 soname_spec=$lt_soname_spec
11369
11370 # Commands used to build and install an old-style archive.
11371 RANLIB=$lt_RANLIB
11372 old_archive_cmds=$lt_old_archive_cmds_RC
11373 old_postinstall_cmds=$lt_old_postinstall_cmds
11374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11375
11376 # Create an old-style archive from a shared archive.
11377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11378
11379 # Create a temporary old-style archive to link instead of a shared archive.
11380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11381
11382 # Commands used to build and install a shared archive.
11383 archive_cmds=$lt_archive_cmds_RC
11384 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11385 postinstall_cmds=$lt_postinstall_cmds
11386 postuninstall_cmds=$lt_postuninstall_cmds
11387
11388 # Commands used to build a loadable module (assumed same as above if empty)
11389 module_cmds=$lt_module_cmds_RC
11390 module_expsym_cmds=$lt_module_expsym_cmds_RC
11391
11392 # Commands to strip libraries.
11393 old_striplib=$lt_old_striplib
11394 striplib=$lt_striplib
11395
11396 # Dependencies to place before the objects being linked to create a
11397 # shared library.
11398 predep_objects=$lt_predep_objects_RC
11399
11400 # Dependencies to place after the objects being linked to create a
11401 # shared library.
11402 postdep_objects=$lt_postdep_objects_RC
11403
11404 # Dependencies to place before the objects being linked to create a
11405 # shared library.
11406 predeps=$lt_predeps_RC
11407
11408 # Dependencies to place after the objects being linked to create a
11409 # shared library.
11410 postdeps=$lt_postdeps_RC
11411
11412 # The library search path used internally by the compiler when linking
11413 # a shared library.
11414 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11415
11416 # Method to check whether dependent libraries are shared objects.
11417 deplibs_check_method=$lt_deplibs_check_method
11418
11419 # Command to use when deplibs_check_method == file_magic.
11420 file_magic_cmd=$lt_file_magic_cmd
11421
11422 # Flag that allows shared libraries with undefined symbols to be built.
11423 allow_undefined_flag=$lt_allow_undefined_flag_RC
11424
11425 # Flag that forces no undefined symbols.
11426 no_undefined_flag=$lt_no_undefined_flag_RC
11427
11428 # Commands used to finish a libtool library installation in a directory.
11429 finish_cmds=$lt_finish_cmds
11430
11431 # Same as above, but a single script fragment to be evaled but not shown.
11432 finish_eval=$lt_finish_eval
11433
11434 # Take the output of nm and produce a listing of raw symbols and C names.
11435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11436
11437 # Transform the output of nm in a proper C declaration
11438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11439
11440 # Transform the output of nm in a C name address pair
11441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11442
11443 # This is the shared library runtime path variable.
11444 runpath_var=$runpath_var
11445
11446 # This is the shared library path variable.
11447 shlibpath_var=$shlibpath_var
11448
11449 # Is shlibpath searched before the hard-coded library search path?
11450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11451
11452 # How to hardcode a shared library path into an executable.
11453 hardcode_action=$hardcode_action_RC
11454
11455 # Whether we should hardcode library paths into libraries.
11456 hardcode_into_libs=$hardcode_into_libs
11457
11458 # Flag to hardcode \$libdir into a binary during linking.
11459 # This must work even if \$libdir does not exist.
11460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11461
11462 # If ld is used when linking, flag to hardcode \$libdir into
11463 # a binary during linking. This must work even if \$libdir does
11464 # not exist.
11465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11466
11467 # Whether we need a single -rpath flag with a separated argument.
11468 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11469
11470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11471 # resulting binary.
11472 hardcode_direct=$hardcode_direct_RC
11473
11474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11475 # resulting binary.
11476 hardcode_minus_L=$hardcode_minus_L_RC
11477
11478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11479 # the resulting binary.
11480 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11481
11482 # Set to yes if building a shared library automatically hardcodes DIR into the library
11483 # and all subsequent libraries and executables linked against it.
11484 hardcode_automatic=$hardcode_automatic_RC
11485
11486 # Variables whose values should be saved in libtool wrapper scripts and
11487 # restored at relink time.
11488 variables_saved_for_relink="$variables_saved_for_relink"
11489
11490 # Whether libtool must link a program against all its dependency libraries.
11491 link_all_deplibs=$link_all_deplibs_RC
11492
11493 # Compile-time system search path for libraries
11494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11495
11496 # Run-time system search path for libraries
11497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11498
11499 # Fix the shell variable \$srcfile for the compiler.
11500 fix_srcfile_path="$fix_srcfile_path_RC"
11501
11502 # Set to yes if exported symbols are required.
11503 always_export_symbols=$always_export_symbols_RC
11504
11505 # The commands to list exported symbols.
11506 export_symbols_cmds=$lt_export_symbols_cmds_RC
11507
11508 # The commands to extract the exported symbol list from a shared archive.
11509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11510
11511 # Symbols that should not be listed in the preloaded symbols.
11512 exclude_expsyms=$lt_exclude_expsyms_RC
11513
11514 # Symbols that must always be exported.
11515 include_expsyms=$lt_include_expsyms_RC
11516
11517 # ### END LIBTOOL TAG CONFIG: $tagname
11518
11519 __EOF__
11520
11521
11522 else
11523   # If there is no Makefile yet, we rely on a make rule to execute
11524   # `config.status --recheck' to rerun these tests and create the
11525   # libtool script then.
11526   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11527   if test -f "$ltmain_in"; then
11528     test -f Makefile && make "$ltmain"
11529   fi
11530 fi
11531
11532
11533 ac_ext=c
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539 CC="$lt_save_CC"
11540
11541         ;;
11542
11543       *)
11544         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11545 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11546    { (exit 1); exit 1; }; }
11547         ;;
11548       esac
11549
11550       # Append the new tag name to the list of available tags.
11551       if test -n "$tagname" ; then
11552       available_tags="$available_tags $tagname"
11553     fi
11554     fi
11555   done
11556   IFS="$lt_save_ifs"
11557
11558   # Now substitute the updated list of available tags.
11559   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11560     mv "${ofile}T" "$ofile"
11561     chmod +x "$ofile"
11562   else
11563     rm -f "${ofile}T"
11564     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11565 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11566    { (exit 1); exit 1; }; }
11567   fi
11568 fi
11569
11570
11571
11572 # This can be used to rebuild libtool when needed
11573 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11574
11575 # Always use our own libtool.
11576 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11577
11578 # Prevent multiple expansion
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589 ol_link_perl=no
11590 if test $ol_enable_perl != no ; then
11591         # Extract the first word of "perl", so it can be a program name with args.
11592 set dummy perl; ac_word=$2
11593 echo "$as_me:$LINENO: checking for $ac_word" >&5
11594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595 if test "${ac_cv_path_PERLBIN+set}" = set; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   case $PERLBIN in
11599   [\\/]* | ?:[\\/]*)
11600   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11601   ;;
11602   *)
11603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11604 for as_dir in $PATH
11605 do
11606   IFS=$as_save_IFS
11607   test -z "$as_dir" && as_dir=.
11608   for ac_exec_ext in '' $ac_executable_extensions; do
11609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11610     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11612     break 2
11613   fi
11614 done
11615 done
11616
11617   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11618   ;;
11619 esac
11620 fi
11621 PERLBIN=$ac_cv_path_PERLBIN
11622
11623 if test -n "$PERLBIN"; then
11624   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11625 echo "${ECHO_T}$PERLBIN" >&6
11626 else
11627   echo "$as_me:$LINENO: result: no" >&5
11628 echo "${ECHO_T}no" >&6
11629 fi
11630
11631
11632         if test "no$PERLBIN" = "no" ; then
11633                 if test $ol_enable_perl = yes ; then
11634                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11635 echo "$as_me: error: could not locate perl" >&2;}
11636    { (exit 1); exit 1; }; }
11637                 fi
11638
11639         else
11640                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11641                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11642
11643                 if test x"$ol_enable_perl" = "xyes" ; then
11644                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11645                 else
11646                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11647                 fi
11648                                 ol_link_perl=yes
11649         fi
11650 fi
11651
11652 ac_ext=c
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11658 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11659 # On Suns, sometimes $CPP names a directory.
11660 if test -n "$CPP" && test -d "$CPP"; then
11661   CPP=
11662 fi
11663 if test -z "$CPP"; then
11664   if test "${ac_cv_prog_CPP+set}" = set; then
11665   echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667       # Double quotes because CPP needs to be expanded
11668     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11669     do
11670       ac_preproc_ok=false
11671 for ac_c_preproc_warn_flag in '' yes
11672 do
11673   # Use a header file that comes with gcc, so configuring glibc
11674   # with a fresh cross-compiler works.
11675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676   # <limits.h> exists even on freestanding compilers.
11677   # On the NeXT, cc -E runs the code through the compiler's parser,
11678   # not just through cpp. "Syntax error" is here to catch this case.
11679   cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h.  */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h.  */
11685 #ifdef __STDC__
11686 # include <limits.h>
11687 #else
11688 # include <assert.h>
11689 #endif
11690                      Syntax error
11691 _ACEOF
11692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } >/dev/null; then
11700   if test -s conftest.err; then
11701     ac_cpp_err=$ac_c_preproc_warn_flag
11702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11703   else
11704     ac_cpp_err=
11705   fi
11706 else
11707   ac_cpp_err=yes
11708 fi
11709 if test -z "$ac_cpp_err"; then
11710   :
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715   # Broken: fails on valid input.
11716 continue
11717 fi
11718 rm -f conftest.err conftest.$ac_ext
11719
11720   # OK, works on sane cases.  Now check whether non-existent headers
11721   # can be detected and how.
11722   cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h.  */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h.  */
11728 #include <ac_nonexistent.h>
11729 _ACEOF
11730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11731   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11732   ac_status=$?
11733   grep -v '^ *+' conftest.er1 >conftest.err
11734   rm -f conftest.er1
11735   cat conftest.err >&5
11736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); } >/dev/null; then
11738   if test -s conftest.err; then
11739     ac_cpp_err=$ac_c_preproc_warn_flag
11740     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11741   else
11742     ac_cpp_err=
11743   fi
11744 else
11745   ac_cpp_err=yes
11746 fi
11747 if test -z "$ac_cpp_err"; then
11748   # Broken: success on invalid input.
11749 continue
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754   # Passes both tests.
11755 ac_preproc_ok=:
11756 break
11757 fi
11758 rm -f conftest.err conftest.$ac_ext
11759
11760 done
11761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11762 rm -f conftest.err conftest.$ac_ext
11763 if $ac_preproc_ok; then
11764   break
11765 fi
11766
11767     done
11768     ac_cv_prog_CPP=$CPP
11769
11770 fi
11771   CPP=$ac_cv_prog_CPP
11772 else
11773   ac_cv_prog_CPP=$CPP
11774 fi
11775 echo "$as_me:$LINENO: result: $CPP" >&5
11776 echo "${ECHO_T}$CPP" >&6
11777 ac_preproc_ok=false
11778 for ac_c_preproc_warn_flag in '' yes
11779 do
11780   # Use a header file that comes with gcc, so configuring glibc
11781   # with a fresh cross-compiler works.
11782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783   # <limits.h> exists even on freestanding compilers.
11784   # On the NeXT, cc -E runs the code through the compiler's parser,
11785   # not just through cpp. "Syntax error" is here to catch this case.
11786   cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h.  */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h.  */
11792 #ifdef __STDC__
11793 # include <limits.h>
11794 #else
11795 # include <assert.h>
11796 #endif
11797                      Syntax error
11798 _ACEOF
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } >/dev/null; then
11807   if test -s conftest.err; then
11808     ac_cpp_err=$ac_c_preproc_warn_flag
11809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11810   else
11811     ac_cpp_err=
11812   fi
11813 else
11814   ac_cpp_err=yes
11815 fi
11816 if test -z "$ac_cpp_err"; then
11817   :
11818 else
11819   echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822   # Broken: fails on valid input.
11823 continue
11824 fi
11825 rm -f conftest.err conftest.$ac_ext
11826
11827   # OK, works on sane cases.  Now check whether non-existent headers
11828   # can be detected and how.
11829   cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <ac_nonexistent.h>
11836 _ACEOF
11837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } >/dev/null; then
11845   if test -s conftest.err; then
11846     ac_cpp_err=$ac_c_preproc_warn_flag
11847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11848   else
11849     ac_cpp_err=
11850   fi
11851 else
11852   ac_cpp_err=yes
11853 fi
11854 if test -z "$ac_cpp_err"; then
11855   # Broken: success on invalid input.
11856 continue
11857 else
11858   echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861   # Passes both tests.
11862 ac_preproc_ok=:
11863 break
11864 fi
11865 rm -f conftest.err conftest.$ac_ext
11866
11867 done
11868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11869 rm -f conftest.err conftest.$ac_ext
11870 if $ac_preproc_ok; then
11871   :
11872 else
11873   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11874 See \`config.log' for more details." >&5
11875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11876 See \`config.log' for more details." >&2;}
11877    { (exit 1); exit 1; }; }
11878 fi
11879
11880 ac_ext=c
11881 ac_cpp='$CPP $CPPFLAGS'
11882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885
11886
11887 case $host_os in
11888   *mingw32* ) ac_cv_mingw32=yes ;;
11889   *cygwin* ) ac_cv_cygwin=yes ;;
11890 esac
11891
11892
11893
11894
11895 cat >>confdefs.h <<_ACEOF
11896 #define EXEEXT "${EXEEXT}"
11897 _ACEOF
11898
11899
11900 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11901 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11902 if test "${ac_cv_lib_be_be_app+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lbe -lroot -lnet $LIBS"
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913
11914 /* Override any gcc2 internal prototype to avoid an error.  */
11915 #ifdef __cplusplus
11916 extern "C"
11917 #endif
11918 /* We use char because int might match the return type of a gcc2
11919    builtin and then its argument prototype would still apply.  */
11920 char be_app ();
11921 int
11922 main ()
11923 {
11924 be_app ();
11925   ;
11926   return 0;
11927 }
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11931   (eval $ac_link) 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -z "$ac_c_werror_flag"
11939                          || test ! -s conftest.err'
11940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941   (eval $ac_try) 2>&5
11942   ac_status=$?
11943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944   (exit $ac_status); }; } &&
11945          { ac_try='test -s conftest$ac_exeext'
11946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947   (eval $ac_try) 2>&5
11948   ac_status=$?
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); }; }; then
11951   ac_cv_lib_be_be_app=yes
11952 else
11953   echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 ac_cv_lib_be_be_app=no
11957 fi
11958 rm -f conftest.err conftest.$ac_objext \
11959       conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11961 fi
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11963 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11964 if test $ac_cv_lib_be_be_app = yes; then
11965   LIBS="$LIBS -lbe -lroot -lnet"
11966 else
11967   :
11968 fi
11969
11970
11971 ac_ext=c
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976 if test -n "$ac_tool_prefix"; then
11977   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11978 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11979 echo "$as_me:$LINENO: checking for $ac_word" >&5
11980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11981 if test "${ac_cv_prog_CC+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   if test -n "$CC"; then
11985   ac_cv_prog_CC="$CC" # Let the user override the test.
11986 else
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11989 do
11990   IFS=$as_save_IFS
11991   test -z "$as_dir" && as_dir=.
11992   for ac_exec_ext in '' $ac_executable_extensions; do
11993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996     break 2
11997   fi
11998 done
11999 done
12000
12001 fi
12002 fi
12003 CC=$ac_cv_prog_CC
12004 if test -n "$CC"; then
12005   echo "$as_me:$LINENO: result: $CC" >&5
12006 echo "${ECHO_T}$CC" >&6
12007 else
12008   echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6
12010 fi
12011
12012 fi
12013 if test -z "$ac_cv_prog_CC"; then
12014   ac_ct_CC=$CC
12015   # Extract the first word of "gcc", so it can be a program name with args.
12016 set dummy gcc; ac_word=$2
12017 echo "$as_me:$LINENO: checking for $ac_word" >&5
12018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   if test -n "$ac_ct_CC"; then
12023   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12024 else
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028   IFS=$as_save_IFS
12029   test -z "$as_dir" && as_dir=.
12030   for ac_exec_ext in '' $ac_executable_extensions; do
12031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032     ac_cv_prog_ac_ct_CC="gcc"
12033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034     break 2
12035   fi
12036 done
12037 done
12038
12039 fi
12040 fi
12041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12042 if test -n "$ac_ct_CC"; then
12043   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12044 echo "${ECHO_T}$ac_ct_CC" >&6
12045 else
12046   echo "$as_me:$LINENO: result: no" >&5
12047 echo "${ECHO_T}no" >&6
12048 fi
12049
12050   CC=$ac_ct_CC
12051 else
12052   CC="$ac_cv_prog_CC"
12053 fi
12054
12055 if test -z "$CC"; then
12056   if test -n "$ac_tool_prefix"; then
12057   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12058 set dummy ${ac_tool_prefix}cc; ac_word=$2
12059 echo "$as_me:$LINENO: checking for $ac_word" >&5
12060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12061 if test "${ac_cv_prog_CC+set}" = set; then
12062   echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064   if test -n "$CC"; then
12065   ac_cv_prog_CC="$CC" # Let the user override the test.
12066 else
12067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12069 do
12070   IFS=$as_save_IFS
12071   test -z "$as_dir" && as_dir=.
12072   for ac_exec_ext in '' $ac_executable_extensions; do
12073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12074     ac_cv_prog_CC="${ac_tool_prefix}cc"
12075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12076     break 2
12077   fi
12078 done
12079 done
12080
12081 fi
12082 fi
12083 CC=$ac_cv_prog_CC
12084 if test -n "$CC"; then
12085   echo "$as_me:$LINENO: result: $CC" >&5
12086 echo "${ECHO_T}$CC" >&6
12087 else
12088   echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6
12090 fi
12091
12092 fi
12093 if test -z "$ac_cv_prog_CC"; then
12094   ac_ct_CC=$CC
12095   # Extract the first word of "cc", so it can be a program name with args.
12096 set dummy cc; ac_word=$2
12097 echo "$as_me:$LINENO: checking for $ac_word" >&5
12098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   if test -n "$ac_ct_CC"; then
12103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12104 else
12105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110   for ac_exec_ext in '' $ac_executable_extensions; do
12111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_prog_ac_ct_CC="cc"
12113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117 done
12118
12119 fi
12120 fi
12121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12122 if test -n "$ac_ct_CC"; then
12123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12124 echo "${ECHO_T}$ac_ct_CC" >&6
12125 else
12126   echo "$as_me:$LINENO: result: no" >&5
12127 echo "${ECHO_T}no" >&6
12128 fi
12129
12130   CC=$ac_ct_CC
12131 else
12132   CC="$ac_cv_prog_CC"
12133 fi
12134
12135 fi
12136 if test -z "$CC"; then
12137   # Extract the first word of "cc", so it can be a program name with args.
12138 set dummy cc; ac_word=$2
12139 echo "$as_me:$LINENO: checking for $ac_word" >&5
12140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12141 if test "${ac_cv_prog_CC+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   if test -n "$CC"; then
12145   ac_cv_prog_CC="$CC" # Let the user override the test.
12146 else
12147   ac_prog_rejected=no
12148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153   for ac_exec_ext in '' $ac_executable_extensions; do
12154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12156        ac_prog_rejected=yes
12157        continue
12158      fi
12159     ac_cv_prog_CC="cc"
12160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12161     break 2
12162   fi
12163 done
12164 done
12165
12166 if test $ac_prog_rejected = yes; then
12167   # We found a bogon in the path, so make sure we never use it.
12168   set dummy $ac_cv_prog_CC
12169   shift
12170   if test $# != 0; then
12171     # We chose a different compiler from the bogus one.
12172     # However, it has the same basename, so the bogon will be chosen
12173     # first if we set CC to just the basename; use the full file name.
12174     shift
12175     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12176   fi
12177 fi
12178 fi
12179 fi
12180 CC=$ac_cv_prog_CC
12181 if test -n "$CC"; then
12182   echo "$as_me:$LINENO: result: $CC" >&5
12183 echo "${ECHO_T}$CC" >&6
12184 else
12185   echo "$as_me:$LINENO: result: no" >&5
12186 echo "${ECHO_T}no" >&6
12187 fi
12188
12189 fi
12190 if test -z "$CC"; then
12191   if test -n "$ac_tool_prefix"; then
12192   for ac_prog in cl
12193   do
12194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12196 echo "$as_me:$LINENO: checking for $ac_word" >&5
12197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12198 if test "${ac_cv_prog_CC+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   if test -n "$CC"; then
12202   ac_cv_prog_CC="$CC" # Let the user override the test.
12203 else
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209   for ac_exec_ext in '' $ac_executable_extensions; do
12210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216 done
12217
12218 fi
12219 fi
12220 CC=$ac_cv_prog_CC
12221 if test -n "$CC"; then
12222   echo "$as_me:$LINENO: result: $CC" >&5
12223 echo "${ECHO_T}$CC" >&6
12224 else
12225   echo "$as_me:$LINENO: result: no" >&5
12226 echo "${ECHO_T}no" >&6
12227 fi
12228
12229     test -n "$CC" && break
12230   done
12231 fi
12232 if test -z "$CC"; then
12233   ac_ct_CC=$CC
12234   for ac_prog in cl
12235 do
12236   # Extract the first word of "$ac_prog", so it can be a program name with args.
12237 set dummy $ac_prog; ac_word=$2
12238 echo "$as_me:$LINENO: checking for $ac_word" >&5
12239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12241   echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243   if test -n "$ac_ct_CC"; then
12244   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12245 else
12246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12247 for as_dir in $PATH
12248 do
12249   IFS=$as_save_IFS
12250   test -z "$as_dir" && as_dir=.
12251   for ac_exec_ext in '' $ac_executable_extensions; do
12252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12253     ac_cv_prog_ac_ct_CC="$ac_prog"
12254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12255     break 2
12256   fi
12257 done
12258 done
12259
12260 fi
12261 fi
12262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12263 if test -n "$ac_ct_CC"; then
12264   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12265 echo "${ECHO_T}$ac_ct_CC" >&6
12266 else
12267   echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269 fi
12270
12271   test -n "$ac_ct_CC" && break
12272 done
12273
12274   CC=$ac_ct_CC
12275 fi
12276
12277 fi
12278
12279
12280 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12281 See \`config.log' for more details." >&5
12282 echo "$as_me: error: no acceptable C compiler found in \$PATH
12283 See \`config.log' for more details." >&2;}
12284    { (exit 1); exit 1; }; }
12285
12286 # Provide some information about the compiler.
12287 echo "$as_me:$LINENO:" \
12288      "checking for C compiler version" >&5
12289 ac_compiler=`set X $ac_compile; echo $2`
12290 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12291   (eval $ac_compiler --version </dev/null >&5) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }
12295 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12296   (eval $ac_compiler -v </dev/null >&5) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }
12300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12301   (eval $ac_compiler -V </dev/null >&5) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }
12305
12306 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317
12318 int
12319 main ()
12320 {
12321 #ifndef __GNUC__
12322        choke me
12323 #endif
12324
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331   (eval $ac_compile) 2>conftest.er1
12332   ac_status=$?
12333   grep -v '^ *+' conftest.er1 >conftest.err
12334   rm -f conftest.er1
12335   cat conftest.err >&5
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); } &&
12338          { ac_try='test -z "$ac_c_werror_flag"
12339                          || test ! -s conftest.err'
12340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341   (eval $ac_try) 2>&5
12342   ac_status=$?
12343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344   (exit $ac_status); }; } &&
12345          { ac_try='test -s conftest.$ac_objext'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; }; then
12351   ac_compiler_gnu=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 ac_compiler_gnu=no
12357 fi
12358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12360
12361 fi
12362 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12364 GCC=`test $ac_compiler_gnu = yes && echo yes`
12365 ac_test_CFLAGS=${CFLAGS+set}
12366 ac_save_CFLAGS=$CFLAGS
12367 CFLAGS="-g"
12368 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12370 if test "${ac_cv_prog_cc_g+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h.  */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h.  */
12379
12380 int
12381 main ()
12382 {
12383
12384   ;
12385   return 0;
12386 }
12387 _ACEOF
12388 rm -f conftest.$ac_objext
12389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390   (eval $ac_compile) 2>conftest.er1
12391   ac_status=$?
12392   grep -v '^ *+' conftest.er1 >conftest.err
12393   rm -f conftest.er1
12394   cat conftest.err >&5
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); } &&
12397          { ac_try='test -z "$ac_c_werror_flag"
12398                          || test ! -s conftest.err'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; } &&
12404          { ac_try='test -s conftest.$ac_objext'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   ac_cv_prog_cc_g=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_cv_prog_cc_g=no
12416 fi
12417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12421 if test "$ac_test_CFLAGS" = set; then
12422   CFLAGS=$ac_save_CFLAGS
12423 elif test $ac_cv_prog_cc_g = yes; then
12424   if test "$GCC" = yes; then
12425     CFLAGS="-g -O2"
12426   else
12427     CFLAGS="-g"
12428   fi
12429 else
12430   if test "$GCC" = yes; then
12431     CFLAGS="-O2"
12432   else
12433     CFLAGS=
12434   fi
12435 fi
12436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   ac_cv_prog_cc_stdc=no
12442 ac_save_CC=$CC
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h.  */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h.  */
12449 #include <stdarg.h>
12450 #include <stdio.h>
12451 #include <sys/types.h>
12452 #include <sys/stat.h>
12453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12454 struct buf { int x; };
12455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12456 static char *e (p, i)
12457      char **p;
12458      int i;
12459 {
12460   return p[i];
12461 }
12462 static char *f (char * (*g) (char **, int), char **p, ...)
12463 {
12464   char *s;
12465   va_list v;
12466   va_start (v,p);
12467   s = g (p, va_arg (v,int));
12468   va_end (v);
12469   return s;
12470 }
12471
12472 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12473    function prototypes and stuff, but not '\xHH' hex character constants.
12474    These don't provoke an error unfortunately, instead are silently treated
12475    as 'x'.  The following induces an error, until -std1 is added to get
12476    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12477    array size at least.  It's necessary to write '\x00'==0 to get something
12478    that's true only with -std1.  */
12479 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12480
12481 int test (int i, double x);
12482 struct s1 {int (*f) (int a);};
12483 struct s2 {int (*f) (double a);};
12484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12485 int argc;
12486 char **argv;
12487 int
12488 main ()
12489 {
12490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 # Don't try gcc -ansi; that turns off useful extensions and
12496 # breaks some systems' header files.
12497 # AIX                   -qlanglvl=ansi
12498 # Ultrix and OSF/1      -std1
12499 # HP-UX 10.20 and later -Ae
12500 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12501 # SVR4                  -Xc -D__EXTENSIONS__
12502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12503 do
12504   CC="$ac_save_CC $ac_arg"
12505   rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag"
12515                          || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_prog_cc_stdc=$ac_arg
12528 break
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 fi
12534 rm -f conftest.err conftest.$ac_objext
12535 done
12536 rm -f conftest.$ac_ext conftest.$ac_objext
12537 CC=$ac_save_CC
12538
12539 fi
12540
12541 case "x$ac_cv_prog_cc_stdc" in
12542   x|xno)
12543     echo "$as_me:$LINENO: result: none needed" >&5
12544 echo "${ECHO_T}none needed" >&6 ;;
12545   *)
12546     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12547 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12548     CC="$CC $ac_cv_prog_cc_stdc" ;;
12549 esac
12550
12551 # Some people use a C++ compiler to compile C.  Since we use `exit',
12552 # in C++ we need to declare it.  In case someone uses the same compiler
12553 # for both compiling C and C++ we need to have the C++ compiler decide
12554 # the declaration of exit, since it's the most demanding environment.
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #ifndef __cplusplus
12557   choke me
12558 #endif
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562   (eval $ac_compile) 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -z "$ac_c_werror_flag"
12570                          || test ! -s conftest.err'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   for ac_declaration in \
12583    '' \
12584    'extern "C" void std::exit (int) throw (); using std::exit;' \
12585    'extern "C" void std::exit (int); using std::exit;' \
12586    'extern "C" void exit (int) throw ();' \
12587    'extern "C" void exit (int);' \
12588    'void exit (int);'
12589 do
12590   cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596 $ac_declaration
12597 #include <stdlib.h>
12598 int
12599 main ()
12600 {
12601 exit (42);
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_c_werror_flag"
12616                          || test ! -s conftest.err'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; } &&
12622          { ac_try='test -s conftest.$ac_objext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   :
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 continue
12634 fi
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636   cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h.  */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h.  */
12642 $ac_declaration
12643 int
12644 main ()
12645 {
12646 exit (42);
12647   ;
12648   return 0;
12649 }
12650 _ACEOF
12651 rm -f conftest.$ac_objext
12652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12653   (eval $ac_compile) 2>conftest.er1
12654   ac_status=$?
12655   grep -v '^ *+' conftest.er1 >conftest.err
12656   rm -f conftest.er1
12657   cat conftest.err >&5
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); } &&
12660          { ac_try='test -z "$ac_c_werror_flag"
12661                          || test ! -s conftest.err'
12662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663   (eval $ac_try) 2>&5
12664   ac_status=$?
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); }; } &&
12667          { ac_try='test -s conftest.$ac_objext'
12668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669   (eval $ac_try) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); }; }; then
12673   break
12674 else
12675   echo "$as_me: failed program was:" >&5
12676 sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 fi
12679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12680 done
12681 rm -f conftest*
12682 if test -n "$ac_declaration"; then
12683   echo '#ifdef __cplusplus' >>confdefs.h
12684   echo $ac_declaration      >>confdefs.h
12685   echo '#endif'             >>confdefs.h
12686 fi
12687
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 fi
12693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12694 ac_ext=c
12695 ac_cpp='$CPP $CPPFLAGS'
12696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12699
12700 depcc="$CC"   am_compiler_list=
12701
12702 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12705   echo $ECHO_N "(cached) $ECHO_C" >&6
12706 else
12707   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12708   # We make a subdir and do the tests there.  Otherwise we can end up
12709   # making bogus files that we don't know about and never remove.  For
12710   # instance it was reported that on HP-UX the gcc test will end up
12711   # making a dummy file named `D' -- because `-MD' means `put the output
12712   # in D'.
12713   mkdir conftest.dir
12714   # Copy depcomp to subdir because otherwise we won't find it if we're
12715   # using a relative directory.
12716   cp "$am_depcomp" conftest.dir
12717   cd conftest.dir
12718   # We will build objects and dependencies in a subdirectory because
12719   # it helps to detect inapplicable dependency modes.  For instance
12720   # both Tru64's cc and ICC support -MD to output dependencies as a
12721   # side effect of compilation, but ICC will put the dependencies in
12722   # the current directory while Tru64 will put them in the object
12723   # directory.
12724   mkdir sub
12725
12726   am_cv_CC_dependencies_compiler_type=none
12727   if test "$am_compiler_list" = ""; then
12728      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12729   fi
12730   for depmode in $am_compiler_list; do
12731     # Setup a source with many dependencies, because some compilers
12732     # like to wrap large dependency lists on column 80 (with \), and
12733     # we should not choose a depcomp mode which is confused by this.
12734     #
12735     # We need to recreate these files for each test, as the compiler may
12736     # overwrite some of them when testing with obscure command lines.
12737     # This happens at least with the AIX C compiler.
12738     : > sub/conftest.c
12739     for i in 1 2 3 4 5 6; do
12740       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12741       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12742       # Solaris 8's {/usr,}/bin/sh.
12743       touch sub/conftst$i.h
12744     done
12745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12746
12747     case $depmode in
12748     nosideeffect)
12749       # after this tag, mechanisms are not by side-effect, so they'll
12750       # only be used when explicitly requested
12751       if test "x$enable_dependency_tracking" = xyes; then
12752         continue
12753       else
12754         break
12755       fi
12756       ;;
12757     none) break ;;
12758     esac
12759     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12760     # mode.  It turns out that the SunPro C++ compiler does not properly
12761     # handle `-M -o', and we need to detect this.
12762     if depmode=$depmode \
12763        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12764        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12765        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12766          >/dev/null 2>conftest.err &&
12767        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12768        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12769        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12770       # icc doesn't choke on unknown options, it will just issue warnings
12771       # or remarks (even with -Werror).  So we grep stderr for any message
12772       # that says an option was ignored or not supported.
12773       # When given -MP, icc 7.0 and 7.1 complain thusly:
12774       #   icc: Command line warning: ignoring option '-M'; no argument required
12775       # The diagnosis changed in icc 8.0:
12776       #   icc: Command line remark: option '-MP' not supported
12777       if (grep 'ignoring option' conftest.err ||
12778           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12779         am_cv_CC_dependencies_compiler_type=$depmode
12780         break
12781       fi
12782     fi
12783   done
12784
12785   cd ..
12786   rm -rf conftest.dir
12787 else
12788   am_cv_CC_dependencies_compiler_type=none
12789 fi
12790
12791 fi
12792 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12793 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12795
12796
12797
12798 if
12799   test "x$enable_dependency_tracking" != xno \
12800   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12801   am__fastdepCC_TRUE=
12802   am__fastdepCC_FALSE='#'
12803 else
12804   am__fastdepCC_TRUE='#'
12805   am__fastdepCC_FALSE=
12806 fi
12807
12808
12809 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12810         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12811 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12812    { (exit 1); exit 1; }; }
12813 fi
12814
12815 # test for make depend flag
12816 OL_MKDEP=
12817 OL_MKDEP_FLAGS=
12818 if test -z "${MKDEP}"; then
12819         OL_MKDEP="${CC-cc}"
12820         if test -z "${MKDEP_FLAGS}"; then
12821                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12822 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12823 if test "${ol_cv_mkdep+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826
12827                         ol_cv_mkdep=no
12828                         for flag in "-M" "-xM"; do
12829                                 cat > conftest.c <<EOF
12830  noCode;
12831 EOF
12832                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; } \
12838                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12839                                 then
12840                                         if test ! -f conftest."${ac_object}" ; then
12841                                                 ol_cv_mkdep=$flag
12842                                                 OL_MKDEP_FLAGS="$flag"
12843                                                 break
12844                                         fi
12845                                 fi
12846                         done
12847                         rm -f conftest*
12848
12849 fi
12850 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12851 echo "${ECHO_T}$ol_cv_mkdep" >&6
12852         else
12853                 cc_cv_mkdep=yes
12854                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12855         fi
12856 else
12857         cc_cv_mkdep=yes
12858         OL_MKDEP="${MKDEP}"
12859         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12860 fi
12861
12862
12863
12864 if test "${ol_cv_mkdep}" = no ; then
12865         # this will soon become an error
12866         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12867 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12868 fi
12869
12870 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12871 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12872 if test "${ac_cv_lib_s_afopen+set}" = set; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-ls  $LIBS"
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883
12884 /* Override any gcc2 internal prototype to avoid an error.  */
12885 #ifdef __cplusplus
12886 extern "C"
12887 #endif
12888 /* We use char because int might match the return type of a gcc2
12889    builtin and then its argument prototype would still apply.  */
12890 char afopen ();
12891 int
12892 main ()
12893 {
12894 afopen ();
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12901   (eval $ac_link) 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -z "$ac_c_werror_flag"
12909                          || test ! -s conftest.err'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest$ac_exeext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   ac_cv_lib_s_afopen=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_cv_lib_s_afopen=no
12927 fi
12928 rm -f conftest.err conftest.$ac_objext \
12929       conftest$ac_exeext conftest.$ac_ext
12930 LIBS=$ac_check_lib_save_LIBS
12931 fi
12932 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12933 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12934 if test $ac_cv_lib_s_afopen = yes; then
12935
12936         AUTH_LIBS=-ls
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_AIX_SECURITY 1
12940 _ACEOF
12941
12942
12943 fi
12944
12945
12946 case "$target" in
12947 *-ibm-openedition)
12948         ac_cv_func_getopt=no
12949
12950 cat >>confdefs.h <<\_ACEOF
12951 #define BOTH_STRINGS_H 1
12952 _ACEOF
12953
12954         ;;
12955 esac
12956
12957 ol_link_modules=no
12958 WITH_MODULES_ENABLED=no
12959 if test $ol_enable_modules != no ; then
12960
12961 for ac_header in ltdl.h
12962 do
12963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12965   echo "$as_me:$LINENO: checking for $ac_header" >&5
12966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12968   echo $ECHO_N "(cached) $ECHO_C" >&6
12969 fi
12970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12972 else
12973   # Is the header compilable?
12974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 #include <$ac_header>
12984 _ACEOF
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987   (eval $ac_compile) 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } &&
12994          { ac_try='test -z "$ac_c_werror_flag"
12995                          || test ! -s conftest.err'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; } &&
13001          { ac_try='test -s conftest.$ac_objext'
13002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003   (eval $ac_try) 2>&5
13004   ac_status=$?
13005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006   (exit $ac_status); }; }; then
13007   ac_header_compiler=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 ac_header_compiler=no
13013 fi
13014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13016 echo "${ECHO_T}$ac_header_compiler" >&6
13017
13018 # Is the header present?
13019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13022 /* confdefs.h.  */
13023 _ACEOF
13024 cat confdefs.h >>conftest.$ac_ext
13025 cat >>conftest.$ac_ext <<_ACEOF
13026 /* end confdefs.h.  */
13027 #include <$ac_header>
13028 _ACEOF
13029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } >/dev/null; then
13037   if test -s conftest.err; then
13038     ac_cpp_err=$ac_c_preproc_warn_flag
13039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13040   else
13041     ac_cpp_err=
13042   fi
13043 else
13044   ac_cpp_err=yes
13045 fi
13046 if test -z "$ac_cpp_err"; then
13047   ac_header_preproc=yes
13048 else
13049   echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052   ac_header_preproc=no
13053 fi
13054 rm -f conftest.err conftest.$ac_ext
13055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13056 echo "${ECHO_T}$ac_header_preproc" >&6
13057
13058 # So?  What about this header?
13059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13060   yes:no: )
13061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13065     ac_header_preproc=yes
13066     ;;
13067   no:yes:* )
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13080     (
13081       cat <<\_ASBOX
13082 ## ------------------------------------------ ##
13083 ## Report this to the AC_PACKAGE_NAME lists.  ##
13084 ## ------------------------------------------ ##
13085 _ASBOX
13086     ) |
13087       sed "s/^/$as_me: WARNING:     /" >&2
13088     ;;
13089 esac
13090 echo "$as_me:$LINENO: checking for $ac_header" >&5
13091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093   echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095   eval "$as_ac_Header=\$ac_header_preproc"
13096 fi
13097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13099
13100 fi
13101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13102   cat >>confdefs.h <<_ACEOF
13103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104 _ACEOF
13105
13106 fi
13107
13108 done
13109
13110
13111         if test $ac_cv_header_ltdl_h = no ; then
13112                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13113 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13114    { (exit 1); exit 1; }; }
13115         fi
13116
13117         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13118 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13119 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-lltdl  $LIBS"
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h.  */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h.  */
13130
13131 /* Override any gcc2 internal prototype to avoid an error.  */
13132 #ifdef __cplusplus
13133 extern "C"
13134 #endif
13135 /* We use char because int might match the return type of a gcc2
13136    builtin and then its argument prototype would still apply.  */
13137 char lt_dlinit ();
13138 int
13139 main ()
13140 {
13141 lt_dlinit ();
13142   ;
13143   return 0;
13144 }
13145 _ACEOF
13146 rm -f conftest.$ac_objext conftest$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148   (eval $ac_link) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } &&
13155          { ac_try='test -z "$ac_c_werror_flag"
13156                          || test ! -s conftest.err'
13157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158   (eval $ac_try) 2>&5
13159   ac_status=$?
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); }; } &&
13162          { ac_try='test -s conftest$ac_exeext'
13163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164   (eval $ac_try) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   ac_cv_lib_ltdl_lt_dlinit=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_cv_lib_ltdl_lt_dlinit=no
13174 fi
13175 rm -f conftest.err conftest.$ac_objext \
13176       conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13178 fi
13179 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13180 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13181 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13182
13183                 MODULES_LIBS=-lltdl
13184
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_LIBLTDL 1
13187 _ACEOF
13188
13189
13190 fi
13191
13192
13193         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13194                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13195 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13196    { (exit 1); exit 1; }; }
13197         fi
13198         ol_link_modules=yes
13199         WITH_MODULES_ENABLED=yes
13200
13201 else
13202         for i in $Backends; do
13203                 eval "ol_tmp=\$ol_enable_$i"
13204                 if test $ol_tmp = mod ; then
13205                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13206 echo "$as_me: WARNING: building static $i backend" >&2;}
13207                         eval "ol_enable_$i=yes"
13208                 fi
13209         done
13210         for i in $Overlays; do
13211                 eval "ol_tmp=\$ol_enable_$i"
13212                 if test $ol_tmp = mod ; then
13213                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13214 echo "$as_me: WARNING: building static $i overlay" >&2;}
13215                         eval "ol_enable_$i=yes"
13216                 fi
13217         done
13218 fi
13219
13220 # test for EBCDIC
13221 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13222 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13223 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226
13227         cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233
13234 #if !('M' == 0xd4)
13235 #include <__ASCII__/generate_error.h>
13236 #endif
13237
13238 _ACEOF
13239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } >/dev/null; then
13247   if test -s conftest.err; then
13248     ac_cpp_err=$ac_c_preproc_warn_flag
13249     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13250   else
13251     ac_cpp_err=
13252   fi
13253 else
13254   ac_cpp_err=yes
13255 fi
13256 if test -z "$ac_cpp_err"; then
13257   ol_cv_cpp_ebcdic=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262   ol_cv_cpp_ebcdic=no
13263 fi
13264 rm -f conftest.err conftest.$ac_ext
13265 fi
13266 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13267 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13268 if test $ol_cv_cpp_ebcdic = yes ; then
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_EBCDIC 1
13272 _ACEOF
13273
13274 fi
13275
13276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13278 if test "${ol_cv_header_stdc+set}" = set; then
13279   echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281   cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #include <stdlib.h>
13288 #include <stdarg.h>
13289 #include <string.h>
13290 #include <float.h>
13291 _ACEOF
13292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13294   ac_status=$?
13295   grep -v '^ *+' conftest.er1 >conftest.err
13296   rm -f conftest.er1
13297   cat conftest.err >&5
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); } >/dev/null; then
13300   if test -s conftest.err; then
13301     ac_cpp_err=$ac_c_preproc_warn_flag
13302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13303   else
13304     ac_cpp_err=
13305   fi
13306 else
13307   ac_cpp_err=yes
13308 fi
13309 if test -z "$ac_cpp_err"; then
13310   ol_cv_header_stdc=yes
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315   ol_cv_header_stdc=no
13316 fi
13317 rm -f conftest.err conftest.$ac_ext
13318
13319 if test $ol_cv_header_stdc = yes; then
13320   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h.  */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h.  */
13327 #include <string.h>
13328
13329 _ACEOF
13330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13331   $EGREP "memchr" >/dev/null 2>&1; then
13332   :
13333 else
13334   ol_cv_header_stdc=no
13335 fi
13336 rm -f conftest*
13337
13338 fi
13339
13340 if test $ol_cv_header_stdc = yes; then
13341   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13342 cat >conftest.$ac_ext <<_ACEOF
13343 /* confdefs.h.  */
13344 _ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h.  */
13348 #include <stdlib.h>
13349
13350 _ACEOF
13351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352   $EGREP "free" >/dev/null 2>&1; then
13353   :
13354 else
13355   ol_cv_header_stdc=no
13356 fi
13357 rm -f conftest*
13358
13359 fi
13360
13361 if test $ol_cv_header_stdc = yes; then
13362   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13363 if test "$cross_compiling" = yes; then
13364   :
13365 else
13366   cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h.  */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h.  */
13372 #include <ctype.h>
13373 #ifndef HAVE_EBCDIC
13374 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13375 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13376 #else
13377 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13378                 || ('j' <= (c) && (c) <= 'r') \
13379                 || ('s' <= (c) && (c) <= 'z'))
13380 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13381 #endif
13382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13383 int main () { int i; for (i = 0; i < 256; i++)
13384 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13385 exit (0); }
13386
13387 _ACEOF
13388 rm -f conftest$ac_exeext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13390   (eval $ac_link) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   :
13400 else
13401   echo "$as_me: program exited with status $ac_status" >&5
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ( exit $ac_status )
13406 ol_cv_header_stdc=no
13407 fi
13408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 fi
13411 fi
13412 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13413 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13414 if test $ol_cv_header_stdc = yes; then
13415   cat >>confdefs.h <<\_ACEOF
13416 #define STDC_HEADERS 1
13417 _ACEOF
13418
13419 fi
13420 ac_cv_header_stdc=disable
13421
13422
13423 if test $ol_cv_header_stdc != yes; then
13424         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13425 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13426 fi
13427
13428
13429
13430
13431
13432
13433 ac_header_dirent=no
13434 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13435   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13436 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13437 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 else
13441   cat >conftest.$ac_ext <<_ACEOF
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 #include <sys/types.h>
13448 #include <$ac_hdr>
13449
13450 int
13451 main ()
13452 {
13453 if ((DIR *) 0)
13454 return 0;
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461   (eval $ac_compile) 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -z "$ac_c_werror_flag"
13469                          || test ! -s conftest.err'
13470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471   (eval $ac_try) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; } &&
13475          { ac_try='test -s conftest.$ac_objext'
13476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477   (eval $ac_try) 2>&5
13478   ac_status=$?
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); }; }; then
13481   eval "$as_ac_Header=yes"
13482 else
13483   echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486 eval "$as_ac_Header=no"
13487 fi
13488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13489 fi
13490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13493   cat >>confdefs.h <<_ACEOF
13494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13495 _ACEOF
13496
13497 ac_header_dirent=$ac_hdr; break
13498 fi
13499
13500 done
13501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13502 if test $ac_header_dirent = dirent.h; then
13503   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13505 if test "${ac_cv_search_opendir+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   ac_func_search_save_LIBS=$LIBS
13509 ac_cv_search_opendir=no
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516
13517 /* Override any gcc2 internal prototype to avoid an error.  */
13518 #ifdef __cplusplus
13519 extern "C"
13520 #endif
13521 /* We use char because int might match the return type of a gcc2
13522    builtin and then its argument prototype would still apply.  */
13523 char opendir ();
13524 int
13525 main ()
13526 {
13527 opendir ();
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534   (eval $ac_link) 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -z "$ac_c_werror_flag"
13542                          || test ! -s conftest.err'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; } &&
13548          { ac_try='test -s conftest$ac_exeext'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; }; then
13554   ac_cv_search_opendir="none required"
13555 else
13556   echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 fi
13560 rm -f conftest.err conftest.$ac_objext \
13561       conftest$ac_exeext conftest.$ac_ext
13562 if test "$ac_cv_search_opendir" = no; then
13563   for ac_lib in dir; do
13564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13565     cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571
13572 /* Override any gcc2 internal prototype to avoid an error.  */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 /* We use char because int might match the return type of a gcc2
13577    builtin and then its argument prototype would still apply.  */
13578 char opendir ();
13579 int
13580 main ()
13581 {
13582 opendir ();
13583   ;
13584   return 0;
13585 }
13586 _ACEOF
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589   (eval $ac_link) 2>conftest.er1
13590   ac_status=$?
13591   grep -v '^ *+' conftest.er1 >conftest.err
13592   rm -f conftest.er1
13593   cat conftest.err >&5
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); } &&
13596          { ac_try='test -z "$ac_c_werror_flag"
13597                          || test ! -s conftest.err'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; } &&
13603          { ac_try='test -s conftest$ac_exeext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_cv_search_opendir="-l$ac_lib"
13610 break
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 fi
13616 rm -f conftest.err conftest.$ac_objext \
13617       conftest$ac_exeext conftest.$ac_ext
13618   done
13619 fi
13620 LIBS=$ac_func_search_save_LIBS
13621 fi
13622 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13623 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13624 if test "$ac_cv_search_opendir" != no; then
13625   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13626
13627 fi
13628
13629 else
13630   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13631 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13632 if test "${ac_cv_search_opendir+set}" = set; then
13633   echo $ECHO_N "(cached) $ECHO_C" >&6
13634 else
13635   ac_func_search_save_LIBS=$LIBS
13636 ac_cv_search_opendir=no
13637 cat >conftest.$ac_ext <<_ACEOF
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643
13644 /* Override any gcc2 internal prototype to avoid an error.  */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 /* We use char because int might match the return type of a gcc2
13649    builtin and then its argument prototype would still apply.  */
13650 char opendir ();
13651 int
13652 main ()
13653 {
13654 opendir ();
13655   ;
13656   return 0;
13657 }
13658 _ACEOF
13659 rm -f conftest.$ac_objext conftest$ac_exeext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661   (eval $ac_link) 2>conftest.er1
13662   ac_status=$?
13663   grep -v '^ *+' conftest.er1 >conftest.err
13664   rm -f conftest.er1
13665   cat conftest.err >&5
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); } &&
13668          { ac_try='test -z "$ac_c_werror_flag"
13669                          || test ! -s conftest.err'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; } &&
13675          { ac_try='test -s conftest$ac_exeext'
13676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677   (eval $ac_try) 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; }; then
13681   ac_cv_search_opendir="none required"
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 fi
13687 rm -f conftest.err conftest.$ac_objext \
13688       conftest$ac_exeext conftest.$ac_ext
13689 if test "$ac_cv_search_opendir" = no; then
13690   for ac_lib in x; do
13691     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13692     cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698
13699 /* Override any gcc2 internal prototype to avoid an error.  */
13700 #ifdef __cplusplus
13701 extern "C"
13702 #endif
13703 /* We use char because int might match the return type of a gcc2
13704    builtin and then its argument prototype would still apply.  */
13705 char opendir ();
13706 int
13707 main ()
13708 {
13709 opendir ();
13710   ;
13711   return 0;
13712 }
13713 _ACEOF
13714 rm -f conftest.$ac_objext conftest$ac_exeext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13716   (eval $ac_link) 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } &&
13723          { ac_try='test -z "$ac_c_werror_flag"
13724                          || test ! -s conftest.err'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; } &&
13730          { ac_try='test -s conftest$ac_exeext'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_cv_search_opendir="-l$ac_lib"
13737 break
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 fi
13743 rm -f conftest.err conftest.$ac_objext \
13744       conftest$ac_exeext conftest.$ac_ext
13745   done
13746 fi
13747 LIBS=$ac_func_search_save_LIBS
13748 fi
13749 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13750 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13751 if test "$ac_cv_search_opendir" != no; then
13752   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13753
13754 fi
13755
13756 fi
13757
13758 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13759 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13760 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13761   echo $ECHO_N "(cached) $ECHO_C" >&6
13762 else
13763   cat >conftest.$ac_ext <<_ACEOF
13764 /* confdefs.h.  */
13765 _ACEOF
13766 cat confdefs.h >>conftest.$ac_ext
13767 cat >>conftest.$ac_ext <<_ACEOF
13768 /* end confdefs.h.  */
13769 #include <sys/types.h>
13770 #include <sys/wait.h>
13771 #ifndef WEXITSTATUS
13772 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13773 #endif
13774 #ifndef WIFEXITED
13775 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13776 #endif
13777
13778 int
13779 main ()
13780 {
13781   int s;
13782   wait (&s);
13783   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13790   (eval $ac_compile) 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } &&
13797          { ac_try='test -z "$ac_c_werror_flag"
13798                          || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest.$ac_objext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_header_sys_wait_h=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_cv_header_sys_wait_h=no
13816 fi
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13818 fi
13819 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13820 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13821 if test $ac_cv_header_sys_wait_h = yes; then
13822
13823 cat >>confdefs.h <<\_ACEOF
13824 #define HAVE_SYS_WAIT_H 1
13825 _ACEOF
13826
13827 fi
13828
13829 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13830 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13831 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13832   echo $ECHO_N "(cached) $ECHO_C" >&6
13833 else
13834   cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h.  */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h.  */
13840 #include <sys/types.h>
13841 #include <termios.h>
13842 #ifdef TIOCGWINSZ
13843   yes
13844 #endif
13845
13846 _ACEOF
13847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13848   $EGREP "yes" >/dev/null 2>&1; then
13849   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13850 else
13851   ac_cv_sys_tiocgwinsz_in_termios_h=no
13852 fi
13853 rm -f conftest*
13854
13855 fi
13856 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13857 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13858
13859 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13860   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13861 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13862 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 #include <sys/types.h>
13872 #include <sys/ioctl.h>
13873 #ifdef TIOCGWINSZ
13874   yes
13875 #endif
13876
13877 _ACEOF
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879   $EGREP "yes" >/dev/null 2>&1; then
13880   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13881 else
13882   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13883 fi
13884 rm -f conftest*
13885
13886 fi
13887 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13888 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13889
13890   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13891
13892 cat >>confdefs.h <<\_ACEOF
13893 #define GWINSZ_IN_SYS_IOCTL 1
13894 _ACEOF
13895
13896   fi
13897 fi
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947 for ac_header in \
13948         arpa/inet.h             \
13949         arpa/nameser.h          \
13950         assert.h                \
13951         bits/types.h            \
13952         conio.h                 \
13953         crypt.h                 \
13954         direct.h                \
13955         errno.h                 \
13956         fcntl.h                 \
13957         filio.h                 \
13958         getopt.h                \
13959         grp.h                   \
13960         io.h                    \
13961         libutil.h               \
13962         limits.h                \
13963         locale.h                \
13964         netinet/tcp.h           \
13965         malloc.h                \
13966         memory.h                \
13967         psap.h                  \
13968         pwd.h                   \
13969         process.h               \
13970         sgtty.h                 \
13971         shadow.h                \
13972         stddef.h                \
13973         string.h                \
13974         strings.h               \
13975         sysexits.h              \
13976         sys/file.h              \
13977         sys/filio.h             \
13978         sys/errno.h             \
13979         sys/ioctl.h             \
13980         sys/param.h             \
13981         sys/resource.h          \
13982         sys/select.h            \
13983         sys/socket.h            \
13984         sys/stat.h              \
13985         sys/syslog.h            \
13986         sys/time.h              \
13987         sys/types.h             \
13988         sys/uio.h               \
13989         syslog.h                \
13990         termios.h               \
13991         unistd.h                \
13992         utime.h                 \
13993         winsock.h               \
13994         winsock2.h              \
13995
13996 do
13997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999   echo "$as_me:$LINENO: checking for $ac_header" >&5
14000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 fi
14004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14006 else
14007   # Is the header compilable?
14008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016 $ac_includes_default
14017 #include <$ac_header>
14018 _ACEOF
14019 rm -f conftest.$ac_objext
14020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021   (eval $ac_compile) 2>conftest.er1
14022   ac_status=$?
14023   grep -v '^ *+' conftest.er1 >conftest.err
14024   rm -f conftest.er1
14025   cat conftest.err >&5
14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027   (exit $ac_status); } &&
14028          { ac_try='test -z "$ac_c_werror_flag"
14029                          || test ! -s conftest.err'
14030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031   (eval $ac_try) 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; } &&
14035          { ac_try='test -s conftest.$ac_objext'
14036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037   (eval $ac_try) 2>&5
14038   ac_status=$?
14039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); }; }; then
14041   ac_header_compiler=yes
14042 else
14043   echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 ac_header_compiler=no
14047 fi
14048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14050 echo "${ECHO_T}$ac_header_compiler" >&6
14051
14052 # Is the header present?
14053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 #include <$ac_header>
14062 _ACEOF
14063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14065   ac_status=$?
14066   grep -v '^ *+' conftest.er1 >conftest.err
14067   rm -f conftest.er1
14068   cat conftest.err >&5
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } >/dev/null; then
14071   if test -s conftest.err; then
14072     ac_cpp_err=$ac_c_preproc_warn_flag
14073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14074   else
14075     ac_cpp_err=
14076   fi
14077 else
14078   ac_cpp_err=yes
14079 fi
14080 if test -z "$ac_cpp_err"; then
14081   ac_header_preproc=yes
14082 else
14083   echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086   ac_header_preproc=no
14087 fi
14088 rm -f conftest.err conftest.$ac_ext
14089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14090 echo "${ECHO_T}$ac_header_preproc" >&6
14091
14092 # So?  What about this header?
14093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14094   yes:no: )
14095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14099     ac_header_preproc=yes
14100     ;;
14101   no:yes:* )
14102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14114     (
14115       cat <<\_ASBOX
14116 ## ------------------------------------------ ##
14117 ## Report this to the AC_PACKAGE_NAME lists.  ##
14118 ## ------------------------------------------ ##
14119 _ASBOX
14120     ) |
14121       sed "s/^/$as_me: WARNING:     /" >&2
14122     ;;
14123 esac
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   eval "$as_ac_Header=\$ac_header_preproc"
14130 fi
14131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14133
14134 fi
14135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14136   cat >>confdefs.h <<_ACEOF
14137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14138 _ACEOF
14139
14140 fi
14141
14142 done
14143
14144
14145
14146 for ac_header in resolv.h
14147 do
14148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14149 echo "$as_me:$LINENO: checking for $ac_header" >&5
14150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14152   echo $ECHO_N "(cached) $ECHO_C" >&6
14153 else
14154   cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 $ac_includes_default
14161 #include <netinet/in.h>
14162
14163
14164 #include <$ac_header>
14165 _ACEOF
14166 rm -f conftest.$ac_objext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14168   (eval $ac_compile) 2>conftest.er1
14169   ac_status=$?
14170   grep -v '^ *+' conftest.er1 >conftest.err
14171   rm -f conftest.er1
14172   cat conftest.err >&5
14173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174   (exit $ac_status); } &&
14175          { ac_try='test -z "$ac_c_werror_flag"
14176                          || test ! -s conftest.err'
14177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178   (eval $ac_try) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); }; } &&
14182          { ac_try='test -s conftest.$ac_objext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   eval "$as_ac_Header=yes"
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 eval "$as_ac_Header=no"
14194 fi
14195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200   cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14202 _ACEOF
14203
14204 fi
14205
14206 done
14207
14208
14209
14210 for ac_header in sys/ucred.h
14211 do
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14216   echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218   cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h.  */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h.  */
14224 $ac_includes_default
14225 #ifdef HAVE_SYS_PARAM_H
14226 #include <sys/param.h>
14227 #endif
14228
14229
14230 #include <$ac_header>
14231 _ACEOF
14232 rm -f conftest.$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234   (eval $ac_compile) 2>conftest.er1
14235   ac_status=$?
14236   grep -v '^ *+' conftest.er1 >conftest.err
14237   rm -f conftest.er1
14238   cat conftest.err >&5
14239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240   (exit $ac_status); } &&
14241          { ac_try='test -z "$ac_c_werror_flag"
14242                          || test ! -s conftest.err'
14243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244   (eval $ac_try) 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest.$ac_objext'
14249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250   (eval $ac_try) 2>&5
14251   ac_status=$?
14252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253   (exit $ac_status); }; }; then
14254   eval "$as_ac_Header=yes"
14255 else
14256   echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14258
14259 eval "$as_ac_Header=no"
14260 fi
14261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14262 fi
14263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14266   cat >>confdefs.h <<_ACEOF
14267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14268 _ACEOF
14269
14270 fi
14271
14272 done
14273
14274
14275
14276
14277
14278 for ac_func in sigaction sigset
14279 do
14280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14281 echo "$as_me:$LINENO: checking for $ac_func" >&5
14282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14283 if eval "test \"\${$as_ac_var+set}\" = set"; then
14284   echo $ECHO_N "(cached) $ECHO_C" >&6
14285 else
14286   cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14294 #define $ac_func innocuous_$ac_func
14295
14296 /* System header to define __stub macros and hopefully few prototypes,
14297     which can conflict with char $ac_func (); below.
14298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14299     <limits.h> exists even on freestanding compilers.  */
14300
14301 #ifdef __STDC__
14302 # include <limits.h>
14303 #else
14304 # include <assert.h>
14305 #endif
14306
14307 #undef $ac_func
14308
14309 /* Override any gcc2 internal prototype to avoid an error.  */
14310 #ifdef __cplusplus
14311 extern "C"
14312 {
14313 #endif
14314 /* We use char because int might match the return type of a gcc2
14315    builtin and then its argument prototype would still apply.  */
14316 char $ac_func ();
14317 /* The GNU C library defines this for functions which it implements
14318     to always fail with ENOSYS.  Some functions are actually named
14319     something starting with __ and the normal name is an alias.  */
14320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14321 choke me
14322 #else
14323 char (*f) () = $ac_func;
14324 #endif
14325 #ifdef __cplusplus
14326 }
14327 #endif
14328
14329 int
14330 main ()
14331 {
14332 return f != $ac_func;
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339   (eval $ac_link) 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -z "$ac_c_werror_flag"
14347                          || test ! -s conftest.err'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest$ac_exeext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   eval "$as_ac_var=yes"
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 eval "$as_ac_var=no"
14365 fi
14366 rm -f conftest.err conftest.$ac_objext \
14367       conftest$ac_exeext conftest.$ac_ext
14368 fi
14369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14371 if test `eval echo '${'$as_ac_var'}'` = yes; then
14372   cat >>confdefs.h <<_ACEOF
14373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14374 _ACEOF
14375
14376 fi
14377 done
14378
14379
14380 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14381
14382 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14383 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14384 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14385   echo $ECHO_N "(cached) $ECHO_C" >&6
14386 else
14387   ac_check_lib_save_LIBS=$LIBS
14388 LIBS="-lV3  $LIBS"
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395
14396 /* Override any gcc2 internal prototype to avoid an error.  */
14397 #ifdef __cplusplus
14398 extern "C"
14399 #endif
14400 /* We use char because int might match the return type of a gcc2
14401    builtin and then its argument prototype would still apply.  */
14402 char sigset ();
14403 int
14404 main ()
14405 {
14406 sigset ();
14407   ;
14408   return 0;
14409 }
14410 _ACEOF
14411 rm -f conftest.$ac_objext conftest$ac_exeext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14413   (eval $ac_link) 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag"
14421                          || test ! -s conftest.err'
14422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14423   (eval $ac_try) 2>&5
14424   ac_status=$?
14425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426   (exit $ac_status); }; } &&
14427          { ac_try='test -s conftest$ac_exeext'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; }; then
14433   ac_cv_lib_V3_sigset=yes
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 ac_cv_lib_V3_sigset=no
14439 fi
14440 rm -f conftest.err conftest.$ac_objext \
14441       conftest$ac_exeext conftest.$ac_ext
14442 LIBS=$ac_check_lib_save_LIBS
14443 fi
14444 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14445 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14446 if test $ac_cv_lib_V3_sigset = yes; then
14447   cat >>confdefs.h <<_ACEOF
14448 #define HAVE_LIBV3 1
14449 _ACEOF
14450
14451   LIBS="-lV3 $LIBS"
14452
14453 fi
14454
14455 fi
14456
14457 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14458 echo "$as_me:$LINENO: checking for winsock" >&5
14459 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14460 if test "${ol_cv_winsock+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   save_LIBS="$LIBS"
14464 for curlib in ws2_32 wsock32; do
14465         LIBS="$LIBS -l$curlib"
14466         cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h.  */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h.  */
14472 #include <winsock.h>
14473
14474 int
14475 main ()
14476 {
14477
14478                         socket(0,0,0);
14479                         select(0,NULL,NULL,NULL,NULL);
14480                         closesocket(0);
14481                         gethostname(NULL,0);
14482
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext conftest$ac_exeext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489   (eval $ac_link) 2>conftest.er1
14490   ac_status=$?
14491   grep -v '^ *+' conftest.er1 >conftest.err
14492   rm -f conftest.er1
14493   cat conftest.err >&5
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -z "$ac_c_werror_flag"
14497                          || test ! -s conftest.err'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; } &&
14503          { ac_try='test -s conftest$ac_exeext'
14504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505   (eval $ac_try) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; }; then
14509   ol_cv_winsock=yes
14510 else
14511   echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ol_cv_winsock=no
14515 fi
14516 rm -f conftest.err conftest.$ac_objext \
14517       conftest$ac_exeext conftest.$ac_ext
14518
14519         if test $ol_cv_winsock = yes; then
14520
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_WINSOCK 1
14523 _ACEOF
14524
14525                 ac_cv_func_socket=yes
14526                 ac_cv_func_select=yes
14527                 ac_cv_func_closesocket=yes
14528                 ac_cv_func_gethostname=yes
14529                 if test $curlib = ws2_32; then
14530                         ol_cv_winsock=winsock2
14531
14532 cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_WINSOCK2 1
14534 _ACEOF
14535
14536                 fi
14537                 break
14538         fi
14539         LIBS="$save_LIBS"
14540 done
14541 fi
14542 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14543 echo "${ECHO_T}$ol_cv_winsock" >&6
14544 fi
14545
14546
14547 echo "$as_me:$LINENO: checking for socket" >&5
14548 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14549 if test "${ac_cv_func_socket+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   cat >conftest.$ac_ext <<_ACEOF
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14560 #define socket innocuous_socket
14561
14562 /* System header to define __stub macros and hopefully few prototypes,
14563     which can conflict with char socket (); below.
14564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14565     <limits.h> exists even on freestanding compilers.  */
14566
14567 #ifdef __STDC__
14568 # include <limits.h>
14569 #else
14570 # include <assert.h>
14571 #endif
14572
14573 #undef socket
14574
14575 /* Override any gcc2 internal prototype to avoid an error.  */
14576 #ifdef __cplusplus
14577 extern "C"
14578 {
14579 #endif
14580 /* We use char because int might match the return type of a gcc2
14581    builtin and then its argument prototype would still apply.  */
14582 char socket ();
14583 /* The GNU C library defines this for functions which it implements
14584     to always fail with ENOSYS.  Some functions are actually named
14585     something starting with __ and the normal name is an alias.  */
14586 #if defined (__stub_socket) || defined (__stub___socket)
14587 choke me
14588 #else
14589 char (*f) () = socket;
14590 #endif
14591 #ifdef __cplusplus
14592 }
14593 #endif
14594
14595 int
14596 main ()
14597 {
14598 return f != socket;
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14605   (eval $ac_link) 2>conftest.er1
14606   ac_status=$?
14607   grep -v '^ *+' conftest.er1 >conftest.err
14608   rm -f conftest.er1
14609   cat conftest.err >&5
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); } &&
14612          { ac_try='test -z "$ac_c_werror_flag"
14613                          || test ! -s conftest.err'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest$ac_exeext'
14620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621   (eval $ac_try) 2>&5
14622   ac_status=$?
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); }; }; then
14625   ac_cv_func_socket=yes
14626 else
14627   echo "$as_me: failed program was:" >&5
14628 sed 's/^/| /' conftest.$ac_ext >&5
14629
14630 ac_cv_func_socket=no
14631 fi
14632 rm -f conftest.err conftest.$ac_objext \
14633       conftest$ac_exeext conftest.$ac_ext
14634 fi
14635 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14636 echo "${ECHO_T}$ac_cv_func_socket" >&6
14637 if test $ac_cv_func_socket = yes; then
14638   :
14639 else
14640
14641
14642 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14643 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14644 if test "${ac_cv_lib_socket_main+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lsocket  $LIBS"
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655
14656
14657 int
14658 main ()
14659 {
14660 main ();
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667   (eval $ac_link) 2>conftest.er1
14668   ac_status=$?
14669   grep -v '^ *+' conftest.er1 >conftest.err
14670   rm -f conftest.er1
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -z "$ac_c_werror_flag"
14675                          || test ! -s conftest.err'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest$ac_exeext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   ac_cv_lib_socket_main=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_cv_lib_socket_main=no
14693 fi
14694 rm -f conftest.err conftest.$ac_objext \
14695       conftest$ac_exeext conftest.$ac_ext
14696 LIBS=$ac_check_lib_save_LIBS
14697 fi
14698 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14699 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14700 if test $ac_cv_lib_socket_main = yes; then
14701   cat >>confdefs.h <<_ACEOF
14702 #define HAVE_LIBSOCKET 1
14703 _ACEOF
14704
14705   LIBS="-lsocket $LIBS"
14706
14707 fi
14708
14709
14710 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14711 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14712 if test "${ac_cv_lib_net_main+set}" = set; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715   ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-lnet  $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h.  */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h.  */
14723
14724
14725 int
14726 main ()
14727 {
14728 main ();
14729   ;
14730   return 0;
14731 }
14732 _ACEOF
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14735   (eval $ac_link) 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -z "$ac_c_werror_flag"
14743                          || test ! -s conftest.err'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; } &&
14749          { ac_try='test -s conftest$ac_exeext'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; }; then
14755   ac_cv_lib_net_main=yes
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 ac_cv_lib_net_main=no
14761 fi
14762 rm -f conftest.err conftest.$ac_objext \
14763       conftest$ac_exeext conftest.$ac_ext
14764 LIBS=$ac_check_lib_save_LIBS
14765 fi
14766 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14767 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14768 if test $ac_cv_lib_net_main = yes; then
14769   cat >>confdefs.h <<_ACEOF
14770 #define HAVE_LIBNET 1
14771 _ACEOF
14772
14773   LIBS="-lnet $LIBS"
14774
14775 fi
14776
14777
14778 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14779 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14780 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14781   echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783   ac_check_lib_save_LIBS=$LIBS
14784 LIBS="-lnsl_s  $LIBS"
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791
14792
14793 int
14794 main ()
14795 {
14796 main ();
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14803   (eval $ac_link) 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -z "$ac_c_werror_flag"
14811                          || test ! -s conftest.err'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; } &&
14817          { ac_try='test -s conftest$ac_exeext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   ac_cv_lib_nsl_s_main=yes
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_cv_lib_nsl_s_main=no
14829 fi
14830 rm -f conftest.err conftest.$ac_objext \
14831       conftest$ac_exeext conftest.$ac_ext
14832 LIBS=$ac_check_lib_save_LIBS
14833 fi
14834 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14835 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14836 if test $ac_cv_lib_nsl_s_main = yes; then
14837   cat >>confdefs.h <<_ACEOF
14838 #define HAVE_LIBNSL_S 1
14839 _ACEOF
14840
14841   LIBS="-lnsl_s $LIBS"
14842
14843 fi
14844
14845
14846 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14847 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14848 if test "${ac_cv_lib_nsl_main+set}" = set; then
14849   echo $ECHO_N "(cached) $ECHO_C" >&6
14850 else
14851   ac_check_lib_save_LIBS=$LIBS
14852 LIBS="-lnsl  $LIBS"
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859
14860
14861 int
14862 main ()
14863 {
14864 main ();
14865   ;
14866   return 0;
14867 }
14868 _ACEOF
14869 rm -f conftest.$ac_objext conftest$ac_exeext
14870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14871   (eval $ac_link) 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } &&
14878          { ac_try='test -z "$ac_c_werror_flag"
14879                          || test ! -s conftest.err'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; } &&
14885          { ac_try='test -s conftest$ac_exeext'
14886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887   (eval $ac_try) 2>&5
14888   ac_status=$?
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); }; }; then
14891   ac_cv_lib_nsl_main=yes
14892 else
14893   echo "$as_me: failed program was:" >&5
14894 sed 's/^/| /' conftest.$ac_ext >&5
14895
14896 ac_cv_lib_nsl_main=no
14897 fi
14898 rm -f conftest.err conftest.$ac_objext \
14899       conftest$ac_exeext conftest.$ac_ext
14900 LIBS=$ac_check_lib_save_LIBS
14901 fi
14902 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14903 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14904 if test $ac_cv_lib_nsl_main = yes; then
14905   cat >>confdefs.h <<_ACEOF
14906 #define HAVE_LIBNSL 1
14907 _ACEOF
14908
14909   LIBS="-lnsl $LIBS"
14910
14911 fi
14912
14913
14914 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14915 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14916 if test "${ac_cv_lib_inet_socket+set}" = set; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   ac_check_lib_save_LIBS=$LIBS
14920 LIBS="-linet  $LIBS"
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h.  */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h.  */
14927
14928 /* Override any gcc2 internal prototype to avoid an error.  */
14929 #ifdef __cplusplus
14930 extern "C"
14931 #endif
14932 /* We use char because int might match the return type of a gcc2
14933    builtin and then its argument prototype would still apply.  */
14934 char socket ();
14935 int
14936 main ()
14937 {
14938 socket ();
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14945   (eval $ac_link) 2>conftest.er1
14946   ac_status=$?
14947   grep -v '^ *+' conftest.er1 >conftest.err
14948   rm -f conftest.er1
14949   cat conftest.err >&5
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -z "$ac_c_werror_flag"
14953                          || test ! -s conftest.err'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; } &&
14959          { ac_try='test -s conftest$ac_exeext'
14960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961   (eval $ac_try) 2>&5
14962   ac_status=$?
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); }; }; then
14965   ac_cv_lib_inet_socket=yes
14966 else
14967   echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970 ac_cv_lib_inet_socket=no
14971 fi
14972 rm -f conftest.err conftest.$ac_objext \
14973       conftest$ac_exeext conftest.$ac_ext
14974 LIBS=$ac_check_lib_save_LIBS
14975 fi
14976 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14977 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14978 if test $ac_cv_lib_inet_socket = yes; then
14979   cat >>confdefs.h <<_ACEOF
14980 #define HAVE_LIBINET 1
14981 _ACEOF
14982
14983   LIBS="-linet $LIBS"
14984
14985 fi
14986
14987
14988 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14989 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14990 if test "${ac_cv_lib_gen_main+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-lgen  $LIBS"
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h.  */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h.  */
15001
15002
15003 int
15004 main ()
15005 {
15006 main ();
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext conftest$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013   (eval $ac_link) 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -z "$ac_c_werror_flag"
15021                          || test ! -s conftest.err'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; } &&
15027          { ac_try='test -s conftest$ac_exeext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   ac_cv_lib_gen_main=yes
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 ac_cv_lib_gen_main=no
15039 fi
15040 rm -f conftest.err conftest.$ac_objext \
15041       conftest$ac_exeext conftest.$ac_ext
15042 LIBS=$ac_check_lib_save_LIBS
15043 fi
15044 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15045 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15046 if test $ac_cv_lib_gen_main = yes; then
15047   cat >>confdefs.h <<_ACEOF
15048 #define HAVE_LIBGEN 1
15049 _ACEOF
15050
15051   LIBS="-lgen $LIBS"
15052
15053 fi
15054
15055
15056 fi
15057
15058
15059 echo "$as_me:$LINENO: checking for select" >&5
15060 echo $ECHO_N "checking for select... $ECHO_C" >&6
15061 if test "${ac_cv_func_select+set}" = set; then
15062   echo $ECHO_N "(cached) $ECHO_C" >&6
15063 else
15064   cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 /* Define select to an innocuous variant, in case <limits.h> declares select.
15071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15072 #define select innocuous_select
15073
15074 /* System header to define __stub macros and hopefully few prototypes,
15075     which can conflict with char select (); below.
15076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15077     <limits.h> exists even on freestanding compilers.  */
15078
15079 #ifdef __STDC__
15080 # include <limits.h>
15081 #else
15082 # include <assert.h>
15083 #endif
15084
15085 #undef select
15086
15087 /* Override any gcc2 internal prototype to avoid an error.  */
15088 #ifdef __cplusplus
15089 extern "C"
15090 {
15091 #endif
15092 /* We use char because int might match the return type of a gcc2
15093    builtin and then its argument prototype would still apply.  */
15094 char select ();
15095 /* The GNU C library defines this for functions which it implements
15096     to always fail with ENOSYS.  Some functions are actually named
15097     something starting with __ and the normal name is an alias.  */
15098 #if defined (__stub_select) || defined (__stub___select)
15099 choke me
15100 #else
15101 char (*f) () = select;
15102 #endif
15103 #ifdef __cplusplus
15104 }
15105 #endif
15106
15107 int
15108 main ()
15109 {
15110 return f != select;
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117   (eval $ac_link) 2>conftest.er1
15118   ac_status=$?
15119   grep -v '^ *+' conftest.er1 >conftest.err
15120   rm -f conftest.er1
15121   cat conftest.err >&5
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } &&
15124          { ac_try='test -z "$ac_c_werror_flag"
15125                          || test ! -s conftest.err'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; } &&
15131          { ac_try='test -s conftest$ac_exeext'
15132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133   (eval $ac_try) 2>&5
15134   ac_status=$?
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); }; }; then
15137   ac_cv_func_select=yes
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142 ac_cv_func_select=no
15143 fi
15144 rm -f conftest.err conftest.$ac_objext \
15145       conftest$ac_exeext conftest.$ac_ext
15146 fi
15147 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15148 echo "${ECHO_T}$ac_cv_func_select" >&6
15149 if test $ac_cv_func_select = yes; then
15150   :
15151 else
15152   { { echo "$as_me:$LINENO: error: select() required." >&5
15153 echo "$as_me: error: select() required." >&2;}
15154    { (exit 1); exit 1; }; }
15155 fi
15156
15157
15158 if test "${ac_cv_header_winsock_h}" != yes; then
15159
15160
15161 for ac_header in sys/select.h sys/socket.h
15162 do
15163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165   echo "$as_me:$LINENO: checking for $ac_header" >&5
15166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 fi
15170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15172 else
15173   # Is the header compilable?
15174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 $ac_includes_default
15183 #include <$ac_header>
15184 _ACEOF
15185 rm -f conftest.$ac_objext
15186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15187   (eval $ac_compile) 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } &&
15194          { ac_try='test -z "$ac_c_werror_flag"
15195                          || test ! -s conftest.err'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; } &&
15201          { ac_try='test -s conftest.$ac_objext'
15202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203   (eval $ac_try) 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; }; then
15207   ac_header_compiler=yes
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212 ac_header_compiler=no
15213 fi
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15216 echo "${ECHO_T}$ac_header_compiler" >&6
15217
15218 # Is the header present?
15219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15227 #include <$ac_header>
15228 _ACEOF
15229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15231   ac_status=$?
15232   grep -v '^ *+' conftest.er1 >conftest.err
15233   rm -f conftest.er1
15234   cat conftest.err >&5
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); } >/dev/null; then
15237   if test -s conftest.err; then
15238     ac_cpp_err=$ac_c_preproc_warn_flag
15239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15240   else
15241     ac_cpp_err=
15242   fi
15243 else
15244   ac_cpp_err=yes
15245 fi
15246 if test -z "$ac_cpp_err"; then
15247   ac_header_preproc=yes
15248 else
15249   echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15251
15252   ac_header_preproc=no
15253 fi
15254 rm -f conftest.err conftest.$ac_ext
15255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15256 echo "${ECHO_T}$ac_header_preproc" >&6
15257
15258 # So?  What about this header?
15259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15260   yes:no: )
15261     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15265     ac_header_preproc=yes
15266     ;;
15267   no:yes:* )
15268     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15270     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15271 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15272     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15274     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15275 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15278     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15280     (
15281       cat <<\_ASBOX
15282 ## ------------------------------------------ ##
15283 ## Report this to the AC_PACKAGE_NAME lists.  ##
15284 ## ------------------------------------------ ##
15285 _ASBOX
15286     ) |
15287       sed "s/^/$as_me: WARNING:     /" >&2
15288     ;;
15289 esac
15290 echo "$as_me:$LINENO: checking for $ac_header" >&5
15291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293   echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295   eval "$as_ac_Header=\$ac_header_preproc"
15296 fi
15297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15299
15300 fi
15301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15302   cat >>confdefs.h <<_ACEOF
15303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15304 _ACEOF
15305
15306 fi
15307
15308 done
15309
15310 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15311 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15312 if test "${ac_cv_func_select_args+set}" = set; then
15313   echo $ECHO_N "(cached) $ECHO_C" >&6
15314 else
15315   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15316  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15317   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15318    cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 $ac_includes_default
15325 #if HAVE_SYS_SELECT_H
15326 # include <sys/select.h>
15327 #endif
15328 #if HAVE_SYS_SOCKET_H
15329 # include <sys/socket.h>
15330 #endif
15331
15332 int
15333 main ()
15334 {
15335 extern int select ($ac_arg1,
15336                                             $ac_arg234, $ac_arg234, $ac_arg234,
15337                                             $ac_arg5);
15338   ;
15339   return 0;
15340 }
15341 _ACEOF
15342 rm -f conftest.$ac_objext
15343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15344   (eval $ac_compile) 2>conftest.er1
15345   ac_status=$?
15346   grep -v '^ *+' conftest.er1 >conftest.err
15347   rm -f conftest.er1
15348   cat conftest.err >&5
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); } &&
15351          { ac_try='test -z "$ac_c_werror_flag"
15352                          || test ! -s conftest.err'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; } &&
15358          { ac_try='test -s conftest.$ac_objext'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; }; then
15364   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15365 else
15366   echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 fi
15370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15371   done
15372  done
15373 done
15374 # Provide a safe default value.
15375 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15376
15377 fi
15378 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15379 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15380 ac_save_IFS=$IFS; IFS=','
15381 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15382 IFS=$ac_save_IFS
15383 shift
15384
15385 cat >>confdefs.h <<_ACEOF
15386 #define SELECT_TYPE_ARG1 $1
15387 _ACEOF
15388
15389
15390 cat >>confdefs.h <<_ACEOF
15391 #define SELECT_TYPE_ARG234 ($2)
15392 _ACEOF
15393
15394
15395 cat >>confdefs.h <<_ACEOF
15396 #define SELECT_TYPE_ARG5 ($3)
15397 _ACEOF
15398
15399 rm -f conftest*
15400
15401 fi
15402
15403
15404
15405 for ac_func in poll
15406 do
15407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15410 if eval "test \"\${$as_ac_var+set}\" = set"; then
15411   echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413   cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15421 #define $ac_func innocuous_$ac_func
15422
15423 /* System header to define __stub macros and hopefully few prototypes,
15424     which can conflict with char $ac_func (); below.
15425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426     <limits.h> exists even on freestanding compilers.  */
15427
15428 #ifdef __STDC__
15429 # include <limits.h>
15430 #else
15431 # include <assert.h>
15432 #endif
15433
15434 #undef $ac_func
15435
15436 /* Override any gcc2 internal prototype to avoid an error.  */
15437 #ifdef __cplusplus
15438 extern "C"
15439 {
15440 #endif
15441 /* We use char because int might match the return type of a gcc2
15442    builtin and then its argument prototype would still apply.  */
15443 char $ac_func ();
15444 /* The GNU C library defines this for functions which it implements
15445     to always fail with ENOSYS.  Some functions are actually named
15446     something starting with __ and the normal name is an alias.  */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448 choke me
15449 #else
15450 char (*f) () = $ac_func;
15451 #endif
15452 #ifdef __cplusplus
15453 }
15454 #endif
15455
15456 int
15457 main ()
15458 {
15459 return f != $ac_func;
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466   (eval $ac_link) 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } &&
15473          { ac_try='test -z "$ac_c_werror_flag"
15474                          || test ! -s conftest.err'
15475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476   (eval $ac_try) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); }; } &&
15480          { ac_try='test -s conftest$ac_exeext'
15481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482   (eval $ac_try) 2>&5
15483   ac_status=$?
15484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485   (exit $ac_status); }; }; then
15486   eval "$as_ac_var=yes"
15487 else
15488   echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 eval "$as_ac_var=no"
15492 fi
15493 rm -f conftest.err conftest.$ac_objext \
15494       conftest$ac_exeext conftest.$ac_ext
15495 fi
15496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15498 if test `eval echo '${'$as_ac_var'}'` = yes; then
15499   cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15501 _ACEOF
15502
15503 fi
15504 done
15505
15506
15507 for ac_header in poll.h
15508 do
15509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15511   echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514   echo $ECHO_N "(cached) $ECHO_C" >&6
15515 fi
15516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15518 else
15519   # Is the header compilable?
15520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 $ac_includes_default
15529 #include <$ac_header>
15530 _ACEOF
15531 rm -f conftest.$ac_objext
15532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15533   (eval $ac_compile) 2>conftest.er1
15534   ac_status=$?
15535   grep -v '^ *+' conftest.er1 >conftest.err
15536   rm -f conftest.er1
15537   cat conftest.err >&5
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); } &&
15540          { ac_try='test -z "$ac_c_werror_flag"
15541                          || test ! -s conftest.err'
15542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543   (eval $ac_try) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; } &&
15547          { ac_try='test -s conftest.$ac_objext'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; }; then
15553   ac_header_compiler=yes
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 ac_header_compiler=no
15559 fi
15560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15562 echo "${ECHO_T}$ac_header_compiler" >&6
15563
15564 # Is the header present?
15565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h.  */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h.  */
15573 #include <$ac_header>
15574 _ACEOF
15575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15577   ac_status=$?
15578   grep -v '^ *+' conftest.er1 >conftest.err
15579   rm -f conftest.er1
15580   cat conftest.err >&5
15581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582   (exit $ac_status); } >/dev/null; then
15583   if test -s conftest.err; then
15584     ac_cpp_err=$ac_c_preproc_warn_flag
15585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15586   else
15587     ac_cpp_err=
15588   fi
15589 else
15590   ac_cpp_err=yes
15591 fi
15592 if test -z "$ac_cpp_err"; then
15593   ac_header_preproc=yes
15594 else
15595   echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598   ac_header_preproc=no
15599 fi
15600 rm -f conftest.err conftest.$ac_ext
15601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15602 echo "${ECHO_T}$ac_header_preproc" >&6
15603
15604 # So?  What about this header?
15605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15606   yes:no: )
15607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15611     ac_header_preproc=yes
15612     ;;
15613   no:yes:* )
15614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15626     (
15627       cat <<\_ASBOX
15628 ## ------------------------------------------ ##
15629 ## Report this to the AC_PACKAGE_NAME lists.  ##
15630 ## ------------------------------------------ ##
15631 _ASBOX
15632     ) |
15633       sed "s/^/$as_me: WARNING:     /" >&2
15634     ;;
15635 esac
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 else
15641   eval "$as_ac_Header=\$ac_header_preproc"
15642 fi
15643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15645
15646 fi
15647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15648   cat >>confdefs.h <<_ACEOF
15649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15650 _ACEOF
15651
15652 fi
15653
15654 done
15655
15656
15657
15658 for ac_header in sys/epoll.h
15659 do
15660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15662   echo "$as_me:$LINENO: checking for $ac_header" >&5
15663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 fi
15667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15669 else
15670   # Is the header compilable?
15671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679 $ac_includes_default
15680 #include <$ac_header>
15681 _ACEOF
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15684   (eval $ac_compile) 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } &&
15691          { ac_try='test -z "$ac_c_werror_flag"
15692                          || test ! -s conftest.err'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; } &&
15698          { ac_try='test -s conftest.$ac_objext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   ac_header_compiler=yes
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 ac_header_compiler=no
15710 fi
15711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6
15714
15715 # Is the header present?
15716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724 #include <$ac_header>
15725 _ACEOF
15726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } >/dev/null; then
15734   if test -s conftest.err; then
15735     ac_cpp_err=$ac_c_preproc_warn_flag
15736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15737   else
15738     ac_cpp_err=
15739   fi
15740 else
15741   ac_cpp_err=yes
15742 fi
15743 if test -z "$ac_cpp_err"; then
15744   ac_header_preproc=yes
15745 else
15746   echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15748
15749   ac_header_preproc=no
15750 fi
15751 rm -f conftest.err conftest.$ac_ext
15752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6
15754
15755 # So?  What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757   yes:no: )
15758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762     ac_header_preproc=yes
15763     ;;
15764   no:yes:* )
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777     (
15778       cat <<\_ASBOX
15779 ## ------------------------------------------ ##
15780 ## Report this to the AC_PACKAGE_NAME lists.  ##
15781 ## ------------------------------------------ ##
15782 _ASBOX
15783     ) |
15784       sed "s/^/$as_me: WARNING:     /" >&2
15785     ;;
15786 esac
15787 echo "$as_me:$LINENO: checking for $ac_header" >&5
15788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   eval "$as_ac_Header=\$ac_header_preproc"
15793 fi
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15796
15797 fi
15798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15799   cat >>confdefs.h <<_ACEOF
15800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15801 _ACEOF
15802
15803 fi
15804
15805 done
15806
15807 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15808 echo "$as_me:$LINENO: checking for epoll system call" >&5
15809 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15810 if test "$cross_compiling" = yes; then
15811   echo "$as_me:$LINENO: result: no" >&5
15812 echo "${ECHO_T}no" >&6
15813 else
15814   cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820 int main(int argc, char *argv)
15821 {
15822         int epfd = epoll_create(256);
15823         exit (epfd == -1 ? 1 : 0);
15824 }
15825 _ACEOF
15826 rm -f conftest$ac_exeext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828   (eval $ac_link) 2>&5
15829   ac_status=$?
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837   echo "$as_me:$LINENO: result: yes" >&5
15838 echo "${ECHO_T}yes" >&6
15839
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_EPOLL 1
15842 _ACEOF
15843
15844 else
15845   echo "$as_me: program exited with status $ac_status" >&5
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 ( exit $ac_status )
15850 echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6
15852 fi
15853 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15854 fi
15855 fi
15856
15857 # strerror checks
15858 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15859 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15860 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15861   echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15863
15864         cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870
15871 #include <stdio.h>
15872 #include <sys/types.h>
15873 #include <errno.h>
15874 #ifdef WINNT
15875 #include <stdlib.h>
15876 #endif
15877 int
15878 main ()
15879 {
15880 char *c = (char *) *sys_errlist
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15887   (eval $ac_compile) 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } &&
15894          { ac_try='test -z "$ac_c_werror_flag"
15895                          || test ! -s conftest.err'
15896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897   (eval $ac_try) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); }; } &&
15901          { ac_try='test -s conftest.$ac_objext'
15902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903   (eval $ac_try) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); }; }; then
15907   ol_cv_dcl_sys_errlist=yes
15908         ol_cv_have_sys_errlist=yes
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 ol_cv_dcl_sys_errlist=no
15914 fi
15915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15916 fi
15917 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15918 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15919 #
15920 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15921 if test $ol_cv_dcl_sys_errlist = no ; then
15922
15923 cat >>confdefs.h <<\_ACEOF
15924 #define DECL_SYS_ERRLIST 1
15925 _ACEOF
15926
15927
15928         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15929 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15930 if test "${ol_cv_have_sys_errlist+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933
15934                 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940 #include <errno.h>
15941 int
15942 main ()
15943 {
15944 char *c = (char *) *sys_errlist
15945   ;
15946   return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951   (eval $ac_link) 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag"
15959                          || test ! -s conftest.err'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; } &&
15965          { ac_try='test -s conftest$ac_exeext'
15966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967   (eval $ac_try) 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; }; then
15971   ol_cv_have_sys_errlist=yes
15972 else
15973   echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15975
15976 ol_cv_have_sys_errlist=no
15977 fi
15978 rm -f conftest.err conftest.$ac_objext \
15979       conftest$ac_exeext conftest.$ac_ext
15980 fi
15981 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15982 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15983 fi
15984 if test $ol_cv_have_sys_errlist = yes ; then
15985
15986 cat >>confdefs.h <<\_ACEOF
15987 #define HAVE_SYS_ERRLIST 1
15988 _ACEOF
15989
15990 fi
15991
15992
15993 for ac_func in strerror strerror_r
15994 do
15995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15998 if eval "test \"\${$as_ac_var+set}\" = set"; then
15999   echo $ECHO_N "(cached) $ECHO_C" >&6
16000 else
16001   cat >conftest.$ac_ext <<_ACEOF
16002 /* confdefs.h.  */
16003 _ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h.  */
16007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16009 #define $ac_func innocuous_$ac_func
16010
16011 /* System header to define __stub macros and hopefully few prototypes,
16012     which can conflict with char $ac_func (); below.
16013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16014     <limits.h> exists even on freestanding compilers.  */
16015
16016 #ifdef __STDC__
16017 # include <limits.h>
16018 #else
16019 # include <assert.h>
16020 #endif
16021
16022 #undef $ac_func
16023
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 {
16028 #endif
16029 /* We use char because int might match the return type of a gcc2
16030    builtin and then its argument prototype would still apply.  */
16031 char $ac_func ();
16032 /* The GNU C library defines this for functions which it implements
16033     to always fail with ENOSYS.  Some functions are actually named
16034     something starting with __ and the normal name is an alias.  */
16035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16036 choke me
16037 #else
16038 char (*f) () = $ac_func;
16039 #endif
16040 #ifdef __cplusplus
16041 }
16042 #endif
16043
16044 int
16045 main ()
16046 {
16047 return f != $ac_func;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054   (eval $ac_link) 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } &&
16061          { ac_try='test -z "$ac_c_werror_flag"
16062                          || test ! -s conftest.err'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; } &&
16068          { ac_try='test -s conftest$ac_exeext'
16069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070   (eval $ac_try) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074   eval "$as_ac_var=yes"
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079 eval "$as_ac_var=no"
16080 fi
16081 rm -f conftest.err conftest.$ac_objext \
16082       conftest$ac_exeext conftest.$ac_ext
16083 fi
16084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16086 if test `eval echo '${'$as_ac_var'}'` = yes; then
16087   cat >>confdefs.h <<_ACEOF
16088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16089 _ACEOF
16090
16091 fi
16092 done
16093
16094 ol_cv_func_strerror_r=no
16095 if test "${ac_cv_func_strerror_r}" = yes ; then
16096         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16097 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16098 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101
16102         cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h.  */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h.  */
16108 #include <string.h>
16109 _ACEOF
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111   $EGREP "strerror_r" >/dev/null 2>&1; then
16112   ol_decl_strerror_r=yes
16113 else
16114   ol_decl_strerror_r=no
16115 fi
16116 rm -f conftest*
16117
16118         if test $ol_decl_strerror_r = yes ; then
16119                 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h.  */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h.  */
16125 #include <string.h>
16126 int
16127 main ()
16128 {
16129    /* from autoconf 2.59 */
16130                                 char buf[100];
16131                                 char x = *strerror_r (0, buf, sizeof buf);
16132                                 char *p = strerror_r (0, buf, sizeof buf);
16133
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16140   (eval $ac_compile) 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag"
16148                          || test ! -s conftest.err'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; } &&
16154          { ac_try='test -s conftest.$ac_objext'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; }; then
16160   ol_cv_nonposix_strerror_r=yes
16161 else
16162   echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 ol_cv_nonposix_strerror_r=no
16166 fi
16167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16168         else
16169                 if test "$cross_compiling" = yes; then
16170   ol_cv_nonposix_strerror=no
16171 else
16172   cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178
16179                         main() {
16180                                 char buf[100];
16181                                 buf[0] = 0;
16182                                 strerror_r( 1, buf, sizeof buf );
16183                                 exit( buf[0] == 0 );
16184                         }
16185
16186 _ACEOF
16187 rm -f conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194   (eval $ac_try) 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; }; then
16198   ol_cv_nonposix_strerror_r=yes
16199 else
16200   echo "$as_me: program exited with status $ac_status" >&5
16201 echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ( exit $ac_status )
16205 ol_cv_nonposix_strerror=no
16206 fi
16207 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16208 fi
16209         fi
16210
16211 fi
16212 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16213 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16214 if test $ol_cv_nonposix_strerror_r = yes ; then
16215
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_NONPOSIX_STRERROR_R 1
16218 _ACEOF
16219
16220 fi
16221
16222 elif test "${ac_cv_func_strerror}" = no ; then
16223         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16224 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16225 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228
16229         cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h.  */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h.  */
16235
16236 #include <stdio.h>
16237 #include <sys/types.h>
16238 #include <errno.h>
16239 #ifdef WINNT
16240 #include <stdlib.h>
16241 #endif
16242 int
16243 main ()
16244 {
16245 char *c = (char *) *sys_errlist
16246   ;
16247   return 0;
16248 }
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252   (eval $ac_compile) 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } &&
16259          { ac_try='test -z "$ac_c_werror_flag"
16260                          || test ! -s conftest.err'
16261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262   (eval $ac_try) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); }; } &&
16266          { ac_try='test -s conftest.$ac_objext'
16267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268   (eval $ac_try) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272   ol_cv_dcl_sys_errlist=yes
16273         ol_cv_have_sys_errlist=yes
16274 else
16275   echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 ol_cv_dcl_sys_errlist=no
16279 fi
16280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16281 fi
16282 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16283 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16284 #
16285 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16286 if test $ol_cv_dcl_sys_errlist = no ; then
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define DECL_SYS_ERRLIST 1
16290 _ACEOF
16291
16292
16293         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16294 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16295 if test "${ol_cv_have_sys_errlist+set}" = set; then
16296   echo $ECHO_N "(cached) $ECHO_C" >&6
16297 else
16298
16299                 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305 #include <errno.h>
16306 int
16307 main ()
16308 {
16309 char *c = (char *) *sys_errlist
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316   (eval $ac_link) 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } &&
16323          { ac_try='test -z "$ac_c_werror_flag"
16324                          || test ! -s conftest.err'
16325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326   (eval $ac_try) 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; } &&
16330          { ac_try='test -s conftest$ac_exeext'
16331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16332   (eval $ac_try) 2>&5
16333   ac_status=$?
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); }; }; then
16336   ol_cv_have_sys_errlist=yes
16337 else
16338   echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ol_cv_have_sys_errlist=no
16342 fi
16343 rm -f conftest.err conftest.$ac_objext \
16344       conftest$ac_exeext conftest.$ac_ext
16345 fi
16346 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16347 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16348 fi
16349 if test $ol_cv_have_sys_errlist = yes ; then
16350
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_SYS_ERRLIST 1
16353 _ACEOF
16354
16355 fi
16356
16357 fi
16358
16359
16360
16361 for ac_header in regex.h
16362 do
16363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16365   echo "$as_me:$LINENO: checking for $ac_header" >&5
16366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16368   echo $ECHO_N "(cached) $ECHO_C" >&6
16369 fi
16370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16372 else
16373   # Is the header compilable?
16374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h.  */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h.  */
16382 $ac_includes_default
16383 #include <$ac_header>
16384 _ACEOF
16385 rm -f conftest.$ac_objext
16386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16387   (eval $ac_compile) 2>conftest.er1
16388   ac_status=$?
16389   grep -v '^ *+' conftest.er1 >conftest.err
16390   rm -f conftest.er1
16391   cat conftest.err >&5
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); } &&
16394          { ac_try='test -z "$ac_c_werror_flag"
16395                          || test ! -s conftest.err'
16396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397   (eval $ac_try) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; } &&
16401          { ac_try='test -s conftest.$ac_objext'
16402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403   (eval $ac_try) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407   ac_header_compiler=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.$ac_ext >&5
16411
16412 ac_header_compiler=no
16413 fi
16414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16416 echo "${ECHO_T}$ac_header_compiler" >&6
16417
16418 # Is the header present?
16419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16421 cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 #include <$ac_header>
16428 _ACEOF
16429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } >/dev/null; then
16437   if test -s conftest.err; then
16438     ac_cpp_err=$ac_c_preproc_warn_flag
16439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16440   else
16441     ac_cpp_err=
16442   fi
16443 else
16444   ac_cpp_err=yes
16445 fi
16446 if test -z "$ac_cpp_err"; then
16447   ac_header_preproc=yes
16448 else
16449   echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452   ac_header_preproc=no
16453 fi
16454 rm -f conftest.err conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16456 echo "${ECHO_T}$ac_header_preproc" >&6
16457
16458 # So?  What about this header?
16459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16460   yes:no: )
16461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16465     ac_header_preproc=yes
16466     ;;
16467   no:yes:* )
16468     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16470     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16471 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16472     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16475 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16480     (
16481       cat <<\_ASBOX
16482 ## ------------------------------------------ ##
16483 ## Report this to the AC_PACKAGE_NAME lists.  ##
16484 ## ------------------------------------------ ##
16485 _ASBOX
16486     ) |
16487       sed "s/^/$as_me: WARNING:     /" >&2
16488     ;;
16489 esac
16490 echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   eval "$as_ac_Header=\$ac_header_preproc"
16496 fi
16497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16499
16500 fi
16501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16502   cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16504 _ACEOF
16505
16506 fi
16507
16508 done
16509
16510 if test "$ac_cv_header_regex_h" != yes ; then
16511         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16512 echo "$as_me: error: POSIX regex.h required." >&2;}
16513    { (exit 1); exit 1; }; }
16514 fi
16515 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16516 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16517 if test "${ac_cv_search_regfree+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   ac_func_search_save_LIBS=$LIBS
16521 ac_cv_search_regfree=no
16522 cat >conftest.$ac_ext <<_ACEOF
16523 /* confdefs.h.  */
16524 _ACEOF
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h.  */
16528
16529 /* Override any gcc2 internal prototype to avoid an error.  */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 /* We use char because int might match the return type of a gcc2
16534    builtin and then its argument prototype would still apply.  */
16535 char regfree ();
16536 int
16537 main ()
16538 {
16539 regfree ();
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16546   (eval $ac_link) 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } &&
16553          { ac_try='test -z "$ac_c_werror_flag"
16554                          || test ! -s conftest.err'
16555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556   (eval $ac_try) 2>&5
16557   ac_status=$?
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); }; } &&
16560          { ac_try='test -s conftest$ac_exeext'
16561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562   (eval $ac_try) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; }; then
16566   ac_cv_search_regfree="none required"
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 fi
16572 rm -f conftest.err conftest.$ac_objext \
16573       conftest$ac_exeext conftest.$ac_ext
16574 if test "$ac_cv_search_regfree" = no; then
16575   for ac_lib in regex gnuregex; do
16576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16577     cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583
16584 /* Override any gcc2 internal prototype to avoid an error.  */
16585 #ifdef __cplusplus
16586 extern "C"
16587 #endif
16588 /* We use char because int might match the return type of a gcc2
16589    builtin and then its argument prototype would still apply.  */
16590 char regfree ();
16591 int
16592 main ()
16593 {
16594 regfree ();
16595   ;
16596   return 0;
16597 }
16598 _ACEOF
16599 rm -f conftest.$ac_objext conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601   (eval $ac_link) 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -z "$ac_c_werror_flag"
16609                          || test ! -s conftest.err'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; } &&
16615          { ac_try='test -s conftest$ac_exeext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_cv_search_regfree="-l$ac_lib"
16622 break
16623 else
16624   echo "$as_me: failed program was:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16626
16627 fi
16628 rm -f conftest.err conftest.$ac_objext \
16629       conftest$ac_exeext conftest.$ac_ext
16630   done
16631 fi
16632 LIBS=$ac_func_search_save_LIBS
16633 fi
16634 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16635 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16636 if test "$ac_cv_search_regfree" != no; then
16637   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16638   :
16639 else
16640   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16641 echo "$as_me: error: POSIX regex required." >&2;}
16642    { (exit 1); exit 1; }; }
16643 fi
16644
16645
16646
16647 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16648 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16649 if test "${ol_cv_c_posix_regex+set}" = set; then
16650   echo $ECHO_N "(cached) $ECHO_C" >&6
16651 else
16652
16653         if test "$cross_compiling" = yes; then
16654   ol_cv_c_posix_regex=cross
16655 else
16656   cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h.  */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h.  */
16662
16663 #include <sys/types.h>
16664 #include <regex.h>
16665 static char *pattern, *string;
16666 main()
16667 {
16668         int rc;
16669         regex_t re;
16670
16671         pattern = "^A";
16672
16673         if(regcomp(&re, pattern, 0)) {
16674                 return -1;
16675         }
16676
16677         string = "ALL MATCH";
16678
16679         rc = regexec(&re, string, 0, (void*)0, 0);
16680
16681         regfree(&re);
16682
16683         return rc;
16684 }
16685 _ACEOF
16686 rm -f conftest$ac_exeext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16688   (eval $ac_link) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ol_cv_c_posix_regex=yes
16698 else
16699   echo "$as_me: program exited with status $ac_status" >&5
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ( exit $ac_status )
16704 ol_cv_c_posix_regex=no
16705 fi
16706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16707 fi
16708 fi
16709 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16710 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16711
16712 if test "$ol_cv_c_posix_regex" = no ; then
16713         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16714 echo "$as_me: error: broken POSIX regex!" >&2;}
16715    { (exit 1); exit 1; }; }
16716 fi
16717
16718
16719 have_uuid=no
16720
16721 for ac_header in sys/uuid.h
16722 do
16723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16725   echo "$as_me:$LINENO: checking for $ac_header" >&5
16726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16728   echo $ECHO_N "(cached) $ECHO_C" >&6
16729 fi
16730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16732 else
16733   # Is the header compilable?
16734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 $ac_includes_default
16743 #include <$ac_header>
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16747   (eval $ac_compile) 2>conftest.er1
16748   ac_status=$?
16749   grep -v '^ *+' conftest.er1 >conftest.err
16750   rm -f conftest.er1
16751   cat conftest.err >&5
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); } &&
16754          { ac_try='test -z "$ac_c_werror_flag"
16755                          || test ! -s conftest.err'
16756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757   (eval $ac_try) 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; } &&
16761          { ac_try='test -s conftest.$ac_objext'
16762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763   (eval $ac_try) 2>&5
16764   ac_status=$?
16765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766   (exit $ac_status); }; }; then
16767   ac_header_compiler=yes
16768 else
16769   echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16771
16772 ac_header_compiler=no
16773 fi
16774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16776 echo "${ECHO_T}$ac_header_compiler" >&6
16777
16778 # Is the header present?
16779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h.  */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h.  */
16787 #include <$ac_header>
16788 _ACEOF
16789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16791   ac_status=$?
16792   grep -v '^ *+' conftest.er1 >conftest.err
16793   rm -f conftest.er1
16794   cat conftest.err >&5
16795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796   (exit $ac_status); } >/dev/null; then
16797   if test -s conftest.err; then
16798     ac_cpp_err=$ac_c_preproc_warn_flag
16799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16800   else
16801     ac_cpp_err=
16802   fi
16803 else
16804   ac_cpp_err=yes
16805 fi
16806 if test -z "$ac_cpp_err"; then
16807   ac_header_preproc=yes
16808 else
16809   echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16811
16812   ac_header_preproc=no
16813 fi
16814 rm -f conftest.err conftest.$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16816 echo "${ECHO_T}$ac_header_preproc" >&6
16817
16818 # So?  What about this header?
16819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16820   yes:no: )
16821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16825     ac_header_preproc=yes
16826     ;;
16827   no:yes:* )
16828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16840     (
16841       cat <<\_ASBOX
16842 ## ------------------------------------------ ##
16843 ## Report this to the AC_PACKAGE_NAME lists.  ##
16844 ## ------------------------------------------ ##
16845 _ASBOX
16846     ) |
16847       sed "s/^/$as_me: WARNING:     /" >&2
16848     ;;
16849 esac
16850 echo "$as_me:$LINENO: checking for $ac_header" >&5
16851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16853   echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855   eval "$as_ac_Header=\$ac_header_preproc"
16856 fi
16857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16859
16860 fi
16861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16862   cat >>confdefs.h <<_ACEOF
16863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16864 _ACEOF
16865
16866 fi
16867
16868 done
16869
16870 if test $ac_cv_header_sys_uuid_h = yes ; then
16871         save_LIBS="$LIBS"
16872         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16873 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16874 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16875   echo $ECHO_N "(cached) $ECHO_C" >&6
16876 else
16877   ac_func_search_save_LIBS=$LIBS
16878 ac_cv_search_uuid_to_str=no
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h.  */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h.  */
16885
16886 /* Override any gcc2 internal prototype to avoid an error.  */
16887 #ifdef __cplusplus
16888 extern "C"
16889 #endif
16890 /* We use char because int might match the return type of a gcc2
16891    builtin and then its argument prototype would still apply.  */
16892 char uuid_to_str ();
16893 int
16894 main ()
16895 {
16896 uuid_to_str ();
16897   ;
16898   return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903   (eval $ac_link) 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } &&
16910          { ac_try='test -z "$ac_c_werror_flag"
16911                          || test ! -s conftest.err'
16912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913   (eval $ac_try) 2>&5
16914   ac_status=$?
16915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); }; } &&
16917          { ac_try='test -s conftest$ac_exeext'
16918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919   (eval $ac_try) 2>&5
16920   ac_status=$?
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); }; }; then
16923   ac_cv_search_uuid_to_str="none required"
16924 else
16925   echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 fi
16929 rm -f conftest.err conftest.$ac_objext \
16930       conftest$ac_exeext conftest.$ac_ext
16931 if test "$ac_cv_search_uuid_to_str" = no; then
16932   for ac_lib in uuid; do
16933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16934     cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h.  */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h.  */
16940
16941 /* Override any gcc2 internal prototype to avoid an error.  */
16942 #ifdef __cplusplus
16943 extern "C"
16944 #endif
16945 /* We use char because int might match the return type of a gcc2
16946    builtin and then its argument prototype would still apply.  */
16947 char uuid_to_str ();
16948 int
16949 main ()
16950 {
16951 uuid_to_str ();
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958   (eval $ac_link) 2>conftest.er1
16959   ac_status=$?
16960   grep -v '^ *+' conftest.er1 >conftest.err
16961   rm -f conftest.er1
16962   cat conftest.err >&5
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); } &&
16965          { ac_try='test -z "$ac_c_werror_flag"
16966                          || test ! -s conftest.err'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; } &&
16972          { ac_try='test -s conftest$ac_exeext'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; }; then
16978   ac_cv_search_uuid_to_str="-l$ac_lib"
16979 break
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984 fi
16985 rm -f conftest.err conftest.$ac_objext \
16986       conftest$ac_exeext conftest.$ac_ext
16987   done
16988 fi
16989 LIBS=$ac_func_search_save_LIBS
16990 fi
16991 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16992 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16993 if test "$ac_cv_search_uuid_to_str" != no; then
16994   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16995   have_uuid=yes
16996 else
16997   :
16998 fi
16999
17000         LIBS="$save_LIBS"
17001
17002         if test have_uuid = yes ; then
17003
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_UUID_TO_STR 1
17006 _ACEOF
17007
17008
17009                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17010                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17011         fi
17012 fi
17013
17014 if test $have_uuid = no ; then
17015         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17016 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17017         save_LIBS="$LIBS"
17018         LIBS="$LIBS -lrpcrt4"
17019         cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026                 int __stdcall UuidCreate(void *);
17027                 int __stdcall UuidToStringA(void *,void **);
17028
17029 int
17030 main ()
17031 {
17032
17033                 UuidCreate(0);
17034                 UuidToStringA(0,0);
17035
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext conftest$ac_exeext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17042   (eval $ac_link) 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag"
17050                          || test ! -s conftest.err'
17051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052   (eval $ac_try) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); }; } &&
17056          { ac_try='test -s conftest$ac_exeext'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   need_rpcrt=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 need_rpcrt=no
17068 fi
17069 rm -f conftest.err conftest.$ac_objext \
17070       conftest$ac_exeext conftest.$ac_ext
17071         if test $need_rpcrt = yes; then
17072                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17073         fi
17074         LIBS="$save_LIBS"
17075         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17076 echo "${ECHO_T}$need_rpcrt" >&6
17077 fi
17078
17079 ol_cv_lib_resolver=no
17080 if test $ol_cv_lib_resolver = no ; then
17081         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17082 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17083 if test "${ol_cv_resolver_none+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086
17087         ol_RESOLVER_LIB=
17088         ol_LIBS=$LIBS
17089         LIBS="$ol_RESOLVER_LIB $LIBS"
17090
17091         cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097
17098 #ifdef HAVE_SYS_TYPES_H
17099 #       include <sys/types.h>
17100 #endif
17101 #include <netinet/in.h>
17102 #ifdef HAVE_ARPA_NAMESER_H
17103 #       include <arpa/nameser.h>
17104 #endif
17105 #ifdef HAVE_RESOLV_H
17106 #       include <resolv.h>
17107 #endif
17108
17109 int
17110 main ()
17111 {
17112 {
17113         int len, status;
17114         char *request = NULL;
17115         unsigned char reply[64*1024];
17116         unsigned char host[64*1024];
17117         unsigned char *p;
17118
17119 #ifdef NS_HFIXEDSZ
17120         /* Bind 8/9 interface */
17121         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17122 #else
17123         /* Bind 4 interface */
17124 # ifndef T_SRV
17125 #  define T_SRV 33
17126 # endif
17127         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17128 #endif
17129         p = reply;
17130 #ifdef NS_HFIXEDSZ
17131         /* Bind 8/9 interface */
17132         p += NS_HFIXEDSZ;
17133 #elif defined(HFIXEDSZ)
17134         /* Bind 4 interface w/ HFIXEDSZ */
17135         p += HFIXEDSZ;
17136 #else
17137         /* Bind 4 interface w/o HFIXEDSZ */
17138         p += sizeof(HEADER);
17139 #endif
17140         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17141 }
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17148   (eval $ac_link) 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag"
17156                          || test ! -s conftest.err'
17157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158   (eval $ac_try) 2>&5
17159   ac_status=$?
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); }; } &&
17162          { ac_try='test -s conftest$ac_exeext'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168   ol_cv_resolver_none=yes
17169 else
17170   echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ol_cv_resolver_none=no
17174 fi
17175 rm -f conftest.err conftest.$ac_objext \
17176       conftest$ac_exeext conftest.$ac_ext
17177
17178         LIBS="$ol_LIBS"
17179
17180 fi
17181 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17182 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17183
17184         if test $ol_cv_resolver_none = yes ; then
17185                 ol_cv_lib_resolver=yes
17186         fi
17187 fi
17188
17189 if test $ol_cv_lib_resolver = no ; then
17190         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17191 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17192 if test "${ol_cv_resolver_resolv+set}" = set; then
17193   echo $ECHO_N "(cached) $ECHO_C" >&6
17194 else
17195
17196         ol_RESOLVER_LIB=-lresolv
17197         ol_LIBS=$LIBS
17198         LIBS="$ol_RESOLVER_LIB $LIBS"
17199
17200         cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h.  */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h.  */
17206
17207 #ifdef HAVE_SYS_TYPES_H
17208 #       include <sys/types.h>
17209 #endif
17210 #include <netinet/in.h>
17211 #ifdef HAVE_ARPA_NAMESER_H
17212 #       include <arpa/nameser.h>
17213 #endif
17214 #ifdef HAVE_RESOLV_H
17215 #       include <resolv.h>
17216 #endif
17217
17218 int
17219 main ()
17220 {
17221 {
17222         int len, status;
17223         char *request = NULL;
17224         unsigned char reply[64*1024];
17225         unsigned char host[64*1024];
17226         unsigned char *p;
17227
17228 #ifdef NS_HFIXEDSZ
17229         /* Bind 8/9 interface */
17230         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17231 #else
17232         /* Bind 4 interface */
17233 # ifndef T_SRV
17234 #  define T_SRV 33
17235 # endif
17236         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17237 #endif
17238         p = reply;
17239 #ifdef NS_HFIXEDSZ
17240         /* Bind 8/9 interface */
17241         p += NS_HFIXEDSZ;
17242 #elif defined(HFIXEDSZ)
17243         /* Bind 4 interface w/ HFIXEDSZ */
17244         p += HFIXEDSZ;
17245 #else
17246         /* Bind 4 interface w/o HFIXEDSZ */
17247         p += sizeof(HEADER);
17248 #endif
17249         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17250 }
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>conftest.er1
17258   ac_status=$?
17259   grep -v '^ *+' conftest.er1 >conftest.err
17260   rm -f conftest.er1
17261   cat conftest.err >&5
17262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263   (exit $ac_status); } &&
17264          { ac_try='test -z "$ac_c_werror_flag"
17265                          || test ! -s conftest.err'
17266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267   (eval $ac_try) 2>&5
17268   ac_status=$?
17269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270   (exit $ac_status); }; } &&
17271          { ac_try='test -s conftest$ac_exeext'
17272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273   (eval $ac_try) 2>&5
17274   ac_status=$?
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); }; }; then
17277   ol_cv_resolver_resolv=yes
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282 ol_cv_resolver_resolv=no
17283 fi
17284 rm -f conftest.err conftest.$ac_objext \
17285       conftest$ac_exeext conftest.$ac_ext
17286
17287         LIBS="$ol_LIBS"
17288
17289 fi
17290 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17291 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17292
17293         if test $ol_cv_resolver_resolv = yes ; then
17294                 ol_cv_lib_resolver=-lresolv
17295         fi
17296 fi
17297
17298 if test $ol_cv_lib_resolver = no ; then
17299         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17300 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17301 if test "${ol_cv_resolver_bind+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304
17305         ol_RESOLVER_LIB=-lbind
17306         ol_LIBS=$LIBS
17307         LIBS="$ol_RESOLVER_LIB $LIBS"
17308
17309         cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h.  */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h.  */
17315
17316 #ifdef HAVE_SYS_TYPES_H
17317 #       include <sys/types.h>
17318 #endif
17319 #include <netinet/in.h>
17320 #ifdef HAVE_ARPA_NAMESER_H
17321 #       include <arpa/nameser.h>
17322 #endif
17323 #ifdef HAVE_RESOLV_H
17324 #       include <resolv.h>
17325 #endif
17326
17327 int
17328 main ()
17329 {
17330 {
17331         int len, status;
17332         char *request = NULL;
17333         unsigned char reply[64*1024];
17334         unsigned char host[64*1024];
17335         unsigned char *p;
17336
17337 #ifdef NS_HFIXEDSZ
17338         /* Bind 8/9 interface */
17339         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17340 #else
17341         /* Bind 4 interface */
17342 # ifndef T_SRV
17343 #  define T_SRV 33
17344 # endif
17345         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17346 #endif
17347         p = reply;
17348 #ifdef NS_HFIXEDSZ
17349         /* Bind 8/9 interface */
17350         p += NS_HFIXEDSZ;
17351 #elif defined(HFIXEDSZ)
17352         /* Bind 4 interface w/ HFIXEDSZ */
17353         p += HFIXEDSZ;
17354 #else
17355         /* Bind 4 interface w/o HFIXEDSZ */
17356         p += sizeof(HEADER);
17357 #endif
17358         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17359 }
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17366   (eval $ac_link) 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } &&
17373          { ac_try='test -z "$ac_c_werror_flag"
17374                          || test ! -s conftest.err'
17375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376   (eval $ac_try) 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }; } &&
17380          { ac_try='test -s conftest$ac_exeext'
17381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382   (eval $ac_try) 2>&5
17383   ac_status=$?
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); }; }; then
17386   ol_cv_resolver_bind=yes
17387 else
17388   echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 ol_cv_resolver_bind=no
17392 fi
17393 rm -f conftest.err conftest.$ac_objext \
17394       conftest$ac_exeext conftest.$ac_ext
17395
17396         LIBS="$ol_LIBS"
17397
17398 fi
17399 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17400 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17401
17402         if test $ol_cv_resolver_bind = yes ; then
17403                 ol_cv_lib_resolver=-lbind
17404         fi
17405 fi
17406
17407
17408
17409 ol_link_dnssrv=no
17410 if test "$ol_cv_lib_resolver" != no ; then
17411
17412 cat >>confdefs.h <<\_ACEOF
17413 #define HAVE_RES_QUERY 1
17414 _ACEOF
17415
17416
17417         if test "$ol_enable_dnssrv" != no ; then
17418                 ol_link_dnssrv=yes
17419         fi
17420
17421         if test "$ol_cv_lib_resolver" != yes ; then
17422                 LIBS="$ol_cv_lib_resolver $LIBS"
17423         fi
17424 fi
17425
17426 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17427         if test "$ol_link_dnssrv" = no ; then
17428                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17429 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17430    { (exit 1); exit 1; }; }
17431         fi
17432 else
17433         ol_enable_dnssrv=no
17434 fi
17435
17436
17437 for ac_func in hstrerror
17438 do
17439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17440 echo "$as_me:$LINENO: checking for $ac_func" >&5
17441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17442 if eval "test \"\${$as_ac_var+set}\" = set"; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17453 #define $ac_func innocuous_$ac_func
17454
17455 /* System header to define __stub macros and hopefully few prototypes,
17456     which can conflict with char $ac_func (); below.
17457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458     <limits.h> exists even on freestanding compilers.  */
17459
17460 #ifdef __STDC__
17461 # include <limits.h>
17462 #else
17463 # include <assert.h>
17464 #endif
17465
17466 #undef $ac_func
17467
17468 /* Override any gcc2 internal prototype to avoid an error.  */
17469 #ifdef __cplusplus
17470 extern "C"
17471 {
17472 #endif
17473 /* We use char because int might match the return type of a gcc2
17474    builtin and then its argument prototype would still apply.  */
17475 char $ac_func ();
17476 /* The GNU C library defines this for functions which it implements
17477     to always fail with ENOSYS.  Some functions are actually named
17478     something starting with __ and the normal name is an alias.  */
17479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17480 choke me
17481 #else
17482 char (*f) () = $ac_func;
17483 #endif
17484 #ifdef __cplusplus
17485 }
17486 #endif
17487
17488 int
17489 main ()
17490 {
17491 return f != $ac_func;
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498   (eval $ac_link) 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } &&
17505          { ac_try='test -z "$ac_c_werror_flag"
17506                          || test ! -s conftest.err'
17507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508   (eval $ac_try) 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest$ac_exeext'
17513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514   (eval $ac_try) 2>&5
17515   ac_status=$?
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); }; }; then
17518   eval "$as_ac_var=yes"
17519 else
17520   echo "$as_me: failed program was:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17522
17523 eval "$as_ac_var=no"
17524 fi
17525 rm -f conftest.err conftest.$ac_objext \
17526       conftest$ac_exeext conftest.$ac_ext
17527 fi
17528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17530 if test `eval echo '${'$as_ac_var'}'` = yes; then
17531   cat >>confdefs.h <<_ACEOF
17532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17533 _ACEOF
17534
17535 fi
17536 done
17537
17538
17539
17540
17541
17542
17543 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17544 do
17545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17546 echo "$as_me:$LINENO: checking for $ac_func" >&5
17547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17548 if eval "test \"\${$as_ac_var+set}\" = set"; then
17549   echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551   cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h.  */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h.  */
17557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17559 #define $ac_func innocuous_$ac_func
17560
17561 /* System header to define __stub macros and hopefully few prototypes,
17562     which can conflict with char $ac_func (); below.
17563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564     <limits.h> exists even on freestanding compilers.  */
17565
17566 #ifdef __STDC__
17567 # include <limits.h>
17568 #else
17569 # include <assert.h>
17570 #endif
17571
17572 #undef $ac_func
17573
17574 /* Override any gcc2 internal prototype to avoid an error.  */
17575 #ifdef __cplusplus
17576 extern "C"
17577 {
17578 #endif
17579 /* We use char because int might match the return type of a gcc2
17580    builtin and then its argument prototype would still apply.  */
17581 char $ac_func ();
17582 /* The GNU C library defines this for functions which it implements
17583     to always fail with ENOSYS.  Some functions are actually named
17584     something starting with __ and the normal name is an alias.  */
17585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17586 choke me
17587 #else
17588 char (*f) () = $ac_func;
17589 #endif
17590 #ifdef __cplusplus
17591 }
17592 #endif
17593
17594 int
17595 main ()
17596 {
17597 return f != $ac_func;
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17604   (eval $ac_link) 2>conftest.er1
17605   ac_status=$?
17606   grep -v '^ *+' conftest.er1 >conftest.err
17607   rm -f conftest.er1
17608   cat conftest.err >&5
17609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } &&
17611          { ac_try='test -z "$ac_c_werror_flag"
17612                          || test ! -s conftest.err'
17613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614   (eval $ac_try) 2>&5
17615   ac_status=$?
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); }; } &&
17618          { ac_try='test -s conftest$ac_exeext'
17619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620   (eval $ac_try) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; }; then
17624   eval "$as_ac_var=yes"
17625 else
17626   echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 eval "$as_ac_var=no"
17630 fi
17631 rm -f conftest.err conftest.$ac_objext \
17632       conftest$ac_exeext conftest.$ac_ext
17633 fi
17634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637   cat >>confdefs.h <<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17639 _ACEOF
17640
17641 fi
17642 done
17643
17644
17645 ol_link_ipv6=no
17646 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17647         if test $ol_enable_ipv6 = yes ; then
17648                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17649 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17650    { (exit 1); exit 1; }; }
17651         fi
17652 elif test $ol_enable_ipv6 != no ; then
17653         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17654 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17655 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658
17659                 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h.  */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h.  */
17665
17666 #                       include <netinet/in.h>
17667 #                       ifdef INET6_ADDRSTRLEN
17668                                 __has_inet6_addrstrlen__;
17669 #                       endif
17670
17671 _ACEOF
17672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17673   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17674   ol_cv_inet6_addrstrlen=yes
17675 else
17676   ol_cv_inet6_addrstrlen=no
17677 fi
17678 rm -f conftest*
17679
17680 fi
17681 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17682 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17683
17684
17685         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17686 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17687 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17688   echo $ECHO_N "(cached) $ECHO_C" >&6
17689 else
17690
17691                 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h.  */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h.  */
17697
17698 #include <sys/types.h>
17699 #include <sys/socket.h>
17700
17701 int
17702 main ()
17703 {
17704
17705                         struct sockaddr_storage ss;
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713   (eval $ac_compile) 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -z "$ac_c_werror_flag"
17721                          || test ! -s conftest.err'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; } &&
17727          { ac_try='test -s conftest.$ac_objext'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; }; then
17733   ol_cv_struct_sockaddr_storage=yes
17734 else
17735   echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 ol_cv_struct_sockaddr_storage=no
17739 fi
17740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17741 fi
17742 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17743 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17744
17745         if test $ol_cv_inet6_addrstrlen = yes &&
17746            test $ol_cv_struct_sockaddr_storage = yes ; then
17747                 ol_link_ipv6=yes
17748         elif test $ol_enable_ipv6 = yes &&
17749              test $ol_cv_inet6_addrstrlen = no ; then
17750                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17751 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17752    { (exit 1); exit 1; }; }
17753         elif test $ol_enable_ipv6 = yes &&
17754              test $ol_cv_struct_sockaddr_storage = no ; then
17755                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17756 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17757    { (exit 1); exit 1; }; }
17758         fi
17759 fi
17760
17761 if test $ol_enable_local != no ; then
17762
17763 for ac_header in sys/un.h
17764 do
17765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17767   echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17770   echo $ECHO_N "(cached) $ECHO_C" >&6
17771 fi
17772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17774 else
17775   # Is the header compilable?
17776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 $ac_includes_default
17785 #include <$ac_header>
17786 _ACEOF
17787 rm -f conftest.$ac_objext
17788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17789   (eval $ac_compile) 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } &&
17796          { ac_try='test -z "$ac_c_werror_flag"
17797                          || test ! -s conftest.err'
17798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799   (eval $ac_try) 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; } &&
17803          { ac_try='test -s conftest.$ac_objext'
17804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805   (eval $ac_try) 2>&5
17806   ac_status=$?
17807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808   (exit $ac_status); }; }; then
17809   ac_header_compiler=yes
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814 ac_header_compiler=no
17815 fi
17816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17818 echo "${ECHO_T}$ac_header_compiler" >&6
17819
17820 # Is the header present?
17821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 #include <$ac_header>
17830 _ACEOF
17831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } >/dev/null; then
17839   if test -s conftest.err; then
17840     ac_cpp_err=$ac_c_preproc_warn_flag
17841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17842   else
17843     ac_cpp_err=
17844   fi
17845 else
17846   ac_cpp_err=yes
17847 fi
17848 if test -z "$ac_cpp_err"; then
17849   ac_header_preproc=yes
17850 else
17851   echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854   ac_header_preproc=no
17855 fi
17856 rm -f conftest.err conftest.$ac_ext
17857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17858 echo "${ECHO_T}$ac_header_preproc" >&6
17859
17860 # So?  What about this header?
17861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17862   yes:no: )
17863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17867     ac_header_preproc=yes
17868     ;;
17869   no:yes:* )
17870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17882     (
17883       cat <<\_ASBOX
17884 ## ------------------------------------------ ##
17885 ## Report this to the AC_PACKAGE_NAME lists.  ##
17886 ## ------------------------------------------ ##
17887 _ASBOX
17888     ) |
17889       sed "s/^/$as_me: WARNING:     /" >&2
17890     ;;
17891 esac
17892 echo "$as_me:$LINENO: checking for $ac_header" >&5
17893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   eval "$as_ac_Header=\$ac_header_preproc"
17898 fi
17899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17901
17902 fi
17903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17904   cat >>confdefs.h <<_ACEOF
17905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17906 _ACEOF
17907
17908 fi
17909
17910 done
17911
17912
17913         if test $ol_enable_local = auto ; then
17914                 ol_enable_local=$ac_cv_header_sys_un_h
17915         elif test $ac_cv_header_sys_un_h = no ; then
17916                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17917 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17918    { (exit 1); exit 1; }; }
17919         fi
17920 fi
17921
17922 ol_link_kbind=no
17923 ol_link_krb5=no
17924 ol_link_krb4=no
17925
17926 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17927
17928
17929 for ac_header in krb5.h
17930 do
17931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17933   echo "$as_me:$LINENO: checking for $ac_header" >&5
17934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17936   echo $ECHO_N "(cached) $ECHO_C" >&6
17937 fi
17938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17940 else
17941   # Is the header compilable?
17942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17944 cat >conftest.$ac_ext <<_ACEOF
17945 /* confdefs.h.  */
17946 _ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h.  */
17950 $ac_includes_default
17951 #include <$ac_header>
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955   (eval $ac_compile) 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } &&
17962          { ac_try='test -z "$ac_c_werror_flag"
17963                          || test ! -s conftest.err'
17964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965   (eval $ac_try) 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; } &&
17969          { ac_try='test -s conftest.$ac_objext'
17970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971   (eval $ac_try) 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; }; then
17975   ac_header_compiler=yes
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 ac_header_compiler=no
17981 fi
17982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17984 echo "${ECHO_T}$ac_header_compiler" >&6
17985
17986 # Is the header present?
17987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h.  */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h.  */
17995 #include <$ac_header>
17996 _ACEOF
17997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17998   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17999   ac_status=$?
18000   grep -v '^ *+' conftest.er1 >conftest.err
18001   rm -f conftest.er1
18002   cat conftest.err >&5
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); } >/dev/null; then
18005   if test -s conftest.err; then
18006     ac_cpp_err=$ac_c_preproc_warn_flag
18007     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18008   else
18009     ac_cpp_err=
18010   fi
18011 else
18012   ac_cpp_err=yes
18013 fi
18014 if test -z "$ac_cpp_err"; then
18015   ac_header_preproc=yes
18016 else
18017   echo "$as_me: failed program was:" >&5
18018 sed 's/^/| /' conftest.$ac_ext >&5
18019
18020   ac_header_preproc=no
18021 fi
18022 rm -f conftest.err conftest.$ac_ext
18023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18024 echo "${ECHO_T}$ac_header_preproc" >&6
18025
18026 # So?  What about this header?
18027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18028   yes:no: )
18029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18033     ac_header_preproc=yes
18034     ;;
18035   no:yes:* )
18036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18048     (
18049       cat <<\_ASBOX
18050 ## ------------------------------------------ ##
18051 ## Report this to the AC_PACKAGE_NAME lists.  ##
18052 ## ------------------------------------------ ##
18053 _ASBOX
18054     ) |
18055       sed "s/^/$as_me: WARNING:     /" >&2
18056     ;;
18057 esac
18058 echo "$as_me:$LINENO: checking for $ac_header" >&5
18059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18061   echo $ECHO_N "(cached) $ECHO_C" >&6
18062 else
18063   eval "$as_ac_Header=\$ac_header_preproc"
18064 fi
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18067
18068 fi
18069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18070   cat >>confdefs.h <<_ACEOF
18071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18072 _ACEOF
18073
18074 fi
18075
18076 done
18077
18078
18079         if test $ac_cv_header_krb5_h = yes ; then
18080
18081 for ac_header in heim_err.h
18082 do
18083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18085   echo "$as_me:$LINENO: checking for $ac_header" >&5
18086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 fi
18090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18092 else
18093   # Is the header compilable?
18094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h.  */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h.  */
18102 $ac_includes_default
18103 #include <$ac_header>
18104 _ACEOF
18105 rm -f conftest.$ac_objext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18107   (eval $ac_compile) 2>conftest.er1
18108   ac_status=$?
18109   grep -v '^ *+' conftest.er1 >conftest.err
18110   rm -f conftest.er1
18111   cat conftest.err >&5
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); } &&
18114          { ac_try='test -z "$ac_c_werror_flag"
18115                          || test ! -s conftest.err'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; } &&
18121          { ac_try='test -s conftest.$ac_objext'
18122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123   (eval $ac_try) 2>&5
18124   ac_status=$?
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); }; }; then
18127   ac_header_compiler=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 ac_header_compiler=no
18133 fi
18134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18136 echo "${ECHO_T}$ac_header_compiler" >&6
18137
18138 # Is the header present?
18139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h.  */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h.  */
18147 #include <$ac_header>
18148 _ACEOF
18149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18151   ac_status=$?
18152   grep -v '^ *+' conftest.er1 >conftest.err
18153   rm -f conftest.er1
18154   cat conftest.err >&5
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } >/dev/null; then
18157   if test -s conftest.err; then
18158     ac_cpp_err=$ac_c_preproc_warn_flag
18159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18160   else
18161     ac_cpp_err=
18162   fi
18163 else
18164   ac_cpp_err=yes
18165 fi
18166 if test -z "$ac_cpp_err"; then
18167   ac_header_preproc=yes
18168 else
18169   echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18171
18172   ac_header_preproc=no
18173 fi
18174 rm -f conftest.err conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18176 echo "${ECHO_T}$ac_header_preproc" >&6
18177
18178 # So?  What about this header?
18179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18180   yes:no: )
18181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18185     ac_header_preproc=yes
18186     ;;
18187   no:yes:* )
18188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18200     (
18201       cat <<\_ASBOX
18202 ## ------------------------------------------ ##
18203 ## Report this to the AC_PACKAGE_NAME lists.  ##
18204 ## ------------------------------------------ ##
18205 _ASBOX
18206     ) |
18207       sed "s/^/$as_me: WARNING:     /" >&2
18208     ;;
18209 esac
18210 echo "$as_me:$LINENO: checking for $ac_header" >&5
18211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18213   echo $ECHO_N "(cached) $ECHO_C" >&6
18214 else
18215   eval "$as_ac_Header=\$ac_header_preproc"
18216 fi
18217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18219
18220 fi
18221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18222   cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18224 _ACEOF
18225
18226 fi
18227
18228 done
18229
18230                 if test $ac_cv_header_heim_err_h = yes ; then
18231                         krb5_impl=heimdal
18232                 else
18233                         krb5_impl=mit
18234                 fi
18235
18236                 if test $krb5_impl = mit; then
18237                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18238 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18239 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-lk5crypto  $LIBS"
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h.  */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h.  */
18250
18251
18252 int
18253 main ()
18254 {
18255 main ();
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 rm -f conftest.$ac_objext conftest$ac_exeext
18261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262   (eval $ac_link) 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_c_werror_flag"
18270                          || test ! -s conftest.err'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; } &&
18276          { ac_try='test -s conftest$ac_exeext'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; }; then
18282   ac_cv_lib_k5crypto_main=yes
18283 else
18284   echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.$ac_ext >&5
18286
18287 ac_cv_lib_k5crypto_main=no
18288 fi
18289 rm -f conftest.err conftest.$ac_objext \
18290       conftest$ac_exeext conftest.$ac_ext
18291 LIBS=$ac_check_lib_save_LIBS
18292 fi
18293 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18294 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18295 if test $ac_cv_lib_k5crypto_main = yes; then
18296   krb5crypto=k5crypto
18297 else
18298   krb5crypto=crypto
18299 fi
18300
18301
18302                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18303 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18304 if test "${ac_cv_lib_krb5_main+set}" = set; then
18305   echo $ECHO_N "(cached) $ECHO_C" >&6
18306 else
18307   ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316
18317 int
18318 main ()
18319 {
18320 main ();
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327   (eval $ac_link) 2>conftest.er1
18328   ac_status=$?
18329   grep -v '^ *+' conftest.er1 >conftest.err
18330   rm -f conftest.er1
18331   cat conftest.err >&5
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); } &&
18334          { ac_try='test -z "$ac_c_werror_flag"
18335                          || test ! -s conftest.err'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; } &&
18341          { ac_try='test -s conftest$ac_exeext'
18342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343   (eval $ac_try) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   ac_cv_lib_krb5_main=yes
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352 ac_cv_lib_krb5_main=no
18353 fi
18354 rm -f conftest.err conftest.$ac_objext \
18355       conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18357 fi
18358 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18359 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18360 if test $ac_cv_lib_krb5_main = yes; then
18361   have_krb5=yes
18362                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18363 else
18364   have_krb5=no
18365 fi
18366
18367
18368                 elif test $krb5_impl = heimdal; then
18369                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18370 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18371 if test "${ac_cv_lib_des_main+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374   ac_check_lib_save_LIBS=$LIBS
18375 LIBS="-ldes  $LIBS"
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382
18383
18384 int
18385 main ()
18386 {
18387 main ();
18388   ;
18389   return 0;
18390 }
18391 _ACEOF
18392 rm -f conftest.$ac_objext conftest$ac_exeext
18393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18394   (eval $ac_link) 2>conftest.er1
18395   ac_status=$?
18396   grep -v '^ *+' conftest.er1 >conftest.err
18397   rm -f conftest.er1
18398   cat conftest.err >&5
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); } &&
18401          { ac_try='test -z "$ac_c_werror_flag"
18402                          || test ! -s conftest.err'
18403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404   (eval $ac_try) 2>&5
18405   ac_status=$?
18406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407   (exit $ac_status); }; } &&
18408          { ac_try='test -s conftest$ac_exeext'
18409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410   (eval $ac_try) 2>&5
18411   ac_status=$?
18412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); }; }; then
18414   ac_cv_lib_des_main=yes
18415 else
18416   echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.$ac_ext >&5
18418
18419 ac_cv_lib_des_main=no
18420 fi
18421 rm -f conftest.err conftest.$ac_objext \
18422       conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18424 fi
18425 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18426 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18427 if test $ac_cv_lib_des_main = yes; then
18428   krb5crypto=des
18429 else
18430   krb5crypto=crypto
18431 fi
18432
18433
18434                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18435 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18436 if test "${ac_cv_lib_krb5_main+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h.  */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h.  */
18447
18448
18449 int
18450 main ()
18451 {
18452 main ();
18453   ;
18454   return 0;
18455 }
18456 _ACEOF
18457 rm -f conftest.$ac_objext conftest$ac_exeext
18458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18459   (eval $ac_link) 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } &&
18466          { ac_try='test -z "$ac_c_werror_flag"
18467                          || test ! -s conftest.err'
18468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469   (eval $ac_try) 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; } &&
18473          { ac_try='test -s conftest$ac_exeext'
18474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475   (eval $ac_try) 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); }; }; then
18479   ac_cv_lib_krb5_main=yes
18480 else
18481   echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_lib_krb5_main=no
18485 fi
18486 rm -f conftest.err conftest.$ac_objext \
18487       conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18489 fi
18490 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18491 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18492 if test $ac_cv_lib_krb5_main = yes; then
18493   have_krb5=yes
18494                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18495 else
18496   have_krb5=no
18497 fi
18498
18499
18500
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_HEIMDAL_KERBEROS 1
18503 _ACEOF
18504
18505
18506                 else
18507                         have_krb5=no
18508                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18509 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18510                 fi
18511
18512                 if test $have_krb5 = yes ; then
18513                         ol_link_krb5=yes
18514
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_KRB5 1
18518 _ACEOF
18519
18520
18521                         if test $ol_with_kerberos = k5only ; then
18522                                 ol_with_kerberos=found
18523                         fi
18524
18525                 elif test $ol_with_kerberos != auto ; then
18526                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18527 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18528    { (exit 1); exit 1; }; }
18529                 fi
18530
18531         fi
18532         ;;
18533 esac
18534
18535 if test $ol_link_krb5 = yes &&
18536    { test $ol_with_kerberos = yes ||
18537      test $ol_with_kerberos = auto ||
18538      test $ol_with_kerberos = k425; }; then
18539
18540
18541
18542 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18543 do
18544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18546   echo "$as_me:$LINENO: checking for $ac_header" >&5
18547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 fi
18551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18553 else
18554   # Is the header compilable?
18555 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 $ac_includes_default
18564 #include <$ac_header>
18565 _ACEOF
18566 rm -f conftest.$ac_objext
18567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18568   (eval $ac_compile) 2>conftest.er1
18569   ac_status=$?
18570   grep -v '^ *+' conftest.er1 >conftest.err
18571   rm -f conftest.er1
18572   cat conftest.err >&5
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); } &&
18575          { ac_try='test -z "$ac_c_werror_flag"
18576                          || test ! -s conftest.err'
18577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578   (eval $ac_try) 2>&5
18579   ac_status=$?
18580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581   (exit $ac_status); }; } &&
18582          { ac_try='test -s conftest.$ac_objext'
18583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584   (eval $ac_try) 2>&5
18585   ac_status=$?
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); }; }; then
18588   ac_header_compiler=yes
18589 else
18590   echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18592
18593 ac_header_compiler=no
18594 fi
18595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18597 echo "${ECHO_T}$ac_header_compiler" >&6
18598
18599 # Is the header present?
18600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608 #include <$ac_header>
18609 _ACEOF
18610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } >/dev/null; then
18618   if test -s conftest.err; then
18619     ac_cpp_err=$ac_c_preproc_warn_flag
18620     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18621   else
18622     ac_cpp_err=
18623   fi
18624 else
18625   ac_cpp_err=yes
18626 fi
18627 if test -z "$ac_cpp_err"; then
18628   ac_header_preproc=yes
18629 else
18630   echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633   ac_header_preproc=no
18634 fi
18635 rm -f conftest.err conftest.$ac_ext
18636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18637 echo "${ECHO_T}$ac_header_preproc" >&6
18638
18639 # So?  What about this header?
18640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18641   yes:no: )
18642     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18646     ac_header_preproc=yes
18647     ;;
18648   no:yes:* )
18649     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18651     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18652 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18653     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18655     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18656 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18659     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18661     (
18662       cat <<\_ASBOX
18663 ## ------------------------------------------ ##
18664 ## Report this to the AC_PACKAGE_NAME lists.  ##
18665 ## ------------------------------------------ ##
18666 _ASBOX
18667     ) |
18668       sed "s/^/$as_me: WARNING:     /" >&2
18669     ;;
18670 esac
18671 echo "$as_me:$LINENO: checking for $ac_header" >&5
18672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18674   echo $ECHO_N "(cached) $ECHO_C" >&6
18675 else
18676   eval "$as_ac_Header=\$ac_header_preproc"
18677 fi
18678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18680
18681 fi
18682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18683   cat >>confdefs.h <<_ACEOF
18684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18685 _ACEOF
18686
18687 fi
18688
18689 done
18690
18691
18692         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18693                 if test $krb5_impl = mit; then
18694                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18695 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18696 if test "${ac_cv_lib_krb4_main+set}" = set; then
18697   echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699   ac_check_lib_save_LIBS=$LIBS
18700 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18701 cat >conftest.$ac_ext <<_ACEOF
18702 /* confdefs.h.  */
18703 _ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h.  */
18707
18708
18709 int
18710 main ()
18711 {
18712 main ();
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18719   (eval $ac_link) 2>conftest.er1
18720   ac_status=$?
18721   grep -v '^ *+' conftest.er1 >conftest.err
18722   rm -f conftest.er1
18723   cat conftest.err >&5
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); } &&
18726          { ac_try='test -z "$ac_c_werror_flag"
18727                          || test ! -s conftest.err'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; } &&
18733          { ac_try='test -s conftest$ac_exeext'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; }; then
18739   ac_cv_lib_krb4_main=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_cv_lib_krb4_main=no
18745 fi
18746 rm -f conftest.err conftest.$ac_objext \
18747       conftest$ac_exeext conftest.$ac_ext
18748 LIBS=$ac_check_lib_save_LIBS
18749 fi
18750 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18751 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18752 if test $ac_cv_lib_krb4_main = yes; then
18753   have_k425=yes
18754                                 KRB4_LIBS="-lkrb4 -ldes425"
18755 else
18756   have_k425=no
18757 fi
18758
18759
18760                 elif test $krb5_impl = heimdal; then
18761                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18762 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18763 if test "${ac_cv_lib_krb4_main+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   ac_check_lib_save_LIBS=$LIBS
18767 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18768 cat >conftest.$ac_ext <<_ACEOF
18769 /* confdefs.h.  */
18770 _ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h.  */
18774
18775
18776 int
18777 main ()
18778 {
18779 main ();
18780   ;
18781   return 0;
18782 }
18783 _ACEOF
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786   (eval $ac_link) 2>conftest.er1
18787   ac_status=$?
18788   grep -v '^ *+' conftest.er1 >conftest.err
18789   rm -f conftest.er1
18790   cat conftest.err >&5
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); } &&
18793          { ac_try='test -z "$ac_c_werror_flag"
18794                          || test ! -s conftest.err'
18795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796   (eval $ac_try) 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; } &&
18800          { ac_try='test -s conftest$ac_exeext'
18801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802   (eval $ac_try) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; }; then
18806   ac_cv_lib_krb4_main=yes
18807 else
18808   echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ac_cv_lib_krb4_main=no
18812 fi
18813 rm -f conftest.err conftest.$ac_objext \
18814       conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18818 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18819 if test $ac_cv_lib_krb4_main = yes; then
18820   have_k425=yes
18821                                 KRB4_LIBS="-lkrb4"
18822 else
18823   have_k425=no
18824 fi
18825
18826
18827                 else
18828                         have_425=no
18829                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18830 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18831                 fi
18832
18833                 if test $have_k425 = yes ; then
18834                         ol_with_kerberos=found
18835                         ol_link_krb4=yes
18836
18837
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_KRB425 1
18840 _ACEOF
18841
18842
18843 cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_KRB4 1
18845 _ACEOF
18846
18847
18848                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18849 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18850 if test "${ol_cv_var_des_debug+set}" = set; then
18851   echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853
18854                                                                 save_LIBS="$LIBS"
18855                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18856                                 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863 #include <kerberosIV/krb.h>
18864 #include <kerberosIV/des.h>
18865 extern int des_debug;
18866
18867 int
18868 main ()
18869 {
18870
18871 des_debug = 1;
18872
18873   ;
18874   return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext conftest$ac_exeext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879   (eval $ac_link) 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } &&
18886          { ac_try='test -z "$ac_c_werror_flag"
18887                          || test ! -s conftest.err'
18888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889   (eval $ac_try) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; } &&
18893          { ac_try='test -s conftest$ac_exeext'
18894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895   (eval $ac_try) 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ol_cv_var_des_debug=yes
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ol_cv_var_des_debug=no
18905 fi
18906 rm -f conftest.err conftest.$ac_objext \
18907       conftest$ac_exeext conftest.$ac_ext
18908                                                                 LIBS="$save_LIBS"
18909
18910 fi
18911 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18912 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18913
18914                         if test $ol_cv_var_des_debug = yes ; then
18915
18916 cat >>confdefs.h <<\_ACEOF
18917 #define HAVE_DES_DEBUG 1
18918 _ACEOF
18919
18920                         fi
18921
18922                         LIBS="$save_LIBS"
18923                 fi
18924         fi
18925 fi
18926
18927 if test $ol_link_krb5 = yes ; then
18928         ol_with_kerberos=found
18929 fi
18930
18931 case $ol_with_kerberos in yes | auto | k4 | kth)
18932
18933
18934
18935
18936 for ac_header in krb.h des.h krb-archaeology.h
18937 do
18938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940   echo "$as_me:$LINENO: checking for $ac_header" >&5
18941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18943   echo $ECHO_N "(cached) $ECHO_C" >&6
18944 fi
18945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18947 else
18948   # Is the header compilable?
18949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h.  */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h.  */
18957 $ac_includes_default
18958 #include <$ac_header>
18959 _ACEOF
18960 rm -f conftest.$ac_objext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18962   (eval $ac_compile) 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } &&
18969          { ac_try='test -z "$ac_c_werror_flag"
18970                          || test ! -s conftest.err'
18971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972   (eval $ac_try) 2>&5
18973   ac_status=$?
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); }; } &&
18976          { ac_try='test -s conftest.$ac_objext'
18977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978   (eval $ac_try) 2>&5
18979   ac_status=$?
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); }; }; then
18982   ac_header_compiler=yes
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987 ac_header_compiler=no
18988 fi
18989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18991 echo "${ECHO_T}$ac_header_compiler" >&6
18992
18993 # Is the header present?
18994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18997 /* confdefs.h.  */
18998 _ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h.  */
19002 #include <$ac_header>
19003 _ACEOF
19004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19006   ac_status=$?
19007   grep -v '^ *+' conftest.er1 >conftest.err
19008   rm -f conftest.er1
19009   cat conftest.err >&5
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); } >/dev/null; then
19012   if test -s conftest.err; then
19013     ac_cpp_err=$ac_c_preproc_warn_flag
19014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19015   else
19016     ac_cpp_err=
19017   fi
19018 else
19019   ac_cpp_err=yes
19020 fi
19021 if test -z "$ac_cpp_err"; then
19022   ac_header_preproc=yes
19023 else
19024   echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19026
19027   ac_header_preproc=no
19028 fi
19029 rm -f conftest.err conftest.$ac_ext
19030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19031 echo "${ECHO_T}$ac_header_preproc" >&6
19032
19033 # So?  What about this header?
19034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19035   yes:no: )
19036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19040     ac_header_preproc=yes
19041     ;;
19042   no:yes:* )
19043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19055     (
19056       cat <<\_ASBOX
19057 ## ------------------------------------------ ##
19058 ## Report this to the AC_PACKAGE_NAME lists.  ##
19059 ## ------------------------------------------ ##
19060 _ASBOX
19061     ) |
19062       sed "s/^/$as_me: WARNING:     /" >&2
19063     ;;
19064 esac
19065 echo "$as_me:$LINENO: checking for $ac_header" >&5
19066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   eval "$as_ac_Header=\$ac_header_preproc"
19071 fi
19072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19074
19075 fi
19076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19077   cat >>confdefs.h <<_ACEOF
19078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19079 _ACEOF
19080
19081 fi
19082
19083 done
19084
19085
19086         if test $ac_cv_header_krb_h = yes ; then
19087                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19088 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19089 if test "${ac_cv_lib_krb_main+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lkrb -ldes $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h.  */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h.  */
19100
19101
19102 int
19103 main ()
19104 {
19105 main ();
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112   (eval $ac_link) 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } &&
19119          { ac_try='test -z "$ac_c_werror_flag"
19120                          || test ! -s conftest.err'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; } &&
19126          { ac_try='test -s conftest$ac_exeext'
19127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128   (eval $ac_try) 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_cv_lib_krb_main=yes
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ac_cv_lib_krb_main=no
19138 fi
19139 rm -f conftest.err conftest.$ac_objext \
19140       conftest$ac_exeext conftest.$ac_ext
19141 LIBS=$ac_check_lib_save_LIBS
19142 fi
19143 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19144 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19145 if test $ac_cv_lib_krb_main = yes; then
19146   have_k4=yes
19147 else
19148   have_k4=no
19149 fi
19150
19151
19152                 if test $have_k4 = yes ; then
19153                         ol_with_kerberos=found
19154                         ol_link_krb4=yes
19155
19156
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_KRB4 1
19159 _ACEOF
19160
19161
19162                         KRB4_LIBS="-lkrb -ldes"
19163
19164                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19165
19166 cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_KTH_KERBEROS 1
19168 _ACEOF
19169
19170                         fi
19171                 fi
19172         fi
19173         ;;
19174 esac
19175
19176 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19177         ol_link_kbind=yes
19178
19179 elif test $ol_enable_kbind = yes ; then
19180         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19181 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19182    { (exit 1); exit 1; }; }
19183 fi
19184
19185 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19186
19187 cat >>confdefs.h <<\_ACEOF
19188 #define HAVE_KERBEROS 1
19189 _ACEOF
19190
19191
19192 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19193         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19194 echo "$as_me: error: Kerberos detection failed" >&2;}
19195    { (exit 1); exit 1; }; }
19196 fi
19197
19198
19199 ol_link_tls=no
19200 if test $ol_with_tls != no ; then
19201
19202 for ac_header in openssl/ssl.h
19203 do
19204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19206   echo "$as_me:$LINENO: checking for $ac_header" >&5
19207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 fi
19211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19213 else
19214   # Is the header compilable?
19215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 $ac_includes_default
19224 #include <$ac_header>
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228   (eval $ac_compile) 2>conftest.er1
19229   ac_status=$?
19230   grep -v '^ *+' conftest.er1 >conftest.err
19231   rm -f conftest.er1
19232   cat conftest.err >&5
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } &&
19235          { ac_try='test -z "$ac_c_werror_flag"
19236                          || test ! -s conftest.err'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; } &&
19242          { ac_try='test -s conftest.$ac_objext'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248   ac_header_compiler=yes
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 ac_header_compiler=no
19254 fi
19255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19257 echo "${ECHO_T}$ac_header_compiler" >&6
19258
19259 # Is the header present?
19260 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268 #include <$ac_header>
19269 _ACEOF
19270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } >/dev/null; then
19278   if test -s conftest.err; then
19279     ac_cpp_err=$ac_c_preproc_warn_flag
19280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19281   else
19282     ac_cpp_err=
19283   fi
19284 else
19285   ac_cpp_err=yes
19286 fi
19287 if test -z "$ac_cpp_err"; then
19288   ac_header_preproc=yes
19289 else
19290   echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19292
19293   ac_header_preproc=no
19294 fi
19295 rm -f conftest.err conftest.$ac_ext
19296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19297 echo "${ECHO_T}$ac_header_preproc" >&6
19298
19299 # So?  What about this header?
19300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19301   yes:no: )
19302     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19303 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19305 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19306     ac_header_preproc=yes
19307     ;;
19308   no:yes:* )
19309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19312 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19313     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19314 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19315     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19316 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19319     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19320 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19321     (
19322       cat <<\_ASBOX
19323 ## ------------------------------------------ ##
19324 ## Report this to the AC_PACKAGE_NAME lists.  ##
19325 ## ------------------------------------------ ##
19326 _ASBOX
19327     ) |
19328       sed "s/^/$as_me: WARNING:     /" >&2
19329     ;;
19330 esac
19331 echo "$as_me:$LINENO: checking for $ac_header" >&5
19332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   eval "$as_ac_Header=\$ac_header_preproc"
19337 fi
19338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19340
19341 fi
19342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19343   cat >>confdefs.h <<_ACEOF
19344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19345 _ACEOF
19346
19347 fi
19348
19349 done
19350
19351
19352         if test $ac_cv_header_openssl_ssl_h = yes ; then
19353                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19354 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19355 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   ac_check_lib_save_LIBS=$LIBS
19359 LIBS="-lssl -lcrypto $LIBS"
19360 cat >conftest.$ac_ext <<_ACEOF
19361 /* confdefs.h.  */
19362 _ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h.  */
19366
19367 /* Override any gcc2 internal prototype to avoid an error.  */
19368 #ifdef __cplusplus
19369 extern "C"
19370 #endif
19371 /* We use char because int might match the return type of a gcc2
19372    builtin and then its argument prototype would still apply.  */
19373 char SSL_library_init ();
19374 int
19375 main ()
19376 {
19377 SSL_library_init ();
19378   ;
19379   return 0;
19380 }
19381 _ACEOF
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19384   (eval $ac_link) 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } &&
19391          { ac_try='test -z "$ac_c_werror_flag"
19392                          || test ! -s conftest.err'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; } &&
19398          { ac_try='test -s conftest$ac_exeext'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; }; then
19404   ac_cv_lib_ssl_SSL_library_init=yes
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409 ac_cv_lib_ssl_SSL_library_init=no
19410 fi
19411 rm -f conftest.err conftest.$ac_objext \
19412       conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19414 fi
19415 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19416 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19417 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19418   have_openssl=yes
19419                         need_rsaref=no
19420 else
19421   have_openssl=no
19422 fi
19423
19424
19425                 if test $have_openssl = no ; then
19426                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19427 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19428 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19429   echo $ECHO_N "(cached) $ECHO_C" >&6
19430 else
19431   ac_check_lib_save_LIBS=$LIBS
19432 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439
19440 /* Override any gcc2 internal prototype to avoid an error.  */
19441 #ifdef __cplusplus
19442 extern "C"
19443 #endif
19444 /* We use char because int might match the return type of a gcc2
19445    builtin and then its argument prototype would still apply.  */
19446 char ssl3_accept ();
19447 int
19448 main ()
19449 {
19450 ssl3_accept ();
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 rm -f conftest.$ac_objext conftest$ac_exeext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19457   (eval $ac_link) 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } &&
19464          { ac_try='test -z "$ac_c_werror_flag"
19465                          || test ! -s conftest.err'
19466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467   (eval $ac_try) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; } &&
19471          { ac_try='test -s conftest$ac_exeext'
19472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473   (eval $ac_try) 2>&5
19474   ac_status=$?
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); }; }; then
19477   ac_cv_lib_ssl_ssl3_accept=yes
19478 else
19479   echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482 ac_cv_lib_ssl_ssl3_accept=no
19483 fi
19484 rm -f conftest.err conftest.$ac_objext \
19485       conftest$ac_exeext conftest.$ac_ext
19486 LIBS=$ac_check_lib_save_LIBS
19487 fi
19488 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19489 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19490 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19491   have_openssl=yes
19492                                 need_rsaref=yes
19493 else
19494   have_openssl=no
19495 fi
19496
19497                 fi
19498
19499                 if test $have_openssl = yes ; then
19500                         ol_with_tls=found
19501                         ol_link_tls=yes
19502
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_OPENSSL 1
19506 _ACEOF
19507
19508
19509                         if test $need_rsaref = yes; then
19510
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_RSAREF 1
19513 _ACEOF
19514
19515
19516                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19517                         else
19518                                 TLS_LIBS="-lssl -lcrypto"
19519                         fi
19520                 fi
19521                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19522 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19523 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19524   echo $ECHO_N "(cached) $ECHO_C" >&6
19525 else
19526
19527         cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 #ifdef HAVE_OPENSSL_SSL_H
19535 #include <openssl/ssl.h>
19536 #else
19537 #include <ssl.h>
19538 #endif
19539
19540 /* Require 0.9.7d+ */
19541 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19542         char *__ssl_compat = "0.9.7d";
19543 #endif
19544
19545 _ACEOF
19546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19547   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19548   ol_cv_ssl_crl_compat=yes
19549 else
19550   ol_cv_ssl_crl_compat=no
19551 fi
19552 rm -f conftest*
19553
19554 fi
19555 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19556 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19557
19558                 if test $ol_cv_ssl_crl_compat = no ; then
19559                         ol_link_ssl=no
19560                 else
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_OPENSSL_CRL 1
19564 _ACEOF
19565
19566                 fi
19567         fi
19568
19569 else
19570         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19571 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19572 fi
19573
19574 WITH_TLS=no
19575 if test $ol_link_tls = yes ; then
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_TLS 1
19579 _ACEOF
19580
19581         WITH_TLS=yes
19582
19583 elif test $ol_with_tls = auto ; then
19584         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19585 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19586         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19587 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19588
19589 elif test $ol_with_tls != no ; then
19590         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19591 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19592    { (exit 1); exit 1; }; }
19593 fi
19594
19595 if test $ol_enable_lmpasswd != no; then
19596         if test $ol_link_tls != yes ; then
19597                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19598 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19599    { (exit 1); exit 1; }; }
19600         fi
19601
19602
19603 cat >>confdefs.h <<\_ACEOF
19604 #define SLAPD_LMHASH 1
19605 _ACEOF
19606
19607 fi
19608
19609 ol_link_threads=no
19610
19611 case $ol_with_threads in auto | yes | nt)
19612
19613
19614         echo "$as_me:$LINENO: checking for _beginthread" >&5
19615 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19616 if test "${ac_cv_func__beginthread+set}" = set; then
19617   echo $ECHO_N "(cached) $ECHO_C" >&6
19618 else
19619   cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19627 #define _beginthread innocuous__beginthread
19628
19629 /* System header to define __stub macros and hopefully few prototypes,
19630     which can conflict with char _beginthread (); below.
19631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19632     <limits.h> exists even on freestanding compilers.  */
19633
19634 #ifdef __STDC__
19635 # include <limits.h>
19636 #else
19637 # include <assert.h>
19638 #endif
19639
19640 #undef _beginthread
19641
19642 /* Override any gcc2 internal prototype to avoid an error.  */
19643 #ifdef __cplusplus
19644 extern "C"
19645 {
19646 #endif
19647 /* We use char because int might match the return type of a gcc2
19648    builtin and then its argument prototype would still apply.  */
19649 char _beginthread ();
19650 /* The GNU C library defines this for functions which it implements
19651     to always fail with ENOSYS.  Some functions are actually named
19652     something starting with __ and the normal name is an alias.  */
19653 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19654 choke me
19655 #else
19656 char (*f) () = _beginthread;
19657 #endif
19658 #ifdef __cplusplus
19659 }
19660 #endif
19661
19662 int
19663 main ()
19664 {
19665 return f != _beginthread;
19666   ;
19667   return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672   (eval $ac_link) 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } &&
19679          { ac_try='test -z "$ac_c_werror_flag"
19680                          || test ! -s conftest.err'
19681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682   (eval $ac_try) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); }; } &&
19686          { ac_try='test -s conftest$ac_exeext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_cv_func__beginthread=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_cv_func__beginthread=no
19698 fi
19699 rm -f conftest.err conftest.$ac_objext \
19700       conftest$ac_exeext conftest.$ac_ext
19701 fi
19702 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19703 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19704
19705
19706         if test $ac_cv_func__beginthread = yes ; then
19707
19708 cat >>confdefs.h <<\_ACEOF
19709 #define HAVE_NT_THREADS 1
19710 _ACEOF
19711
19712                 ol_cv_nt_threads=yes
19713         fi
19714
19715
19716         if test "$ol_cv_nt_threads" = yes ; then
19717                 ol_link_threads=nt
19718                 ol_with_threads=found
19719                 ol_with_yielding_select=yes
19720
19721
19722 cat >>confdefs.h <<\_ACEOF
19723 #define HAVE_NT_SERVICE_MANAGER 1
19724 _ACEOF
19725
19726
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_NT_EVENT_LOG 1
19729 _ACEOF
19730
19731         fi
19732
19733         if test $ol_with_threads = nt ; then
19734                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19735 echo "$as_me: error: could not locate NT Threads" >&2;}
19736    { (exit 1); exit 1; }; }
19737         fi
19738         ;;
19739 esac
19740
19741 case $ol_with_threads in auto | yes | posix)
19742
19743
19744 for ac_header in pthread.h
19745 do
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19748   echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 fi
19753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19755 else
19756   # Is the header compilable?
19757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h.  */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h.  */
19765 $ac_includes_default
19766 #include <$ac_header>
19767 _ACEOF
19768 rm -f conftest.$ac_objext
19769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19770   (eval $ac_compile) 2>conftest.er1
19771   ac_status=$?
19772   grep -v '^ *+' conftest.er1 >conftest.err
19773   rm -f conftest.er1
19774   cat conftest.err >&5
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); } &&
19777          { ac_try='test -z "$ac_c_werror_flag"
19778                          || test ! -s conftest.err'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; } &&
19784          { ac_try='test -s conftest.$ac_objext'
19785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786   (eval $ac_try) 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   ac_header_compiler=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_header_compiler=no
19796 fi
19797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799 echo "${ECHO_T}$ac_header_compiler" >&6
19800
19801 # Is the header present?
19802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h.  */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h.  */
19810 #include <$ac_header>
19811 _ACEOF
19812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } >/dev/null; then
19820   if test -s conftest.err; then
19821     ac_cpp_err=$ac_c_preproc_warn_flag
19822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19823   else
19824     ac_cpp_err=
19825   fi
19826 else
19827   ac_cpp_err=yes
19828 fi
19829 if test -z "$ac_cpp_err"; then
19830   ac_header_preproc=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835   ac_header_preproc=no
19836 fi
19837 rm -f conftest.err conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19839 echo "${ECHO_T}$ac_header_preproc" >&6
19840
19841 # So?  What about this header?
19842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19843   yes:no: )
19844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19848     ac_header_preproc=yes
19849     ;;
19850   no:yes:* )
19851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19863     (
19864       cat <<\_ASBOX
19865 ## ------------------------------------------ ##
19866 ## Report this to the AC_PACKAGE_NAME lists.  ##
19867 ## ------------------------------------------ ##
19868 _ASBOX
19869     ) |
19870       sed "s/^/$as_me: WARNING:     /" >&2
19871     ;;
19872 esac
19873 echo "$as_me:$LINENO: checking for $ac_header" >&5
19874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19876   echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878   eval "$as_ac_Header=\$ac_header_preproc"
19879 fi
19880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19882
19883 fi
19884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19885   cat >>confdefs.h <<_ACEOF
19886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19887 _ACEOF
19888
19889 fi
19890
19891 done
19892
19893
19894         if test $ac_cv_header_pthread_h = yes ; then
19895                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19896 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19897 if test "${ol_cv_pthread_version+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900
19901         cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907
19908 #               include <pthread.h>
19909
19910 int
19911 main ()
19912 {
19913
19914                 int i = PTHREAD_CREATE_JOINABLE;
19915
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext
19921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19922   (eval $ac_compile) 2>conftest.er1
19923   ac_status=$?
19924   grep -v '^ *+' conftest.er1 >conftest.err
19925   rm -f conftest.er1
19926   cat conftest.err >&5
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); } &&
19929          { ac_try='test -z "$ac_c_werror_flag"
19930                          || test ! -s conftest.err'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } &&
19936          { ac_try='test -s conftest.$ac_objext'
19937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938   (eval $ac_try) 2>&5
19939   ac_status=$?
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; }; then
19942
19943         cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19949 #include <pthread.h>
19950
19951 _ACEOF
19952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19953   $EGREP "pthread_detach" >/dev/null 2>&1; then
19954   ol_cv_pthread_version=10
19955 else
19956   ol_cv_pthread_version=8
19957 fi
19958 rm -f conftest*
19959
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964
19965         cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h.  */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h.  */
19971
19972 #               include <pthread.h>
19973 #               ifdef PTHREAD_CREATE_UNDETACHED
19974                 draft7
19975 #               endif
19976
19977 _ACEOF
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979   $EGREP "draft7" >/dev/null 2>&1; then
19980   ol_cv_pthread_version=7
19981 else
19982
19983         cat >conftest.$ac_ext <<_ACEOF
19984 /* confdefs.h.  */
19985 _ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h.  */
19989 #include <pthread.h>
19990
19991 _ACEOF
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19994   ol_cv_pthread_version=6
19995 else
19996
19997         cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003
20004 #               include <pthread.h>
20005 #ifdef          PTHREAD_MUTEX_INITIALIZER
20006                 draft5
20007 #endif
20008
20009 _ACEOF
20010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20011   $EGREP "draft5" >/dev/null 2>&1; then
20012   ol_cv_pthread_version=5
20013 else
20014   ol_cv_pthread_version=4
20015 fi
20016 rm -f conftest*
20017
20018 fi
20019 rm -f conftest*
20020
20021 fi
20022 rm -f conftest*
20023
20024 fi
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20026
20027 fi
20028 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20029 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20030
20031
20032                 if test $ol_cv_pthread_version != 0 ; then
20033
20034 cat >>confdefs.h <<_ACEOF
20035 #define HAVE_PTHREADS $ol_cv_pthread_version
20036 _ACEOF
20037
20038                 else
20039                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20040 echo "$as_me: error: unknown pthread version" >&2;}
20041    { (exit 1); exit 1; }; }
20042                 fi
20043
20044                 # consider threads found
20045                 ol_with_threads=found
20046
20047
20048         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20049 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20050 if test "${ol_cv_header_linux_threads+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   cat >conftest.$ac_ext <<_ACEOF
20054 /* confdefs.h.  */
20055 _ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h.  */
20059 #include <pthread.h>
20060 _ACEOF
20061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20062   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20063   ol_cv_header_linux_threads=yes
20064 else
20065   ol_cv_header_linux_threads=no
20066 fi
20067 rm -f conftest*
20068
20069
20070 fi
20071 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20072 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20073         if test $ol_cv_header_linux_threads = yes; then
20074
20075 cat >>confdefs.h <<\_ACEOF
20076 #define HAVE_LINUX_THREADS 1
20077 _ACEOF
20078
20079         fi
20080
20081
20082         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20083 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20084 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093 #include <pthread.h>
20094 #ifdef _POSIX_THREAD_IS_GNU_PTH
20095         __gnu_pth__;
20096 #endif
20097
20098 _ACEOF
20099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20100   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20101   ol_cv_header_gnu_pth_pthread_h=yes
20102 else
20103   ol_cv_header_gnu_pth_pthread_h=no
20104 fi
20105 rm -f conftest*
20106
20107
20108 fi
20109 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20110 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20111
20112
20113                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20114
20115 for ac_header in sched.h
20116 do
20117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20119   echo "$as_me:$LINENO: checking for $ac_header" >&5
20120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20122   echo $ECHO_N "(cached) $ECHO_C" >&6
20123 fi
20124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20126 else
20127   # Is the header compilable?
20128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 #include <$ac_header>
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20141   (eval $ac_compile) 2>conftest.er1
20142   ac_status=$?
20143   grep -v '^ *+' conftest.er1 >conftest.err
20144   rm -f conftest.er1
20145   cat conftest.err >&5
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } &&
20148          { ac_try='test -z "$ac_c_werror_flag"
20149                          || test ! -s conftest.err'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest.$ac_objext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   ac_header_compiler=yes
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ac_header_compiler=no
20167 fi
20168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20170 echo "${ECHO_T}$ac_header_compiler" >&6
20171
20172 # Is the header present?
20173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20175 cat >conftest.$ac_ext <<_ACEOF
20176 /* confdefs.h.  */
20177 _ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h.  */
20181 #include <$ac_header>
20182 _ACEOF
20183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20184   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } >/dev/null; then
20191   if test -s conftest.err; then
20192     ac_cpp_err=$ac_c_preproc_warn_flag
20193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20194   else
20195     ac_cpp_err=
20196   fi
20197 else
20198   ac_cpp_err=yes
20199 fi
20200 if test -z "$ac_cpp_err"; then
20201   ac_header_preproc=yes
20202 else
20203   echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206   ac_header_preproc=no
20207 fi
20208 rm -f conftest.err conftest.$ac_ext
20209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20210 echo "${ECHO_T}$ac_header_preproc" >&6
20211
20212 # So?  What about this header?
20213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20214   yes:no: )
20215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20219     ac_header_preproc=yes
20220     ;;
20221   no:yes:* )
20222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20234     (
20235       cat <<\_ASBOX
20236 ## ------------------------------------------ ##
20237 ## Report this to the AC_PACKAGE_NAME lists.  ##
20238 ## ------------------------------------------ ##
20239 _ASBOX
20240     ) |
20241       sed "s/^/$as_me: WARNING:     /" >&2
20242     ;;
20243 esac
20244 echo "$as_me:$LINENO: checking for $ac_header" >&5
20245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249   eval "$as_ac_Header=\$ac_header_preproc"
20250 fi
20251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20253
20254 fi
20255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20256   cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20258 _ACEOF
20259
20260 fi
20261
20262 done
20263
20264                 fi
20265
20266
20267                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20268 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20269 if test "${ol_cv_pthread_create+set}" = set; then
20270   echo $ECHO_N "(cached) $ECHO_C" >&6
20271 else
20272
20273                         if test "$cross_compiling" = yes; then
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280
20281 /* pthread test headers */
20282 #include <pthread.h>
20283 #if HAVE_PTHREADS < 7
20284 #include <errno.h>
20285 #endif
20286 #ifndef NULL
20287 #define NULL (void*)0
20288 #endif
20289
20290 static void *task(p)
20291         void *p;
20292 {
20293         return (void *) (p == NULL);
20294 }
20295
20296 int
20297 main ()
20298 {
20299
20300         /* pthread test function */
20301 #ifndef PTHREAD_CREATE_DETACHED
20302 #define PTHREAD_CREATE_DETACHED 1
20303 #endif
20304         pthread_t t;
20305         int status;
20306         int detach = PTHREAD_CREATE_DETACHED;
20307
20308 #if HAVE_PTHREADS > 4
20309         /* Final pthreads */
20310         pthread_attr_t attr;
20311
20312         status = pthread_attr_init(&attr);
20313         if( status ) return status;
20314
20315 #if HAVE_PTHREADS < 7
20316         status = pthread_attr_setdetachstate(&attr, &detach);
20317         if( status < 0 ) status = errno;
20318 #else
20319         status = pthread_attr_setdetachstate(&attr, detach);
20320 #endif
20321         if( status ) return status;
20322         status = pthread_create( &t, &attr, task, NULL );
20323 #if HAVE_PTHREADS < 7
20324         if( status < 0 ) status = errno;
20325 #endif
20326         if( status ) return status;
20327 #else
20328         /* Draft 4 pthreads */
20329         status = pthread_create( &t, pthread_attr_default, task, NULL );
20330         if( status ) return errno;
20331
20332         /* give thread a chance to complete */
20333         /* it should remain joinable and hence detachable */
20334         sleep( 1 );
20335
20336         status = pthread_detach( &t );
20337         if( status ) return errno;
20338 #endif
20339
20340 #ifdef HAVE_LINUX_THREADS
20341         pthread_kill_other_threads_np();
20342 #endif
20343
20344         return 0;
20345
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20352   (eval $ac_link) 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } &&
20359          { ac_try='test -z "$ac_c_werror_flag"
20360                          || test ! -s conftest.err'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; } &&
20366          { ac_try='test -s conftest$ac_exeext'
20367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368   (eval $ac_try) 2>&5
20369   ac_status=$?
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; }; then
20372   ol_cv_pthread_create=yes
20373 else
20374   echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ol_cv_pthread_create=no
20378 fi
20379 rm -f conftest.err conftest.$ac_objext \
20380       conftest$ac_exeext conftest.$ac_ext
20381 else
20382   cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388
20389 /* pthread test headers */
20390 #include <pthread.h>
20391 #if HAVE_PTHREADS < 7
20392 #include <errno.h>
20393 #endif
20394 #ifndef NULL
20395 #define NULL (void*)0
20396 #endif
20397
20398 static void *task(p)
20399         void *p;
20400 {
20401         return (void *) (p == NULL);
20402 }
20403
20404
20405 int main(argc, argv)
20406         int argc;
20407         char **argv;
20408 {
20409
20410         /* pthread test function */
20411 #ifndef PTHREAD_CREATE_DETACHED
20412 #define PTHREAD_CREATE_DETACHED 1
20413 #endif
20414         pthread_t t;
20415         int status;
20416         int detach = PTHREAD_CREATE_DETACHED;
20417
20418 #if HAVE_PTHREADS > 4
20419         /* Final pthreads */
20420         pthread_attr_t attr;
20421
20422         status = pthread_attr_init(&attr);
20423         if( status ) return status;
20424
20425 #if HAVE_PTHREADS < 7
20426         status = pthread_attr_setdetachstate(&attr, &detach);
20427         if( status < 0 ) status = errno;
20428 #else
20429         status = pthread_attr_setdetachstate(&attr, detach);
20430 #endif
20431         if( status ) return status;
20432         status = pthread_create( &t, &attr, task, NULL );
20433 #if HAVE_PTHREADS < 7
20434         if( status < 0 ) status = errno;
20435 #endif
20436         if( status ) return status;
20437 #else
20438         /* Draft 4 pthreads */
20439         status = pthread_create( &t, pthread_attr_default, task, NULL );
20440         if( status ) return errno;
20441
20442         /* give thread a chance to complete */
20443         /* it should remain joinable and hence detachable */
20444         sleep( 1 );
20445
20446         status = pthread_detach( &t );
20447         if( status ) return errno;
20448 #endif
20449
20450 #ifdef HAVE_LINUX_THREADS
20451         pthread_kill_other_threads_np();
20452 #endif
20453
20454         return 0;
20455
20456 }
20457
20458 _ACEOF
20459 rm -f conftest$ac_exeext
20460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20461   (eval $ac_link) 2>&5
20462   ac_status=$?
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466   (eval $ac_try) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; }; then
20470   ol_cv_pthread_create=yes
20471 else
20472   echo "$as_me: program exited with status $ac_status" >&5
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ( exit $ac_status )
20477 ol_cv_pthread_create=no
20478 fi
20479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20480 fi
20481 fi
20482 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20483 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20484
20485                 if test $ol_cv_pthread_create != no ; then
20486                         ol_link_threads=posix
20487                         ol_link_pthreads=""
20488                 fi
20489
20490                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20491 if test "$ol_link_threads" = no ; then
20492         # try -kthread
20493         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20494 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20495 if test "${ol_cv_pthread_kthread+set}" = set; then
20496   echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498
20499                 # save the flags
20500                 ol_LIBS="$LIBS"
20501                 LIBS="-kthread $LIBS"
20502
20503                 if test "$cross_compiling" = yes; then
20504   cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510
20511 /* pthread test headers */
20512 #include <pthread.h>
20513 #if HAVE_PTHREADS < 7
20514 #include <errno.h>
20515 #endif
20516 #ifndef NULL
20517 #define NULL (void*)0
20518 #endif
20519
20520 static void *task(p)
20521         void *p;
20522 {
20523         return (void *) (p == NULL);
20524 }
20525
20526 int
20527 main ()
20528 {
20529
20530         /* pthread test function */
20531 #ifndef PTHREAD_CREATE_DETACHED
20532 #define PTHREAD_CREATE_DETACHED 1
20533 #endif
20534         pthread_t t;
20535         int status;
20536         int detach = PTHREAD_CREATE_DETACHED;
20537
20538 #if HAVE_PTHREADS > 4
20539         /* Final pthreads */
20540         pthread_attr_t attr;
20541
20542         status = pthread_attr_init(&attr);
20543         if( status ) return status;
20544
20545 #if HAVE_PTHREADS < 7
20546         status = pthread_attr_setdetachstate(&attr, &detach);
20547         if( status < 0 ) status = errno;
20548 #else
20549         status = pthread_attr_setdetachstate(&attr, detach);
20550 #endif
20551         if( status ) return status;
20552         status = pthread_create( &t, &attr, task, NULL );
20553 #if HAVE_PTHREADS < 7
20554         if( status < 0 ) status = errno;
20555 #endif
20556         if( status ) return status;
20557 #else
20558         /* Draft 4 pthreads */
20559         status = pthread_create( &t, pthread_attr_default, task, NULL );
20560         if( status ) return errno;
20561
20562         /* give thread a chance to complete */
20563         /* it should remain joinable and hence detachable */
20564         sleep( 1 );
20565
20566         status = pthread_detach( &t );
20567         if( status ) return errno;
20568 #endif
20569
20570 #ifdef HAVE_LINUX_THREADS
20571         pthread_kill_other_threads_np();
20572 #endif
20573
20574         return 0;
20575
20576   ;
20577   return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest.$ac_objext conftest$ac_exeext
20581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20582   (eval $ac_link) 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } &&
20589          { ac_try='test -z "$ac_c_werror_flag"
20590                          || test ! -s conftest.err'
20591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592   (eval $ac_try) 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; } &&
20596          { ac_try='test -s conftest$ac_exeext'
20597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598   (eval $ac_try) 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; }; then
20602   ol_cv_pthread_kthread=yes
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607 ol_cv_pthread_kthread=no
20608 fi
20609 rm -f conftest.err conftest.$ac_objext \
20610       conftest$ac_exeext conftest.$ac_ext
20611 else
20612   cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h.  */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h.  */
20618
20619 /* pthread test headers */
20620 #include <pthread.h>
20621 #if HAVE_PTHREADS < 7
20622 #include <errno.h>
20623 #endif
20624 #ifndef NULL
20625 #define NULL (void*)0
20626 #endif
20627
20628 static void *task(p)
20629         void *p;
20630 {
20631         return (void *) (p == NULL);
20632 }
20633
20634
20635 int main(argc, argv)
20636         int argc;
20637         char **argv;
20638 {
20639
20640         /* pthread test function */
20641 #ifndef PTHREAD_CREATE_DETACHED
20642 #define PTHREAD_CREATE_DETACHED 1
20643 #endif
20644         pthread_t t;
20645         int status;
20646         int detach = PTHREAD_CREATE_DETACHED;
20647
20648 #if HAVE_PTHREADS > 4
20649         /* Final pthreads */
20650         pthread_attr_t attr;
20651
20652         status = pthread_attr_init(&attr);
20653         if( status ) return status;
20654
20655 #if HAVE_PTHREADS < 7
20656         status = pthread_attr_setdetachstate(&attr, &detach);
20657         if( status < 0 ) status = errno;
20658 #else
20659         status = pthread_attr_setdetachstate(&attr, detach);
20660 #endif
20661         if( status ) return status;
20662         status = pthread_create( &t, &attr, task, NULL );
20663 #if HAVE_PTHREADS < 7
20664         if( status < 0 ) status = errno;
20665 #endif
20666         if( status ) return status;
20667 #else
20668         /* Draft 4 pthreads */
20669         status = pthread_create( &t, pthread_attr_default, task, NULL );
20670         if( status ) return errno;
20671
20672         /* give thread a chance to complete */
20673         /* it should remain joinable and hence detachable */
20674         sleep( 1 );
20675
20676         status = pthread_detach( &t );
20677         if( status ) return errno;
20678 #endif
20679
20680 #ifdef HAVE_LINUX_THREADS
20681         pthread_kill_other_threads_np();
20682 #endif
20683
20684         return 0;
20685
20686 }
20687
20688 _ACEOF
20689 rm -f conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691   (eval $ac_link) 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696   (eval $ac_try) 2>&5
20697   ac_status=$?
20698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699   (exit $ac_status); }; }; then
20700   ol_cv_pthread_kthread=yes
20701 else
20702   echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 ( exit $ac_status )
20707 ol_cv_pthread_kthread=no
20708 fi
20709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20710 fi
20711
20712                 # restore the LIBS
20713                 LIBS="$ol_LIBS"
20714
20715 fi
20716 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20717 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20718
20719         if test $ol_cv_pthread_kthread = yes ; then
20720                 ol_link_pthreads="-kthread"
20721                 ol_link_threads=posix
20722         fi
20723 fi
20724
20725                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20726 if test "$ol_link_threads" = no ; then
20727         # try -pthread
20728         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20729 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20730 if test "${ol_cv_pthread_pthread+set}" = set; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733
20734                 # save the flags
20735                 ol_LIBS="$LIBS"
20736                 LIBS="-pthread $LIBS"
20737
20738                 if test "$cross_compiling" = yes; then
20739   cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745
20746 /* pthread test headers */
20747 #include <pthread.h>
20748 #if HAVE_PTHREADS < 7
20749 #include <errno.h>
20750 #endif
20751 #ifndef NULL
20752 #define NULL (void*)0
20753 #endif
20754
20755 static void *task(p)
20756         void *p;
20757 {
20758         return (void *) (p == NULL);
20759 }
20760
20761 int
20762 main ()
20763 {
20764
20765         /* pthread test function */
20766 #ifndef PTHREAD_CREATE_DETACHED
20767 #define PTHREAD_CREATE_DETACHED 1
20768 #endif
20769         pthread_t t;
20770         int status;
20771         int detach = PTHREAD_CREATE_DETACHED;
20772
20773 #if HAVE_PTHREADS > 4
20774         /* Final pthreads */
20775         pthread_attr_t attr;
20776
20777         status = pthread_attr_init(&attr);
20778         if( status ) return status;
20779
20780 #if HAVE_PTHREADS < 7
20781         status = pthread_attr_setdetachstate(&attr, &detach);
20782         if( status < 0 ) status = errno;
20783 #else
20784         status = pthread_attr_setdetachstate(&attr, detach);
20785 #endif
20786         if( status ) return status;
20787         status = pthread_create( &t, &attr, task, NULL );
20788 #if HAVE_PTHREADS < 7
20789         if( status < 0 ) status = errno;
20790 #endif
20791         if( status ) return status;
20792 #else
20793         /* Draft 4 pthreads */
20794         status = pthread_create( &t, pthread_attr_default, task, NULL );
20795         if( status ) return errno;
20796
20797         /* give thread a chance to complete */
20798         /* it should remain joinable and hence detachable */
20799         sleep( 1 );
20800
20801         status = pthread_detach( &t );
20802         if( status ) return errno;
20803 #endif
20804
20805 #ifdef HAVE_LINUX_THREADS
20806         pthread_kill_other_threads_np();
20807 #endif
20808
20809         return 0;
20810
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20817   (eval $ac_link) 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } &&
20824          { ac_try='test -z "$ac_c_werror_flag"
20825                          || test ! -s conftest.err'
20826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827   (eval $ac_try) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; } &&
20831          { ac_try='test -s conftest$ac_exeext'
20832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833   (eval $ac_try) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; }; then
20837   ol_cv_pthread_pthread=yes
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842 ol_cv_pthread_pthread=no
20843 fi
20844 rm -f conftest.err conftest.$ac_objext \
20845       conftest$ac_exeext conftest.$ac_ext
20846 else
20847   cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853
20854 /* pthread test headers */
20855 #include <pthread.h>
20856 #if HAVE_PTHREADS < 7
20857 #include <errno.h>
20858 #endif
20859 #ifndef NULL
20860 #define NULL (void*)0
20861 #endif
20862
20863 static void *task(p)
20864         void *p;
20865 {
20866         return (void *) (p == NULL);
20867 }
20868
20869
20870 int main(argc, argv)
20871         int argc;
20872         char **argv;
20873 {
20874
20875         /* pthread test function */
20876 #ifndef PTHREAD_CREATE_DETACHED
20877 #define PTHREAD_CREATE_DETACHED 1
20878 #endif
20879         pthread_t t;
20880         int status;
20881         int detach = PTHREAD_CREATE_DETACHED;
20882
20883 #if HAVE_PTHREADS > 4
20884         /* Final pthreads */
20885         pthread_attr_t attr;
20886
20887         status = pthread_attr_init(&attr);
20888         if( status ) return status;
20889
20890 #if HAVE_PTHREADS < 7
20891         status = pthread_attr_setdetachstate(&attr, &detach);
20892         if( status < 0 ) status = errno;
20893 #else
20894         status = pthread_attr_setdetachstate(&attr, detach);
20895 #endif
20896         if( status ) return status;
20897         status = pthread_create( &t, &attr, task, NULL );
20898 #if HAVE_PTHREADS < 7
20899         if( status < 0 ) status = errno;
20900 #endif
20901         if( status ) return status;
20902 #else
20903         /* Draft 4 pthreads */
20904         status = pthread_create( &t, pthread_attr_default, task, NULL );
20905         if( status ) return errno;
20906
20907         /* give thread a chance to complete */
20908         /* it should remain joinable and hence detachable */
20909         sleep( 1 );
20910
20911         status = pthread_detach( &t );
20912         if( status ) return errno;
20913 #endif
20914
20915 #ifdef HAVE_LINUX_THREADS
20916         pthread_kill_other_threads_np();
20917 #endif
20918
20919         return 0;
20920
20921 }
20922
20923 _ACEOF
20924 rm -f conftest$ac_exeext
20925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20926   (eval $ac_link) 2>&5
20927   ac_status=$?
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931   (eval $ac_try) 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; }; then
20935   ol_cv_pthread_pthread=yes
20936 else
20937   echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 ( exit $ac_status )
20942 ol_cv_pthread_pthread=no
20943 fi
20944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20945 fi
20946
20947                 # restore the LIBS
20948                 LIBS="$ol_LIBS"
20949
20950 fi
20951 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20952 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20953
20954         if test $ol_cv_pthread_pthread = yes ; then
20955                 ol_link_pthreads="-pthread"
20956                 ol_link_threads=posix
20957         fi
20958 fi
20959
20960                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20961 if test "$ol_link_threads" = no ; then
20962         # try -pthreads
20963         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20964 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20965 if test "${ol_cv_pthread_pthreads+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968
20969                 # save the flags
20970                 ol_LIBS="$LIBS"
20971                 LIBS="-pthreads $LIBS"
20972
20973                 if test "$cross_compiling" = yes; then
20974   cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980
20981 /* pthread test headers */
20982 #include <pthread.h>
20983 #if HAVE_PTHREADS < 7
20984 #include <errno.h>
20985 #endif
20986 #ifndef NULL
20987 #define NULL (void*)0
20988 #endif
20989
20990 static void *task(p)
20991         void *p;
20992 {
20993         return (void *) (p == NULL);
20994 }
20995
20996 int
20997 main ()
20998 {
20999
21000         /* pthread test function */
21001 #ifndef PTHREAD_CREATE_DETACHED
21002 #define PTHREAD_CREATE_DETACHED 1
21003 #endif
21004         pthread_t t;
21005         int status;
21006         int detach = PTHREAD_CREATE_DETACHED;
21007
21008 #if HAVE_PTHREADS > 4
21009         /* Final pthreads */
21010         pthread_attr_t attr;
21011
21012         status = pthread_attr_init(&attr);
21013         if( status ) return status;
21014
21015 #if HAVE_PTHREADS < 7
21016         status = pthread_attr_setdetachstate(&attr, &detach);
21017         if( status < 0 ) status = errno;
21018 #else
21019         status = pthread_attr_setdetachstate(&attr, detach);
21020 #endif
21021         if( status ) return status;
21022         status = pthread_create( &t, &attr, task, NULL );
21023 #if HAVE_PTHREADS < 7
21024         if( status < 0 ) status = errno;
21025 #endif
21026         if( status ) return status;
21027 #else
21028         /* Draft 4 pthreads */
21029         status = pthread_create( &t, pthread_attr_default, task, NULL );
21030         if( status ) return errno;
21031
21032         /* give thread a chance to complete */
21033         /* it should remain joinable and hence detachable */
21034         sleep( 1 );
21035
21036         status = pthread_detach( &t );
21037         if( status ) return errno;
21038 #endif
21039
21040 #ifdef HAVE_LINUX_THREADS
21041         pthread_kill_other_threads_np();
21042 #endif
21043
21044         return 0;
21045
21046   ;
21047   return 0;
21048 }
21049 _ACEOF
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21052   (eval $ac_link) 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } &&
21059          { ac_try='test -z "$ac_c_werror_flag"
21060                          || test ! -s conftest.err'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; } &&
21066          { ac_try='test -s conftest$ac_exeext'
21067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068   (eval $ac_try) 2>&5
21069   ac_status=$?
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); }; }; then
21072   ol_cv_pthread_pthreads=yes
21073 else
21074   echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077 ol_cv_pthread_pthreads=no
21078 fi
21079 rm -f conftest.err conftest.$ac_objext \
21080       conftest$ac_exeext conftest.$ac_ext
21081 else
21082   cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088
21089 /* pthread test headers */
21090 #include <pthread.h>
21091 #if HAVE_PTHREADS < 7
21092 #include <errno.h>
21093 #endif
21094 #ifndef NULL
21095 #define NULL (void*)0
21096 #endif
21097
21098 static void *task(p)
21099         void *p;
21100 {
21101         return (void *) (p == NULL);
21102 }
21103
21104
21105 int main(argc, argv)
21106         int argc;
21107         char **argv;
21108 {
21109
21110         /* pthread test function */
21111 #ifndef PTHREAD_CREATE_DETACHED
21112 #define PTHREAD_CREATE_DETACHED 1
21113 #endif
21114         pthread_t t;
21115         int status;
21116         int detach = PTHREAD_CREATE_DETACHED;
21117
21118 #if HAVE_PTHREADS > 4
21119         /* Final pthreads */
21120         pthread_attr_t attr;
21121
21122         status = pthread_attr_init(&attr);
21123         if( status ) return status;
21124
21125 #if HAVE_PTHREADS < 7
21126         status = pthread_attr_setdetachstate(&attr, &detach);
21127         if( status < 0 ) status = errno;
21128 #else
21129         status = pthread_attr_setdetachstate(&attr, detach);
21130 #endif
21131         if( status ) return status;
21132         status = pthread_create( &t, &attr, task, NULL );
21133 #if HAVE_PTHREADS < 7
21134         if( status < 0 ) status = errno;
21135 #endif
21136         if( status ) return status;
21137 #else
21138         /* Draft 4 pthreads */
21139         status = pthread_create( &t, pthread_attr_default, task, NULL );
21140         if( status ) return errno;
21141
21142         /* give thread a chance to complete */
21143         /* it should remain joinable and hence detachable */
21144         sleep( 1 );
21145
21146         status = pthread_detach( &t );
21147         if( status ) return errno;
21148 #endif
21149
21150 #ifdef HAVE_LINUX_THREADS
21151         pthread_kill_other_threads_np();
21152 #endif
21153
21154         return 0;
21155
21156 }
21157
21158 _ACEOF
21159 rm -f conftest$ac_exeext
21160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21161   (eval $ac_link) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; }; then
21170   ol_cv_pthread_pthreads=yes
21171 else
21172   echo "$as_me: program exited with status $ac_status" >&5
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 ( exit $ac_status )
21177 ol_cv_pthread_pthreads=no
21178 fi
21179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21180 fi
21181
21182                 # restore the LIBS
21183                 LIBS="$ol_LIBS"
21184
21185 fi
21186 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21187 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21188
21189         if test $ol_cv_pthread_pthreads = yes ; then
21190                 ol_link_pthreads="-pthreads"
21191                 ol_link_threads=posix
21192         fi
21193 fi
21194
21195                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21196 if test "$ol_link_threads" = no ; then
21197         # try -mthreads
21198         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21199 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21200 if test "${ol_cv_pthread_mthreads+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203
21204                 # save the flags
21205                 ol_LIBS="$LIBS"
21206                 LIBS="-mthreads $LIBS"
21207
21208                 if test "$cross_compiling" = yes; then
21209   cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215
21216 /* pthread test headers */
21217 #include <pthread.h>
21218 #if HAVE_PTHREADS < 7
21219 #include <errno.h>
21220 #endif
21221 #ifndef NULL
21222 #define NULL (void*)0
21223 #endif
21224
21225 static void *task(p)
21226         void *p;
21227 {
21228         return (void *) (p == NULL);
21229 }
21230
21231 int
21232 main ()
21233 {
21234
21235         /* pthread test function */
21236 #ifndef PTHREAD_CREATE_DETACHED
21237 #define PTHREAD_CREATE_DETACHED 1
21238 #endif
21239         pthread_t t;
21240         int status;
21241         int detach = PTHREAD_CREATE_DETACHED;
21242
21243 #if HAVE_PTHREADS > 4
21244         /* Final pthreads */
21245         pthread_attr_t attr;
21246
21247         status = pthread_attr_init(&attr);
21248         if( status ) return status;
21249
21250 #if HAVE_PTHREADS < 7
21251         status = pthread_attr_setdetachstate(&attr, &detach);
21252         if( status < 0 ) status = errno;
21253 #else
21254         status = pthread_attr_setdetachstate(&attr, detach);
21255 #endif
21256         if( status ) return status;
21257         status = pthread_create( &t, &attr, task, NULL );
21258 #if HAVE_PTHREADS < 7
21259         if( status < 0 ) status = errno;
21260 #endif
21261         if( status ) return status;
21262 #else
21263         /* Draft 4 pthreads */
21264         status = pthread_create( &t, pthread_attr_default, task, NULL );
21265         if( status ) return errno;
21266
21267         /* give thread a chance to complete */
21268         /* it should remain joinable and hence detachable */
21269         sleep( 1 );
21270
21271         status = pthread_detach( &t );
21272         if( status ) return errno;
21273 #endif
21274
21275 #ifdef HAVE_LINUX_THREADS
21276         pthread_kill_other_threads_np();
21277 #endif
21278
21279         return 0;
21280
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287   (eval $ac_link) 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } &&
21294          { ac_try='test -z "$ac_c_werror_flag"
21295                          || test ! -s conftest.err'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest$ac_exeext'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; }; then
21307   ol_cv_pthread_mthreads=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ol_cv_pthread_mthreads=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext \
21315       conftest$ac_exeext conftest.$ac_ext
21316 else
21317   cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323
21324 /* pthread test headers */
21325 #include <pthread.h>
21326 #if HAVE_PTHREADS < 7
21327 #include <errno.h>
21328 #endif
21329 #ifndef NULL
21330 #define NULL (void*)0
21331 #endif
21332
21333 static void *task(p)
21334         void *p;
21335 {
21336         return (void *) (p == NULL);
21337 }
21338
21339
21340 int main(argc, argv)
21341         int argc;
21342         char **argv;
21343 {
21344
21345         /* pthread test function */
21346 #ifndef PTHREAD_CREATE_DETACHED
21347 #define PTHREAD_CREATE_DETACHED 1
21348 #endif
21349         pthread_t t;
21350         int status;
21351         int detach = PTHREAD_CREATE_DETACHED;
21352
21353 #if HAVE_PTHREADS > 4
21354         /* Final pthreads */
21355         pthread_attr_t attr;
21356
21357         status = pthread_attr_init(&attr);
21358         if( status ) return status;
21359
21360 #if HAVE_PTHREADS < 7
21361         status = pthread_attr_setdetachstate(&attr, &detach);
21362         if( status < 0 ) status = errno;
21363 #else
21364         status = pthread_attr_setdetachstate(&attr, detach);
21365 #endif
21366         if( status ) return status;
21367         status = pthread_create( &t, &attr, task, NULL );
21368 #if HAVE_PTHREADS < 7
21369         if( status < 0 ) status = errno;
21370 #endif
21371         if( status ) return status;
21372 #else
21373         /* Draft 4 pthreads */
21374         status = pthread_create( &t, pthread_attr_default, task, NULL );
21375         if( status ) return errno;
21376
21377         /* give thread a chance to complete */
21378         /* it should remain joinable and hence detachable */
21379         sleep( 1 );
21380
21381         status = pthread_detach( &t );
21382         if( status ) return errno;
21383 #endif
21384
21385 #ifdef HAVE_LINUX_THREADS
21386         pthread_kill_other_threads_np();
21387 #endif
21388
21389         return 0;
21390
21391 }
21392
21393 _ACEOF
21394 rm -f conftest$ac_exeext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396   (eval $ac_link) 2>&5
21397   ac_status=$?
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401   (eval $ac_try) 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); }; }; then
21405   ol_cv_pthread_mthreads=yes
21406 else
21407   echo "$as_me: program exited with status $ac_status" >&5
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 ( exit $ac_status )
21412 ol_cv_pthread_mthreads=no
21413 fi
21414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21415 fi
21416
21417                 # restore the LIBS
21418                 LIBS="$ol_LIBS"
21419
21420 fi
21421 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21422 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21423
21424         if test $ol_cv_pthread_mthreads = yes ; then
21425                 ol_link_pthreads="-mthreads"
21426                 ol_link_threads=posix
21427         fi
21428 fi
21429
21430                 # Pthread try link: -thread (ol_cv_pthread_thread)
21431 if test "$ol_link_threads" = no ; then
21432         # try -thread
21433         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21434 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21435 if test "${ol_cv_pthread_thread+set}" = set; then
21436   echo $ECHO_N "(cached) $ECHO_C" >&6
21437 else
21438
21439                 # save the flags
21440                 ol_LIBS="$LIBS"
21441                 LIBS="-thread $LIBS"
21442
21443                 if test "$cross_compiling" = yes; then
21444   cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450
21451 /* pthread test headers */
21452 #include <pthread.h>
21453 #if HAVE_PTHREADS < 7
21454 #include <errno.h>
21455 #endif
21456 #ifndef NULL
21457 #define NULL (void*)0
21458 #endif
21459
21460 static void *task(p)
21461         void *p;
21462 {
21463         return (void *) (p == NULL);
21464 }
21465
21466 int
21467 main ()
21468 {
21469
21470         /* pthread test function */
21471 #ifndef PTHREAD_CREATE_DETACHED
21472 #define PTHREAD_CREATE_DETACHED 1
21473 #endif
21474         pthread_t t;
21475         int status;
21476         int detach = PTHREAD_CREATE_DETACHED;
21477
21478 #if HAVE_PTHREADS > 4
21479         /* Final pthreads */
21480         pthread_attr_t attr;
21481
21482         status = pthread_attr_init(&attr);
21483         if( status ) return status;
21484
21485 #if HAVE_PTHREADS < 7
21486         status = pthread_attr_setdetachstate(&attr, &detach);
21487         if( status < 0 ) status = errno;
21488 #else
21489         status = pthread_attr_setdetachstate(&attr, detach);
21490 #endif
21491         if( status ) return status;
21492         status = pthread_create( &t, &attr, task, NULL );
21493 #if HAVE_PTHREADS < 7
21494         if( status < 0 ) status = errno;
21495 #endif
21496         if( status ) return status;
21497 #else
21498         /* Draft 4 pthreads */
21499         status = pthread_create( &t, pthread_attr_default, task, NULL );
21500         if( status ) return errno;
21501
21502         /* give thread a chance to complete */
21503         /* it should remain joinable and hence detachable */
21504         sleep( 1 );
21505
21506         status = pthread_detach( &t );
21507         if( status ) return errno;
21508 #endif
21509
21510 #ifdef HAVE_LINUX_THREADS
21511         pthread_kill_other_threads_np();
21512 #endif
21513
21514         return 0;
21515
21516   ;
21517   return 0;
21518 }
21519 _ACEOF
21520 rm -f conftest.$ac_objext conftest$ac_exeext
21521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21522   (eval $ac_link) 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } &&
21529          { ac_try='test -z "$ac_c_werror_flag"
21530                          || test ! -s conftest.err'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; } &&
21536          { ac_try='test -s conftest$ac_exeext'
21537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538   (eval $ac_try) 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; }; then
21542   ol_cv_pthread_thread=yes
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547 ol_cv_pthread_thread=no
21548 fi
21549 rm -f conftest.err conftest.$ac_objext \
21550       conftest$ac_exeext conftest.$ac_ext
21551 else
21552   cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558
21559 /* pthread test headers */
21560 #include <pthread.h>
21561 #if HAVE_PTHREADS < 7
21562 #include <errno.h>
21563 #endif
21564 #ifndef NULL
21565 #define NULL (void*)0
21566 #endif
21567
21568 static void *task(p)
21569         void *p;
21570 {
21571         return (void *) (p == NULL);
21572 }
21573
21574
21575 int main(argc, argv)
21576         int argc;
21577         char **argv;
21578 {
21579
21580         /* pthread test function */
21581 #ifndef PTHREAD_CREATE_DETACHED
21582 #define PTHREAD_CREATE_DETACHED 1
21583 #endif
21584         pthread_t t;
21585         int status;
21586         int detach = PTHREAD_CREATE_DETACHED;
21587
21588 #if HAVE_PTHREADS > 4
21589         /* Final pthreads */
21590         pthread_attr_t attr;
21591
21592         status = pthread_attr_init(&attr);
21593         if( status ) return status;
21594
21595 #if HAVE_PTHREADS < 7
21596         status = pthread_attr_setdetachstate(&attr, &detach);
21597         if( status < 0 ) status = errno;
21598 #else
21599         status = pthread_attr_setdetachstate(&attr, detach);
21600 #endif
21601         if( status ) return status;
21602         status = pthread_create( &t, &attr, task, NULL );
21603 #if HAVE_PTHREADS < 7
21604         if( status < 0 ) status = errno;
21605 #endif
21606         if( status ) return status;
21607 #else
21608         /* Draft 4 pthreads */
21609         status = pthread_create( &t, pthread_attr_default, task, NULL );
21610         if( status ) return errno;
21611
21612         /* give thread a chance to complete */
21613         /* it should remain joinable and hence detachable */
21614         sleep( 1 );
21615
21616         status = pthread_detach( &t );
21617         if( status ) return errno;
21618 #endif
21619
21620 #ifdef HAVE_LINUX_THREADS
21621         pthread_kill_other_threads_np();
21622 #endif
21623
21624         return 0;
21625
21626 }
21627
21628 _ACEOF
21629 rm -f conftest$ac_exeext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21631   (eval $ac_link) 2>&5
21632   ac_status=$?
21633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636   (eval $ac_try) 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); }; }; then
21640   ol_cv_pthread_thread=yes
21641 else
21642   echo "$as_me: program exited with status $ac_status" >&5
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ( exit $ac_status )
21647 ol_cv_pthread_thread=no
21648 fi
21649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21650 fi
21651
21652                 # restore the LIBS
21653                 LIBS="$ol_LIBS"
21654
21655 fi
21656 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21657 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21658
21659         if test $ol_cv_pthread_thread = yes ; then
21660                 ol_link_pthreads="-thread"
21661                 ol_link_threads=posix
21662         fi
21663 fi
21664
21665
21666                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21667 if test "$ol_link_threads" = no ; then
21668         # try -lpthread -lmach -lexc -lc_r
21669         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21670 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21671 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21672   echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674
21675                 # save the flags
21676                 ol_LIBS="$LIBS"
21677                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21678
21679                 if test "$cross_compiling" = yes; then
21680   cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686
21687 /* pthread test headers */
21688 #include <pthread.h>
21689 #if HAVE_PTHREADS < 7
21690 #include <errno.h>
21691 #endif
21692 #ifndef NULL
21693 #define NULL (void*)0
21694 #endif
21695
21696 static void *task(p)
21697         void *p;
21698 {
21699         return (void *) (p == NULL);
21700 }
21701
21702 int
21703 main ()
21704 {
21705
21706         /* pthread test function */
21707 #ifndef PTHREAD_CREATE_DETACHED
21708 #define PTHREAD_CREATE_DETACHED 1
21709 #endif
21710         pthread_t t;
21711         int status;
21712         int detach = PTHREAD_CREATE_DETACHED;
21713
21714 #if HAVE_PTHREADS > 4
21715         /* Final pthreads */
21716         pthread_attr_t attr;
21717
21718         status = pthread_attr_init(&attr);
21719         if( status ) return status;
21720
21721 #if HAVE_PTHREADS < 7
21722         status = pthread_attr_setdetachstate(&attr, &detach);
21723         if( status < 0 ) status = errno;
21724 #else
21725         status = pthread_attr_setdetachstate(&attr, detach);
21726 #endif
21727         if( status ) return status;
21728         status = pthread_create( &t, &attr, task, NULL );
21729 #if HAVE_PTHREADS < 7
21730         if( status < 0 ) status = errno;
21731 #endif
21732         if( status ) return status;
21733 #else
21734         /* Draft 4 pthreads */
21735         status = pthread_create( &t, pthread_attr_default, task, NULL );
21736         if( status ) return errno;
21737
21738         /* give thread a chance to complete */
21739         /* it should remain joinable and hence detachable */
21740         sleep( 1 );
21741
21742         status = pthread_detach( &t );
21743         if( status ) return errno;
21744 #endif
21745
21746 #ifdef HAVE_LINUX_THREADS
21747         pthread_kill_other_threads_np();
21748 #endif
21749
21750         return 0;
21751
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758   (eval $ac_link) 2>conftest.er1
21759   ac_status=$?
21760   grep -v '^ *+' conftest.er1 >conftest.err
21761   rm -f conftest.er1
21762   cat conftest.err >&5
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } &&
21765          { ac_try='test -z "$ac_c_werror_flag"
21766                          || test ! -s conftest.err'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; } &&
21772          { ac_try='test -s conftest$ac_exeext'
21773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774   (eval $ac_try) 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; }; then
21778   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21784 fi
21785 rm -f conftest.err conftest.$ac_objext \
21786       conftest$ac_exeext conftest.$ac_ext
21787 else
21788   cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h.  */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h.  */
21794
21795 /* pthread test headers */
21796 #include <pthread.h>
21797 #if HAVE_PTHREADS < 7
21798 #include <errno.h>
21799 #endif
21800 #ifndef NULL
21801 #define NULL (void*)0
21802 #endif
21803
21804 static void *task(p)
21805         void *p;
21806 {
21807         return (void *) (p == NULL);
21808 }
21809
21810
21811 int main(argc, argv)
21812         int argc;
21813         char **argv;
21814 {
21815
21816         /* pthread test function */
21817 #ifndef PTHREAD_CREATE_DETACHED
21818 #define PTHREAD_CREATE_DETACHED 1
21819 #endif
21820         pthread_t t;
21821         int status;
21822         int detach = PTHREAD_CREATE_DETACHED;
21823
21824 #if HAVE_PTHREADS > 4
21825         /* Final pthreads */
21826         pthread_attr_t attr;
21827
21828         status = pthread_attr_init(&attr);
21829         if( status ) return status;
21830
21831 #if HAVE_PTHREADS < 7
21832         status = pthread_attr_setdetachstate(&attr, &detach);
21833         if( status < 0 ) status = errno;
21834 #else
21835         status = pthread_attr_setdetachstate(&attr, detach);
21836 #endif
21837         if( status ) return status;
21838         status = pthread_create( &t, &attr, task, NULL );
21839 #if HAVE_PTHREADS < 7
21840         if( status < 0 ) status = errno;
21841 #endif
21842         if( status ) return status;
21843 #else
21844         /* Draft 4 pthreads */
21845         status = pthread_create( &t, pthread_attr_default, task, NULL );
21846         if( status ) return errno;
21847
21848         /* give thread a chance to complete */
21849         /* it should remain joinable and hence detachable */
21850         sleep( 1 );
21851
21852         status = pthread_detach( &t );
21853         if( status ) return errno;
21854 #endif
21855
21856 #ifdef HAVE_LINUX_THREADS
21857         pthread_kill_other_threads_np();
21858 #endif
21859
21860         return 0;
21861
21862 }
21863
21864 _ACEOF
21865 rm -f conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867   (eval $ac_link) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21872   (eval $ac_try) 2>&5
21873   ac_status=$?
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); }; }; then
21876   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21877 else
21878   echo "$as_me: program exited with status $ac_status" >&5
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ( exit $ac_status )
21883 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21884 fi
21885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21886 fi
21887
21888                 # restore the LIBS
21889                 LIBS="$ol_LIBS"
21890
21891 fi
21892 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21893 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21894
21895         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21896                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21897                 ol_link_threads=posix
21898         fi
21899 fi
21900
21901                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21902 if test "$ol_link_threads" = no ; then
21903         # try -lpthread -lmach -lexc
21904         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21905 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21906 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21907   echo $ECHO_N "(cached) $ECHO_C" >&6
21908 else
21909
21910                 # save the flags
21911                 ol_LIBS="$LIBS"
21912                 LIBS="-lpthread -lmach -lexc $LIBS"
21913
21914                 if test "$cross_compiling" = yes; then
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921
21922 /* pthread test headers */
21923 #include <pthread.h>
21924 #if HAVE_PTHREADS < 7
21925 #include <errno.h>
21926 #endif
21927 #ifndef NULL
21928 #define NULL (void*)0
21929 #endif
21930
21931 static void *task(p)
21932         void *p;
21933 {
21934         return (void *) (p == NULL);
21935 }
21936
21937 int
21938 main ()
21939 {
21940
21941         /* pthread test function */
21942 #ifndef PTHREAD_CREATE_DETACHED
21943 #define PTHREAD_CREATE_DETACHED 1
21944 #endif
21945         pthread_t t;
21946         int status;
21947         int detach = PTHREAD_CREATE_DETACHED;
21948
21949 #if HAVE_PTHREADS > 4
21950         /* Final pthreads */
21951         pthread_attr_t attr;
21952
21953         status = pthread_attr_init(&attr);
21954         if( status ) return status;
21955
21956 #if HAVE_PTHREADS < 7
21957         status = pthread_attr_setdetachstate(&attr, &detach);
21958         if( status < 0 ) status = errno;
21959 #else
21960         status = pthread_attr_setdetachstate(&attr, detach);
21961 #endif
21962         if( status ) return status;
21963         status = pthread_create( &t, &attr, task, NULL );
21964 #if HAVE_PTHREADS < 7
21965         if( status < 0 ) status = errno;
21966 #endif
21967         if( status ) return status;
21968 #else
21969         /* Draft 4 pthreads */
21970         status = pthread_create( &t, pthread_attr_default, task, NULL );
21971         if( status ) return errno;
21972
21973         /* give thread a chance to complete */
21974         /* it should remain joinable and hence detachable */
21975         sleep( 1 );
21976
21977         status = pthread_detach( &t );
21978         if( status ) return errno;
21979 #endif
21980
21981 #ifdef HAVE_LINUX_THREADS
21982         pthread_kill_other_threads_np();
21983 #endif
21984
21985         return 0;
21986
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21993   (eval $ac_link) 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_c_werror_flag"
22001                          || test ! -s conftest.err'
22002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest$ac_exeext'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }; then
22013   ol_cv_pthread_lpthread_lmach_lexc=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 ol_cv_pthread_lpthread_lmach_lexc=no
22019 fi
22020 rm -f conftest.err conftest.$ac_objext \
22021       conftest$ac_exeext conftest.$ac_ext
22022 else
22023   cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h.  */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h.  */
22029
22030 /* pthread test headers */
22031 #include <pthread.h>
22032 #if HAVE_PTHREADS < 7
22033 #include <errno.h>
22034 #endif
22035 #ifndef NULL
22036 #define NULL (void*)0
22037 #endif
22038
22039 static void *task(p)
22040         void *p;
22041 {
22042         return (void *) (p == NULL);
22043 }
22044
22045
22046 int main(argc, argv)
22047         int argc;
22048         char **argv;
22049 {
22050
22051         /* pthread test function */
22052 #ifndef PTHREAD_CREATE_DETACHED
22053 #define PTHREAD_CREATE_DETACHED 1
22054 #endif
22055         pthread_t t;
22056         int status;
22057         int detach = PTHREAD_CREATE_DETACHED;
22058
22059 #if HAVE_PTHREADS > 4
22060         /* Final pthreads */
22061         pthread_attr_t attr;
22062
22063         status = pthread_attr_init(&attr);
22064         if( status ) return status;
22065
22066 #if HAVE_PTHREADS < 7
22067         status = pthread_attr_setdetachstate(&attr, &detach);
22068         if( status < 0 ) status = errno;
22069 #else
22070         status = pthread_attr_setdetachstate(&attr, detach);
22071 #endif
22072         if( status ) return status;
22073         status = pthread_create( &t, &attr, task, NULL );
22074 #if HAVE_PTHREADS < 7
22075         if( status < 0 ) status = errno;
22076 #endif
22077         if( status ) return status;
22078 #else
22079         /* Draft 4 pthreads */
22080         status = pthread_create( &t, pthread_attr_default, task, NULL );
22081         if( status ) return errno;
22082
22083         /* give thread a chance to complete */
22084         /* it should remain joinable and hence detachable */
22085         sleep( 1 );
22086
22087         status = pthread_detach( &t );
22088         if( status ) return errno;
22089 #endif
22090
22091 #ifdef HAVE_LINUX_THREADS
22092         pthread_kill_other_threads_np();
22093 #endif
22094
22095         return 0;
22096
22097 }
22098
22099 _ACEOF
22100 rm -f conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102   (eval $ac_link) 2>&5
22103   ac_status=$?
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107   (eval $ac_try) 2>&5
22108   ac_status=$?
22109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110   (exit $ac_status); }; }; then
22111   ol_cv_pthread_lpthread_lmach_lexc=yes
22112 else
22113   echo "$as_me: program exited with status $ac_status" >&5
22114 echo "$as_me: failed program was:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22116
22117 ( exit $ac_status )
22118 ol_cv_pthread_lpthread_lmach_lexc=no
22119 fi
22120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22121 fi
22122
22123                 # restore the LIBS
22124                 LIBS="$ol_LIBS"
22125
22126 fi
22127 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22128 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22129
22130         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22131                 ol_link_pthreads="-lpthread -lmach -lexc"
22132                 ol_link_threads=posix
22133         fi
22134 fi
22135
22136
22137                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22138 if test "$ol_link_threads" = no ; then
22139         # try -lpthread -Wl,-woff,85
22140         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22141 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22142 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22143   echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
22145
22146                 # save the flags
22147                 ol_LIBS="$LIBS"
22148                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22149
22150                 if test "$cross_compiling" = yes; then
22151   cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157
22158 /* pthread test headers */
22159 #include <pthread.h>
22160 #if HAVE_PTHREADS < 7
22161 #include <errno.h>
22162 #endif
22163 #ifndef NULL
22164 #define NULL (void*)0
22165 #endif
22166
22167 static void *task(p)
22168         void *p;
22169 {
22170         return (void *) (p == NULL);
22171 }
22172
22173 int
22174 main ()
22175 {
22176
22177         /* pthread test function */
22178 #ifndef PTHREAD_CREATE_DETACHED
22179 #define PTHREAD_CREATE_DETACHED 1
22180 #endif
22181         pthread_t t;
22182         int status;
22183         int detach = PTHREAD_CREATE_DETACHED;
22184
22185 #if HAVE_PTHREADS > 4
22186         /* Final pthreads */
22187         pthread_attr_t attr;
22188
22189         status = pthread_attr_init(&attr);
22190         if( status ) return status;
22191
22192 #if HAVE_PTHREADS < 7
22193         status = pthread_attr_setdetachstate(&attr, &detach);
22194         if( status < 0 ) status = errno;
22195 #else
22196         status = pthread_attr_setdetachstate(&attr, detach);
22197 #endif
22198         if( status ) return status;
22199         status = pthread_create( &t, &attr, task, NULL );
22200 #if HAVE_PTHREADS < 7
22201         if( status < 0 ) status = errno;
22202 #endif
22203         if( status ) return status;
22204 #else
22205         /* Draft 4 pthreads */
22206         status = pthread_create( &t, pthread_attr_default, task, NULL );
22207         if( status ) return errno;
22208
22209         /* give thread a chance to complete */
22210         /* it should remain joinable and hence detachable */
22211         sleep( 1 );
22212
22213         status = pthread_detach( &t );
22214         if( status ) return errno;
22215 #endif
22216
22217 #ifdef HAVE_LINUX_THREADS
22218         pthread_kill_other_threads_np();
22219 #endif
22220
22221         return 0;
22222
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229   (eval $ac_link) 2>conftest.er1
22230   ac_status=$?
22231   grep -v '^ *+' conftest.er1 >conftest.err
22232   rm -f conftest.er1
22233   cat conftest.err >&5
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } &&
22236          { ac_try='test -z "$ac_c_werror_flag"
22237                          || test ! -s conftest.err'
22238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239   (eval $ac_try) 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; } &&
22243          { ac_try='test -s conftest$ac_exeext'
22244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245   (eval $ac_try) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; }; then
22249   ol_cv_pthread_lib_lpthread_woff=yes
22250 else
22251   echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254 ol_cv_pthread_lib_lpthread_woff=no
22255 fi
22256 rm -f conftest.err conftest.$ac_objext \
22257       conftest$ac_exeext conftest.$ac_ext
22258 else
22259   cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h.  */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h.  */
22265
22266 /* pthread test headers */
22267 #include <pthread.h>
22268 #if HAVE_PTHREADS < 7
22269 #include <errno.h>
22270 #endif
22271 #ifndef NULL
22272 #define NULL (void*)0
22273 #endif
22274
22275 static void *task(p)
22276         void *p;
22277 {
22278         return (void *) (p == NULL);
22279 }
22280
22281
22282 int main(argc, argv)
22283         int argc;
22284         char **argv;
22285 {
22286
22287         /* pthread test function */
22288 #ifndef PTHREAD_CREATE_DETACHED
22289 #define PTHREAD_CREATE_DETACHED 1
22290 #endif
22291         pthread_t t;
22292         int status;
22293         int detach = PTHREAD_CREATE_DETACHED;
22294
22295 #if HAVE_PTHREADS > 4
22296         /* Final pthreads */
22297         pthread_attr_t attr;
22298
22299         status = pthread_attr_init(&attr);
22300         if( status ) return status;
22301
22302 #if HAVE_PTHREADS < 7
22303         status = pthread_attr_setdetachstate(&attr, &detach);
22304         if( status < 0 ) status = errno;
22305 #else
22306         status = pthread_attr_setdetachstate(&attr, detach);
22307 #endif
22308         if( status ) return status;
22309         status = pthread_create( &t, &attr, task, NULL );
22310 #if HAVE_PTHREADS < 7
22311         if( status < 0 ) status = errno;
22312 #endif
22313         if( status ) return status;
22314 #else
22315         /* Draft 4 pthreads */
22316         status = pthread_create( &t, pthread_attr_default, task, NULL );
22317         if( status ) return errno;
22318
22319         /* give thread a chance to complete */
22320         /* it should remain joinable and hence detachable */
22321         sleep( 1 );
22322
22323         status = pthread_detach( &t );
22324         if( status ) return errno;
22325 #endif
22326
22327 #ifdef HAVE_LINUX_THREADS
22328         pthread_kill_other_threads_np();
22329 #endif
22330
22331         return 0;
22332
22333 }
22334
22335 _ACEOF
22336 rm -f conftest$ac_exeext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22338   (eval $ac_link) 2>&5
22339   ac_status=$?
22340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); }; }; then
22347   ol_cv_pthread_lib_lpthread_woff=yes
22348 else
22349   echo "$as_me: program exited with status $ac_status" >&5
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 ( exit $ac_status )
22354 ol_cv_pthread_lib_lpthread_woff=no
22355 fi
22356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22357 fi
22358
22359                 # restore the LIBS
22360                 LIBS="$ol_LIBS"
22361
22362 fi
22363 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22364 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22365
22366         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22367                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22368                 ol_link_threads=posix
22369         fi
22370 fi
22371
22372
22373                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22374 if test "$ol_link_threads" = no ; then
22375         # try -lpthread
22376         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22377 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22378 if test "${ol_cv_pthread_lpthread+set}" = set; then
22379   echo $ECHO_N "(cached) $ECHO_C" >&6
22380 else
22381
22382                 # save the flags
22383                 ol_LIBS="$LIBS"
22384                 LIBS="-lpthread $LIBS"
22385
22386                 if test "$cross_compiling" = yes; then
22387   cat >conftest.$ac_ext <<_ACEOF
22388 /* confdefs.h.  */
22389 _ACEOF
22390 cat confdefs.h >>conftest.$ac_ext
22391 cat >>conftest.$ac_ext <<_ACEOF
22392 /* end confdefs.h.  */
22393
22394 /* pthread test headers */
22395 #include <pthread.h>
22396 #if HAVE_PTHREADS < 7
22397 #include <errno.h>
22398 #endif
22399 #ifndef NULL
22400 #define NULL (void*)0
22401 #endif
22402
22403 static void *task(p)
22404         void *p;
22405 {
22406         return (void *) (p == NULL);
22407 }
22408
22409 int
22410 main ()
22411 {
22412
22413         /* pthread test function */
22414 #ifndef PTHREAD_CREATE_DETACHED
22415 #define PTHREAD_CREATE_DETACHED 1
22416 #endif
22417         pthread_t t;
22418         int status;
22419         int detach = PTHREAD_CREATE_DETACHED;
22420
22421 #if HAVE_PTHREADS > 4
22422         /* Final pthreads */
22423         pthread_attr_t attr;
22424
22425         status = pthread_attr_init(&attr);
22426         if( status ) return status;
22427
22428 #if HAVE_PTHREADS < 7
22429         status = pthread_attr_setdetachstate(&attr, &detach);
22430         if( status < 0 ) status = errno;
22431 #else
22432         status = pthread_attr_setdetachstate(&attr, detach);
22433 #endif
22434         if( status ) return status;
22435         status = pthread_create( &t, &attr, task, NULL );
22436 #if HAVE_PTHREADS < 7
22437         if( status < 0 ) status = errno;
22438 #endif
22439         if( status ) return status;
22440 #else
22441         /* Draft 4 pthreads */
22442         status = pthread_create( &t, pthread_attr_default, task, NULL );
22443         if( status ) return errno;
22444
22445         /* give thread a chance to complete */
22446         /* it should remain joinable and hence detachable */
22447         sleep( 1 );
22448
22449         status = pthread_detach( &t );
22450         if( status ) return errno;
22451 #endif
22452
22453 #ifdef HAVE_LINUX_THREADS
22454         pthread_kill_other_threads_np();
22455 #endif
22456
22457         return 0;
22458
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 rm -f conftest.$ac_objext conftest$ac_exeext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22465   (eval $ac_link) 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } &&
22472          { ac_try='test -z "$ac_c_werror_flag"
22473                          || test ! -s conftest.err'
22474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475   (eval $ac_try) 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; } &&
22479          { ac_try='test -s conftest$ac_exeext'
22480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); }; }; then
22485   ol_cv_pthread_lpthread=yes
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ol_cv_pthread_lpthread=no
22491 fi
22492 rm -f conftest.err conftest.$ac_objext \
22493       conftest$ac_exeext conftest.$ac_ext
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22505 #include <errno.h>
22506 #endif
22507 #ifndef NULL
22508 #define NULL (void*)0
22509 #endif
22510
22511 static void *task(p)
22512         void *p;
22513 {
22514         return (void *) (p == NULL);
22515 }
22516
22517
22518 int main(argc, argv)
22519         int argc;
22520         char **argv;
22521 {
22522
22523         /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22526 #endif
22527         pthread_t t;
22528         int status;
22529         int detach = PTHREAD_CREATE_DETACHED;
22530
22531 #if HAVE_PTHREADS > 4
22532         /* Final pthreads */
22533         pthread_attr_t attr;
22534
22535         status = pthread_attr_init(&attr);
22536         if( status ) return status;
22537
22538 #if HAVE_PTHREADS < 7
22539         status = pthread_attr_setdetachstate(&attr, &detach);
22540         if( status < 0 ) status = errno;
22541 #else
22542         status = pthread_attr_setdetachstate(&attr, detach);
22543 #endif
22544         if( status ) return status;
22545         status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547         if( status < 0 ) status = errno;
22548 #endif
22549         if( status ) return status;
22550 #else
22551         /* Draft 4 pthreads */
22552         status = pthread_create( &t, pthread_attr_default, task, NULL );
22553         if( status ) return errno;
22554
22555         /* give thread a chance to complete */
22556         /* it should remain joinable and hence detachable */
22557         sleep( 1 );
22558
22559         status = pthread_detach( &t );
22560         if( status ) return errno;
22561 #endif
22562
22563 #ifdef HAVE_LINUX_THREADS
22564         pthread_kill_other_threads_np();
22565 #endif
22566
22567         return 0;
22568
22569 }
22570
22571 _ACEOF
22572 rm -f conftest$ac_exeext
22573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22574   (eval $ac_link) 2>&5
22575   ac_status=$?
22576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ol_cv_pthread_lpthread=yes
22584 else
22585   echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589 ( exit $ac_status )
22590 ol_cv_pthread_lpthread=no
22591 fi
22592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22593 fi
22594
22595                 # restore the LIBS
22596                 LIBS="$ol_LIBS"
22597
22598 fi
22599 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22600 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22601
22602         if test $ol_cv_pthread_lpthread = yes ; then
22603                 ol_link_pthreads="-lpthread"
22604                 ol_link_threads=posix
22605         fi
22606 fi
22607
22608                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22609 if test "$ol_link_threads" = no ; then
22610         # try -lc_r
22611         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22612 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22613 if test "${ol_cv_pthread_lc_r+set}" = set; then
22614   echo $ECHO_N "(cached) $ECHO_C" >&6
22615 else
22616
22617                 # save the flags
22618                 ol_LIBS="$LIBS"
22619                 LIBS="-lc_r $LIBS"
22620
22621                 if test "$cross_compiling" = yes; then
22622   cat >conftest.$ac_ext <<_ACEOF
22623 /* confdefs.h.  */
22624 _ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h.  */
22628
22629 /* pthread test headers */
22630 #include <pthread.h>
22631 #if HAVE_PTHREADS < 7
22632 #include <errno.h>
22633 #endif
22634 #ifndef NULL
22635 #define NULL (void*)0
22636 #endif
22637
22638 static void *task(p)
22639         void *p;
22640 {
22641         return (void *) (p == NULL);
22642 }
22643
22644 int
22645 main ()
22646 {
22647
22648         /* pthread test function */
22649 #ifndef PTHREAD_CREATE_DETACHED
22650 #define PTHREAD_CREATE_DETACHED 1
22651 #endif
22652         pthread_t t;
22653         int status;
22654         int detach = PTHREAD_CREATE_DETACHED;
22655
22656 #if HAVE_PTHREADS > 4
22657         /* Final pthreads */
22658         pthread_attr_t attr;
22659
22660         status = pthread_attr_init(&attr);
22661         if( status ) return status;
22662
22663 #if HAVE_PTHREADS < 7
22664         status = pthread_attr_setdetachstate(&attr, &detach);
22665         if( status < 0 ) status = errno;
22666 #else
22667         status = pthread_attr_setdetachstate(&attr, detach);
22668 #endif
22669         if( status ) return status;
22670         status = pthread_create( &t, &attr, task, NULL );
22671 #if HAVE_PTHREADS < 7
22672         if( status < 0 ) status = errno;
22673 #endif
22674         if( status ) return status;
22675 #else
22676         /* Draft 4 pthreads */
22677         status = pthread_create( &t, pthread_attr_default, task, NULL );
22678         if( status ) return errno;
22679
22680         /* give thread a chance to complete */
22681         /* it should remain joinable and hence detachable */
22682         sleep( 1 );
22683
22684         status = pthread_detach( &t );
22685         if( status ) return errno;
22686 #endif
22687
22688 #ifdef HAVE_LINUX_THREADS
22689         pthread_kill_other_threads_np();
22690 #endif
22691
22692         return 0;
22693
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700   (eval $ac_link) 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } &&
22707          { ac_try='test -z "$ac_c_werror_flag"
22708                          || test ! -s conftest.err'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest$ac_exeext'
22715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716   (eval $ac_try) 2>&5
22717   ac_status=$?
22718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719   (exit $ac_status); }; }; then
22720   ol_cv_pthread_lc_r=yes
22721 else
22722   echo "$as_me: failed program was:" >&5
22723 sed 's/^/| /' conftest.$ac_ext >&5
22724
22725 ol_cv_pthread_lc_r=no
22726 fi
22727 rm -f conftest.err conftest.$ac_objext \
22728       conftest$ac_exeext conftest.$ac_ext
22729 else
22730   cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h.  */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h.  */
22736
22737 /* pthread test headers */
22738 #include <pthread.h>
22739 #if HAVE_PTHREADS < 7
22740 #include <errno.h>
22741 #endif
22742 #ifndef NULL
22743 #define NULL (void*)0
22744 #endif
22745
22746 static void *task(p)
22747         void *p;
22748 {
22749         return (void *) (p == NULL);
22750 }
22751
22752
22753 int main(argc, argv)
22754         int argc;
22755         char **argv;
22756 {
22757
22758         /* pthread test function */
22759 #ifndef PTHREAD_CREATE_DETACHED
22760 #define PTHREAD_CREATE_DETACHED 1
22761 #endif
22762         pthread_t t;
22763         int status;
22764         int detach = PTHREAD_CREATE_DETACHED;
22765
22766 #if HAVE_PTHREADS > 4
22767         /* Final pthreads */
22768         pthread_attr_t attr;
22769
22770         status = pthread_attr_init(&attr);
22771         if( status ) return status;
22772
22773 #if HAVE_PTHREADS < 7
22774         status = pthread_attr_setdetachstate(&attr, &detach);
22775         if( status < 0 ) status = errno;
22776 #else
22777         status = pthread_attr_setdetachstate(&attr, detach);
22778 #endif
22779         if( status ) return status;
22780         status = pthread_create( &t, &attr, task, NULL );
22781 #if HAVE_PTHREADS < 7
22782         if( status < 0 ) status = errno;
22783 #endif
22784         if( status ) return status;
22785 #else
22786         /* Draft 4 pthreads */
22787         status = pthread_create( &t, pthread_attr_default, task, NULL );
22788         if( status ) return errno;
22789
22790         /* give thread a chance to complete */
22791         /* it should remain joinable and hence detachable */
22792         sleep( 1 );
22793
22794         status = pthread_detach( &t );
22795         if( status ) return errno;
22796 #endif
22797
22798 #ifdef HAVE_LINUX_THREADS
22799         pthread_kill_other_threads_np();
22800 #endif
22801
22802         return 0;
22803
22804 }
22805
22806 _ACEOF
22807 rm -f conftest$ac_exeext
22808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22809   (eval $ac_link) 2>&5
22810   ac_status=$?
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; }; then
22818   ol_cv_pthread_lc_r=yes
22819 else
22820   echo "$as_me: program exited with status $ac_status" >&5
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22823
22824 ( exit $ac_status )
22825 ol_cv_pthread_lc_r=no
22826 fi
22827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22828 fi
22829
22830                 # restore the LIBS
22831                 LIBS="$ol_LIBS"
22832
22833 fi
22834 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22835 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22836
22837         if test $ol_cv_pthread_lc_r = yes ; then
22838                 ol_link_pthreads="-lc_r"
22839                 ol_link_threads=posix
22840         fi
22841 fi
22842
22843
22844                 # Pthread try link: -threads (ol_cv_pthread_threads)
22845 if test "$ol_link_threads" = no ; then
22846         # try -threads
22847         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22848 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22849 if test "${ol_cv_pthread_threads+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852
22853                 # save the flags
22854                 ol_LIBS="$LIBS"
22855                 LIBS="-threads $LIBS"
22856
22857                 if test "$cross_compiling" = yes; then
22858   cat >conftest.$ac_ext <<_ACEOF
22859 /* confdefs.h.  */
22860 _ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h.  */
22864
22865 /* pthread test headers */
22866 #include <pthread.h>
22867 #if HAVE_PTHREADS < 7
22868 #include <errno.h>
22869 #endif
22870 #ifndef NULL
22871 #define NULL (void*)0
22872 #endif
22873
22874 static void *task(p)
22875         void *p;
22876 {
22877         return (void *) (p == NULL);
22878 }
22879
22880 int
22881 main ()
22882 {
22883
22884         /* pthread test function */
22885 #ifndef PTHREAD_CREATE_DETACHED
22886 #define PTHREAD_CREATE_DETACHED 1
22887 #endif
22888         pthread_t t;
22889         int status;
22890         int detach = PTHREAD_CREATE_DETACHED;
22891
22892 #if HAVE_PTHREADS > 4
22893         /* Final pthreads */
22894         pthread_attr_t attr;
22895
22896         status = pthread_attr_init(&attr);
22897         if( status ) return status;
22898
22899 #if HAVE_PTHREADS < 7
22900         status = pthread_attr_setdetachstate(&attr, &detach);
22901         if( status < 0 ) status = errno;
22902 #else
22903         status = pthread_attr_setdetachstate(&attr, detach);
22904 #endif
22905         if( status ) return status;
22906         status = pthread_create( &t, &attr, task, NULL );
22907 #if HAVE_PTHREADS < 7
22908         if( status < 0 ) status = errno;
22909 #endif
22910         if( status ) return status;
22911 #else
22912         /* Draft 4 pthreads */
22913         status = pthread_create( &t, pthread_attr_default, task, NULL );
22914         if( status ) return errno;
22915
22916         /* give thread a chance to complete */
22917         /* it should remain joinable and hence detachable */
22918         sleep( 1 );
22919
22920         status = pthread_detach( &t );
22921         if( status ) return errno;
22922 #endif
22923
22924 #ifdef HAVE_LINUX_THREADS
22925         pthread_kill_other_threads_np();
22926 #endif
22927
22928         return 0;
22929
22930   ;
22931   return 0;
22932 }
22933 _ACEOF
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22936   (eval $ac_link) 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } &&
22943          { ac_try='test -z "$ac_c_werror_flag"
22944                          || test ! -s conftest.err'
22945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22946   (eval $ac_try) 2>&5
22947   ac_status=$?
22948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); }; } &&
22950          { ac_try='test -s conftest$ac_exeext'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; }; then
22956   ol_cv_pthread_threads=yes
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961 ol_cv_pthread_threads=no
22962 fi
22963 rm -f conftest.err conftest.$ac_objext \
22964       conftest$ac_exeext conftest.$ac_ext
22965 else
22966   cat >conftest.$ac_ext <<_ACEOF
22967 /* confdefs.h.  */
22968 _ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h.  */
22972
22973 /* pthread test headers */
22974 #include <pthread.h>
22975 #if HAVE_PTHREADS < 7
22976 #include <errno.h>
22977 #endif
22978 #ifndef NULL
22979 #define NULL (void*)0
22980 #endif
22981
22982 static void *task(p)
22983         void *p;
22984 {
22985         return (void *) (p == NULL);
22986 }
22987
22988
22989 int main(argc, argv)
22990         int argc;
22991         char **argv;
22992 {
22993
22994         /* pthread test function */
22995 #ifndef PTHREAD_CREATE_DETACHED
22996 #define PTHREAD_CREATE_DETACHED 1
22997 #endif
22998         pthread_t t;
22999         int status;
23000         int detach = PTHREAD_CREATE_DETACHED;
23001
23002 #if HAVE_PTHREADS > 4
23003         /* Final pthreads */
23004         pthread_attr_t attr;
23005
23006         status = pthread_attr_init(&attr);
23007         if( status ) return status;
23008
23009 #if HAVE_PTHREADS < 7
23010         status = pthread_attr_setdetachstate(&attr, &detach);
23011         if( status < 0 ) status = errno;
23012 #else
23013         status = pthread_attr_setdetachstate(&attr, detach);
23014 #endif
23015         if( status ) return status;
23016         status = pthread_create( &t, &attr, task, NULL );
23017 #if HAVE_PTHREADS < 7
23018         if( status < 0 ) status = errno;
23019 #endif
23020         if( status ) return status;
23021 #else
23022         /* Draft 4 pthreads */
23023         status = pthread_create( &t, pthread_attr_default, task, NULL );
23024         if( status ) return errno;
23025
23026         /* give thread a chance to complete */
23027         /* it should remain joinable and hence detachable */
23028         sleep( 1 );
23029
23030         status = pthread_detach( &t );
23031         if( status ) return errno;
23032 #endif
23033
23034 #ifdef HAVE_LINUX_THREADS
23035         pthread_kill_other_threads_np();
23036 #endif
23037
23038         return 0;
23039
23040 }
23041
23042 _ACEOF
23043 rm -f conftest$ac_exeext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23045   (eval $ac_link) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23050   (eval $ac_try) 2>&5
23051   ac_status=$?
23052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053   (exit $ac_status); }; }; then
23054   ol_cv_pthread_threads=yes
23055 else
23056   echo "$as_me: program exited with status $ac_status" >&5
23057 echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 ( exit $ac_status )
23061 ol_cv_pthread_threads=no
23062 fi
23063 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23064 fi
23065
23066                 # restore the LIBS
23067                 LIBS="$ol_LIBS"
23068
23069 fi
23070 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23071 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23072
23073         if test $ol_cv_pthread_threads = yes ; then
23074                 ol_link_pthreads="-threads"
23075                 ol_link_threads=posix
23076         fi
23077 fi
23078
23079
23080                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23081 if test "$ol_link_threads" = no ; then
23082         # try -lpthreads -lmach -lexc -lc_r
23083         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23084 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23085 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23086   echo $ECHO_N "(cached) $ECHO_C" >&6
23087 else
23088
23089                 # save the flags
23090                 ol_LIBS="$LIBS"
23091                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23092
23093                 if test "$cross_compiling" = yes; then
23094   cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100
23101 /* pthread test headers */
23102 #include <pthread.h>
23103 #if HAVE_PTHREADS < 7
23104 #include <errno.h>
23105 #endif
23106 #ifndef NULL
23107 #define NULL (void*)0
23108 #endif
23109
23110 static void *task(p)
23111         void *p;
23112 {
23113         return (void *) (p == NULL);
23114 }
23115
23116 int
23117 main ()
23118 {
23119
23120         /* pthread test function */
23121 #ifndef PTHREAD_CREATE_DETACHED
23122 #define PTHREAD_CREATE_DETACHED 1
23123 #endif
23124         pthread_t t;
23125         int status;
23126         int detach = PTHREAD_CREATE_DETACHED;
23127
23128 #if HAVE_PTHREADS > 4
23129         /* Final pthreads */
23130         pthread_attr_t attr;
23131
23132         status = pthread_attr_init(&attr);
23133         if( status ) return status;
23134
23135 #if HAVE_PTHREADS < 7
23136         status = pthread_attr_setdetachstate(&attr, &detach);
23137         if( status < 0 ) status = errno;
23138 #else
23139         status = pthread_attr_setdetachstate(&attr, detach);
23140 #endif
23141         if( status ) return status;
23142         status = pthread_create( &t, &attr, task, NULL );
23143 #if HAVE_PTHREADS < 7
23144         if( status < 0 ) status = errno;
23145 #endif
23146         if( status ) return status;
23147 #else
23148         /* Draft 4 pthreads */
23149         status = pthread_create( &t, pthread_attr_default, task, NULL );
23150         if( status ) return errno;
23151
23152         /* give thread a chance to complete */
23153         /* it should remain joinable and hence detachable */
23154         sleep( 1 );
23155
23156         status = pthread_detach( &t );
23157         if( status ) return errno;
23158 #endif
23159
23160 #ifdef HAVE_LINUX_THREADS
23161         pthread_kill_other_threads_np();
23162 #endif
23163
23164         return 0;
23165
23166   ;
23167   return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172   (eval $ac_link) 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } &&
23179          { ac_try='test -z "$ac_c_werror_flag"
23180                          || test ! -s conftest.err'
23181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182   (eval $ac_try) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); }; } &&
23186          { ac_try='test -s conftest$ac_exeext'
23187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); }; }; then
23192   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23198 fi
23199 rm -f conftest.err conftest.$ac_objext \
23200       conftest$ac_exeext conftest.$ac_ext
23201 else
23202   cat >conftest.$ac_ext <<_ACEOF
23203 /* confdefs.h.  */
23204 _ACEOF
23205 cat confdefs.h >>conftest.$ac_ext
23206 cat >>conftest.$ac_ext <<_ACEOF
23207 /* end confdefs.h.  */
23208
23209 /* pthread test headers */
23210 #include <pthread.h>
23211 #if HAVE_PTHREADS < 7
23212 #include <errno.h>
23213 #endif
23214 #ifndef NULL
23215 #define NULL (void*)0
23216 #endif
23217
23218 static void *task(p)
23219         void *p;
23220 {
23221         return (void *) (p == NULL);
23222 }
23223
23224
23225 int main(argc, argv)
23226         int argc;
23227         char **argv;
23228 {
23229
23230         /* pthread test function */
23231 #ifndef PTHREAD_CREATE_DETACHED
23232 #define PTHREAD_CREATE_DETACHED 1
23233 #endif
23234         pthread_t t;
23235         int status;
23236         int detach = PTHREAD_CREATE_DETACHED;
23237
23238 #if HAVE_PTHREADS > 4
23239         /* Final pthreads */
23240         pthread_attr_t attr;
23241
23242         status = pthread_attr_init(&attr);
23243         if( status ) return status;
23244
23245 #if HAVE_PTHREADS < 7
23246         status = pthread_attr_setdetachstate(&attr, &detach);
23247         if( status < 0 ) status = errno;
23248 #else
23249         status = pthread_attr_setdetachstate(&attr, detach);
23250 #endif
23251         if( status ) return status;
23252         status = pthread_create( &t, &attr, task, NULL );
23253 #if HAVE_PTHREADS < 7
23254         if( status < 0 ) status = errno;
23255 #endif
23256         if( status ) return status;
23257 #else
23258         /* Draft 4 pthreads */
23259         status = pthread_create( &t, pthread_attr_default, task, NULL );
23260         if( status ) return errno;
23261
23262         /* give thread a chance to complete */
23263         /* it should remain joinable and hence detachable */
23264         sleep( 1 );
23265
23266         status = pthread_detach( &t );
23267         if( status ) return errno;
23268 #endif
23269
23270 #ifdef HAVE_LINUX_THREADS
23271         pthread_kill_other_threads_np();
23272 #endif
23273
23274         return 0;
23275
23276 }
23277
23278 _ACEOF
23279 rm -f conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281   (eval $ac_link) 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286   (eval $ac_try) 2>&5
23287   ac_status=$?
23288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); }; }; then
23290   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23291 else
23292   echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 ( exit $ac_status )
23297 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23298 fi
23299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23300 fi
23301
23302                 # restore the LIBS
23303                 LIBS="$ol_LIBS"
23304
23305 fi
23306 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23307 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23308
23309         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23310                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23311                 ol_link_threads=posix
23312         fi
23313 fi
23314
23315                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23316 if test "$ol_link_threads" = no ; then
23317         # try -lpthreads -lmach -lexc
23318         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23319 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23320 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23321   echo $ECHO_N "(cached) $ECHO_C" >&6
23322 else
23323
23324                 # save the flags
23325                 ol_LIBS="$LIBS"
23326                 LIBS="-lpthreads -lmach -lexc $LIBS"
23327
23328                 if test "$cross_compiling" = yes; then
23329   cat >conftest.$ac_ext <<_ACEOF
23330 /* confdefs.h.  */
23331 _ACEOF
23332 cat confdefs.h >>conftest.$ac_ext
23333 cat >>conftest.$ac_ext <<_ACEOF
23334 /* end confdefs.h.  */
23335
23336 /* pthread test headers */
23337 #include <pthread.h>
23338 #if HAVE_PTHREADS < 7
23339 #include <errno.h>
23340 #endif
23341 #ifndef NULL
23342 #define NULL (void*)0
23343 #endif
23344
23345 static void *task(p)
23346         void *p;
23347 {
23348         return (void *) (p == NULL);
23349 }
23350
23351 int
23352 main ()
23353 {
23354
23355         /* pthread test function */
23356 #ifndef PTHREAD_CREATE_DETACHED
23357 #define PTHREAD_CREATE_DETACHED 1
23358 #endif
23359         pthread_t t;
23360         int status;
23361         int detach = PTHREAD_CREATE_DETACHED;
23362
23363 #if HAVE_PTHREADS > 4
23364         /* Final pthreads */
23365         pthread_attr_t attr;
23366
23367         status = pthread_attr_init(&attr);
23368         if( status ) return status;
23369
23370 #if HAVE_PTHREADS < 7
23371         status = pthread_attr_setdetachstate(&attr, &detach);
23372         if( status < 0 ) status = errno;
23373 #else
23374         status = pthread_attr_setdetachstate(&attr, detach);
23375 #endif
23376         if( status ) return status;
23377         status = pthread_create( &t, &attr, task, NULL );
23378 #if HAVE_PTHREADS < 7
23379         if( status < 0 ) status = errno;
23380 #endif
23381         if( status ) return status;
23382 #else
23383         /* Draft 4 pthreads */
23384         status = pthread_create( &t, pthread_attr_default, task, NULL );
23385         if( status ) return errno;
23386
23387         /* give thread a chance to complete */
23388         /* it should remain joinable and hence detachable */
23389         sleep( 1 );
23390
23391         status = pthread_detach( &t );
23392         if( status ) return errno;
23393 #endif
23394
23395 #ifdef HAVE_LINUX_THREADS
23396         pthread_kill_other_threads_np();
23397 #endif
23398
23399         return 0;
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407   (eval $ac_link) 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } &&
23414          { ac_try='test -z "$ac_c_werror_flag"
23415                          || test ! -s conftest.err'
23416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417   (eval $ac_try) 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; } &&
23421          { ac_try='test -s conftest$ac_exeext'
23422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423   (eval $ac_try) 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427   ol_cv_pthread_lpthreads_lmach_lexc=yes
23428 else
23429   echo "$as_me: failed program was:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23431
23432 ol_cv_pthread_lpthreads_lmach_lexc=no
23433 fi
23434 rm -f conftest.err conftest.$ac_objext \
23435       conftest$ac_exeext conftest.$ac_ext
23436 else
23437   cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443
23444 /* pthread test headers */
23445 #include <pthread.h>
23446 #if HAVE_PTHREADS < 7
23447 #include <errno.h>
23448 #endif
23449 #ifndef NULL
23450 #define NULL (void*)0
23451 #endif
23452
23453 static void *task(p)
23454         void *p;
23455 {
23456         return (void *) (p == NULL);
23457 }
23458
23459
23460 int main(argc, argv)
23461         int argc;
23462         char **argv;
23463 {
23464
23465         /* pthread test function */
23466 #ifndef PTHREAD_CREATE_DETACHED
23467 #define PTHREAD_CREATE_DETACHED 1
23468 #endif
23469         pthread_t t;
23470         int status;
23471         int detach = PTHREAD_CREATE_DETACHED;
23472
23473 #if HAVE_PTHREADS > 4
23474         /* Final pthreads */
23475         pthread_attr_t attr;
23476
23477         status = pthread_attr_init(&attr);
23478         if( status ) return status;
23479
23480 #if HAVE_PTHREADS < 7
23481         status = pthread_attr_setdetachstate(&attr, &detach);
23482         if( status < 0 ) status = errno;
23483 #else
23484         status = pthread_attr_setdetachstate(&attr, detach);
23485 #endif
23486         if( status ) return status;
23487         status = pthread_create( &t, &attr, task, NULL );
23488 #if HAVE_PTHREADS < 7
23489         if( status < 0 ) status = errno;
23490 #endif
23491         if( status ) return status;
23492 #else
23493         /* Draft 4 pthreads */
23494         status = pthread_create( &t, pthread_attr_default, task, NULL );
23495         if( status ) return errno;
23496
23497         /* give thread a chance to complete */
23498         /* it should remain joinable and hence detachable */
23499         sleep( 1 );
23500
23501         status = pthread_detach( &t );
23502         if( status ) return errno;
23503 #endif
23504
23505 #ifdef HAVE_LINUX_THREADS
23506         pthread_kill_other_threads_np();
23507 #endif
23508
23509         return 0;
23510
23511 }
23512
23513 _ACEOF
23514 rm -f conftest$ac_exeext
23515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23516   (eval $ac_link) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521   (eval $ac_try) 2>&5
23522   ac_status=$?
23523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524   (exit $ac_status); }; }; then
23525   ol_cv_pthread_lpthreads_lmach_lexc=yes
23526 else
23527   echo "$as_me: program exited with status $ac_status" >&5
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531 ( exit $ac_status )
23532 ol_cv_pthread_lpthreads_lmach_lexc=no
23533 fi
23534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23535 fi
23536
23537                 # restore the LIBS
23538                 LIBS="$ol_LIBS"
23539
23540 fi
23541 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23542 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23543
23544         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23545                 ol_link_pthreads="-lpthreads -lmach -lexc"
23546                 ol_link_threads=posix
23547         fi
23548 fi
23549
23550                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23551 if test "$ol_link_threads" = no ; then
23552         # try -lpthreads -lexc
23553         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23554 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23555 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23556   echo $ECHO_N "(cached) $ECHO_C" >&6
23557 else
23558
23559                 # save the flags
23560                 ol_LIBS="$LIBS"
23561                 LIBS="-lpthreads -lexc $LIBS"
23562
23563                 if test "$cross_compiling" = yes; then
23564   cat >conftest.$ac_ext <<_ACEOF
23565 /* confdefs.h.  */
23566 _ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h.  */
23570
23571 /* pthread test headers */
23572 #include <pthread.h>
23573 #if HAVE_PTHREADS < 7
23574 #include <errno.h>
23575 #endif
23576 #ifndef NULL
23577 #define NULL (void*)0
23578 #endif
23579
23580 static void *task(p)
23581         void *p;
23582 {
23583         return (void *) (p == NULL);
23584 }
23585
23586 int
23587 main ()
23588 {
23589
23590         /* pthread test function */
23591 #ifndef PTHREAD_CREATE_DETACHED
23592 #define PTHREAD_CREATE_DETACHED 1
23593 #endif
23594         pthread_t t;
23595         int status;
23596         int detach = PTHREAD_CREATE_DETACHED;
23597
23598 #if HAVE_PTHREADS > 4
23599         /* Final pthreads */
23600         pthread_attr_t attr;
23601
23602         status = pthread_attr_init(&attr);
23603         if( status ) return status;
23604
23605 #if HAVE_PTHREADS < 7
23606         status = pthread_attr_setdetachstate(&attr, &detach);
23607         if( status < 0 ) status = errno;
23608 #else
23609         status = pthread_attr_setdetachstate(&attr, detach);
23610 #endif
23611         if( status ) return status;
23612         status = pthread_create( &t, &attr, task, NULL );
23613 #if HAVE_PTHREADS < 7
23614         if( status < 0 ) status = errno;
23615 #endif
23616         if( status ) return status;
23617 #else
23618         /* Draft 4 pthreads */
23619         status = pthread_create( &t, pthread_attr_default, task, NULL );
23620         if( status ) return errno;
23621
23622         /* give thread a chance to complete */
23623         /* it should remain joinable and hence detachable */
23624         sleep( 1 );
23625
23626         status = pthread_detach( &t );
23627         if( status ) return errno;
23628 #endif
23629
23630 #ifdef HAVE_LINUX_THREADS
23631         pthread_kill_other_threads_np();
23632 #endif
23633
23634         return 0;
23635
23636   ;
23637   return 0;
23638 }
23639 _ACEOF
23640 rm -f conftest.$ac_objext conftest$ac_exeext
23641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23642   (eval $ac_link) 2>conftest.er1
23643   ac_status=$?
23644   grep -v '^ *+' conftest.er1 >conftest.err
23645   rm -f conftest.er1
23646   cat conftest.err >&5
23647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648   (exit $ac_status); } &&
23649          { ac_try='test -z "$ac_c_werror_flag"
23650                          || test ! -s conftest.err'
23651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652   (eval $ac_try) 2>&5
23653   ac_status=$?
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); }; } &&
23656          { ac_try='test -s conftest$ac_exeext'
23657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); }; }; then
23662   ol_cv_pthread_lpthreads_lexc=yes
23663 else
23664   echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 ol_cv_pthread_lpthreads_lexc=no
23668 fi
23669 rm -f conftest.err conftest.$ac_objext \
23670       conftest$ac_exeext conftest.$ac_ext
23671 else
23672   cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h.  */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h.  */
23678
23679 /* pthread test headers */
23680 #include <pthread.h>
23681 #if HAVE_PTHREADS < 7
23682 #include <errno.h>
23683 #endif
23684 #ifndef NULL
23685 #define NULL (void*)0
23686 #endif
23687
23688 static void *task(p)
23689         void *p;
23690 {
23691         return (void *) (p == NULL);
23692 }
23693
23694
23695 int main(argc, argv)
23696         int argc;
23697         char **argv;
23698 {
23699
23700         /* pthread test function */
23701 #ifndef PTHREAD_CREATE_DETACHED
23702 #define PTHREAD_CREATE_DETACHED 1
23703 #endif
23704         pthread_t t;
23705         int status;
23706         int detach = PTHREAD_CREATE_DETACHED;
23707
23708 #if HAVE_PTHREADS > 4
23709         /* Final pthreads */
23710         pthread_attr_t attr;
23711
23712         status = pthread_attr_init(&attr);
23713         if( status ) return status;
23714
23715 #if HAVE_PTHREADS < 7
23716         status = pthread_attr_setdetachstate(&attr, &detach);
23717         if( status < 0 ) status = errno;
23718 #else
23719         status = pthread_attr_setdetachstate(&attr, detach);
23720 #endif
23721         if( status ) return status;
23722         status = pthread_create( &t, &attr, task, NULL );
23723 #if HAVE_PTHREADS < 7
23724         if( status < 0 ) status = errno;
23725 #endif
23726         if( status ) return status;
23727 #else
23728         /* Draft 4 pthreads */
23729         status = pthread_create( &t, pthread_attr_default, task, NULL );
23730         if( status ) return errno;
23731
23732         /* give thread a chance to complete */
23733         /* it should remain joinable and hence detachable */
23734         sleep( 1 );
23735
23736         status = pthread_detach( &t );
23737         if( status ) return errno;
23738 #endif
23739
23740 #ifdef HAVE_LINUX_THREADS
23741         pthread_kill_other_threads_np();
23742 #endif
23743
23744         return 0;
23745
23746 }
23747
23748 _ACEOF
23749 rm -f conftest$ac_exeext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23751   (eval $ac_link) 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756   (eval $ac_try) 2>&5
23757   ac_status=$?
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); }; }; then
23760   ol_cv_pthread_lpthreads_lexc=yes
23761 else
23762   echo "$as_me: program exited with status $ac_status" >&5
23763 echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766 ( exit $ac_status )
23767 ol_cv_pthread_lpthreads_lexc=no
23768 fi
23769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23770 fi
23771
23772                 # restore the LIBS
23773                 LIBS="$ol_LIBS"
23774
23775 fi
23776 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23777 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23778
23779         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23780                 ol_link_pthreads="-lpthreads -lexc"
23781                 ol_link_threads=posix
23782         fi
23783 fi
23784
23785
23786                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23787 if test "$ol_link_threads" = no ; then
23788         # try -lpthreads
23789         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23790 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23791 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23792   echo $ECHO_N "(cached) $ECHO_C" >&6
23793 else
23794
23795                 # save the flags
23796                 ol_LIBS="$LIBS"
23797                 LIBS="-lpthreads $LIBS"
23798
23799                 if test "$cross_compiling" = yes; then
23800   cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h.  */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h.  */
23806
23807 /* pthread test headers */
23808 #include <pthread.h>
23809 #if HAVE_PTHREADS < 7
23810 #include <errno.h>
23811 #endif
23812 #ifndef NULL
23813 #define NULL (void*)0
23814 #endif
23815
23816 static void *task(p)
23817         void *p;
23818 {
23819         return (void *) (p == NULL);
23820 }
23821
23822 int
23823 main ()
23824 {
23825
23826         /* pthread test function */
23827 #ifndef PTHREAD_CREATE_DETACHED
23828 #define PTHREAD_CREATE_DETACHED 1
23829 #endif
23830         pthread_t t;
23831         int status;
23832         int detach = PTHREAD_CREATE_DETACHED;
23833
23834 #if HAVE_PTHREADS > 4
23835         /* Final pthreads */
23836         pthread_attr_t attr;
23837
23838         status = pthread_attr_init(&attr);
23839         if( status ) return status;
23840
23841 #if HAVE_PTHREADS < 7
23842         status = pthread_attr_setdetachstate(&attr, &detach);
23843         if( status < 0 ) status = errno;
23844 #else
23845         status = pthread_attr_setdetachstate(&attr, detach);
23846 #endif
23847         if( status ) return status;
23848         status = pthread_create( &t, &attr, task, NULL );
23849 #if HAVE_PTHREADS < 7
23850         if( status < 0 ) status = errno;
23851 #endif
23852         if( status ) return status;
23853 #else
23854         /* Draft 4 pthreads */
23855         status = pthread_create( &t, pthread_attr_default, task, NULL );
23856         if( status ) return errno;
23857
23858         /* give thread a chance to complete */
23859         /* it should remain joinable and hence detachable */
23860         sleep( 1 );
23861
23862         status = pthread_detach( &t );
23863         if( status ) return errno;
23864 #endif
23865
23866 #ifdef HAVE_LINUX_THREADS
23867         pthread_kill_other_threads_np();
23868 #endif
23869
23870         return 0;
23871
23872   ;
23873   return 0;
23874 }
23875 _ACEOF
23876 rm -f conftest.$ac_objext conftest$ac_exeext
23877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23878   (eval $ac_link) 2>conftest.er1
23879   ac_status=$?
23880   grep -v '^ *+' conftest.er1 >conftest.err
23881   rm -f conftest.er1
23882   cat conftest.err >&5
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); } &&
23885          { ac_try='test -z "$ac_c_werror_flag"
23886                          || test ! -s conftest.err'
23887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888   (eval $ac_try) 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); }; } &&
23892          { ac_try='test -s conftest$ac_exeext'
23893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); }; }; then
23898   ol_cv_pthread_lib_lpthreads=yes
23899 else
23900   echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23902
23903 ol_cv_pthread_lib_lpthreads=no
23904 fi
23905 rm -f conftest.err conftest.$ac_objext \
23906       conftest$ac_exeext conftest.$ac_ext
23907 else
23908   cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h.  */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h.  */
23914
23915 /* pthread test headers */
23916 #include <pthread.h>
23917 #if HAVE_PTHREADS < 7
23918 #include <errno.h>
23919 #endif
23920 #ifndef NULL
23921 #define NULL (void*)0
23922 #endif
23923
23924 static void *task(p)
23925         void *p;
23926 {
23927         return (void *) (p == NULL);
23928 }
23929
23930
23931 int main(argc, argv)
23932         int argc;
23933         char **argv;
23934 {
23935
23936         /* pthread test function */
23937 #ifndef PTHREAD_CREATE_DETACHED
23938 #define PTHREAD_CREATE_DETACHED 1
23939 #endif
23940         pthread_t t;
23941         int status;
23942         int detach = PTHREAD_CREATE_DETACHED;
23943
23944 #if HAVE_PTHREADS > 4
23945         /* Final pthreads */
23946         pthread_attr_t attr;
23947
23948         status = pthread_attr_init(&attr);
23949         if( status ) return status;
23950
23951 #if HAVE_PTHREADS < 7
23952         status = pthread_attr_setdetachstate(&attr, &detach);
23953         if( status < 0 ) status = errno;
23954 #else
23955         status = pthread_attr_setdetachstate(&attr, detach);
23956 #endif
23957         if( status ) return status;
23958         status = pthread_create( &t, &attr, task, NULL );
23959 #if HAVE_PTHREADS < 7
23960         if( status < 0 ) status = errno;
23961 #endif
23962         if( status ) return status;
23963 #else
23964         /* Draft 4 pthreads */
23965         status = pthread_create( &t, pthread_attr_default, task, NULL );
23966         if( status ) return errno;
23967
23968         /* give thread a chance to complete */
23969         /* it should remain joinable and hence detachable */
23970         sleep( 1 );
23971
23972         status = pthread_detach( &t );
23973         if( status ) return errno;
23974 #endif
23975
23976 #ifdef HAVE_LINUX_THREADS
23977         pthread_kill_other_threads_np();
23978 #endif
23979
23980         return 0;
23981
23982 }
23983
23984 _ACEOF
23985 rm -f conftest$ac_exeext
23986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23987   (eval $ac_link) 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992   (eval $ac_try) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); }; }; then
23996   ol_cv_pthread_lib_lpthreads=yes
23997 else
23998   echo "$as_me: program exited with status $ac_status" >&5
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ( exit $ac_status )
24003 ol_cv_pthread_lib_lpthreads=no
24004 fi
24005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24006 fi
24007
24008                 # restore the LIBS
24009                 LIBS="$ol_LIBS"
24010
24011 fi
24012 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24013 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24014
24015         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24016                 ol_link_pthreads="-lpthreads"
24017                 ol_link_threads=posix
24018         fi
24019 fi
24020
24021
24022                 if test $ol_link_threads != no ; then
24023                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24024
24025                                                 save_CPPFLAGS="$CPPFLAGS"
24026                         save_LIBS="$LIBS"
24027                         LIBS="$LTHREAD_LIBS $LIBS"
24028
24029
24030
24031
24032 for ac_func in sched_yield pthread_yield thr_yield
24033 do
24034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035 echo "$as_me:$LINENO: checking for $ac_func" >&5
24036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24037 if eval "test \"\${$as_ac_var+set}\" = set"; then
24038   echo $ECHO_N "(cached) $ECHO_C" >&6
24039 else
24040   cat >conftest.$ac_ext <<_ACEOF
24041 /* confdefs.h.  */
24042 _ACEOF
24043 cat confdefs.h >>conftest.$ac_ext
24044 cat >>conftest.$ac_ext <<_ACEOF
24045 /* end confdefs.h.  */
24046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24048 #define $ac_func innocuous_$ac_func
24049
24050 /* System header to define __stub macros and hopefully few prototypes,
24051     which can conflict with char $ac_func (); below.
24052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24053     <limits.h> exists even on freestanding compilers.  */
24054
24055 #ifdef __STDC__
24056 # include <limits.h>
24057 #else
24058 # include <assert.h>
24059 #endif
24060
24061 #undef $ac_func
24062
24063 /* Override any gcc2 internal prototype to avoid an error.  */
24064 #ifdef __cplusplus
24065 extern "C"
24066 {
24067 #endif
24068 /* We use char because int might match the return type of a gcc2
24069    builtin and then its argument prototype would still apply.  */
24070 char $ac_func ();
24071 /* The GNU C library defines this for functions which it implements
24072     to always fail with ENOSYS.  Some functions are actually named
24073     something starting with __ and the normal name is an alias.  */
24074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24075 choke me
24076 #else
24077 char (*f) () = $ac_func;
24078 #endif
24079 #ifdef __cplusplus
24080 }
24081 #endif
24082
24083 int
24084 main ()
24085 {
24086 return f != $ac_func;
24087   ;
24088   return 0;
24089 }
24090 _ACEOF
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093   (eval $ac_link) 2>conftest.er1
24094   ac_status=$?
24095   grep -v '^ *+' conftest.er1 >conftest.err
24096   rm -f conftest.er1
24097   cat conftest.err >&5
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); } &&
24100          { ac_try='test -z "$ac_c_werror_flag"
24101                          || test ! -s conftest.err'
24102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103   (eval $ac_try) 2>&5
24104   ac_status=$?
24105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106   (exit $ac_status); }; } &&
24107          { ac_try='test -s conftest$ac_exeext'
24108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109   (eval $ac_try) 2>&5
24110   ac_status=$?
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); }; }; then
24113   eval "$as_ac_var=yes"
24114 else
24115   echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 eval "$as_ac_var=no"
24119 fi
24120 rm -f conftest.err conftest.$ac_objext \
24121       conftest$ac_exeext conftest.$ac_ext
24122 fi
24123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24125 if test `eval echo '${'$as_ac_var'}'` = yes; then
24126   cat >>confdefs.h <<_ACEOF
24127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24128 _ACEOF
24129
24130 fi
24131 done
24132
24133
24134                         if test $ac_cv_func_sched_yield = no &&
24135                            test $ac_cv_func_pthread_yield = no &&
24136                            test $ac_cv_func_thr_yield = no ; then
24137                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24138 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24139 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24140   echo $ECHO_N "(cached) $ECHO_C" >&6
24141 else
24142   ac_check_lib_save_LIBS=$LIBS
24143 LIBS="-lrt  $LIBS"
24144 cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h.  */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h.  */
24150
24151 /* Override any gcc2 internal prototype to avoid an error.  */
24152 #ifdef __cplusplus
24153 extern "C"
24154 #endif
24155 /* We use char because int might match the return type of a gcc2
24156    builtin and then its argument prototype would still apply.  */
24157 char sched_yield ();
24158 int
24159 main ()
24160 {
24161 sched_yield ();
24162   ;
24163   return 0;
24164 }
24165 _ACEOF
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168   (eval $ac_link) 2>conftest.er1
24169   ac_status=$?
24170   grep -v '^ *+' conftest.er1 >conftest.err
24171   rm -f conftest.er1
24172   cat conftest.err >&5
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); } &&
24175          { ac_try='test -z "$ac_c_werror_flag"
24176                          || test ! -s conftest.err'
24177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178   (eval $ac_try) 2>&5
24179   ac_status=$?
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); }; } &&
24182          { ac_try='test -s conftest$ac_exeext'
24183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184   (eval $ac_try) 2>&5
24185   ac_status=$?
24186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187   (exit $ac_status); }; }; then
24188   ac_cv_lib_rt_sched_yield=yes
24189 else
24190   echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193 ac_cv_lib_rt_sched_yield=no
24194 fi
24195 rm -f conftest.err conftest.$ac_objext \
24196       conftest$ac_exeext conftest.$ac_ext
24197 LIBS=$ac_check_lib_save_LIBS
24198 fi
24199 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24200 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24201 if test $ac_cv_lib_rt_sched_yield = yes; then
24202   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24203
24204 cat >>confdefs.h <<\_ACEOF
24205 #define HAVE_SCHED_YIELD 1
24206 _ACEOF
24207
24208                                         ac_cv_func_sched_yield=yes
24209 else
24210   ac_cv_func_sched_yield=no
24211 fi
24212
24213                         fi
24214                         if test $ac_cv_func_sched_yield = no &&
24215                            test $ac_cv_func_pthread_yield = no &&
24216                            test "$ac_cv_func_thr_yield" = no ; then
24217                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24218 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24219                         fi
24220
24221
24222
24223 for ac_func in pthread_kill pthread_rwlock_destroy
24224 do
24225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24226 echo "$as_me:$LINENO: checking for $ac_func" >&5
24227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24228 if eval "test \"\${$as_ac_var+set}\" = set"; then
24229   echo $ECHO_N "(cached) $ECHO_C" >&6
24230 else
24231   cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h.  */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h.  */
24237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24239 #define $ac_func innocuous_$ac_func
24240
24241 /* System header to define __stub macros and hopefully few prototypes,
24242     which can conflict with char $ac_func (); below.
24243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24244     <limits.h> exists even on freestanding compilers.  */
24245
24246 #ifdef __STDC__
24247 # include <limits.h>
24248 #else
24249 # include <assert.h>
24250 #endif
24251
24252 #undef $ac_func
24253
24254 /* Override any gcc2 internal prototype to avoid an error.  */
24255 #ifdef __cplusplus
24256 extern "C"
24257 {
24258 #endif
24259 /* We use char because int might match the return type of a gcc2
24260    builtin and then its argument prototype would still apply.  */
24261 char $ac_func ();
24262 /* The GNU C library defines this for functions which it implements
24263     to always fail with ENOSYS.  Some functions are actually named
24264     something starting with __ and the normal name is an alias.  */
24265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24266 choke me
24267 #else
24268 char (*f) () = $ac_func;
24269 #endif
24270 #ifdef __cplusplus
24271 }
24272 #endif
24273
24274 int
24275 main ()
24276 {
24277 return f != $ac_func;
24278   ;
24279   return 0;
24280 }
24281 _ACEOF
24282 rm -f conftest.$ac_objext conftest$ac_exeext
24283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24284   (eval $ac_link) 2>conftest.er1
24285   ac_status=$?
24286   grep -v '^ *+' conftest.er1 >conftest.err
24287   rm -f conftest.er1
24288   cat conftest.err >&5
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); } &&
24291          { ac_try='test -z "$ac_c_werror_flag"
24292                          || test ! -s conftest.err'
24293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294   (eval $ac_try) 2>&5
24295   ac_status=$?
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); }; } &&
24298          { ac_try='test -s conftest$ac_exeext'
24299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300   (eval $ac_try) 2>&5
24301   ac_status=$?
24302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303   (exit $ac_status); }; }; then
24304   eval "$as_ac_var=yes"
24305 else
24306   echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24308
24309 eval "$as_ac_var=no"
24310 fi
24311 rm -f conftest.err conftest.$ac_objext \
24312       conftest$ac_exeext conftest.$ac_ext
24313 fi
24314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24316 if test `eval echo '${'$as_ac_var'}'` = yes; then
24317   cat >>confdefs.h <<_ACEOF
24318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24319 _ACEOF
24320
24321 fi
24322 done
24323
24324
24325                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24326 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24327 if test "${ol_cv_func_pthread_detach+set}" = set; then
24328   echo $ECHO_N "(cached) $ECHO_C" >&6
24329 else
24330
24331                                                                 cat >conftest.$ac_ext <<_ACEOF
24332 /* confdefs.h.  */
24333 _ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h.  */
24337
24338 #include <pthread.h>
24339 #ifndef NULL
24340 #define NULL (void*)0
24341 #endif
24342
24343 int
24344 main ()
24345 {
24346 pthread_detach(NULL);
24347   ;
24348   return 0;
24349 }
24350 _ACEOF
24351 rm -f conftest.$ac_objext conftest$ac_exeext
24352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24353   (eval $ac_link) 2>conftest.er1
24354   ac_status=$?
24355   grep -v '^ *+' conftest.er1 >conftest.err
24356   rm -f conftest.er1
24357   cat conftest.err >&5
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); } &&
24360          { ac_try='test -z "$ac_c_werror_flag"
24361                          || test ! -s conftest.err'
24362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24363   (eval $ac_try) 2>&5
24364   ac_status=$?
24365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366   (exit $ac_status); }; } &&
24367          { ac_try='test -s conftest$ac_exeext'
24368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369   (eval $ac_try) 2>&5
24370   ac_status=$?
24371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372   (exit $ac_status); }; }; then
24373   ol_cv_func_pthread_detach=yes
24374 else
24375   echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378 ol_cv_func_pthread_detach=no
24379 fi
24380 rm -f conftest.err conftest.$ac_objext \
24381       conftest$ac_exeext conftest.$ac_ext
24382
24383 fi
24384 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24385 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24386
24387                         if test $ol_cv_func_pthread_detach = no ; then
24388                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24389 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24390    { (exit 1); exit 1; }; }
24391                         fi
24392
24393
24394 cat >>confdefs.h <<\_ACEOF
24395 #define HAVE_PTHREAD_DETACH 1
24396 _ACEOF
24397
24398
24399
24400
24401
24402
24403 for ac_func in \
24404                                 pthread_setconcurrency \
24405                                 pthread_getconcurrency \
24406                                 thr_setconcurrency \
24407                                 thr_getconcurrency \
24408
24409 do
24410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24411 echo "$as_me:$LINENO: checking for $ac_func" >&5
24412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24413 if eval "test \"\${$as_ac_var+set}\" = set"; then
24414   echo $ECHO_N "(cached) $ECHO_C" >&6
24415 else
24416   cat >conftest.$ac_ext <<_ACEOF
24417 /* confdefs.h.  */
24418 _ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h.  */
24422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24424 #define $ac_func innocuous_$ac_func
24425
24426 /* System header to define __stub macros and hopefully few prototypes,
24427     which can conflict with char $ac_func (); below.
24428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24429     <limits.h> exists even on freestanding compilers.  */
24430
24431 #ifdef __STDC__
24432 # include <limits.h>
24433 #else
24434 # include <assert.h>
24435 #endif
24436
24437 #undef $ac_func
24438
24439 /* Override any gcc2 internal prototype to avoid an error.  */
24440 #ifdef __cplusplus
24441 extern "C"
24442 {
24443 #endif
24444 /* We use char because int might match the return type of a gcc2
24445    builtin and then its argument prototype would still apply.  */
24446 char $ac_func ();
24447 /* The GNU C library defines this for functions which it implements
24448     to always fail with ENOSYS.  Some functions are actually named
24449     something starting with __ and the normal name is an alias.  */
24450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24451 choke me
24452 #else
24453 char (*f) () = $ac_func;
24454 #endif
24455 #ifdef __cplusplus
24456 }
24457 #endif
24458
24459 int
24460 main ()
24461 {
24462 return f != $ac_func;
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469   (eval $ac_link) 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } &&
24476          { ac_try='test -z "$ac_c_werror_flag"
24477                          || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   eval "$as_ac_var=yes"
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 eval "$as_ac_var=no"
24495 fi
24496 rm -f conftest.err conftest.$ac_objext \
24497       conftest$ac_exeext conftest.$ac_ext
24498 fi
24499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24501 if test `eval echo '${'$as_ac_var'}'` = yes; then
24502   cat >>confdefs.h <<_ACEOF
24503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24504 _ACEOF
24505
24506 fi
24507 done
24508
24509
24510
24511
24512 for ac_func in pthread_kill_other_threads_np
24513 do
24514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24515 echo "$as_me:$LINENO: checking for $ac_func" >&5
24516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24517 if eval "test \"\${$as_ac_var+set}\" = set"; then
24518   echo $ECHO_N "(cached) $ECHO_C" >&6
24519 else
24520   cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24528 #define $ac_func innocuous_$ac_func
24529
24530 /* System header to define __stub macros and hopefully few prototypes,
24531     which can conflict with char $ac_func (); below.
24532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24533     <limits.h> exists even on freestanding compilers.  */
24534
24535 #ifdef __STDC__
24536 # include <limits.h>
24537 #else
24538 # include <assert.h>
24539 #endif
24540
24541 #undef $ac_func
24542
24543 /* Override any gcc2 internal prototype to avoid an error.  */
24544 #ifdef __cplusplus
24545 extern "C"
24546 {
24547 #endif
24548 /* We use char because int might match the return type of a gcc2
24549    builtin and then its argument prototype would still apply.  */
24550 char $ac_func ();
24551 /* The GNU C library defines this for functions which it implements
24552     to always fail with ENOSYS.  Some functions are actually named
24553     something starting with __ and the normal name is an alias.  */
24554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24555 choke me
24556 #else
24557 char (*f) () = $ac_func;
24558 #endif
24559 #ifdef __cplusplus
24560 }
24561 #endif
24562
24563 int
24564 main ()
24565 {
24566 return f != $ac_func;
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 rm -f conftest.$ac_objext conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573   (eval $ac_link) 2>conftest.er1
24574   ac_status=$?
24575   grep -v '^ *+' conftest.er1 >conftest.err
24576   rm -f conftest.er1
24577   cat conftest.err >&5
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); } &&
24580          { ac_try='test -z "$ac_c_werror_flag"
24581                          || test ! -s conftest.err'
24582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; } &&
24587          { ac_try='test -s conftest$ac_exeext'
24588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589   (eval $ac_try) 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; }; then
24593   eval "$as_ac_var=yes"
24594 else
24595   echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598 eval "$as_ac_var=no"
24599 fi
24600 rm -f conftest.err conftest.$ac_objext \
24601       conftest$ac_exeext conftest.$ac_ext
24602 fi
24603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24605 if test `eval echo '${'$as_ac_var'}'` = yes; then
24606   cat >>confdefs.h <<_ACEOF
24607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24608 _ACEOF
24609
24610 fi
24611 done
24612
24613         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24614 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24615 if test "${ol_cv_sys_linux_threads+set}" = set; then
24616   echo $ECHO_N "(cached) $ECHO_C" >&6
24617 else
24618   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24619 fi
24620 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24621 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24622
24623
24624
24625
24626         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24627 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24628 if test "${ol_cv_linux_threads+set}" = set; then
24629   echo $ECHO_N "(cached) $ECHO_C" >&6
24630 else
24631
24632                 if test $ol_cv_header_linux_threads = yes &&
24633                    test $ol_cv_sys_linux_threads = yes; then
24634                         ol_cv_linux_threads=yes
24635                 elif test $ol_cv_header_linux_threads = no &&
24636                      test $ol_cv_sys_linux_threads = no; then
24637                         ol_cv_linux_threads=no
24638                 else
24639                         ol_cv_linux_threads=error
24640                 fi
24641
24642 fi
24643 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24644 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24645
24646
24647                         if test $ol_cv_linux_threads = error; then
24648                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24649 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24650    { (exit 1); exit 1; }; };
24651                         fi
24652
24653                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24654 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24655 if test "${ol_cv_pthread_create_works+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658
24659                         if test "$cross_compiling" = yes; then
24660                                 ol_cv_pthread_create_works=yes
24661 else
24662   cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h.  */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h.  */
24668
24669 /* pthread test headers */
24670 #include <pthread.h>
24671 #if HAVE_PTHREADS < 7
24672 #include <errno.h>
24673 #endif
24674 #ifndef NULL
24675 #define NULL (void*)0
24676 #endif
24677
24678 static void *task(p)
24679         void *p;
24680 {
24681         return (void *) (p == NULL);
24682 }
24683
24684
24685 int main(argc, argv)
24686         int argc;
24687         char **argv;
24688 {
24689
24690         /* pthread test function */
24691 #ifndef PTHREAD_CREATE_DETACHED
24692 #define PTHREAD_CREATE_DETACHED 1
24693 #endif
24694         pthread_t t;
24695         int status;
24696         int detach = PTHREAD_CREATE_DETACHED;
24697
24698 #if HAVE_PTHREADS > 4
24699         /* Final pthreads */
24700         pthread_attr_t attr;
24701
24702         status = pthread_attr_init(&attr);
24703         if( status ) return status;
24704
24705 #if HAVE_PTHREADS < 7
24706         status = pthread_attr_setdetachstate(&attr, &detach);
24707         if( status < 0 ) status = errno;
24708 #else
24709         status = pthread_attr_setdetachstate(&attr, detach);
24710 #endif
24711         if( status ) return status;
24712         status = pthread_create( &t, &attr, task, NULL );
24713 #if HAVE_PTHREADS < 7
24714         if( status < 0 ) status = errno;
24715 #endif
24716         if( status ) return status;
24717 #else
24718         /* Draft 4 pthreads */
24719         status = pthread_create( &t, pthread_attr_default, task, NULL );
24720         if( status ) return errno;
24721
24722         /* give thread a chance to complete */
24723         /* it should remain joinable and hence detachable */
24724         sleep( 1 );
24725
24726         status = pthread_detach( &t );
24727         if( status ) return errno;
24728 #endif
24729
24730 #ifdef HAVE_LINUX_THREADS
24731         pthread_kill_other_threads_np();
24732 #endif
24733
24734         return 0;
24735
24736 }
24737
24738 _ACEOF
24739 rm -f conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741   (eval $ac_link) 2>&5
24742   ac_status=$?
24743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746   (eval $ac_try) 2>&5
24747   ac_status=$?
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); }; }; then
24750   ol_cv_pthread_create_works=yes
24751 else
24752   echo "$as_me: program exited with status $ac_status" >&5
24753 echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24755
24756 ( exit $ac_status )
24757 ol_cv_pthread_create_works=no
24758 fi
24759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24760 fi
24761 fi
24762 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24763 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24764
24765                         if test $ol_cv_pthread_create_works = no ; then
24766                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24767 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24768    { (exit 1); exit 1; }; }
24769                         fi
24770
24771                         ol_replace_broken_yield=no
24772                         case "$target" in
24773                         *-*-linux*)
24774                                 ol_replace_broken_yield=yes
24775                         ;;
24776                         esac
24777
24778                         if test $ol_replace_broken_yield = yes ; then
24779
24780 cat >>confdefs.h <<\_ACEOF
24781 #define REPLACE_BROKEN_YIELD 1
24782 _ACEOF
24783
24784                         fi
24785
24786                                                 if test $ol_with_yielding_select = auto ; then
24787                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24788 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24789 if test "${ol_cv_pthread_select_yields+set}" = set; then
24790   echo $ECHO_N "(cached) $ECHO_C" >&6
24791 else
24792
24793                                 if test "$cross_compiling" = yes; then
24794   ol_cv_pthread_select_yields=cross
24795 else
24796   cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802
24803 #include <sys/types.h>
24804 #include <sys/time.h>
24805 #include <unistd.h>
24806 #include <pthread.h>
24807 #ifndef NULL
24808 #define NULL (void*) 0
24809 #endif
24810
24811 static int fildes[2];
24812
24813 static void *task(p)
24814         void *p;
24815 {
24816         int i;
24817         struct timeval tv;
24818
24819         fd_set rfds;
24820
24821         tv.tv_sec=10;
24822         tv.tv_usec=0;
24823
24824         FD_ZERO(&rfds);
24825         FD_SET(fildes[0], &rfds);
24826
24827         /* we're not interested in any fds */
24828         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24829
24830         if(i < 0) {
24831                 perror("select");
24832                 exit(10);
24833         }
24834
24835         exit(0); /* if we exit here, the select blocked the whole process */
24836 }
24837
24838 int main(argc, argv)
24839         int argc;
24840         char **argv;
24841 {
24842         pthread_t t;
24843
24844         /* create a pipe to select */
24845         if(pipe(&fildes[0])) {
24846                 perror("select");
24847                 exit(1);
24848         }
24849
24850 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24851         (void) pthread_setconcurrency(2);
24852 #else
24853 #ifdef HAVE_THR_SETCONCURRENCY
24854         /* Set Solaris LWP concurrency to 2 */
24855         thr_setconcurrency(2);
24856 #endif
24857 #endif
24858
24859 #if HAVE_PTHREADS < 6
24860         pthread_create(&t, pthread_attr_default, task, NULL);
24861 #else
24862         pthread_create(&t, NULL, task, NULL);
24863 #endif
24864
24865         /* make sure task runs first */
24866 #if HAVE_THR_YIELD
24867         thr_yield();
24868 #elif defined( HAVE_SCHED_YIELD )
24869         sched_yield();
24870 #elif defined( HAVE_PTHREAD_YIELD )
24871         pthread_yield();
24872 #endif
24873
24874         exit(2);
24875 }
24876 _ACEOF
24877 rm -f conftest$ac_exeext
24878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24879   (eval $ac_link) 2>&5
24880   ac_status=$?
24881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ol_cv_pthread_select_yields=no
24889 else
24890   echo "$as_me: program exited with status $ac_status" >&5
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894 ( exit $ac_status )
24895 ol_cv_pthread_select_yields=yes
24896 fi
24897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24898 fi
24899 fi
24900 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24901 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24902
24903                                 if test $ol_cv_pthread_select_yields = cross ; then
24904                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24905 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24906    { (exit 1); exit 1; }; }
24907                                 fi
24908
24909                                 if test $ol_cv_pthread_select_yields = yes ; then
24910                                         ol_with_yielding_select=yes
24911                                 fi
24912                         fi
24913
24914                                                 CPPFLAGS="$save_CPPFLAGS"
24915                         LIBS="$save_LIBS"
24916                 else
24917                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24918 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24919    { (exit 1); exit 1; }; }
24920                 fi
24921         fi
24922
24923         if test $ol_with_threads = posix ; then
24924                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24925 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24926    { (exit 1); exit 1; }; }
24927         fi
24928         ;;
24929 esac
24930
24931 case $ol_with_threads in auto | yes | mach)
24932
24933
24934
24935 for ac_header in mach/cthreads.h cthreads.h
24936 do
24937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24939   echo "$as_me:$LINENO: checking for $ac_header" >&5
24940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24942   echo $ECHO_N "(cached) $ECHO_C" >&6
24943 fi
24944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24946 else
24947   # Is the header compilable?
24948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 $ac_includes_default
24957 #include <$ac_header>
24958 _ACEOF
24959 rm -f conftest.$ac_objext
24960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24961   (eval $ac_compile) 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } &&
24968          { ac_try='test -z "$ac_c_werror_flag"
24969                          || test ! -s conftest.err'
24970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971   (eval $ac_try) 2>&5
24972   ac_status=$?
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); }; } &&
24975          { ac_try='test -s conftest.$ac_objext'
24976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977   (eval $ac_try) 2>&5
24978   ac_status=$?
24979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980   (exit $ac_status); }; }; then
24981   ac_header_compiler=yes
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986 ac_header_compiler=no
24987 fi
24988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24990 echo "${ECHO_T}$ac_header_compiler" >&6
24991
24992 # Is the header present?
24993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h.  */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h.  */
25001 #include <$ac_header>
25002 _ACEOF
25003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } >/dev/null; then
25011   if test -s conftest.err; then
25012     ac_cpp_err=$ac_c_preproc_warn_flag
25013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25014   else
25015     ac_cpp_err=
25016   fi
25017 else
25018   ac_cpp_err=yes
25019 fi
25020 if test -z "$ac_cpp_err"; then
25021   ac_header_preproc=yes
25022 else
25023   echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25025
25026   ac_header_preproc=no
25027 fi
25028 rm -f conftest.err conftest.$ac_ext
25029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25030 echo "${ECHO_T}$ac_header_preproc" >&6
25031
25032 # So?  What about this header?
25033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25034   yes:no: )
25035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25039     ac_header_preproc=yes
25040     ;;
25041   no:yes:* )
25042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25054     (
25055       cat <<\_ASBOX
25056 ## ------------------------------------------ ##
25057 ## Report this to the AC_PACKAGE_NAME lists.  ##
25058 ## ------------------------------------------ ##
25059 _ASBOX
25060     ) |
25061       sed "s/^/$as_me: WARNING:     /" >&2
25062     ;;
25063 esac
25064 echo "$as_me:$LINENO: checking for $ac_header" >&5
25065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25067   echo $ECHO_N "(cached) $ECHO_C" >&6
25068 else
25069   eval "$as_ac_Header=\$ac_header_preproc"
25070 fi
25071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25073
25074 fi
25075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25076   cat >>confdefs.h <<_ACEOF
25077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25078 _ACEOF
25079
25080 fi
25081
25082 done
25083
25084         if test $ac_cv_header_mach_cthreads_h = yes ; then
25085                 ol_with_threads=found
25086
25087                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25088 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25089 if test "${ac_cv_func_cthread_fork+set}" = set; then
25090   echo $ECHO_N "(cached) $ECHO_C" >&6
25091 else
25092   cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h.  */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h.  */
25098 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25100 #define cthread_fork innocuous_cthread_fork
25101
25102 /* System header to define __stub macros and hopefully few prototypes,
25103     which can conflict with char cthread_fork (); below.
25104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25105     <limits.h> exists even on freestanding compilers.  */
25106
25107 #ifdef __STDC__
25108 # include <limits.h>
25109 #else
25110 # include <assert.h>
25111 #endif
25112
25113 #undef cthread_fork
25114
25115 /* Override any gcc2 internal prototype to avoid an error.  */
25116 #ifdef __cplusplus
25117 extern "C"
25118 {
25119 #endif
25120 /* We use char because int might match the return type of a gcc2
25121    builtin and then its argument prototype would still apply.  */
25122 char cthread_fork ();
25123 /* The GNU C library defines this for functions which it implements
25124     to always fail with ENOSYS.  Some functions are actually named
25125     something starting with __ and the normal name is an alias.  */
25126 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25127 choke me
25128 #else
25129 char (*f) () = cthread_fork;
25130 #endif
25131 #ifdef __cplusplus
25132 }
25133 #endif
25134
25135 int
25136 main ()
25137 {
25138 return f != cthread_fork;
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 rm -f conftest.$ac_objext conftest$ac_exeext
25144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25145   (eval $ac_link) 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } &&
25152          { ac_try='test -z "$ac_c_werror_flag"
25153                          || test ! -s conftest.err'
25154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155   (eval $ac_try) 2>&5
25156   ac_status=$?
25157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158   (exit $ac_status); }; } &&
25159          { ac_try='test -s conftest$ac_exeext'
25160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161   (eval $ac_try) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); }; }; then
25165   ac_cv_func_cthread_fork=yes
25166 else
25167   echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25169
25170 ac_cv_func_cthread_fork=no
25171 fi
25172 rm -f conftest.err conftest.$ac_objext \
25173       conftest$ac_exeext conftest.$ac_ext
25174 fi
25175 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25176 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25177 if test $ac_cv_func_cthread_fork = yes; then
25178   ol_link_threads=yes
25179 fi
25180
25181
25182                 if test $ol_link_threads = no ; then
25183                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25184 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25185 if test "${ol_cv_cthread_all_load+set}" = set; then
25186   echo $ECHO_N "(cached) $ECHO_C" >&6
25187 else
25188
25189                                                                 save_LIBS="$LIBS"
25190                                 LIBS="-all_load $LIBS"
25191                                 cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h.  */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h.  */
25197 #include <mach/cthreads.h>
25198 int
25199 main ()
25200 {
25201
25202                                         cthread_fork((void *)0, (void *)0);
25203
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext conftest$ac_exeext
25209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25210   (eval $ac_link) 2>conftest.er1
25211   ac_status=$?
25212   grep -v '^ *+' conftest.er1 >conftest.err
25213   rm -f conftest.er1
25214   cat conftest.err >&5
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } &&
25217          { ac_try='test -z "$ac_c_werror_flag"
25218                          || test ! -s conftest.err'
25219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220   (eval $ac_try) 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); }; } &&
25224          { ac_try='test -s conftest$ac_exeext'
25225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25226   (eval $ac_try) 2>&5
25227   ac_status=$?
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); }; }; then
25230   ol_cv_cthread_all_load=yes
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 ol_cv_cthread_all_load=no
25236 fi
25237 rm -f conftest.err conftest.$ac_objext \
25238       conftest$ac_exeext conftest.$ac_ext
25239                                                                 LIBS="$save_LIBS"
25240
25241 fi
25242 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25243 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25244
25245                         if test $ol_cv_cthread_all_load = yes ; then
25246                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25247                                 ol_link_threads=mach
25248                                 ol_with_threads=found
25249                         fi
25250                 fi
25251
25252         elif test $ac_cv_header_cthreads_h = yes ; then
25253
25254                 ol_with_threads=found
25255
25256                                 save_LIBS="$LIBS"
25257                 LIBS="$LIBS -lthreads"
25258                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25259 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25260 if test "${ac_cv_func_cthread_fork+set}" = set; then
25261   echo $ECHO_N "(cached) $ECHO_C" >&6
25262 else
25263   cat >conftest.$ac_ext <<_ACEOF
25264 /* confdefs.h.  */
25265 _ACEOF
25266 cat confdefs.h >>conftest.$ac_ext
25267 cat >>conftest.$ac_ext <<_ACEOF
25268 /* end confdefs.h.  */
25269 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25271 #define cthread_fork innocuous_cthread_fork
25272
25273 /* System header to define __stub macros and hopefully few prototypes,
25274     which can conflict with char cthread_fork (); below.
25275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25276     <limits.h> exists even on freestanding compilers.  */
25277
25278 #ifdef __STDC__
25279 # include <limits.h>
25280 #else
25281 # include <assert.h>
25282 #endif
25283
25284 #undef cthread_fork
25285
25286 /* Override any gcc2 internal prototype to avoid an error.  */
25287 #ifdef __cplusplus
25288 extern "C"
25289 {
25290 #endif
25291 /* We use char because int might match the return type of a gcc2
25292    builtin and then its argument prototype would still apply.  */
25293 char cthread_fork ();
25294 /* The GNU C library defines this for functions which it implements
25295     to always fail with ENOSYS.  Some functions are actually named
25296     something starting with __ and the normal name is an alias.  */
25297 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25298 choke me
25299 #else
25300 char (*f) () = cthread_fork;
25301 #endif
25302 #ifdef __cplusplus
25303 }
25304 #endif
25305
25306 int
25307 main ()
25308 {
25309 return f != cthread_fork;
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25316   (eval $ac_link) 2>conftest.er1
25317   ac_status=$?
25318   grep -v '^ *+' conftest.er1 >conftest.err
25319   rm -f conftest.er1
25320   cat conftest.err >&5
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); } &&
25323          { ac_try='test -z "$ac_c_werror_flag"
25324                          || test ! -s conftest.err'
25325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326   (eval $ac_try) 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; } &&
25330          { ac_try='test -s conftest$ac_exeext'
25331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332   (eval $ac_try) 2>&5
25333   ac_status=$?
25334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335   (exit $ac_status); }; }; then
25336   ac_cv_func_cthread_fork=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341 ac_cv_func_cthread_fork=no
25342 fi
25343 rm -f conftest.err conftest.$ac_objext \
25344       conftest$ac_exeext conftest.$ac_ext
25345 fi
25346 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25347 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25348 if test $ac_cv_func_cthread_fork = yes; then
25349   ol_link_threads=yes
25350 fi
25351
25352                 LIBS="$save_LIBS"
25353
25354                 if test $ol_link_threads = yes ; then
25355                         LTHREAD_LIBS="-lthreads"
25356                         ol_link_threads=mach
25357                         ol_with_threads=found
25358                 else
25359                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25360 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25361    { (exit 1); exit 1; }; }
25362                 fi
25363
25364         elif test $ol_with_threads = mach ; then
25365                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25366 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25367    { (exit 1); exit 1; }; }
25368         fi
25369
25370         if test $ol_link_threads = mach ; then
25371
25372 cat >>confdefs.h <<\_ACEOF
25373 #define HAVE_MACH_CTHREADS 1
25374 _ACEOF
25375
25376         elif test $ol_with_threads = found ; then
25377                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25378 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25379    { (exit 1); exit 1; }; }
25380         fi
25381         ;;
25382 esac
25383
25384 case $ol_with_threads in auto | yes | pth)
25385
25386
25387 for ac_header in pth.h
25388 do
25389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25391   echo "$as_me:$LINENO: checking for $ac_header" >&5
25392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25394   echo $ECHO_N "(cached) $ECHO_C" >&6
25395 fi
25396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25398 else
25399   # Is the header compilable?
25400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408 $ac_includes_default
25409 #include <$ac_header>
25410 _ACEOF
25411 rm -f conftest.$ac_objext
25412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25413   (eval $ac_compile) 2>conftest.er1
25414   ac_status=$?
25415   grep -v '^ *+' conftest.er1 >conftest.err
25416   rm -f conftest.er1
25417   cat conftest.err >&5
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); } &&
25420          { ac_try='test -z "$ac_c_werror_flag"
25421                          || test ! -s conftest.err'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; } &&
25427          { ac_try='test -s conftest.$ac_objext'
25428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429   (eval $ac_try) 2>&5
25430   ac_status=$?
25431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); }; }; then
25433   ac_header_compiler=yes
25434 else
25435   echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25437
25438 ac_header_compiler=no
25439 fi
25440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25442 echo "${ECHO_T}$ac_header_compiler" >&6
25443
25444 # Is the header present?
25445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25447 cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 #include <$ac_header>
25454 _ACEOF
25455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } >/dev/null; then
25463   if test -s conftest.err; then
25464     ac_cpp_err=$ac_c_preproc_warn_flag
25465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25466   else
25467     ac_cpp_err=
25468   fi
25469 else
25470   ac_cpp_err=yes
25471 fi
25472 if test -z "$ac_cpp_err"; then
25473   ac_header_preproc=yes
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478   ac_header_preproc=no
25479 fi
25480 rm -f conftest.err conftest.$ac_ext
25481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25482 echo "${ECHO_T}$ac_header_preproc" >&6
25483
25484 # So?  What about this header?
25485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25486   yes:no: )
25487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25491     ac_header_preproc=yes
25492     ;;
25493   no:yes:* )
25494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25506     (
25507       cat <<\_ASBOX
25508 ## ------------------------------------------ ##
25509 ## Report this to the AC_PACKAGE_NAME lists.  ##
25510 ## ------------------------------------------ ##
25511 _ASBOX
25512     ) |
25513       sed "s/^/$as_me: WARNING:     /" >&2
25514     ;;
25515 esac
25516 echo "$as_me:$LINENO: checking for $ac_header" >&5
25517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25519   echo $ECHO_N "(cached) $ECHO_C" >&6
25520 else
25521   eval "$as_ac_Header=\$ac_header_preproc"
25522 fi
25523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25525
25526 fi
25527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25528   cat >>confdefs.h <<_ACEOF
25529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25530 _ACEOF
25531
25532 fi
25533
25534 done
25535
25536
25537         if test $ac_cv_header_pth_h = yes ; then
25538                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25539 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25540 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543   ac_check_lib_save_LIBS=$LIBS
25544 LIBS="-lpth  $LIBS"
25545 cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551
25552 /* Override any gcc2 internal prototype to avoid an error.  */
25553 #ifdef __cplusplus
25554 extern "C"
25555 #endif
25556 /* We use char because int might match the return type of a gcc2
25557    builtin and then its argument prototype would still apply.  */
25558 char pth_version ();
25559 int
25560 main ()
25561 {
25562 pth_version ();
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25569   (eval $ac_link) 2>conftest.er1
25570   ac_status=$?
25571   grep -v '^ *+' conftest.er1 >conftest.err
25572   rm -f conftest.er1
25573   cat conftest.err >&5
25574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575   (exit $ac_status); } &&
25576          { ac_try='test -z "$ac_c_werror_flag"
25577                          || test ! -s conftest.err'
25578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579   (eval $ac_try) 2>&5
25580   ac_status=$?
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); }; } &&
25583          { ac_try='test -s conftest$ac_exeext'
25584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585   (eval $ac_try) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); }; }; then
25589   ac_cv_lib_pth_pth_version=yes
25590 else
25591   echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25593
25594 ac_cv_lib_pth_pth_version=no
25595 fi
25596 rm -f conftest.err conftest.$ac_objext \
25597       conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25599 fi
25600 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25601 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25602 if test $ac_cv_lib_pth_pth_version = yes; then
25603   have_pth=yes
25604 else
25605   have_pth=no
25606 fi
25607
25608
25609                 if test $have_pth = yes ; then
25610
25611 cat >>confdefs.h <<\_ACEOF
25612 #define HAVE_GNU_PTH 1
25613 _ACEOF
25614
25615                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25616                         ol_link_threads=pth
25617                         ol_with_threads=found
25618
25619                         if test $ol_with_yielding_select = auto ; then
25620                                 ol_with_yielding_select=yes
25621                         fi
25622                 fi
25623         fi
25624         ;;
25625 esac
25626
25627 case $ol_with_threads in auto | yes | lwp)
25628
25629
25630
25631 for ac_header in thread.h synch.h
25632 do
25633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25635   echo "$as_me:$LINENO: checking for $ac_header" >&5
25636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 fi
25640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25642 else
25643   # Is the header compilable?
25644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25646 cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h.  */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
25651 /* end confdefs.h.  */
25652 $ac_includes_default
25653 #include <$ac_header>
25654 _ACEOF
25655 rm -f conftest.$ac_objext
25656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25657   (eval $ac_compile) 2>conftest.er1
25658   ac_status=$?
25659   grep -v '^ *+' conftest.er1 >conftest.err
25660   rm -f conftest.er1
25661   cat conftest.err >&5
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); } &&
25664          { ac_try='test -z "$ac_c_werror_flag"
25665                          || test ! -s conftest.err'
25666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); }; } &&
25671          { ac_try='test -s conftest.$ac_objext'
25672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673   (eval $ac_try) 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; }; then
25677   ac_header_compiler=yes
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682 ac_header_compiler=no
25683 fi
25684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25686 echo "${ECHO_T}$ac_header_compiler" >&6
25687
25688 # Is the header present?
25689 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25690 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25691 cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h.  */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h.  */
25697 #include <$ac_header>
25698 _ACEOF
25699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } >/dev/null; then
25707   if test -s conftest.err; then
25708     ac_cpp_err=$ac_c_preproc_warn_flag
25709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25710   else
25711     ac_cpp_err=
25712   fi
25713 else
25714   ac_cpp_err=yes
25715 fi
25716 if test -z "$ac_cpp_err"; then
25717   ac_header_preproc=yes
25718 else
25719   echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25721
25722   ac_header_preproc=no
25723 fi
25724 rm -f conftest.err conftest.$ac_ext
25725 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25726 echo "${ECHO_T}$ac_header_preproc" >&6
25727
25728 # So?  What about this header?
25729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25730   yes:no: )
25731     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25735     ac_header_preproc=yes
25736     ;;
25737   no:yes:* )
25738     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25740     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25741 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25742     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25744     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25745 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25746     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25748     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25750     (
25751       cat <<\_ASBOX
25752 ## ------------------------------------------ ##
25753 ## Report this to the AC_PACKAGE_NAME lists.  ##
25754 ## ------------------------------------------ ##
25755 _ASBOX
25756     ) |
25757       sed "s/^/$as_me: WARNING:     /" >&2
25758     ;;
25759 esac
25760 echo "$as_me:$LINENO: checking for $ac_header" >&5
25761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25763   echo $ECHO_N "(cached) $ECHO_C" >&6
25764 else
25765   eval "$as_ac_Header=\$ac_header_preproc"
25766 fi
25767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25769
25770 fi
25771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25772   cat >>confdefs.h <<_ACEOF
25773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25774 _ACEOF
25775
25776 fi
25777
25778 done
25779
25780         if test $ac_cv_header_thread_h = yes &&
25781            test $ac_cv_header_synch_h = yes ; then
25782                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25783 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25784 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25785   echo $ECHO_N "(cached) $ECHO_C" >&6
25786 else
25787   ac_check_lib_save_LIBS=$LIBS
25788 LIBS="-lthread  $LIBS"
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h.  */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h.  */
25795
25796 /* Override any gcc2 internal prototype to avoid an error.  */
25797 #ifdef __cplusplus
25798 extern "C"
25799 #endif
25800 /* We use char because int might match the return type of a gcc2
25801    builtin and then its argument prototype would still apply.  */
25802 char thr_create ();
25803 int
25804 main ()
25805 {
25806 thr_create ();
25807   ;
25808   return 0;
25809 }
25810 _ACEOF
25811 rm -f conftest.$ac_objext conftest$ac_exeext
25812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25813   (eval $ac_link) 2>conftest.er1
25814   ac_status=$?
25815   grep -v '^ *+' conftest.er1 >conftest.err
25816   rm -f conftest.er1
25817   cat conftest.err >&5
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); } &&
25820          { ac_try='test -z "$ac_c_werror_flag"
25821                          || test ! -s conftest.err'
25822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823   (eval $ac_try) 2>&5
25824   ac_status=$?
25825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826   (exit $ac_status); }; } &&
25827          { ac_try='test -s conftest$ac_exeext'
25828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829   (eval $ac_try) 2>&5
25830   ac_status=$?
25831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832   (exit $ac_status); }; }; then
25833   ac_cv_lib_thread_thr_create=yes
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838 ac_cv_lib_thread_thr_create=no
25839 fi
25840 rm -f conftest.err conftest.$ac_objext \
25841       conftest$ac_exeext conftest.$ac_ext
25842 LIBS=$ac_check_lib_save_LIBS
25843 fi
25844 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25845 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25846 if test $ac_cv_lib_thread_thr_create = yes; then
25847   have_thr=yes
25848 else
25849   have_thr=no
25850 fi
25851
25852
25853                 if test $have_thr = yes ; then
25854
25855 cat >>confdefs.h <<\_ACEOF
25856 #define HAVE_THR 1
25857 _ACEOF
25858
25859                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25860                         ol_link_threads=thr
25861
25862                         if test $ol_with_yielding_select = auto ; then
25863                                 ol_with_yielding_select=yes
25864                         fi
25865
25866
25867
25868 for ac_func in \
25869                                 thr_setconcurrency \
25870                                 thr_getconcurrency \
25871
25872 do
25873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25874 echo "$as_me:$LINENO: checking for $ac_func" >&5
25875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25876 if eval "test \"\${$as_ac_var+set}\" = set"; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879   cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25887 #define $ac_func innocuous_$ac_func
25888
25889 /* System header to define __stub macros and hopefully few prototypes,
25890     which can conflict with char $ac_func (); below.
25891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25892     <limits.h> exists even on freestanding compilers.  */
25893
25894 #ifdef __STDC__
25895 # include <limits.h>
25896 #else
25897 # include <assert.h>
25898 #endif
25899
25900 #undef $ac_func
25901
25902 /* Override any gcc2 internal prototype to avoid an error.  */
25903 #ifdef __cplusplus
25904 extern "C"
25905 {
25906 #endif
25907 /* We use char because int might match the return type of a gcc2
25908    builtin and then its argument prototype would still apply.  */
25909 char $ac_func ();
25910 /* The GNU C library defines this for functions which it implements
25911     to always fail with ENOSYS.  Some functions are actually named
25912     something starting with __ and the normal name is an alias.  */
25913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25914 choke me
25915 #else
25916 char (*f) () = $ac_func;
25917 #endif
25918 #ifdef __cplusplus
25919 }
25920 #endif
25921
25922 int
25923 main ()
25924 {
25925 return f != $ac_func;
25926   ;
25927   return 0;
25928 }
25929 _ACEOF
25930 rm -f conftest.$ac_objext conftest$ac_exeext
25931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25932   (eval $ac_link) 2>conftest.er1
25933   ac_status=$?
25934   grep -v '^ *+' conftest.er1 >conftest.err
25935   rm -f conftest.er1
25936   cat conftest.err >&5
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); } &&
25939          { ac_try='test -z "$ac_c_werror_flag"
25940                          || test ! -s conftest.err'
25941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942   (eval $ac_try) 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; } &&
25946          { ac_try='test -s conftest$ac_exeext'
25947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948   (eval $ac_try) 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; }; then
25952   eval "$as_ac_var=yes"
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957 eval "$as_ac_var=no"
25958 fi
25959 rm -f conftest.err conftest.$ac_objext \
25960       conftest$ac_exeext conftest.$ac_ext
25961 fi
25962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25964 if test `eval echo '${'$as_ac_var'}'` = yes; then
25965   cat >>confdefs.h <<_ACEOF
25966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25967 _ACEOF
25968
25969 fi
25970 done
25971
25972                 fi
25973         fi
25974
25975
25976 for ac_header in lwp/lwp.h
25977 do
25978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25980   echo "$as_me:$LINENO: checking for $ac_header" >&5
25981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25983   echo $ECHO_N "(cached) $ECHO_C" >&6
25984 fi
25985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25987 else
25988   # Is the header compilable?
25989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25991 cat >conftest.$ac_ext <<_ACEOF
25992 /* confdefs.h.  */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h.  */
25997 $ac_includes_default
25998 #include <$ac_header>
25999 _ACEOF
26000 rm -f conftest.$ac_objext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26002   (eval $ac_compile) 2>conftest.er1
26003   ac_status=$?
26004   grep -v '^ *+' conftest.er1 >conftest.err
26005   rm -f conftest.er1
26006   cat conftest.err >&5
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); } &&
26009          { ac_try='test -z "$ac_c_werror_flag"
26010                          || test ! -s conftest.err'
26011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012   (eval $ac_try) 2>&5
26013   ac_status=$?
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); }; } &&
26016          { ac_try='test -s conftest.$ac_objext'
26017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018   (eval $ac_try) 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); }; }; then
26022   ac_header_compiler=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027 ac_header_compiler=no
26028 fi
26029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26031 echo "${ECHO_T}$ac_header_compiler" >&6
26032
26033 # Is the header present?
26034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26036 cat >conftest.$ac_ext <<_ACEOF
26037 /* confdefs.h.  */
26038 _ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h.  */
26042 #include <$ac_header>
26043 _ACEOF
26044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26046   ac_status=$?
26047   grep -v '^ *+' conftest.er1 >conftest.err
26048   rm -f conftest.er1
26049   cat conftest.err >&5
26050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051   (exit $ac_status); } >/dev/null; then
26052   if test -s conftest.err; then
26053     ac_cpp_err=$ac_c_preproc_warn_flag
26054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26055   else
26056     ac_cpp_err=
26057   fi
26058 else
26059   ac_cpp_err=yes
26060 fi
26061 if test -z "$ac_cpp_err"; then
26062   ac_header_preproc=yes
26063 else
26064   echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26066
26067   ac_header_preproc=no
26068 fi
26069 rm -f conftest.err conftest.$ac_ext
26070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26071 echo "${ECHO_T}$ac_header_preproc" >&6
26072
26073 # So?  What about this header?
26074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26075   yes:no: )
26076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26080     ac_header_preproc=yes
26081     ;;
26082   no:yes:* )
26083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26095     (
26096       cat <<\_ASBOX
26097 ## ------------------------------------------ ##
26098 ## Report this to the AC_PACKAGE_NAME lists.  ##
26099 ## ------------------------------------------ ##
26100 _ASBOX
26101     ) |
26102       sed "s/^/$as_me: WARNING:     /" >&2
26103     ;;
26104 esac
26105 echo "$as_me:$LINENO: checking for $ac_header" >&5
26106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26108   echo $ECHO_N "(cached) $ECHO_C" >&6
26109 else
26110   eval "$as_ac_Header=\$ac_header_preproc"
26111 fi
26112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26114
26115 fi
26116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26117   cat >>confdefs.h <<_ACEOF
26118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26119 _ACEOF
26120
26121 fi
26122
26123 done
26124
26125         if test $ac_cv_header_lwp_lwp_h = yes ; then
26126                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26127 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26128 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26129   echo $ECHO_N "(cached) $ECHO_C" >&6
26130 else
26131   ac_check_lib_save_LIBS=$LIBS
26132 LIBS="-llwp  $LIBS"
26133 cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139
26140 /* Override any gcc2 internal prototype to avoid an error.  */
26141 #ifdef __cplusplus
26142 extern "C"
26143 #endif
26144 /* We use char because int might match the return type of a gcc2
26145    builtin and then its argument prototype would still apply.  */
26146 char lwp_create ();
26147 int
26148 main ()
26149 {
26150 lwp_create ();
26151   ;
26152   return 0;
26153 }
26154 _ACEOF
26155 rm -f conftest.$ac_objext conftest$ac_exeext
26156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26157   (eval $ac_link) 2>conftest.er1
26158   ac_status=$?
26159   grep -v '^ *+' conftest.er1 >conftest.err
26160   rm -f conftest.er1
26161   cat conftest.err >&5
26162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163   (exit $ac_status); } &&
26164          { ac_try='test -z "$ac_c_werror_flag"
26165                          || test ! -s conftest.err'
26166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167   (eval $ac_try) 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); }; } &&
26171          { ac_try='test -s conftest$ac_exeext'
26172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173   (eval $ac_try) 2>&5
26174   ac_status=$?
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); }; }; then
26177   ac_cv_lib_lwp_lwp_create=yes
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182 ac_cv_lib_lwp_lwp_create=no
26183 fi
26184 rm -f conftest.err conftest.$ac_objext \
26185       conftest$ac_exeext conftest.$ac_ext
26186 LIBS=$ac_check_lib_save_LIBS
26187 fi
26188 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26189 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26190 if test $ac_cv_lib_lwp_lwp_create = yes; then
26191   have_lwp=yes
26192 else
26193   have_lwp=no
26194 fi
26195
26196
26197                 if test $have_lwp = yes ; then
26198
26199 cat >>confdefs.h <<\_ACEOF
26200 #define HAVE_LWP 1
26201 _ACEOF
26202
26203                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26204                         ol_link_threads=lwp
26205
26206                         if test $ol_with_yielding_select = auto ; then
26207                                 ol_with_yielding_select=no
26208                         fi
26209                 fi
26210         fi
26211         ;;
26212 esac
26213
26214 if test $ol_with_yielding_select = yes ; then
26215
26216 cat >>confdefs.h <<\_ACEOF
26217 #define HAVE_YIELDING_SELECT 1
26218 _ACEOF
26219
26220 fi
26221
26222 if test $ol_with_threads = manual ; then
26223                 ol_link_threads=yes
26224
26225         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26226 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26227
26228
26229
26230 for ac_header in pthread.h sched.h
26231 do
26232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26234   echo "$as_me:$LINENO: checking for $ac_header" >&5
26235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26237   echo $ECHO_N "(cached) $ECHO_C" >&6
26238 fi
26239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26241 else
26242   # Is the header compilable?
26243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 $ac_includes_default
26252 #include <$ac_header>
26253 _ACEOF
26254 rm -f conftest.$ac_objext
26255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26256   (eval $ac_compile) 2>conftest.er1
26257   ac_status=$?
26258   grep -v '^ *+' conftest.er1 >conftest.err
26259   rm -f conftest.er1
26260   cat conftest.err >&5
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); } &&
26263          { ac_try='test -z "$ac_c_werror_flag"
26264                          || test ! -s conftest.err'
26265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26266   (eval $ac_try) 2>&5
26267   ac_status=$?
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); }; } &&
26270          { ac_try='test -s conftest.$ac_objext'
26271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272   (eval $ac_try) 2>&5
26273   ac_status=$?
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); }; }; then
26276   ac_header_compiler=yes
26277 else
26278   echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281 ac_header_compiler=no
26282 fi
26283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26285 echo "${ECHO_T}$ac_header_compiler" >&6
26286
26287 # Is the header present?
26288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26290 cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 #include <$ac_header>
26297 _ACEOF
26298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } >/dev/null; then
26306   if test -s conftest.err; then
26307     ac_cpp_err=$ac_c_preproc_warn_flag
26308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26309   else
26310     ac_cpp_err=
26311   fi
26312 else
26313   ac_cpp_err=yes
26314 fi
26315 if test -z "$ac_cpp_err"; then
26316   ac_header_preproc=yes
26317 else
26318   echo "$as_me: failed program was:" >&5
26319 sed 's/^/| /' conftest.$ac_ext >&5
26320
26321   ac_header_preproc=no
26322 fi
26323 rm -f conftest.err conftest.$ac_ext
26324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26325 echo "${ECHO_T}$ac_header_preproc" >&6
26326
26327 # So?  What about this header?
26328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26329   yes:no: )
26330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26334     ac_header_preproc=yes
26335     ;;
26336   no:yes:* )
26337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26349     (
26350       cat <<\_ASBOX
26351 ## ------------------------------------------ ##
26352 ## Report this to the AC_PACKAGE_NAME lists.  ##
26353 ## ------------------------------------------ ##
26354 _ASBOX
26355     ) |
26356       sed "s/^/$as_me: WARNING:     /" >&2
26357     ;;
26358 esac
26359 echo "$as_me:$LINENO: checking for $ac_header" >&5
26360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   eval "$as_ac_Header=\$ac_header_preproc"
26365 fi
26366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26368
26369 fi
26370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26371   cat >>confdefs.h <<_ACEOF
26372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26373 _ACEOF
26374
26375 fi
26376
26377 done
26378
26379
26380
26381 for ac_func in sched_yield pthread_yield
26382 do
26383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26384 echo "$as_me:$LINENO: checking for $ac_func" >&5
26385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26386 if eval "test \"\${$as_ac_var+set}\" = set"; then
26387   echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389   cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26397 #define $ac_func innocuous_$ac_func
26398
26399 /* System header to define __stub macros and hopefully few prototypes,
26400     which can conflict with char $ac_func (); below.
26401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26402     <limits.h> exists even on freestanding compilers.  */
26403
26404 #ifdef __STDC__
26405 # include <limits.h>
26406 #else
26407 # include <assert.h>
26408 #endif
26409
26410 #undef $ac_func
26411
26412 /* Override any gcc2 internal prototype to avoid an error.  */
26413 #ifdef __cplusplus
26414 extern "C"
26415 {
26416 #endif
26417 /* We use char because int might match the return type of a gcc2
26418    builtin and then its argument prototype would still apply.  */
26419 char $ac_func ();
26420 /* The GNU C library defines this for functions which it implements
26421     to always fail with ENOSYS.  Some functions are actually named
26422     something starting with __ and the normal name is an alias.  */
26423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26424 choke me
26425 #else
26426 char (*f) () = $ac_func;
26427 #endif
26428 #ifdef __cplusplus
26429 }
26430 #endif
26431
26432 int
26433 main ()
26434 {
26435 return f != $ac_func;
26436   ;
26437   return 0;
26438 }
26439 _ACEOF
26440 rm -f conftest.$ac_objext conftest$ac_exeext
26441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26442   (eval $ac_link) 2>conftest.er1
26443   ac_status=$?
26444   grep -v '^ *+' conftest.er1 >conftest.err
26445   rm -f conftest.er1
26446   cat conftest.err >&5
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); } &&
26449          { ac_try='test -z "$ac_c_werror_flag"
26450                          || test ! -s conftest.err'
26451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452   (eval $ac_try) 2>&5
26453   ac_status=$?
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); }; } &&
26456          { ac_try='test -s conftest$ac_exeext'
26457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458   (eval $ac_try) 2>&5
26459   ac_status=$?
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); }; }; then
26462   eval "$as_ac_var=yes"
26463 else
26464   echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26466
26467 eval "$as_ac_var=no"
26468 fi
26469 rm -f conftest.err conftest.$ac_objext \
26470       conftest$ac_exeext conftest.$ac_ext
26471 fi
26472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26474 if test `eval echo '${'$as_ac_var'}'` = yes; then
26475   cat >>confdefs.h <<_ACEOF
26476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26477 _ACEOF
26478
26479 fi
26480 done
26481
26482
26483         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26484 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26485 if test "${ol_cv_header_linux_threads+set}" = set; then
26486   echo $ECHO_N "(cached) $ECHO_C" >&6
26487 else
26488   cat >conftest.$ac_ext <<_ACEOF
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494 #include <pthread.h>
26495 _ACEOF
26496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26497   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26498   ol_cv_header_linux_threads=yes
26499 else
26500   ol_cv_header_linux_threads=no
26501 fi
26502 rm -f conftest*
26503
26504
26505 fi
26506 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26507 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26508         if test $ol_cv_header_linux_threads = yes; then
26509
26510 cat >>confdefs.h <<\_ACEOF
26511 #define HAVE_LINUX_THREADS 1
26512 _ACEOF
26513
26514         fi
26515
26516
26517
26518 for ac_header in mach/cthreads.h
26519 do
26520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26522   echo "$as_me:$LINENO: checking for $ac_header" >&5
26523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26525   echo $ECHO_N "(cached) $ECHO_C" >&6
26526 fi
26527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26529 else
26530   # Is the header compilable?
26531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h.  */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h.  */
26539 $ac_includes_default
26540 #include <$ac_header>
26541 _ACEOF
26542 rm -f conftest.$ac_objext
26543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26544   (eval $ac_compile) 2>conftest.er1
26545   ac_status=$?
26546   grep -v '^ *+' conftest.er1 >conftest.err
26547   rm -f conftest.er1
26548   cat conftest.err >&5
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); } &&
26551          { ac_try='test -z "$ac_c_werror_flag"
26552                          || test ! -s conftest.err'
26553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26554   (eval $ac_try) 2>&5
26555   ac_status=$?
26556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557   (exit $ac_status); }; } &&
26558          { ac_try='test -s conftest.$ac_objext'
26559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560   (eval $ac_try) 2>&5
26561   ac_status=$?
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); }; }; then
26564   ac_header_compiler=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569 ac_header_compiler=no
26570 fi
26571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26573 echo "${ECHO_T}$ac_header_compiler" >&6
26574
26575 # Is the header present?
26576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26578 cat >conftest.$ac_ext <<_ACEOF
26579 /* confdefs.h.  */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h.  */
26584 #include <$ac_header>
26585 _ACEOF
26586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26587   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26588   ac_status=$?
26589   grep -v '^ *+' conftest.er1 >conftest.err
26590   rm -f conftest.er1
26591   cat conftest.err >&5
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); } >/dev/null; then
26594   if test -s conftest.err; then
26595     ac_cpp_err=$ac_c_preproc_warn_flag
26596     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26597   else
26598     ac_cpp_err=
26599   fi
26600 else
26601   ac_cpp_err=yes
26602 fi
26603 if test -z "$ac_cpp_err"; then
26604   ac_header_preproc=yes
26605 else
26606   echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26608
26609   ac_header_preproc=no
26610 fi
26611 rm -f conftest.err conftest.$ac_ext
26612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26613 echo "${ECHO_T}$ac_header_preproc" >&6
26614
26615 # So?  What about this header?
26616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26617   yes:no: )
26618     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26619 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26621 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26622     ac_header_preproc=yes
26623     ;;
26624   no:yes:* )
26625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26627     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26628 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26629     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26630 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26631     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26632 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26635     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26636 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26637     (
26638       cat <<\_ASBOX
26639 ## ------------------------------------------ ##
26640 ## Report this to the AC_PACKAGE_NAME lists.  ##
26641 ## ------------------------------------------ ##
26642 _ASBOX
26643     ) |
26644       sed "s/^/$as_me: WARNING:     /" >&2
26645     ;;
26646 esac
26647 echo "$as_me:$LINENO: checking for $ac_header" >&5
26648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26650   echo $ECHO_N "(cached) $ECHO_C" >&6
26651 else
26652   eval "$as_ac_Header=\$ac_header_preproc"
26653 fi
26654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26656
26657 fi
26658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26659   cat >>confdefs.h <<_ACEOF
26660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26661 _ACEOF
26662
26663 fi
26664
26665 done
26666
26667
26668 for ac_header in lwp/lwp.h
26669 do
26670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26672   echo "$as_me:$LINENO: checking for $ac_header" >&5
26673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26675   echo $ECHO_N "(cached) $ECHO_C" >&6
26676 fi
26677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26679 else
26680   # Is the header compilable?
26681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26683 cat >conftest.$ac_ext <<_ACEOF
26684 /* confdefs.h.  */
26685 _ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h.  */
26689 $ac_includes_default
26690 #include <$ac_header>
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694   (eval $ac_compile) 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } &&
26701          { ac_try='test -z "$ac_c_werror_flag"
26702                          || test ! -s conftest.err'
26703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704   (eval $ac_try) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); }; } &&
26708          { ac_try='test -s conftest.$ac_objext'
26709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710   (eval $ac_try) 2>&5
26711   ac_status=$?
26712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); }; }; then
26714   ac_header_compiler=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ac_header_compiler=no
26720 fi
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26723 echo "${ECHO_T}$ac_header_compiler" >&6
26724
26725 # Is the header present?
26726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26728 cat >conftest.$ac_ext <<_ACEOF
26729 /* confdefs.h.  */
26730 _ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h.  */
26734 #include <$ac_header>
26735 _ACEOF
26736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } >/dev/null; then
26744   if test -s conftest.err; then
26745     ac_cpp_err=$ac_c_preproc_warn_flag
26746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26747   else
26748     ac_cpp_err=
26749   fi
26750 else
26751   ac_cpp_err=yes
26752 fi
26753 if test -z "$ac_cpp_err"; then
26754   ac_header_preproc=yes
26755 else
26756   echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26758
26759   ac_header_preproc=no
26760 fi
26761 rm -f conftest.err conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26763 echo "${ECHO_T}$ac_header_preproc" >&6
26764
26765 # So?  What about this header?
26766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26767   yes:no: )
26768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26772     ac_header_preproc=yes
26773     ;;
26774   no:yes:* )
26775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26787     (
26788       cat <<\_ASBOX
26789 ## ------------------------------------------ ##
26790 ## Report this to the AC_PACKAGE_NAME lists.  ##
26791 ## ------------------------------------------ ##
26792 _ASBOX
26793     ) |
26794       sed "s/^/$as_me: WARNING:     /" >&2
26795     ;;
26796 esac
26797 echo "$as_me:$LINENO: checking for $ac_header" >&5
26798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26800   echo $ECHO_N "(cached) $ECHO_C" >&6
26801 else
26802   eval "$as_ac_Header=\$ac_header_preproc"
26803 fi
26804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26806
26807 fi
26808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26809   cat >>confdefs.h <<_ACEOF
26810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26811 _ACEOF
26812
26813 fi
26814
26815 done
26816
26817
26818
26819 for ac_header in thread.h synch.h
26820 do
26821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26823   echo "$as_me:$LINENO: checking for $ac_header" >&5
26824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26826   echo $ECHO_N "(cached) $ECHO_C" >&6
26827 fi
26828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26830 else
26831   # Is the header compilable?
26832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26834 cat >conftest.$ac_ext <<_ACEOF
26835 /* confdefs.h.  */
26836 _ACEOF
26837 cat confdefs.h >>conftest.$ac_ext
26838 cat >>conftest.$ac_ext <<_ACEOF
26839 /* end confdefs.h.  */
26840 $ac_includes_default
26841 #include <$ac_header>
26842 _ACEOF
26843 rm -f conftest.$ac_objext
26844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26845   (eval $ac_compile) 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } &&
26852          { ac_try='test -z "$ac_c_werror_flag"
26853                          || test ! -s conftest.err'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; } &&
26859          { ac_try='test -s conftest.$ac_objext'
26860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861   (eval $ac_try) 2>&5
26862   ac_status=$?
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); }; }; then
26865   ac_header_compiler=yes
26866 else
26867   echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870 ac_header_compiler=no
26871 fi
26872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26874 echo "${ECHO_T}$ac_header_compiler" >&6
26875
26876 # Is the header present?
26877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26879 cat >conftest.$ac_ext <<_ACEOF
26880 /* confdefs.h.  */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h.  */
26885 #include <$ac_header>
26886 _ACEOF
26887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26889   ac_status=$?
26890   grep -v '^ *+' conftest.er1 >conftest.err
26891   rm -f conftest.er1
26892   cat conftest.err >&5
26893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894   (exit $ac_status); } >/dev/null; then
26895   if test -s conftest.err; then
26896     ac_cpp_err=$ac_c_preproc_warn_flag
26897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26898   else
26899     ac_cpp_err=
26900   fi
26901 else
26902   ac_cpp_err=yes
26903 fi
26904 if test -z "$ac_cpp_err"; then
26905   ac_header_preproc=yes
26906 else
26907   echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26909
26910   ac_header_preproc=no
26911 fi
26912 rm -f conftest.err conftest.$ac_ext
26913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26914 echo "${ECHO_T}$ac_header_preproc" >&6
26915
26916 # So?  What about this header?
26917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26918   yes:no: )
26919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26923     ac_header_preproc=yes
26924     ;;
26925   no:yes:* )
26926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26938     (
26939       cat <<\_ASBOX
26940 ## ------------------------------------------ ##
26941 ## Report this to the AC_PACKAGE_NAME lists.  ##
26942 ## ------------------------------------------ ##
26943 _ASBOX
26944     ) |
26945       sed "s/^/$as_me: WARNING:     /" >&2
26946     ;;
26947 esac
26948 echo "$as_me:$LINENO: checking for $ac_header" >&5
26949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26951   echo $ECHO_N "(cached) $ECHO_C" >&6
26952 else
26953   eval "$as_ac_Header=\$ac_header_preproc"
26954 fi
26955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26957
26958 fi
26959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26960   cat >>confdefs.h <<_ACEOF
26961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26962 _ACEOF
26963
26964 fi
26965
26966 done
26967
26968 fi
26969
26970 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26971                         cat >>confdefs.h <<\_ACEOF
26972 #define REENTRANT 1
26973 _ACEOF
26974
26975         cat >>confdefs.h <<\_ACEOF
26976 #define _REENTRANT 1
26977 _ACEOF
26978
26979         cat >>confdefs.h <<\_ACEOF
26980 #define THREAD_SAFE 1
26981 _ACEOF
26982
26983         cat >>confdefs.h <<\_ACEOF
26984 #define _THREAD_SAFE 1
26985 _ACEOF
26986
26987         cat >>confdefs.h <<\_ACEOF
26988 #define THREADSAFE 1
26989 _ACEOF
26990
26991         cat >>confdefs.h <<\_ACEOF
26992 #define _THREADSAFE 1
26993 _ACEOF
26994
26995         cat >>confdefs.h <<\_ACEOF
26996 #define _SGI_MP_SOURCE 1
26997 _ACEOF
26998
26999
27000                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27001 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27002 if test "${ol_cv_errno_thread_specific+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005
27006                 cat >conftest.$ac_ext <<_ACEOF
27007 /* confdefs.h.  */
27008 _ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h.  */
27012 #include <errno.h>
27013 int
27014 main ()
27015 {
27016 errno = 0;
27017   ;
27018   return 0;
27019 }
27020 _ACEOF
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27023   (eval $ac_link) 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } &&
27030          { ac_try='test -z "$ac_c_werror_flag"
27031                          || test ! -s conftest.err'
27032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033   (eval $ac_try) 2>&5
27034   ac_status=$?
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); }; } &&
27037          { ac_try='test -s conftest$ac_exeext'
27038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039   (eval $ac_try) 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; }; then
27043   ol_cv_errno_thread_specific=yes
27044 else
27045   echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27047
27048 ol_cv_errno_thread_specific=no
27049 fi
27050 rm -f conftest.err conftest.$ac_objext \
27051       conftest$ac_exeext conftest.$ac_ext
27052
27053 fi
27054 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27055 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27056
27057                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27058 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27059 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062
27063                 cat >conftest.$ac_ext <<_ACEOF
27064 /* confdefs.h.  */
27065 _ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h.  */
27069 #include <netdb.h>
27070 int
27071 main ()
27072 {
27073 h_errno = 0;
27074   ;
27075   return 0;
27076 }
27077 _ACEOF
27078 rm -f conftest.$ac_objext conftest$ac_exeext
27079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27080   (eval $ac_link) 2>conftest.er1
27081   ac_status=$?
27082   grep -v '^ *+' conftest.er1 >conftest.err
27083   rm -f conftest.er1
27084   cat conftest.err >&5
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); } &&
27087          { ac_try='test -z "$ac_c_werror_flag"
27088                          || test ! -s conftest.err'
27089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090   (eval $ac_try) 2>&5
27091   ac_status=$?
27092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093   (exit $ac_status); }; } &&
27094          { ac_try='test -s conftest$ac_exeext'
27095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096   (eval $ac_try) 2>&5
27097   ac_status=$?
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); }; }; then
27100   ol_cv_h_errno_thread_specific=yes
27101 else
27102   echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27104
27105 ol_cv_h_errno_thread_specific=no
27106 fi
27107 rm -f conftest.err conftest.$ac_objext \
27108       conftest$ac_exeext conftest.$ac_ext
27109
27110 fi
27111 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27112 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27113
27114         if test $ol_cv_errno_thread_specific != yes ||
27115            test $ol_cv_h_errno_thread_specific != yes ; then
27116                 LIBS="$LTHREAD_LIBS $LIBS"
27117                 LTHREAD_LIBS=""
27118         fi
27119
27120 fi
27121
27122 if test $ol_link_threads = no ; then
27123         if test $ol_with_threads = yes ; then
27124                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27125 echo "$as_me: error: no suitable thread support" >&2;}
27126    { (exit 1); exit 1; }; }
27127         fi
27128
27129         if test $ol_with_threads = auto ; then
27130                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27131 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27132                 ol_with_threads=no
27133         fi
27134
27135
27136 cat >>confdefs.h <<\_ACEOF
27137 #define NO_THREADS 1
27138 _ACEOF
27139
27140         LTHREAD_LIBS=""
27141         BUILD_THREAD=no
27142 else
27143         BUILD_THREAD=yes
27144 fi
27145
27146 if test $ol_link_threads != no ; then
27147
27148 cat >>confdefs.h <<\_ACEOF
27149 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27150 _ACEOF
27151
27152 fi
27153
27154
27155
27156
27157 for ac_func in \
27158         ctime_r                 \
27159         gethostbyname_r gethostbyaddr_r \
27160
27161 do
27162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27163 echo "$as_me:$LINENO: checking for $ac_func" >&5
27164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27165 if eval "test \"\${$as_ac_var+set}\" = set"; then
27166   echo $ECHO_N "(cached) $ECHO_C" >&6
27167 else
27168   cat >conftest.$ac_ext <<_ACEOF
27169 /* confdefs.h.  */
27170 _ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h.  */
27174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27176 #define $ac_func innocuous_$ac_func
27177
27178 /* System header to define __stub macros and hopefully few prototypes,
27179     which can conflict with char $ac_func (); below.
27180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27181     <limits.h> exists even on freestanding compilers.  */
27182
27183 #ifdef __STDC__
27184 # include <limits.h>
27185 #else
27186 # include <assert.h>
27187 #endif
27188
27189 #undef $ac_func
27190
27191 /* Override any gcc2 internal prototype to avoid an error.  */
27192 #ifdef __cplusplus
27193 extern "C"
27194 {
27195 #endif
27196 /* We use char because int might match the return type of a gcc2
27197    builtin and then its argument prototype would still apply.  */
27198 char $ac_func ();
27199 /* The GNU C library defines this for functions which it implements
27200     to always fail with ENOSYS.  Some functions are actually named
27201     something starting with __ and the normal name is an alias.  */
27202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27203 choke me
27204 #else
27205 char (*f) () = $ac_func;
27206 #endif
27207 #ifdef __cplusplus
27208 }
27209 #endif
27210
27211 int
27212 main ()
27213 {
27214 return f != $ac_func;
27215   ;
27216   return 0;
27217 }
27218 _ACEOF
27219 rm -f conftest.$ac_objext conftest$ac_exeext
27220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27221   (eval $ac_link) 2>conftest.er1
27222   ac_status=$?
27223   grep -v '^ *+' conftest.er1 >conftest.err
27224   rm -f conftest.er1
27225   cat conftest.err >&5
27226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227   (exit $ac_status); } &&
27228          { ac_try='test -z "$ac_c_werror_flag"
27229                          || test ! -s conftest.err'
27230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27231   (eval $ac_try) 2>&5
27232   ac_status=$?
27233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); }; } &&
27235          { ac_try='test -s conftest$ac_exeext'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; }; then
27241   eval "$as_ac_var=yes"
27242 else
27243   echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246 eval "$as_ac_var=no"
27247 fi
27248 rm -f conftest.err conftest.$ac_objext \
27249       conftest$ac_exeext conftest.$ac_ext
27250 fi
27251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27253 if test `eval echo '${'$as_ac_var'}'` = yes; then
27254   cat >>confdefs.h <<_ACEOF
27255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27256 _ACEOF
27257
27258 fi
27259 done
27260
27261
27262 if test "$ac_cv_func_ctime_r" = no ; then
27263         ol_cv_func_ctime_r_nargs=0
27264 else
27265         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27266 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27267 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27268   echo $ECHO_N "(cached) $ECHO_C" >&6
27269 else
27270   cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h.  */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h.  */
27276 #include <time.h>
27277 int
27278 main ()
27279 {
27280 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287   (eval $ac_compile) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag"
27295                          || test ! -s conftest.err'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; } &&
27301          { ac_try='test -s conftest.$ac_objext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307   ol_cv_func_ctime_r_nargs3=yes
27308 else
27309   echo "$as_me: failed program was:" >&5
27310 sed 's/^/| /' conftest.$ac_ext >&5
27311
27312 ol_cv_func_ctime_r_nargs3=no
27313 fi
27314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27315
27316         cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h.  */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h.  */
27322 #include <time.h>
27323 int
27324 main ()
27325 {
27326 time_t ti; char *buffer; ctime_r(&ti,buffer);
27327   ;
27328   return 0;
27329 }
27330 _ACEOF
27331 rm -f conftest.$ac_objext
27332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27333   (eval $ac_compile) 2>conftest.er1
27334   ac_status=$?
27335   grep -v '^ *+' conftest.er1 >conftest.err
27336   rm -f conftest.er1
27337   cat conftest.err >&5
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); } &&
27340          { ac_try='test -z "$ac_c_werror_flag"
27341                          || test ! -s conftest.err'
27342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343   (eval $ac_try) 2>&5
27344   ac_status=$?
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); }; } &&
27347          { ac_try='test -s conftest.$ac_objext'
27348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349   (eval $ac_try) 2>&5
27350   ac_status=$?
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); }; }; then
27353   ol_cv_func_ctime_r_nargs2=yes
27354 else
27355   echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27357
27358 ol_cv_func_ctime_r_nargs2=no
27359 fi
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27361
27362         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27363            test $ol_cv_func_ctime_r_nargs2 = no ; then
27364
27365                 ol_cv_func_ctime_r_nargs=3
27366
27367         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27368              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27369
27370                 ol_cv_func_ctime_r_nargs=2
27371
27372         else
27373                 ol_cv_func_ctime_r_nargs=0
27374         fi
27375
27376 fi
27377 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27378 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27379
27380   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27381
27382 cat >>confdefs.h <<_ACEOF
27383 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27384 _ACEOF
27385
27386   fi
27387
27388 fi
27389
27390 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27391         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27392 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27393 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27394   echo $ECHO_N "(cached) $ECHO_C" >&6
27395 else
27396   cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402 #include <sys/types.h>
27403 #include <sys/socket.h>
27404 #include <netinet/in.h>
27405 #include <netdb.h>
27406 #define BUFSIZE (sizeof(struct hostent)+10)
27407 int
27408 main ()
27409 {
27410 struct hostent hent; char buffer[BUFSIZE];
27411                 int bufsize=BUFSIZE;int h_errno;
27412                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27413                         buffer, bufsize, &h_errno);
27414   ;
27415   return 0;
27416 }
27417 _ACEOF
27418 rm -f conftest.$ac_objext
27419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27420   (eval $ac_compile) 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } &&
27427          { ac_try='test -z "$ac_c_werror_flag"
27428                          || test ! -s conftest.err'
27429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430   (eval $ac_try) 2>&5
27431   ac_status=$?
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); }; } &&
27434          { ac_try='test -s conftest.$ac_objext'
27435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436   (eval $ac_try) 2>&5
27437   ac_status=$?
27438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); }; }; then
27440   ol_cv_func_gethostbyname_r_nargs5=yes
27441 else
27442   echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27444
27445 ol_cv_func_gethostbyname_r_nargs5=no
27446 fi
27447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27448
27449         cat >conftest.$ac_ext <<_ACEOF
27450 /* confdefs.h.  */
27451 _ACEOF
27452 cat confdefs.h >>conftest.$ac_ext
27453 cat >>conftest.$ac_ext <<_ACEOF
27454 /* end confdefs.h.  */
27455 #include <sys/types.h>
27456 #include <sys/socket.h>
27457 #include <netinet/in.h>
27458 #include <netdb.h>
27459 #define BUFSIZE (sizeof(struct hostent)+10)
27460 int
27461 main ()
27462 {
27463 struct hostent hent;struct hostent *rhent;
27464                 char buffer[BUFSIZE];
27465                 int bufsize=BUFSIZE;int h_errno;
27466                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27467                         &rhent, &h_errno);
27468   ;
27469   return 0;
27470 }
27471 _ACEOF
27472 rm -f conftest.$ac_objext
27473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27474   (eval $ac_compile) 2>conftest.er1
27475   ac_status=$?
27476   grep -v '^ *+' conftest.er1 >conftest.err
27477   rm -f conftest.er1
27478   cat conftest.err >&5
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); } &&
27481          { ac_try='test -z "$ac_c_werror_flag"
27482                          || test ! -s conftest.err'
27483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484   (eval $ac_try) 2>&5
27485   ac_status=$?
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); }; } &&
27488          { ac_try='test -s conftest.$ac_objext'
27489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490   (eval $ac_try) 2>&5
27491   ac_status=$?
27492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493   (exit $ac_status); }; }; then
27494   ol_cv_func_gethostbyname_r_nargs6=yes
27495 else
27496   echo "$as_me: failed program was:" >&5
27497 sed 's/^/| /' conftest.$ac_ext >&5
27498
27499 ol_cv_func_gethostbyname_r_nargs6=no
27500 fi
27501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27502
27503         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27504            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27505
27506                 ol_cv_func_gethostbyname_r_nargs=5
27507
27508         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27509              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27510
27511                 ol_cv_func_gethostbyname_r_nargs=6
27512
27513         else
27514                 ol_cv_func_gethostbyname_r_nargs=0
27515         fi
27516
27517 fi
27518 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27519 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27520   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27521
27522 cat >>confdefs.h <<_ACEOF
27523 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27524 _ACEOF
27525
27526   fi
27527
27528 else
27529         ol_cv_func_gethostbyname_r_nargs=0
27530 fi
27531
27532 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27533         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27534 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27535 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544 #include <sys/types.h>
27545 #include <sys/socket.h>
27546 #include <netinet/in.h>
27547 #include <netdb.h>
27548 #define BUFSIZE (sizeof(struct hostent)+10)
27549 int
27550 main ()
27551 {
27552 struct hostent hent; char buffer[BUFSIZE];
27553             struct in_addr add;
27554             size_t alen=sizeof(struct in_addr);
27555             int bufsize=BUFSIZE;int h_errno;
27556                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27557                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27558   ;
27559   return 0;
27560 }
27561 _ACEOF
27562 rm -f conftest.$ac_objext
27563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27564   (eval $ac_compile) 2>conftest.er1
27565   ac_status=$?
27566   grep -v '^ *+' conftest.er1 >conftest.err
27567   rm -f conftest.er1
27568   cat conftest.err >&5
27569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570   (exit $ac_status); } &&
27571          { ac_try='test -z "$ac_c_werror_flag"
27572                          || test ! -s conftest.err'
27573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27574   (eval $ac_try) 2>&5
27575   ac_status=$?
27576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27577   (exit $ac_status); }; } &&
27578          { ac_try='test -s conftest.$ac_objext'
27579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580   (eval $ac_try) 2>&5
27581   ac_status=$?
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); }; }; then
27584   ol_cv_func_gethostbyaddr_r_nargs7=yes
27585 else
27586   echo "$as_me: failed program was:" >&5
27587 sed 's/^/| /' conftest.$ac_ext >&5
27588
27589 ol_cv_func_gethostbyaddr_r_nargs7=no
27590 fi
27591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27592
27593         cat >conftest.$ac_ext <<_ACEOF
27594 /* confdefs.h.  */
27595 _ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h.  */
27599 #include <sys/types.h>
27600 #include <sys/socket.h>
27601 #include <netinet/in.h>
27602 #include <netdb.h>
27603 #define BUFSIZE (sizeof(struct hostent)+10)
27604 int
27605 main ()
27606 {
27607 struct hostent hent;
27608                 struct hostent *rhent; char buffer[BUFSIZE];
27609                 struct in_addr add;
27610                 size_t alen=sizeof(struct in_addr);
27611                 int bufsize=BUFSIZE;int h_errno;
27612                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27613                         alen, AF_INET, &hent, buffer, bufsize,
27614                         &rhent, &h_errno);
27615   ;
27616   return 0;
27617 }
27618 _ACEOF
27619 rm -f conftest.$ac_objext
27620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27621   (eval $ac_compile) 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } &&
27628          { ac_try='test -z "$ac_c_werror_flag"
27629                          || test ! -s conftest.err'
27630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631   (eval $ac_try) 2>&5
27632   ac_status=$?
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); }; } &&
27635          { ac_try='test -s conftest.$ac_objext'
27636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637   (eval $ac_try) 2>&5
27638   ac_status=$?
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); }; }; then
27641   ol_cv_func_gethostbyaddr_r_nargs8=yes
27642 else
27643   echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27645
27646 ol_cv_func_gethostbyaddr_r_nargs8=no
27647 fi
27648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27649
27650         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27651            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27652
27653                 ol_cv_func_gethostbyaddr_r_nargs=7
27654
27655         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27656              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27657
27658                 ol_cv_func_gethostbyaddr_r_nargs=8
27659
27660         else
27661                 ol_cv_func_gethostbyaddr_r_nargs=0
27662         fi
27663
27664 fi
27665 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27666 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27667   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27668
27669 cat >>confdefs.h <<_ACEOF
27670 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27671 _ACEOF
27672
27673   fi
27674
27675 else
27676         ol_cv_func_gethostbyaddr_r_nargs=0
27677 fi
27678
27679 ol_link_ldbm=no
27680
27681 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27682
27683         if test $ol_enable_ldbm_api = bcompat; then \
27684
27685
27686 for ac_header in db_185.h db.h
27687 do
27688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27690   echo "$as_me:$LINENO: checking for $ac_header" >&5
27691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693   echo $ECHO_N "(cached) $ECHO_C" >&6
27694 fi
27695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27697 else
27698   # Is the header compilable?
27699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27701 cat >conftest.$ac_ext <<_ACEOF
27702 /* confdefs.h.  */
27703 _ACEOF
27704 cat confdefs.h >>conftest.$ac_ext
27705 cat >>conftest.$ac_ext <<_ACEOF
27706 /* end confdefs.h.  */
27707 $ac_includes_default
27708 #include <$ac_header>
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712   (eval $ac_compile) 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } &&
27719          { ac_try='test -z "$ac_c_werror_flag"
27720                          || test ! -s conftest.err'
27721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722   (eval $ac_try) 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; } &&
27726          { ac_try='test -s conftest.$ac_objext'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; }; then
27732   ac_header_compiler=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 ac_header_compiler=no
27738 fi
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27741 echo "${ECHO_T}$ac_header_compiler" >&6
27742
27743 # Is the header present?
27744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27746 cat >conftest.$ac_ext <<_ACEOF
27747 /* confdefs.h.  */
27748 _ACEOF
27749 cat confdefs.h >>conftest.$ac_ext
27750 cat >>conftest.$ac_ext <<_ACEOF
27751 /* end confdefs.h.  */
27752 #include <$ac_header>
27753 _ACEOF
27754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } >/dev/null; then
27762   if test -s conftest.err; then
27763     ac_cpp_err=$ac_c_preproc_warn_flag
27764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27765   else
27766     ac_cpp_err=
27767   fi
27768 else
27769   ac_cpp_err=yes
27770 fi
27771 if test -z "$ac_cpp_err"; then
27772   ac_header_preproc=yes
27773 else
27774   echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777   ac_header_preproc=no
27778 fi
27779 rm -f conftest.err conftest.$ac_ext
27780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27781 echo "${ECHO_T}$ac_header_preproc" >&6
27782
27783 # So?  What about this header?
27784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27785   yes:no: )
27786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27790     ac_header_preproc=yes
27791     ;;
27792   no:yes:* )
27793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27805     (
27806       cat <<\_ASBOX
27807 ## ------------------------------------------ ##
27808 ## Report this to the AC_PACKAGE_NAME lists.  ##
27809 ## ------------------------------------------ ##
27810 _ASBOX
27811     ) |
27812       sed "s/^/$as_me: WARNING:     /" >&2
27813     ;;
27814 esac
27815 echo "$as_me:$LINENO: checking for $ac_header" >&5
27816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820   eval "$as_ac_Header=\$ac_header_preproc"
27821 fi
27822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27824
27825 fi
27826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27827   cat >>confdefs.h <<_ACEOF
27828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27829 _ACEOF
27830
27831 fi
27832
27833 done
27834
27835 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27836         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27837 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27838 if test "${ol_cv_header_db1+set}" = set; then
27839   echo $ECHO_N "(cached) $ECHO_C" >&6
27840 else
27841
27842                 cat >conftest.$ac_ext <<_ACEOF
27843 /* confdefs.h.  */
27844 _ACEOF
27845 cat confdefs.h >>conftest.$ac_ext
27846 cat >>conftest.$ac_ext <<_ACEOF
27847 /* end confdefs.h.  */
27848
27849 #if HAVE_DB_185_H
27850 #       include <db_185.h>
27851 #else
27852 #       include <db.h>
27853 #endif
27854
27855  /* this check could be improved */
27856 #ifndef DB_VERSION_MAJOR
27857 #       define DB_VERSION_MAJOR 1
27858 #endif
27859
27860 #if DB_VERSION_MAJOR == 1
27861         __db_version_1
27862 #endif
27863
27864 _ACEOF
27865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27866   $EGREP "__db_version_1" >/dev/null 2>&1; then
27867   ol_cv_header_db1=yes
27868 else
27869   ol_cv_header_db1=no
27870 fi
27871 rm -f conftest*
27872
27873 fi
27874 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27875 echo "${ECHO_T}$ol_cv_header_db1" >&6
27876
27877         if test $ol_cv_header_db1 = yes ; then
27878                 ol_cv_lib_db=no
27879
27880 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27881 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27882 if test "${ol_cv_bdb_major+set}" = set; then
27883   echo $ECHO_N "(cached) $ECHO_C" >&6
27884 else
27885
27886         ol_cv_bdb_major=0
27887         if test $ol_cv_bdb_major = 0 ; then
27888                 cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894
27895 #include <db.h>
27896 #ifndef DB_VERSION_MAJOR
27897 #       define DB_VERSION_MAJOR 1
27898 #endif
27899 #if DB_VERSION_MAJOR == 4
27900 __db_version
27901 #endif
27902
27903 _ACEOF
27904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27905   $EGREP "__db_version" >/dev/null 2>&1; then
27906   ol_cv_bdb_major=4
27907 else
27908   :
27909 fi
27910 rm -f conftest*
27911
27912         fi
27913         if test $ol_cv_bdb_major = 0 ; then
27914                 cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h.  */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h.  */
27920
27921 #include <db.h>
27922 #ifndef DB_VERSION_MAJOR
27923 #       define DB_VERSION_MAJOR 1
27924 #endif
27925 #if DB_VERSION_MAJOR == 3
27926 __db_version
27927 #endif
27928
27929 _ACEOF
27930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27931   $EGREP "__db_version" >/dev/null 2>&1; then
27932   ol_cv_bdb_major=3
27933 else
27934   :
27935 fi
27936 rm -f conftest*
27937
27938         fi
27939         if test $ol_cv_bdb_major = 0 ; then
27940                 cat >conftest.$ac_ext <<_ACEOF
27941 /* confdefs.h.  */
27942 _ACEOF
27943 cat confdefs.h >>conftest.$ac_ext
27944 cat >>conftest.$ac_ext <<_ACEOF
27945 /* end confdefs.h.  */
27946
27947 #include <db.h>
27948 #ifndef DB_VERSION_MAJOR
27949 #       define DB_VERSION_MAJOR 1
27950 #endif
27951 #if DB_VERSION_MAJOR == 2
27952 __db_version
27953 #endif
27954
27955 _ACEOF
27956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27957   $EGREP "__db_version" >/dev/null 2>&1; then
27958   ol_cv_bdb_major=2
27959 else
27960   :
27961 fi
27962 rm -f conftest*
27963
27964         fi
27965         if test $ol_cv_bdb_major = 0 ; then
27966                 cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972
27973 #include <db.h>
27974 #ifndef DB_VERSION_MAJOR
27975 #       define DB_VERSION_MAJOR 1
27976 #endif
27977 #if DB_VERSION_MAJOR == 1
27978 __db_version
27979 #endif
27980
27981 _ACEOF
27982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27983   $EGREP "__db_version" >/dev/null 2>&1; then
27984   ol_cv_bdb_major=1
27985 else
27986   :
27987 fi
27988 rm -f conftest*
27989
27990         fi
27991
27992         if test $ol_cv_bdb_major = 0 ; then
27993                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27994 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27995    { (exit 1); exit 1; }; }
27996         fi
27997
27998 fi
27999 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28000 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28001
28002 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28003 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28004 if test "${ol_cv_bdb_minor+set}" = set; then
28005   echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007
28008         ol_cv_bdb_minor=0
28009         if test $ol_cv_bdb_minor = 0 ; then
28010                 cat >conftest.$ac_ext <<_ACEOF
28011 /* confdefs.h.  */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h.  */
28016
28017 #include <db.h>
28018 #ifndef DB_VERSION_MINOR
28019 #       define DB_VERSION_MINOR 0
28020 #endif
28021 #if DB_VERSION_MINOR == 9
28022 __db_version
28023 #endif
28024
28025 _ACEOF
28026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28027   $EGREP "__db_version" >/dev/null 2>&1; then
28028   ol_cv_bdb_minor=9
28029 else
28030   :
28031 fi
28032 rm -f conftest*
28033
28034         fi
28035         if test $ol_cv_bdb_minor = 0 ; then
28036                 cat >conftest.$ac_ext <<_ACEOF
28037 /* confdefs.h.  */
28038 _ACEOF
28039 cat confdefs.h >>conftest.$ac_ext
28040 cat >>conftest.$ac_ext <<_ACEOF
28041 /* end confdefs.h.  */
28042
28043 #include <db.h>
28044 #ifndef DB_VERSION_MINOR
28045 #       define DB_VERSION_MINOR 0
28046 #endif
28047 #if DB_VERSION_MINOR == 8
28048 __db_version
28049 #endif
28050
28051 _ACEOF
28052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28053   $EGREP "__db_version" >/dev/null 2>&1; then
28054   ol_cv_bdb_minor=8
28055 else
28056   :
28057 fi
28058 rm -f conftest*
28059
28060         fi
28061         if test $ol_cv_bdb_minor = 0 ; then
28062                 cat >conftest.$ac_ext <<_ACEOF
28063 /* confdefs.h.  */
28064 _ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h.  */
28068
28069 #include <db.h>
28070 #ifndef DB_VERSION_MINOR
28071 #       define DB_VERSION_MINOR 0
28072 #endif
28073 #if DB_VERSION_MINOR == 7
28074 __db_version
28075 #endif
28076
28077 _ACEOF
28078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28079   $EGREP "__db_version" >/dev/null 2>&1; then
28080   ol_cv_bdb_minor=7
28081 else
28082   :
28083 fi
28084 rm -f conftest*
28085
28086         fi
28087         if test $ol_cv_bdb_minor = 0 ; then
28088                 cat >conftest.$ac_ext <<_ACEOF
28089 /* confdefs.h.  */
28090 _ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h.  */
28094
28095 #include <db.h>
28096 #ifndef DB_VERSION_MINOR
28097 #       define DB_VERSION_MINOR 0
28098 #endif
28099 #if DB_VERSION_MINOR == 6
28100 __db_version
28101 #endif
28102
28103 _ACEOF
28104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28105   $EGREP "__db_version" >/dev/null 2>&1; then
28106   ol_cv_bdb_minor=6
28107 else
28108   :
28109 fi
28110 rm -f conftest*
28111
28112         fi
28113         if test $ol_cv_bdb_minor = 0 ; then
28114                 cat >conftest.$ac_ext <<_ACEOF
28115 /* confdefs.h.  */
28116 _ACEOF
28117 cat confdefs.h >>conftest.$ac_ext
28118 cat >>conftest.$ac_ext <<_ACEOF
28119 /* end confdefs.h.  */
28120
28121 #include <db.h>
28122 #ifndef DB_VERSION_MINOR
28123 #       define DB_VERSION_MINOR 0
28124 #endif
28125 #if DB_VERSION_MINOR == 5
28126 __db_version
28127 #endif
28128
28129 _ACEOF
28130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28131   $EGREP "__db_version" >/dev/null 2>&1; then
28132   ol_cv_bdb_minor=5
28133 else
28134   :
28135 fi
28136 rm -f conftest*
28137
28138         fi
28139         if test $ol_cv_bdb_minor = 0 ; then
28140                 cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146
28147 #include <db.h>
28148 #ifndef DB_VERSION_MINOR
28149 #       define DB_VERSION_MINOR 0
28150 #endif
28151 #if DB_VERSION_MINOR == 4
28152 __db_version
28153 #endif
28154
28155 _ACEOF
28156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28157   $EGREP "__db_version" >/dev/null 2>&1; then
28158   ol_cv_bdb_minor=4
28159 else
28160   :
28161 fi
28162 rm -f conftest*
28163
28164         fi
28165         if test $ol_cv_bdb_minor = 0 ; then
28166                 cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172
28173 #include <db.h>
28174 #ifndef DB_VERSION_MINOR
28175 #       define DB_VERSION_MINOR 0
28176 #endif
28177 #if DB_VERSION_MINOR == 3
28178 __db_version
28179 #endif
28180
28181 _ACEOF
28182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28183   $EGREP "__db_version" >/dev/null 2>&1; then
28184   ol_cv_bdb_minor=3
28185 else
28186   :
28187 fi
28188 rm -f conftest*
28189
28190         fi
28191         if test $ol_cv_bdb_minor = 0 ; then
28192                 cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198
28199 #include <db.h>
28200 #ifndef DB_VERSION_MINOR
28201 #       define DB_VERSION_MINOR 0
28202 #endif
28203 #if DB_VERSION_MINOR == 2
28204 __db_version
28205 #endif
28206
28207 _ACEOF
28208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28209   $EGREP "__db_version" >/dev/null 2>&1; then
28210   ol_cv_bdb_minor=2
28211 else
28212   :
28213 fi
28214 rm -f conftest*
28215
28216         fi
28217         if test $ol_cv_bdb_minor = 0 ; then
28218                 cat >conftest.$ac_ext <<_ACEOF
28219 /* confdefs.h.  */
28220 _ACEOF
28221 cat confdefs.h >>conftest.$ac_ext
28222 cat >>conftest.$ac_ext <<_ACEOF
28223 /* end confdefs.h.  */
28224
28225 #include <db.h>
28226 #ifndef DB_VERSION_MINOR
28227 #       define DB_VERSION_MINOR 0
28228 #endif
28229 #if DB_VERSION_MINOR == 1
28230 __db_version
28231 #endif
28232
28233 _ACEOF
28234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28235   $EGREP "__db_version" >/dev/null 2>&1; then
28236   ol_cv_bdb_minor=1
28237 else
28238   :
28239 fi
28240 rm -f conftest*
28241
28242         fi
28243
28244 fi
28245 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28246 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28247
28248 if test $ol_cv_bdb_major = 4 ; then
28249         if test $ol_cv_bdb_minor = 4 ; then
28250                 if test $ol_cv_lib_db = no ; then
28251         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28252 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28253 if test "${ol_cv_db_db44+set}" = set; then
28254   echo $ECHO_N "(cached) $ECHO_C" >&6
28255 else
28256
28257         ol_DB_LIB=-ldb44
28258         ol_LIBS=$LIBS
28259         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28260
28261         cat >conftest.$ac_ext <<_ACEOF
28262 /* confdefs.h.  */
28263 _ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h.  */
28267
28268 #ifdef HAVE_DB_185_H
28269 # include <db_185.h>
28270 #else
28271 # include <db.h>
28272 #endif
28273
28274 #ifndef DB_VERSION_MAJOR
28275 # define DB_VERSION_MAJOR 1
28276 #endif
28277
28278 #ifndef NULL
28279 #define NULL ((void*)0)
28280 #endif
28281
28282 int
28283 main ()
28284 {
28285
28286 #if DB_VERSION_MAJOR > 1
28287         {
28288                 char *version;
28289                 int major, minor, patch;
28290
28291                 version = db_version( &major, &minor, &patch );
28292
28293                 if( major != DB_VERSION_MAJOR ||
28294                         minor < DB_VERSION_MINOR )
28295                 {
28296                         printf("Berkeley DB version mismatch\n"
28297                                 "\theader: %s\n\tlibrary: %s\n",
28298                                 DB_VERSION_STRING, version);
28299                         return 1;
28300                 }
28301         }
28302 #endif
28303
28304 #if DB_VERSION_MAJOR > 2
28305         db_env_create( NULL, 0 );
28306 #elif DB_VERSION_MAJOR > 1
28307         db_appexit( NULL );
28308 #else
28309         (void) dbopen( NULL, 0, 0, 0, NULL);
28310 #endif
28311
28312   ;
28313   return 0;
28314 }
28315 _ACEOF
28316 rm -f conftest.$ac_objext conftest$ac_exeext
28317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28318   (eval $ac_link) 2>conftest.er1
28319   ac_status=$?
28320   grep -v '^ *+' conftest.er1 >conftest.err
28321   rm -f conftest.er1
28322   cat conftest.err >&5
28323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324   (exit $ac_status); } &&
28325          { ac_try='test -z "$ac_c_werror_flag"
28326                          || test ! -s conftest.err'
28327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328   (eval $ac_try) 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; } &&
28332          { ac_try='test -s conftest$ac_exeext'
28333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334   (eval $ac_try) 2>&5
28335   ac_status=$?
28336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337   (exit $ac_status); }; }; then
28338   ol_cv_db_db44=yes
28339 else
28340   echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ol_cv_db_db44=no
28344 fi
28345 rm -f conftest.err conftest.$ac_objext \
28346       conftest$ac_exeext conftest.$ac_ext
28347
28348         LIBS="$ol_LIBS"
28349
28350 fi
28351 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28352 echo "${ECHO_T}$ol_cv_db_db44" >&6
28353
28354         if test $ol_cv_db_db44 = yes ; then
28355                 ol_cv_lib_db=-ldb44
28356         fi
28357 fi
28358
28359                 if test $ol_cv_lib_db = no ; then
28360         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28361 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28362 if test "${ol_cv_db_db_44+set}" = set; then
28363   echo $ECHO_N "(cached) $ECHO_C" >&6
28364 else
28365
28366         ol_DB_LIB=-ldb-44
28367         ol_LIBS=$LIBS
28368         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28369
28370         cat >conftest.$ac_ext <<_ACEOF
28371 /* confdefs.h.  */
28372 _ACEOF
28373 cat confdefs.h >>conftest.$ac_ext
28374 cat >>conftest.$ac_ext <<_ACEOF
28375 /* end confdefs.h.  */
28376
28377 #ifdef HAVE_DB_185_H
28378 # include <db_185.h>
28379 #else
28380 # include <db.h>
28381 #endif
28382
28383 #ifndef DB_VERSION_MAJOR
28384 # define DB_VERSION_MAJOR 1
28385 #endif
28386
28387 #ifndef NULL
28388 #define NULL ((void*)0)
28389 #endif
28390
28391 int
28392 main ()
28393 {
28394
28395 #if DB_VERSION_MAJOR > 1
28396         {
28397                 char *version;
28398                 int major, minor, patch;
28399
28400                 version = db_version( &major, &minor, &patch );
28401
28402                 if( major != DB_VERSION_MAJOR ||
28403                         minor < DB_VERSION_MINOR )
28404                 {
28405                         printf("Berkeley DB version mismatch\n"
28406                                 "\theader: %s\n\tlibrary: %s\n",
28407                                 DB_VERSION_STRING, version);
28408                         return 1;
28409                 }
28410         }
28411 #endif
28412
28413 #if DB_VERSION_MAJOR > 2
28414         db_env_create( NULL, 0 );
28415 #elif DB_VERSION_MAJOR > 1
28416         db_appexit( NULL );
28417 #else
28418         (void) dbopen( NULL, 0, 0, 0, NULL);
28419 #endif
28420
28421   ;
28422   return 0;
28423 }
28424 _ACEOF
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427   (eval $ac_link) 2>conftest.er1
28428   ac_status=$?
28429   grep -v '^ *+' conftest.er1 >conftest.err
28430   rm -f conftest.er1
28431   cat conftest.err >&5
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); } &&
28434          { ac_try='test -z "$ac_c_werror_flag"
28435                          || test ! -s conftest.err'
28436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28437   (eval $ac_try) 2>&5
28438   ac_status=$?
28439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440   (exit $ac_status); }; } &&
28441          { ac_try='test -s conftest$ac_exeext'
28442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28443   (eval $ac_try) 2>&5
28444   ac_status=$?
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); }; }; then
28447   ol_cv_db_db_44=yes
28448 else
28449   echo "$as_me: failed program was:" >&5
28450 sed 's/^/| /' conftest.$ac_ext >&5
28451
28452 ol_cv_db_db_44=no
28453 fi
28454 rm -f conftest.err conftest.$ac_objext \
28455       conftest$ac_exeext conftest.$ac_ext
28456
28457         LIBS="$ol_LIBS"
28458
28459 fi
28460 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28461 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28462
28463         if test $ol_cv_db_db_44 = yes ; then
28464                 ol_cv_lib_db=-ldb-44
28465         fi
28466 fi
28467
28468                 if test $ol_cv_lib_db = no ; then
28469         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28470 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28471 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474
28475         ol_DB_LIB=-ldb-4.4
28476         ol_LIBS=$LIBS
28477         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28478
28479         cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h.  */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h.  */
28485
28486 #ifdef HAVE_DB_185_H
28487 # include <db_185.h>
28488 #else
28489 # include <db.h>
28490 #endif
28491
28492 #ifndef DB_VERSION_MAJOR
28493 # define DB_VERSION_MAJOR 1
28494 #endif
28495
28496 #ifndef NULL
28497 #define NULL ((void*)0)
28498 #endif
28499
28500 int
28501 main ()
28502 {
28503
28504 #if DB_VERSION_MAJOR > 1
28505         {
28506                 char *version;
28507                 int major, minor, patch;
28508
28509                 version = db_version( &major, &minor, &patch );
28510
28511                 if( major != DB_VERSION_MAJOR ||
28512                         minor < DB_VERSION_MINOR )
28513                 {
28514                         printf("Berkeley DB version mismatch\n"
28515                                 "\theader: %s\n\tlibrary: %s\n",
28516                                 DB_VERSION_STRING, version);
28517                         return 1;
28518                 }
28519         }
28520 #endif
28521
28522 #if DB_VERSION_MAJOR > 2
28523         db_env_create( NULL, 0 );
28524 #elif DB_VERSION_MAJOR > 1
28525         db_appexit( NULL );
28526 #else
28527         (void) dbopen( NULL, 0, 0, 0, NULL);
28528 #endif
28529
28530   ;
28531   return 0;
28532 }
28533 _ACEOF
28534 rm -f conftest.$ac_objext conftest$ac_exeext
28535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28536   (eval $ac_link) 2>conftest.er1
28537   ac_status=$?
28538   grep -v '^ *+' conftest.er1 >conftest.err
28539   rm -f conftest.er1
28540   cat conftest.err >&5
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); } &&
28543          { ac_try='test -z "$ac_c_werror_flag"
28544                          || test ! -s conftest.err'
28545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28546   (eval $ac_try) 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; } &&
28550          { ac_try='test -s conftest$ac_exeext'
28551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552   (eval $ac_try) 2>&5
28553   ac_status=$?
28554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555   (exit $ac_status); }; }; then
28556   ol_cv_db_db_4_dot_4=yes
28557 else
28558   echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28560
28561 ol_cv_db_db_4_dot_4=no
28562 fi
28563 rm -f conftest.err conftest.$ac_objext \
28564       conftest$ac_exeext conftest.$ac_ext
28565
28566         LIBS="$ol_LIBS"
28567
28568 fi
28569 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28570 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28571
28572         if test $ol_cv_db_db_4_dot_4 = yes ; then
28573                 ol_cv_lib_db=-ldb-4.4
28574         fi
28575 fi
28576
28577                 if test $ol_cv_lib_db = no ; then
28578         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28579 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28580 if test "${ol_cv_db_db_4_4+set}" = set; then
28581   echo $ECHO_N "(cached) $ECHO_C" >&6
28582 else
28583
28584         ol_DB_LIB=-ldb-4-4
28585         ol_LIBS=$LIBS
28586         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28587
28588         cat >conftest.$ac_ext <<_ACEOF
28589 /* confdefs.h.  */
28590 _ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h.  */
28594
28595 #ifdef HAVE_DB_185_H
28596 # include <db_185.h>
28597 #else
28598 # include <db.h>
28599 #endif
28600
28601 #ifndef DB_VERSION_MAJOR
28602 # define DB_VERSION_MAJOR 1
28603 #endif
28604
28605 #ifndef NULL
28606 #define NULL ((void*)0)
28607 #endif
28608
28609 int
28610 main ()
28611 {
28612
28613 #if DB_VERSION_MAJOR > 1
28614         {
28615                 char *version;
28616                 int major, minor, patch;
28617
28618                 version = db_version( &major, &minor, &patch );
28619
28620                 if( major != DB_VERSION_MAJOR ||
28621                         minor < DB_VERSION_MINOR )
28622                 {
28623                         printf("Berkeley DB version mismatch\n"
28624                                 "\theader: %s\n\tlibrary: %s\n",
28625                                 DB_VERSION_STRING, version);
28626                         return 1;
28627                 }
28628         }
28629 #endif
28630
28631 #if DB_VERSION_MAJOR > 2
28632         db_env_create( NULL, 0 );
28633 #elif DB_VERSION_MAJOR > 1
28634         db_appexit( NULL );
28635 #else
28636         (void) dbopen( NULL, 0, 0, 0, NULL);
28637 #endif
28638
28639   ;
28640   return 0;
28641 }
28642 _ACEOF
28643 rm -f conftest.$ac_objext conftest$ac_exeext
28644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28645   (eval $ac_link) 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } &&
28652          { ac_try='test -z "$ac_c_werror_flag"
28653                          || test ! -s conftest.err'
28654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655   (eval $ac_try) 2>&5
28656   ac_status=$?
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); }; } &&
28659          { ac_try='test -s conftest$ac_exeext'
28660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661   (eval $ac_try) 2>&5
28662   ac_status=$?
28663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664   (exit $ac_status); }; }; then
28665   ol_cv_db_db_4_4=yes
28666 else
28667   echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ol_cv_db_db_4_4=no
28671 fi
28672 rm -f conftest.err conftest.$ac_objext \
28673       conftest$ac_exeext conftest.$ac_ext
28674
28675         LIBS="$ol_LIBS"
28676
28677 fi
28678 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28679 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28680
28681         if test $ol_cv_db_db_4_4 = yes ; then
28682                 ol_cv_lib_db=-ldb-4-4
28683         fi
28684 fi
28685
28686         elif test $ol_cv_bdb_minor = 3 ; then
28687                 if test $ol_cv_lib_db = no ; then
28688         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28689 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28690 if test "${ol_cv_db_db43+set}" = set; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693
28694         ol_DB_LIB=-ldb43
28695         ol_LIBS=$LIBS
28696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28697
28698         cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705 #ifdef HAVE_DB_185_H
28706 # include <db_185.h>
28707 #else
28708 # include <db.h>
28709 #endif
28710
28711 #ifndef DB_VERSION_MAJOR
28712 # define DB_VERSION_MAJOR 1
28713 #endif
28714
28715 #ifndef NULL
28716 #define NULL ((void*)0)
28717 #endif
28718
28719 int
28720 main ()
28721 {
28722
28723 #if DB_VERSION_MAJOR > 1
28724         {
28725                 char *version;
28726                 int major, minor, patch;
28727
28728                 version = db_version( &major, &minor, &patch );
28729
28730                 if( major != DB_VERSION_MAJOR ||
28731                         minor < DB_VERSION_MINOR )
28732                 {
28733                         printf("Berkeley DB version mismatch\n"
28734                                 "\theader: %s\n\tlibrary: %s\n",
28735                                 DB_VERSION_STRING, version);
28736                         return 1;
28737                 }
28738         }
28739 #endif
28740
28741 #if DB_VERSION_MAJOR > 2
28742         db_env_create( NULL, 0 );
28743 #elif DB_VERSION_MAJOR > 1
28744         db_appexit( NULL );
28745 #else
28746         (void) dbopen( NULL, 0, 0, 0, NULL);
28747 #endif
28748
28749   ;
28750   return 0;
28751 }
28752 _ACEOF
28753 rm -f conftest.$ac_objext conftest$ac_exeext
28754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28755   (eval $ac_link) 2>conftest.er1
28756   ac_status=$?
28757   grep -v '^ *+' conftest.er1 >conftest.err
28758   rm -f conftest.er1
28759   cat conftest.err >&5
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); } &&
28762          { ac_try='test -z "$ac_c_werror_flag"
28763                          || test ! -s conftest.err'
28764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765   (eval $ac_try) 2>&5
28766   ac_status=$?
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); }; } &&
28769          { ac_try='test -s conftest$ac_exeext'
28770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771   (eval $ac_try) 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; }; then
28775   ol_cv_db_db43=yes
28776 else
28777   echo "$as_me: failed program was:" >&5
28778 sed 's/^/| /' conftest.$ac_ext >&5
28779
28780 ol_cv_db_db43=no
28781 fi
28782 rm -f conftest.err conftest.$ac_objext \
28783       conftest$ac_exeext conftest.$ac_ext
28784
28785         LIBS="$ol_LIBS"
28786
28787 fi
28788 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28789 echo "${ECHO_T}$ol_cv_db_db43" >&6
28790
28791         if test $ol_cv_db_db43 = yes ; then
28792                 ol_cv_lib_db=-ldb43
28793         fi
28794 fi
28795
28796                 if test $ol_cv_lib_db = no ; then
28797         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28798 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28799 if test "${ol_cv_db_db_43+set}" = set; then
28800   echo $ECHO_N "(cached) $ECHO_C" >&6
28801 else
28802
28803         ol_DB_LIB=-ldb-43
28804         ol_LIBS=$LIBS
28805         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28806
28807         cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h.  */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h.  */
28813
28814 #ifdef HAVE_DB_185_H
28815 # include <db_185.h>
28816 #else
28817 # include <db.h>
28818 #endif
28819
28820 #ifndef DB_VERSION_MAJOR
28821 # define DB_VERSION_MAJOR 1
28822 #endif
28823
28824 #ifndef NULL
28825 #define NULL ((void*)0)
28826 #endif
28827
28828 int
28829 main ()
28830 {
28831
28832 #if DB_VERSION_MAJOR > 1
28833         {
28834                 char *version;
28835                 int major, minor, patch;
28836
28837                 version = db_version( &major, &minor, &patch );
28838
28839                 if( major != DB_VERSION_MAJOR ||
28840                         minor < DB_VERSION_MINOR )
28841                 {
28842                         printf("Berkeley DB version mismatch\n"
28843                                 "\theader: %s\n\tlibrary: %s\n",
28844                                 DB_VERSION_STRING, version);
28845                         return 1;
28846                 }
28847         }
28848 #endif
28849
28850 #if DB_VERSION_MAJOR > 2
28851         db_env_create( NULL, 0 );
28852 #elif DB_VERSION_MAJOR > 1
28853         db_appexit( NULL );
28854 #else
28855         (void) dbopen( NULL, 0, 0, 0, NULL);
28856 #endif
28857
28858   ;
28859   return 0;
28860 }
28861 _ACEOF
28862 rm -f conftest.$ac_objext conftest$ac_exeext
28863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28864   (eval $ac_link) 2>conftest.er1
28865   ac_status=$?
28866   grep -v '^ *+' conftest.er1 >conftest.err
28867   rm -f conftest.er1
28868   cat conftest.err >&5
28869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870   (exit $ac_status); } &&
28871          { ac_try='test -z "$ac_c_werror_flag"
28872                          || test ! -s conftest.err'
28873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874   (eval $ac_try) 2>&5
28875   ac_status=$?
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; } &&
28878          { ac_try='test -s conftest$ac_exeext'
28879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880   (eval $ac_try) 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; }; then
28884   ol_cv_db_db_43=yes
28885 else
28886   echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28888
28889 ol_cv_db_db_43=no
28890 fi
28891 rm -f conftest.err conftest.$ac_objext \
28892       conftest$ac_exeext conftest.$ac_ext
28893
28894         LIBS="$ol_LIBS"
28895
28896 fi
28897 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28898 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28899
28900         if test $ol_cv_db_db_43 = yes ; then
28901                 ol_cv_lib_db=-ldb-43
28902         fi
28903 fi
28904
28905                 if test $ol_cv_lib_db = no ; then
28906         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28907 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28908 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28909   echo $ECHO_N "(cached) $ECHO_C" >&6
28910 else
28911
28912         ol_DB_LIB=-ldb-4.3
28913         ol_LIBS=$LIBS
28914         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28915
28916         cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922
28923 #ifdef HAVE_DB_185_H
28924 # include <db_185.h>
28925 #else
28926 # include <db.h>
28927 #endif
28928
28929 #ifndef DB_VERSION_MAJOR
28930 # define DB_VERSION_MAJOR 1
28931 #endif
28932
28933 #ifndef NULL
28934 #define NULL ((void*)0)
28935 #endif
28936
28937 int
28938 main ()
28939 {
28940
28941 #if DB_VERSION_MAJOR > 1
28942         {
28943                 char *version;
28944                 int major, minor, patch;
28945
28946                 version = db_version( &major, &minor, &patch );
28947
28948                 if( major != DB_VERSION_MAJOR ||
28949                         minor < DB_VERSION_MINOR )
28950                 {
28951                         printf("Berkeley DB version mismatch\n"
28952                                 "\theader: %s\n\tlibrary: %s\n",
28953                                 DB_VERSION_STRING, version);
28954                         return 1;
28955                 }
28956         }
28957 #endif
28958
28959 #if DB_VERSION_MAJOR > 2
28960         db_env_create( NULL, 0 );
28961 #elif DB_VERSION_MAJOR > 1
28962         db_appexit( NULL );
28963 #else
28964         (void) dbopen( NULL, 0, 0, 0, NULL);
28965 #endif
28966
28967   ;
28968   return 0;
28969 }
28970 _ACEOF
28971 rm -f conftest.$ac_objext conftest$ac_exeext
28972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28973   (eval $ac_link) 2>conftest.er1
28974   ac_status=$?
28975   grep -v '^ *+' conftest.er1 >conftest.err
28976   rm -f conftest.er1
28977   cat conftest.err >&5
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); } &&
28980          { ac_try='test -z "$ac_c_werror_flag"
28981                          || test ! -s conftest.err'
28982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28983   (eval $ac_try) 2>&5
28984   ac_status=$?
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); }; } &&
28987          { ac_try='test -s conftest$ac_exeext'
28988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989   (eval $ac_try) 2>&5
28990   ac_status=$?
28991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); }; }; then
28993   ol_cv_db_db_4_dot_3=yes
28994 else
28995   echo "$as_me: failed program was:" >&5
28996 sed 's/^/| /' conftest.$ac_ext >&5
28997
28998 ol_cv_db_db_4_dot_3=no
28999 fi
29000 rm -f conftest.err conftest.$ac_objext \
29001       conftest$ac_exeext conftest.$ac_ext
29002
29003         LIBS="$ol_LIBS"
29004
29005 fi
29006 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29007 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29008
29009         if test $ol_cv_db_db_4_dot_3 = yes ; then
29010                 ol_cv_lib_db=-ldb-4.3
29011         fi
29012 fi
29013
29014                 if test $ol_cv_lib_db = no ; then
29015         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29016 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29017 if test "${ol_cv_db_db_4_3+set}" = set; then
29018   echo $ECHO_N "(cached) $ECHO_C" >&6
29019 else
29020
29021         ol_DB_LIB=-ldb-4-3
29022         ol_LIBS=$LIBS
29023         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29024
29025         cat >conftest.$ac_ext <<_ACEOF
29026 /* confdefs.h.  */
29027 _ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h.  */
29031
29032 #ifdef HAVE_DB_185_H
29033 # include <db_185.h>
29034 #else
29035 # include <db.h>
29036 #endif
29037
29038 #ifndef DB_VERSION_MAJOR
29039 # define DB_VERSION_MAJOR 1
29040 #endif
29041
29042 #ifndef NULL
29043 #define NULL ((void*)0)
29044 #endif
29045
29046 int
29047 main ()
29048 {
29049
29050 #if DB_VERSION_MAJOR > 1
29051         {
29052                 char *version;
29053                 int major, minor, patch;
29054
29055                 version = db_version( &major, &minor, &patch );
29056
29057                 if( major != DB_VERSION_MAJOR ||
29058                         minor < DB_VERSION_MINOR )
29059                 {
29060                         printf("Berkeley DB version mismatch\n"
29061                                 "\theader: %s\n\tlibrary: %s\n",
29062                                 DB_VERSION_STRING, version);
29063                         return 1;
29064                 }
29065         }
29066 #endif
29067
29068 #if DB_VERSION_MAJOR > 2
29069         db_env_create( NULL, 0 );
29070 #elif DB_VERSION_MAJOR > 1
29071         db_appexit( NULL );
29072 #else
29073         (void) dbopen( NULL, 0, 0, 0, NULL);
29074 #endif
29075
29076   ;
29077   return 0;
29078 }
29079 _ACEOF
29080 rm -f conftest.$ac_objext conftest$ac_exeext
29081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29082   (eval $ac_link) 2>conftest.er1
29083   ac_status=$?
29084   grep -v '^ *+' conftest.er1 >conftest.err
29085   rm -f conftest.er1
29086   cat conftest.err >&5
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); } &&
29089          { ac_try='test -z "$ac_c_werror_flag"
29090                          || test ! -s conftest.err'
29091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29092   (eval $ac_try) 2>&5
29093   ac_status=$?
29094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095   (exit $ac_status); }; } &&
29096          { ac_try='test -s conftest$ac_exeext'
29097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29098   (eval $ac_try) 2>&5
29099   ac_status=$?
29100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29101   (exit $ac_status); }; }; then
29102   ol_cv_db_db_4_3=yes
29103 else
29104   echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107 ol_cv_db_db_4_3=no
29108 fi
29109 rm -f conftest.err conftest.$ac_objext \
29110       conftest$ac_exeext conftest.$ac_ext
29111
29112         LIBS="$ol_LIBS"
29113
29114 fi
29115 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29116 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29117
29118         if test $ol_cv_db_db_4_3 = yes ; then
29119                 ol_cv_lib_db=-ldb-4-3
29120         fi
29121 fi
29122
29123         elif test $ol_cv_bdb_minor = 2 ; then
29124                 if test $ol_cv_lib_db = no ; then
29125         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29126 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29127 if test "${ol_cv_db_db42+set}" = set; then
29128   echo $ECHO_N "(cached) $ECHO_C" >&6
29129 else
29130
29131         ol_DB_LIB=-ldb42
29132         ol_LIBS=$LIBS
29133         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29134
29135         cat >conftest.$ac_ext <<_ACEOF
29136 /* confdefs.h.  */
29137 _ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h.  */
29141
29142 #ifdef HAVE_DB_185_H
29143 # include <db_185.h>
29144 #else
29145 # include <db.h>
29146 #endif
29147
29148 #ifndef DB_VERSION_MAJOR
29149 # define DB_VERSION_MAJOR 1
29150 #endif
29151
29152 #ifndef NULL
29153 #define NULL ((void*)0)
29154 #endif
29155
29156 int
29157 main ()
29158 {
29159
29160 #if DB_VERSION_MAJOR > 1
29161         {
29162                 char *version;
29163                 int major, minor, patch;
29164
29165                 version = db_version( &major, &minor, &patch );
29166
29167                 if( major != DB_VERSION_MAJOR ||
29168                         minor < DB_VERSION_MINOR )
29169                 {
29170                         printf("Berkeley DB version mismatch\n"
29171                                 "\theader: %s\n\tlibrary: %s\n",
29172                                 DB_VERSION_STRING, version);
29173                         return 1;
29174                 }
29175         }
29176 #endif
29177
29178 #if DB_VERSION_MAJOR > 2
29179         db_env_create( NULL, 0 );
29180 #elif DB_VERSION_MAJOR > 1
29181         db_appexit( NULL );
29182 #else
29183         (void) dbopen( NULL, 0, 0, 0, NULL);
29184 #endif
29185
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192   (eval $ac_link) 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag"
29200                          || test ! -s conftest.err'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; } &&
29206          { ac_try='test -s conftest$ac_exeext'
29207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208   (eval $ac_try) 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ol_cv_db_db42=yes
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217 ol_cv_db_db42=no
29218 fi
29219 rm -f conftest.err conftest.$ac_objext \
29220       conftest$ac_exeext conftest.$ac_ext
29221
29222         LIBS="$ol_LIBS"
29223
29224 fi
29225 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29226 echo "${ECHO_T}$ol_cv_db_db42" >&6
29227
29228         if test $ol_cv_db_db42 = yes ; then
29229                 ol_cv_lib_db=-ldb42
29230         fi
29231 fi
29232
29233                 if test $ol_cv_lib_db = no ; then
29234         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29235 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29236 if test "${ol_cv_db_db_42+set}" = set; then
29237   echo $ECHO_N "(cached) $ECHO_C" >&6
29238 else
29239
29240         ol_DB_LIB=-ldb-42
29241         ol_LIBS=$LIBS
29242         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29243
29244         cat >conftest.$ac_ext <<_ACEOF
29245 /* confdefs.h.  */
29246 _ACEOF
29247 cat confdefs.h >>conftest.$ac_ext
29248 cat >>conftest.$ac_ext <<_ACEOF
29249 /* end confdefs.h.  */
29250
29251 #ifdef HAVE_DB_185_H
29252 # include <db_185.h>
29253 #else
29254 # include <db.h>
29255 #endif
29256
29257 #ifndef DB_VERSION_MAJOR
29258 # define DB_VERSION_MAJOR 1
29259 #endif
29260
29261 #ifndef NULL
29262 #define NULL ((void*)0)
29263 #endif
29264
29265 int
29266 main ()
29267 {
29268
29269 #if DB_VERSION_MAJOR > 1
29270         {
29271                 char *version;
29272                 int major, minor, patch;
29273
29274                 version = db_version( &major, &minor, &patch );
29275
29276                 if( major != DB_VERSION_MAJOR ||
29277                         minor < DB_VERSION_MINOR )
29278                 {
29279                         printf("Berkeley DB version mismatch\n"
29280                                 "\theader: %s\n\tlibrary: %s\n",
29281                                 DB_VERSION_STRING, version);
29282                         return 1;
29283                 }
29284         }
29285 #endif
29286
29287 #if DB_VERSION_MAJOR > 2
29288         db_env_create( NULL, 0 );
29289 #elif DB_VERSION_MAJOR > 1
29290         db_appexit( NULL );
29291 #else
29292         (void) dbopen( NULL, 0, 0, 0, NULL);
29293 #endif
29294
29295   ;
29296   return 0;
29297 }
29298 _ACEOF
29299 rm -f conftest.$ac_objext conftest$ac_exeext
29300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29301   (eval $ac_link) 2>conftest.er1
29302   ac_status=$?
29303   grep -v '^ *+' conftest.er1 >conftest.err
29304   rm -f conftest.er1
29305   cat conftest.err >&5
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); } &&
29308          { ac_try='test -z "$ac_c_werror_flag"
29309                          || test ! -s conftest.err'
29310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311   (eval $ac_try) 2>&5
29312   ac_status=$?
29313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314   (exit $ac_status); }; } &&
29315          { ac_try='test -s conftest$ac_exeext'
29316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317   (eval $ac_try) 2>&5
29318   ac_status=$?
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); }; }; then
29321   ol_cv_db_db_42=yes
29322 else
29323   echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ol_cv_db_db_42=no
29327 fi
29328 rm -f conftest.err conftest.$ac_objext \
29329       conftest$ac_exeext conftest.$ac_ext
29330
29331         LIBS="$ol_LIBS"
29332
29333 fi
29334 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29335 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29336
29337         if test $ol_cv_db_db_42 = yes ; then
29338                 ol_cv_lib_db=-ldb-42
29339         fi
29340 fi
29341
29342                 if test $ol_cv_lib_db = no ; then
29343         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29344 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29345 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29346   echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348
29349         ol_DB_LIB=-ldb-4.2
29350         ol_LIBS=$LIBS
29351         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29352
29353         cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h.  */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h.  */
29359
29360 #ifdef HAVE_DB_185_H
29361 # include <db_185.h>
29362 #else
29363 # include <db.h>
29364 #endif
29365
29366 #ifndef DB_VERSION_MAJOR
29367 # define DB_VERSION_MAJOR 1
29368 #endif
29369
29370 #ifndef NULL
29371 #define NULL ((void*)0)
29372 #endif
29373
29374 int
29375 main ()
29376 {
29377
29378 #if DB_VERSION_MAJOR > 1
29379         {
29380                 char *version;
29381                 int major, minor, patch;
29382
29383                 version = db_version( &major, &minor, &patch );
29384
29385                 if( major != DB_VERSION_MAJOR ||
29386                         minor < DB_VERSION_MINOR )
29387                 {
29388                         printf("Berkeley DB version mismatch\n"
29389                                 "\theader: %s\n\tlibrary: %s\n",
29390                                 DB_VERSION_STRING, version);
29391                         return 1;
29392                 }
29393         }
29394 #endif
29395
29396 #if DB_VERSION_MAJOR > 2
29397         db_env_create( NULL, 0 );
29398 #elif DB_VERSION_MAJOR > 1
29399         db_appexit( NULL );
29400 #else
29401         (void) dbopen( NULL, 0, 0, 0, NULL);
29402 #endif
29403
29404   ;
29405   return 0;
29406 }
29407 _ACEOF
29408 rm -f conftest.$ac_objext conftest$ac_exeext
29409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29410   (eval $ac_link) 2>conftest.er1
29411   ac_status=$?
29412   grep -v '^ *+' conftest.er1 >conftest.err
29413   rm -f conftest.er1
29414   cat conftest.err >&5
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); } &&
29417          { ac_try='test -z "$ac_c_werror_flag"
29418                          || test ! -s conftest.err'
29419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420   (eval $ac_try) 2>&5
29421   ac_status=$?
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); }; } &&
29424          { ac_try='test -s conftest$ac_exeext'
29425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29426   (eval $ac_try) 2>&5
29427   ac_status=$?
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); }; }; then
29430   ol_cv_db_db_4_dot_2=yes
29431 else
29432   echo "$as_me: failed program was:" >&5
29433 sed 's/^/| /' conftest.$ac_ext >&5
29434
29435 ol_cv_db_db_4_dot_2=no
29436 fi
29437 rm -f conftest.err conftest.$ac_objext \
29438       conftest$ac_exeext conftest.$ac_ext
29439
29440         LIBS="$ol_LIBS"
29441
29442 fi
29443 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29444 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29445
29446         if test $ol_cv_db_db_4_dot_2 = yes ; then
29447                 ol_cv_lib_db=-ldb-4.2
29448         fi
29449 fi
29450
29451                 if test $ol_cv_lib_db = no ; then
29452         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29453 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29454 if test "${ol_cv_db_db_4_2+set}" = set; then
29455   echo $ECHO_N "(cached) $ECHO_C" >&6
29456 else
29457
29458         ol_DB_LIB=-ldb-4-2
29459         ol_LIBS=$LIBS
29460         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29461
29462         cat >conftest.$ac_ext <<_ACEOF
29463 /* confdefs.h.  */
29464 _ACEOF
29465 cat confdefs.h >>conftest.$ac_ext
29466 cat >>conftest.$ac_ext <<_ACEOF
29467 /* end confdefs.h.  */
29468
29469 #ifdef HAVE_DB_185_H
29470 # include <db_185.h>
29471 #else
29472 # include <db.h>
29473 #endif
29474
29475 #ifndef DB_VERSION_MAJOR
29476 # define DB_VERSION_MAJOR 1
29477 #endif
29478
29479 #ifndef NULL
29480 #define NULL ((void*)0)
29481 #endif
29482
29483 int
29484 main ()
29485 {
29486
29487 #if DB_VERSION_MAJOR > 1
29488         {
29489                 char *version;
29490                 int major, minor, patch;
29491
29492                 version = db_version( &major, &minor, &patch );
29493
29494                 if( major != DB_VERSION_MAJOR ||
29495                         minor < DB_VERSION_MINOR )
29496                 {
29497                         printf("Berkeley DB version mismatch\n"
29498                                 "\theader: %s\n\tlibrary: %s\n",
29499                                 DB_VERSION_STRING, version);
29500                         return 1;
29501                 }
29502         }
29503 #endif
29504
29505 #if DB_VERSION_MAJOR > 2
29506         db_env_create( NULL, 0 );
29507 #elif DB_VERSION_MAJOR > 1
29508         db_appexit( NULL );
29509 #else
29510         (void) dbopen( NULL, 0, 0, 0, NULL);
29511 #endif
29512
29513   ;
29514   return 0;
29515 }
29516 _ACEOF
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519   (eval $ac_link) 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } &&
29526          { ac_try='test -z "$ac_c_werror_flag"
29527                          || test ! -s conftest.err'
29528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529   (eval $ac_try) 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; } &&
29533          { ac_try='test -s conftest$ac_exeext'
29534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535   (eval $ac_try) 2>&5
29536   ac_status=$?
29537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); }; }; then
29539   ol_cv_db_db_4_2=yes
29540 else
29541   echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29543
29544 ol_cv_db_db_4_2=no
29545 fi
29546 rm -f conftest.err conftest.$ac_objext \
29547       conftest$ac_exeext conftest.$ac_ext
29548
29549         LIBS="$ol_LIBS"
29550
29551 fi
29552 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29553 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29554
29555         if test $ol_cv_db_db_4_2 = yes ; then
29556                 ol_cv_lib_db=-ldb-4-2
29557         fi
29558 fi
29559
29560         elif test $ol_cv_bdb_minor = 1 ; then
29561                 if test $ol_cv_lib_db = no ; then
29562         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29563 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29564 if test "${ol_cv_db_db41+set}" = set; then
29565   echo $ECHO_N "(cached) $ECHO_C" >&6
29566 else
29567
29568         ol_DB_LIB=-ldb41
29569         ol_LIBS=$LIBS
29570         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29571
29572         cat >conftest.$ac_ext <<_ACEOF
29573 /* confdefs.h.  */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h.  */
29578
29579 #ifdef HAVE_DB_185_H
29580 # include <db_185.h>
29581 #else
29582 # include <db.h>
29583 #endif
29584
29585 #ifndef DB_VERSION_MAJOR
29586 # define DB_VERSION_MAJOR 1
29587 #endif
29588
29589 #ifndef NULL
29590 #define NULL ((void*)0)
29591 #endif
29592
29593 int
29594 main ()
29595 {
29596
29597 #if DB_VERSION_MAJOR > 1
29598         {
29599                 char *version;
29600                 int major, minor, patch;
29601
29602                 version = db_version( &major, &minor, &patch );
29603
29604                 if( major != DB_VERSION_MAJOR ||
29605                         minor < DB_VERSION_MINOR )
29606                 {
29607                         printf("Berkeley DB version mismatch\n"
29608                                 "\theader: %s\n\tlibrary: %s\n",
29609                                 DB_VERSION_STRING, version);
29610                         return 1;
29611                 }
29612         }
29613 #endif
29614
29615 #if DB_VERSION_MAJOR > 2
29616         db_env_create( NULL, 0 );
29617 #elif DB_VERSION_MAJOR > 1
29618         db_appexit( NULL );
29619 #else
29620         (void) dbopen( NULL, 0, 0, 0, NULL);
29621 #endif
29622
29623   ;
29624   return 0;
29625 }
29626 _ACEOF
29627 rm -f conftest.$ac_objext conftest$ac_exeext
29628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29629   (eval $ac_link) 2>conftest.er1
29630   ac_status=$?
29631   grep -v '^ *+' conftest.er1 >conftest.err
29632   rm -f conftest.er1
29633   cat conftest.err >&5
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); } &&
29636          { ac_try='test -z "$ac_c_werror_flag"
29637                          || test ! -s conftest.err'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; } &&
29643          { ac_try='test -s conftest$ac_exeext'
29644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29645   (eval $ac_try) 2>&5
29646   ac_status=$?
29647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648   (exit $ac_status); }; }; then
29649   ol_cv_db_db41=yes
29650 else
29651   echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29653
29654 ol_cv_db_db41=no
29655 fi
29656 rm -f conftest.err conftest.$ac_objext \
29657       conftest$ac_exeext conftest.$ac_ext
29658
29659         LIBS="$ol_LIBS"
29660
29661 fi
29662 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29663 echo "${ECHO_T}$ol_cv_db_db41" >&6
29664
29665         if test $ol_cv_db_db41 = yes ; then
29666                 ol_cv_lib_db=-ldb41
29667         fi
29668 fi
29669
29670                 if test $ol_cv_lib_db = no ; then
29671         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29672 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29673 if test "${ol_cv_db_db_41+set}" = set; then
29674   echo $ECHO_N "(cached) $ECHO_C" >&6
29675 else
29676
29677         ol_DB_LIB=-ldb-41
29678         ol_LIBS=$LIBS
29679         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29680
29681         cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687
29688 #ifdef HAVE_DB_185_H
29689 # include <db_185.h>
29690 #else
29691 # include <db.h>
29692 #endif
29693
29694 #ifndef DB_VERSION_MAJOR
29695 # define DB_VERSION_MAJOR 1
29696 #endif
29697
29698 #ifndef NULL
29699 #define NULL ((void*)0)
29700 #endif
29701
29702 int
29703 main ()
29704 {
29705
29706 #if DB_VERSION_MAJOR > 1
29707         {
29708                 char *version;
29709                 int major, minor, patch;
29710
29711                 version = db_version( &major, &minor, &patch );
29712
29713                 if( major != DB_VERSION_MAJOR ||
29714                         minor < DB_VERSION_MINOR )
29715                 {
29716                         printf("Berkeley DB version mismatch\n"
29717                                 "\theader: %s\n\tlibrary: %s\n",
29718                                 DB_VERSION_STRING, version);
29719                         return 1;
29720                 }
29721         }
29722 #endif
29723
29724 #if DB_VERSION_MAJOR > 2
29725         db_env_create( NULL, 0 );
29726 #elif DB_VERSION_MAJOR > 1
29727         db_appexit( NULL );
29728 #else
29729         (void) dbopen( NULL, 0, 0, 0, NULL);
29730 #endif
29731
29732   ;
29733   return 0;
29734 }
29735 _ACEOF
29736 rm -f conftest.$ac_objext conftest$ac_exeext
29737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738   (eval $ac_link) 2>conftest.er1
29739   ac_status=$?
29740   grep -v '^ *+' conftest.er1 >conftest.err
29741   rm -f conftest.er1
29742   cat conftest.err >&5
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); } &&
29745          { ac_try='test -z "$ac_c_werror_flag"
29746                          || test ! -s conftest.err'
29747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748   (eval $ac_try) 2>&5
29749   ac_status=$?
29750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); }; } &&
29752          { ac_try='test -s conftest$ac_exeext'
29753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754   (eval $ac_try) 2>&5
29755   ac_status=$?
29756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757   (exit $ac_status); }; }; then
29758   ol_cv_db_db_41=yes
29759 else
29760   echo "$as_me: failed program was:" >&5
29761 sed 's/^/| /' conftest.$ac_ext >&5
29762
29763 ol_cv_db_db_41=no
29764 fi
29765 rm -f conftest.err conftest.$ac_objext \
29766       conftest$ac_exeext conftest.$ac_ext
29767
29768         LIBS="$ol_LIBS"
29769
29770 fi
29771 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29772 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29773
29774         if test $ol_cv_db_db_41 = yes ; then
29775                 ol_cv_lib_db=-ldb-41
29776         fi
29777 fi
29778
29779                 if test $ol_cv_lib_db = no ; then
29780         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29781 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29782 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29783   echo $ECHO_N "(cached) $ECHO_C" >&6
29784 else
29785
29786         ol_DB_LIB=-ldb-4.1
29787         ol_LIBS=$LIBS
29788         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29789
29790         cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h.  */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h.  */
29796
29797 #ifdef HAVE_DB_185_H
29798 # include <db_185.h>
29799 #else
29800 # include <db.h>
29801 #endif
29802
29803 #ifndef DB_VERSION_MAJOR
29804 # define DB_VERSION_MAJOR 1
29805 #endif
29806
29807 #ifndef NULL
29808 #define NULL ((void*)0)
29809 #endif
29810
29811 int
29812 main ()
29813 {
29814
29815 #if DB_VERSION_MAJOR > 1
29816         {
29817                 char *version;
29818                 int major, minor, patch;
29819
29820                 version = db_version( &major, &minor, &patch );
29821
29822                 if( major != DB_VERSION_MAJOR ||
29823                         minor < DB_VERSION_MINOR )
29824                 {
29825                         printf("Berkeley DB version mismatch\n"
29826                                 "\theader: %s\n\tlibrary: %s\n",
29827                                 DB_VERSION_STRING, version);
29828                         return 1;
29829                 }
29830         }
29831 #endif
29832
29833 #if DB_VERSION_MAJOR > 2
29834         db_env_create( NULL, 0 );
29835 #elif DB_VERSION_MAJOR > 1
29836         db_appexit( NULL );
29837 #else
29838         (void) dbopen( NULL, 0, 0, 0, NULL);
29839 #endif
29840
29841   ;
29842   return 0;
29843 }
29844 _ACEOF
29845 rm -f conftest.$ac_objext conftest$ac_exeext
29846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29847   (eval $ac_link) 2>conftest.er1
29848   ac_status=$?
29849   grep -v '^ *+' conftest.er1 >conftest.err
29850   rm -f conftest.er1
29851   cat conftest.err >&5
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); } &&
29854          { ac_try='test -z "$ac_c_werror_flag"
29855                          || test ! -s conftest.err'
29856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29857   (eval $ac_try) 2>&5
29858   ac_status=$?
29859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860   (exit $ac_status); }; } &&
29861          { ac_try='test -s conftest$ac_exeext'
29862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863   (eval $ac_try) 2>&5
29864   ac_status=$?
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); }; }; then
29867   ol_cv_db_db_4_dot_1=yes
29868 else
29869   echo "$as_me: failed program was:" >&5
29870 sed 's/^/| /' conftest.$ac_ext >&5
29871
29872 ol_cv_db_db_4_dot_1=no
29873 fi
29874 rm -f conftest.err conftest.$ac_objext \
29875       conftest$ac_exeext conftest.$ac_ext
29876
29877         LIBS="$ol_LIBS"
29878
29879 fi
29880 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29881 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29882
29883         if test $ol_cv_db_db_4_dot_1 = yes ; then
29884                 ol_cv_lib_db=-ldb-4.1
29885         fi
29886 fi
29887
29888                 if test $ol_cv_lib_db = no ; then
29889         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29890 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29891 if test "${ol_cv_db_db_4_1+set}" = set; then
29892   echo $ECHO_N "(cached) $ECHO_C" >&6
29893 else
29894
29895         ol_DB_LIB=-ldb-4-1
29896         ol_LIBS=$LIBS
29897         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29898
29899         cat >conftest.$ac_ext <<_ACEOF
29900 /* confdefs.h.  */
29901 _ACEOF
29902 cat confdefs.h >>conftest.$ac_ext
29903 cat >>conftest.$ac_ext <<_ACEOF
29904 /* end confdefs.h.  */
29905
29906 #ifdef HAVE_DB_185_H
29907 # include <db_185.h>
29908 #else
29909 # include <db.h>
29910 #endif
29911
29912 #ifndef DB_VERSION_MAJOR
29913 # define DB_VERSION_MAJOR 1
29914 #endif
29915
29916 #ifndef NULL
29917 #define NULL ((void*)0)
29918 #endif
29919
29920 int
29921 main ()
29922 {
29923
29924 #if DB_VERSION_MAJOR > 1
29925         {
29926                 char *version;
29927                 int major, minor, patch;
29928
29929                 version = db_version( &major, &minor, &patch );
29930
29931                 if( major != DB_VERSION_MAJOR ||
29932                         minor < DB_VERSION_MINOR )
29933                 {
29934                         printf("Berkeley DB version mismatch\n"
29935                                 "\theader: %s\n\tlibrary: %s\n",
29936                                 DB_VERSION_STRING, version);
29937                         return 1;
29938                 }
29939         }
29940 #endif
29941
29942 #if DB_VERSION_MAJOR > 2
29943         db_env_create( NULL, 0 );
29944 #elif DB_VERSION_MAJOR > 1
29945         db_appexit( NULL );
29946 #else
29947         (void) dbopen( NULL, 0, 0, 0, NULL);
29948 #endif
29949
29950   ;
29951   return 0;
29952 }
29953 _ACEOF
29954 rm -f conftest.$ac_objext conftest$ac_exeext
29955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29956   (eval $ac_link) 2>conftest.er1
29957   ac_status=$?
29958   grep -v '^ *+' conftest.er1 >conftest.err
29959   rm -f conftest.er1
29960   cat conftest.err >&5
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); } &&
29963          { ac_try='test -z "$ac_c_werror_flag"
29964                          || test ! -s conftest.err'
29965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966   (eval $ac_try) 2>&5
29967   ac_status=$?
29968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969   (exit $ac_status); }; } &&
29970          { ac_try='test -s conftest$ac_exeext'
29971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972   (eval $ac_try) 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; }; then
29976   ol_cv_db_db_4_1=yes
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981 ol_cv_db_db_4_1=no
29982 fi
29983 rm -f conftest.err conftest.$ac_objext \
29984       conftest$ac_exeext conftest.$ac_ext
29985
29986         LIBS="$ol_LIBS"
29987
29988 fi
29989 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29990 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29991
29992         if test $ol_cv_db_db_4_1 = yes ; then
29993                 ol_cv_lib_db=-ldb-4-1
29994         fi
29995 fi
29996
29997         fi
29998         if test $ol_cv_lib_db = no ; then
29999         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30000 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30001 if test "${ol_cv_db_db_4+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004
30005         ol_DB_LIB=-ldb-4
30006         ol_LIBS=$LIBS
30007         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30008
30009         cat >conftest.$ac_ext <<_ACEOF
30010 /* confdefs.h.  */
30011 _ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h.  */
30015
30016 #ifdef HAVE_DB_185_H
30017 # include <db_185.h>
30018 #else
30019 # include <db.h>
30020 #endif
30021
30022 #ifndef DB_VERSION_MAJOR
30023 # define DB_VERSION_MAJOR 1
30024 #endif
30025
30026 #ifndef NULL
30027 #define NULL ((void*)0)
30028 #endif
30029
30030 int
30031 main ()
30032 {
30033
30034 #if DB_VERSION_MAJOR > 1
30035         {
30036                 char *version;
30037                 int major, minor, patch;
30038
30039                 version = db_version( &major, &minor, &patch );
30040
30041                 if( major != DB_VERSION_MAJOR ||
30042                         minor < DB_VERSION_MINOR )
30043                 {
30044                         printf("Berkeley DB version mismatch\n"
30045                                 "\theader: %s\n\tlibrary: %s\n",
30046                                 DB_VERSION_STRING, version);
30047                         return 1;
30048                 }
30049         }
30050 #endif
30051
30052 #if DB_VERSION_MAJOR > 2
30053         db_env_create( NULL, 0 );
30054 #elif DB_VERSION_MAJOR > 1
30055         db_appexit( NULL );
30056 #else
30057         (void) dbopen( NULL, 0, 0, 0, NULL);
30058 #endif
30059
30060   ;
30061   return 0;
30062 }
30063 _ACEOF
30064 rm -f conftest.$ac_objext conftest$ac_exeext
30065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30066   (eval $ac_link) 2>conftest.er1
30067   ac_status=$?
30068   grep -v '^ *+' conftest.er1 >conftest.err
30069   rm -f conftest.er1
30070   cat conftest.err >&5
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); } &&
30073          { ac_try='test -z "$ac_c_werror_flag"
30074                          || test ! -s conftest.err'
30075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076   (eval $ac_try) 2>&5
30077   ac_status=$?
30078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079   (exit $ac_status); }; } &&
30080          { ac_try='test -s conftest$ac_exeext'
30081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082   (eval $ac_try) 2>&5
30083   ac_status=$?
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); }; }; then
30086   ol_cv_db_db_4=yes
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091 ol_cv_db_db_4=no
30092 fi
30093 rm -f conftest.err conftest.$ac_objext \
30094       conftest$ac_exeext conftest.$ac_ext
30095
30096         LIBS="$ol_LIBS"
30097
30098 fi
30099 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30100 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30101
30102         if test $ol_cv_db_db_4 = yes ; then
30103                 ol_cv_lib_db=-ldb-4
30104         fi
30105 fi
30106
30107         if test $ol_cv_lib_db = no ; then
30108         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30109 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30110 if test "${ol_cv_db_db4+set}" = set; then
30111   echo $ECHO_N "(cached) $ECHO_C" >&6
30112 else
30113
30114         ol_DB_LIB=-ldb4
30115         ol_LIBS=$LIBS
30116         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30117
30118         cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h.  */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h.  */
30124
30125 #ifdef HAVE_DB_185_H
30126 # include <db_185.h>
30127 #else
30128 # include <db.h>
30129 #endif
30130
30131 #ifndef DB_VERSION_MAJOR
30132 # define DB_VERSION_MAJOR 1
30133 #endif
30134
30135 #ifndef NULL
30136 #define NULL ((void*)0)
30137 #endif
30138
30139 int
30140 main ()
30141 {
30142
30143 #if DB_VERSION_MAJOR > 1
30144         {
30145                 char *version;
30146                 int major, minor, patch;
30147
30148                 version = db_version( &major, &minor, &patch );
30149
30150                 if( major != DB_VERSION_MAJOR ||
30151                         minor < DB_VERSION_MINOR )
30152                 {
30153                         printf("Berkeley DB version mismatch\n"
30154                                 "\theader: %s\n\tlibrary: %s\n",
30155                                 DB_VERSION_STRING, version);
30156                         return 1;
30157                 }
30158         }
30159 #endif
30160
30161 #if DB_VERSION_MAJOR > 2
30162         db_env_create( NULL, 0 );
30163 #elif DB_VERSION_MAJOR > 1
30164         db_appexit( NULL );
30165 #else
30166         (void) dbopen( NULL, 0, 0, 0, NULL);
30167 #endif
30168
30169   ;
30170   return 0;
30171 }
30172 _ACEOF
30173 rm -f conftest.$ac_objext conftest$ac_exeext
30174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30175   (eval $ac_link) 2>conftest.er1
30176   ac_status=$?
30177   grep -v '^ *+' conftest.er1 >conftest.err
30178   rm -f conftest.er1
30179   cat conftest.err >&5
30180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181   (exit $ac_status); } &&
30182          { ac_try='test -z "$ac_c_werror_flag"
30183                          || test ! -s conftest.err'
30184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185   (eval $ac_try) 2>&5
30186   ac_status=$?
30187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188   (exit $ac_status); }; } &&
30189          { ac_try='test -s conftest$ac_exeext'
30190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191   (eval $ac_try) 2>&5
30192   ac_status=$?
30193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194   (exit $ac_status); }; }; then
30195   ol_cv_db_db4=yes
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200 ol_cv_db_db4=no
30201 fi
30202 rm -f conftest.err conftest.$ac_objext \
30203       conftest$ac_exeext conftest.$ac_ext
30204
30205         LIBS="$ol_LIBS"
30206
30207 fi
30208 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30209 echo "${ECHO_T}$ol_cv_db_db4" >&6
30210
30211         if test $ol_cv_db_db4 = yes ; then
30212                 ol_cv_lib_db=-ldb4
30213         fi
30214 fi
30215
30216         if test $ol_cv_lib_db = no ; then
30217         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30218 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30219 if test "${ol_cv_db_db+set}" = set; then
30220   echo $ECHO_N "(cached) $ECHO_C" >&6
30221 else
30222
30223         ol_DB_LIB=-ldb
30224         ol_LIBS=$LIBS
30225         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30226
30227         cat >conftest.$ac_ext <<_ACEOF
30228 /* confdefs.h.  */
30229 _ACEOF
30230 cat confdefs.h >>conftest.$ac_ext
30231 cat >>conftest.$ac_ext <<_ACEOF
30232 /* end confdefs.h.  */
30233
30234 #ifdef HAVE_DB_185_H
30235 # include <db_185.h>
30236 #else
30237 # include <db.h>
30238 #endif
30239
30240 #ifndef DB_VERSION_MAJOR
30241 # define DB_VERSION_MAJOR 1
30242 #endif
30243
30244 #ifndef NULL
30245 #define NULL ((void*)0)
30246 #endif
30247
30248 int
30249 main ()
30250 {
30251
30252 #if DB_VERSION_MAJOR > 1
30253         {
30254                 char *version;
30255                 int major, minor, patch;
30256
30257                 version = db_version( &major, &minor, &patch );
30258
30259                 if( major != DB_VERSION_MAJOR ||
30260                         minor < DB_VERSION_MINOR )
30261                 {
30262                         printf("Berkeley DB version mismatch\n"
30263                                 "\theader: %s\n\tlibrary: %s\n",
30264                                 DB_VERSION_STRING, version);
30265                         return 1;
30266                 }
30267         }
30268 #endif
30269
30270 #if DB_VERSION_MAJOR > 2
30271         db_env_create( NULL, 0 );
30272 #elif DB_VERSION_MAJOR > 1
30273         db_appexit( NULL );
30274 #else
30275         (void) dbopen( NULL, 0, 0, 0, NULL);
30276 #endif
30277
30278   ;
30279   return 0;
30280 }
30281 _ACEOF
30282 rm -f conftest.$ac_objext conftest$ac_exeext
30283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30284   (eval $ac_link) 2>conftest.er1
30285   ac_status=$?
30286   grep -v '^ *+' conftest.er1 >conftest.err
30287   rm -f conftest.er1
30288   cat conftest.err >&5
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); } &&
30291          { ac_try='test -z "$ac_c_werror_flag"
30292                          || test ! -s conftest.err'
30293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30294   (eval $ac_try) 2>&5
30295   ac_status=$?
30296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297   (exit $ac_status); }; } &&
30298          { ac_try='test -s conftest$ac_exeext'
30299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30300   (eval $ac_try) 2>&5
30301   ac_status=$?
30302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303   (exit $ac_status); }; }; then
30304   ol_cv_db_db=yes
30305 else
30306   echo "$as_me: failed program was:" >&5
30307 sed 's/^/| /' conftest.$ac_ext >&5
30308
30309 ol_cv_db_db=no
30310 fi
30311 rm -f conftest.err conftest.$ac_objext \
30312       conftest$ac_exeext conftest.$ac_ext
30313
30314         LIBS="$ol_LIBS"
30315
30316 fi
30317 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30318 echo "${ECHO_T}$ol_cv_db_db" >&6
30319
30320         if test $ol_cv_db_db = yes ; then
30321                 ol_cv_lib_db=-ldb
30322         fi
30323 fi
30324
30325
30326 elif test $ol_cv_bdb_major = 3 ; then
30327         if test $ol_cv_lib_db = no ; then
30328         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30329 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30330 if test "${ol_cv_db_db3+set}" = set; then
30331   echo $ECHO_N "(cached) $ECHO_C" >&6
30332 else
30333
30334         ol_DB_LIB=-ldb3
30335         ol_LIBS=$LIBS
30336         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30337
30338         cat >conftest.$ac_ext <<_ACEOF
30339 /* confdefs.h.  */
30340 _ACEOF
30341 cat confdefs.h >>conftest.$ac_ext
30342 cat >>conftest.$ac_ext <<_ACEOF
30343 /* end confdefs.h.  */
30344
30345 #ifdef HAVE_DB_185_H
30346 # include <db_185.h>
30347 #else
30348 # include <db.h>
30349 #endif
30350
30351 #ifndef DB_VERSION_MAJOR
30352 # define DB_VERSION_MAJOR 1
30353 #endif
30354
30355 #ifndef NULL
30356 #define NULL ((void*)0)
30357 #endif
30358
30359 int
30360 main ()
30361 {
30362
30363 #if DB_VERSION_MAJOR > 1
30364         {
30365                 char *version;
30366                 int major, minor, patch;
30367
30368                 version = db_version( &major, &minor, &patch );
30369
30370                 if( major != DB_VERSION_MAJOR ||
30371                         minor < DB_VERSION_MINOR )
30372                 {
30373                         printf("Berkeley DB version mismatch\n"
30374                                 "\theader: %s\n\tlibrary: %s\n",
30375                                 DB_VERSION_STRING, version);
30376                         return 1;
30377                 }
30378         }
30379 #endif
30380
30381 #if DB_VERSION_MAJOR > 2
30382         db_env_create( NULL, 0 );
30383 #elif DB_VERSION_MAJOR > 1
30384         db_appexit( NULL );
30385 #else
30386         (void) dbopen( NULL, 0, 0, 0, NULL);
30387 #endif
30388
30389   ;
30390   return 0;
30391 }
30392 _ACEOF
30393 rm -f conftest.$ac_objext conftest$ac_exeext
30394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30395   (eval $ac_link) 2>conftest.er1
30396   ac_status=$?
30397   grep -v '^ *+' conftest.er1 >conftest.err
30398   rm -f conftest.er1
30399   cat conftest.err >&5
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); } &&
30402          { ac_try='test -z "$ac_c_werror_flag"
30403                          || test ! -s conftest.err'
30404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405   (eval $ac_try) 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; } &&
30409          { ac_try='test -s conftest$ac_exeext'
30410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30411   (eval $ac_try) 2>&5
30412   ac_status=$?
30413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414   (exit $ac_status); }; }; then
30415   ol_cv_db_db3=yes
30416 else
30417   echo "$as_me: failed program was:" >&5
30418 sed 's/^/| /' conftest.$ac_ext >&5
30419
30420 ol_cv_db_db3=no
30421 fi
30422 rm -f conftest.err conftest.$ac_objext \
30423       conftest$ac_exeext conftest.$ac_ext
30424
30425         LIBS="$ol_LIBS"
30426
30427 fi
30428 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30429 echo "${ECHO_T}$ol_cv_db_db3" >&6
30430
30431         if test $ol_cv_db_db3 = yes ; then
30432                 ol_cv_lib_db=-ldb3
30433         fi
30434 fi
30435
30436         if test $ol_cv_lib_db = no ; then
30437         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30438 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30439 if test "${ol_cv_db_db_3+set}" = set; then
30440   echo $ECHO_N "(cached) $ECHO_C" >&6
30441 else
30442
30443         ol_DB_LIB=-ldb-3
30444         ol_LIBS=$LIBS
30445         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30446
30447         cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h.  */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h.  */
30453
30454 #ifdef HAVE_DB_185_H
30455 # include <db_185.h>
30456 #else
30457 # include <db.h>
30458 #endif
30459
30460 #ifndef DB_VERSION_MAJOR
30461 # define DB_VERSION_MAJOR 1
30462 #endif
30463
30464 #ifndef NULL
30465 #define NULL ((void*)0)
30466 #endif
30467
30468 int
30469 main ()
30470 {
30471
30472 #if DB_VERSION_MAJOR > 1
30473         {
30474                 char *version;
30475                 int major, minor, patch;
30476
30477                 version = db_version( &major, &minor, &patch );
30478
30479                 if( major != DB_VERSION_MAJOR ||
30480                         minor < DB_VERSION_MINOR )
30481                 {
30482                         printf("Berkeley DB version mismatch\n"
30483                                 "\theader: %s\n\tlibrary: %s\n",
30484                                 DB_VERSION_STRING, version);
30485                         return 1;
30486                 }
30487         }
30488 #endif
30489
30490 #if DB_VERSION_MAJOR > 2
30491         db_env_create( NULL, 0 );
30492 #elif DB_VERSION_MAJOR > 1
30493         db_appexit( NULL );
30494 #else
30495         (void) dbopen( NULL, 0, 0, 0, NULL);
30496 #endif
30497
30498   ;
30499   return 0;
30500 }
30501 _ACEOF
30502 rm -f conftest.$ac_objext conftest$ac_exeext
30503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30504   (eval $ac_link) 2>conftest.er1
30505   ac_status=$?
30506   grep -v '^ *+' conftest.er1 >conftest.err
30507   rm -f conftest.er1
30508   cat conftest.err >&5
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); } &&
30511          { ac_try='test -z "$ac_c_werror_flag"
30512                          || test ! -s conftest.err'
30513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514   (eval $ac_try) 2>&5
30515   ac_status=$?
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); }; } &&
30518          { ac_try='test -s conftest$ac_exeext'
30519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520   (eval $ac_try) 2>&5
30521   ac_status=$?
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); }; }; then
30524   ol_cv_db_db_3=yes
30525 else
30526   echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30528
30529 ol_cv_db_db_3=no
30530 fi
30531 rm -f conftest.err conftest.$ac_objext \
30532       conftest$ac_exeext conftest.$ac_ext
30533
30534         LIBS="$ol_LIBS"
30535
30536 fi
30537 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30538 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30539
30540         if test $ol_cv_db_db_3 = yes ; then
30541                 ol_cv_lib_db=-ldb-3
30542         fi
30543 fi
30544
30545
30546 elif test $ol_cv_bdb_major = 2 ; then
30547         if test $ol_cv_lib_db = no ; then
30548         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30549 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30550 if test "${ol_cv_db_db2+set}" = set; then
30551   echo $ECHO_N "(cached) $ECHO_C" >&6
30552 else
30553
30554         ol_DB_LIB=-ldb2
30555         ol_LIBS=$LIBS
30556         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30557
30558         cat >conftest.$ac_ext <<_ACEOF
30559 /* confdefs.h.  */
30560 _ACEOF
30561 cat confdefs.h >>conftest.$ac_ext
30562 cat >>conftest.$ac_ext <<_ACEOF
30563 /* end confdefs.h.  */
30564
30565 #ifdef HAVE_DB_185_H
30566 # include <db_185.h>
30567 #else
30568 # include <db.h>
30569 #endif
30570
30571 #ifndef DB_VERSION_MAJOR
30572 # define DB_VERSION_MAJOR 1
30573 #endif
30574
30575 #ifndef NULL
30576 #define NULL ((void*)0)
30577 #endif
30578
30579 int
30580 main ()
30581 {
30582
30583 #if DB_VERSION_MAJOR > 1
30584         {
30585                 char *version;
30586                 int major, minor, patch;
30587
30588                 version = db_version( &major, &minor, &patch );
30589
30590                 if( major != DB_VERSION_MAJOR ||
30591                         minor < DB_VERSION_MINOR )
30592                 {
30593                         printf("Berkeley DB version mismatch\n"
30594                                 "\theader: %s\n\tlibrary: %s\n",
30595                                 DB_VERSION_STRING, version);
30596                         return 1;
30597                 }
30598         }
30599 #endif
30600
30601 #if DB_VERSION_MAJOR > 2
30602         db_env_create( NULL, 0 );
30603 #elif DB_VERSION_MAJOR > 1
30604         db_appexit( NULL );
30605 #else
30606         (void) dbopen( NULL, 0, 0, 0, NULL);
30607 #endif
30608
30609   ;
30610   return 0;
30611 }
30612 _ACEOF
30613 rm -f conftest.$ac_objext conftest$ac_exeext
30614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30615   (eval $ac_link) 2>conftest.er1
30616   ac_status=$?
30617   grep -v '^ *+' conftest.er1 >conftest.err
30618   rm -f conftest.er1
30619   cat conftest.err >&5
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); } &&
30622          { ac_try='test -z "$ac_c_werror_flag"
30623                          || test ! -s conftest.err'
30624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625   (eval $ac_try) 2>&5
30626   ac_status=$?
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); }; } &&
30629          { ac_try='test -s conftest$ac_exeext'
30630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631   (eval $ac_try) 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; }; then
30635   ol_cv_db_db2=yes
30636 else
30637   echo "$as_me: failed program was:" >&5
30638 sed 's/^/| /' conftest.$ac_ext >&5
30639
30640 ol_cv_db_db2=no
30641 fi
30642 rm -f conftest.err conftest.$ac_objext \
30643       conftest$ac_exeext conftest.$ac_ext
30644
30645         LIBS="$ol_LIBS"
30646
30647 fi
30648 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30649 echo "${ECHO_T}$ol_cv_db_db2" >&6
30650
30651         if test $ol_cv_db_db2 = yes ; then
30652                 ol_cv_lib_db=-ldb2
30653         fi
30654 fi
30655
30656         if test $ol_cv_lib_db = no ; then
30657         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30658 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30659 if test "${ol_cv_db_db_2+set}" = set; then
30660   echo $ECHO_N "(cached) $ECHO_C" >&6
30661 else
30662
30663         ol_DB_LIB=-ldb-2
30664         ol_LIBS=$LIBS
30665         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30666
30667         cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h.  */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h.  */
30673
30674 #ifdef HAVE_DB_185_H
30675 # include <db_185.h>
30676 #else
30677 # include <db.h>
30678 #endif
30679
30680 #ifndef DB_VERSION_MAJOR
30681 # define DB_VERSION_MAJOR 1
30682 #endif
30683
30684 #ifndef NULL
30685 #define NULL ((void*)0)
30686 #endif
30687
30688 int
30689 main ()
30690 {
30691
30692 #if DB_VERSION_MAJOR > 1
30693         {
30694                 char *version;
30695                 int major, minor, patch;
30696
30697                 version = db_version( &major, &minor, &patch );
30698
30699                 if( major != DB_VERSION_MAJOR ||
30700                         minor < DB_VERSION_MINOR )
30701                 {
30702                         printf("Berkeley DB version mismatch\n"
30703                                 "\theader: %s\n\tlibrary: %s\n",
30704                                 DB_VERSION_STRING, version);
30705                         return 1;
30706                 }
30707         }
30708 #endif
30709
30710 #if DB_VERSION_MAJOR > 2
30711         db_env_create( NULL, 0 );
30712 #elif DB_VERSION_MAJOR > 1
30713         db_appexit( NULL );
30714 #else
30715         (void) dbopen( NULL, 0, 0, 0, NULL);
30716 #endif
30717
30718   ;
30719   return 0;
30720 }
30721 _ACEOF
30722 rm -f conftest.$ac_objext conftest$ac_exeext
30723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30724   (eval $ac_link) 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } &&
30731          { ac_try='test -z "$ac_c_werror_flag"
30732                          || test ! -s conftest.err'
30733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734   (eval $ac_try) 2>&5
30735   ac_status=$?
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); }; } &&
30738          { ac_try='test -s conftest$ac_exeext'
30739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740   (eval $ac_try) 2>&5
30741   ac_status=$?
30742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743   (exit $ac_status); }; }; then
30744   ol_cv_db_db_2=yes
30745 else
30746   echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30748
30749 ol_cv_db_db_2=no
30750 fi
30751 rm -f conftest.err conftest.$ac_objext \
30752       conftest$ac_exeext conftest.$ac_ext
30753
30754         LIBS="$ol_LIBS"
30755
30756 fi
30757 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30758 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30759
30760         if test $ol_cv_db_db_2 = yes ; then
30761                 ol_cv_lib_db=-ldb-2
30762         fi
30763 fi
30764
30765
30766 elif test $ol_cv_bdb_major = 1 ; then
30767         if test $ol_cv_lib_db = no ; then
30768         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30769 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30770 if test "${ol_cv_db_db1+set}" = set; then
30771   echo $ECHO_N "(cached) $ECHO_C" >&6
30772 else
30773
30774         ol_DB_LIB=-ldb1
30775         ol_LIBS=$LIBS
30776         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30777
30778         cat >conftest.$ac_ext <<_ACEOF
30779 /* confdefs.h.  */
30780 _ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h.  */
30784
30785 #ifdef HAVE_DB_185_H
30786 # include <db_185.h>
30787 #else
30788 # include <db.h>
30789 #endif
30790
30791 #ifndef DB_VERSION_MAJOR
30792 # define DB_VERSION_MAJOR 1
30793 #endif
30794
30795 #ifndef NULL
30796 #define NULL ((void*)0)
30797 #endif
30798
30799 int
30800 main ()
30801 {
30802
30803 #if DB_VERSION_MAJOR > 1
30804         {
30805                 char *version;
30806                 int major, minor, patch;
30807
30808                 version = db_version( &major, &minor, &patch );
30809
30810                 if( major != DB_VERSION_MAJOR ||
30811                         minor < DB_VERSION_MINOR )
30812                 {
30813                         printf("Berkeley DB version mismatch\n"
30814                                 "\theader: %s\n\tlibrary: %s\n",
30815                                 DB_VERSION_STRING, version);
30816                         return 1;
30817                 }
30818         }
30819 #endif
30820
30821 #if DB_VERSION_MAJOR > 2
30822         db_env_create( NULL, 0 );
30823 #elif DB_VERSION_MAJOR > 1
30824         db_appexit( NULL );
30825 #else
30826         (void) dbopen( NULL, 0, 0, 0, NULL);
30827 #endif
30828
30829   ;
30830   return 0;
30831 }
30832 _ACEOF
30833 rm -f conftest.$ac_objext conftest$ac_exeext
30834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30835   (eval $ac_link) 2>conftest.er1
30836   ac_status=$?
30837   grep -v '^ *+' conftest.er1 >conftest.err
30838   rm -f conftest.er1
30839   cat conftest.err >&5
30840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841   (exit $ac_status); } &&
30842          { ac_try='test -z "$ac_c_werror_flag"
30843                          || test ! -s conftest.err'
30844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845   (eval $ac_try) 2>&5
30846   ac_status=$?
30847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848   (exit $ac_status); }; } &&
30849          { ac_try='test -s conftest$ac_exeext'
30850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851   (eval $ac_try) 2>&5
30852   ac_status=$?
30853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854   (exit $ac_status); }; }; then
30855   ol_cv_db_db1=yes
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860 ol_cv_db_db1=no
30861 fi
30862 rm -f conftest.err conftest.$ac_objext \
30863       conftest$ac_exeext conftest.$ac_ext
30864
30865         LIBS="$ol_LIBS"
30866
30867 fi
30868 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30869 echo "${ECHO_T}$ol_cv_db_db1" >&6
30870
30871         if test $ol_cv_db_db1 = yes ; then
30872                 ol_cv_lib_db=-ldb1
30873         fi
30874 fi
30875
30876         if test $ol_cv_lib_db = no ; then
30877         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30878 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30879 if test "${ol_cv_db_db_1+set}" = set; then
30880   echo $ECHO_N "(cached) $ECHO_C" >&6
30881 else
30882
30883         ol_DB_LIB=-ldb-1
30884         ol_LIBS=$LIBS
30885         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30886
30887         cat >conftest.$ac_ext <<_ACEOF
30888 /* confdefs.h.  */
30889 _ACEOF
30890 cat confdefs.h >>conftest.$ac_ext
30891 cat >>conftest.$ac_ext <<_ACEOF
30892 /* end confdefs.h.  */
30893
30894 #ifdef HAVE_DB_185_H
30895 # include <db_185.h>
30896 #else
30897 # include <db.h>
30898 #endif
30899
30900 #ifndef DB_VERSION_MAJOR
30901 # define DB_VERSION_MAJOR 1
30902 #endif
30903
30904 #ifndef NULL
30905 #define NULL ((void*)0)
30906 #endif
30907
30908 int
30909 main ()
30910 {
30911
30912 #if DB_VERSION_MAJOR > 1
30913         {
30914                 char *version;
30915                 int major, minor, patch;
30916
30917                 version = db_version( &major, &minor, &patch );
30918
30919                 if( major != DB_VERSION_MAJOR ||
30920                         minor < DB_VERSION_MINOR )
30921                 {
30922                         printf("Berkeley DB version mismatch\n"
30923                                 "\theader: %s\n\tlibrary: %s\n",
30924                                 DB_VERSION_STRING, version);
30925                         return 1;
30926                 }
30927         }
30928 #endif
30929
30930 #if DB_VERSION_MAJOR > 2
30931         db_env_create( NULL, 0 );
30932 #elif DB_VERSION_MAJOR > 1
30933         db_appexit( NULL );
30934 #else
30935         (void) dbopen( NULL, 0, 0, 0, NULL);
30936 #endif
30937
30938   ;
30939   return 0;
30940 }
30941 _ACEOF
30942 rm -f conftest.$ac_objext conftest$ac_exeext
30943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30944   (eval $ac_link) 2>conftest.er1
30945   ac_status=$?
30946   grep -v '^ *+' conftest.er1 >conftest.err
30947   rm -f conftest.er1
30948   cat conftest.err >&5
30949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950   (exit $ac_status); } &&
30951          { ac_try='test -z "$ac_c_werror_flag"
30952                          || test ! -s conftest.err'
30953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954   (eval $ac_try) 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; } &&
30958          { ac_try='test -s conftest$ac_exeext'
30959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960   (eval $ac_try) 2>&5
30961   ac_status=$?
30962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963   (exit $ac_status); }; }; then
30964   ol_cv_db_db_1=yes
30965 else
30966   echo "$as_me: failed program was:" >&5
30967 sed 's/^/| /' conftest.$ac_ext >&5
30968
30969 ol_cv_db_db_1=no
30970 fi
30971 rm -f conftest.err conftest.$ac_objext \
30972       conftest$ac_exeext conftest.$ac_ext
30973
30974         LIBS="$ol_LIBS"
30975
30976 fi
30977 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30978 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30979
30980         if test $ol_cv_db_db_1 = yes ; then
30981                 ol_cv_lib_db=-ldb-1
30982         fi
30983 fi
30984
30985 fi
30986 if test $ol_cv_lib_db = no ; then
30987         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30988 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30989 if test "${ol_cv_db_none+set}" = set; then
30990   echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992
30993         ol_DB_LIB=
30994         ol_LIBS=$LIBS
30995         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30996
30997         cat >conftest.$ac_ext <<_ACEOF
30998 /* confdefs.h.  */
30999 _ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h.  */
31003
31004 #ifdef HAVE_DB_185_H
31005 # include <db_185.h>
31006 #else
31007 # include <db.h>
31008 #endif
31009
31010 #ifndef DB_VERSION_MAJOR
31011 # define DB_VERSION_MAJOR 1
31012 #endif
31013
31014 #ifndef NULL
31015 #define NULL ((void*)0)
31016 #endif
31017
31018 int
31019 main ()
31020 {
31021
31022 #if DB_VERSION_MAJOR > 1
31023         {
31024                 char *version;
31025                 int major, minor, patch;
31026
31027                 version = db_version( &major, &minor, &patch );
31028
31029                 if( major != DB_VERSION_MAJOR ||
31030                         minor < DB_VERSION_MINOR )
31031                 {
31032                         printf("Berkeley DB version mismatch\n"
31033                                 "\theader: %s\n\tlibrary: %s\n",
31034                                 DB_VERSION_STRING, version);
31035                         return 1;
31036                 }
31037         }
31038 #endif
31039
31040 #if DB_VERSION_MAJOR > 2
31041         db_env_create( NULL, 0 );
31042 #elif DB_VERSION_MAJOR > 1
31043         db_appexit( NULL );
31044 #else
31045         (void) dbopen( NULL, 0, 0, 0, NULL);
31046 #endif
31047
31048   ;
31049   return 0;
31050 }
31051 _ACEOF
31052 rm -f conftest.$ac_objext conftest$ac_exeext
31053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054   (eval $ac_link) 2>conftest.er1
31055   ac_status=$?
31056   grep -v '^ *+' conftest.er1 >conftest.err
31057   rm -f conftest.er1
31058   cat conftest.err >&5
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } &&
31061          { ac_try='test -z "$ac_c_werror_flag"
31062                          || test ! -s conftest.err'
31063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064   (eval $ac_try) 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); }; } &&
31068          { ac_try='test -s conftest$ac_exeext'
31069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070   (eval $ac_try) 2>&5
31071   ac_status=$?
31072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073   (exit $ac_status); }; }; then
31074   ol_cv_db_none=yes
31075 else
31076   echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.$ac_ext >&5
31078
31079 ol_cv_db_none=no
31080 fi
31081 rm -f conftest.err conftest.$ac_objext \
31082       conftest$ac_exeext conftest.$ac_ext
31083
31084         LIBS="$ol_LIBS"
31085
31086 fi
31087 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31088 echo "${ECHO_T}$ol_cv_db_none" >&6
31089
31090         if test $ol_cv_db_none = yes ; then
31091                 ol_cv_lib_db=yes
31092         fi
31093 fi
31094
31095
31096                 if test "$ol_cv_lib_db" != no ; then
31097                         ol_cv_berkeley_db=yes
31098                 fi
31099         fi
31100 fi
31101
31102         else
31103                 ol_cv_berkeley_db=no
31104
31105 for ac_header in db.h
31106 do
31107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31109   echo "$as_me:$LINENO: checking for $ac_header" >&5
31110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31112   echo $ECHO_N "(cached) $ECHO_C" >&6
31113 fi
31114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31116 else
31117   # Is the header compilable?
31118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31120 cat >conftest.$ac_ext <<_ACEOF
31121 /* confdefs.h.  */
31122 _ACEOF
31123 cat confdefs.h >>conftest.$ac_ext
31124 cat >>conftest.$ac_ext <<_ACEOF
31125 /* end confdefs.h.  */
31126 $ac_includes_default
31127 #include <$ac_header>
31128 _ACEOF
31129 rm -f conftest.$ac_objext
31130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31131   (eval $ac_compile) 2>conftest.er1
31132   ac_status=$?
31133   grep -v '^ *+' conftest.er1 >conftest.err
31134   rm -f conftest.er1
31135   cat conftest.err >&5
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); } &&
31138          { ac_try='test -z "$ac_c_werror_flag"
31139                          || test ! -s conftest.err'
31140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31141   (eval $ac_try) 2>&5
31142   ac_status=$?
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); }; } &&
31145          { ac_try='test -s conftest.$ac_objext'
31146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31147   (eval $ac_try) 2>&5
31148   ac_status=$?
31149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150   (exit $ac_status); }; }; then
31151   ac_header_compiler=yes
31152 else
31153   echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156 ac_header_compiler=no
31157 fi
31158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31160 echo "${ECHO_T}$ac_header_compiler" >&6
31161
31162 # Is the header present?
31163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31165 cat >conftest.$ac_ext <<_ACEOF
31166 /* confdefs.h.  */
31167 _ACEOF
31168 cat confdefs.h >>conftest.$ac_ext
31169 cat >>conftest.$ac_ext <<_ACEOF
31170 /* end confdefs.h.  */
31171 #include <$ac_header>
31172 _ACEOF
31173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31175   ac_status=$?
31176   grep -v '^ *+' conftest.er1 >conftest.err
31177   rm -f conftest.er1
31178   cat conftest.err >&5
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); } >/dev/null; then
31181   if test -s conftest.err; then
31182     ac_cpp_err=$ac_c_preproc_warn_flag
31183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31184   else
31185     ac_cpp_err=
31186   fi
31187 else
31188   ac_cpp_err=yes
31189 fi
31190 if test -z "$ac_cpp_err"; then
31191   ac_header_preproc=yes
31192 else
31193   echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31195
31196   ac_header_preproc=no
31197 fi
31198 rm -f conftest.err conftest.$ac_ext
31199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31200 echo "${ECHO_T}$ac_header_preproc" >&6
31201
31202 # So?  What about this header?
31203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31204   yes:no: )
31205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31209     ac_header_preproc=yes
31210     ;;
31211   no:yes:* )
31212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31224     (
31225       cat <<\_ASBOX
31226 ## ------------------------------------------ ##
31227 ## Report this to the AC_PACKAGE_NAME lists.  ##
31228 ## ------------------------------------------ ##
31229 _ASBOX
31230     ) |
31231       sed "s/^/$as_me: WARNING:     /" >&2
31232     ;;
31233 esac
31234 echo "$as_me:$LINENO: checking for $ac_header" >&5
31235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31237   echo $ECHO_N "(cached) $ECHO_C" >&6
31238 else
31239   eval "$as_ac_Header=\$ac_header_preproc"
31240 fi
31241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31243
31244 fi
31245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31246   cat >>confdefs.h <<_ACEOF
31247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31248 _ACEOF
31249
31250 fi
31251
31252 done
31253
31254 if test $ac_cv_header_db_h = yes; then
31255         ol_cv_lib_db=no
31256
31257 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31258 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31259 if test "${ol_cv_bdb_major+set}" = set; then
31260   echo $ECHO_N "(cached) $ECHO_C" >&6
31261 else
31262
31263         ol_cv_bdb_major=0
31264         if test $ol_cv_bdb_major = 0 ; then
31265                 cat >conftest.$ac_ext <<_ACEOF
31266 /* confdefs.h.  */
31267 _ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h.  */
31271
31272 #include <db.h>
31273 #ifndef DB_VERSION_MAJOR
31274 #       define DB_VERSION_MAJOR 1
31275 #endif
31276 #if DB_VERSION_MAJOR == 4
31277 __db_version
31278 #endif
31279
31280 _ACEOF
31281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31282   $EGREP "__db_version" >/dev/null 2>&1; then
31283   ol_cv_bdb_major=4
31284 else
31285   :
31286 fi
31287 rm -f conftest*
31288
31289         fi
31290         if test $ol_cv_bdb_major = 0 ; then
31291                 cat >conftest.$ac_ext <<_ACEOF
31292 /* confdefs.h.  */
31293 _ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h.  */
31297
31298 #include <db.h>
31299 #ifndef DB_VERSION_MAJOR
31300 #       define DB_VERSION_MAJOR 1
31301 #endif
31302 #if DB_VERSION_MAJOR == 3
31303 __db_version
31304 #endif
31305
31306 _ACEOF
31307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31308   $EGREP "__db_version" >/dev/null 2>&1; then
31309   ol_cv_bdb_major=3
31310 else
31311   :
31312 fi
31313 rm -f conftest*
31314
31315         fi
31316         if test $ol_cv_bdb_major = 0 ; then
31317                 cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323
31324 #include <db.h>
31325 #ifndef DB_VERSION_MAJOR
31326 #       define DB_VERSION_MAJOR 1
31327 #endif
31328 #if DB_VERSION_MAJOR == 2
31329 __db_version
31330 #endif
31331
31332 _ACEOF
31333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31334   $EGREP "__db_version" >/dev/null 2>&1; then
31335   ol_cv_bdb_major=2
31336 else
31337   :
31338 fi
31339 rm -f conftest*
31340
31341         fi
31342         if test $ol_cv_bdb_major = 0 ; then
31343                 cat >conftest.$ac_ext <<_ACEOF
31344 /* confdefs.h.  */
31345 _ACEOF
31346 cat confdefs.h >>conftest.$ac_ext
31347 cat >>conftest.$ac_ext <<_ACEOF
31348 /* end confdefs.h.  */
31349
31350 #include <db.h>
31351 #ifndef DB_VERSION_MAJOR
31352 #       define DB_VERSION_MAJOR 1
31353 #endif
31354 #if DB_VERSION_MAJOR == 1
31355 __db_version
31356 #endif
31357
31358 _ACEOF
31359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31360   $EGREP "__db_version" >/dev/null 2>&1; then
31361   ol_cv_bdb_major=1
31362 else
31363   :
31364 fi
31365 rm -f conftest*
31366
31367         fi
31368
31369         if test $ol_cv_bdb_major = 0 ; then
31370                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31371 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31372    { (exit 1); exit 1; }; }
31373         fi
31374
31375 fi
31376 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31377 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31378
31379 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31380 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31381 if test "${ol_cv_bdb_minor+set}" = set; then
31382   echo $ECHO_N "(cached) $ECHO_C" >&6
31383 else
31384
31385         ol_cv_bdb_minor=0
31386         if test $ol_cv_bdb_minor = 0 ; then
31387                 cat >conftest.$ac_ext <<_ACEOF
31388 /* confdefs.h.  */
31389 _ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h.  */
31393
31394 #include <db.h>
31395 #ifndef DB_VERSION_MINOR
31396 #       define DB_VERSION_MINOR 0
31397 #endif
31398 #if DB_VERSION_MINOR == 9
31399 __db_version
31400 #endif
31401
31402 _ACEOF
31403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31404   $EGREP "__db_version" >/dev/null 2>&1; then
31405   ol_cv_bdb_minor=9
31406 else
31407   :
31408 fi
31409 rm -f conftest*
31410
31411         fi
31412         if test $ol_cv_bdb_minor = 0 ; then
31413                 cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h.  */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h.  */
31419
31420 #include <db.h>
31421 #ifndef DB_VERSION_MINOR
31422 #       define DB_VERSION_MINOR 0
31423 #endif
31424 #if DB_VERSION_MINOR == 8
31425 __db_version
31426 #endif
31427
31428 _ACEOF
31429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31430   $EGREP "__db_version" >/dev/null 2>&1; then
31431   ol_cv_bdb_minor=8
31432 else
31433   :
31434 fi
31435 rm -f conftest*
31436
31437         fi
31438         if test $ol_cv_bdb_minor = 0 ; then
31439                 cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h.  */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h.  */
31445
31446 #include <db.h>
31447 #ifndef DB_VERSION_MINOR
31448 #       define DB_VERSION_MINOR 0
31449 #endif
31450 #if DB_VERSION_MINOR == 7
31451 __db_version
31452 #endif
31453
31454 _ACEOF
31455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31456   $EGREP "__db_version" >/dev/null 2>&1; then
31457   ol_cv_bdb_minor=7
31458 else
31459   :
31460 fi
31461 rm -f conftest*
31462
31463         fi
31464         if test $ol_cv_bdb_minor = 0 ; then
31465                 cat >conftest.$ac_ext <<_ACEOF
31466 /* confdefs.h.  */
31467 _ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h.  */
31471
31472 #include <db.h>
31473 #ifndef DB_VERSION_MINOR
31474 #       define DB_VERSION_MINOR 0
31475 #endif
31476 #if DB_VERSION_MINOR == 6
31477 __db_version
31478 #endif
31479
31480 _ACEOF
31481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31482   $EGREP "__db_version" >/dev/null 2>&1; then
31483   ol_cv_bdb_minor=6
31484 else
31485   :
31486 fi
31487 rm -f conftest*
31488
31489         fi
31490         if test $ol_cv_bdb_minor = 0 ; then
31491                 cat >conftest.$ac_ext <<_ACEOF
31492 /* confdefs.h.  */
31493 _ACEOF
31494 cat confdefs.h >>conftest.$ac_ext
31495 cat >>conftest.$ac_ext <<_ACEOF
31496 /* end confdefs.h.  */
31497
31498 #include <db.h>
31499 #ifndef DB_VERSION_MINOR
31500 #       define DB_VERSION_MINOR 0
31501 #endif
31502 #if DB_VERSION_MINOR == 5
31503 __db_version
31504 #endif
31505
31506 _ACEOF
31507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31508   $EGREP "__db_version" >/dev/null 2>&1; then
31509   ol_cv_bdb_minor=5
31510 else
31511   :
31512 fi
31513 rm -f conftest*
31514
31515         fi
31516         if test $ol_cv_bdb_minor = 0 ; then
31517                 cat >conftest.$ac_ext <<_ACEOF
31518 /* confdefs.h.  */
31519 _ACEOF
31520 cat confdefs.h >>conftest.$ac_ext
31521 cat >>conftest.$ac_ext <<_ACEOF
31522 /* end confdefs.h.  */
31523
31524 #include <db.h>
31525 #ifndef DB_VERSION_MINOR
31526 #       define DB_VERSION_MINOR 0
31527 #endif
31528 #if DB_VERSION_MINOR == 4
31529 __db_version
31530 #endif
31531
31532 _ACEOF
31533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31534   $EGREP "__db_version" >/dev/null 2>&1; then
31535   ol_cv_bdb_minor=4
31536 else
31537   :
31538 fi
31539 rm -f conftest*
31540
31541         fi
31542         if test $ol_cv_bdb_minor = 0 ; then
31543                 cat >conftest.$ac_ext <<_ACEOF
31544 /* confdefs.h.  */
31545 _ACEOF
31546 cat confdefs.h >>conftest.$ac_ext
31547 cat >>conftest.$ac_ext <<_ACEOF
31548 /* end confdefs.h.  */
31549
31550 #include <db.h>
31551 #ifndef DB_VERSION_MINOR
31552 #       define DB_VERSION_MINOR 0
31553 #endif
31554 #if DB_VERSION_MINOR == 3
31555 __db_version
31556 #endif
31557
31558 _ACEOF
31559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31560   $EGREP "__db_version" >/dev/null 2>&1; then
31561   ol_cv_bdb_minor=3
31562 else
31563   :
31564 fi
31565 rm -f conftest*
31566
31567         fi
31568         if test $ol_cv_bdb_minor = 0 ; then
31569                 cat >conftest.$ac_ext <<_ACEOF
31570 /* confdefs.h.  */
31571 _ACEOF
31572 cat confdefs.h >>conftest.$ac_ext
31573 cat >>conftest.$ac_ext <<_ACEOF
31574 /* end confdefs.h.  */
31575
31576 #include <db.h>
31577 #ifndef DB_VERSION_MINOR
31578 #       define DB_VERSION_MINOR 0
31579 #endif
31580 #if DB_VERSION_MINOR == 2
31581 __db_version
31582 #endif
31583
31584 _ACEOF
31585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31586   $EGREP "__db_version" >/dev/null 2>&1; then
31587   ol_cv_bdb_minor=2
31588 else
31589   :
31590 fi
31591 rm -f conftest*
31592
31593         fi
31594         if test $ol_cv_bdb_minor = 0 ; then
31595                 cat >conftest.$ac_ext <<_ACEOF
31596 /* confdefs.h.  */
31597 _ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h.  */
31601
31602 #include <db.h>
31603 #ifndef DB_VERSION_MINOR
31604 #       define DB_VERSION_MINOR 0
31605 #endif
31606 #if DB_VERSION_MINOR == 1
31607 __db_version
31608 #endif
31609
31610 _ACEOF
31611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31612   $EGREP "__db_version" >/dev/null 2>&1; then
31613   ol_cv_bdb_minor=1
31614 else
31615   :
31616 fi
31617 rm -f conftest*
31618
31619         fi
31620
31621 fi
31622 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31623 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31624
31625 if test $ol_cv_bdb_major = 4 ; then
31626         if test $ol_cv_bdb_minor = 4 ; then
31627                 if test $ol_cv_lib_db = no ; then
31628         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31629 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31630 if test "${ol_cv_db_db44+set}" = set; then
31631   echo $ECHO_N "(cached) $ECHO_C" >&6
31632 else
31633
31634         ol_DB_LIB=-ldb44
31635         ol_LIBS=$LIBS
31636         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31637
31638         cat >conftest.$ac_ext <<_ACEOF
31639 /* confdefs.h.  */
31640 _ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h.  */
31644
31645 #ifdef HAVE_DB_185_H
31646 # include <db_185.h>
31647 #else
31648 # include <db.h>
31649 #endif
31650
31651 #ifndef DB_VERSION_MAJOR
31652 # define DB_VERSION_MAJOR 1
31653 #endif
31654
31655 #ifndef NULL
31656 #define NULL ((void*)0)
31657 #endif
31658
31659 int
31660 main ()
31661 {
31662
31663 #if DB_VERSION_MAJOR > 1
31664         {
31665                 char *version;
31666                 int major, minor, patch;
31667
31668                 version = db_version( &major, &minor, &patch );
31669
31670                 if( major != DB_VERSION_MAJOR ||
31671                         minor < DB_VERSION_MINOR )
31672                 {
31673                         printf("Berkeley DB version mismatch\n"
31674                                 "\theader: %s\n\tlibrary: %s\n",
31675                                 DB_VERSION_STRING, version);
31676                         return 1;
31677                 }
31678         }
31679 #endif
31680
31681 #if DB_VERSION_MAJOR > 2
31682         db_env_create( NULL, 0 );
31683 #elif DB_VERSION_MAJOR > 1
31684         db_appexit( NULL );
31685 #else
31686         (void) dbopen( NULL, 0, 0, 0, NULL);
31687 #endif
31688
31689   ;
31690   return 0;
31691 }
31692 _ACEOF
31693 rm -f conftest.$ac_objext conftest$ac_exeext
31694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31695   (eval $ac_link) 2>conftest.er1
31696   ac_status=$?
31697   grep -v '^ *+' conftest.er1 >conftest.err
31698   rm -f conftest.er1
31699   cat conftest.err >&5
31700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701   (exit $ac_status); } &&
31702          { ac_try='test -z "$ac_c_werror_flag"
31703                          || test ! -s conftest.err'
31704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705   (eval $ac_try) 2>&5
31706   ac_status=$?
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); }; } &&
31709          { ac_try='test -s conftest$ac_exeext'
31710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711   (eval $ac_try) 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; }; then
31715   ol_cv_db_db44=yes
31716 else
31717   echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31719
31720 ol_cv_db_db44=no
31721 fi
31722 rm -f conftest.err conftest.$ac_objext \
31723       conftest$ac_exeext conftest.$ac_ext
31724
31725         LIBS="$ol_LIBS"
31726
31727 fi
31728 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31729 echo "${ECHO_T}$ol_cv_db_db44" >&6
31730
31731         if test $ol_cv_db_db44 = yes ; then
31732                 ol_cv_lib_db=-ldb44
31733         fi
31734 fi
31735
31736                 if test $ol_cv_lib_db = no ; then
31737         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31738 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31739 if test "${ol_cv_db_db_44+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742
31743         ol_DB_LIB=-ldb-44
31744         ol_LIBS=$LIBS
31745         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31746
31747         cat >conftest.$ac_ext <<_ACEOF
31748 /* confdefs.h.  */
31749 _ACEOF
31750 cat confdefs.h >>conftest.$ac_ext
31751 cat >>conftest.$ac_ext <<_ACEOF
31752 /* end confdefs.h.  */
31753
31754 #ifdef HAVE_DB_185_H
31755 # include <db_185.h>
31756 #else
31757 # include <db.h>
31758 #endif
31759
31760 #ifndef DB_VERSION_MAJOR
31761 # define DB_VERSION_MAJOR 1
31762 #endif
31763
31764 #ifndef NULL
31765 #define NULL ((void*)0)
31766 #endif
31767
31768 int
31769 main ()
31770 {
31771
31772 #if DB_VERSION_MAJOR > 1
31773         {
31774                 char *version;
31775                 int major, minor, patch;
31776
31777                 version = db_version( &major, &minor, &patch );
31778
31779                 if( major != DB_VERSION_MAJOR ||
31780                         minor < DB_VERSION_MINOR )
31781                 {
31782                         printf("Berkeley DB version mismatch\n"
31783                                 "\theader: %s\n\tlibrary: %s\n",
31784                                 DB_VERSION_STRING, version);
31785                         return 1;
31786                 }
31787         }
31788 #endif
31789
31790 #if DB_VERSION_MAJOR > 2
31791         db_env_create( NULL, 0 );
31792 #elif DB_VERSION_MAJOR > 1
31793         db_appexit( NULL );
31794 #else
31795         (void) dbopen( NULL, 0, 0, 0, NULL);
31796 #endif
31797
31798   ;
31799   return 0;
31800 }
31801 _ACEOF
31802 rm -f conftest.$ac_objext conftest$ac_exeext
31803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31804   (eval $ac_link) 2>conftest.er1
31805   ac_status=$?
31806   grep -v '^ *+' conftest.er1 >conftest.err
31807   rm -f conftest.er1
31808   cat conftest.err >&5
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); } &&
31811          { ac_try='test -z "$ac_c_werror_flag"
31812                          || test ! -s conftest.err'
31813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814   (eval $ac_try) 2>&5
31815   ac_status=$?
31816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817   (exit $ac_status); }; } &&
31818          { ac_try='test -s conftest$ac_exeext'
31819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31820   (eval $ac_try) 2>&5
31821   ac_status=$?
31822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823   (exit $ac_status); }; }; then
31824   ol_cv_db_db_44=yes
31825 else
31826   echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31828
31829 ol_cv_db_db_44=no
31830 fi
31831 rm -f conftest.err conftest.$ac_objext \
31832       conftest$ac_exeext conftest.$ac_ext
31833
31834         LIBS="$ol_LIBS"
31835
31836 fi
31837 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31838 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31839
31840         if test $ol_cv_db_db_44 = yes ; then
31841                 ol_cv_lib_db=-ldb-44
31842         fi
31843 fi
31844
31845                 if test $ol_cv_lib_db = no ; then
31846         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31847 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31848 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31849   echo $ECHO_N "(cached) $ECHO_C" >&6
31850 else
31851
31852         ol_DB_LIB=-ldb-4.4
31853         ol_LIBS=$LIBS
31854         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31855
31856         cat >conftest.$ac_ext <<_ACEOF
31857 /* confdefs.h.  */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h.  */
31862
31863 #ifdef HAVE_DB_185_H
31864 # include <db_185.h>
31865 #else
31866 # include <db.h>
31867 #endif
31868
31869 #ifndef DB_VERSION_MAJOR
31870 # define DB_VERSION_MAJOR 1
31871 #endif
31872
31873 #ifndef NULL
31874 #define NULL ((void*)0)
31875 #endif
31876
31877 int
31878 main ()
31879 {
31880
31881 #if DB_VERSION_MAJOR > 1
31882         {
31883                 char *version;
31884                 int major, minor, patch;
31885
31886                 version = db_version( &major, &minor, &patch );
31887
31888                 if( major != DB_VERSION_MAJOR ||
31889                         minor < DB_VERSION_MINOR )
31890                 {
31891                         printf("Berkeley DB version mismatch\n"
31892                                 "\theader: %s\n\tlibrary: %s\n",
31893                                 DB_VERSION_STRING, version);
31894                         return 1;
31895                 }
31896         }
31897 #endif
31898
31899 #if DB_VERSION_MAJOR > 2
31900         db_env_create( NULL, 0 );
31901 #elif DB_VERSION_MAJOR > 1
31902         db_appexit( NULL );
31903 #else
31904         (void) dbopen( NULL, 0, 0, 0, NULL);
31905 #endif
31906
31907   ;
31908   return 0;
31909 }
31910 _ACEOF
31911 rm -f conftest.$ac_objext conftest$ac_exeext
31912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31913   (eval $ac_link) 2>conftest.er1
31914   ac_status=$?
31915   grep -v '^ *+' conftest.er1 >conftest.err
31916   rm -f conftest.er1
31917   cat conftest.err >&5
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); } &&
31920          { ac_try='test -z "$ac_c_werror_flag"
31921                          || test ! -s conftest.err'
31922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31923   (eval $ac_try) 2>&5
31924   ac_status=$?
31925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926   (exit $ac_status); }; } &&
31927          { ac_try='test -s conftest$ac_exeext'
31928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929   (eval $ac_try) 2>&5
31930   ac_status=$?
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); }; }; then
31933   ol_cv_db_db_4_dot_4=yes
31934 else
31935   echo "$as_me: failed program was:" >&5
31936 sed 's/^/| /' conftest.$ac_ext >&5
31937
31938 ol_cv_db_db_4_dot_4=no
31939 fi
31940 rm -f conftest.err conftest.$ac_objext \
31941       conftest$ac_exeext conftest.$ac_ext
31942
31943         LIBS="$ol_LIBS"
31944
31945 fi
31946 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31947 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31948
31949         if test $ol_cv_db_db_4_dot_4 = yes ; then
31950                 ol_cv_lib_db=-ldb-4.4
31951         fi
31952 fi
31953
31954                 if test $ol_cv_lib_db = no ; then
31955         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31956 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31957 if test "${ol_cv_db_db_4_4+set}" = set; then
31958   echo $ECHO_N "(cached) $ECHO_C" >&6
31959 else
31960
31961         ol_DB_LIB=-ldb-4-4
31962         ol_LIBS=$LIBS
31963         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31964
31965         cat >conftest.$ac_ext <<_ACEOF
31966 /* confdefs.h.  */
31967 _ACEOF
31968 cat confdefs.h >>conftest.$ac_ext
31969 cat >>conftest.$ac_ext <<_ACEOF
31970 /* end confdefs.h.  */
31971
31972 #ifdef HAVE_DB_185_H
31973 # include <db_185.h>
31974 #else
31975 # include <db.h>
31976 #endif
31977
31978 #ifndef DB_VERSION_MAJOR
31979 # define DB_VERSION_MAJOR 1
31980 #endif
31981
31982 #ifndef NULL
31983 #define NULL ((void*)0)
31984 #endif
31985
31986 int
31987 main ()
31988 {
31989
31990 #if DB_VERSION_MAJOR > 1
31991         {
31992                 char *version;
31993                 int major, minor, patch;
31994
31995                 version = db_version( &major, &minor, &patch );
31996
31997                 if( major != DB_VERSION_MAJOR ||
31998                         minor < DB_VERSION_MINOR )
31999                 {
32000                         printf("Berkeley DB version mismatch\n"
32001                                 "\theader: %s\n\tlibrary: %s\n",
32002                                 DB_VERSION_STRING, version);
32003                         return 1;
32004                 }
32005         }
32006 #endif
32007
32008 #if DB_VERSION_MAJOR > 2
32009         db_env_create( NULL, 0 );
32010 #elif DB_VERSION_MAJOR > 1
32011         db_appexit( NULL );
32012 #else
32013         (void) dbopen( NULL, 0, 0, 0, NULL);
32014 #endif
32015
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022   (eval $ac_link) 2>conftest.er1
32023   ac_status=$?
32024   grep -v '^ *+' conftest.er1 >conftest.err
32025   rm -f conftest.er1
32026   cat conftest.err >&5
32027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028   (exit $ac_status); } &&
32029          { ac_try='test -z "$ac_c_werror_flag"
32030                          || test ! -s conftest.err'
32031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32032   (eval $ac_try) 2>&5
32033   ac_status=$?
32034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32035   (exit $ac_status); }; } &&
32036          { ac_try='test -s conftest$ac_exeext'
32037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32038   (eval $ac_try) 2>&5
32039   ac_status=$?
32040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041   (exit $ac_status); }; }; then
32042   ol_cv_db_db_4_4=yes
32043 else
32044   echo "$as_me: failed program was:" >&5
32045 sed 's/^/| /' conftest.$ac_ext >&5
32046
32047 ol_cv_db_db_4_4=no
32048 fi
32049 rm -f conftest.err conftest.$ac_objext \
32050       conftest$ac_exeext conftest.$ac_ext
32051
32052         LIBS="$ol_LIBS"
32053
32054 fi
32055 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32056 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32057
32058         if test $ol_cv_db_db_4_4 = yes ; then
32059                 ol_cv_lib_db=-ldb-4-4
32060         fi
32061 fi
32062
32063         elif test $ol_cv_bdb_minor = 3 ; then
32064                 if test $ol_cv_lib_db = no ; then
32065         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32066 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32067 if test "${ol_cv_db_db43+set}" = set; then
32068   echo $ECHO_N "(cached) $ECHO_C" >&6
32069 else
32070
32071         ol_DB_LIB=-ldb43
32072         ol_LIBS=$LIBS
32073         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32074
32075         cat >conftest.$ac_ext <<_ACEOF
32076 /* confdefs.h.  */
32077 _ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h.  */
32081
32082 #ifdef HAVE_DB_185_H
32083 # include <db_185.h>
32084 #else
32085 # include <db.h>
32086 #endif
32087
32088 #ifndef DB_VERSION_MAJOR
32089 # define DB_VERSION_MAJOR 1
32090 #endif
32091
32092 #ifndef NULL
32093 #define NULL ((void*)0)
32094 #endif
32095
32096 int
32097 main ()
32098 {
32099
32100 #if DB_VERSION_MAJOR > 1
32101         {
32102                 char *version;
32103                 int major, minor, patch;
32104
32105                 version = db_version( &major, &minor, &patch );
32106
32107                 if( major != DB_VERSION_MAJOR ||
32108                         minor < DB_VERSION_MINOR )
32109                 {
32110                         printf("Berkeley DB version mismatch\n"
32111                                 "\theader: %s\n\tlibrary: %s\n",
32112                                 DB_VERSION_STRING, version);
32113                         return 1;
32114                 }
32115         }
32116 #endif
32117
32118 #if DB_VERSION_MAJOR > 2
32119         db_env_create( NULL, 0 );
32120 #elif DB_VERSION_MAJOR > 1
32121         db_appexit( NULL );
32122 #else
32123         (void) dbopen( NULL, 0, 0, 0, NULL);
32124 #endif
32125
32126   ;
32127   return 0;
32128 }
32129 _ACEOF
32130 rm -f conftest.$ac_objext conftest$ac_exeext
32131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32132   (eval $ac_link) 2>conftest.er1
32133   ac_status=$?
32134   grep -v '^ *+' conftest.er1 >conftest.err
32135   rm -f conftest.er1
32136   cat conftest.err >&5
32137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138   (exit $ac_status); } &&
32139          { ac_try='test -z "$ac_c_werror_flag"
32140                          || test ! -s conftest.err'
32141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32142   (eval $ac_try) 2>&5
32143   ac_status=$?
32144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32145   (exit $ac_status); }; } &&
32146          { ac_try='test -s conftest$ac_exeext'
32147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32148   (eval $ac_try) 2>&5
32149   ac_status=$?
32150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151   (exit $ac_status); }; }; then
32152   ol_cv_db_db43=yes
32153 else
32154   echo "$as_me: failed program was:" >&5
32155 sed 's/^/| /' conftest.$ac_ext >&5
32156
32157 ol_cv_db_db43=no
32158 fi
32159 rm -f conftest.err conftest.$ac_objext \
32160       conftest$ac_exeext conftest.$ac_ext
32161
32162         LIBS="$ol_LIBS"
32163
32164 fi
32165 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32166 echo "${ECHO_T}$ol_cv_db_db43" >&6
32167
32168         if test $ol_cv_db_db43 = yes ; then
32169                 ol_cv_lib_db=-ldb43
32170         fi
32171 fi
32172
32173                 if test $ol_cv_lib_db = no ; then
32174         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32175 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32176 if test "${ol_cv_db_db_43+set}" = set; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179
32180         ol_DB_LIB=-ldb-43
32181         ol_LIBS=$LIBS
32182         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32183
32184         cat >conftest.$ac_ext <<_ACEOF
32185 /* confdefs.h.  */
32186 _ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h.  */
32190
32191 #ifdef HAVE_DB_185_H
32192 # include <db_185.h>
32193 #else
32194 # include <db.h>
32195 #endif
32196
32197 #ifndef DB_VERSION_MAJOR
32198 # define DB_VERSION_MAJOR 1
32199 #endif
32200
32201 #ifndef NULL
32202 #define NULL ((void*)0)
32203 #endif
32204
32205 int
32206 main ()
32207 {
32208
32209 #if DB_VERSION_MAJOR > 1
32210         {
32211                 char *version;
32212                 int major, minor, patch;
32213
32214                 version = db_version( &major, &minor, &patch );
32215
32216                 if( major != DB_VERSION_MAJOR ||
32217                         minor < DB_VERSION_MINOR )
32218                 {
32219                         printf("Berkeley DB version mismatch\n"
32220                                 "\theader: %s\n\tlibrary: %s\n",
32221                                 DB_VERSION_STRING, version);
32222                         return 1;
32223                 }
32224         }
32225 #endif
32226
32227 #if DB_VERSION_MAJOR > 2
32228         db_env_create( NULL, 0 );
32229 #elif DB_VERSION_MAJOR > 1
32230         db_appexit( NULL );
32231 #else
32232         (void) dbopen( NULL, 0, 0, 0, NULL);
32233 #endif
32234
32235   ;
32236   return 0;
32237 }
32238 _ACEOF
32239 rm -f conftest.$ac_objext conftest$ac_exeext
32240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32241   (eval $ac_link) 2>conftest.er1
32242   ac_status=$?
32243   grep -v '^ *+' conftest.er1 >conftest.err
32244   rm -f conftest.er1
32245   cat conftest.err >&5
32246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247   (exit $ac_status); } &&
32248          { ac_try='test -z "$ac_c_werror_flag"
32249                          || test ! -s conftest.err'
32250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32251   (eval $ac_try) 2>&5
32252   ac_status=$?
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); }; } &&
32255          { ac_try='test -s conftest$ac_exeext'
32256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32257   (eval $ac_try) 2>&5
32258   ac_status=$?
32259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260   (exit $ac_status); }; }; then
32261   ol_cv_db_db_43=yes
32262 else
32263   echo "$as_me: failed program was:" >&5
32264 sed 's/^/| /' conftest.$ac_ext >&5
32265
32266 ol_cv_db_db_43=no
32267 fi
32268 rm -f conftest.err conftest.$ac_objext \
32269       conftest$ac_exeext conftest.$ac_ext
32270
32271         LIBS="$ol_LIBS"
32272
32273 fi
32274 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32275 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32276
32277         if test $ol_cv_db_db_43 = yes ; then
32278                 ol_cv_lib_db=-ldb-43
32279         fi
32280 fi
32281
32282                 if test $ol_cv_lib_db = no ; then
32283         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32284 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32285 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32286   echo $ECHO_N "(cached) $ECHO_C" >&6
32287 else
32288
32289         ol_DB_LIB=-ldb-4.3
32290         ol_LIBS=$LIBS
32291         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32292
32293         cat >conftest.$ac_ext <<_ACEOF
32294 /* confdefs.h.  */
32295 _ACEOF
32296 cat confdefs.h >>conftest.$ac_ext
32297 cat >>conftest.$ac_ext <<_ACEOF
32298 /* end confdefs.h.  */
32299
32300 #ifdef HAVE_DB_185_H
32301 # include <db_185.h>
32302 #else
32303 # include <db.h>
32304 #endif
32305
32306 #ifndef DB_VERSION_MAJOR
32307 # define DB_VERSION_MAJOR 1
32308 #endif
32309
32310 #ifndef NULL
32311 #define NULL ((void*)0)
32312 #endif
32313
32314 int
32315 main ()
32316 {
32317
32318 #if DB_VERSION_MAJOR > 1
32319         {
32320                 char *version;
32321                 int major, minor, patch;
32322
32323                 version = db_version( &major, &minor, &patch );
32324
32325                 if( major != DB_VERSION_MAJOR ||
32326                         minor < DB_VERSION_MINOR )
32327                 {
32328                         printf("Berkeley DB version mismatch\n"
32329                                 "\theader: %s\n\tlibrary: %s\n",
32330                                 DB_VERSION_STRING, version);
32331                         return 1;
32332                 }
32333         }
32334 #endif
32335
32336 #if DB_VERSION_MAJOR > 2
32337         db_env_create( NULL, 0 );
32338 #elif DB_VERSION_MAJOR > 1
32339         db_appexit( NULL );
32340 #else
32341         (void) dbopen( NULL, 0, 0, 0, NULL);
32342 #endif
32343
32344   ;
32345   return 0;
32346 }
32347 _ACEOF
32348 rm -f conftest.$ac_objext conftest$ac_exeext
32349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32350   (eval $ac_link) 2>conftest.er1
32351   ac_status=$?
32352   grep -v '^ *+' conftest.er1 >conftest.err
32353   rm -f conftest.er1
32354   cat conftest.err >&5
32355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356   (exit $ac_status); } &&
32357          { ac_try='test -z "$ac_c_werror_flag"
32358                          || test ! -s conftest.err'
32359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360   (eval $ac_try) 2>&5
32361   ac_status=$?
32362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363   (exit $ac_status); }; } &&
32364          { ac_try='test -s conftest$ac_exeext'
32365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32366   (eval $ac_try) 2>&5
32367   ac_status=$?
32368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369   (exit $ac_status); }; }; then
32370   ol_cv_db_db_4_dot_3=yes
32371 else
32372   echo "$as_me: failed program was:" >&5
32373 sed 's/^/| /' conftest.$ac_ext >&5
32374
32375 ol_cv_db_db_4_dot_3=no
32376 fi
32377 rm -f conftest.err conftest.$ac_objext \
32378       conftest$ac_exeext conftest.$ac_ext
32379
32380         LIBS="$ol_LIBS"
32381
32382 fi
32383 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32384 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32385
32386         if test $ol_cv_db_db_4_dot_3 = yes ; then
32387                 ol_cv_lib_db=-ldb-4.3
32388         fi
32389 fi
32390
32391                 if test $ol_cv_lib_db = no ; then
32392         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32393 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32394 if test "${ol_cv_db_db_4_3+set}" = set; then
32395   echo $ECHO_N "(cached) $ECHO_C" >&6
32396 else
32397
32398         ol_DB_LIB=-ldb-4-3
32399         ol_LIBS=$LIBS
32400         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32401
32402         cat >conftest.$ac_ext <<_ACEOF
32403 /* confdefs.h.  */
32404 _ACEOF
32405 cat confdefs.h >>conftest.$ac_ext
32406 cat >>conftest.$ac_ext <<_ACEOF
32407 /* end confdefs.h.  */
32408
32409 #ifdef HAVE_DB_185_H
32410 # include <db_185.h>
32411 #else
32412 # include <db.h>
32413 #endif
32414
32415 #ifndef DB_VERSION_MAJOR
32416 # define DB_VERSION_MAJOR 1
32417 #endif
32418
32419 #ifndef NULL
32420 #define NULL ((void*)0)
32421 #endif
32422
32423 int
32424 main ()
32425 {
32426
32427 #if DB_VERSION_MAJOR > 1
32428         {
32429                 char *version;
32430                 int major, minor, patch;
32431
32432                 version = db_version( &major, &minor, &patch );
32433
32434                 if( major != DB_VERSION_MAJOR ||
32435                         minor < DB_VERSION_MINOR )
32436                 {
32437                         printf("Berkeley DB version mismatch\n"
32438                                 "\theader: %s\n\tlibrary: %s\n",
32439                                 DB_VERSION_STRING, version);
32440                         return 1;
32441                 }
32442         }
32443 #endif
32444
32445 #if DB_VERSION_MAJOR > 2
32446         db_env_create( NULL, 0 );
32447 #elif DB_VERSION_MAJOR > 1
32448         db_appexit( NULL );
32449 #else
32450         (void) dbopen( NULL, 0, 0, 0, NULL);
32451 #endif
32452
32453   ;
32454   return 0;
32455 }
32456 _ACEOF
32457 rm -f conftest.$ac_objext conftest$ac_exeext
32458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32459   (eval $ac_link) 2>conftest.er1
32460   ac_status=$?
32461   grep -v '^ *+' conftest.er1 >conftest.err
32462   rm -f conftest.er1
32463   cat conftest.err >&5
32464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465   (exit $ac_status); } &&
32466          { ac_try='test -z "$ac_c_werror_flag"
32467                          || test ! -s conftest.err'
32468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469   (eval $ac_try) 2>&5
32470   ac_status=$?
32471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472   (exit $ac_status); }; } &&
32473          { ac_try='test -s conftest$ac_exeext'
32474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32475   (eval $ac_try) 2>&5
32476   ac_status=$?
32477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478   (exit $ac_status); }; }; then
32479   ol_cv_db_db_4_3=yes
32480 else
32481   echo "$as_me: failed program was:" >&5
32482 sed 's/^/| /' conftest.$ac_ext >&5
32483
32484 ol_cv_db_db_4_3=no
32485 fi
32486 rm -f conftest.err conftest.$ac_objext \
32487       conftest$ac_exeext conftest.$ac_ext
32488
32489         LIBS="$ol_LIBS"
32490
32491 fi
32492 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32493 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32494
32495         if test $ol_cv_db_db_4_3 = yes ; then
32496                 ol_cv_lib_db=-ldb-4-3
32497         fi
32498 fi
32499
32500         elif test $ol_cv_bdb_minor = 2 ; then
32501                 if test $ol_cv_lib_db = no ; then
32502         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32503 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32504 if test "${ol_cv_db_db42+set}" = set; then
32505   echo $ECHO_N "(cached) $ECHO_C" >&6
32506 else
32507
32508         ol_DB_LIB=-ldb42
32509         ol_LIBS=$LIBS
32510         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32511
32512         cat >conftest.$ac_ext <<_ACEOF
32513 /* confdefs.h.  */
32514 _ACEOF
32515 cat confdefs.h >>conftest.$ac_ext
32516 cat >>conftest.$ac_ext <<_ACEOF
32517 /* end confdefs.h.  */
32518
32519 #ifdef HAVE_DB_185_H
32520 # include <db_185.h>
32521 #else
32522 # include <db.h>
32523 #endif
32524
32525 #ifndef DB_VERSION_MAJOR
32526 # define DB_VERSION_MAJOR 1
32527 #endif
32528
32529 #ifndef NULL
32530 #define NULL ((void*)0)
32531 #endif
32532
32533 int
32534 main ()
32535 {
32536
32537 #if DB_VERSION_MAJOR > 1
32538         {
32539                 char *version;
32540                 int major, minor, patch;
32541
32542                 version = db_version( &major, &minor, &patch );
32543
32544                 if( major != DB_VERSION_MAJOR ||
32545                         minor < DB_VERSION_MINOR )
32546                 {
32547                         printf("Berkeley DB version mismatch\n"
32548                                 "\theader: %s\n\tlibrary: %s\n",
32549                                 DB_VERSION_STRING, version);
32550                         return 1;
32551                 }
32552         }
32553 #endif
32554
32555 #if DB_VERSION_MAJOR > 2
32556         db_env_create( NULL, 0 );
32557 #elif DB_VERSION_MAJOR > 1
32558         db_appexit( NULL );
32559 #else
32560         (void) dbopen( NULL, 0, 0, 0, NULL);
32561 #endif
32562
32563   ;
32564   return 0;
32565 }
32566 _ACEOF
32567 rm -f conftest.$ac_objext conftest$ac_exeext
32568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32569   (eval $ac_link) 2>conftest.er1
32570   ac_status=$?
32571   grep -v '^ *+' conftest.er1 >conftest.err
32572   rm -f conftest.er1
32573   cat conftest.err >&5
32574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575   (exit $ac_status); } &&
32576          { ac_try='test -z "$ac_c_werror_flag"
32577                          || test ! -s conftest.err'
32578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579   (eval $ac_try) 2>&5
32580   ac_status=$?
32581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582   (exit $ac_status); }; } &&
32583          { ac_try='test -s conftest$ac_exeext'
32584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32585   (eval $ac_try) 2>&5
32586   ac_status=$?
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); }; }; then
32589   ol_cv_db_db42=yes
32590 else
32591   echo "$as_me: failed program was:" >&5
32592 sed 's/^/| /' conftest.$ac_ext >&5
32593
32594 ol_cv_db_db42=no
32595 fi
32596 rm -f conftest.err conftest.$ac_objext \
32597       conftest$ac_exeext conftest.$ac_ext
32598
32599         LIBS="$ol_LIBS"
32600
32601 fi
32602 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32603 echo "${ECHO_T}$ol_cv_db_db42" >&6
32604
32605         if test $ol_cv_db_db42 = yes ; then
32606                 ol_cv_lib_db=-ldb42
32607         fi
32608 fi
32609
32610                 if test $ol_cv_lib_db = no ; then
32611         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32612 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32613 if test "${ol_cv_db_db_42+set}" = set; then
32614   echo $ECHO_N "(cached) $ECHO_C" >&6
32615 else
32616
32617         ol_DB_LIB=-ldb-42
32618         ol_LIBS=$LIBS
32619         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32620
32621         cat >conftest.$ac_ext <<_ACEOF
32622 /* confdefs.h.  */
32623 _ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h.  */
32627
32628 #ifdef HAVE_DB_185_H
32629 # include <db_185.h>
32630 #else
32631 # include <db.h>
32632 #endif
32633
32634 #ifndef DB_VERSION_MAJOR
32635 # define DB_VERSION_MAJOR 1
32636 #endif
32637
32638 #ifndef NULL
32639 #define NULL ((void*)0)
32640 #endif
32641
32642 int
32643 main ()
32644 {
32645
32646 #if DB_VERSION_MAJOR > 1
32647         {
32648                 char *version;
32649                 int major, minor, patch;
32650
32651                 version = db_version( &major, &minor, &patch );
32652
32653                 if( major != DB_VERSION_MAJOR ||
32654                         minor < DB_VERSION_MINOR )
32655                 {
32656                         printf("Berkeley DB version mismatch\n"
32657                                 "\theader: %s\n\tlibrary: %s\n",
32658                                 DB_VERSION_STRING, version);
32659                         return 1;
32660                 }
32661         }
32662 #endif
32663
32664 #if DB_VERSION_MAJOR > 2
32665         db_env_create( NULL, 0 );
32666 #elif DB_VERSION_MAJOR > 1
32667         db_appexit( NULL );
32668 #else
32669         (void) dbopen( NULL, 0, 0, 0, NULL);
32670 #endif
32671
32672   ;
32673   return 0;
32674 }
32675 _ACEOF
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678   (eval $ac_link) 2>conftest.er1
32679   ac_status=$?
32680   grep -v '^ *+' conftest.er1 >conftest.err
32681   rm -f conftest.er1
32682   cat conftest.err >&5
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); } &&
32685          { ac_try='test -z "$ac_c_werror_flag"
32686                          || test ! -s conftest.err'
32687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688   (eval $ac_try) 2>&5
32689   ac_status=$?
32690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691   (exit $ac_status); }; } &&
32692          { ac_try='test -s conftest$ac_exeext'
32693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32694   (eval $ac_try) 2>&5
32695   ac_status=$?
32696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697   (exit $ac_status); }; }; then
32698   ol_cv_db_db_42=yes
32699 else
32700   echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32702
32703 ol_cv_db_db_42=no
32704 fi
32705 rm -f conftest.err conftest.$ac_objext \
32706       conftest$ac_exeext conftest.$ac_ext
32707
32708         LIBS="$ol_LIBS"
32709
32710 fi
32711 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32712 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32713
32714         if test $ol_cv_db_db_42 = yes ; then
32715                 ol_cv_lib_db=-ldb-42
32716         fi
32717 fi
32718
32719                 if test $ol_cv_lib_db = no ; then
32720         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32721 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32722 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725
32726         ol_DB_LIB=-ldb-4.2
32727         ol_LIBS=$LIBS
32728         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32729
32730         cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h.  */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h.  */
32736
32737 #ifdef HAVE_DB_185_H
32738 # include <db_185.h>
32739 #else
32740 # include <db.h>
32741 #endif
32742
32743 #ifndef DB_VERSION_MAJOR
32744 # define DB_VERSION_MAJOR 1
32745 #endif
32746
32747 #ifndef NULL
32748 #define NULL ((void*)0)
32749 #endif
32750
32751 int
32752 main ()
32753 {
32754
32755 #if DB_VERSION_MAJOR > 1
32756         {
32757                 char *version;
32758                 int major, minor, patch;
32759
32760                 version = db_version( &major, &minor, &patch );
32761
32762                 if( major != DB_VERSION_MAJOR ||
32763                         minor < DB_VERSION_MINOR )
32764                 {
32765                         printf("Berkeley DB version mismatch\n"
32766                                 "\theader: %s\n\tlibrary: %s\n",
32767                                 DB_VERSION_STRING, version);
32768                         return 1;
32769                 }
32770         }
32771 #endif
32772
32773 #if DB_VERSION_MAJOR > 2
32774         db_env_create( NULL, 0 );
32775 #elif DB_VERSION_MAJOR > 1
32776         db_appexit( NULL );
32777 #else
32778         (void) dbopen( NULL, 0, 0, 0, NULL);
32779 #endif
32780
32781   ;
32782   return 0;
32783 }
32784 _ACEOF
32785 rm -f conftest.$ac_objext conftest$ac_exeext
32786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32787   (eval $ac_link) 2>conftest.er1
32788   ac_status=$?
32789   grep -v '^ *+' conftest.er1 >conftest.err
32790   rm -f conftest.er1
32791   cat conftest.err >&5
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); } &&
32794          { ac_try='test -z "$ac_c_werror_flag"
32795                          || test ! -s conftest.err'
32796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797   (eval $ac_try) 2>&5
32798   ac_status=$?
32799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800   (exit $ac_status); }; } &&
32801          { ac_try='test -s conftest$ac_exeext'
32802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803   (eval $ac_try) 2>&5
32804   ac_status=$?
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); }; }; then
32807   ol_cv_db_db_4_dot_2=yes
32808 else
32809   echo "$as_me: failed program was:" >&5
32810 sed 's/^/| /' conftest.$ac_ext >&5
32811
32812 ol_cv_db_db_4_dot_2=no
32813 fi
32814 rm -f conftest.err conftest.$ac_objext \
32815       conftest$ac_exeext conftest.$ac_ext
32816
32817         LIBS="$ol_LIBS"
32818
32819 fi
32820 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32821 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32822
32823         if test $ol_cv_db_db_4_dot_2 = yes ; then
32824                 ol_cv_lib_db=-ldb-4.2
32825         fi
32826 fi
32827
32828                 if test $ol_cv_lib_db = no ; then
32829         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32830 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32831 if test "${ol_cv_db_db_4_2+set}" = set; then
32832   echo $ECHO_N "(cached) $ECHO_C" >&6
32833 else
32834
32835         ol_DB_LIB=-ldb-4-2
32836         ol_LIBS=$LIBS
32837         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32838
32839         cat >conftest.$ac_ext <<_ACEOF
32840 /* confdefs.h.  */
32841 _ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h.  */
32845
32846 #ifdef HAVE_DB_185_H
32847 # include <db_185.h>
32848 #else
32849 # include <db.h>
32850 #endif
32851
32852 #ifndef DB_VERSION_MAJOR
32853 # define DB_VERSION_MAJOR 1
32854 #endif
32855
32856 #ifndef NULL
32857 #define NULL ((void*)0)
32858 #endif
32859
32860 int
32861 main ()
32862 {
32863
32864 #if DB_VERSION_MAJOR > 1
32865         {
32866                 char *version;
32867                 int major, minor, patch;
32868
32869                 version = db_version( &major, &minor, &patch );
32870
32871                 if( major != DB_VERSION_MAJOR ||
32872                         minor < DB_VERSION_MINOR )
32873                 {
32874                         printf("Berkeley DB version mismatch\n"
32875                                 "\theader: %s\n\tlibrary: %s\n",
32876                                 DB_VERSION_STRING, version);
32877                         return 1;
32878                 }
32879         }
32880 #endif
32881
32882 #if DB_VERSION_MAJOR > 2
32883         db_env_create( NULL, 0 );
32884 #elif DB_VERSION_MAJOR > 1
32885         db_appexit( NULL );
32886 #else
32887         (void) dbopen( NULL, 0, 0, 0, NULL);
32888 #endif
32889
32890   ;
32891   return 0;
32892 }
32893 _ACEOF
32894 rm -f conftest.$ac_objext conftest$ac_exeext
32895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32896   (eval $ac_link) 2>conftest.er1
32897   ac_status=$?
32898   grep -v '^ *+' conftest.er1 >conftest.err
32899   rm -f conftest.er1
32900   cat conftest.err >&5
32901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902   (exit $ac_status); } &&
32903          { ac_try='test -z "$ac_c_werror_flag"
32904                          || test ! -s conftest.err'
32905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906   (eval $ac_try) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; } &&
32910          { ac_try='test -s conftest$ac_exeext'
32911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912   (eval $ac_try) 2>&5
32913   ac_status=$?
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); }; }; then
32916   ol_cv_db_db_4_2=yes
32917 else
32918   echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32920
32921 ol_cv_db_db_4_2=no
32922 fi
32923 rm -f conftest.err conftest.$ac_objext \
32924       conftest$ac_exeext conftest.$ac_ext
32925
32926         LIBS="$ol_LIBS"
32927
32928 fi
32929 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32930 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32931
32932         if test $ol_cv_db_db_4_2 = yes ; then
32933                 ol_cv_lib_db=-ldb-4-2
32934         fi
32935 fi
32936
32937         elif test $ol_cv_bdb_minor = 1 ; then
32938                 if test $ol_cv_lib_db = no ; then
32939         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32940 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32941 if test "${ol_cv_db_db41+set}" = set; then
32942   echo $ECHO_N "(cached) $ECHO_C" >&6
32943 else
32944
32945         ol_DB_LIB=-ldb41
32946         ol_LIBS=$LIBS
32947         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32948
32949         cat >conftest.$ac_ext <<_ACEOF
32950 /* confdefs.h.  */
32951 _ACEOF
32952 cat confdefs.h >>conftest.$ac_ext
32953 cat >>conftest.$ac_ext <<_ACEOF
32954 /* end confdefs.h.  */
32955
32956 #ifdef HAVE_DB_185_H
32957 # include <db_185.h>
32958 #else
32959 # include <db.h>
32960 #endif
32961
32962 #ifndef DB_VERSION_MAJOR
32963 # define DB_VERSION_MAJOR 1
32964 #endif
32965
32966 #ifndef NULL
32967 #define NULL ((void*)0)
32968 #endif
32969
32970 int
32971 main ()
32972 {
32973
32974 #if DB_VERSION_MAJOR > 1
32975         {
32976                 char *version;
32977                 int major, minor, patch;
32978
32979                 version = db_version( &major, &minor, &patch );
32980
32981                 if( major != DB_VERSION_MAJOR ||
32982                         minor < DB_VERSION_MINOR )
32983                 {
32984                         printf("Berkeley DB version mismatch\n"
32985                                 "\theader: %s\n\tlibrary: %s\n",
32986                                 DB_VERSION_STRING, version);
32987                         return 1;
32988                 }
32989         }
32990 #endif
32991
32992 #if DB_VERSION_MAJOR > 2
32993         db_env_create( NULL, 0 );
32994 #elif DB_VERSION_MAJOR > 1
32995         db_appexit( NULL );
32996 #else
32997         (void) dbopen( NULL, 0, 0, 0, NULL);
32998 #endif
32999
33000   ;
33001   return 0;
33002 }
33003 _ACEOF
33004 rm -f conftest.$ac_objext conftest$ac_exeext
33005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33006   (eval $ac_link) 2>conftest.er1
33007   ac_status=$?
33008   grep -v '^ *+' conftest.er1 >conftest.err
33009   rm -f conftest.er1
33010   cat conftest.err >&5
33011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012   (exit $ac_status); } &&
33013          { ac_try='test -z "$ac_c_werror_flag"
33014                          || test ! -s conftest.err'
33015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016   (eval $ac_try) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); }; } &&
33020          { ac_try='test -s conftest$ac_exeext'
33021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33022   (eval $ac_try) 2>&5
33023   ac_status=$?
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); }; }; then
33026   ol_cv_db_db41=yes
33027 else
33028   echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33030
33031 ol_cv_db_db41=no
33032 fi
33033 rm -f conftest.err conftest.$ac_objext \
33034       conftest$ac_exeext conftest.$ac_ext
33035
33036         LIBS="$ol_LIBS"
33037
33038 fi
33039 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33040 echo "${ECHO_T}$ol_cv_db_db41" >&6
33041
33042         if test $ol_cv_db_db41 = yes ; then
33043                 ol_cv_lib_db=-ldb41
33044         fi
33045 fi
33046
33047                 if test $ol_cv_lib_db = no ; then
33048         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33049 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33050 if test "${ol_cv_db_db_41+set}" = set; then
33051   echo $ECHO_N "(cached) $ECHO_C" >&6
33052 else
33053
33054         ol_DB_LIB=-ldb-41
33055         ol_LIBS=$LIBS
33056         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33057
33058         cat >conftest.$ac_ext <<_ACEOF
33059 /* confdefs.h.  */
33060 _ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h.  */
33064
33065 #ifdef HAVE_DB_185_H
33066 # include <db_185.h>
33067 #else
33068 # include <db.h>
33069 #endif
33070
33071 #ifndef DB_VERSION_MAJOR
33072 # define DB_VERSION_MAJOR 1
33073 #endif
33074
33075 #ifndef NULL
33076 #define NULL ((void*)0)
33077 #endif
33078
33079 int
33080 main ()
33081 {
33082
33083 #if DB_VERSION_MAJOR > 1
33084         {
33085                 char *version;
33086                 int major, minor, patch;
33087
33088                 version = db_version( &major, &minor, &patch );
33089
33090                 if( major != DB_VERSION_MAJOR ||
33091                         minor < DB_VERSION_MINOR )
33092                 {
33093                         printf("Berkeley DB version mismatch\n"
33094                                 "\theader: %s\n\tlibrary: %s\n",
33095                                 DB_VERSION_STRING, version);
33096                         return 1;
33097                 }
33098         }
33099 #endif
33100
33101 #if DB_VERSION_MAJOR > 2
33102         db_env_create( NULL, 0 );
33103 #elif DB_VERSION_MAJOR > 1
33104         db_appexit( NULL );
33105 #else
33106         (void) dbopen( NULL, 0, 0, 0, NULL);
33107 #endif
33108
33109   ;
33110   return 0;
33111 }
33112 _ACEOF
33113 rm -f conftest.$ac_objext conftest$ac_exeext
33114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33115   (eval $ac_link) 2>conftest.er1
33116   ac_status=$?
33117   grep -v '^ *+' conftest.er1 >conftest.err
33118   rm -f conftest.er1
33119   cat conftest.err >&5
33120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121   (exit $ac_status); } &&
33122          { ac_try='test -z "$ac_c_werror_flag"
33123                          || test ! -s conftest.err'
33124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33125   (eval $ac_try) 2>&5
33126   ac_status=$?
33127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); }; } &&
33129          { ac_try='test -s conftest$ac_exeext'
33130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33131   (eval $ac_try) 2>&5
33132   ac_status=$?
33133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134   (exit $ac_status); }; }; then
33135   ol_cv_db_db_41=yes
33136 else
33137   echo "$as_me: failed program was:" >&5
33138 sed 's/^/| /' conftest.$ac_ext >&5
33139
33140 ol_cv_db_db_41=no
33141 fi
33142 rm -f conftest.err conftest.$ac_objext \
33143       conftest$ac_exeext conftest.$ac_ext
33144
33145         LIBS="$ol_LIBS"
33146
33147 fi
33148 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33149 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33150
33151         if test $ol_cv_db_db_41 = yes ; then
33152                 ol_cv_lib_db=-ldb-41
33153         fi
33154 fi
33155
33156                 if test $ol_cv_lib_db = no ; then
33157         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33158 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33159 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33160   echo $ECHO_N "(cached) $ECHO_C" >&6
33161 else
33162
33163         ol_DB_LIB=-ldb-4.1
33164         ol_LIBS=$LIBS
33165         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33166
33167         cat >conftest.$ac_ext <<_ACEOF
33168 /* confdefs.h.  */
33169 _ACEOF
33170 cat confdefs.h >>conftest.$ac_ext
33171 cat >>conftest.$ac_ext <<_ACEOF
33172 /* end confdefs.h.  */
33173
33174 #ifdef HAVE_DB_185_H
33175 # include <db_185.h>
33176 #else
33177 # include <db.h>
33178 #endif
33179
33180 #ifndef DB_VERSION_MAJOR
33181 # define DB_VERSION_MAJOR 1
33182 #endif
33183
33184 #ifndef NULL
33185 #define NULL ((void*)0)
33186 #endif
33187
33188 int
33189 main ()
33190 {
33191
33192 #if DB_VERSION_MAJOR > 1
33193         {
33194                 char *version;
33195                 int major, minor, patch;
33196
33197                 version = db_version( &major, &minor, &patch );
33198
33199                 if( major != DB_VERSION_MAJOR ||
33200                         minor < DB_VERSION_MINOR )
33201                 {
33202                         printf("Berkeley DB version mismatch\n"
33203                                 "\theader: %s\n\tlibrary: %s\n",
33204                                 DB_VERSION_STRING, version);
33205                         return 1;
33206                 }
33207         }
33208 #endif
33209
33210 #if DB_VERSION_MAJOR > 2
33211         db_env_create( NULL, 0 );
33212 #elif DB_VERSION_MAJOR > 1
33213         db_appexit( NULL );
33214 #else
33215         (void) dbopen( NULL, 0, 0, 0, NULL);
33216 #endif
33217
33218   ;
33219   return 0;
33220 }
33221 _ACEOF
33222 rm -f conftest.$ac_objext conftest$ac_exeext
33223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33224   (eval $ac_link) 2>conftest.er1
33225   ac_status=$?
33226   grep -v '^ *+' conftest.er1 >conftest.err
33227   rm -f conftest.er1
33228   cat conftest.err >&5
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } &&
33231          { ac_try='test -z "$ac_c_werror_flag"
33232                          || test ! -s conftest.err'
33233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234   (eval $ac_try) 2>&5
33235   ac_status=$?
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); }; } &&
33238          { ac_try='test -s conftest$ac_exeext'
33239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240   (eval $ac_try) 2>&5
33241   ac_status=$?
33242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243   (exit $ac_status); }; }; then
33244   ol_cv_db_db_4_dot_1=yes
33245 else
33246   echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33248
33249 ol_cv_db_db_4_dot_1=no
33250 fi
33251 rm -f conftest.err conftest.$ac_objext \
33252       conftest$ac_exeext conftest.$ac_ext
33253
33254         LIBS="$ol_LIBS"
33255
33256 fi
33257 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33258 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33259
33260         if test $ol_cv_db_db_4_dot_1 = yes ; then
33261                 ol_cv_lib_db=-ldb-4.1
33262         fi
33263 fi
33264
33265                 if test $ol_cv_lib_db = no ; then
33266         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33267 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33268 if test "${ol_cv_db_db_4_1+set}" = set; then
33269   echo $ECHO_N "(cached) $ECHO_C" >&6
33270 else
33271
33272         ol_DB_LIB=-ldb-4-1
33273         ol_LIBS=$LIBS
33274         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33275
33276         cat >conftest.$ac_ext <<_ACEOF
33277 /* confdefs.h.  */
33278 _ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h.  */
33282
33283 #ifdef HAVE_DB_185_H
33284 # include <db_185.h>
33285 #else
33286 # include <db.h>
33287 #endif
33288
33289 #ifndef DB_VERSION_MAJOR
33290 # define DB_VERSION_MAJOR 1
33291 #endif
33292
33293 #ifndef NULL
33294 #define NULL ((void*)0)
33295 #endif
33296
33297 int
33298 main ()
33299 {
33300
33301 #if DB_VERSION_MAJOR > 1
33302         {
33303                 char *version;
33304                 int major, minor, patch;
33305
33306                 version = db_version( &major, &minor, &patch );
33307
33308                 if( major != DB_VERSION_MAJOR ||
33309                         minor < DB_VERSION_MINOR )
33310                 {
33311                         printf("Berkeley DB version mismatch\n"
33312                                 "\theader: %s\n\tlibrary: %s\n",
33313                                 DB_VERSION_STRING, version);
33314                         return 1;
33315                 }
33316         }
33317 #endif
33318
33319 #if DB_VERSION_MAJOR > 2
33320         db_env_create( NULL, 0 );
33321 #elif DB_VERSION_MAJOR > 1
33322         db_appexit( NULL );
33323 #else
33324         (void) dbopen( NULL, 0, 0, 0, NULL);
33325 #endif
33326
33327   ;
33328   return 0;
33329 }
33330 _ACEOF
33331 rm -f conftest.$ac_objext conftest$ac_exeext
33332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33333   (eval $ac_link) 2>conftest.er1
33334   ac_status=$?
33335   grep -v '^ *+' conftest.er1 >conftest.err
33336   rm -f conftest.er1
33337   cat conftest.err >&5
33338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339   (exit $ac_status); } &&
33340          { ac_try='test -z "$ac_c_werror_flag"
33341                          || test ! -s conftest.err'
33342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33343   (eval $ac_try) 2>&5
33344   ac_status=$?
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); }; } &&
33347          { ac_try='test -s conftest$ac_exeext'
33348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349   (eval $ac_try) 2>&5
33350   ac_status=$?
33351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352   (exit $ac_status); }; }; then
33353   ol_cv_db_db_4_1=yes
33354 else
33355   echo "$as_me: failed program was:" >&5
33356 sed 's/^/| /' conftest.$ac_ext >&5
33357
33358 ol_cv_db_db_4_1=no
33359 fi
33360 rm -f conftest.err conftest.$ac_objext \
33361       conftest$ac_exeext conftest.$ac_ext
33362
33363         LIBS="$ol_LIBS"
33364
33365 fi
33366 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33367 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33368
33369         if test $ol_cv_db_db_4_1 = yes ; then
33370                 ol_cv_lib_db=-ldb-4-1
33371         fi
33372 fi
33373
33374         fi
33375         if test $ol_cv_lib_db = no ; then
33376         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33377 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33378 if test "${ol_cv_db_db_4+set}" = set; then
33379   echo $ECHO_N "(cached) $ECHO_C" >&6
33380 else
33381
33382         ol_DB_LIB=-ldb-4
33383         ol_LIBS=$LIBS
33384         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33385
33386         cat >conftest.$ac_ext <<_ACEOF
33387 /* confdefs.h.  */
33388 _ACEOF
33389 cat confdefs.h >>conftest.$ac_ext
33390 cat >>conftest.$ac_ext <<_ACEOF
33391 /* end confdefs.h.  */
33392
33393 #ifdef HAVE_DB_185_H
33394 # include <db_185.h>
33395 #else
33396 # include <db.h>
33397 #endif
33398
33399 #ifndef DB_VERSION_MAJOR
33400 # define DB_VERSION_MAJOR 1
33401 #endif
33402
33403 #ifndef NULL
33404 #define NULL ((void*)0)
33405 #endif
33406
33407 int
33408 main ()
33409 {
33410
33411 #if DB_VERSION_MAJOR > 1
33412         {
33413                 char *version;
33414                 int major, minor, patch;
33415
33416                 version = db_version( &major, &minor, &patch );
33417
33418                 if( major != DB_VERSION_MAJOR ||
33419                         minor < DB_VERSION_MINOR )
33420                 {
33421                         printf("Berkeley DB version mismatch\n"
33422                                 "\theader: %s\n\tlibrary: %s\n",
33423                                 DB_VERSION_STRING, version);
33424                         return 1;
33425                 }
33426         }
33427 #endif
33428
33429 #if DB_VERSION_MAJOR > 2
33430         db_env_create( NULL, 0 );
33431 #elif DB_VERSION_MAJOR > 1
33432         db_appexit( NULL );
33433 #else
33434         (void) dbopen( NULL, 0, 0, 0, NULL);
33435 #endif
33436
33437   ;
33438   return 0;
33439 }
33440 _ACEOF
33441 rm -f conftest.$ac_objext conftest$ac_exeext
33442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33443   (eval $ac_link) 2>conftest.er1
33444   ac_status=$?
33445   grep -v '^ *+' conftest.er1 >conftest.err
33446   rm -f conftest.er1
33447   cat conftest.err >&5
33448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449   (exit $ac_status); } &&
33450          { ac_try='test -z "$ac_c_werror_flag"
33451                          || test ! -s conftest.err'
33452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453   (eval $ac_try) 2>&5
33454   ac_status=$?
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); }; } &&
33457          { ac_try='test -s conftest$ac_exeext'
33458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459   (eval $ac_try) 2>&5
33460   ac_status=$?
33461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462   (exit $ac_status); }; }; then
33463   ol_cv_db_db_4=yes
33464 else
33465   echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33467
33468 ol_cv_db_db_4=no
33469 fi
33470 rm -f conftest.err conftest.$ac_objext \
33471       conftest$ac_exeext conftest.$ac_ext
33472
33473         LIBS="$ol_LIBS"
33474
33475 fi
33476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33477 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33478
33479         if test $ol_cv_db_db_4 = yes ; then
33480                 ol_cv_lib_db=-ldb-4
33481         fi
33482 fi
33483
33484         if test $ol_cv_lib_db = no ; then
33485         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33486 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33487 if test "${ol_cv_db_db4+set}" = set; then
33488   echo $ECHO_N "(cached) $ECHO_C" >&6
33489 else
33490
33491         ol_DB_LIB=-ldb4
33492         ol_LIBS=$LIBS
33493         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33494
33495         cat >conftest.$ac_ext <<_ACEOF
33496 /* confdefs.h.  */
33497 _ACEOF
33498 cat confdefs.h >>conftest.$ac_ext
33499 cat >>conftest.$ac_ext <<_ACEOF
33500 /* end confdefs.h.  */
33501
33502 #ifdef HAVE_DB_185_H
33503 # include <db_185.h>
33504 #else
33505 # include <db.h>
33506 #endif
33507
33508 #ifndef DB_VERSION_MAJOR
33509 # define DB_VERSION_MAJOR 1
33510 #endif
33511
33512 #ifndef NULL
33513 #define NULL ((void*)0)
33514 #endif
33515
33516 int
33517 main ()
33518 {
33519
33520 #if DB_VERSION_MAJOR > 1
33521         {
33522                 char *version;
33523                 int major, minor, patch;
33524
33525                 version = db_version( &major, &minor, &patch );
33526
33527                 if( major != DB_VERSION_MAJOR ||
33528                         minor < DB_VERSION_MINOR )
33529                 {
33530                         printf("Berkeley DB version mismatch\n"
33531                                 "\theader: %s\n\tlibrary: %s\n",
33532                                 DB_VERSION_STRING, version);
33533                         return 1;
33534                 }
33535         }
33536 #endif
33537
33538 #if DB_VERSION_MAJOR > 2
33539         db_env_create( NULL, 0 );
33540 #elif DB_VERSION_MAJOR > 1
33541         db_appexit( NULL );
33542 #else
33543         (void) dbopen( NULL, 0, 0, 0, NULL);
33544 #endif
33545
33546   ;
33547   return 0;
33548 }
33549 _ACEOF
33550 rm -f conftest.$ac_objext conftest$ac_exeext
33551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33552   (eval $ac_link) 2>conftest.er1
33553   ac_status=$?
33554   grep -v '^ *+' conftest.er1 >conftest.err
33555   rm -f conftest.er1
33556   cat conftest.err >&5
33557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558   (exit $ac_status); } &&
33559          { ac_try='test -z "$ac_c_werror_flag"
33560                          || test ! -s conftest.err'
33561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562   (eval $ac_try) 2>&5
33563   ac_status=$?
33564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565   (exit $ac_status); }; } &&
33566          { ac_try='test -s conftest$ac_exeext'
33567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33568   (eval $ac_try) 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); }; }; then
33572   ol_cv_db_db4=yes
33573 else
33574   echo "$as_me: failed program was:" >&5
33575 sed 's/^/| /' conftest.$ac_ext >&5
33576
33577 ol_cv_db_db4=no
33578 fi
33579 rm -f conftest.err conftest.$ac_objext \
33580       conftest$ac_exeext conftest.$ac_ext
33581
33582         LIBS="$ol_LIBS"
33583
33584 fi
33585 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33586 echo "${ECHO_T}$ol_cv_db_db4" >&6
33587
33588         if test $ol_cv_db_db4 = yes ; then
33589                 ol_cv_lib_db=-ldb4
33590         fi
33591 fi
33592
33593         if test $ol_cv_lib_db = no ; then
33594         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33595 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33596 if test "${ol_cv_db_db+set}" = set; then
33597   echo $ECHO_N "(cached) $ECHO_C" >&6
33598 else
33599
33600         ol_DB_LIB=-ldb
33601         ol_LIBS=$LIBS
33602         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33603
33604         cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610
33611 #ifdef HAVE_DB_185_H
33612 # include <db_185.h>
33613 #else
33614 # include <db.h>
33615 #endif
33616
33617 #ifndef DB_VERSION_MAJOR
33618 # define DB_VERSION_MAJOR 1
33619 #endif
33620
33621 #ifndef NULL
33622 #define NULL ((void*)0)
33623 #endif
33624
33625 int
33626 main ()
33627 {
33628
33629 #if DB_VERSION_MAJOR > 1
33630         {
33631                 char *version;
33632                 int major, minor, patch;
33633
33634                 version = db_version( &major, &minor, &patch );
33635
33636                 if( major != DB_VERSION_MAJOR ||
33637                         minor < DB_VERSION_MINOR )
33638                 {
33639                         printf("Berkeley DB version mismatch\n"
33640                                 "\theader: %s\n\tlibrary: %s\n",
33641                                 DB_VERSION_STRING, version);
33642                         return 1;
33643                 }
33644         }
33645 #endif
33646
33647 #if DB_VERSION_MAJOR > 2
33648         db_env_create( NULL, 0 );
33649 #elif DB_VERSION_MAJOR > 1
33650         db_appexit( NULL );
33651 #else
33652         (void) dbopen( NULL, 0, 0, 0, NULL);
33653 #endif
33654
33655   ;
33656   return 0;
33657 }
33658 _ACEOF
33659 rm -f conftest.$ac_objext conftest$ac_exeext
33660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33661   (eval $ac_link) 2>conftest.er1
33662   ac_status=$?
33663   grep -v '^ *+' conftest.er1 >conftest.err
33664   rm -f conftest.er1
33665   cat conftest.err >&5
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); } &&
33668          { ac_try='test -z "$ac_c_werror_flag"
33669                          || test ! -s conftest.err'
33670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33671   (eval $ac_try) 2>&5
33672   ac_status=$?
33673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674   (exit $ac_status); }; } &&
33675          { ac_try='test -s conftest$ac_exeext'
33676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33677   (eval $ac_try) 2>&5
33678   ac_status=$?
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); }; }; then
33681   ol_cv_db_db=yes
33682 else
33683   echo "$as_me: failed program was:" >&5
33684 sed 's/^/| /' conftest.$ac_ext >&5
33685
33686 ol_cv_db_db=no
33687 fi
33688 rm -f conftest.err conftest.$ac_objext \
33689       conftest$ac_exeext conftest.$ac_ext
33690
33691         LIBS="$ol_LIBS"
33692
33693 fi
33694 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33695 echo "${ECHO_T}$ol_cv_db_db" >&6
33696
33697         if test $ol_cv_db_db = yes ; then
33698                 ol_cv_lib_db=-ldb
33699         fi
33700 fi
33701
33702
33703 elif test $ol_cv_bdb_major = 3 ; then
33704         if test $ol_cv_lib_db = no ; then
33705         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33706 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33707 if test "${ol_cv_db_db3+set}" = set; then
33708   echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710
33711         ol_DB_LIB=-ldb3
33712         ol_LIBS=$LIBS
33713         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33714
33715         cat >conftest.$ac_ext <<_ACEOF
33716 /* confdefs.h.  */
33717 _ACEOF
33718 cat confdefs.h >>conftest.$ac_ext
33719 cat >>conftest.$ac_ext <<_ACEOF
33720 /* end confdefs.h.  */
33721
33722 #ifdef HAVE_DB_185_H
33723 # include <db_185.h>
33724 #else
33725 # include <db.h>
33726 #endif
33727
33728 #ifndef DB_VERSION_MAJOR
33729 # define DB_VERSION_MAJOR 1
33730 #endif
33731
33732 #ifndef NULL
33733 #define NULL ((void*)0)
33734 #endif
33735
33736 int
33737 main ()
33738 {
33739
33740 #if DB_VERSION_MAJOR > 1
33741         {
33742                 char *version;
33743                 int major, minor, patch;
33744
33745                 version = db_version( &major, &minor, &patch );
33746
33747                 if( major != DB_VERSION_MAJOR ||
33748                         minor < DB_VERSION_MINOR )
33749                 {
33750                         printf("Berkeley DB version mismatch\n"
33751                                 "\theader: %s\n\tlibrary: %s\n",
33752                                 DB_VERSION_STRING, version);
33753                         return 1;
33754                 }
33755         }
33756 #endif
33757
33758 #if DB_VERSION_MAJOR > 2
33759         db_env_create( NULL, 0 );
33760 #elif DB_VERSION_MAJOR > 1
33761         db_appexit( NULL );
33762 #else
33763         (void) dbopen( NULL, 0, 0, 0, NULL);
33764 #endif
33765
33766   ;
33767   return 0;
33768 }
33769 _ACEOF
33770 rm -f conftest.$ac_objext conftest$ac_exeext
33771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33772   (eval $ac_link) 2>conftest.er1
33773   ac_status=$?
33774   grep -v '^ *+' conftest.er1 >conftest.err
33775   rm -f conftest.er1
33776   cat conftest.err >&5
33777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778   (exit $ac_status); } &&
33779          { ac_try='test -z "$ac_c_werror_flag"
33780                          || test ! -s conftest.err'
33781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782   (eval $ac_try) 2>&5
33783   ac_status=$?
33784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785   (exit $ac_status); }; } &&
33786          { ac_try='test -s conftest$ac_exeext'
33787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788   (eval $ac_try) 2>&5
33789   ac_status=$?
33790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791   (exit $ac_status); }; }; then
33792   ol_cv_db_db3=yes
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797 ol_cv_db_db3=no
33798 fi
33799 rm -f conftest.err conftest.$ac_objext \
33800       conftest$ac_exeext conftest.$ac_ext
33801
33802         LIBS="$ol_LIBS"
33803
33804 fi
33805 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33806 echo "${ECHO_T}$ol_cv_db_db3" >&6
33807
33808         if test $ol_cv_db_db3 = yes ; then
33809                 ol_cv_lib_db=-ldb3
33810         fi
33811 fi
33812
33813         if test $ol_cv_lib_db = no ; then
33814         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33815 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33816 if test "${ol_cv_db_db_3+set}" = set; then
33817   echo $ECHO_N "(cached) $ECHO_C" >&6
33818 else
33819
33820         ol_DB_LIB=-ldb-3
33821         ol_LIBS=$LIBS
33822         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33823
33824         cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830
33831 #ifdef HAVE_DB_185_H
33832 # include <db_185.h>
33833 #else
33834 # include <db.h>
33835 #endif
33836
33837 #ifndef DB_VERSION_MAJOR
33838 # define DB_VERSION_MAJOR 1
33839 #endif
33840
33841 #ifndef NULL
33842 #define NULL ((void*)0)
33843 #endif
33844
33845 int
33846 main ()
33847 {
33848
33849 #if DB_VERSION_MAJOR > 1
33850         {
33851                 char *version;
33852                 int major, minor, patch;
33853
33854                 version = db_version( &major, &minor, &patch );
33855
33856                 if( major != DB_VERSION_MAJOR ||
33857                         minor < DB_VERSION_MINOR )
33858                 {
33859                         printf("Berkeley DB version mismatch\n"
33860                                 "\theader: %s\n\tlibrary: %s\n",
33861                                 DB_VERSION_STRING, version);
33862                         return 1;
33863                 }
33864         }
33865 #endif
33866
33867 #if DB_VERSION_MAJOR > 2
33868         db_env_create( NULL, 0 );
33869 #elif DB_VERSION_MAJOR > 1
33870         db_appexit( NULL );
33871 #else
33872         (void) dbopen( NULL, 0, 0, 0, NULL);
33873 #endif
33874
33875   ;
33876   return 0;
33877 }
33878 _ACEOF
33879 rm -f conftest.$ac_objext conftest$ac_exeext
33880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33881   (eval $ac_link) 2>conftest.er1
33882   ac_status=$?
33883   grep -v '^ *+' conftest.er1 >conftest.err
33884   rm -f conftest.er1
33885   cat conftest.err >&5
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); } &&
33888          { ac_try='test -z "$ac_c_werror_flag"
33889                          || test ! -s conftest.err'
33890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891   (eval $ac_try) 2>&5
33892   ac_status=$?
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); }; } &&
33895          { ac_try='test -s conftest$ac_exeext'
33896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33897   (eval $ac_try) 2>&5
33898   ac_status=$?
33899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900   (exit $ac_status); }; }; then
33901   ol_cv_db_db_3=yes
33902 else
33903   echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.$ac_ext >&5
33905
33906 ol_cv_db_db_3=no
33907 fi
33908 rm -f conftest.err conftest.$ac_objext \
33909       conftest$ac_exeext conftest.$ac_ext
33910
33911         LIBS="$ol_LIBS"
33912
33913 fi
33914 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33915 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33916
33917         if test $ol_cv_db_db_3 = yes ; then
33918                 ol_cv_lib_db=-ldb-3
33919         fi
33920 fi
33921
33922
33923 elif test $ol_cv_bdb_major = 2 ; then
33924         if test $ol_cv_lib_db = no ; then
33925         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33926 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33927 if test "${ol_cv_db_db2+set}" = set; then
33928   echo $ECHO_N "(cached) $ECHO_C" >&6
33929 else
33930
33931         ol_DB_LIB=-ldb2
33932         ol_LIBS=$LIBS
33933         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33934
33935         cat >conftest.$ac_ext <<_ACEOF
33936 /* confdefs.h.  */
33937 _ACEOF
33938 cat confdefs.h >>conftest.$ac_ext
33939 cat >>conftest.$ac_ext <<_ACEOF
33940 /* end confdefs.h.  */
33941
33942 #ifdef HAVE_DB_185_H
33943 # include <db_185.h>
33944 #else
33945 # include <db.h>
33946 #endif
33947
33948 #ifndef DB_VERSION_MAJOR
33949 # define DB_VERSION_MAJOR 1
33950 #endif
33951
33952 #ifndef NULL
33953 #define NULL ((void*)0)
33954 #endif
33955
33956 int
33957 main ()
33958 {
33959
33960 #if DB_VERSION_MAJOR > 1
33961         {
33962                 char *version;
33963                 int major, minor, patch;
33964
33965                 version = db_version( &major, &minor, &patch );
33966
33967                 if( major != DB_VERSION_MAJOR ||
33968                         minor < DB_VERSION_MINOR )
33969                 {
33970                         printf("Berkeley DB version mismatch\n"
33971                                 "\theader: %s\n\tlibrary: %s\n",
33972                                 DB_VERSION_STRING, version);
33973                         return 1;
33974                 }
33975         }
33976 #endif
33977
33978 #if DB_VERSION_MAJOR > 2
33979         db_env_create( NULL, 0 );
33980 #elif DB_VERSION_MAJOR > 1
33981         db_appexit( NULL );
33982 #else
33983         (void) dbopen( NULL, 0, 0, 0, NULL);
33984 #endif
33985
33986   ;
33987   return 0;
33988 }
33989 _ACEOF
33990 rm -f conftest.$ac_objext conftest$ac_exeext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33992   (eval $ac_link) 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } &&
33999          { ac_try='test -z "$ac_c_werror_flag"
34000                          || test ! -s conftest.err'
34001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002   (eval $ac_try) 2>&5
34003   ac_status=$?
34004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005   (exit $ac_status); }; } &&
34006          { ac_try='test -s conftest$ac_exeext'
34007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008   (eval $ac_try) 2>&5
34009   ac_status=$?
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); }; }; then
34012   ol_cv_db_db2=yes
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017 ol_cv_db_db2=no
34018 fi
34019 rm -f conftest.err conftest.$ac_objext \
34020       conftest$ac_exeext conftest.$ac_ext
34021
34022         LIBS="$ol_LIBS"
34023
34024 fi
34025 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34026 echo "${ECHO_T}$ol_cv_db_db2" >&6
34027
34028         if test $ol_cv_db_db2 = yes ; then
34029                 ol_cv_lib_db=-ldb2
34030         fi
34031 fi
34032
34033         if test $ol_cv_lib_db = no ; then
34034         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34035 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34036 if test "${ol_cv_db_db_2+set}" = set; then
34037   echo $ECHO_N "(cached) $ECHO_C" >&6
34038 else
34039
34040         ol_DB_LIB=-ldb-2
34041         ol_LIBS=$LIBS
34042         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34043
34044         cat >conftest.$ac_ext <<_ACEOF
34045 /* confdefs.h.  */
34046 _ACEOF
34047 cat confdefs.h >>conftest.$ac_ext
34048 cat >>conftest.$ac_ext <<_ACEOF
34049 /* end confdefs.h.  */
34050
34051 #ifdef HAVE_DB_185_H
34052 # include <db_185.h>
34053 #else
34054 # include <db.h>
34055 #endif
34056
34057 #ifndef DB_VERSION_MAJOR
34058 # define DB_VERSION_MAJOR 1
34059 #endif
34060
34061 #ifndef NULL
34062 #define NULL ((void*)0)
34063 #endif
34064
34065 int
34066 main ()
34067 {
34068
34069 #if DB_VERSION_MAJOR > 1
34070         {
34071                 char *version;
34072                 int major, minor, patch;
34073
34074                 version = db_version( &major, &minor, &patch );
34075
34076                 if( major != DB_VERSION_MAJOR ||
34077                         minor < DB_VERSION_MINOR )
34078                 {
34079                         printf("Berkeley DB version mismatch\n"
34080                                 "\theader: %s\n\tlibrary: %s\n",
34081                                 DB_VERSION_STRING, version);
34082                         return 1;
34083                 }
34084         }
34085 #endif
34086
34087 #if DB_VERSION_MAJOR > 2
34088         db_env_create( NULL, 0 );
34089 #elif DB_VERSION_MAJOR > 1
34090         db_appexit( NULL );
34091 #else
34092         (void) dbopen( NULL, 0, 0, 0, NULL);
34093 #endif
34094
34095   ;
34096   return 0;
34097 }
34098 _ACEOF
34099 rm -f conftest.$ac_objext conftest$ac_exeext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34101   (eval $ac_link) 2>conftest.er1
34102   ac_status=$?
34103   grep -v '^ *+' conftest.er1 >conftest.err
34104   rm -f conftest.er1
34105   cat conftest.err >&5
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } &&
34108          { ac_try='test -z "$ac_c_werror_flag"
34109                          || test ! -s conftest.err'
34110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111   (eval $ac_try) 2>&5
34112   ac_status=$?
34113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114   (exit $ac_status); }; } &&
34115          { ac_try='test -s conftest$ac_exeext'
34116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117   (eval $ac_try) 2>&5
34118   ac_status=$?
34119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120   (exit $ac_status); }; }; then
34121   ol_cv_db_db_2=yes
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126 ol_cv_db_db_2=no
34127 fi
34128 rm -f conftest.err conftest.$ac_objext \
34129       conftest$ac_exeext conftest.$ac_ext
34130
34131         LIBS="$ol_LIBS"
34132
34133 fi
34134 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34135 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34136
34137         if test $ol_cv_db_db_2 = yes ; then
34138                 ol_cv_lib_db=-ldb-2
34139         fi
34140 fi
34141
34142
34143 elif test $ol_cv_bdb_major = 1 ; then
34144         if test $ol_cv_lib_db = no ; then
34145         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34146 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34147 if test "${ol_cv_db_db1+set}" = set; then
34148   echo $ECHO_N "(cached) $ECHO_C" >&6
34149 else
34150
34151         ol_DB_LIB=-ldb1
34152         ol_LIBS=$LIBS
34153         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34154
34155         cat >conftest.$ac_ext <<_ACEOF
34156 /* confdefs.h.  */
34157 _ACEOF
34158 cat confdefs.h >>conftest.$ac_ext
34159 cat >>conftest.$ac_ext <<_ACEOF
34160 /* end confdefs.h.  */
34161
34162 #ifdef HAVE_DB_185_H
34163 # include <db_185.h>
34164 #else
34165 # include <db.h>
34166 #endif
34167
34168 #ifndef DB_VERSION_MAJOR
34169 # define DB_VERSION_MAJOR 1
34170 #endif
34171
34172 #ifndef NULL
34173 #define NULL ((void*)0)
34174 #endif
34175
34176 int
34177 main ()
34178 {
34179
34180 #if DB_VERSION_MAJOR > 1
34181         {
34182                 char *version;
34183                 int major, minor, patch;
34184
34185                 version = db_version( &major, &minor, &patch );
34186
34187                 if( major != DB_VERSION_MAJOR ||
34188                         minor < DB_VERSION_MINOR )
34189                 {
34190                         printf("Berkeley DB version mismatch\n"
34191                                 "\theader: %s\n\tlibrary: %s\n",
34192                                 DB_VERSION_STRING, version);
34193                         return 1;
34194                 }
34195         }
34196 #endif
34197
34198 #if DB_VERSION_MAJOR > 2
34199         db_env_create( NULL, 0 );
34200 #elif DB_VERSION_MAJOR > 1
34201         db_appexit( NULL );
34202 #else
34203         (void) dbopen( NULL, 0, 0, 0, NULL);
34204 #endif
34205
34206   ;
34207   return 0;
34208 }
34209 _ACEOF
34210 rm -f conftest.$ac_objext conftest$ac_exeext
34211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34212   (eval $ac_link) 2>conftest.er1
34213   ac_status=$?
34214   grep -v '^ *+' conftest.er1 >conftest.err
34215   rm -f conftest.er1
34216   cat conftest.err >&5
34217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218   (exit $ac_status); } &&
34219          { ac_try='test -z "$ac_c_werror_flag"
34220                          || test ! -s conftest.err'
34221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222   (eval $ac_try) 2>&5
34223   ac_status=$?
34224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225   (exit $ac_status); }; } &&
34226          { ac_try='test -s conftest$ac_exeext'
34227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228   (eval $ac_try) 2>&5
34229   ac_status=$?
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); }; }; then
34232   ol_cv_db_db1=yes
34233 else
34234   echo "$as_me: failed program was:" >&5
34235 sed 's/^/| /' conftest.$ac_ext >&5
34236
34237 ol_cv_db_db1=no
34238 fi
34239 rm -f conftest.err conftest.$ac_objext \
34240       conftest$ac_exeext conftest.$ac_ext
34241
34242         LIBS="$ol_LIBS"
34243
34244 fi
34245 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34246 echo "${ECHO_T}$ol_cv_db_db1" >&6
34247
34248         if test $ol_cv_db_db1 = yes ; then
34249                 ol_cv_lib_db=-ldb1
34250         fi
34251 fi
34252
34253         if test $ol_cv_lib_db = no ; then
34254         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34255 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34256 if test "${ol_cv_db_db_1+set}" = set; then
34257   echo $ECHO_N "(cached) $ECHO_C" >&6
34258 else
34259
34260         ol_DB_LIB=-ldb-1
34261         ol_LIBS=$LIBS
34262         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34263
34264         cat >conftest.$ac_ext <<_ACEOF
34265 /* confdefs.h.  */
34266 _ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h.  */
34270
34271 #ifdef HAVE_DB_185_H
34272 # include <db_185.h>
34273 #else
34274 # include <db.h>
34275 #endif
34276
34277 #ifndef DB_VERSION_MAJOR
34278 # define DB_VERSION_MAJOR 1
34279 #endif
34280
34281 #ifndef NULL
34282 #define NULL ((void*)0)
34283 #endif
34284
34285 int
34286 main ()
34287 {
34288
34289 #if DB_VERSION_MAJOR > 1
34290         {
34291                 char *version;
34292                 int major, minor, patch;
34293
34294                 version = db_version( &major, &minor, &patch );
34295
34296                 if( major != DB_VERSION_MAJOR ||
34297                         minor < DB_VERSION_MINOR )
34298                 {
34299                         printf("Berkeley DB version mismatch\n"
34300                                 "\theader: %s\n\tlibrary: %s\n",
34301                                 DB_VERSION_STRING, version);
34302                         return 1;
34303                 }
34304         }
34305 #endif
34306
34307 #if DB_VERSION_MAJOR > 2
34308         db_env_create( NULL, 0 );
34309 #elif DB_VERSION_MAJOR > 1
34310         db_appexit( NULL );
34311 #else
34312         (void) dbopen( NULL, 0, 0, 0, NULL);
34313 #endif
34314
34315   ;
34316   return 0;
34317 }
34318 _ACEOF
34319 rm -f conftest.$ac_objext conftest$ac_exeext
34320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34321   (eval $ac_link) 2>conftest.er1
34322   ac_status=$?
34323   grep -v '^ *+' conftest.er1 >conftest.err
34324   rm -f conftest.er1
34325   cat conftest.err >&5
34326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327   (exit $ac_status); } &&
34328          { ac_try='test -z "$ac_c_werror_flag"
34329                          || test ! -s conftest.err'
34330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331   (eval $ac_try) 2>&5
34332   ac_status=$?
34333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334   (exit $ac_status); }; } &&
34335          { ac_try='test -s conftest$ac_exeext'
34336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34337   (eval $ac_try) 2>&5
34338   ac_status=$?
34339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340   (exit $ac_status); }; }; then
34341   ol_cv_db_db_1=yes
34342 else
34343   echo "$as_me: failed program was:" >&5
34344 sed 's/^/| /' conftest.$ac_ext >&5
34345
34346 ol_cv_db_db_1=no
34347 fi
34348 rm -f conftest.err conftest.$ac_objext \
34349       conftest$ac_exeext conftest.$ac_ext
34350
34351         LIBS="$ol_LIBS"
34352
34353 fi
34354 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34355 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34356
34357         if test $ol_cv_db_db_1 = yes ; then
34358                 ol_cv_lib_db=-ldb-1
34359         fi
34360 fi
34361
34362 fi
34363 if test $ol_cv_lib_db = no ; then
34364         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34365 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34366 if test "${ol_cv_db_none+set}" = set; then
34367   echo $ECHO_N "(cached) $ECHO_C" >&6
34368 else
34369
34370         ol_DB_LIB=
34371         ol_LIBS=$LIBS
34372         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34373
34374         cat >conftest.$ac_ext <<_ACEOF
34375 /* confdefs.h.  */
34376 _ACEOF
34377 cat confdefs.h >>conftest.$ac_ext
34378 cat >>conftest.$ac_ext <<_ACEOF
34379 /* end confdefs.h.  */
34380
34381 #ifdef HAVE_DB_185_H
34382 # include <db_185.h>
34383 #else
34384 # include <db.h>
34385 #endif
34386
34387 #ifndef DB_VERSION_MAJOR
34388 # define DB_VERSION_MAJOR 1
34389 #endif
34390
34391 #ifndef NULL
34392 #define NULL ((void*)0)
34393 #endif
34394
34395 int
34396 main ()
34397 {
34398
34399 #if DB_VERSION_MAJOR > 1
34400         {
34401                 char *version;
34402                 int major, minor, patch;
34403
34404                 version = db_version( &major, &minor, &patch );
34405
34406                 if( major != DB_VERSION_MAJOR ||
34407                         minor < DB_VERSION_MINOR )
34408                 {
34409                         printf("Berkeley DB version mismatch\n"
34410                                 "\theader: %s\n\tlibrary: %s\n",
34411                                 DB_VERSION_STRING, version);
34412                         return 1;
34413                 }
34414         }
34415 #endif
34416
34417 #if DB_VERSION_MAJOR > 2
34418         db_env_create( NULL, 0 );
34419 #elif DB_VERSION_MAJOR > 1
34420         db_appexit( NULL );
34421 #else
34422         (void) dbopen( NULL, 0, 0, 0, NULL);
34423 #endif
34424
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext conftest$ac_exeext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34431   (eval $ac_link) 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } &&
34438          { ac_try='test -z "$ac_c_werror_flag"
34439                          || test ! -s conftest.err'
34440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441   (eval $ac_try) 2>&5
34442   ac_status=$?
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); }; } &&
34445          { ac_try='test -s conftest$ac_exeext'
34446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447   (eval $ac_try) 2>&5
34448   ac_status=$?
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); }; }; then
34451   ol_cv_db_none=yes
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456 ol_cv_db_none=no
34457 fi
34458 rm -f conftest.err conftest.$ac_objext \
34459       conftest$ac_exeext conftest.$ac_ext
34460
34461         LIBS="$ol_LIBS"
34462
34463 fi
34464 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34465 echo "${ECHO_T}$ol_cv_db_none" >&6
34466
34467         if test $ol_cv_db_none = yes ; then
34468                 ol_cv_lib_db=yes
34469         fi
34470 fi
34471
34472
34473         if test "$ol_cv_lib_db" != no ; then
34474                 ol_cv_berkeley_db=yes
34475                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34476 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34477 if test "${ol_cv_berkeley_db_version+set}" = set; then
34478   echo $ECHO_N "(cached) $ECHO_C" >&6
34479 else
34480
34481         ol_LIBS="$LIBS"
34482         LIBS="$LTHREAD_LIBS $LIBS"
34483         if test $ol_cv_lib_db != yes ; then
34484                 LIBS="$ol_cv_lib_db $LIBS"
34485         fi
34486
34487         if test "$cross_compiling" = yes; then
34488   ol_cv_berkeley_db_version=cross
34489 else
34490   cat >conftest.$ac_ext <<_ACEOF
34491 /* confdefs.h.  */
34492 _ACEOF
34493 cat confdefs.h >>conftest.$ac_ext
34494 cat >>conftest.$ac_ext <<_ACEOF
34495 /* end confdefs.h.  */
34496
34497 #ifdef HAVE_DB_185_H
34498         choke me;
34499 #else
34500 #include <db.h>
34501 #endif
34502 #ifndef DB_VERSION_MAJOR
34503 # define DB_VERSION_MAJOR 1
34504 #endif
34505 #ifndef NULL
34506 #define NULL ((void *)0)
34507 #endif
34508 main()
34509 {
34510 #if DB_VERSION_MAJOR > 1
34511         char *version;
34512         int major, minor, patch;
34513
34514         version = db_version( &major, &minor, &patch );
34515
34516         if( major != DB_VERSION_MAJOR ||
34517                 minor != DB_VERSION_MINOR ||
34518                 patch != DB_VERSION_PATCH )
34519         {
34520                 printf("Berkeley DB version mismatch\n"
34521                         "\theader: %s\n\tlibrary: %s\n",
34522                         DB_VERSION_STRING, version);
34523                 return 1;
34524         }
34525 #endif
34526
34527         return 0;
34528 }
34529 _ACEOF
34530 rm -f conftest$ac_exeext
34531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34532   (eval $ac_link) 2>&5
34533   ac_status=$?
34534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34537   (eval $ac_try) 2>&5
34538   ac_status=$?
34539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540   (exit $ac_status); }; }; then
34541   ol_cv_berkeley_db_version=yes
34542 else
34543   echo "$as_me: program exited with status $ac_status" >&5
34544 echo "$as_me: failed program was:" >&5
34545 sed 's/^/| /' conftest.$ac_ext >&5
34546
34547 ( exit $ac_status )
34548 ol_cv_berkeley_db_version=no
34549 fi
34550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34551 fi
34552
34553         LIBS="$ol_LIBS"
34554
34555 fi
34556 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34557 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34558
34559         if test $ol_cv_berkeley_db_version = no ; then
34560                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34561 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34562    { (exit 1); exit 1; }; }
34563         fi
34564
34565                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34566 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34567 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34568   echo $ECHO_N "(cached) $ECHO_C" >&6
34569 else
34570
34571         ol_LIBS="$LIBS"
34572         LIBS="$LTHREAD_LIBS $LIBS"
34573         if test $ol_cv_lib_db != yes ; then
34574                 LIBS="$ol_cv_lib_db $LIBS"
34575         fi
34576
34577         if test "$cross_compiling" = yes; then
34578   ol_cv_berkeley_db_thread=cross
34579 else
34580   cat >conftest.$ac_ext <<_ACEOF
34581 /* confdefs.h.  */
34582 _ACEOF
34583 cat confdefs.h >>conftest.$ac_ext
34584 cat >>conftest.$ac_ext <<_ACEOF
34585 /* end confdefs.h.  */
34586
34587 #ifdef HAVE_DB_185_H
34588         choke me;
34589 #else
34590 #include <db.h>
34591 #endif
34592 #ifndef NULL
34593 #define NULL ((void *)0)
34594 #endif
34595 main()
34596 {
34597         int rc;
34598         u_int32_t flags = DB_CREATE |
34599 #ifdef DB_PRIVATE
34600                 DB_PRIVATE |
34601 #endif
34602                 DB_THREAD;
34603
34604 #if DB_VERSION_MAJOR > 2
34605         DB_ENV *env = NULL;
34606
34607         rc = db_env_create( &env, 0 );
34608
34609         flags |= DB_INIT_MPOOL;
34610 #ifdef DB_MPOOL_PRIVATE
34611         flags |= DB_MPOOL_PRIVATE;
34612 #endif
34613
34614         if( rc ) {
34615                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34616                 return rc;
34617         }
34618
34619 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34620         rc = env->open( env, NULL, flags, 0 );
34621 #else
34622         rc = env->open( env, NULL, NULL, flags, 0 );
34623 #endif
34624
34625         if ( rc == 0 ) {
34626                 rc = env->close( env, 0 );
34627         }
34628
34629         if( rc ) {
34630                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34631                 return rc;
34632         }
34633
34634 #else
34635         DB_ENV env;
34636         memset( &env, '\0', sizeof(env) );
34637
34638         rc = db_appinit( NULL, NULL, &env, flags );
34639
34640         if( rc == 0 ) {
34641                 db_appexit( &env );
34642         }
34643
34644         unlink("__db_mpool.share");
34645         unlink("__db_lock.share");
34646 #endif
34647
34648         return rc;
34649 }
34650 _ACEOF
34651 rm -f conftest$ac_exeext
34652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34653   (eval $ac_link) 2>&5
34654   ac_status=$?
34655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34658   (eval $ac_try) 2>&5
34659   ac_status=$?
34660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661   (exit $ac_status); }; }; then
34662   ol_cv_berkeley_db_thread=yes
34663 else
34664   echo "$as_me: program exited with status $ac_status" >&5
34665 echo "$as_me: failed program was:" >&5
34666 sed 's/^/| /' conftest.$ac_ext >&5
34667
34668 ( exit $ac_status )
34669 ol_cv_berkeley_db_thread=no
34670 fi
34671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34672 fi
34673
34674         LIBS="$ol_LIBS"
34675
34676 fi
34677 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34678 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34679
34680         if test $ol_cv_berkeley_db_thread != no ; then
34681
34682 cat >>confdefs.h <<\_ACEOF
34683 #define HAVE_BERKELEY_DB_THREAD 1
34684 _ACEOF
34685
34686         fi
34687
34688         fi
34689 fi
34690
34691         fi
34692
34693         if test $ol_cv_berkeley_db != no ; then
34694
34695 cat >>confdefs.h <<\_ACEOF
34696 #define HAVE_BERKELEY_DB 1
34697 _ACEOF
34698
34699
34700                 ol_link_ldbm=berkeley
34701                 ol_enable_ldbm_api=berkeley
34702
34703                 if test $ol_enable_ldbm_type = hash ; then
34704
34705 cat >>confdefs.h <<\_ACEOF
34706 #define LDBM_USE_DBHASH 1
34707 _ACEOF
34708
34709                 else
34710
34711 cat >>confdefs.h <<\_ACEOF
34712 #define LDBM_USE_DBBTREE 1
34713 _ACEOF
34714
34715                 fi
34716
34717                                                 if test $ol_cv_lib_db != yes ; then
34718                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34719                 fi
34720         fi
34721         ;;
34722 esac
34723
34724 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34725         if test $ol_link_ldbm != berkeley ; then
34726                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34727 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34728    { (exit 1); exit 1; }; }
34729         else
34730                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34731 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34732 if test "${ol_cv_bdb_compat+set}" = set; then
34733   echo $ECHO_N "(cached) $ECHO_C" >&6
34734 else
34735
34736         cat >conftest.$ac_ext <<_ACEOF
34737 /* confdefs.h.  */
34738 _ACEOF
34739 cat confdefs.h >>conftest.$ac_ext
34740 cat >>conftest.$ac_ext <<_ACEOF
34741 /* end confdefs.h.  */
34742
34743 #include <db.h>
34744
34745  /* this check could be improved */
34746 #ifndef DB_VERSION_MAJOR
34747 #       define DB_VERSION_MAJOR 1
34748 #endif
34749 #ifndef DB_VERSION_MINOR
34750 #       define DB_VERSION_MINOR 0
34751 #endif
34752
34753 /* require 4.2 or later */
34754 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34755         __db_version_compat
34756 #endif
34757
34758 _ACEOF
34759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34760   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34761   ol_cv_bdb_compat=yes
34762 else
34763   ol_cv_bdb_compat=no
34764 fi
34765 rm -f conftest*
34766
34767 fi
34768 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34769 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34770
34771
34772                 if test $ol_cv_bdb_compat != yes ; then
34773                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34774 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34775    { (exit 1); exit 1; }; }
34776                 fi
34777         fi
34778 fi
34779
34780 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34781         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34782 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34783         ol_enable_ldbm_api=none
34784 fi
34785
34786 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34787         echo "$as_me:$LINENO: checking for MDBM library" >&5
34788 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34789 if test "${ol_cv_lib_mdbm+set}" = set; then
34790   echo $ECHO_N "(cached) $ECHO_C" >&6
34791 else
34792         ol_LIBS="$LIBS"
34793         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34794 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34795 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34796   echo $ECHO_N "(cached) $ECHO_C" >&6
34797 else
34798   cat >conftest.$ac_ext <<_ACEOF
34799 /* confdefs.h.  */
34800 _ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h.  */
34804 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34806 #define mdbm_set_chain innocuous_mdbm_set_chain
34807
34808 /* System header to define __stub macros and hopefully few prototypes,
34809     which can conflict with char mdbm_set_chain (); below.
34810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34811     <limits.h> exists even on freestanding compilers.  */
34812
34813 #ifdef __STDC__
34814 # include <limits.h>
34815 #else
34816 # include <assert.h>
34817 #endif
34818
34819 #undef mdbm_set_chain
34820
34821 /* Override any gcc2 internal prototype to avoid an error.  */
34822 #ifdef __cplusplus
34823 extern "C"
34824 {
34825 #endif
34826 /* We use char because int might match the return type of a gcc2
34827    builtin and then its argument prototype would still apply.  */
34828 char mdbm_set_chain ();
34829 /* The GNU C library defines this for functions which it implements
34830     to always fail with ENOSYS.  Some functions are actually named
34831     something starting with __ and the normal name is an alias.  */
34832 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34833 choke me
34834 #else
34835 char (*f) () = mdbm_set_chain;
34836 #endif
34837 #ifdef __cplusplus
34838 }
34839 #endif
34840
34841 int
34842 main ()
34843 {
34844 return f != mdbm_set_chain;
34845   ;
34846   return 0;
34847 }
34848 _ACEOF
34849 rm -f conftest.$ac_objext conftest$ac_exeext
34850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34851   (eval $ac_link) 2>conftest.er1
34852   ac_status=$?
34853   grep -v '^ *+' conftest.er1 >conftest.err
34854   rm -f conftest.er1
34855   cat conftest.err >&5
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); } &&
34858          { ac_try='test -z "$ac_c_werror_flag"
34859                          || test ! -s conftest.err'
34860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34861   (eval $ac_try) 2>&5
34862   ac_status=$?
34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864   (exit $ac_status); }; } &&
34865          { ac_try='test -s conftest$ac_exeext'
34866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34867   (eval $ac_try) 2>&5
34868   ac_status=$?
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); }; }; then
34871   ac_cv_func_mdbm_set_chain=yes
34872 else
34873   echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34875
34876 ac_cv_func_mdbm_set_chain=no
34877 fi
34878 rm -f conftest.err conftest.$ac_objext \
34879       conftest$ac_exeext conftest.$ac_ext
34880 fi
34881 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34882 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34883 if test $ac_cv_func_mdbm_set_chain = yes; then
34884   ol_cv_lib_mdbm=yes
34885 else
34886
34887                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34888 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34889 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34890   echo $ECHO_N "(cached) $ECHO_C" >&6
34891 else
34892   ac_check_lib_save_LIBS=$LIBS
34893 LIBS="-lmdbm  $LIBS"
34894 cat >conftest.$ac_ext <<_ACEOF
34895 /* confdefs.h.  */
34896 _ACEOF
34897 cat confdefs.h >>conftest.$ac_ext
34898 cat >>conftest.$ac_ext <<_ACEOF
34899 /* end confdefs.h.  */
34900
34901 /* Override any gcc2 internal prototype to avoid an error.  */
34902 #ifdef __cplusplus
34903 extern "C"
34904 #endif
34905 /* We use char because int might match the return type of a gcc2
34906    builtin and then its argument prototype would still apply.  */
34907 char mdbm_set_chain ();
34908 int
34909 main ()
34910 {
34911 mdbm_set_chain ();
34912   ;
34913   return 0;
34914 }
34915 _ACEOF
34916 rm -f conftest.$ac_objext conftest$ac_exeext
34917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34918   (eval $ac_link) 2>conftest.er1
34919   ac_status=$?
34920   grep -v '^ *+' conftest.er1 >conftest.err
34921   rm -f conftest.er1
34922   cat conftest.err >&5
34923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924   (exit $ac_status); } &&
34925          { ac_try='test -z "$ac_c_werror_flag"
34926                          || test ! -s conftest.err'
34927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928   (eval $ac_try) 2>&5
34929   ac_status=$?
34930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931   (exit $ac_status); }; } &&
34932          { ac_try='test -s conftest$ac_exeext'
34933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934   (eval $ac_try) 2>&5
34935   ac_status=$?
34936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937   (exit $ac_status); }; }; then
34938   ac_cv_lib_mdbm_mdbm_set_chain=yes
34939 else
34940   echo "$as_me: failed program was:" >&5
34941 sed 's/^/| /' conftest.$ac_ext >&5
34942
34943 ac_cv_lib_mdbm_mdbm_set_chain=no
34944 fi
34945 rm -f conftest.err conftest.$ac_objext \
34946       conftest$ac_exeext conftest.$ac_ext
34947 LIBS=$ac_check_lib_save_LIBS
34948 fi
34949 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34950 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34951 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34952   ol_cv_lib_mdbm=-lmdbm
34953 else
34954   ol_cv_lib_mdbm=no
34955 fi
34956
34957
34958 fi
34959
34960         LIBS="$ol_LIBS"
34961
34962 fi
34963 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34964 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34965
34966
34967
34968 for ac_header in mdbm.h
34969 do
34970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34972   echo "$as_me:$LINENO: checking for $ac_header" >&5
34973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34975   echo $ECHO_N "(cached) $ECHO_C" >&6
34976 fi
34977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34979 else
34980   # Is the header compilable?
34981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34983 cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989 $ac_includes_default
34990 #include <$ac_header>
34991 _ACEOF
34992 rm -f conftest.$ac_objext
34993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34994   (eval $ac_compile) 2>conftest.er1
34995   ac_status=$?
34996   grep -v '^ *+' conftest.er1 >conftest.err
34997   rm -f conftest.er1
34998   cat conftest.err >&5
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); } &&
35001          { ac_try='test -z "$ac_c_werror_flag"
35002                          || test ! -s conftest.err'
35003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004   (eval $ac_try) 2>&5
35005   ac_status=$?
35006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007   (exit $ac_status); }; } &&
35008          { ac_try='test -s conftest.$ac_objext'
35009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35010   (eval $ac_try) 2>&5
35011   ac_status=$?
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); }; }; then
35014   ac_header_compiler=yes
35015 else
35016   echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.$ac_ext >&5
35018
35019 ac_header_compiler=no
35020 fi
35021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35023 echo "${ECHO_T}$ac_header_compiler" >&6
35024
35025 # Is the header present?
35026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35028 cat >conftest.$ac_ext <<_ACEOF
35029 /* confdefs.h.  */
35030 _ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h.  */
35034 #include <$ac_header>
35035 _ACEOF
35036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35038   ac_status=$?
35039   grep -v '^ *+' conftest.er1 >conftest.err
35040   rm -f conftest.er1
35041   cat conftest.err >&5
35042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043   (exit $ac_status); } >/dev/null; then
35044   if test -s conftest.err; then
35045     ac_cpp_err=$ac_c_preproc_warn_flag
35046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35047   else
35048     ac_cpp_err=
35049   fi
35050 else
35051   ac_cpp_err=yes
35052 fi
35053 if test -z "$ac_cpp_err"; then
35054   ac_header_preproc=yes
35055 else
35056   echo "$as_me: failed program was:" >&5
35057 sed 's/^/| /' conftest.$ac_ext >&5
35058
35059   ac_header_preproc=no
35060 fi
35061 rm -f conftest.err conftest.$ac_ext
35062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35063 echo "${ECHO_T}$ac_header_preproc" >&6
35064
35065 # So?  What about this header?
35066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35067   yes:no: )
35068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35072     ac_header_preproc=yes
35073     ;;
35074   no:yes:* )
35075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35087     (
35088       cat <<\_ASBOX
35089 ## ------------------------------------------ ##
35090 ## Report this to the AC_PACKAGE_NAME lists.  ##
35091 ## ------------------------------------------ ##
35092 _ASBOX
35093     ) |
35094       sed "s/^/$as_me: WARNING:     /" >&2
35095     ;;
35096 esac
35097 echo "$as_me:$LINENO: checking for $ac_header" >&5
35098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35100   echo $ECHO_N "(cached) $ECHO_C" >&6
35101 else
35102   eval "$as_ac_Header=\$ac_header_preproc"
35103 fi
35104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35106
35107 fi
35108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35109   cat >>confdefs.h <<_ACEOF
35110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35111 _ACEOF
35112
35113 fi
35114
35115 done
35116
35117  echo "$as_me:$LINENO: checking for db" >&5
35118 echo $ECHO_N "checking for db... $ECHO_C" >&6
35119 if test "${ol_cv_mdbm+set}" = set; then
35120   echo $ECHO_N "(cached) $ECHO_C" >&6
35121 else
35122
35123         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35124                 ol_cv_mdbm=no
35125         else
35126                 ol_cv_mdbm=yes
35127         fi
35128
35129 fi
35130 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35131 echo "${ECHO_T}$ol_cv_mdbm" >&6
35132  if test $ol_cv_mdbm = yes ; then
35133
35134 cat >>confdefs.h <<\_ACEOF
35135 #define HAVE_MDBM 1
35136 _ACEOF
35137
35138  fi
35139
35140
35141         if test $ol_cv_mdbm = yes ; then
35142                 ol_link_ldbm=mdbm
35143                 ol_enable_ldbm_api=mdbm
35144                 if test $ol_cv_lib_mdbm != yes ; then
35145                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35146                 fi
35147         fi
35148 fi
35149
35150 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35151         echo "$as_me:$LINENO: checking for GDBM library" >&5
35152 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35153 if test "${ol_cv_lib_gdbm+set}" = set; then
35154   echo $ECHO_N "(cached) $ECHO_C" >&6
35155 else
35156         ol_LIBS="$LIBS"
35157         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35158 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35159 if test "${ac_cv_func_gdbm_open+set}" = set; then
35160   echo $ECHO_N "(cached) $ECHO_C" >&6
35161 else
35162   cat >conftest.$ac_ext <<_ACEOF
35163 /* confdefs.h.  */
35164 _ACEOF
35165 cat confdefs.h >>conftest.$ac_ext
35166 cat >>conftest.$ac_ext <<_ACEOF
35167 /* end confdefs.h.  */
35168 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35170 #define gdbm_open innocuous_gdbm_open
35171
35172 /* System header to define __stub macros and hopefully few prototypes,
35173     which can conflict with char gdbm_open (); below.
35174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35175     <limits.h> exists even on freestanding compilers.  */
35176
35177 #ifdef __STDC__
35178 # include <limits.h>
35179 #else
35180 # include <assert.h>
35181 #endif
35182
35183 #undef gdbm_open
35184
35185 /* Override any gcc2 internal prototype to avoid an error.  */
35186 #ifdef __cplusplus
35187 extern "C"
35188 {
35189 #endif
35190 /* We use char because int might match the return type of a gcc2
35191    builtin and then its argument prototype would still apply.  */
35192 char gdbm_open ();
35193 /* The GNU C library defines this for functions which it implements
35194     to always fail with ENOSYS.  Some functions are actually named
35195     something starting with __ and the normal name is an alias.  */
35196 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35197 choke me
35198 #else
35199 char (*f) () = gdbm_open;
35200 #endif
35201 #ifdef __cplusplus
35202 }
35203 #endif
35204
35205 int
35206 main ()
35207 {
35208 return f != gdbm_open;
35209   ;
35210   return 0;
35211 }
35212 _ACEOF
35213 rm -f conftest.$ac_objext conftest$ac_exeext
35214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35215   (eval $ac_link) 2>conftest.er1
35216   ac_status=$?
35217   grep -v '^ *+' conftest.er1 >conftest.err
35218   rm -f conftest.er1
35219   cat conftest.err >&5
35220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221   (exit $ac_status); } &&
35222          { ac_try='test -z "$ac_c_werror_flag"
35223                          || test ! -s conftest.err'
35224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35225   (eval $ac_try) 2>&5
35226   ac_status=$?
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); }; } &&
35229          { ac_try='test -s conftest$ac_exeext'
35230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231   (eval $ac_try) 2>&5
35232   ac_status=$?
35233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234   (exit $ac_status); }; }; then
35235   ac_cv_func_gdbm_open=yes
35236 else
35237   echo "$as_me: failed program was:" >&5
35238 sed 's/^/| /' conftest.$ac_ext >&5
35239
35240 ac_cv_func_gdbm_open=no
35241 fi
35242 rm -f conftest.err conftest.$ac_objext \
35243       conftest$ac_exeext conftest.$ac_ext
35244 fi
35245 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35246 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35247 if test $ac_cv_func_gdbm_open = yes; then
35248   ol_cv_lib_gdbm=yes
35249 else
35250
35251                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35252 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35253 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35254   echo $ECHO_N "(cached) $ECHO_C" >&6
35255 else
35256   ac_check_lib_save_LIBS=$LIBS
35257 LIBS="-lgdbm  $LIBS"
35258 cat >conftest.$ac_ext <<_ACEOF
35259 /* confdefs.h.  */
35260 _ACEOF
35261 cat confdefs.h >>conftest.$ac_ext
35262 cat >>conftest.$ac_ext <<_ACEOF
35263 /* end confdefs.h.  */
35264
35265 /* Override any gcc2 internal prototype to avoid an error.  */
35266 #ifdef __cplusplus
35267 extern "C"
35268 #endif
35269 /* We use char because int might match the return type of a gcc2
35270    builtin and then its argument prototype would still apply.  */
35271 char gdbm_open ();
35272 int
35273 main ()
35274 {
35275 gdbm_open ();
35276   ;
35277   return 0;
35278 }
35279 _ACEOF
35280 rm -f conftest.$ac_objext conftest$ac_exeext
35281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35282   (eval $ac_link) 2>conftest.er1
35283   ac_status=$?
35284   grep -v '^ *+' conftest.er1 >conftest.err
35285   rm -f conftest.er1
35286   cat conftest.err >&5
35287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288   (exit $ac_status); } &&
35289          { ac_try='test -z "$ac_c_werror_flag"
35290                          || test ! -s conftest.err'
35291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292   (eval $ac_try) 2>&5
35293   ac_status=$?
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); }; } &&
35296          { ac_try='test -s conftest$ac_exeext'
35297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298   (eval $ac_try) 2>&5
35299   ac_status=$?
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); }; }; then
35302   ac_cv_lib_gdbm_gdbm_open=yes
35303 else
35304   echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35306
35307 ac_cv_lib_gdbm_gdbm_open=no
35308 fi
35309 rm -f conftest.err conftest.$ac_objext \
35310       conftest$ac_exeext conftest.$ac_ext
35311 LIBS=$ac_check_lib_save_LIBS
35312 fi
35313 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35314 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35315 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35316   ol_cv_lib_gdbm=-lgdbm
35317 else
35318   ol_cv_lib_gdbm=no
35319 fi
35320
35321
35322 fi
35323
35324         LIBS="$ol_LIBS"
35325
35326 fi
35327 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35328 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35329
35330
35331
35332 for ac_header in gdbm.h
35333 do
35334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35336   echo "$as_me:$LINENO: checking for $ac_header" >&5
35337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35339   echo $ECHO_N "(cached) $ECHO_C" >&6
35340 fi
35341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35343 else
35344   # Is the header compilable?
35345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35347 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353 $ac_includes_default
35354 #include <$ac_header>
35355 _ACEOF
35356 rm -f conftest.$ac_objext
35357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35358   (eval $ac_compile) 2>conftest.er1
35359   ac_status=$?
35360   grep -v '^ *+' conftest.er1 >conftest.err
35361   rm -f conftest.er1
35362   cat conftest.err >&5
35363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364   (exit $ac_status); } &&
35365          { ac_try='test -z "$ac_c_werror_flag"
35366                          || test ! -s conftest.err'
35367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368   (eval $ac_try) 2>&5
35369   ac_status=$?
35370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371   (exit $ac_status); }; } &&
35372          { ac_try='test -s conftest.$ac_objext'
35373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35374   (eval $ac_try) 2>&5
35375   ac_status=$?
35376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35377   (exit $ac_status); }; }; then
35378   ac_header_compiler=yes
35379 else
35380   echo "$as_me: failed program was:" >&5
35381 sed 's/^/| /' conftest.$ac_ext >&5
35382
35383 ac_header_compiler=no
35384 fi
35385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35387 echo "${ECHO_T}$ac_header_compiler" >&6
35388
35389 # Is the header present?
35390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35392 cat >conftest.$ac_ext <<_ACEOF
35393 /* confdefs.h.  */
35394 _ACEOF
35395 cat confdefs.h >>conftest.$ac_ext
35396 cat >>conftest.$ac_ext <<_ACEOF
35397 /* end confdefs.h.  */
35398 #include <$ac_header>
35399 _ACEOF
35400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35402   ac_status=$?
35403   grep -v '^ *+' conftest.er1 >conftest.err
35404   rm -f conftest.er1
35405   cat conftest.err >&5
35406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407   (exit $ac_status); } >/dev/null; then
35408   if test -s conftest.err; then
35409     ac_cpp_err=$ac_c_preproc_warn_flag
35410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35411   else
35412     ac_cpp_err=
35413   fi
35414 else
35415   ac_cpp_err=yes
35416 fi
35417 if test -z "$ac_cpp_err"; then
35418   ac_header_preproc=yes
35419 else
35420   echo "$as_me: failed program was:" >&5
35421 sed 's/^/| /' conftest.$ac_ext >&5
35422
35423   ac_header_preproc=no
35424 fi
35425 rm -f conftest.err conftest.$ac_ext
35426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35427 echo "${ECHO_T}$ac_header_preproc" >&6
35428
35429 # So?  What about this header?
35430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35431   yes:no: )
35432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35436     ac_header_preproc=yes
35437     ;;
35438   no:yes:* )
35439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35451     (
35452       cat <<\_ASBOX
35453 ## ------------------------------------------ ##
35454 ## Report this to the AC_PACKAGE_NAME lists.  ##
35455 ## ------------------------------------------ ##
35456 _ASBOX
35457     ) |
35458       sed "s/^/$as_me: WARNING:     /" >&2
35459     ;;
35460 esac
35461 echo "$as_me:$LINENO: checking for $ac_header" >&5
35462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35464   echo $ECHO_N "(cached) $ECHO_C" >&6
35465 else
35466   eval "$as_ac_Header=\$ac_header_preproc"
35467 fi
35468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35470
35471 fi
35472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35473   cat >>confdefs.h <<_ACEOF
35474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35475 _ACEOF
35476
35477 fi
35478
35479 done
35480
35481  echo "$as_me:$LINENO: checking for db" >&5
35482 echo $ECHO_N "checking for db... $ECHO_C" >&6
35483 if test "${ol_cv_gdbm+set}" = set; then
35484   echo $ECHO_N "(cached) $ECHO_C" >&6
35485 else
35486
35487         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35488                 ol_cv_gdbm=no
35489         else
35490                 ol_cv_gdbm=yes
35491         fi
35492
35493 fi
35494 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35495 echo "${ECHO_T}$ol_cv_gdbm" >&6
35496  if test $ol_cv_gdbm = yes ; then
35497
35498 cat >>confdefs.h <<\_ACEOF
35499 #define HAVE_GDBM 1
35500 _ACEOF
35501
35502  fi
35503
35504
35505         if test $ol_cv_gdbm = yes ; then
35506                 ol_link_ldbm=gdbm
35507                 ol_enable_ldbm_api=gdbm
35508
35509                 if test $ol_cv_lib_gdbm != yes ; then
35510                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35511                 fi
35512         fi
35513 fi
35514
35515 if test $ol_enable_ldbm_api = ndbm ; then
35516         echo "$as_me:$LINENO: checking for NDBM library" >&5
35517 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35518 if test "${ol_cv_lib_ndbm+set}" = set; then
35519   echo $ECHO_N "(cached) $ECHO_C" >&6
35520 else
35521         ol_LIBS="$LIBS"
35522         echo "$as_me:$LINENO: checking for dbm_open" >&5
35523 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35524 if test "${ac_cv_func_dbm_open+set}" = set; then
35525   echo $ECHO_N "(cached) $ECHO_C" >&6
35526 else
35527   cat >conftest.$ac_ext <<_ACEOF
35528 /* confdefs.h.  */
35529 _ACEOF
35530 cat confdefs.h >>conftest.$ac_ext
35531 cat >>conftest.$ac_ext <<_ACEOF
35532 /* end confdefs.h.  */
35533 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35535 #define dbm_open innocuous_dbm_open
35536
35537 /* System header to define __stub macros and hopefully few prototypes,
35538     which can conflict with char dbm_open (); below.
35539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35540     <limits.h> exists even on freestanding compilers.  */
35541
35542 #ifdef __STDC__
35543 # include <limits.h>
35544 #else
35545 # include <assert.h>
35546 #endif
35547
35548 #undef dbm_open
35549
35550 /* Override any gcc2 internal prototype to avoid an error.  */
35551 #ifdef __cplusplus
35552 extern "C"
35553 {
35554 #endif
35555 /* We use char because int might match the return type of a gcc2
35556    builtin and then its argument prototype would still apply.  */
35557 char dbm_open ();
35558 /* The GNU C library defines this for functions which it implements
35559     to always fail with ENOSYS.  Some functions are actually named
35560     something starting with __ and the normal name is an alias.  */
35561 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35562 choke me
35563 #else
35564 char (*f) () = dbm_open;
35565 #endif
35566 #ifdef __cplusplus
35567 }
35568 #endif
35569
35570 int
35571 main ()
35572 {
35573 return f != dbm_open;
35574   ;
35575   return 0;
35576 }
35577 _ACEOF
35578 rm -f conftest.$ac_objext conftest$ac_exeext
35579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35580   (eval $ac_link) 2>conftest.er1
35581   ac_status=$?
35582   grep -v '^ *+' conftest.er1 >conftest.err
35583   rm -f conftest.er1
35584   cat conftest.err >&5
35585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586   (exit $ac_status); } &&
35587          { ac_try='test -z "$ac_c_werror_flag"
35588                          || test ! -s conftest.err'
35589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35590   (eval $ac_try) 2>&5
35591   ac_status=$?
35592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35593   (exit $ac_status); }; } &&
35594          { ac_try='test -s conftest$ac_exeext'
35595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35596   (eval $ac_try) 2>&5
35597   ac_status=$?
35598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599   (exit $ac_status); }; }; then
35600   ac_cv_func_dbm_open=yes
35601 else
35602   echo "$as_me: failed program was:" >&5
35603 sed 's/^/| /' conftest.$ac_ext >&5
35604
35605 ac_cv_func_dbm_open=no
35606 fi
35607 rm -f conftest.err conftest.$ac_objext \
35608       conftest$ac_exeext conftest.$ac_ext
35609 fi
35610 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35611 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35612 if test $ac_cv_func_dbm_open = yes; then
35613   ol_cv_lib_ndbm=yes
35614 else
35615
35616                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35617 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35618 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35619   echo $ECHO_N "(cached) $ECHO_C" >&6
35620 else
35621   ac_check_lib_save_LIBS=$LIBS
35622 LIBS="-lndbm  $LIBS"
35623 cat >conftest.$ac_ext <<_ACEOF
35624 /* confdefs.h.  */
35625 _ACEOF
35626 cat confdefs.h >>conftest.$ac_ext
35627 cat >>conftest.$ac_ext <<_ACEOF
35628 /* end confdefs.h.  */
35629
35630 /* Override any gcc2 internal prototype to avoid an error.  */
35631 #ifdef __cplusplus
35632 extern "C"
35633 #endif
35634 /* We use char because int might match the return type of a gcc2
35635    builtin and then its argument prototype would still apply.  */
35636 char dbm_open ();
35637 int
35638 main ()
35639 {
35640 dbm_open ();
35641   ;
35642   return 0;
35643 }
35644 _ACEOF
35645 rm -f conftest.$ac_objext conftest$ac_exeext
35646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35647   (eval $ac_link) 2>conftest.er1
35648   ac_status=$?
35649   grep -v '^ *+' conftest.er1 >conftest.err
35650   rm -f conftest.er1
35651   cat conftest.err >&5
35652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); } &&
35654          { ac_try='test -z "$ac_c_werror_flag"
35655                          || test ! -s conftest.err'
35656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657   (eval $ac_try) 2>&5
35658   ac_status=$?
35659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660   (exit $ac_status); }; } &&
35661          { ac_try='test -s conftest$ac_exeext'
35662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663   (eval $ac_try) 2>&5
35664   ac_status=$?
35665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666   (exit $ac_status); }; }; then
35667   ac_cv_lib_ndbm_dbm_open=yes
35668 else
35669   echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35671
35672 ac_cv_lib_ndbm_dbm_open=no
35673 fi
35674 rm -f conftest.err conftest.$ac_objext \
35675       conftest$ac_exeext conftest.$ac_ext
35676 LIBS=$ac_check_lib_save_LIBS
35677 fi
35678 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35679 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35680 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35681   ol_cv_lib_ndbm=-lndbm
35682 else
35683
35684                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35685 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35686 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35687   echo $ECHO_N "(cached) $ECHO_C" >&6
35688 else
35689   ac_check_lib_save_LIBS=$LIBS
35690 LIBS="-ldbm  $LIBS"
35691 cat >conftest.$ac_ext <<_ACEOF
35692 /* confdefs.h.  */
35693 _ACEOF
35694 cat confdefs.h >>conftest.$ac_ext
35695 cat >>conftest.$ac_ext <<_ACEOF
35696 /* end confdefs.h.  */
35697
35698 /* Override any gcc2 internal prototype to avoid an error.  */
35699 #ifdef __cplusplus
35700 extern "C"
35701 #endif
35702 /* We use char because int might match the return type of a gcc2
35703    builtin and then its argument prototype would still apply.  */
35704 char dbm_open ();
35705 int
35706 main ()
35707 {
35708 dbm_open ();
35709   ;
35710   return 0;
35711 }
35712 _ACEOF
35713 rm -f conftest.$ac_objext conftest$ac_exeext
35714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35715   (eval $ac_link) 2>conftest.er1
35716   ac_status=$?
35717   grep -v '^ *+' conftest.er1 >conftest.err
35718   rm -f conftest.er1
35719   cat conftest.err >&5
35720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721   (exit $ac_status); } &&
35722          { ac_try='test -z "$ac_c_werror_flag"
35723                          || test ! -s conftest.err'
35724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35725   (eval $ac_try) 2>&5
35726   ac_status=$?
35727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728   (exit $ac_status); }; } &&
35729          { ac_try='test -s conftest$ac_exeext'
35730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731   (eval $ac_try) 2>&5
35732   ac_status=$?
35733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734   (exit $ac_status); }; }; then
35735   ac_cv_lib_dbm_dbm_open=yes
35736 else
35737   echo "$as_me: failed program was:" >&5
35738 sed 's/^/| /' conftest.$ac_ext >&5
35739
35740 ac_cv_lib_dbm_dbm_open=no
35741 fi
35742 rm -f conftest.err conftest.$ac_objext \
35743       conftest$ac_exeext conftest.$ac_ext
35744 LIBS=$ac_check_lib_save_LIBS
35745 fi
35746 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35747 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35748 if test $ac_cv_lib_dbm_dbm_open = yes; then
35749   ol_cv_lib_ndbm=-ldbm
35750 else
35751   ol_cv_lib_ndbm=no
35752 fi
35753
35754 fi
35755
35756
35757 fi
35758
35759         LIBS="$ol_LIBS"
35760
35761 fi
35762 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35763 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35764
35765
35766
35767 for ac_header in ndbm.h
35768 do
35769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35771   echo "$as_me:$LINENO: checking for $ac_header" >&5
35772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35774   echo $ECHO_N "(cached) $ECHO_C" >&6
35775 fi
35776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35778 else
35779   # Is the header compilable?
35780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35782 cat >conftest.$ac_ext <<_ACEOF
35783 /* confdefs.h.  */
35784 _ACEOF
35785 cat confdefs.h >>conftest.$ac_ext
35786 cat >>conftest.$ac_ext <<_ACEOF
35787 /* end confdefs.h.  */
35788 $ac_includes_default
35789 #include <$ac_header>
35790 _ACEOF
35791 rm -f conftest.$ac_objext
35792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35793   (eval $ac_compile) 2>conftest.er1
35794   ac_status=$?
35795   grep -v '^ *+' conftest.er1 >conftest.err
35796   rm -f conftest.er1
35797   cat conftest.err >&5
35798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799   (exit $ac_status); } &&
35800          { ac_try='test -z "$ac_c_werror_flag"
35801                          || test ! -s conftest.err'
35802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803   (eval $ac_try) 2>&5
35804   ac_status=$?
35805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806   (exit $ac_status); }; } &&
35807          { ac_try='test -s conftest.$ac_objext'
35808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809   (eval $ac_try) 2>&5
35810   ac_status=$?
35811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812   (exit $ac_status); }; }; then
35813   ac_header_compiler=yes
35814 else
35815   echo "$as_me: failed program was:" >&5
35816 sed 's/^/| /' conftest.$ac_ext >&5
35817
35818 ac_header_compiler=no
35819 fi
35820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35822 echo "${ECHO_T}$ac_header_compiler" >&6
35823
35824 # Is the header present?
35825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35827 cat >conftest.$ac_ext <<_ACEOF
35828 /* confdefs.h.  */
35829 _ACEOF
35830 cat confdefs.h >>conftest.$ac_ext
35831 cat >>conftest.$ac_ext <<_ACEOF
35832 /* end confdefs.h.  */
35833 #include <$ac_header>
35834 _ACEOF
35835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35837   ac_status=$?
35838   grep -v '^ *+' conftest.er1 >conftest.err
35839   rm -f conftest.er1
35840   cat conftest.err >&5
35841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842   (exit $ac_status); } >/dev/null; then
35843   if test -s conftest.err; then
35844     ac_cpp_err=$ac_c_preproc_warn_flag
35845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35846   else
35847     ac_cpp_err=
35848   fi
35849 else
35850   ac_cpp_err=yes
35851 fi
35852 if test -z "$ac_cpp_err"; then
35853   ac_header_preproc=yes
35854 else
35855   echo "$as_me: failed program was:" >&5
35856 sed 's/^/| /' conftest.$ac_ext >&5
35857
35858   ac_header_preproc=no
35859 fi
35860 rm -f conftest.err conftest.$ac_ext
35861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35862 echo "${ECHO_T}$ac_header_preproc" >&6
35863
35864 # So?  What about this header?
35865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35866   yes:no: )
35867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35871     ac_header_preproc=yes
35872     ;;
35873   no:yes:* )
35874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35886     (
35887       cat <<\_ASBOX
35888 ## ------------------------------------------ ##
35889 ## Report this to the AC_PACKAGE_NAME lists.  ##
35890 ## ------------------------------------------ ##
35891 _ASBOX
35892     ) |
35893       sed "s/^/$as_me: WARNING:     /" >&2
35894     ;;
35895 esac
35896 echo "$as_me:$LINENO: checking for $ac_header" >&5
35897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35899   echo $ECHO_N "(cached) $ECHO_C" >&6
35900 else
35901   eval "$as_ac_Header=\$ac_header_preproc"
35902 fi
35903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35905
35906 fi
35907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35908   cat >>confdefs.h <<_ACEOF
35909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35910 _ACEOF
35911
35912 fi
35913
35914 done
35915
35916  echo "$as_me:$LINENO: checking for db" >&5
35917 echo $ECHO_N "checking for db... $ECHO_C" >&6
35918 if test "${ol_cv_ndbm+set}" = set; then
35919   echo $ECHO_N "(cached) $ECHO_C" >&6
35920 else
35921
35922         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35923                 ol_cv_ndbm=no
35924         else
35925                 ol_cv_ndbm=yes
35926         fi
35927
35928 fi
35929 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35930 echo "${ECHO_T}$ol_cv_ndbm" >&6
35931  if test $ol_cv_ndbm = yes ; then
35932
35933 cat >>confdefs.h <<\_ACEOF
35934 #define HAVE_NDBM 1
35935 _ACEOF
35936
35937  fi
35938
35939
35940         if test $ol_cv_ndbm = yes ; then
35941                 ol_link_ldbm=ndbm
35942                 ol_enable_ldbm_api=ndbm
35943
35944                 if test $ol_cv_lib_ndbm != yes ; then
35945                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35946                 fi
35947         fi
35948 fi
35949
35950 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35951         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35952 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35953    { (exit 1); exit 1; }; }
35954 fi
35955
35956 if test $ol_enable_bdb = yes ||
35957    test $ol_enable_hdb = yes ||
35958    test $ol_enable_ldbm = yes ; then
35959         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35960 fi
35961
35962
35963 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35964         BUILD_LIBS_DYNAMIC=shared
35965
35966 cat >>confdefs.h <<\_ACEOF
35967 #define LDAP_LIBS_DYNAMIC 1
35968 _ACEOF
35969
35970         LTSTATIC=""
35971 else
35972         BUILD_LIBS_DYNAMIC=static
35973         LTSTATIC="-static"
35974 fi
35975
35976 if test $ol_enable_wrappers != no ; then
35977
35978 for ac_header in tcpd.h
35979 do
35980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35982   echo "$as_me:$LINENO: checking for $ac_header" >&5
35983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35985   echo $ECHO_N "(cached) $ECHO_C" >&6
35986 fi
35987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35989 else
35990   # Is the header compilable?
35991 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35993 cat >conftest.$ac_ext <<_ACEOF
35994 /* confdefs.h.  */
35995 _ACEOF
35996 cat confdefs.h >>conftest.$ac_ext
35997 cat >>conftest.$ac_ext <<_ACEOF
35998 /* end confdefs.h.  */
35999 $ac_includes_default
36000 #include <$ac_header>
36001 _ACEOF
36002 rm -f conftest.$ac_objext
36003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36004   (eval $ac_compile) 2>conftest.er1
36005   ac_status=$?
36006   grep -v '^ *+' conftest.er1 >conftest.err
36007   rm -f conftest.er1
36008   cat conftest.err >&5
36009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010   (exit $ac_status); } &&
36011          { ac_try='test -z "$ac_c_werror_flag"
36012                          || test ! -s conftest.err'
36013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36014   (eval $ac_try) 2>&5
36015   ac_status=$?
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); }; } &&
36018          { ac_try='test -s conftest.$ac_objext'
36019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36020   (eval $ac_try) 2>&5
36021   ac_status=$?
36022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36023   (exit $ac_status); }; }; then
36024   ac_header_compiler=yes
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029 ac_header_compiler=no
36030 fi
36031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36033 echo "${ECHO_T}$ac_header_compiler" >&6
36034
36035 # Is the header present?
36036 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36038 cat >conftest.$ac_ext <<_ACEOF
36039 /* confdefs.h.  */
36040 _ACEOF
36041 cat confdefs.h >>conftest.$ac_ext
36042 cat >>conftest.$ac_ext <<_ACEOF
36043 /* end confdefs.h.  */
36044 #include <$ac_header>
36045 _ACEOF
36046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36048   ac_status=$?
36049   grep -v '^ *+' conftest.er1 >conftest.err
36050   rm -f conftest.er1
36051   cat conftest.err >&5
36052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053   (exit $ac_status); } >/dev/null; then
36054   if test -s conftest.err; then
36055     ac_cpp_err=$ac_c_preproc_warn_flag
36056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36057   else
36058     ac_cpp_err=
36059   fi
36060 else
36061   ac_cpp_err=yes
36062 fi
36063 if test -z "$ac_cpp_err"; then
36064   ac_header_preproc=yes
36065 else
36066   echo "$as_me: failed program was:" >&5
36067 sed 's/^/| /' conftest.$ac_ext >&5
36068
36069   ac_header_preproc=no
36070 fi
36071 rm -f conftest.err conftest.$ac_ext
36072 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36073 echo "${ECHO_T}$ac_header_preproc" >&6
36074
36075 # So?  What about this header?
36076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36077   yes:no: )
36078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36082     ac_header_preproc=yes
36083     ;;
36084   no:yes:* )
36085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36097     (
36098       cat <<\_ASBOX
36099 ## ------------------------------------------ ##
36100 ## Report this to the AC_PACKAGE_NAME lists.  ##
36101 ## ------------------------------------------ ##
36102 _ASBOX
36103     ) |
36104       sed "s/^/$as_me: WARNING:     /" >&2
36105     ;;
36106 esac
36107 echo "$as_me:$LINENO: checking for $ac_header" >&5
36108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36110   echo $ECHO_N "(cached) $ECHO_C" >&6
36111 else
36112   eval "$as_ac_Header=\$ac_header_preproc"
36113 fi
36114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36116
36117 fi
36118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36119   cat >>confdefs.h <<_ACEOF
36120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36121 _ACEOF
36122
36123                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36124 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36125                 save_LIBS="$LIBS"
36126                 LIBS="$LIBS -lwrap"
36127                 cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133
36134 #include <tcpd.h>
36135 int allow_severity = 0;
36136 int deny_severity  = 0;
36137
36138 struct request_info *req;
36139
36140 int
36141 main ()
36142 {
36143
36144 hosts_access(req)
36145
36146   ;
36147   return 0;
36148 }
36149 _ACEOF
36150 rm -f conftest.$ac_objext conftest$ac_exeext
36151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36152   (eval $ac_link) 2>conftest.er1
36153   ac_status=$?
36154   grep -v '^ *+' conftest.er1 >conftest.err
36155   rm -f conftest.er1
36156   cat conftest.err >&5
36157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158   (exit $ac_status); } &&
36159          { ac_try='test -z "$ac_c_werror_flag"
36160                          || test ! -s conftest.err'
36161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36162   (eval $ac_try) 2>&5
36163   ac_status=$?
36164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165   (exit $ac_status); }; } &&
36166          { ac_try='test -s conftest$ac_exeext'
36167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36168   (eval $ac_try) 2>&5
36169   ac_status=$?
36170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171   (exit $ac_status); }; }; then
36172   echo "$as_me:$LINENO: result: -lwrap" >&5
36173 echo "${ECHO_T}-lwrap" >&6
36174                 have_wrappers=yes
36175                 LIBS="$save_LIBS"
36176 else
36177   echo "$as_me: failed program was:" >&5
36178 sed 's/^/| /' conftest.$ac_ext >&5
36179
36180
36181                                 LIBS="$LIBS -lnsl"
36182                 cat >conftest.$ac_ext <<_ACEOF
36183 /* confdefs.h.  */
36184 _ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h.  */
36188
36189 #include <tcpd.h>
36190 int allow_severity = 0;
36191 int deny_severity  = 0;
36192
36193 struct request_info *req;
36194
36195 int
36196 main ()
36197 {
36198
36199 hosts_access(req)
36200
36201   ;
36202   return 0;
36203 }
36204 _ACEOF
36205 rm -f conftest.$ac_objext conftest$ac_exeext
36206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36207   (eval $ac_link) 2>conftest.er1
36208   ac_status=$?
36209   grep -v '^ *+' conftest.er1 >conftest.err
36210   rm -f conftest.er1
36211   cat conftest.err >&5
36212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36213   (exit $ac_status); } &&
36214          { ac_try='test -z "$ac_c_werror_flag"
36215                          || test ! -s conftest.err'
36216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217   (eval $ac_try) 2>&5
36218   ac_status=$?
36219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220   (exit $ac_status); }; } &&
36221          { ac_try='test -s conftest$ac_exeext'
36222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223   (eval $ac_try) 2>&5
36224   ac_status=$?
36225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226   (exit $ac_status); }; }; then
36227   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36228 echo "${ECHO_T}-lwrap -lnsl" >&6
36229                 have_wrappers=yes
36230                 LIBS="$save_LIBS -lnsl"
36231 else
36232   echo "$as_me: failed program was:" >&5
36233 sed 's/^/| /' conftest.$ac_ext >&5
36234
36235
36236                 echo "$as_me:$LINENO: result: no" >&5
36237 echo "${ECHO_T}no" >&6
36238                 have_wrappers=no
36239                 LIBS=$save_LIBS
36240 fi
36241 rm -f conftest.err conftest.$ac_objext \
36242       conftest$ac_exeext conftest.$ac_ext
36243 fi
36244 rm -f conftest.err conftest.$ac_objext \
36245       conftest$ac_exeext conftest.$ac_ext
36246 else
36247   have_wrappers=no
36248 fi
36249
36250 done
36251
36252
36253         if test $have_wrappers = yes ; then
36254
36255 cat >>confdefs.h <<\_ACEOF
36256 #define HAVE_TCPD 1
36257 _ACEOF
36258
36259                 WRAP_LIBS="-lwrap"
36260         elif test $ol_enable_wrappers = yes ; then
36261                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36262 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36263    { (exit 1); exit 1; }; }
36264         else
36265                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36266 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36267                 WRAP_LIBS=""
36268         fi
36269 fi
36270
36271 if test $ol_enable_syslog != no ; then
36272         echo "$as_me:$LINENO: checking for openlog" >&5
36273 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36274 if test "${ac_cv_func_openlog+set}" = set; then
36275   echo $ECHO_N "(cached) $ECHO_C" >&6
36276 else
36277   cat >conftest.$ac_ext <<_ACEOF
36278 /* confdefs.h.  */
36279 _ACEOF
36280 cat confdefs.h >>conftest.$ac_ext
36281 cat >>conftest.$ac_ext <<_ACEOF
36282 /* end confdefs.h.  */
36283 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36285 #define openlog innocuous_openlog
36286
36287 /* System header to define __stub macros and hopefully few prototypes,
36288     which can conflict with char openlog (); below.
36289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36290     <limits.h> exists even on freestanding compilers.  */
36291
36292 #ifdef __STDC__
36293 # include <limits.h>
36294 #else
36295 # include <assert.h>
36296 #endif
36297
36298 #undef openlog
36299
36300 /* Override any gcc2 internal prototype to avoid an error.  */
36301 #ifdef __cplusplus
36302 extern "C"
36303 {
36304 #endif
36305 /* We use char because int might match the return type of a gcc2
36306    builtin and then its argument prototype would still apply.  */
36307 char openlog ();
36308 /* The GNU C library defines this for functions which it implements
36309     to always fail with ENOSYS.  Some functions are actually named
36310     something starting with __ and the normal name is an alias.  */
36311 #if defined (__stub_openlog) || defined (__stub___openlog)
36312 choke me
36313 #else
36314 char (*f) () = openlog;
36315 #endif
36316 #ifdef __cplusplus
36317 }
36318 #endif
36319
36320 int
36321 main ()
36322 {
36323 return f != openlog;
36324   ;
36325   return 0;
36326 }
36327 _ACEOF
36328 rm -f conftest.$ac_objext conftest$ac_exeext
36329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36330   (eval $ac_link) 2>conftest.er1
36331   ac_status=$?
36332   grep -v '^ *+' conftest.er1 >conftest.err
36333   rm -f conftest.er1
36334   cat conftest.err >&5
36335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36336   (exit $ac_status); } &&
36337          { ac_try='test -z "$ac_c_werror_flag"
36338                          || test ! -s conftest.err'
36339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36340   (eval $ac_try) 2>&5
36341   ac_status=$?
36342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343   (exit $ac_status); }; } &&
36344          { ac_try='test -s conftest$ac_exeext'
36345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36346   (eval $ac_try) 2>&5
36347   ac_status=$?
36348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349   (exit $ac_status); }; }; then
36350   ac_cv_func_openlog=yes
36351 else
36352   echo "$as_me: failed program was:" >&5
36353 sed 's/^/| /' conftest.$ac_ext >&5
36354
36355 ac_cv_func_openlog=no
36356 fi
36357 rm -f conftest.err conftest.$ac_objext \
36358       conftest$ac_exeext conftest.$ac_ext
36359 fi
36360 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36361 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36362
36363         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36364                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36365 echo "$as_me: error: could not find syslog" >&2;}
36366    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36367         fi
36368         ol_enable_syslog=$ac_cv_func_openlog
36369 fi
36370
36371 ol_link_sql=no
36372 if test $ol_enable_sql != no ; then
36373
36374
36375 for ac_header in sql.h sqlext.h
36376 do
36377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36379   echo "$as_me:$LINENO: checking for $ac_header" >&5
36380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36382   echo $ECHO_N "(cached) $ECHO_C" >&6
36383 fi
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36386 else
36387   # Is the header compilable?
36388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36390 cat >conftest.$ac_ext <<_ACEOF
36391 /* confdefs.h.  */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h.  */
36396 $ac_includes_default
36397 #include <$ac_header>
36398 _ACEOF
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401   (eval $ac_compile) 2>conftest.er1
36402   ac_status=$?
36403   grep -v '^ *+' conftest.er1 >conftest.err
36404   rm -f conftest.er1
36405   cat conftest.err >&5
36406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407   (exit $ac_status); } &&
36408          { ac_try='test -z "$ac_c_werror_flag"
36409                          || test ! -s conftest.err'
36410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411   (eval $ac_try) 2>&5
36412   ac_status=$?
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); }; } &&
36415          { ac_try='test -s conftest.$ac_objext'
36416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417   (eval $ac_try) 2>&5
36418   ac_status=$?
36419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420   (exit $ac_status); }; }; then
36421   ac_header_compiler=yes
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426 ac_header_compiler=no
36427 fi
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36430 echo "${ECHO_T}$ac_header_compiler" >&6
36431
36432 # Is the header present?
36433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36436 /* confdefs.h.  */
36437 _ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h.  */
36441 #include <$ac_header>
36442 _ACEOF
36443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36445   ac_status=$?
36446   grep -v '^ *+' conftest.er1 >conftest.err
36447   rm -f conftest.er1
36448   cat conftest.err >&5
36449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450   (exit $ac_status); } >/dev/null; then
36451   if test -s conftest.err; then
36452     ac_cpp_err=$ac_c_preproc_warn_flag
36453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36454   else
36455     ac_cpp_err=
36456   fi
36457 else
36458   ac_cpp_err=yes
36459 fi
36460 if test -z "$ac_cpp_err"; then
36461   ac_header_preproc=yes
36462 else
36463   echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36465
36466   ac_header_preproc=no
36467 fi
36468 rm -f conftest.err conftest.$ac_ext
36469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36470 echo "${ECHO_T}$ac_header_preproc" >&6
36471
36472 # So?  What about this header?
36473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36474   yes:no: )
36475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36479     ac_header_preproc=yes
36480     ;;
36481   no:yes:* )
36482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36494     (
36495       cat <<\_ASBOX
36496 ## ------------------------------------------ ##
36497 ## Report this to the AC_PACKAGE_NAME lists.  ##
36498 ## ------------------------------------------ ##
36499 _ASBOX
36500     ) |
36501       sed "s/^/$as_me: WARNING:     /" >&2
36502     ;;
36503 esac
36504 echo "$as_me:$LINENO: checking for $ac_header" >&5
36505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36507   echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509   eval "$as_ac_Header=\$ac_header_preproc"
36510 fi
36511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36513
36514 fi
36515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36516   cat >>confdefs.h <<_ACEOF
36517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36518 _ACEOF
36519
36520 else
36521
36522                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36523 echo "$as_me: error: could not locate SQL headers" >&2;}
36524    { (exit 1); exit 1; }; }
36525
36526 fi
36527
36528 done
36529
36530
36531         sql_LIBS="$LIBS"
36532         LIBS="$LTHREAD_LIBS"
36533
36534         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36535 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36536 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36537   echo $ECHO_N "(cached) $ECHO_C" >&6
36538 else
36539   ac_check_lib_save_LIBS=$LIBS
36540 LIBS="-liodbc  $LIBS"
36541 cat >conftest.$ac_ext <<_ACEOF
36542 /* confdefs.h.  */
36543 _ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h.  */
36547
36548 /* Override any gcc2 internal prototype to avoid an error.  */
36549 #ifdef __cplusplus
36550 extern "C"
36551 #endif
36552 /* We use char because int might match the return type of a gcc2
36553    builtin and then its argument prototype would still apply.  */
36554 char SQLDriverConnect ();
36555 int
36556 main ()
36557 {
36558 SQLDriverConnect ();
36559   ;
36560   return 0;
36561 }
36562 _ACEOF
36563 rm -f conftest.$ac_objext conftest$ac_exeext
36564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36565   (eval $ac_link) 2>conftest.er1
36566   ac_status=$?
36567   grep -v '^ *+' conftest.er1 >conftest.err
36568   rm -f conftest.er1
36569   cat conftest.err >&5
36570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571   (exit $ac_status); } &&
36572          { ac_try='test -z "$ac_c_werror_flag"
36573                          || test ! -s conftest.err'
36574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575   (eval $ac_try) 2>&5
36576   ac_status=$?
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); }; } &&
36579          { ac_try='test -s conftest$ac_exeext'
36580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36581   (eval $ac_try) 2>&5
36582   ac_status=$?
36583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584   (exit $ac_status); }; }; then
36585   ac_cv_lib_iodbc_SQLDriverConnect=yes
36586 else
36587   echo "$as_me: failed program was:" >&5
36588 sed 's/^/| /' conftest.$ac_ext >&5
36589
36590 ac_cv_lib_iodbc_SQLDriverConnect=no
36591 fi
36592 rm -f conftest.err conftest.$ac_objext \
36593       conftest$ac_exeext conftest.$ac_ext
36594 LIBS=$ac_check_lib_save_LIBS
36595 fi
36596 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36597 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36598 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36599   have_iodbc=yes
36600 else
36601   have_iodbc=no
36602 fi
36603
36604         if test $have_iodbc = yes ; then
36605                 ol_link_sql="-liodbc"
36606         else
36607                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36608 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36609 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36610   echo $ECHO_N "(cached) $ECHO_C" >&6
36611 else
36612   ac_check_lib_save_LIBS=$LIBS
36613 LIBS="-lodbc  $LIBS"
36614 cat >conftest.$ac_ext <<_ACEOF
36615 /* confdefs.h.  */
36616 _ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h.  */
36620
36621 /* Override any gcc2 internal prototype to avoid an error.  */
36622 #ifdef __cplusplus
36623 extern "C"
36624 #endif
36625 /* We use char because int might match the return type of a gcc2
36626    builtin and then its argument prototype would still apply.  */
36627 char SQLDriverConnect ();
36628 int
36629 main ()
36630 {
36631 SQLDriverConnect ();
36632   ;
36633   return 0;
36634 }
36635 _ACEOF
36636 rm -f conftest.$ac_objext conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638   (eval $ac_link) 2>conftest.er1
36639   ac_status=$?
36640   grep -v '^ *+' conftest.er1 >conftest.err
36641   rm -f conftest.er1
36642   cat conftest.err >&5
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); } &&
36645          { ac_try='test -z "$ac_c_werror_flag"
36646                          || test ! -s conftest.err'
36647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648   (eval $ac_try) 2>&5
36649   ac_status=$?
36650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651   (exit $ac_status); }; } &&
36652          { ac_try='test -s conftest$ac_exeext'
36653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36654   (eval $ac_try) 2>&5
36655   ac_status=$?
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); }; }; then
36658   ac_cv_lib_odbc_SQLDriverConnect=yes
36659 else
36660   echo "$as_me: failed program was:" >&5
36661 sed 's/^/| /' conftest.$ac_ext >&5
36662
36663 ac_cv_lib_odbc_SQLDriverConnect=no
36664 fi
36665 rm -f conftest.err conftest.$ac_objext \
36666       conftest$ac_exeext conftest.$ac_ext
36667 LIBS=$ac_check_lib_save_LIBS
36668 fi
36669 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36670 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36671 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36672   have_odbc=yes
36673 else
36674   have_odbc=no
36675 fi
36676
36677                 if test $have_odbc = yes ; then
36678                         ol_link_sql="-lodbc"
36679                 fi
36680         fi
36681
36682         LIBS="$sql_LIBS"
36683
36684         if test $ol_link_sql != no ; then
36685                 SLAPD_SQL_LIBS="$ol_link_sql"
36686
36687         elif test $ol_enable_sql != auto ; then
36688                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36689 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36690    { (exit 1); exit 1; }; }
36691         fi
36692 fi
36693
36694 ol_icu=no
36695
36696 for ac_header in unicode/utypes.h
36697 do
36698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36700   echo "$as_me:$LINENO: checking for $ac_header" >&5
36701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36703   echo $ECHO_N "(cached) $ECHO_C" >&6
36704 fi
36705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36707 else
36708   # Is the header compilable?
36709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36711 cat >conftest.$ac_ext <<_ACEOF
36712 /* confdefs.h.  */
36713 _ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h.  */
36717 $ac_includes_default
36718 #include <$ac_header>
36719 _ACEOF
36720 rm -f conftest.$ac_objext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36722   (eval $ac_compile) 2>conftest.er1
36723   ac_status=$?
36724   grep -v '^ *+' conftest.er1 >conftest.err
36725   rm -f conftest.er1
36726   cat conftest.err >&5
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); } &&
36729          { ac_try='test -z "$ac_c_werror_flag"
36730                          || test ! -s conftest.err'
36731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732   (eval $ac_try) 2>&5
36733   ac_status=$?
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); }; } &&
36736          { ac_try='test -s conftest.$ac_objext'
36737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738   (eval $ac_try) 2>&5
36739   ac_status=$?
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); }; }; then
36742   ac_header_compiler=yes
36743 else
36744   echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36746
36747 ac_header_compiler=no
36748 fi
36749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36751 echo "${ECHO_T}$ac_header_compiler" >&6
36752
36753 # Is the header present?
36754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36756 cat >conftest.$ac_ext <<_ACEOF
36757 /* confdefs.h.  */
36758 _ACEOF
36759 cat confdefs.h >>conftest.$ac_ext
36760 cat >>conftest.$ac_ext <<_ACEOF
36761 /* end confdefs.h.  */
36762 #include <$ac_header>
36763 _ACEOF
36764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36766   ac_status=$?
36767   grep -v '^ *+' conftest.er1 >conftest.err
36768   rm -f conftest.er1
36769   cat conftest.err >&5
36770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771   (exit $ac_status); } >/dev/null; then
36772   if test -s conftest.err; then
36773     ac_cpp_err=$ac_c_preproc_warn_flag
36774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36775   else
36776     ac_cpp_err=
36777   fi
36778 else
36779   ac_cpp_err=yes
36780 fi
36781 if test -z "$ac_cpp_err"; then
36782   ac_header_preproc=yes
36783 else
36784   echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36786
36787   ac_header_preproc=no
36788 fi
36789 rm -f conftest.err conftest.$ac_ext
36790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36791 echo "${ECHO_T}$ac_header_preproc" >&6
36792
36793 # So?  What about this header?
36794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36795   yes:no: )
36796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36800     ac_header_preproc=yes
36801     ;;
36802   no:yes:* )
36803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36815     (
36816       cat <<\_ASBOX
36817 ## ------------------------------------------ ##
36818 ## Report this to the AC_PACKAGE_NAME lists.  ##
36819 ## ------------------------------------------ ##
36820 _ASBOX
36821     ) |
36822       sed "s/^/$as_me: WARNING:     /" >&2
36823     ;;
36824 esac
36825 echo "$as_me:$LINENO: checking for $ac_header" >&5
36826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36828   echo $ECHO_N "(cached) $ECHO_C" >&6
36829 else
36830   eval "$as_ac_Header=\$ac_header_preproc"
36831 fi
36832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36834
36835 fi
36836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36837   cat >>confdefs.h <<_ACEOF
36838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36839 _ACEOF
36840
36841 fi
36842
36843 done
36844
36845 if test $ac_cv_header_unicode_utypes_h = yes ; then
36846                 OL_ICULIBS="-licuuc -licudata"
36847
36848         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36849 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36850 if test "${ol_cv_lib_icu+set}" = set; then
36851   echo $ECHO_N "(cached) $ECHO_C" >&6
36852 else
36853
36854                 ol_LIBS="$LIBS"
36855                 LIBS="$OL_ICULIBS $LIBS"
36856                 cat >conftest.$ac_ext <<_ACEOF
36857 /* confdefs.h.  */
36858 _ACEOF
36859 cat confdefs.h >>conftest.$ac_ext
36860 cat >>conftest.$ac_ext <<_ACEOF
36861 /* end confdefs.h.  */
36862
36863 #include <unicode/utypes.h>
36864
36865 int
36866 main ()
36867 {
36868
36869 (void) u_errorName(0);
36870
36871   ;
36872   return 0;
36873 }
36874 _ACEOF
36875 rm -f conftest.$ac_objext conftest$ac_exeext
36876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36877   (eval $ac_link) 2>conftest.er1
36878   ac_status=$?
36879   grep -v '^ *+' conftest.er1 >conftest.err
36880   rm -f conftest.er1
36881   cat conftest.err >&5
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); } &&
36884          { ac_try='test -z "$ac_c_werror_flag"
36885                          || test ! -s conftest.err'
36886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36887   (eval $ac_try) 2>&5
36888   ac_status=$?
36889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890   (exit $ac_status); }; } &&
36891          { ac_try='test -s conftest$ac_exeext'
36892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36893   (eval $ac_try) 2>&5
36894   ac_status=$?
36895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36896   (exit $ac_status); }; }; then
36897   ol_cv_lib_icu=yes
36898 else
36899   echo "$as_me: failed program was:" >&5
36900 sed 's/^/| /' conftest.$ac_ext >&5
36901
36902 ol_cv_lib_icu=no
36903 fi
36904 rm -f conftest.err conftest.$ac_objext \
36905       conftest$ac_exeext conftest.$ac_ext
36906                 LIBS="$ol_LIBS"
36907
36908 fi
36909 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36910 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36911
36912         if test $ol_cv_lib_icu != no ; then
36913                 ol_icu="$OL_ICULIBS"
36914
36915 cat >>confdefs.h <<\_ACEOF
36916 #define HAVE_ICU 1
36917 _ACEOF
36918
36919         fi
36920 fi
36921
36922 if test "$ol_icu" = no ; then
36923         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36924 echo "$as_me: WARNING: ICU not available" >&2;}
36925 else
36926         ICU_LIBS="$ol_icu"
36927 fi
36928 WITH_SASL=no
36929 ol_link_sasl=no
36930 ol_link_spasswd=no
36931 if test $ol_with_cyrus_sasl != no ; then
36932
36933
36934 for ac_header in sasl/sasl.h sasl.h
36935 do
36936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36938   echo "$as_me:$LINENO: checking for $ac_header" >&5
36939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36941   echo $ECHO_N "(cached) $ECHO_C" >&6
36942 fi
36943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36945 else
36946   # Is the header compilable?
36947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36949 cat >conftest.$ac_ext <<_ACEOF
36950 /* confdefs.h.  */
36951 _ACEOF
36952 cat confdefs.h >>conftest.$ac_ext
36953 cat >>conftest.$ac_ext <<_ACEOF
36954 /* end confdefs.h.  */
36955 $ac_includes_default
36956 #include <$ac_header>
36957 _ACEOF
36958 rm -f conftest.$ac_objext
36959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36960   (eval $ac_compile) 2>conftest.er1
36961   ac_status=$?
36962   grep -v '^ *+' conftest.er1 >conftest.err
36963   rm -f conftest.er1
36964   cat conftest.err >&5
36965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36966   (exit $ac_status); } &&
36967          { ac_try='test -z "$ac_c_werror_flag"
36968                          || test ! -s conftest.err'
36969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970   (eval $ac_try) 2>&5
36971   ac_status=$?
36972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973   (exit $ac_status); }; } &&
36974          { ac_try='test -s conftest.$ac_objext'
36975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976   (eval $ac_try) 2>&5
36977   ac_status=$?
36978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979   (exit $ac_status); }; }; then
36980   ac_header_compiler=yes
36981 else
36982   echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36984
36985 ac_header_compiler=no
36986 fi
36987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36989 echo "${ECHO_T}$ac_header_compiler" >&6
36990
36991 # Is the header present?
36992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36994 cat >conftest.$ac_ext <<_ACEOF
36995 /* confdefs.h.  */
36996 _ACEOF
36997 cat confdefs.h >>conftest.$ac_ext
36998 cat >>conftest.$ac_ext <<_ACEOF
36999 /* end confdefs.h.  */
37000 #include <$ac_header>
37001 _ACEOF
37002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37004   ac_status=$?
37005   grep -v '^ *+' conftest.er1 >conftest.err
37006   rm -f conftest.er1
37007   cat conftest.err >&5
37008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009   (exit $ac_status); } >/dev/null; then
37010   if test -s conftest.err; then
37011     ac_cpp_err=$ac_c_preproc_warn_flag
37012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37013   else
37014     ac_cpp_err=
37015   fi
37016 else
37017   ac_cpp_err=yes
37018 fi
37019 if test -z "$ac_cpp_err"; then
37020   ac_header_preproc=yes
37021 else
37022   echo "$as_me: failed program was:" >&5
37023 sed 's/^/| /' conftest.$ac_ext >&5
37024
37025   ac_header_preproc=no
37026 fi
37027 rm -f conftest.err conftest.$ac_ext
37028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37029 echo "${ECHO_T}$ac_header_preproc" >&6
37030
37031 # So?  What about this header?
37032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37033   yes:no: )
37034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37038     ac_header_preproc=yes
37039     ;;
37040   no:yes:* )
37041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37053     (
37054       cat <<\_ASBOX
37055 ## ------------------------------------------ ##
37056 ## Report this to the AC_PACKAGE_NAME lists.  ##
37057 ## ------------------------------------------ ##
37058 _ASBOX
37059     ) |
37060       sed "s/^/$as_me: WARNING:     /" >&2
37061     ;;
37062 esac
37063 echo "$as_me:$LINENO: checking for $ac_header" >&5
37064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37066   echo $ECHO_N "(cached) $ECHO_C" >&6
37067 else
37068   eval "$as_ac_Header=\$ac_header_preproc"
37069 fi
37070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37072
37073 fi
37074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37075   cat >>confdefs.h <<_ACEOF
37076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37077 _ACEOF
37078
37079 fi
37080
37081 done
37082
37083
37084         if test $ac_cv_header_sasl_sasl_h = yes ||
37085            test $ac_cv_header_sasl_h = yes; then
37086                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37087 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37088 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37089   echo $ECHO_N "(cached) $ECHO_C" >&6
37090 else
37091   ac_check_lib_save_LIBS=$LIBS
37092 LIBS="-lsasl2  $LIBS"
37093 cat >conftest.$ac_ext <<_ACEOF
37094 /* confdefs.h.  */
37095 _ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h.  */
37099
37100 /* Override any gcc2 internal prototype to avoid an error.  */
37101 #ifdef __cplusplus
37102 extern "C"
37103 #endif
37104 /* We use char because int might match the return type of a gcc2
37105    builtin and then its argument prototype would still apply.  */
37106 char sasl_client_init ();
37107 int
37108 main ()
37109 {
37110 sasl_client_init ();
37111   ;
37112   return 0;
37113 }
37114 _ACEOF
37115 rm -f conftest.$ac_objext conftest$ac_exeext
37116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37117   (eval $ac_link) 2>conftest.er1
37118   ac_status=$?
37119   grep -v '^ *+' conftest.er1 >conftest.err
37120   rm -f conftest.er1
37121   cat conftest.err >&5
37122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123   (exit $ac_status); } &&
37124          { ac_try='test -z "$ac_c_werror_flag"
37125                          || test ! -s conftest.err'
37126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37127   (eval $ac_try) 2>&5
37128   ac_status=$?
37129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130   (exit $ac_status); }; } &&
37131          { ac_try='test -s conftest$ac_exeext'
37132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133   (eval $ac_try) 2>&5
37134   ac_status=$?
37135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136   (exit $ac_status); }; }; then
37137   ac_cv_lib_sasl2_sasl_client_init=yes
37138 else
37139   echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37141
37142 ac_cv_lib_sasl2_sasl_client_init=no
37143 fi
37144 rm -f conftest.err conftest.$ac_objext \
37145       conftest$ac_exeext conftest.$ac_ext
37146 LIBS=$ac_check_lib_save_LIBS
37147 fi
37148 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37149 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37150 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37151   ol_link_sasl="-lsasl2"
37152 else
37153   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37154 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37155 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37156   echo $ECHO_N "(cached) $ECHO_C" >&6
37157 else
37158   ac_check_lib_save_LIBS=$LIBS
37159 LIBS="-lsasl  $LIBS"
37160 cat >conftest.$ac_ext <<_ACEOF
37161 /* confdefs.h.  */
37162 _ACEOF
37163 cat confdefs.h >>conftest.$ac_ext
37164 cat >>conftest.$ac_ext <<_ACEOF
37165 /* end confdefs.h.  */
37166
37167 /* Override any gcc2 internal prototype to avoid an error.  */
37168 #ifdef __cplusplus
37169 extern "C"
37170 #endif
37171 /* We use char because int might match the return type of a gcc2
37172    builtin and then its argument prototype would still apply.  */
37173 char sasl_client_init ();
37174 int
37175 main ()
37176 {
37177 sasl_client_init ();
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest.$ac_objext conftest$ac_exeext
37183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37184   (eval $ac_link) 2>conftest.er1
37185   ac_status=$?
37186   grep -v '^ *+' conftest.er1 >conftest.err
37187   rm -f conftest.er1
37188   cat conftest.err >&5
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); } &&
37191          { ac_try='test -z "$ac_c_werror_flag"
37192                          || test ! -s conftest.err'
37193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37194   (eval $ac_try) 2>&5
37195   ac_status=$?
37196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37197   (exit $ac_status); }; } &&
37198          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37204   ac_cv_lib_sasl_sasl_client_init=yes
37205 else
37206   echo "$as_me: failed program was:" >&5
37207 sed 's/^/| /' conftest.$ac_ext >&5
37208
37209 ac_cv_lib_sasl_sasl_client_init=no
37210 fi
37211 rm -f conftest.err conftest.$ac_objext \
37212       conftest$ac_exeext conftest.$ac_ext
37213 LIBS=$ac_check_lib_save_LIBS
37214 fi
37215 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37216 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37217 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37218   ol_link_sasl="-lsasl"
37219 fi
37220
37221 fi
37222
37223         fi
37224
37225         if test $ol_link_sasl = no ; then
37226                 if test $ol_with_cyrus_sasl != auto ; then
37227                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37228 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37229    { (exit 1); exit 1; }; }
37230                 else
37231                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37232 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37233                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37234 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37235                         if test $ol_link_tls = no ; then
37236                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37237 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37238                         fi
37239                 fi
37240         else
37241                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37242 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37243 if test "${ol_cv_sasl_compat+set}" = set; then
37244   echo $ECHO_N "(cached) $ECHO_C" >&6
37245 else
37246
37247         cat >conftest.$ac_ext <<_ACEOF
37248 /* confdefs.h.  */
37249 _ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h.  */
37253
37254 #ifdef HAVE_SASL_SASL_H
37255 #include <sasl/sasl.h>
37256 #else
37257 #include <sasl.h>
37258 #endif
37259
37260 /* Require 2.1.15+ */
37261 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37262         char *__sasl_compat = "2.2+ or better okay (we guess)";
37263 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37264         && SASL_VERSION_STEP >=15
37265         char *__sasl_compat = "2.1.15+ or better okay";
37266 #endif
37267
37268 _ACEOF
37269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37270   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37271   ol_cv_sasl_compat=yes
37272 else
37273   ol_cv_sasl_compat=no
37274 fi
37275 rm -f conftest*
37276
37277 fi
37278 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37279 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37280
37281                 if test $ol_cv_sasl_compat = no ; then
37282                         ol_link_sasl=no
37283                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37284 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37285    { (exit 1); exit 1; }; }
37286                 fi
37287
37288
37289 cat >>confdefs.h <<\_ACEOF
37290 #define HAVE_CYRUS_SASL 1
37291 _ACEOF
37292
37293                 SASL_LIBS="$ol_link_sasl"
37294                 if test $ol_enable_spasswd != no ; then
37295                         ol_link_spasswd=yes
37296                 fi
37297
37298                 ac_save_LIBS="$LIBS"
37299                 LIBS="$LIBS $ol_link_sasl"
37300                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37301 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37302 if test "${ac_cv_func_sasl_version+set}" = set; then
37303   echo $ECHO_N "(cached) $ECHO_C" >&6
37304 else
37305   cat >conftest.$ac_ext <<_ACEOF
37306 /* confdefs.h.  */
37307 _ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h.  */
37311 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37313 #define sasl_version innocuous_sasl_version
37314
37315 /* System header to define __stub macros and hopefully few prototypes,
37316     which can conflict with char sasl_version (); below.
37317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37318     <limits.h> exists even on freestanding compilers.  */
37319
37320 #ifdef __STDC__
37321 # include <limits.h>
37322 #else
37323 # include <assert.h>
37324 #endif
37325
37326 #undef sasl_version
37327
37328 /* Override any gcc2 internal prototype to avoid an error.  */
37329 #ifdef __cplusplus
37330 extern "C"
37331 {
37332 #endif
37333 /* We use char because int might match the return type of a gcc2
37334    builtin and then its argument prototype would still apply.  */
37335 char sasl_version ();
37336 /* The GNU C library defines this for functions which it implements
37337     to always fail with ENOSYS.  Some functions are actually named
37338     something starting with __ and the normal name is an alias.  */
37339 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37340 choke me
37341 #else
37342 char (*f) () = sasl_version;
37343 #endif
37344 #ifdef __cplusplus
37345 }
37346 #endif
37347
37348 int
37349 main ()
37350 {
37351 return f != sasl_version;
37352   ;
37353   return 0;
37354 }
37355 _ACEOF
37356 rm -f conftest.$ac_objext conftest$ac_exeext
37357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37358   (eval $ac_link) 2>conftest.er1
37359   ac_status=$?
37360   grep -v '^ *+' conftest.er1 >conftest.err
37361   rm -f conftest.er1
37362   cat conftest.err >&5
37363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37364   (exit $ac_status); } &&
37365          { ac_try='test -z "$ac_c_werror_flag"
37366                          || test ! -s conftest.err'
37367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37368   (eval $ac_try) 2>&5
37369   ac_status=$?
37370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371   (exit $ac_status); }; } &&
37372          { ac_try='test -s conftest$ac_exeext'
37373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374   (eval $ac_try) 2>&5
37375   ac_status=$?
37376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377   (exit $ac_status); }; }; then
37378   ac_cv_func_sasl_version=yes
37379 else
37380   echo "$as_me: failed program was:" >&5
37381 sed 's/^/| /' conftest.$ac_ext >&5
37382
37383 ac_cv_func_sasl_version=no
37384 fi
37385 rm -f conftest.err conftest.$ac_objext \
37386       conftest$ac_exeext conftest.$ac_ext
37387 fi
37388 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37389 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37390 if test $ac_cv_func_sasl_version = yes; then
37391
37392 cat >>confdefs.h <<\_ACEOF
37393 #define HAVE_SASL_VERSION 1
37394 _ACEOF
37395
37396 fi
37397
37398                 LIBS="$ac_save_LIBS"
37399
37400                 WITH_SASL=yes
37401         fi
37402
37403 else
37404         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37405 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37406         if test $ol_link_tls = no ; then
37407                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37408 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37409         fi
37410 fi
37411
37412 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37413         dev=no
37414         if test -r /dev/urandom ; then
37415                 dev="/dev/urandom";
37416         elif test -r /idev/urandom ; then
37417                 dev="/idev/urandom";
37418         elif test -r /dev/srandom ; then
37419                 dev="/dev/srandom";
37420         elif test -r /dev/random ; then
37421                 dev="/dev/random";
37422         elif test -r /idev/random ; then
37423                 dev="/idev/random";
37424         fi
37425
37426         if test $dev != no ; then
37427
37428 cat >>confdefs.h <<_ACEOF
37429 #define URANDOM_DEVICE "$dev"
37430 _ACEOF
37431
37432         fi
37433 fi
37434
37435 ol_link_fetch=no
37436 if test $ol_with_fetch != no ; then
37437         ol_LIBS=$LIBS
37438 LIBS="-lfetch -lcom_err $LIBS"
37439 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37440 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37441 if test "${ol_cv_lib_fetch+set}" = set; then
37442   echo $ECHO_N "(cached) $ECHO_C" >&6
37443 else
37444
37445         cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451
37452 #include <sys/param.h>
37453 #include <stdio.h>
37454 #include <fetch.h>
37455 int
37456 main ()
37457 {
37458 struct url *u = fetchParseURL("file:///");
37459   ;
37460   return 0;
37461 }
37462 _ACEOF
37463 rm -f conftest.$ac_objext conftest$ac_exeext
37464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37465   (eval $ac_link) 2>conftest.er1
37466   ac_status=$?
37467   grep -v '^ *+' conftest.er1 >conftest.err
37468   rm -f conftest.er1
37469   cat conftest.err >&5
37470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471   (exit $ac_status); } &&
37472          { ac_try='test -z "$ac_c_werror_flag"
37473                          || test ! -s conftest.err'
37474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475   (eval $ac_try) 2>&5
37476   ac_status=$?
37477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478   (exit $ac_status); }; } &&
37479          { ac_try='test -s conftest$ac_exeext'
37480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481   (eval $ac_try) 2>&5
37482   ac_status=$?
37483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484   (exit $ac_status); }; }; then
37485   ol_cv_lib_fetch=yes
37486 else
37487   echo "$as_me: failed program was:" >&5
37488 sed 's/^/| /' conftest.$ac_ext >&5
37489
37490 ol_cv_lib_fetch=no
37491 fi
37492 rm -f conftest.err conftest.$ac_objext \
37493       conftest$ac_exeext conftest.$ac_ext
37494 fi
37495 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37496 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37497 LIBS=$ol_LIBS
37498 if test $ol_cv_lib_fetch != no ; then
37499         ol_link_fetch="-lfetch -lcom_err"
37500
37501 cat >>confdefs.h <<\_ACEOF
37502 #define HAVE_FETCH 1
37503 _ACEOF
37504
37505 fi
37506
37507
37508         if test $ol_cv_lib_fetch != no ; then
37509                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37510                 ol_link_fetch=freebsd
37511
37512         elif test $ol_with_fetch != auto ; then
37513                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37514 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37515    { (exit 1); exit 1; }; }
37516         fi
37517 fi
37518
37519 if test $ol_enable_crypt != no ; then
37520         save_LIBS="$LIBS"
37521         LIBS="$TLS_LIBS $LIBS"
37522
37523         echo "$as_me:$LINENO: checking for crypt" >&5
37524 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37525 if test "${ac_cv_func_crypt+set}" = set; then
37526   echo $ECHO_N "(cached) $ECHO_C" >&6
37527 else
37528   cat >conftest.$ac_ext <<_ACEOF
37529 /* confdefs.h.  */
37530 _ACEOF
37531 cat confdefs.h >>conftest.$ac_ext
37532 cat >>conftest.$ac_ext <<_ACEOF
37533 /* end confdefs.h.  */
37534 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37536 #define crypt innocuous_crypt
37537
37538 /* System header to define __stub macros and hopefully few prototypes,
37539     which can conflict with char crypt (); below.
37540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37541     <limits.h> exists even on freestanding compilers.  */
37542
37543 #ifdef __STDC__
37544 # include <limits.h>
37545 #else
37546 # include <assert.h>
37547 #endif
37548
37549 #undef crypt
37550
37551 /* Override any gcc2 internal prototype to avoid an error.  */
37552 #ifdef __cplusplus
37553 extern "C"
37554 {
37555 #endif
37556 /* We use char because int might match the return type of a gcc2
37557    builtin and then its argument prototype would still apply.  */
37558 char crypt ();
37559 /* The GNU C library defines this for functions which it implements
37560     to always fail with ENOSYS.  Some functions are actually named
37561     something starting with __ and the normal name is an alias.  */
37562 #if defined (__stub_crypt) || defined (__stub___crypt)
37563 choke me
37564 #else
37565 char (*f) () = crypt;
37566 #endif
37567 #ifdef __cplusplus
37568 }
37569 #endif
37570
37571 int
37572 main ()
37573 {
37574 return f != crypt;
37575   ;
37576   return 0;
37577 }
37578 _ACEOF
37579 rm -f conftest.$ac_objext conftest$ac_exeext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37581   (eval $ac_link) 2>conftest.er1
37582   ac_status=$?
37583   grep -v '^ *+' conftest.er1 >conftest.err
37584   rm -f conftest.er1
37585   cat conftest.err >&5
37586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587   (exit $ac_status); } &&
37588          { ac_try='test -z "$ac_c_werror_flag"
37589                          || test ! -s conftest.err'
37590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37591   (eval $ac_try) 2>&5
37592   ac_status=$?
37593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594   (exit $ac_status); }; } &&
37595          { ac_try='test -s conftest$ac_exeext'
37596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37597   (eval $ac_try) 2>&5
37598   ac_status=$?
37599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600   (exit $ac_status); }; }; then
37601   ac_cv_func_crypt=yes
37602 else
37603   echo "$as_me: failed program was:" >&5
37604 sed 's/^/| /' conftest.$ac_ext >&5
37605
37606 ac_cv_func_crypt=no
37607 fi
37608 rm -f conftest.err conftest.$ac_objext \
37609       conftest$ac_exeext conftest.$ac_ext
37610 fi
37611 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37612 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37613 if test $ac_cv_func_crypt = yes; then
37614   have_crypt=yes
37615 else
37616
37617                 LIBS="$save_LIBS"
37618                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37619 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37620 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37621   echo $ECHO_N "(cached) $ECHO_C" >&6
37622 else
37623   ac_check_lib_save_LIBS=$LIBS
37624 LIBS="-lcrypt  $LIBS"
37625 cat >conftest.$ac_ext <<_ACEOF
37626 /* confdefs.h.  */
37627 _ACEOF
37628 cat confdefs.h >>conftest.$ac_ext
37629 cat >>conftest.$ac_ext <<_ACEOF
37630 /* end confdefs.h.  */
37631
37632 /* Override any gcc2 internal prototype to avoid an error.  */
37633 #ifdef __cplusplus
37634 extern "C"
37635 #endif
37636 /* We use char because int might match the return type of a gcc2
37637    builtin and then its argument prototype would still apply.  */
37638 char crypt ();
37639 int
37640 main ()
37641 {
37642 crypt ();
37643   ;
37644   return 0;
37645 }
37646 _ACEOF
37647 rm -f conftest.$ac_objext conftest$ac_exeext
37648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37649   (eval $ac_link) 2>conftest.er1
37650   ac_status=$?
37651   grep -v '^ *+' conftest.er1 >conftest.err
37652   rm -f conftest.er1
37653   cat conftest.err >&5
37654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37655   (exit $ac_status); } &&
37656          { ac_try='test -z "$ac_c_werror_flag"
37657                          || test ! -s conftest.err'
37658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37659   (eval $ac_try) 2>&5
37660   ac_status=$?
37661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37662   (exit $ac_status); }; } &&
37663          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
37669   ac_cv_lib_crypt_crypt=yes
37670 else
37671   echo "$as_me: failed program was:" >&5
37672 sed 's/^/| /' conftest.$ac_ext >&5
37673
37674 ac_cv_lib_crypt_crypt=no
37675 fi
37676 rm -f conftest.err conftest.$ac_objext \
37677       conftest$ac_exeext conftest.$ac_ext
37678 LIBS=$ac_check_lib_save_LIBS
37679 fi
37680 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37681 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37682 if test $ac_cv_lib_crypt_crypt = yes; then
37683   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37684                         have_crypt=yes
37685 else
37686   have_crypt=no
37687 fi
37688
37689 fi
37690
37691
37692         LIBS="$save_LIBS"
37693
37694         if test $have_crypt = yes ; then
37695
37696 cat >>confdefs.h <<\_ACEOF
37697 #define HAVE_CRYPT 1
37698 _ACEOF
37699
37700         else
37701                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37702 echo "$as_me: WARNING: could not find crypt" >&2;}
37703                 if test $ol_enable_crypt = yes ; then
37704                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37705 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37706    { (exit 1); exit 1; }; }
37707                 fi
37708
37709                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37710 echo "$as_me: WARNING: disabling crypt support" >&2;}
37711                 ol_enable_crypt=no
37712         fi
37713 fi
37714
37715 if test $ol_enable_proctitle != no ; then
37716         echo "$as_me:$LINENO: checking for setproctitle" >&5
37717 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37718 if test "${ac_cv_func_setproctitle+set}" = set; then
37719   echo $ECHO_N "(cached) $ECHO_C" >&6
37720 else
37721   cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37729 #define setproctitle innocuous_setproctitle
37730
37731 /* System header to define __stub macros and hopefully few prototypes,
37732     which can conflict with char setproctitle (); below.
37733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37734     <limits.h> exists even on freestanding compilers.  */
37735
37736 #ifdef __STDC__
37737 # include <limits.h>
37738 #else
37739 # include <assert.h>
37740 #endif
37741
37742 #undef setproctitle
37743
37744 /* Override any gcc2 internal prototype to avoid an error.  */
37745 #ifdef __cplusplus
37746 extern "C"
37747 {
37748 #endif
37749 /* We use char because int might match the return type of a gcc2
37750    builtin and then its argument prototype would still apply.  */
37751 char setproctitle ();
37752 /* The GNU C library defines this for functions which it implements
37753     to always fail with ENOSYS.  Some functions are actually named
37754     something starting with __ and the normal name is an alias.  */
37755 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37756 choke me
37757 #else
37758 char (*f) () = setproctitle;
37759 #endif
37760 #ifdef __cplusplus
37761 }
37762 #endif
37763
37764 int
37765 main ()
37766 {
37767 return f != setproctitle;
37768   ;
37769   return 0;
37770 }
37771 _ACEOF
37772 rm -f conftest.$ac_objext conftest$ac_exeext
37773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37774   (eval $ac_link) 2>conftest.er1
37775   ac_status=$?
37776   grep -v '^ *+' conftest.er1 >conftest.err
37777   rm -f conftest.er1
37778   cat conftest.err >&5
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); } &&
37781          { ac_try='test -z "$ac_c_werror_flag"
37782                          || test ! -s conftest.err'
37783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37784   (eval $ac_try) 2>&5
37785   ac_status=$?
37786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); }; } &&
37788          { ac_try='test -s conftest$ac_exeext'
37789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790   (eval $ac_try) 2>&5
37791   ac_status=$?
37792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793   (exit $ac_status); }; }; then
37794   ac_cv_func_setproctitle=yes
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799 ac_cv_func_setproctitle=no
37800 fi
37801 rm -f conftest.err conftest.$ac_objext \
37802       conftest$ac_exeext conftest.$ac_ext
37803 fi
37804 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37805 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37806 if test $ac_cv_func_setproctitle = yes; then
37807   have_setproctitle=yes
37808 else
37809
37810                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37811 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37812 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37813   echo $ECHO_N "(cached) $ECHO_C" >&6
37814 else
37815   ac_check_lib_save_LIBS=$LIBS
37816 LIBS="-lutil  $LIBS"
37817 cat >conftest.$ac_ext <<_ACEOF
37818 /* confdefs.h.  */
37819 _ACEOF
37820 cat confdefs.h >>conftest.$ac_ext
37821 cat >>conftest.$ac_ext <<_ACEOF
37822 /* end confdefs.h.  */
37823
37824 /* Override any gcc2 internal prototype to avoid an error.  */
37825 #ifdef __cplusplus
37826 extern "C"
37827 #endif
37828 /* We use char because int might match the return type of a gcc2
37829    builtin and then its argument prototype would still apply.  */
37830 char setproctitle ();
37831 int
37832 main ()
37833 {
37834 setproctitle ();
37835   ;
37836   return 0;
37837 }
37838 _ACEOF
37839 rm -f conftest.$ac_objext conftest$ac_exeext
37840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37841   (eval $ac_link) 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } &&
37848          { ac_try='test -z "$ac_c_werror_flag"
37849                          || test ! -s conftest.err'
37850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37851   (eval $ac_try) 2>&5
37852   ac_status=$?
37853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37854   (exit $ac_status); }; } &&
37855          { ac_try='test -s conftest$ac_exeext'
37856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37857   (eval $ac_try) 2>&5
37858   ac_status=$?
37859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37860   (exit $ac_status); }; }; then
37861   ac_cv_lib_util_setproctitle=yes
37862 else
37863   echo "$as_me: failed program was:" >&5
37864 sed 's/^/| /' conftest.$ac_ext >&5
37865
37866 ac_cv_lib_util_setproctitle=no
37867 fi
37868 rm -f conftest.err conftest.$ac_objext \
37869       conftest$ac_exeext conftest.$ac_ext
37870 LIBS=$ac_check_lib_save_LIBS
37871 fi
37872 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37873 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37874 if test $ac_cv_lib_util_setproctitle = yes; then
37875   have_setproctitle=yes
37876                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37877 else
37878   have_setproctitle=no
37879                         case $LIBOBJS in
37880     "setproctitle.$ac_objext"   | \
37881   *" setproctitle.$ac_objext"   | \
37882     "setproctitle.$ac_objext "* | \
37883   *" setproctitle.$ac_objext "* ) ;;
37884   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37885 esac
37886
37887                         LIBSRCS="$LIBSRCS setproctitle.c"
37888 fi
37889
37890 fi
37891
37892
37893         if test $have_setproctitle = yes ; then
37894
37895 cat >>confdefs.h <<\_ACEOF
37896 #define HAVE_SETPROCTITLE 1
37897 _ACEOF
37898
37899         fi
37900 fi
37901
37902 if test $ol_enable_slp != no ; then
37903
37904 for ac_header in slp.h
37905 do
37906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37908   echo "$as_me:$LINENO: checking for $ac_header" >&5
37909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37911   echo $ECHO_N "(cached) $ECHO_C" >&6
37912 fi
37913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37915 else
37916   # Is the header compilable?
37917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37919 cat >conftest.$ac_ext <<_ACEOF
37920 /* confdefs.h.  */
37921 _ACEOF
37922 cat confdefs.h >>conftest.$ac_ext
37923 cat >>conftest.$ac_ext <<_ACEOF
37924 /* end confdefs.h.  */
37925 $ac_includes_default
37926 #include <$ac_header>
37927 _ACEOF
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930   (eval $ac_compile) 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } &&
37937          { ac_try='test -z "$ac_c_werror_flag"
37938                          || test ! -s conftest.err'
37939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940   (eval $ac_try) 2>&5
37941   ac_status=$?
37942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943   (exit $ac_status); }; } &&
37944          { ac_try='test -s conftest.$ac_objext'
37945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946   (eval $ac_try) 2>&5
37947   ac_status=$?
37948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949   (exit $ac_status); }; }; then
37950   ac_header_compiler=yes
37951 else
37952   echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37954
37955 ac_header_compiler=no
37956 fi
37957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37959 echo "${ECHO_T}$ac_header_compiler" >&6
37960
37961 # Is the header present?
37962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37964 cat >conftest.$ac_ext <<_ACEOF
37965 /* confdefs.h.  */
37966 _ACEOF
37967 cat confdefs.h >>conftest.$ac_ext
37968 cat >>conftest.$ac_ext <<_ACEOF
37969 /* end confdefs.h.  */
37970 #include <$ac_header>
37971 _ACEOF
37972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37974   ac_status=$?
37975   grep -v '^ *+' conftest.er1 >conftest.err
37976   rm -f conftest.er1
37977   cat conftest.err >&5
37978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979   (exit $ac_status); } >/dev/null; then
37980   if test -s conftest.err; then
37981     ac_cpp_err=$ac_c_preproc_warn_flag
37982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37983   else
37984     ac_cpp_err=
37985   fi
37986 else
37987   ac_cpp_err=yes
37988 fi
37989 if test -z "$ac_cpp_err"; then
37990   ac_header_preproc=yes
37991 else
37992   echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37994
37995   ac_header_preproc=no
37996 fi
37997 rm -f conftest.err conftest.$ac_ext
37998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37999 echo "${ECHO_T}$ac_header_preproc" >&6
38000
38001 # So?  What about this header?
38002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38003   yes:no: )
38004     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38008     ac_header_preproc=yes
38009     ;;
38010   no:yes:* )
38011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38013     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38014 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38015     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38017     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38018 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38021     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38023     (
38024       cat <<\_ASBOX
38025 ## ------------------------------------------ ##
38026 ## Report this to the AC_PACKAGE_NAME lists.  ##
38027 ## ------------------------------------------ ##
38028 _ASBOX
38029     ) |
38030       sed "s/^/$as_me: WARNING:     /" >&2
38031     ;;
38032 esac
38033 echo "$as_me:$LINENO: checking for $ac_header" >&5
38034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38036   echo $ECHO_N "(cached) $ECHO_C" >&6
38037 else
38038   eval "$as_ac_Header=\$ac_header_preproc"
38039 fi
38040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38042
38043 fi
38044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38045   cat >>confdefs.h <<_ACEOF
38046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38047 _ACEOF
38048
38049 fi
38050
38051 done
38052
38053
38054         if test $ac_cv_header_slp_h = yes ; then
38055                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38056 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38057 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38058   echo $ECHO_N "(cached) $ECHO_C" >&6
38059 else
38060   ac_check_lib_save_LIBS=$LIBS
38061 LIBS="-lslp  $LIBS"
38062 cat >conftest.$ac_ext <<_ACEOF
38063 /* confdefs.h.  */
38064 _ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h.  */
38068
38069 /* Override any gcc2 internal prototype to avoid an error.  */
38070 #ifdef __cplusplus
38071 extern "C"
38072 #endif
38073 /* We use char because int might match the return type of a gcc2
38074    builtin and then its argument prototype would still apply.  */
38075 char SLPOpen ();
38076 int
38077 main ()
38078 {
38079 SLPOpen ();
38080   ;
38081   return 0;
38082 }
38083 _ACEOF
38084 rm -f conftest.$ac_objext conftest$ac_exeext
38085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38086   (eval $ac_link) 2>conftest.er1
38087   ac_status=$?
38088   grep -v '^ *+' conftest.er1 >conftest.err
38089   rm -f conftest.er1
38090   cat conftest.err >&5
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); } &&
38093          { ac_try='test -z "$ac_c_werror_flag"
38094                          || test ! -s conftest.err'
38095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38096   (eval $ac_try) 2>&5
38097   ac_status=$?
38098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099   (exit $ac_status); }; } &&
38100          { ac_try='test -s conftest$ac_exeext'
38101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38102   (eval $ac_try) 2>&5
38103   ac_status=$?
38104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105   (exit $ac_status); }; }; then
38106   ac_cv_lib_slp_SLPOpen=yes
38107 else
38108   echo "$as_me: failed program was:" >&5
38109 sed 's/^/| /' conftest.$ac_ext >&5
38110
38111 ac_cv_lib_slp_SLPOpen=no
38112 fi
38113 rm -f conftest.err conftest.$ac_objext \
38114       conftest$ac_exeext conftest.$ac_ext
38115 LIBS=$ac_check_lib_save_LIBS
38116 fi
38117 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38118 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38119 if test $ac_cv_lib_slp_SLPOpen = yes; then
38120   have_slp=yes
38121 else
38122   have_slp=no
38123 fi
38124
38125                 if test $have_slp = yes ; then
38126
38127 cat >>confdefs.h <<\_ACEOF
38128 #define HAVE_SLP 1
38129 _ACEOF
38130
38131                         SLAPD_SLP_LIBS=-lslp
38132                 fi
38133
38134         elif test $ol_enable_slp = yes ; then
38135                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38136 echo "$as_me: error: SLP not found" >&2;}
38137    { (exit 1); exit 1; }; }
38138         fi
38139 fi
38140
38141 if test "$ol_with_multiple_precision" != "no" ; then
38142         ol_have_bignum=no
38143         ol_have_gmp=no
38144
38145
38146
38147 for ac_header in openssl/bn.h bn.h
38148 do
38149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38151   echo "$as_me:$LINENO: checking for $ac_header" >&5
38152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 fi
38156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38158 else
38159   # Is the header compilable?
38160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38162 cat >conftest.$ac_ext <<_ACEOF
38163 /* confdefs.h.  */
38164 _ACEOF
38165 cat confdefs.h >>conftest.$ac_ext
38166 cat >>conftest.$ac_ext <<_ACEOF
38167 /* end confdefs.h.  */
38168 $ac_includes_default
38169 #include <$ac_header>
38170 _ACEOF
38171 rm -f conftest.$ac_objext
38172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38173   (eval $ac_compile) 2>conftest.er1
38174   ac_status=$?
38175   grep -v '^ *+' conftest.er1 >conftest.err
38176   rm -f conftest.er1
38177   cat conftest.err >&5
38178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179   (exit $ac_status); } &&
38180          { ac_try='test -z "$ac_c_werror_flag"
38181                          || test ! -s conftest.err'
38182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38183   (eval $ac_try) 2>&5
38184   ac_status=$?
38185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38186   (exit $ac_status); }; } &&
38187          { ac_try='test -s conftest.$ac_objext'
38188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38189   (eval $ac_try) 2>&5
38190   ac_status=$?
38191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38192   (exit $ac_status); }; }; then
38193   ac_header_compiler=yes
38194 else
38195   echo "$as_me: failed program was:" >&5
38196 sed 's/^/| /' conftest.$ac_ext >&5
38197
38198 ac_header_compiler=no
38199 fi
38200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38202 echo "${ECHO_T}$ac_header_compiler" >&6
38203
38204 # Is the header present?
38205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38207 cat >conftest.$ac_ext <<_ACEOF
38208 /* confdefs.h.  */
38209 _ACEOF
38210 cat confdefs.h >>conftest.$ac_ext
38211 cat >>conftest.$ac_ext <<_ACEOF
38212 /* end confdefs.h.  */
38213 #include <$ac_header>
38214 _ACEOF
38215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38217   ac_status=$?
38218   grep -v '^ *+' conftest.er1 >conftest.err
38219   rm -f conftest.er1
38220   cat conftest.err >&5
38221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222   (exit $ac_status); } >/dev/null; then
38223   if test -s conftest.err; then
38224     ac_cpp_err=$ac_c_preproc_warn_flag
38225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38226   else
38227     ac_cpp_err=
38228   fi
38229 else
38230   ac_cpp_err=yes
38231 fi
38232 if test -z "$ac_cpp_err"; then
38233   ac_header_preproc=yes
38234 else
38235   echo "$as_me: failed program was:" >&5
38236 sed 's/^/| /' conftest.$ac_ext >&5
38237
38238   ac_header_preproc=no
38239 fi
38240 rm -f conftest.err conftest.$ac_ext
38241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38242 echo "${ECHO_T}$ac_header_preproc" >&6
38243
38244 # So?  What about this header?
38245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38246   yes:no: )
38247     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38251     ac_header_preproc=yes
38252     ;;
38253   no:yes:* )
38254     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38256     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38257 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38258     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38260     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38261 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38262     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38264     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38266     (
38267       cat <<\_ASBOX
38268 ## ------------------------------------------ ##
38269 ## Report this to the AC_PACKAGE_NAME lists.  ##
38270 ## ------------------------------------------ ##
38271 _ASBOX
38272     ) |
38273       sed "s/^/$as_me: WARNING:     /" >&2
38274     ;;
38275 esac
38276 echo "$as_me:$LINENO: checking for $ac_header" >&5
38277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38279   echo $ECHO_N "(cached) $ECHO_C" >&6
38280 else
38281   eval "$as_ac_Header=\$ac_header_preproc"
38282 fi
38283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38285
38286 fi
38287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38288   cat >>confdefs.h <<_ACEOF
38289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38290 _ACEOF
38291
38292 fi
38293
38294 done
38295
38296
38297
38298 for ac_header in openssl/crypto.h crypto.h
38299 do
38300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
38307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38309 else
38310   # Is the header compilable?
38311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38313 cat >conftest.$ac_ext <<_ACEOF
38314 /* confdefs.h.  */
38315 _ACEOF
38316 cat confdefs.h >>conftest.$ac_ext
38317 cat >>conftest.$ac_ext <<_ACEOF
38318 /* end confdefs.h.  */
38319 $ac_includes_default
38320 #include <$ac_header>
38321 _ACEOF
38322 rm -f conftest.$ac_objext
38323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38324   (eval $ac_compile) 2>conftest.er1
38325   ac_status=$?
38326   grep -v '^ *+' conftest.er1 >conftest.err
38327   rm -f conftest.er1
38328   cat conftest.err >&5
38329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330   (exit $ac_status); } &&
38331          { ac_try='test -z "$ac_c_werror_flag"
38332                          || test ! -s conftest.err'
38333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334   (eval $ac_try) 2>&5
38335   ac_status=$?
38336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337   (exit $ac_status); }; } &&
38338          { ac_try='test -s conftest.$ac_objext'
38339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38340   (eval $ac_try) 2>&5
38341   ac_status=$?
38342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38343   (exit $ac_status); }; }; then
38344   ac_header_compiler=yes
38345 else
38346   echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38348
38349 ac_header_compiler=no
38350 fi
38351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38353 echo "${ECHO_T}$ac_header_compiler" >&6
38354
38355 # Is the header present?
38356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38358 cat >conftest.$ac_ext <<_ACEOF
38359 /* confdefs.h.  */
38360 _ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h.  */
38364 #include <$ac_header>
38365 _ACEOF
38366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38368   ac_status=$?
38369   grep -v '^ *+' conftest.er1 >conftest.err
38370   rm -f conftest.er1
38371   cat conftest.err >&5
38372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373   (exit $ac_status); } >/dev/null; then
38374   if test -s conftest.err; then
38375     ac_cpp_err=$ac_c_preproc_warn_flag
38376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38377   else
38378     ac_cpp_err=
38379   fi
38380 else
38381   ac_cpp_err=yes
38382 fi
38383 if test -z "$ac_cpp_err"; then
38384   ac_header_preproc=yes
38385 else
38386   echo "$as_me: failed program was:" >&5
38387 sed 's/^/| /' conftest.$ac_ext >&5
38388
38389   ac_header_preproc=no
38390 fi
38391 rm -f conftest.err conftest.$ac_ext
38392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38393 echo "${ECHO_T}$ac_header_preproc" >&6
38394
38395 # So?  What about this header?
38396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38397   yes:no: )
38398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38402     ac_header_preproc=yes
38403     ;;
38404   no:yes:* )
38405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38407     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38408 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38411     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38412 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38417     (
38418       cat <<\_ASBOX
38419 ## ------------------------------------------ ##
38420 ## Report this to the AC_PACKAGE_NAME lists.  ##
38421 ## ------------------------------------------ ##
38422 _ASBOX
38423     ) |
38424       sed "s/^/$as_me: WARNING:     /" >&2
38425     ;;
38426 esac
38427 echo "$as_me:$LINENO: checking for $ac_header" >&5
38428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432   eval "$as_ac_Header=\$ac_header_preproc"
38433 fi
38434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38436
38437 fi
38438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38439   cat >>confdefs.h <<_ACEOF
38440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38441 _ACEOF
38442
38443 fi
38444
38445 done
38446
38447
38448 for ac_header in gmp.h
38449 do
38450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38452   echo "$as_me:$LINENO: checking for $ac_header" >&5
38453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38455   echo $ECHO_N "(cached) $ECHO_C" >&6
38456 fi
38457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38459 else
38460   # Is the header compilable?
38461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38463 cat >conftest.$ac_ext <<_ACEOF
38464 /* confdefs.h.  */
38465 _ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h.  */
38469 $ac_includes_default
38470 #include <$ac_header>
38471 _ACEOF
38472 rm -f conftest.$ac_objext
38473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38474   (eval $ac_compile) 2>conftest.er1
38475   ac_status=$?
38476   grep -v '^ *+' conftest.er1 >conftest.err
38477   rm -f conftest.er1
38478   cat conftest.err >&5
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); } &&
38481          { ac_try='test -z "$ac_c_werror_flag"
38482                          || test ! -s conftest.err'
38483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484   (eval $ac_try) 2>&5
38485   ac_status=$?
38486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487   (exit $ac_status); }; } &&
38488          { ac_try='test -s conftest.$ac_objext'
38489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490   (eval $ac_try) 2>&5
38491   ac_status=$?
38492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493   (exit $ac_status); }; }; then
38494   ac_header_compiler=yes
38495 else
38496   echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38498
38499 ac_header_compiler=no
38500 fi
38501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38503 echo "${ECHO_T}$ac_header_compiler" >&6
38504
38505 # Is the header present?
38506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38508 cat >conftest.$ac_ext <<_ACEOF
38509 /* confdefs.h.  */
38510 _ACEOF
38511 cat confdefs.h >>conftest.$ac_ext
38512 cat >>conftest.$ac_ext <<_ACEOF
38513 /* end confdefs.h.  */
38514 #include <$ac_header>
38515 _ACEOF
38516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38518   ac_status=$?
38519   grep -v '^ *+' conftest.er1 >conftest.err
38520   rm -f conftest.er1
38521   cat conftest.err >&5
38522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523   (exit $ac_status); } >/dev/null; then
38524   if test -s conftest.err; then
38525     ac_cpp_err=$ac_c_preproc_warn_flag
38526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38527   else
38528     ac_cpp_err=
38529   fi
38530 else
38531   ac_cpp_err=yes
38532 fi
38533 if test -z "$ac_cpp_err"; then
38534   ac_header_preproc=yes
38535 else
38536   echo "$as_me: failed program was:" >&5
38537 sed 's/^/| /' conftest.$ac_ext >&5
38538
38539   ac_header_preproc=no
38540 fi
38541 rm -f conftest.err conftest.$ac_ext
38542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38543 echo "${ECHO_T}$ac_header_preproc" >&6
38544
38545 # So?  What about this header?
38546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38547   yes:no: )
38548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38552     ac_header_preproc=yes
38553     ;;
38554   no:yes:* )
38555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38567     (
38568       cat <<\_ASBOX
38569 ## ------------------------------------------ ##
38570 ## Report this to the AC_PACKAGE_NAME lists.  ##
38571 ## ------------------------------------------ ##
38572 _ASBOX
38573     ) |
38574       sed "s/^/$as_me: WARNING:     /" >&2
38575     ;;
38576 esac
38577 echo "$as_me:$LINENO: checking for $ac_header" >&5
38578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38580   echo $ECHO_N "(cached) $ECHO_C" >&6
38581 else
38582   eval "$as_ac_Header=\$ac_header_preproc"
38583 fi
38584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38586
38587 fi
38588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38589   cat >>confdefs.h <<_ACEOF
38590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38591 _ACEOF
38592
38593 fi
38594
38595 done
38596
38597
38598         if test "$ol_with_tls" = "found" ; then
38599                 ol_have_bn_h=no
38600                 ol_have_crypto_h=no
38601
38602                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38603                    test "$ac_cv_header_bn_h" = "yes" ; then
38604                         ol_have_bn_h=yes
38605                 fi
38606
38607                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38608                    test "$ac_cv_header_crypto_h" = "yes" ; then
38609                         ol_have_crypto_h=yes
38610                 fi
38611
38612                 if test "$ol_have_bn_h" = "yes" &&
38613                    test "$ol_have_crypto_h" = "yes" ; then
38614                         ol_have_bignum=yes
38615                 fi
38616         fi
38617
38618         if test $ac_cv_header_gmp_h = yes ; then
38619                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38620 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38621 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38622   echo $ECHO_N "(cached) $ECHO_C" >&6
38623 else
38624   ac_check_lib_save_LIBS=$LIBS
38625 LIBS="-lgmp  $LIBS"
38626 cat >conftest.$ac_ext <<_ACEOF
38627 /* confdefs.h.  */
38628 _ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h.  */
38632
38633 /* Override any gcc2 internal prototype to avoid an error.  */
38634 #ifdef __cplusplus
38635 extern "C"
38636 #endif
38637 /* We use char because int might match the return type of a gcc2
38638    builtin and then its argument prototype would still apply.  */
38639 char __gmpz_add_ui ();
38640 int
38641 main ()
38642 {
38643 __gmpz_add_ui ();
38644   ;
38645   return 0;
38646 }
38647 _ACEOF
38648 rm -f conftest.$ac_objext conftest$ac_exeext
38649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38650   (eval $ac_link) 2>conftest.er1
38651   ac_status=$?
38652   grep -v '^ *+' conftest.er1 >conftest.err
38653   rm -f conftest.er1
38654   cat conftest.err >&5
38655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38656   (exit $ac_status); } &&
38657          { ac_try='test -z "$ac_c_werror_flag"
38658                          || test ! -s conftest.err'
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); }; } &&
38664          { ac_try='test -s conftest$ac_exeext'
38665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666   (eval $ac_try) 2>&5
38667   ac_status=$?
38668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669   (exit $ac_status); }; }; then
38670   ac_cv_lib_gmp___gmpz_add_ui=yes
38671 else
38672   echo "$as_me: failed program was:" >&5
38673 sed 's/^/| /' conftest.$ac_ext >&5
38674
38675 ac_cv_lib_gmp___gmpz_add_ui=no
38676 fi
38677 rm -f conftest.err conftest.$ac_objext \
38678       conftest$ac_exeext conftest.$ac_ext
38679 LIBS=$ac_check_lib_save_LIBS
38680 fi
38681 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38682 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38683 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38684   have_gmp=yes
38685 else
38686   have_gmp=no
38687 fi
38688
38689                 if test $have_gmp = yes ; then
38690                         ol_have_gmp=yes
38691                 fi
38692         fi
38693
38694         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38695 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38696
38697         ol_mp_support="none"
38698         case "$ol_with_multiple_precision" in
38699         auto)
38700                                                                                 if test "$ol_have_bignum" = "yes" ; then
38701                         ol_mp_support="bignum"
38702                 else
38703                         if test "$ol_have_gmp" = "yes" ; then
38704                                 ol_mp_support="gmp"
38705                         fi
38706                 fi
38707                 ;;
38708         bignum)
38709                 if test "$ol_have_bignum" != "yes" ; then
38710                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38711 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38712    { (exit 1); exit 1; }; }
38713                 fi
38714                 ol_mp_support="bignum"
38715                 ;;
38716         gmp)
38717                 if test "$ol_have_gmp" != "yes" ; then
38718                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38719 echo "$as_me: error: GMP not available" >&2;}
38720    { (exit 1); exit 1; }; }
38721                 fi
38722                 ol_mp_support="gmp"
38723                 ;;
38724         yes)
38725                 if test "$ol_have_bignum" = "yes" ; then
38726                         ol_mp_support="bignum"
38727                 elif test "$ol_have_gmp" = "yes" ; then
38728                         ol_mp_support="gmp"
38729                 else
38730                         { { echo "$as_me:$LINENO: error: not available" >&5
38731 echo "$as_me: error: not available" >&2;}
38732    { (exit 1); exit 1; }; }
38733                 fi
38734                 ;;
38735         esac
38736
38737         case "$ol_mp_support" in
38738         bignum)
38739
38740 cat >>confdefs.h <<\_ACEOF
38741 #define HAVE_BIGNUM 1
38742 _ACEOF
38743
38744                 ;;
38745         gmp)
38746
38747 cat >>confdefs.h <<\_ACEOF
38748 #define HAVE_GMP 1
38749 _ACEOF
38750
38751                 SLAPD_GMP_LIBS=-lgmp
38752                 ;;
38753         none)
38754                 ;;
38755         esac
38756
38757         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38758 echo "${ECHO_T}$ol_mp_support" >&6
38759 fi
38760
38761
38762 echo "$as_me:$LINENO: checking for mode_t" >&5
38763 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38764 if test "${ac_cv_type_mode_t+set}" = set; then
38765   echo $ECHO_N "(cached) $ECHO_C" >&6
38766 else
38767   cat >conftest.$ac_ext <<_ACEOF
38768 /* confdefs.h.  */
38769 _ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h.  */
38773 $ac_includes_default
38774 int
38775 main ()
38776 {
38777 if ((mode_t *) 0)
38778   return 0;
38779 if (sizeof (mode_t))
38780   return 0;
38781   ;
38782   return 0;
38783 }
38784 _ACEOF
38785 rm -f conftest.$ac_objext
38786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38787   (eval $ac_compile) 2>conftest.er1
38788   ac_status=$?
38789   grep -v '^ *+' conftest.er1 >conftest.err
38790   rm -f conftest.er1
38791   cat conftest.err >&5
38792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793   (exit $ac_status); } &&
38794          { ac_try='test -z "$ac_c_werror_flag"
38795                          || test ! -s conftest.err'
38796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38797   (eval $ac_try) 2>&5
38798   ac_status=$?
38799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800   (exit $ac_status); }; } &&
38801          { ac_try='test -s conftest.$ac_objext'
38802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38803   (eval $ac_try) 2>&5
38804   ac_status=$?
38805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38806   (exit $ac_status); }; }; then
38807   ac_cv_type_mode_t=yes
38808 else
38809   echo "$as_me: failed program was:" >&5
38810 sed 's/^/| /' conftest.$ac_ext >&5
38811
38812 ac_cv_type_mode_t=no
38813 fi
38814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38815 fi
38816 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38817 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38818 if test $ac_cv_type_mode_t = yes; then
38819   :
38820 else
38821
38822 cat >>confdefs.h <<_ACEOF
38823 #define mode_t int
38824 _ACEOF
38825
38826 fi
38827
38828 echo "$as_me:$LINENO: checking for off_t" >&5
38829 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38830 if test "${ac_cv_type_off_t+set}" = set; then
38831   echo $ECHO_N "(cached) $ECHO_C" >&6
38832 else
38833   cat >conftest.$ac_ext <<_ACEOF
38834 /* confdefs.h.  */
38835 _ACEOF
38836 cat confdefs.h >>conftest.$ac_ext
38837 cat >>conftest.$ac_ext <<_ACEOF
38838 /* end confdefs.h.  */
38839 $ac_includes_default
38840 int
38841 main ()
38842 {
38843 if ((off_t *) 0)
38844   return 0;
38845 if (sizeof (off_t))
38846   return 0;
38847   ;
38848   return 0;
38849 }
38850 _ACEOF
38851 rm -f conftest.$ac_objext
38852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38853   (eval $ac_compile) 2>conftest.er1
38854   ac_status=$?
38855   grep -v '^ *+' conftest.er1 >conftest.err
38856   rm -f conftest.er1
38857   cat conftest.err >&5
38858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859   (exit $ac_status); } &&
38860          { ac_try='test -z "$ac_c_werror_flag"
38861                          || test ! -s conftest.err'
38862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38863   (eval $ac_try) 2>&5
38864   ac_status=$?
38865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866   (exit $ac_status); }; } &&
38867          { ac_try='test -s conftest.$ac_objext'
38868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38869   (eval $ac_try) 2>&5
38870   ac_status=$?
38871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872   (exit $ac_status); }; }; then
38873   ac_cv_type_off_t=yes
38874 else
38875   echo "$as_me: failed program was:" >&5
38876 sed 's/^/| /' conftest.$ac_ext >&5
38877
38878 ac_cv_type_off_t=no
38879 fi
38880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38881 fi
38882 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38883 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38884 if test $ac_cv_type_off_t = yes; then
38885   :
38886 else
38887
38888 cat >>confdefs.h <<_ACEOF
38889 #define off_t long
38890 _ACEOF
38891
38892 fi
38893
38894 echo "$as_me:$LINENO: checking for pid_t" >&5
38895 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38896 if test "${ac_cv_type_pid_t+set}" = set; then
38897   echo $ECHO_N "(cached) $ECHO_C" >&6
38898 else
38899   cat >conftest.$ac_ext <<_ACEOF
38900 /* confdefs.h.  */
38901 _ACEOF
38902 cat confdefs.h >>conftest.$ac_ext
38903 cat >>conftest.$ac_ext <<_ACEOF
38904 /* end confdefs.h.  */
38905 $ac_includes_default
38906 int
38907 main ()
38908 {
38909 if ((pid_t *) 0)
38910   return 0;
38911 if (sizeof (pid_t))
38912   return 0;
38913   ;
38914   return 0;
38915 }
38916 _ACEOF
38917 rm -f conftest.$ac_objext
38918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38919   (eval $ac_compile) 2>conftest.er1
38920   ac_status=$?
38921   grep -v '^ *+' conftest.er1 >conftest.err
38922   rm -f conftest.er1
38923   cat conftest.err >&5
38924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925   (exit $ac_status); } &&
38926          { ac_try='test -z "$ac_c_werror_flag"
38927                          || test ! -s conftest.err'
38928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38929   (eval $ac_try) 2>&5
38930   ac_status=$?
38931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932   (exit $ac_status); }; } &&
38933          { ac_try='test -s conftest.$ac_objext'
38934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38935   (eval $ac_try) 2>&5
38936   ac_status=$?
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); }; }; then
38939   ac_cv_type_pid_t=yes
38940 else
38941   echo "$as_me: failed program was:" >&5
38942 sed 's/^/| /' conftest.$ac_ext >&5
38943
38944 ac_cv_type_pid_t=no
38945 fi
38946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38947 fi
38948 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38949 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38950 if test $ac_cv_type_pid_t = yes; then
38951   :
38952 else
38953
38954 cat >>confdefs.h <<_ACEOF
38955 #define pid_t int
38956 _ACEOF
38957
38958 fi
38959
38960 echo "$as_me:$LINENO: checking for ssize_t" >&5
38961 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38962 if test "${ac_cv_type_ssize_t+set}" = set; then
38963   echo $ECHO_N "(cached) $ECHO_C" >&6
38964 else
38965   cat >conftest.$ac_ext <<_ACEOF
38966 /* confdefs.h.  */
38967 _ACEOF
38968 cat confdefs.h >>conftest.$ac_ext
38969 cat >>conftest.$ac_ext <<_ACEOF
38970 /* end confdefs.h.  */
38971 $ac_includes_default
38972 int
38973 main ()
38974 {
38975 if ((ssize_t *) 0)
38976   return 0;
38977 if (sizeof (ssize_t))
38978   return 0;
38979   ;
38980   return 0;
38981 }
38982 _ACEOF
38983 rm -f conftest.$ac_objext
38984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38985   (eval $ac_compile) 2>conftest.er1
38986   ac_status=$?
38987   grep -v '^ *+' conftest.er1 >conftest.err
38988   rm -f conftest.er1
38989   cat conftest.err >&5
38990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991   (exit $ac_status); } &&
38992          { ac_try='test -z "$ac_c_werror_flag"
38993                          || test ! -s conftest.err'
38994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38995   (eval $ac_try) 2>&5
38996   ac_status=$?
38997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998   (exit $ac_status); }; } &&
38999          { ac_try='test -s conftest.$ac_objext'
39000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39001   (eval $ac_try) 2>&5
39002   ac_status=$?
39003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004   (exit $ac_status); }; }; then
39005   ac_cv_type_ssize_t=yes
39006 else
39007   echo "$as_me: failed program was:" >&5
39008 sed 's/^/| /' conftest.$ac_ext >&5
39009
39010 ac_cv_type_ssize_t=no
39011 fi
39012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39013 fi
39014 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39015 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39016 if test $ac_cv_type_ssize_t = yes; then
39017   :
39018 else
39019
39020 cat >>confdefs.h <<_ACEOF
39021 #define ssize_t signed int
39022 _ACEOF
39023
39024 fi
39025
39026 echo "$as_me:$LINENO: checking for caddr_t" >&5
39027 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39028 if test "${ac_cv_type_caddr_t+set}" = set; then
39029   echo $ECHO_N "(cached) $ECHO_C" >&6
39030 else
39031   cat >conftest.$ac_ext <<_ACEOF
39032 /* confdefs.h.  */
39033 _ACEOF
39034 cat confdefs.h >>conftest.$ac_ext
39035 cat >>conftest.$ac_ext <<_ACEOF
39036 /* end confdefs.h.  */
39037 $ac_includes_default
39038 int
39039 main ()
39040 {
39041 if ((caddr_t *) 0)
39042   return 0;
39043 if (sizeof (caddr_t))
39044   return 0;
39045   ;
39046   return 0;
39047 }
39048 _ACEOF
39049 rm -f conftest.$ac_objext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39051   (eval $ac_compile) 2>conftest.er1
39052   ac_status=$?
39053   grep -v '^ *+' conftest.er1 >conftest.err
39054   rm -f conftest.er1
39055   cat conftest.err >&5
39056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057   (exit $ac_status); } &&
39058          { ac_try='test -z "$ac_c_werror_flag"
39059                          || test ! -s conftest.err'
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); }; } &&
39065          { ac_try='test -s conftest.$ac_objext'
39066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39067   (eval $ac_try) 2>&5
39068   ac_status=$?
39069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070   (exit $ac_status); }; }; then
39071   ac_cv_type_caddr_t=yes
39072 else
39073   echo "$as_me: failed program was:" >&5
39074 sed 's/^/| /' conftest.$ac_ext >&5
39075
39076 ac_cv_type_caddr_t=no
39077 fi
39078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39079 fi
39080 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39081 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39082 if test $ac_cv_type_caddr_t = yes; then
39083   :
39084 else
39085
39086 cat >>confdefs.h <<_ACEOF
39087 #define caddr_t char *
39088 _ACEOF
39089
39090 fi
39091
39092 echo "$as_me:$LINENO: checking for size_t" >&5
39093 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39094 if test "${ac_cv_type_size_t+set}" = set; then
39095   echo $ECHO_N "(cached) $ECHO_C" >&6
39096 else
39097   cat >conftest.$ac_ext <<_ACEOF
39098 /* confdefs.h.  */
39099 _ACEOF
39100 cat confdefs.h >>conftest.$ac_ext
39101 cat >>conftest.$ac_ext <<_ACEOF
39102 /* end confdefs.h.  */
39103 $ac_includes_default
39104 int
39105 main ()
39106 {
39107 if ((size_t *) 0)
39108   return 0;
39109 if (sizeof (size_t))
39110   return 0;
39111   ;
39112   return 0;
39113 }
39114 _ACEOF
39115 rm -f conftest.$ac_objext
39116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39117   (eval $ac_compile) 2>conftest.er1
39118   ac_status=$?
39119   grep -v '^ *+' conftest.er1 >conftest.err
39120   rm -f conftest.er1
39121   cat conftest.err >&5
39122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123   (exit $ac_status); } &&
39124          { ac_try='test -z "$ac_c_werror_flag"
39125                          || test ! -s conftest.err'
39126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39127   (eval $ac_try) 2>&5
39128   ac_status=$?
39129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39130   (exit $ac_status); }; } &&
39131          { ac_try='test -s conftest.$ac_objext'
39132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133   (eval $ac_try) 2>&5
39134   ac_status=$?
39135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136   (exit $ac_status); }; }; then
39137   ac_cv_type_size_t=yes
39138 else
39139   echo "$as_me: failed program was:" >&5
39140 sed 's/^/| /' conftest.$ac_ext >&5
39141
39142 ac_cv_type_size_t=no
39143 fi
39144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39145 fi
39146 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39147 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39148 if test $ac_cv_type_size_t = yes; then
39149   :
39150 else
39151
39152 cat >>confdefs.h <<_ACEOF
39153 #define size_t unsigned
39154 _ACEOF
39155
39156 fi
39157
39158
39159 echo "$as_me:$LINENO: checking for long long" >&5
39160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39161 if test "${ac_cv_type_long_long+set}" = set; then
39162   echo $ECHO_N "(cached) $ECHO_C" >&6
39163 else
39164   cat >conftest.$ac_ext <<_ACEOF
39165 /* confdefs.h.  */
39166 _ACEOF
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h.  */
39170 $ac_includes_default
39171 int
39172 main ()
39173 {
39174 if ((long long *) 0)
39175   return 0;
39176 if (sizeof (long long))
39177   return 0;
39178   ;
39179   return 0;
39180 }
39181 _ACEOF
39182 rm -f conftest.$ac_objext
39183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39184   (eval $ac_compile) 2>conftest.er1
39185   ac_status=$?
39186   grep -v '^ *+' conftest.er1 >conftest.err
39187   rm -f conftest.er1
39188   cat conftest.err >&5
39189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190   (exit $ac_status); } &&
39191          { ac_try='test -z "$ac_c_werror_flag"
39192                          || test ! -s conftest.err'
39193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39194   (eval $ac_try) 2>&5
39195   ac_status=$?
39196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197   (exit $ac_status); }; } &&
39198          { ac_try='test -s conftest.$ac_objext'
39199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39200   (eval $ac_try) 2>&5
39201   ac_status=$?
39202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39203   (exit $ac_status); }; }; then
39204   ac_cv_type_long_long=yes
39205 else
39206   echo "$as_me: failed program was:" >&5
39207 sed 's/^/| /' conftest.$ac_ext >&5
39208
39209 ac_cv_type_long_long=no
39210 fi
39211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39212 fi
39213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39215 if test $ac_cv_type_long_long = yes; then
39216
39217 cat >>confdefs.h <<_ACEOF
39218 #define HAVE_LONG_LONG 1
39219 _ACEOF
39220
39221
39222 fi
39223
39224 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39225 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39226 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39227   echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39229   cat >conftest.$ac_ext <<_ACEOF
39230 /* confdefs.h.  */
39231 _ACEOF
39232 cat confdefs.h >>conftest.$ac_ext
39233 cat >>conftest.$ac_ext <<_ACEOF
39234 /* end confdefs.h.  */
39235 $ac_includes_default
39236 int
39237 main ()
39238 {
39239 if ((ptrdiff_t *) 0)
39240   return 0;
39241 if (sizeof (ptrdiff_t))
39242   return 0;
39243   ;
39244   return 0;
39245 }
39246 _ACEOF
39247 rm -f conftest.$ac_objext
39248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39249   (eval $ac_compile) 2>conftest.er1
39250   ac_status=$?
39251   grep -v '^ *+' conftest.er1 >conftest.err
39252   rm -f conftest.er1
39253   cat conftest.err >&5
39254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255   (exit $ac_status); } &&
39256          { ac_try='test -z "$ac_c_werror_flag"
39257                          || test ! -s conftest.err'
39258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259   (eval $ac_try) 2>&5
39260   ac_status=$?
39261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262   (exit $ac_status); }; } &&
39263          { ac_try='test -s conftest.$ac_objext'
39264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265   (eval $ac_try) 2>&5
39266   ac_status=$?
39267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268   (exit $ac_status); }; }; then
39269   ac_cv_type_ptrdiff_t=yes
39270 else
39271   echo "$as_me: failed program was:" >&5
39272 sed 's/^/| /' conftest.$ac_ext >&5
39273
39274 ac_cv_type_ptrdiff_t=no
39275 fi
39276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39277 fi
39278 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39279 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39280 if test $ac_cv_type_ptrdiff_t = yes; then
39281
39282 cat >>confdefs.h <<_ACEOF
39283 #define HAVE_PTRDIFF_T 1
39284 _ACEOF
39285
39286
39287 fi
39288
39289
39290 echo "$as_me:$LINENO: checking for socklen_t" >&5
39291 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39292 if test "${ac_cv_type_socklen_t+set}" = set; then
39293   echo $ECHO_N "(cached) $ECHO_C" >&6
39294 else
39295   cat >conftest.$ac_ext <<_ACEOF
39296 /* confdefs.h.  */
39297 _ACEOF
39298 cat confdefs.h >>conftest.$ac_ext
39299 cat >>conftest.$ac_ext <<_ACEOF
39300 /* end confdefs.h.  */
39301 $ac_includes_default
39302 #ifdef HAVE_SYS_SOCKET_H
39303 #include <sys/socket.h>
39304 #endif
39305
39306
39307 int
39308 main ()
39309 {
39310 if ((socklen_t *) 0)
39311   return 0;
39312 if (sizeof (socklen_t))
39313   return 0;
39314   ;
39315   return 0;
39316 }
39317 _ACEOF
39318 rm -f conftest.$ac_objext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39320   (eval $ac_compile) 2>conftest.er1
39321   ac_status=$?
39322   grep -v '^ *+' conftest.er1 >conftest.err
39323   rm -f conftest.er1
39324   cat conftest.err >&5
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); } &&
39327          { ac_try='test -z "$ac_c_werror_flag"
39328                          || test ! -s conftest.err'
39329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330   (eval $ac_try) 2>&5
39331   ac_status=$?
39332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333   (exit $ac_status); }; } &&
39334          { ac_try='test -s conftest.$ac_objext'
39335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336   (eval $ac_try) 2>&5
39337   ac_status=$?
39338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339   (exit $ac_status); }; }; then
39340   ac_cv_type_socklen_t=yes
39341 else
39342   echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39344
39345 ac_cv_type_socklen_t=no
39346 fi
39347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39348 fi
39349 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39350 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39351 if test $ac_cv_type_socklen_t = yes; then
39352   :
39353 else
39354
39355 cat >>confdefs.h <<_ACEOF
39356 #define socklen_t int
39357 _ACEOF
39358
39359 fi
39360
39361
39362 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39363 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39364 if test "${ac_cv_type_signal+set}" = set; then
39365   echo $ECHO_N "(cached) $ECHO_C" >&6
39366 else
39367   cat >conftest.$ac_ext <<_ACEOF
39368 /* confdefs.h.  */
39369 _ACEOF
39370 cat confdefs.h >>conftest.$ac_ext
39371 cat >>conftest.$ac_ext <<_ACEOF
39372 /* end confdefs.h.  */
39373 #include <sys/types.h>
39374 #include <signal.h>
39375 #ifdef signal
39376 # undef signal
39377 #endif
39378 #ifdef __cplusplus
39379 extern "C" void (*signal (int, void (*)(int)))(int);
39380 #else
39381 void (*signal ()) ();
39382 #endif
39383
39384 int
39385 main ()
39386 {
39387 int i;
39388   ;
39389   return 0;
39390 }
39391 _ACEOF
39392 rm -f conftest.$ac_objext
39393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39394   (eval $ac_compile) 2>conftest.er1
39395   ac_status=$?
39396   grep -v '^ *+' conftest.er1 >conftest.err
39397   rm -f conftest.er1
39398   cat conftest.err >&5
39399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400   (exit $ac_status); } &&
39401          { ac_try='test -z "$ac_c_werror_flag"
39402                          || test ! -s conftest.err'
39403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404   (eval $ac_try) 2>&5
39405   ac_status=$?
39406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); }; } &&
39408          { ac_try='test -s conftest.$ac_objext'
39409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39410   (eval $ac_try) 2>&5
39411   ac_status=$?
39412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39413   (exit $ac_status); }; }; then
39414   ac_cv_type_signal=void
39415 else
39416   echo "$as_me: failed program was:" >&5
39417 sed 's/^/| /' conftest.$ac_ext >&5
39418
39419 ac_cv_type_signal=int
39420 fi
39421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39422 fi
39423 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39424 echo "${ECHO_T}$ac_cv_type_signal" >&6
39425
39426 cat >>confdefs.h <<_ACEOF
39427 #define RETSIGTYPE $ac_cv_type_signal
39428 _ACEOF
39429
39430
39431
39432 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39433 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39434 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39435   echo $ECHO_N "(cached) $ECHO_C" >&6
39436 else
39437   cat >conftest.$ac_ext <<_ACEOF
39438 /* confdefs.h.  */
39439 _ACEOF
39440 cat confdefs.h >>conftest.$ac_ext
39441 cat >>conftest.$ac_ext <<_ACEOF
39442 /* end confdefs.h.  */
39443 $ac_includes_default
39444 #include <signal.h>
39445
39446
39447 int
39448 main ()
39449 {
39450 if ((sig_atomic_t *) 0)
39451   return 0;
39452 if (sizeof (sig_atomic_t))
39453   return 0;
39454   ;
39455   return 0;
39456 }
39457 _ACEOF
39458 rm -f conftest.$ac_objext
39459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39460   (eval $ac_compile) 2>conftest.er1
39461   ac_status=$?
39462   grep -v '^ *+' conftest.er1 >conftest.err
39463   rm -f conftest.er1
39464   cat conftest.err >&5
39465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466   (exit $ac_status); } &&
39467          { ac_try='test -z "$ac_c_werror_flag"
39468                          || test ! -s conftest.err'
39469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39470   (eval $ac_try) 2>&5
39471   ac_status=$?
39472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39473   (exit $ac_status); }; } &&
39474          { ac_try='test -s conftest.$ac_objext'
39475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39476   (eval $ac_try) 2>&5
39477   ac_status=$?
39478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479   (exit $ac_status); }; }; then
39480   ac_cv_type_sig_atomic_t=yes
39481 else
39482   echo "$as_me: failed program was:" >&5
39483 sed 's/^/| /' conftest.$ac_ext >&5
39484
39485 ac_cv_type_sig_atomic_t=no
39486 fi
39487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39488 fi
39489 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39490 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39491 if test $ac_cv_type_sig_atomic_t = yes; then
39492   :
39493 else
39494
39495 cat >>confdefs.h <<_ACEOF
39496 #define sig_atomic_t int
39497 _ACEOF
39498
39499 fi
39500
39501
39502 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39503 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39504 if test "${ac_cv_type_uid_t+set}" = set; then
39505   echo $ECHO_N "(cached) $ECHO_C" >&6
39506 else
39507   cat >conftest.$ac_ext <<_ACEOF
39508 /* confdefs.h.  */
39509 _ACEOF
39510 cat confdefs.h >>conftest.$ac_ext
39511 cat >>conftest.$ac_ext <<_ACEOF
39512 /* end confdefs.h.  */
39513 #include <sys/types.h>
39514
39515 _ACEOF
39516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39517   $EGREP "uid_t" >/dev/null 2>&1; then
39518   ac_cv_type_uid_t=yes
39519 else
39520   ac_cv_type_uid_t=no
39521 fi
39522 rm -f conftest*
39523
39524 fi
39525 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39526 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39527 if test $ac_cv_type_uid_t = no; then
39528
39529 cat >>confdefs.h <<\_ACEOF
39530 #define uid_t int
39531 _ACEOF
39532
39533
39534 cat >>confdefs.h <<\_ACEOF
39535 #define gid_t int
39536 _ACEOF
39537
39538 fi
39539
39540
39541 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39542 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39543 if test "${ac_cv_header_time+set}" = set; then
39544   echo $ECHO_N "(cached) $ECHO_C" >&6
39545 else
39546   cat >conftest.$ac_ext <<_ACEOF
39547 /* confdefs.h.  */
39548 _ACEOF
39549 cat confdefs.h >>conftest.$ac_ext
39550 cat >>conftest.$ac_ext <<_ACEOF
39551 /* end confdefs.h.  */
39552 #include <sys/types.h>
39553 #include <sys/time.h>
39554 #include <time.h>
39555
39556 int
39557 main ()
39558 {
39559 if ((struct tm *) 0)
39560 return 0;
39561   ;
39562   return 0;
39563 }
39564 _ACEOF
39565 rm -f conftest.$ac_objext
39566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39567   (eval $ac_compile) 2>conftest.er1
39568   ac_status=$?
39569   grep -v '^ *+' conftest.er1 >conftest.err
39570   rm -f conftest.er1
39571   cat conftest.err >&5
39572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573   (exit $ac_status); } &&
39574          { ac_try='test -z "$ac_c_werror_flag"
39575                          || test ! -s conftest.err'
39576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39577   (eval $ac_try) 2>&5
39578   ac_status=$?
39579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39580   (exit $ac_status); }; } &&
39581          { ac_try='test -s conftest.$ac_objext'
39582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583   (eval $ac_try) 2>&5
39584   ac_status=$?
39585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586   (exit $ac_status); }; }; then
39587   ac_cv_header_time=yes
39588 else
39589   echo "$as_me: failed program was:" >&5
39590 sed 's/^/| /' conftest.$ac_ext >&5
39591
39592 ac_cv_header_time=no
39593 fi
39594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39595 fi
39596 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39597 echo "${ECHO_T}$ac_cv_header_time" >&6
39598 if test $ac_cv_header_time = yes; then
39599
39600 cat >>confdefs.h <<\_ACEOF
39601 #define TIME_WITH_SYS_TIME 1
39602 _ACEOF
39603
39604 fi
39605
39606 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39607 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39608 if test "${ac_cv_struct_tm+set}" = set; then
39609   echo $ECHO_N "(cached) $ECHO_C" >&6
39610 else
39611   cat >conftest.$ac_ext <<_ACEOF
39612 /* confdefs.h.  */
39613 _ACEOF
39614 cat confdefs.h >>conftest.$ac_ext
39615 cat >>conftest.$ac_ext <<_ACEOF
39616 /* end confdefs.h.  */
39617 #include <sys/types.h>
39618 #include <time.h>
39619
39620 int
39621 main ()
39622 {
39623 struct tm *tp; tp->tm_sec;
39624   ;
39625   return 0;
39626 }
39627 _ACEOF
39628 rm -f conftest.$ac_objext
39629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39630   (eval $ac_compile) 2>conftest.er1
39631   ac_status=$?
39632   grep -v '^ *+' conftest.er1 >conftest.err
39633   rm -f conftest.er1
39634   cat conftest.err >&5
39635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636   (exit $ac_status); } &&
39637          { ac_try='test -z "$ac_c_werror_flag"
39638                          || test ! -s conftest.err'
39639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39640   (eval $ac_try) 2>&5
39641   ac_status=$?
39642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39643   (exit $ac_status); }; } &&
39644          { ac_try='test -s conftest.$ac_objext'
39645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39646   (eval $ac_try) 2>&5
39647   ac_status=$?
39648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); }; }; then
39650   ac_cv_struct_tm=time.h
39651 else
39652   echo "$as_me: failed program was:" >&5
39653 sed 's/^/| /' conftest.$ac_ext >&5
39654
39655 ac_cv_struct_tm=sys/time.h
39656 fi
39657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39658 fi
39659 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39660 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39661 if test $ac_cv_struct_tm = sys/time.h; then
39662
39663 cat >>confdefs.h <<\_ACEOF
39664 #define TM_IN_SYS_TIME 1
39665 _ACEOF
39666
39667 fi
39668
39669 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39670 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39671 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39672   echo $ECHO_N "(cached) $ECHO_C" >&6
39673 else
39674   cat >conftest.$ac_ext <<_ACEOF
39675 /* confdefs.h.  */
39676 _ACEOF
39677 cat confdefs.h >>conftest.$ac_ext
39678 cat >>conftest.$ac_ext <<_ACEOF
39679 /* end confdefs.h.  */
39680 $ac_includes_default
39681 int
39682 main ()
39683 {
39684 static struct stat ac_aggr;
39685 if (ac_aggr.st_blksize)
39686 return 0;
39687   ;
39688   return 0;
39689 }
39690 _ACEOF
39691 rm -f conftest.$ac_objext
39692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39693   (eval $ac_compile) 2>conftest.er1
39694   ac_status=$?
39695   grep -v '^ *+' conftest.er1 >conftest.err
39696   rm -f conftest.er1
39697   cat conftest.err >&5
39698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39699   (exit $ac_status); } &&
39700          { ac_try='test -z "$ac_c_werror_flag"
39701                          || test ! -s conftest.err'
39702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39703   (eval $ac_try) 2>&5
39704   ac_status=$?
39705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39706   (exit $ac_status); }; } &&
39707          { ac_try='test -s conftest.$ac_objext'
39708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39709   (eval $ac_try) 2>&5
39710   ac_status=$?
39711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712   (exit $ac_status); }; }; then
39713   ac_cv_member_struct_stat_st_blksize=yes
39714 else
39715   echo "$as_me: failed program was:" >&5
39716 sed 's/^/| /' conftest.$ac_ext >&5
39717
39718 cat >conftest.$ac_ext <<_ACEOF
39719 /* confdefs.h.  */
39720 _ACEOF
39721 cat confdefs.h >>conftest.$ac_ext
39722 cat >>conftest.$ac_ext <<_ACEOF
39723 /* end confdefs.h.  */
39724 $ac_includes_default
39725 int
39726 main ()
39727 {
39728 static struct stat ac_aggr;
39729 if (sizeof ac_aggr.st_blksize)
39730 return 0;
39731   ;
39732   return 0;
39733 }
39734 _ACEOF
39735 rm -f conftest.$ac_objext
39736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39737   (eval $ac_compile) 2>conftest.er1
39738   ac_status=$?
39739   grep -v '^ *+' conftest.er1 >conftest.err
39740   rm -f conftest.er1
39741   cat conftest.err >&5
39742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743   (exit $ac_status); } &&
39744          { ac_try='test -z "$ac_c_werror_flag"
39745                          || test ! -s conftest.err'
39746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747   (eval $ac_try) 2>&5
39748   ac_status=$?
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); }; } &&
39751          { ac_try='test -s conftest.$ac_objext'
39752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753   (eval $ac_try) 2>&5
39754   ac_status=$?
39755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756   (exit $ac_status); }; }; then
39757   ac_cv_member_struct_stat_st_blksize=yes
39758 else
39759   echo "$as_me: failed program was:" >&5
39760 sed 's/^/| /' conftest.$ac_ext >&5
39761
39762 ac_cv_member_struct_stat_st_blksize=no
39763 fi
39764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39765 fi
39766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39767 fi
39768 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39769 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39770 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39771
39772 cat >>confdefs.h <<_ACEOF
39773 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39774 _ACEOF
39775
39776
39777 fi
39778
39779 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39780 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39781 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39782   echo $ECHO_N "(cached) $ECHO_C" >&6
39783 else
39784   cat >conftest.$ac_ext <<_ACEOF
39785 /* confdefs.h.  */
39786 _ACEOF
39787 cat confdefs.h >>conftest.$ac_ext
39788 cat >>conftest.$ac_ext <<_ACEOF
39789 /* end confdefs.h.  */
39790 $ac_includes_default
39791 #include <pwd.h>
39792
39793 int
39794 main ()
39795 {
39796 static struct passwd ac_aggr;
39797 if (ac_aggr.pw_gecos)
39798 return 0;
39799   ;
39800   return 0;
39801 }
39802 _ACEOF
39803 rm -f conftest.$ac_objext
39804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39805   (eval $ac_compile) 2>conftest.er1
39806   ac_status=$?
39807   grep -v '^ *+' conftest.er1 >conftest.err
39808   rm -f conftest.er1
39809   cat conftest.err >&5
39810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39811   (exit $ac_status); } &&
39812          { ac_try='test -z "$ac_c_werror_flag"
39813                          || test ! -s conftest.err'
39814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815   (eval $ac_try) 2>&5
39816   ac_status=$?
39817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818   (exit $ac_status); }; } &&
39819          { ac_try='test -s conftest.$ac_objext'
39820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821   (eval $ac_try) 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); }; }; then
39825   ac_cv_member_struct_passwd_pw_gecos=yes
39826 else
39827   echo "$as_me: failed program was:" >&5
39828 sed 's/^/| /' conftest.$ac_ext >&5
39829
39830 cat >conftest.$ac_ext <<_ACEOF
39831 /* confdefs.h.  */
39832 _ACEOF
39833 cat confdefs.h >>conftest.$ac_ext
39834 cat >>conftest.$ac_ext <<_ACEOF
39835 /* end confdefs.h.  */
39836 $ac_includes_default
39837 #include <pwd.h>
39838
39839 int
39840 main ()
39841 {
39842 static struct passwd ac_aggr;
39843 if (sizeof ac_aggr.pw_gecos)
39844 return 0;
39845   ;
39846   return 0;
39847 }
39848 _ACEOF
39849 rm -f conftest.$ac_objext
39850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39851   (eval $ac_compile) 2>conftest.er1
39852   ac_status=$?
39853   grep -v '^ *+' conftest.er1 >conftest.err
39854   rm -f conftest.er1
39855   cat conftest.err >&5
39856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39857   (exit $ac_status); } &&
39858          { ac_try='test -z "$ac_c_werror_flag"
39859                          || test ! -s conftest.err'
39860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39861   (eval $ac_try) 2>&5
39862   ac_status=$?
39863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864   (exit $ac_status); }; } &&
39865          { ac_try='test -s conftest.$ac_objext'
39866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867   (eval $ac_try) 2>&5
39868   ac_status=$?
39869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870   (exit $ac_status); }; }; then
39871   ac_cv_member_struct_passwd_pw_gecos=yes
39872 else
39873   echo "$as_me: failed program was:" >&5
39874 sed 's/^/| /' conftest.$ac_ext >&5
39875
39876 ac_cv_member_struct_passwd_pw_gecos=no
39877 fi
39878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39879 fi
39880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39881 fi
39882 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39883 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39884 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39885
39886 cat >>confdefs.h <<_ACEOF
39887 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39888 _ACEOF
39889
39890
39891 fi
39892
39893 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39894 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39895 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39896   echo $ECHO_N "(cached) $ECHO_C" >&6
39897 else
39898   cat >conftest.$ac_ext <<_ACEOF
39899 /* confdefs.h.  */
39900 _ACEOF
39901 cat confdefs.h >>conftest.$ac_ext
39902 cat >>conftest.$ac_ext <<_ACEOF
39903 /* end confdefs.h.  */
39904 $ac_includes_default
39905 #include <pwd.h>
39906
39907 int
39908 main ()
39909 {
39910 static struct passwd ac_aggr;
39911 if (ac_aggr.pw_passwd)
39912 return 0;
39913   ;
39914   return 0;
39915 }
39916 _ACEOF
39917 rm -f conftest.$ac_objext
39918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39919   (eval $ac_compile) 2>conftest.er1
39920   ac_status=$?
39921   grep -v '^ *+' conftest.er1 >conftest.err
39922   rm -f conftest.er1
39923   cat conftest.err >&5
39924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925   (exit $ac_status); } &&
39926          { ac_try='test -z "$ac_c_werror_flag"
39927                          || test ! -s conftest.err'
39928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929   (eval $ac_try) 2>&5
39930   ac_status=$?
39931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932   (exit $ac_status); }; } &&
39933          { ac_try='test -s conftest.$ac_objext'
39934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935   (eval $ac_try) 2>&5
39936   ac_status=$?
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); }; }; then
39939   ac_cv_member_struct_passwd_pw_passwd=yes
39940 else
39941   echo "$as_me: failed program was:" >&5
39942 sed 's/^/| /' conftest.$ac_ext >&5
39943
39944 cat >conftest.$ac_ext <<_ACEOF
39945 /* confdefs.h.  */
39946 _ACEOF
39947 cat confdefs.h >>conftest.$ac_ext
39948 cat >>conftest.$ac_ext <<_ACEOF
39949 /* end confdefs.h.  */
39950 $ac_includes_default
39951 #include <pwd.h>
39952
39953 int
39954 main ()
39955 {
39956 static struct passwd ac_aggr;
39957 if (sizeof ac_aggr.pw_passwd)
39958 return 0;
39959   ;
39960   return 0;
39961 }
39962 _ACEOF
39963 rm -f conftest.$ac_objext
39964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39965   (eval $ac_compile) 2>conftest.er1
39966   ac_status=$?
39967   grep -v '^ *+' conftest.er1 >conftest.err
39968   rm -f conftest.er1
39969   cat conftest.err >&5
39970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971   (exit $ac_status); } &&
39972          { ac_try='test -z "$ac_c_werror_flag"
39973                          || test ! -s conftest.err'
39974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39975   (eval $ac_try) 2>&5
39976   ac_status=$?
39977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39978   (exit $ac_status); }; } &&
39979          { ac_try='test -s conftest.$ac_objext'
39980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981   (eval $ac_try) 2>&5
39982   ac_status=$?
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); }; }; then
39985   ac_cv_member_struct_passwd_pw_passwd=yes
39986 else
39987   echo "$as_me: failed program was:" >&5
39988 sed 's/^/| /' conftest.$ac_ext >&5
39989
39990 ac_cv_member_struct_passwd_pw_passwd=no
39991 fi
39992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39993 fi
39994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39995 fi
39996 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39997 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39998 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39999
40000 cat >>confdefs.h <<_ACEOF
40001 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40002 _ACEOF
40003
40004
40005 fi
40006
40007
40008 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40009 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40010 if test "${ol_cv_c_upper_lower+set}" = set; then
40011   echo $ECHO_N "(cached) $ECHO_C" >&6
40012 else
40013
40014         if test "$cross_compiling" = yes; then
40015   ol_cv_c_upper_lower=safe
40016 else
40017   cat >conftest.$ac_ext <<_ACEOF
40018 /* confdefs.h.  */
40019 _ACEOF
40020 cat confdefs.h >>conftest.$ac_ext
40021 cat >>conftest.$ac_ext <<_ACEOF
40022 /* end confdefs.h.  */
40023
40024 #include <ctype.h>
40025 main()
40026 {
40027         if ('C' == toupper('C'))
40028                 exit(0);
40029         else
40030                 exit(1);
40031 }
40032 _ACEOF
40033 rm -f conftest$ac_exeext
40034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40035   (eval $ac_link) 2>&5
40036   ac_status=$?
40037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40040   (eval $ac_try) 2>&5
40041   ac_status=$?
40042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40043   (exit $ac_status); }; }; then
40044   ol_cv_c_upper_lower=no
40045 else
40046   echo "$as_me: program exited with status $ac_status" >&5
40047 echo "$as_me: failed program was:" >&5
40048 sed 's/^/| /' conftest.$ac_ext >&5
40049
40050 ( exit $ac_status )
40051 ol_cv_c_upper_lower=yes
40052 fi
40053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40054 fi
40055 fi
40056 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40057 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40058 if test $ol_cv_c_upper_lower != no ; then
40059
40060 cat >>confdefs.h <<\_ACEOF
40061 #define C_UPPER_LOWER 1
40062 _ACEOF
40063
40064 fi
40065
40066 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40068 if test "${ac_cv_c_const+set}" = set; then
40069   echo $ECHO_N "(cached) $ECHO_C" >&6
40070 else
40071   cat >conftest.$ac_ext <<_ACEOF
40072 /* confdefs.h.  */
40073 _ACEOF
40074 cat confdefs.h >>conftest.$ac_ext
40075 cat >>conftest.$ac_ext <<_ACEOF
40076 /* end confdefs.h.  */
40077
40078 int
40079 main ()
40080 {
40081 /* FIXME: Include the comments suggested by Paul. */
40082 #ifndef __cplusplus
40083   /* Ultrix mips cc rejects this.  */
40084   typedef int charset[2];
40085   const charset x;
40086   /* SunOS 4.1.1 cc rejects this.  */
40087   char const *const *ccp;
40088   char **p;
40089   /* NEC SVR4.0.2 mips cc rejects this.  */
40090   struct point {int x, y;};
40091   static struct point const zero = {0,0};
40092   /* AIX XL C 1.02.0.0 rejects this.
40093      It does not let you subtract one const X* pointer from another in
40094      an arm of an if-expression whose if-part is not a constant
40095      expression */
40096   const char *g = "string";
40097   ccp = &g + (g ? g-g : 0);
40098   /* HPUX 7.0 cc rejects these. */
40099   ++ccp;
40100   p = (char**) ccp;
40101   ccp = (char const *const *) p;
40102   { /* SCO 3.2v4 cc rejects this.  */
40103     char *t;
40104     char const *s = 0 ? (char *) 0 : (char const *) 0;
40105
40106     *t++ = 0;
40107   }
40108   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40109     int x[] = {25, 17};
40110     const int *foo = &x[0];
40111     ++foo;
40112   }
40113   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40114     typedef const int *iptr;
40115     iptr p = 0;
40116     ++p;
40117   }
40118   { /* AIX XL C 1.02.0.0 rejects this saying
40119        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40120     struct s { int j; const int *ap[3]; };
40121     struct s *b; b->j = 5;
40122   }
40123   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40124     const int foo = 10;
40125   }
40126 #endif
40127
40128   ;
40129   return 0;
40130 }
40131 _ACEOF
40132 rm -f conftest.$ac_objext
40133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40134   (eval $ac_compile) 2>conftest.er1
40135   ac_status=$?
40136   grep -v '^ *+' conftest.er1 >conftest.err
40137   rm -f conftest.er1
40138   cat conftest.err >&5
40139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140   (exit $ac_status); } &&
40141          { ac_try='test -z "$ac_c_werror_flag"
40142                          || test ! -s conftest.err'
40143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40144   (eval $ac_try) 2>&5
40145   ac_status=$?
40146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); }; } &&
40148          { ac_try='test -s conftest.$ac_objext'
40149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40150   (eval $ac_try) 2>&5
40151   ac_status=$?
40152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40153   (exit $ac_status); }; }; then
40154   ac_cv_c_const=yes
40155 else
40156   echo "$as_me: failed program was:" >&5
40157 sed 's/^/| /' conftest.$ac_ext >&5
40158
40159 ac_cv_c_const=no
40160 fi
40161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40162 fi
40163 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40164 echo "${ECHO_T}$ac_cv_c_const" >&6
40165 if test $ac_cv_c_const = no; then
40166
40167 cat >>confdefs.h <<\_ACEOF
40168 #define const
40169 _ACEOF
40170
40171 fi
40172
40173 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40174 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40175 if test "${ol_cv_c_volatile+set}" = set; then
40176   echo $ECHO_N "(cached) $ECHO_C" >&6
40177 else
40178   cat >conftest.$ac_ext <<_ACEOF
40179 /* confdefs.h.  */
40180 _ACEOF
40181 cat confdefs.h >>conftest.$ac_ext
40182 cat >>conftest.$ac_ext <<_ACEOF
40183 /* end confdefs.h.  */
40184 int x, y, z;
40185 int
40186 main ()
40187 {
40188 volatile int a; int * volatile b = x ? &y : &z;
40189       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40190       *b = 0;
40191   ;
40192   return 0;
40193 }
40194 _ACEOF
40195 rm -f conftest.$ac_objext
40196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40197   (eval $ac_compile) 2>conftest.er1
40198   ac_status=$?
40199   grep -v '^ *+' conftest.er1 >conftest.err
40200   rm -f conftest.er1
40201   cat conftest.err >&5
40202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203   (exit $ac_status); } &&
40204          { ac_try='test -z "$ac_c_werror_flag"
40205                          || test ! -s conftest.err'
40206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40207   (eval $ac_try) 2>&5
40208   ac_status=$?
40209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210   (exit $ac_status); }; } &&
40211          { ac_try='test -s conftest.$ac_objext'
40212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40213   (eval $ac_try) 2>&5
40214   ac_status=$?
40215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40216   (exit $ac_status); }; }; then
40217   ol_cv_c_volatile=yes
40218 else
40219   echo "$as_me: failed program was:" >&5
40220 sed 's/^/| /' conftest.$ac_ext >&5
40221
40222 ol_cv_c_volatile=no
40223 fi
40224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40225 fi
40226 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40227 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40228   if test $ol_cv_c_volatile = yes; then
40229     :
40230   else
40231
40232 cat >>confdefs.h <<\_ACEOF
40233 #define volatile
40234 _ACEOF
40235
40236   fi
40237
40238
40239 if test $cross_compiling = yes ; then
40240         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40241 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40242
40243 cat >>confdefs.h <<\_ACEOF
40244 #define CROSS_COMPILING 1
40245 _ACEOF
40246
40247 else
40248         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40249 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40250 if test "${ac_cv_c_bigendian+set}" = set; then
40251   echo $ECHO_N "(cached) $ECHO_C" >&6
40252 else
40253   # See if sys/param.h defines the BYTE_ORDER macro.
40254 cat >conftest.$ac_ext <<_ACEOF
40255 /* confdefs.h.  */
40256 _ACEOF
40257 cat confdefs.h >>conftest.$ac_ext
40258 cat >>conftest.$ac_ext <<_ACEOF
40259 /* end confdefs.h.  */
40260 #include <sys/types.h>
40261 #include <sys/param.h>
40262
40263 int
40264 main ()
40265 {
40266 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40267  bogus endian macros
40268 #endif
40269
40270   ;
40271   return 0;
40272 }
40273 _ACEOF
40274 rm -f conftest.$ac_objext
40275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40276   (eval $ac_compile) 2>conftest.er1
40277   ac_status=$?
40278   grep -v '^ *+' conftest.er1 >conftest.err
40279   rm -f conftest.er1
40280   cat conftest.err >&5
40281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40282   (exit $ac_status); } &&
40283          { ac_try='test -z "$ac_c_werror_flag"
40284                          || test ! -s conftest.err'
40285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40286   (eval $ac_try) 2>&5
40287   ac_status=$?
40288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289   (exit $ac_status); }; } &&
40290          { ac_try='test -s conftest.$ac_objext'
40291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292   (eval $ac_try) 2>&5
40293   ac_status=$?
40294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295   (exit $ac_status); }; }; then
40296   # It does; now see whether it defined to BIG_ENDIAN or not.
40297 cat >conftest.$ac_ext <<_ACEOF
40298 /* confdefs.h.  */
40299 _ACEOF
40300 cat confdefs.h >>conftest.$ac_ext
40301 cat >>conftest.$ac_ext <<_ACEOF
40302 /* end confdefs.h.  */
40303 #include <sys/types.h>
40304 #include <sys/param.h>
40305
40306 int
40307 main ()
40308 {
40309 #if BYTE_ORDER != BIG_ENDIAN
40310  not big endian
40311 #endif
40312
40313   ;
40314   return 0;
40315 }
40316 _ACEOF
40317 rm -f conftest.$ac_objext
40318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40319   (eval $ac_compile) 2>conftest.er1
40320   ac_status=$?
40321   grep -v '^ *+' conftest.er1 >conftest.err
40322   rm -f conftest.er1
40323   cat conftest.err >&5
40324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40325   (exit $ac_status); } &&
40326          { ac_try='test -z "$ac_c_werror_flag"
40327                          || test ! -s conftest.err'
40328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329   (eval $ac_try) 2>&5
40330   ac_status=$?
40331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332   (exit $ac_status); }; } &&
40333          { ac_try='test -s conftest.$ac_objext'
40334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40335   (eval $ac_try) 2>&5
40336   ac_status=$?
40337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40338   (exit $ac_status); }; }; then
40339   ac_cv_c_bigendian=yes
40340 else
40341   echo "$as_me: failed program was:" >&5
40342 sed 's/^/| /' conftest.$ac_ext >&5
40343
40344 ac_cv_c_bigendian=no
40345 fi
40346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40347 else
40348   echo "$as_me: failed program was:" >&5
40349 sed 's/^/| /' conftest.$ac_ext >&5
40350
40351 # It does not; compile a test program.
40352 if test "$cross_compiling" = yes; then
40353   # try to guess the endianness by grepping values into an object file
40354   ac_cv_c_bigendian=unknown
40355   cat >conftest.$ac_ext <<_ACEOF
40356 /* confdefs.h.  */
40357 _ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h.  */
40361 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40362 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40363 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40364 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40365 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40366 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40367 int
40368 main ()
40369 {
40370  _ascii (); _ebcdic ();
40371   ;
40372   return 0;
40373 }
40374 _ACEOF
40375 rm -f conftest.$ac_objext
40376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40377   (eval $ac_compile) 2>conftest.er1
40378   ac_status=$?
40379   grep -v '^ *+' conftest.er1 >conftest.err
40380   rm -f conftest.er1
40381   cat conftest.err >&5
40382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40383   (exit $ac_status); } &&
40384          { ac_try='test -z "$ac_c_werror_flag"
40385                          || test ! -s conftest.err'
40386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40387   (eval $ac_try) 2>&5
40388   ac_status=$?
40389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390   (exit $ac_status); }; } &&
40391          { ac_try='test -s conftest.$ac_objext'
40392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40393   (eval $ac_try) 2>&5
40394   ac_status=$?
40395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40396   (exit $ac_status); }; }; then
40397   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40398   ac_cv_c_bigendian=yes
40399 fi
40400 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40401   if test "$ac_cv_c_bigendian" = unknown; then
40402     ac_cv_c_bigendian=no
40403   else
40404     # finding both strings is unlikely to happen, but who knows?
40405     ac_cv_c_bigendian=unknown
40406   fi
40407 fi
40408 else
40409   echo "$as_me: failed program was:" >&5
40410 sed 's/^/| /' conftest.$ac_ext >&5
40411
40412 fi
40413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40414 else
40415   cat >conftest.$ac_ext <<_ACEOF
40416 /* confdefs.h.  */
40417 _ACEOF
40418 cat confdefs.h >>conftest.$ac_ext
40419 cat >>conftest.$ac_ext <<_ACEOF
40420 /* end confdefs.h.  */
40421 int
40422 main ()
40423 {
40424   /* Are we little or big endian?  From Harbison&Steele.  */
40425   union
40426   {
40427     long l;
40428     char c[sizeof (long)];
40429   } u;
40430   u.l = 1;
40431   exit (u.c[sizeof (long) - 1] == 1);
40432 }
40433 _ACEOF
40434 rm -f conftest$ac_exeext
40435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40436   (eval $ac_link) 2>&5
40437   ac_status=$?
40438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40441   (eval $ac_try) 2>&5
40442   ac_status=$?
40443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40444   (exit $ac_status); }; }; then
40445   ac_cv_c_bigendian=no
40446 else
40447   echo "$as_me: program exited with status $ac_status" >&5
40448 echo "$as_me: failed program was:" >&5
40449 sed 's/^/| /' conftest.$ac_ext >&5
40450
40451 ( exit $ac_status )
40452 ac_cv_c_bigendian=yes
40453 fi
40454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40455 fi
40456 fi
40457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40458 fi
40459 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40460 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40461 case $ac_cv_c_bigendian in
40462   yes)
40463
40464 cat >>confdefs.h <<\_ACEOF
40465 #define WORDS_BIGENDIAN 1
40466 _ACEOF
40467  ;;
40468   no)
40469      ;;
40470   *)
40471     { { echo "$as_me:$LINENO: error: unknown endianness
40472 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40473 echo "$as_me: error: unknown endianness
40474 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40475    { (exit 1); exit 1; }; } ;;
40476 esac
40477
40478 fi
40479
40480 echo "$as_me:$LINENO: checking for short" >&5
40481 echo $ECHO_N "checking for short... $ECHO_C" >&6
40482 if test "${ac_cv_type_short+set}" = set; then
40483   echo $ECHO_N "(cached) $ECHO_C" >&6
40484 else
40485   cat >conftest.$ac_ext <<_ACEOF
40486 /* confdefs.h.  */
40487 _ACEOF
40488 cat confdefs.h >>conftest.$ac_ext
40489 cat >>conftest.$ac_ext <<_ACEOF
40490 /* end confdefs.h.  */
40491 $ac_includes_default
40492 int
40493 main ()
40494 {
40495 if ((short *) 0)
40496   return 0;
40497 if (sizeof (short))
40498   return 0;
40499   ;
40500   return 0;
40501 }
40502 _ACEOF
40503 rm -f conftest.$ac_objext
40504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40505   (eval $ac_compile) 2>conftest.er1
40506   ac_status=$?
40507   grep -v '^ *+' conftest.er1 >conftest.err
40508   rm -f conftest.er1
40509   cat conftest.err >&5
40510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511   (exit $ac_status); } &&
40512          { ac_try='test -z "$ac_c_werror_flag"
40513                          || test ! -s conftest.err'
40514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515   (eval $ac_try) 2>&5
40516   ac_status=$?
40517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518   (exit $ac_status); }; } &&
40519          { ac_try='test -s conftest.$ac_objext'
40520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40521   (eval $ac_try) 2>&5
40522   ac_status=$?
40523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524   (exit $ac_status); }; }; then
40525   ac_cv_type_short=yes
40526 else
40527   echo "$as_me: failed program was:" >&5
40528 sed 's/^/| /' conftest.$ac_ext >&5
40529
40530 ac_cv_type_short=no
40531 fi
40532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40533 fi
40534 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40535 echo "${ECHO_T}$ac_cv_type_short" >&6
40536
40537 echo "$as_me:$LINENO: checking size of short" >&5
40538 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40539 if test "${ac_cv_sizeof_short+set}" = set; then
40540   echo $ECHO_N "(cached) $ECHO_C" >&6
40541 else
40542   if test "$ac_cv_type_short" = yes; then
40543   # The cast to unsigned long works around a bug in the HP C Compiler
40544   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40545   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40546   # This bug is HP SR number 8606223364.
40547   if test "$cross_compiling" = yes; then
40548   # Depending upon the size, compute the lo and hi bounds.
40549 cat >conftest.$ac_ext <<_ACEOF
40550 /* confdefs.h.  */
40551 _ACEOF
40552 cat confdefs.h >>conftest.$ac_ext
40553 cat >>conftest.$ac_ext <<_ACEOF
40554 /* end confdefs.h.  */
40555 $ac_includes_default
40556 int
40557 main ()
40558 {
40559 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40560 test_array [0] = 0
40561
40562   ;
40563   return 0;
40564 }
40565 _ACEOF
40566 rm -f conftest.$ac_objext
40567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40568   (eval $ac_compile) 2>conftest.er1
40569   ac_status=$?
40570   grep -v '^ *+' conftest.er1 >conftest.err
40571   rm -f conftest.er1
40572   cat conftest.err >&5
40573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40574   (exit $ac_status); } &&
40575          { ac_try='test -z "$ac_c_werror_flag"
40576                          || test ! -s conftest.err'
40577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40578   (eval $ac_try) 2>&5
40579   ac_status=$?
40580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581   (exit $ac_status); }; } &&
40582          { ac_try='test -s conftest.$ac_objext'
40583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40584   (eval $ac_try) 2>&5
40585   ac_status=$?
40586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587   (exit $ac_status); }; }; then
40588   ac_lo=0 ac_mid=0
40589   while :; do
40590     cat >conftest.$ac_ext <<_ACEOF
40591 /* confdefs.h.  */
40592 _ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h.  */
40596 $ac_includes_default
40597 int
40598 main ()
40599 {
40600 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40601 test_array [0] = 0
40602
40603   ;
40604   return 0;
40605 }
40606 _ACEOF
40607 rm -f conftest.$ac_objext
40608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40609   (eval $ac_compile) 2>conftest.er1
40610   ac_status=$?
40611   grep -v '^ *+' conftest.er1 >conftest.err
40612   rm -f conftest.er1
40613   cat conftest.err >&5
40614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615   (exit $ac_status); } &&
40616          { ac_try='test -z "$ac_c_werror_flag"
40617                          || test ! -s conftest.err'
40618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40619   (eval $ac_try) 2>&5
40620   ac_status=$?
40621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622   (exit $ac_status); }; } &&
40623          { ac_try='test -s conftest.$ac_objext'
40624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40625   (eval $ac_try) 2>&5
40626   ac_status=$?
40627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628   (exit $ac_status); }; }; then
40629   ac_hi=$ac_mid; break
40630 else
40631   echo "$as_me: failed program was:" >&5
40632 sed 's/^/| /' conftest.$ac_ext >&5
40633
40634 ac_lo=`expr $ac_mid + 1`
40635                     if test $ac_lo -le $ac_mid; then
40636                       ac_lo= ac_hi=
40637                       break
40638                     fi
40639                     ac_mid=`expr 2 '*' $ac_mid + 1`
40640 fi
40641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40642   done
40643 else
40644   echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40646
40647 cat >conftest.$ac_ext <<_ACEOF
40648 /* confdefs.h.  */
40649 _ACEOF
40650 cat confdefs.h >>conftest.$ac_ext
40651 cat >>conftest.$ac_ext <<_ACEOF
40652 /* end confdefs.h.  */
40653 $ac_includes_default
40654 int
40655 main ()
40656 {
40657 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40658 test_array [0] = 0
40659
40660   ;
40661   return 0;
40662 }
40663 _ACEOF
40664 rm -f conftest.$ac_objext
40665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40666   (eval $ac_compile) 2>conftest.er1
40667   ac_status=$?
40668   grep -v '^ *+' conftest.er1 >conftest.err
40669   rm -f conftest.er1
40670   cat conftest.err >&5
40671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672   (exit $ac_status); } &&
40673          { ac_try='test -z "$ac_c_werror_flag"
40674                          || test ! -s conftest.err'
40675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676   (eval $ac_try) 2>&5
40677   ac_status=$?
40678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679   (exit $ac_status); }; } &&
40680          { ac_try='test -s conftest.$ac_objext'
40681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40682   (eval $ac_try) 2>&5
40683   ac_status=$?
40684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40685   (exit $ac_status); }; }; then
40686   ac_hi=-1 ac_mid=-1
40687   while :; do
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 (short))) >= $ac_mid)];
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=$ac_mid; break
40728 else
40729   echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40731
40732 ac_hi=`expr '(' $ac_mid ')' - 1`
40733                        if test $ac_mid -le $ac_hi; then
40734                          ac_lo= ac_hi=
40735                          break
40736                        fi
40737                        ac_mid=`expr 2 '*' $ac_mid`
40738 fi
40739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40740   done
40741 else
40742   echo "$as_me: failed program was:" >&5
40743 sed 's/^/| /' conftest.$ac_ext >&5
40744
40745 ac_lo= ac_hi=
40746 fi
40747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40748 fi
40749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40750 # Binary search between lo and hi bounds.
40751 while test "x$ac_lo" != "x$ac_hi"; do
40752   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40753   cat >conftest.$ac_ext <<_ACEOF
40754 /* confdefs.h.  */
40755 _ACEOF
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h.  */
40759 $ac_includes_default
40760 int
40761 main ()
40762 {
40763 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40764 test_array [0] = 0
40765
40766   ;
40767   return 0;
40768 }
40769 _ACEOF
40770 rm -f conftest.$ac_objext
40771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40772   (eval $ac_compile) 2>conftest.er1
40773   ac_status=$?
40774   grep -v '^ *+' conftest.er1 >conftest.err
40775   rm -f conftest.er1
40776   cat conftest.err >&5
40777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40778   (exit $ac_status); } &&
40779          { ac_try='test -z "$ac_c_werror_flag"
40780                          || test ! -s conftest.err'
40781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40782   (eval $ac_try) 2>&5
40783   ac_status=$?
40784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40785   (exit $ac_status); }; } &&
40786          { ac_try='test -s conftest.$ac_objext'
40787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40788   (eval $ac_try) 2>&5
40789   ac_status=$?
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); }; }; then
40792   ac_hi=$ac_mid
40793 else
40794   echo "$as_me: failed program was:" >&5
40795 sed 's/^/| /' conftest.$ac_ext >&5
40796
40797 ac_lo=`expr '(' $ac_mid ')' + 1`
40798 fi
40799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40800 done
40801 case $ac_lo in
40802 ?*) ac_cv_sizeof_short=$ac_lo;;
40803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40804 See \`config.log' for more details." >&5
40805 echo "$as_me: error: cannot compute sizeof (short), 77
40806 See \`config.log' for more details." >&2;}
40807    { (exit 1); exit 1; }; } ;;
40808 esac
40809 else
40810   if test "$cross_compiling" = yes; then
40811   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40812 See \`config.log' for more details." >&5
40813 echo "$as_me: error: cannot run test program while cross compiling
40814 See \`config.log' for more details." >&2;}
40815    { (exit 1); exit 1; }; }
40816 else
40817   cat >conftest.$ac_ext <<_ACEOF
40818 /* confdefs.h.  */
40819 _ACEOF
40820 cat confdefs.h >>conftest.$ac_ext
40821 cat >>conftest.$ac_ext <<_ACEOF
40822 /* end confdefs.h.  */
40823 $ac_includes_default
40824 long longval () { return (long) (sizeof (short)); }
40825 unsigned long ulongval () { return (long) (sizeof (short)); }
40826 #include <stdio.h>
40827 #include <stdlib.h>
40828 int
40829 main ()
40830 {
40831
40832   FILE *f = fopen ("conftest.val", "w");
40833   if (! f)
40834     exit (1);
40835   if (((long) (sizeof (short))) < 0)
40836     {
40837       long i = longval ();
40838       if (i != ((long) (sizeof (short))))
40839         exit (1);
40840       fprintf (f, "%ld\n", i);
40841     }
40842   else
40843     {
40844       unsigned long i = ulongval ();
40845       if (i != ((long) (sizeof (short))))
40846         exit (1);
40847       fprintf (f, "%lu\n", i);
40848     }
40849   exit (ferror (f) || fclose (f) != 0);
40850
40851   ;
40852   return 0;
40853 }
40854 _ACEOF
40855 rm -f conftest$ac_exeext
40856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40857   (eval $ac_link) 2>&5
40858   ac_status=$?
40859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_short=`cat conftest.val`
40867 else
40868   echo "$as_me: program exited with status $ac_status" >&5
40869 echo "$as_me: failed program was:" >&5
40870 sed 's/^/| /' conftest.$ac_ext >&5
40871
40872 ( exit $ac_status )
40873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40874 See \`config.log' for more details." >&5
40875 echo "$as_me: error: cannot compute sizeof (short), 77
40876 See \`config.log' for more details." >&2;}
40877    { (exit 1); exit 1; }; }
40878 fi
40879 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40880 fi
40881 fi
40882 rm -f conftest.val
40883 else
40884   ac_cv_sizeof_short=0
40885 fi
40886 fi
40887 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40888 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40889 cat >>confdefs.h <<_ACEOF
40890 #define SIZEOF_SHORT $ac_cv_sizeof_short
40891 _ACEOF
40892
40893
40894 echo "$as_me:$LINENO: checking for int" >&5
40895 echo $ECHO_N "checking for int... $ECHO_C" >&6
40896 if test "${ac_cv_type_int+set}" = set; then
40897   echo $ECHO_N "(cached) $ECHO_C" >&6
40898 else
40899   cat >conftest.$ac_ext <<_ACEOF
40900 /* confdefs.h.  */
40901 _ACEOF
40902 cat confdefs.h >>conftest.$ac_ext
40903 cat >>conftest.$ac_ext <<_ACEOF
40904 /* end confdefs.h.  */
40905 $ac_includes_default
40906 int
40907 main ()
40908 {
40909 if ((int *) 0)
40910   return 0;
40911 if (sizeof (int))
40912   return 0;
40913   ;
40914   return 0;
40915 }
40916 _ACEOF
40917 rm -f conftest.$ac_objext
40918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40919   (eval $ac_compile) 2>conftest.er1
40920   ac_status=$?
40921   grep -v '^ *+' conftest.er1 >conftest.err
40922   rm -f conftest.er1
40923   cat conftest.err >&5
40924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40925   (exit $ac_status); } &&
40926          { ac_try='test -z "$ac_c_werror_flag"
40927                          || test ! -s conftest.err'
40928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40929   (eval $ac_try) 2>&5
40930   ac_status=$?
40931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40932   (exit $ac_status); }; } &&
40933          { ac_try='test -s conftest.$ac_objext'
40934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40935   (eval $ac_try) 2>&5
40936   ac_status=$?
40937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40938   (exit $ac_status); }; }; then
40939   ac_cv_type_int=yes
40940 else
40941   echo "$as_me: failed program was:" >&5
40942 sed 's/^/| /' conftest.$ac_ext >&5
40943
40944 ac_cv_type_int=no
40945 fi
40946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40947 fi
40948 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40949 echo "${ECHO_T}$ac_cv_type_int" >&6
40950
40951 echo "$as_me:$LINENO: checking size of int" >&5
40952 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40953 if test "${ac_cv_sizeof_int+set}" = set; then
40954   echo $ECHO_N "(cached) $ECHO_C" >&6
40955 else
40956   if test "$ac_cv_type_int" = yes; then
40957   # The cast to unsigned long works around a bug in the HP C Compiler
40958   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40959   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40960   # This bug is HP SR number 8606223364.
40961   if test "$cross_compiling" = yes; then
40962   # Depending upon the size, compute the lo and hi bounds.
40963 cat >conftest.$ac_ext <<_ACEOF
40964 /* confdefs.h.  */
40965 _ACEOF
40966 cat confdefs.h >>conftest.$ac_ext
40967 cat >>conftest.$ac_ext <<_ACEOF
40968 /* end confdefs.h.  */
40969 $ac_includes_default
40970 int
40971 main ()
40972 {
40973 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40974 test_array [0] = 0
40975
40976   ;
40977   return 0;
40978 }
40979 _ACEOF
40980 rm -f conftest.$ac_objext
40981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40982   (eval $ac_compile) 2>conftest.er1
40983   ac_status=$?
40984   grep -v '^ *+' conftest.er1 >conftest.err
40985   rm -f conftest.er1
40986   cat conftest.err >&5
40987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988   (exit $ac_status); } &&
40989          { ac_try='test -z "$ac_c_werror_flag"
40990                          || test ! -s conftest.err'
40991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40992   (eval $ac_try) 2>&5
40993   ac_status=$?
40994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40995   (exit $ac_status); }; } &&
40996          { ac_try='test -s conftest.$ac_objext'
40997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40998   (eval $ac_try) 2>&5
40999   ac_status=$?
41000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001   (exit $ac_status); }; }; then
41002   ac_lo=0 ac_mid=0
41003   while :; do
41004     cat >conftest.$ac_ext <<_ACEOF
41005 /* confdefs.h.  */
41006 _ACEOF
41007 cat confdefs.h >>conftest.$ac_ext
41008 cat >>conftest.$ac_ext <<_ACEOF
41009 /* end confdefs.h.  */
41010 $ac_includes_default
41011 int
41012 main ()
41013 {
41014 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41015 test_array [0] = 0
41016
41017   ;
41018   return 0;
41019 }
41020 _ACEOF
41021 rm -f conftest.$ac_objext
41022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41023   (eval $ac_compile) 2>conftest.er1
41024   ac_status=$?
41025   grep -v '^ *+' conftest.er1 >conftest.err
41026   rm -f conftest.er1
41027   cat conftest.err >&5
41028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41029   (exit $ac_status); } &&
41030          { ac_try='test -z "$ac_c_werror_flag"
41031                          || test ! -s conftest.err'
41032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033   (eval $ac_try) 2>&5
41034   ac_status=$?
41035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036   (exit $ac_status); }; } &&
41037          { ac_try='test -s conftest.$ac_objext'
41038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41039   (eval $ac_try) 2>&5
41040   ac_status=$?
41041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042   (exit $ac_status); }; }; then
41043   ac_hi=$ac_mid; break
41044 else
41045   echo "$as_me: failed program was:" >&5
41046 sed 's/^/| /' conftest.$ac_ext >&5
41047
41048 ac_lo=`expr $ac_mid + 1`
41049                     if test $ac_lo -le $ac_mid; then
41050                       ac_lo= ac_hi=
41051                       break
41052                     fi
41053                     ac_mid=`expr 2 '*' $ac_mid + 1`
41054 fi
41055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41056   done
41057 else
41058   echo "$as_me: failed program was:" >&5
41059 sed 's/^/| /' conftest.$ac_ext >&5
41060
41061 cat >conftest.$ac_ext <<_ACEOF
41062 /* confdefs.h.  */
41063 _ACEOF
41064 cat confdefs.h >>conftest.$ac_ext
41065 cat >>conftest.$ac_ext <<_ACEOF
41066 /* end confdefs.h.  */
41067 $ac_includes_default
41068 int
41069 main ()
41070 {
41071 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41072 test_array [0] = 0
41073
41074   ;
41075   return 0;
41076 }
41077 _ACEOF
41078 rm -f conftest.$ac_objext
41079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41080   (eval $ac_compile) 2>conftest.er1
41081   ac_status=$?
41082   grep -v '^ *+' conftest.er1 >conftest.err
41083   rm -f conftest.er1
41084   cat conftest.err >&5
41085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41086   (exit $ac_status); } &&
41087          { ac_try='test -z "$ac_c_werror_flag"
41088                          || test ! -s conftest.err'
41089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41090   (eval $ac_try) 2>&5
41091   ac_status=$?
41092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41093   (exit $ac_status); }; } &&
41094          { ac_try='test -s conftest.$ac_objext'
41095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41096   (eval $ac_try) 2>&5
41097   ac_status=$?
41098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41099   (exit $ac_status); }; }; then
41100   ac_hi=-1 ac_mid=-1
41101   while :; do
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 (int))) >= $ac_mid)];
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=$ac_mid; break
41142 else
41143   echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41145
41146 ac_hi=`expr '(' $ac_mid ')' - 1`
41147                        if test $ac_mid -le $ac_hi; then
41148                          ac_lo= ac_hi=
41149                          break
41150                        fi
41151                        ac_mid=`expr 2 '*' $ac_mid`
41152 fi
41153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41154   done
41155 else
41156   echo "$as_me: failed program was:" >&5
41157 sed 's/^/| /' conftest.$ac_ext >&5
41158
41159 ac_lo= ac_hi=
41160 fi
41161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41162 fi
41163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41164 # Binary search between lo and hi bounds.
41165 while test "x$ac_lo" != "x$ac_hi"; do
41166   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41167   cat >conftest.$ac_ext <<_ACEOF
41168 /* confdefs.h.  */
41169 _ACEOF
41170 cat confdefs.h >>conftest.$ac_ext
41171 cat >>conftest.$ac_ext <<_ACEOF
41172 /* end confdefs.h.  */
41173 $ac_includes_default
41174 int
41175 main ()
41176 {
41177 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41178 test_array [0] = 0
41179
41180   ;
41181   return 0;
41182 }
41183 _ACEOF
41184 rm -f conftest.$ac_objext
41185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41186   (eval $ac_compile) 2>conftest.er1
41187   ac_status=$?
41188   grep -v '^ *+' conftest.er1 >conftest.err
41189   rm -f conftest.er1
41190   cat conftest.err >&5
41191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41192   (exit $ac_status); } &&
41193          { ac_try='test -z "$ac_c_werror_flag"
41194                          || test ! -s conftest.err'
41195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41196   (eval $ac_try) 2>&5
41197   ac_status=$?
41198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199   (exit $ac_status); }; } &&
41200          { ac_try='test -s conftest.$ac_objext'
41201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202   (eval $ac_try) 2>&5
41203   ac_status=$?
41204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205   (exit $ac_status); }; }; then
41206   ac_hi=$ac_mid
41207 else
41208   echo "$as_me: failed program was:" >&5
41209 sed 's/^/| /' conftest.$ac_ext >&5
41210
41211 ac_lo=`expr '(' $ac_mid ')' + 1`
41212 fi
41213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41214 done
41215 case $ac_lo in
41216 ?*) ac_cv_sizeof_int=$ac_lo;;
41217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41218 See \`config.log' for more details." >&5
41219 echo "$as_me: error: cannot compute sizeof (int), 77
41220 See \`config.log' for more details." >&2;}
41221    { (exit 1); exit 1; }; } ;;
41222 esac
41223 else
41224   if test "$cross_compiling" = yes; then
41225   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41226 See \`config.log' for more details." >&5
41227 echo "$as_me: error: cannot run test program while cross compiling
41228 See \`config.log' for more details." >&2;}
41229    { (exit 1); exit 1; }; }
41230 else
41231   cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237 $ac_includes_default
41238 long longval () { return (long) (sizeof (int)); }
41239 unsigned long ulongval () { return (long) (sizeof (int)); }
41240 #include <stdio.h>
41241 #include <stdlib.h>
41242 int
41243 main ()
41244 {
41245
41246   FILE *f = fopen ("conftest.val", "w");
41247   if (! f)
41248     exit (1);
41249   if (((long) (sizeof (int))) < 0)
41250     {
41251       long i = longval ();
41252       if (i != ((long) (sizeof (int))))
41253         exit (1);
41254       fprintf (f, "%ld\n", i);
41255     }
41256   else
41257     {
41258       unsigned long i = ulongval ();
41259       if (i != ((long) (sizeof (int))))
41260         exit (1);
41261       fprintf (f, "%lu\n", i);
41262     }
41263   exit (ferror (f) || fclose (f) != 0);
41264
41265   ;
41266   return 0;
41267 }
41268 _ACEOF
41269 rm -f conftest$ac_exeext
41270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41271   (eval $ac_link) 2>&5
41272   ac_status=$?
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
41281 else
41282   echo "$as_me: program exited with status $ac_status" >&5
41283 echo "$as_me: failed program was:" >&5
41284 sed 's/^/| /' conftest.$ac_ext >&5
41285
41286 ( exit $ac_status )
41287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41288 See \`config.log' for more details." >&5
41289 echo "$as_me: error: cannot compute sizeof (int), 77
41290 See \`config.log' for more details." >&2;}
41291    { (exit 1); exit 1; }; }
41292 fi
41293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41294 fi
41295 fi
41296 rm -f conftest.val
41297 else
41298   ac_cv_sizeof_int=0
41299 fi
41300 fi
41301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41302 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41303 cat >>confdefs.h <<_ACEOF
41304 #define SIZEOF_INT $ac_cv_sizeof_int
41305 _ACEOF
41306
41307
41308 echo "$as_me:$LINENO: checking for long" >&5
41309 echo $ECHO_N "checking for long... $ECHO_C" >&6
41310 if test "${ac_cv_type_long+set}" = set; then
41311   echo $ECHO_N "(cached) $ECHO_C" >&6
41312 else
41313   cat >conftest.$ac_ext <<_ACEOF
41314 /* confdefs.h.  */
41315 _ACEOF
41316 cat confdefs.h >>conftest.$ac_ext
41317 cat >>conftest.$ac_ext <<_ACEOF
41318 /* end confdefs.h.  */
41319 $ac_includes_default
41320 int
41321 main ()
41322 {
41323 if ((long *) 0)
41324   return 0;
41325 if (sizeof (long))
41326   return 0;
41327   ;
41328   return 0;
41329 }
41330 _ACEOF
41331 rm -f conftest.$ac_objext
41332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41333   (eval $ac_compile) 2>conftest.er1
41334   ac_status=$?
41335   grep -v '^ *+' conftest.er1 >conftest.err
41336   rm -f conftest.er1
41337   cat conftest.err >&5
41338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339   (exit $ac_status); } &&
41340          { ac_try='test -z "$ac_c_werror_flag"
41341                          || test ! -s conftest.err'
41342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41343   (eval $ac_try) 2>&5
41344   ac_status=$?
41345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41346   (exit $ac_status); }; } &&
41347          { ac_try='test -s conftest.$ac_objext'
41348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41349   (eval $ac_try) 2>&5
41350   ac_status=$?
41351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352   (exit $ac_status); }; }; then
41353   ac_cv_type_long=yes
41354 else
41355   echo "$as_me: failed program was:" >&5
41356 sed 's/^/| /' conftest.$ac_ext >&5
41357
41358 ac_cv_type_long=no
41359 fi
41360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41361 fi
41362 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41363 echo "${ECHO_T}$ac_cv_type_long" >&6
41364
41365 echo "$as_me:$LINENO: checking size of long" >&5
41366 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41367 if test "${ac_cv_sizeof_long+set}" = set; then
41368   echo $ECHO_N "(cached) $ECHO_C" >&6
41369 else
41370   if test "$ac_cv_type_long" = yes; then
41371   # The cast to unsigned long works around a bug in the HP C Compiler
41372   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41373   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41374   # This bug is HP SR number 8606223364.
41375   if test "$cross_compiling" = yes; then
41376   # Depending upon the size, compute the lo and hi bounds.
41377 cat >conftest.$ac_ext <<_ACEOF
41378 /* confdefs.h.  */
41379 _ACEOF
41380 cat confdefs.h >>conftest.$ac_ext
41381 cat >>conftest.$ac_ext <<_ACEOF
41382 /* end confdefs.h.  */
41383 $ac_includes_default
41384 int
41385 main ()
41386 {
41387 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41388 test_array [0] = 0
41389
41390   ;
41391   return 0;
41392 }
41393 _ACEOF
41394 rm -f conftest.$ac_objext
41395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41396   (eval $ac_compile) 2>conftest.er1
41397   ac_status=$?
41398   grep -v '^ *+' conftest.er1 >conftest.err
41399   rm -f conftest.er1
41400   cat conftest.err >&5
41401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402   (exit $ac_status); } &&
41403          { ac_try='test -z "$ac_c_werror_flag"
41404                          || test ! -s conftest.err'
41405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41406   (eval $ac_try) 2>&5
41407   ac_status=$?
41408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41409   (exit $ac_status); }; } &&
41410          { ac_try='test -s conftest.$ac_objext'
41411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41412   (eval $ac_try) 2>&5
41413   ac_status=$?
41414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41415   (exit $ac_status); }; }; then
41416   ac_lo=0 ac_mid=0
41417   while :; do
41418     cat >conftest.$ac_ext <<_ACEOF
41419 /* confdefs.h.  */
41420 _ACEOF
41421 cat confdefs.h >>conftest.$ac_ext
41422 cat >>conftest.$ac_ext <<_ACEOF
41423 /* end confdefs.h.  */
41424 $ac_includes_default
41425 int
41426 main ()
41427 {
41428 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41429 test_array [0] = 0
41430
41431   ;
41432   return 0;
41433 }
41434 _ACEOF
41435 rm -f conftest.$ac_objext
41436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41437   (eval $ac_compile) 2>conftest.er1
41438   ac_status=$?
41439   grep -v '^ *+' conftest.er1 >conftest.err
41440   rm -f conftest.er1
41441   cat conftest.err >&5
41442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443   (exit $ac_status); } &&
41444          { ac_try='test -z "$ac_c_werror_flag"
41445                          || test ! -s conftest.err'
41446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41447   (eval $ac_try) 2>&5
41448   ac_status=$?
41449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450   (exit $ac_status); }; } &&
41451          { ac_try='test -s conftest.$ac_objext'
41452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41453   (eval $ac_try) 2>&5
41454   ac_status=$?
41455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41456   (exit $ac_status); }; }; then
41457   ac_hi=$ac_mid; break
41458 else
41459   echo "$as_me: failed program was:" >&5
41460 sed 's/^/| /' conftest.$ac_ext >&5
41461
41462 ac_lo=`expr $ac_mid + 1`
41463                     if test $ac_lo -le $ac_mid; then
41464                       ac_lo= ac_hi=
41465                       break
41466                     fi
41467                     ac_mid=`expr 2 '*' $ac_mid + 1`
41468 fi
41469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41470   done
41471 else
41472   echo "$as_me: failed program was:" >&5
41473 sed 's/^/| /' conftest.$ac_ext >&5
41474
41475 cat >conftest.$ac_ext <<_ACEOF
41476 /* confdefs.h.  */
41477 _ACEOF
41478 cat confdefs.h >>conftest.$ac_ext
41479 cat >>conftest.$ac_ext <<_ACEOF
41480 /* end confdefs.h.  */
41481 $ac_includes_default
41482 int
41483 main ()
41484 {
41485 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41486 test_array [0] = 0
41487
41488   ;
41489   return 0;
41490 }
41491 _ACEOF
41492 rm -f conftest.$ac_objext
41493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41494   (eval $ac_compile) 2>conftest.er1
41495   ac_status=$?
41496   grep -v '^ *+' conftest.er1 >conftest.err
41497   rm -f conftest.er1
41498   cat conftest.err >&5
41499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41500   (exit $ac_status); } &&
41501          { ac_try='test -z "$ac_c_werror_flag"
41502                          || test ! -s conftest.err'
41503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41504   (eval $ac_try) 2>&5
41505   ac_status=$?
41506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41507   (exit $ac_status); }; } &&
41508          { ac_try='test -s conftest.$ac_objext'
41509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41510   (eval $ac_try) 2>&5
41511   ac_status=$?
41512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513   (exit $ac_status); }; }; then
41514   ac_hi=-1 ac_mid=-1
41515   while :; do
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 (long))) >= $ac_mid)];
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=$ac_mid; break
41556 else
41557   echo "$as_me: failed program was:" >&5
41558 sed 's/^/| /' conftest.$ac_ext >&5
41559
41560 ac_hi=`expr '(' $ac_mid ')' - 1`
41561                        if test $ac_mid -le $ac_hi; then
41562                          ac_lo= ac_hi=
41563                          break
41564                        fi
41565                        ac_mid=`expr 2 '*' $ac_mid`
41566 fi
41567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41568   done
41569 else
41570   echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41572
41573 ac_lo= ac_hi=
41574 fi
41575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41576 fi
41577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41578 # Binary search between lo and hi bounds.
41579 while test "x$ac_lo" != "x$ac_hi"; do
41580   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41581   cat >conftest.$ac_ext <<_ACEOF
41582 /* confdefs.h.  */
41583 _ACEOF
41584 cat confdefs.h >>conftest.$ac_ext
41585 cat >>conftest.$ac_ext <<_ACEOF
41586 /* end confdefs.h.  */
41587 $ac_includes_default
41588 int
41589 main ()
41590 {
41591 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41592 test_array [0] = 0
41593
41594   ;
41595   return 0;
41596 }
41597 _ACEOF
41598 rm -f conftest.$ac_objext
41599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41600   (eval $ac_compile) 2>conftest.er1
41601   ac_status=$?
41602   grep -v '^ *+' conftest.er1 >conftest.err
41603   rm -f conftest.er1
41604   cat conftest.err >&5
41605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606   (exit $ac_status); } &&
41607          { ac_try='test -z "$ac_c_werror_flag"
41608                          || test ! -s conftest.err'
41609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41610   (eval $ac_try) 2>&5
41611   ac_status=$?
41612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613   (exit $ac_status); }; } &&
41614          { ac_try='test -s conftest.$ac_objext'
41615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616   (eval $ac_try) 2>&5
41617   ac_status=$?
41618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619   (exit $ac_status); }; }; then
41620   ac_hi=$ac_mid
41621 else
41622   echo "$as_me: failed program was:" >&5
41623 sed 's/^/| /' conftest.$ac_ext >&5
41624
41625 ac_lo=`expr '(' $ac_mid ')' + 1`
41626 fi
41627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41628 done
41629 case $ac_lo in
41630 ?*) ac_cv_sizeof_long=$ac_lo;;
41631 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41632 See \`config.log' for more details." >&5
41633 echo "$as_me: error: cannot compute sizeof (long), 77
41634 See \`config.log' for more details." >&2;}
41635    { (exit 1); exit 1; }; } ;;
41636 esac
41637 else
41638   if test "$cross_compiling" = yes; then
41639   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41640 See \`config.log' for more details." >&5
41641 echo "$as_me: error: cannot run test program while cross compiling
41642 See \`config.log' for more details." >&2;}
41643    { (exit 1); exit 1; }; }
41644 else
41645   cat >conftest.$ac_ext <<_ACEOF
41646 /* confdefs.h.  */
41647 _ACEOF
41648 cat confdefs.h >>conftest.$ac_ext
41649 cat >>conftest.$ac_ext <<_ACEOF
41650 /* end confdefs.h.  */
41651 $ac_includes_default
41652 long longval () { return (long) (sizeof (long)); }
41653 unsigned long ulongval () { return (long) (sizeof (long)); }
41654 #include <stdio.h>
41655 #include <stdlib.h>
41656 int
41657 main ()
41658 {
41659
41660   FILE *f = fopen ("conftest.val", "w");
41661   if (! f)
41662     exit (1);
41663   if (((long) (sizeof (long))) < 0)
41664     {
41665       long i = longval ();
41666       if (i != ((long) (sizeof (long))))
41667         exit (1);
41668       fprintf (f, "%ld\n", i);
41669     }
41670   else
41671     {
41672       unsigned long i = ulongval ();
41673       if (i != ((long) (sizeof (long))))
41674         exit (1);
41675       fprintf (f, "%lu\n", i);
41676     }
41677   exit (ferror (f) || fclose (f) != 0);
41678
41679   ;
41680   return 0;
41681 }
41682 _ACEOF
41683 rm -f conftest$ac_exeext
41684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41685   (eval $ac_link) 2>&5
41686   ac_status=$?
41687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
41695 else
41696   echo "$as_me: program exited with status $ac_status" >&5
41697 echo "$as_me: failed program was:" >&5
41698 sed 's/^/| /' conftest.$ac_ext >&5
41699
41700 ( exit $ac_status )
41701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41702 See \`config.log' for more details." >&5
41703 echo "$as_me: error: cannot compute sizeof (long), 77
41704 See \`config.log' for more details." >&2;}
41705    { (exit 1); exit 1; }; }
41706 fi
41707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41708 fi
41709 fi
41710 rm -f conftest.val
41711 else
41712   ac_cv_sizeof_long=0
41713 fi
41714 fi
41715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41716 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41717 cat >>confdefs.h <<_ACEOF
41718 #define SIZEOF_LONG $ac_cv_sizeof_long
41719 _ACEOF
41720
41721
41722 echo "$as_me:$LINENO: checking for wchar_t" >&5
41723 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41724 if test "${ac_cv_type_wchar_t+set}" = set; then
41725   echo $ECHO_N "(cached) $ECHO_C" >&6
41726 else
41727   cat >conftest.$ac_ext <<_ACEOF
41728 /* confdefs.h.  */
41729 _ACEOF
41730 cat confdefs.h >>conftest.$ac_ext
41731 cat >>conftest.$ac_ext <<_ACEOF
41732 /* end confdefs.h.  */
41733 $ac_includes_default
41734 int
41735 main ()
41736 {
41737 if ((wchar_t *) 0)
41738   return 0;
41739 if (sizeof (wchar_t))
41740   return 0;
41741   ;
41742   return 0;
41743 }
41744 _ACEOF
41745 rm -f conftest.$ac_objext
41746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41747   (eval $ac_compile) 2>conftest.er1
41748   ac_status=$?
41749   grep -v '^ *+' conftest.er1 >conftest.err
41750   rm -f conftest.er1
41751   cat conftest.err >&5
41752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753   (exit $ac_status); } &&
41754          { ac_try='test -z "$ac_c_werror_flag"
41755                          || test ! -s conftest.err'
41756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757   (eval $ac_try) 2>&5
41758   ac_status=$?
41759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760   (exit $ac_status); }; } &&
41761          { ac_try='test -s conftest.$ac_objext'
41762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763   (eval $ac_try) 2>&5
41764   ac_status=$?
41765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766   (exit $ac_status); }; }; then
41767   ac_cv_type_wchar_t=yes
41768 else
41769   echo "$as_me: failed program was:" >&5
41770 sed 's/^/| /' conftest.$ac_ext >&5
41771
41772 ac_cv_type_wchar_t=no
41773 fi
41774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41775 fi
41776 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41777 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41778
41779 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41780 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41781 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41782   echo $ECHO_N "(cached) $ECHO_C" >&6
41783 else
41784   if test "$ac_cv_type_wchar_t" = yes; then
41785   # The cast to unsigned long works around a bug in the HP C Compiler
41786   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41787   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41788   # This bug is HP SR number 8606223364.
41789   if test "$cross_compiling" = yes; then
41790   # Depending upon the size, compute the lo and hi bounds.
41791 cat >conftest.$ac_ext <<_ACEOF
41792 /* confdefs.h.  */
41793 _ACEOF
41794 cat confdefs.h >>conftest.$ac_ext
41795 cat >>conftest.$ac_ext <<_ACEOF
41796 /* end confdefs.h.  */
41797 $ac_includes_default
41798 int
41799 main ()
41800 {
41801 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41802 test_array [0] = 0
41803
41804   ;
41805   return 0;
41806 }
41807 _ACEOF
41808 rm -f conftest.$ac_objext
41809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41810   (eval $ac_compile) 2>conftest.er1
41811   ac_status=$?
41812   grep -v '^ *+' conftest.er1 >conftest.err
41813   rm -f conftest.er1
41814   cat conftest.err >&5
41815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816   (exit $ac_status); } &&
41817          { ac_try='test -z "$ac_c_werror_flag"
41818                          || test ! -s conftest.err'
41819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41820   (eval $ac_try) 2>&5
41821   ac_status=$?
41822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823   (exit $ac_status); }; } &&
41824          { ac_try='test -s conftest.$ac_objext'
41825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41826   (eval $ac_try) 2>&5
41827   ac_status=$?
41828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829   (exit $ac_status); }; }; then
41830   ac_lo=0 ac_mid=0
41831   while :; do
41832     cat >conftest.$ac_ext <<_ACEOF
41833 /* confdefs.h.  */
41834 _ACEOF
41835 cat confdefs.h >>conftest.$ac_ext
41836 cat >>conftest.$ac_ext <<_ACEOF
41837 /* end confdefs.h.  */
41838 $ac_includes_default
41839 int
41840 main ()
41841 {
41842 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41843 test_array [0] = 0
41844
41845   ;
41846   return 0;
41847 }
41848 _ACEOF
41849 rm -f conftest.$ac_objext
41850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41851   (eval $ac_compile) 2>conftest.er1
41852   ac_status=$?
41853   grep -v '^ *+' conftest.er1 >conftest.err
41854   rm -f conftest.er1
41855   cat conftest.err >&5
41856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41857   (exit $ac_status); } &&
41858          { ac_try='test -z "$ac_c_werror_flag"
41859                          || test ! -s conftest.err'
41860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41861   (eval $ac_try) 2>&5
41862   ac_status=$?
41863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864   (exit $ac_status); }; } &&
41865          { ac_try='test -s conftest.$ac_objext'
41866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41867   (eval $ac_try) 2>&5
41868   ac_status=$?
41869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870   (exit $ac_status); }; }; then
41871   ac_hi=$ac_mid; break
41872 else
41873   echo "$as_me: failed program was:" >&5
41874 sed 's/^/| /' conftest.$ac_ext >&5
41875
41876 ac_lo=`expr $ac_mid + 1`
41877                     if test $ac_lo -le $ac_mid; then
41878                       ac_lo= ac_hi=
41879                       break
41880                     fi
41881                     ac_mid=`expr 2 '*' $ac_mid + 1`
41882 fi
41883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41884   done
41885 else
41886   echo "$as_me: failed program was:" >&5
41887 sed 's/^/| /' conftest.$ac_ext >&5
41888
41889 cat >conftest.$ac_ext <<_ACEOF
41890 /* confdefs.h.  */
41891 _ACEOF
41892 cat confdefs.h >>conftest.$ac_ext
41893 cat >>conftest.$ac_ext <<_ACEOF
41894 /* end confdefs.h.  */
41895 $ac_includes_default
41896 int
41897 main ()
41898 {
41899 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41900 test_array [0] = 0
41901
41902   ;
41903   return 0;
41904 }
41905 _ACEOF
41906 rm -f conftest.$ac_objext
41907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41908   (eval $ac_compile) 2>conftest.er1
41909   ac_status=$?
41910   grep -v '^ *+' conftest.er1 >conftest.err
41911   rm -f conftest.er1
41912   cat conftest.err >&5
41913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914   (exit $ac_status); } &&
41915          { ac_try='test -z "$ac_c_werror_flag"
41916                          || test ! -s conftest.err'
41917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41918   (eval $ac_try) 2>&5
41919   ac_status=$?
41920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); }; } &&
41922          { ac_try='test -s conftest.$ac_objext'
41923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924   (eval $ac_try) 2>&5
41925   ac_status=$?
41926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927   (exit $ac_status); }; }; then
41928   ac_hi=-1 ac_mid=-1
41929   while :; do
41930     cat >conftest.$ac_ext <<_ACEOF
41931 /* confdefs.h.  */
41932 _ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h.  */
41936 $ac_includes_default
41937 int
41938 main ()
41939 {
41940 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41941 test_array [0] = 0
41942
41943   ;
41944   return 0;
41945 }
41946 _ACEOF
41947 rm -f conftest.$ac_objext
41948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41949   (eval $ac_compile) 2>conftest.er1
41950   ac_status=$?
41951   grep -v '^ *+' conftest.er1 >conftest.err
41952   rm -f conftest.er1
41953   cat conftest.err >&5
41954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955   (exit $ac_status); } &&
41956          { ac_try='test -z "$ac_c_werror_flag"
41957                          || test ! -s conftest.err'
41958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41959   (eval $ac_try) 2>&5
41960   ac_status=$?
41961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962   (exit $ac_status); }; } &&
41963          { ac_try='test -s conftest.$ac_objext'
41964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41965   (eval $ac_try) 2>&5
41966   ac_status=$?
41967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41968   (exit $ac_status); }; }; then
41969   ac_lo=$ac_mid; break
41970 else
41971   echo "$as_me: failed program was:" >&5
41972 sed 's/^/| /' conftest.$ac_ext >&5
41973
41974 ac_hi=`expr '(' $ac_mid ')' - 1`
41975                        if test $ac_mid -le $ac_hi; then
41976                          ac_lo= ac_hi=
41977                          break
41978                        fi
41979                        ac_mid=`expr 2 '*' $ac_mid`
41980 fi
41981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41982   done
41983 else
41984   echo "$as_me: failed program was:" >&5
41985 sed 's/^/| /' conftest.$ac_ext >&5
41986
41987 ac_lo= ac_hi=
41988 fi
41989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41990 fi
41991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41992 # Binary search between lo and hi bounds.
41993 while test "x$ac_lo" != "x$ac_hi"; do
41994   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41995   cat >conftest.$ac_ext <<_ACEOF
41996 /* confdefs.h.  */
41997 _ACEOF
41998 cat confdefs.h >>conftest.$ac_ext
41999 cat >>conftest.$ac_ext <<_ACEOF
42000 /* end confdefs.h.  */
42001 $ac_includes_default
42002 int
42003 main ()
42004 {
42005 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42006 test_array [0] = 0
42007
42008   ;
42009   return 0;
42010 }
42011 _ACEOF
42012 rm -f conftest.$ac_objext
42013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42014   (eval $ac_compile) 2>conftest.er1
42015   ac_status=$?
42016   grep -v '^ *+' conftest.er1 >conftest.err
42017   rm -f conftest.er1
42018   cat conftest.err >&5
42019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020   (exit $ac_status); } &&
42021          { ac_try='test -z "$ac_c_werror_flag"
42022                          || test ! -s conftest.err'
42023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42024   (eval $ac_try) 2>&5
42025   ac_status=$?
42026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42027   (exit $ac_status); }; } &&
42028          { ac_try='test -s conftest.$ac_objext'
42029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42030   (eval $ac_try) 2>&5
42031   ac_status=$?
42032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42033   (exit $ac_status); }; }; then
42034   ac_hi=$ac_mid
42035 else
42036   echo "$as_me: failed program was:" >&5
42037 sed 's/^/| /' conftest.$ac_ext >&5
42038
42039 ac_lo=`expr '(' $ac_mid ')' + 1`
42040 fi
42041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42042 done
42043 case $ac_lo in
42044 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42045 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42046 See \`config.log' for more details." >&5
42047 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42048 See \`config.log' for more details." >&2;}
42049    { (exit 1); exit 1; }; } ;;
42050 esac
42051 else
42052   if test "$cross_compiling" = yes; then
42053   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42054 See \`config.log' for more details." >&5
42055 echo "$as_me: error: cannot run test program while cross compiling
42056 See \`config.log' for more details." >&2;}
42057    { (exit 1); exit 1; }; }
42058 else
42059   cat >conftest.$ac_ext <<_ACEOF
42060 /* confdefs.h.  */
42061 _ACEOF
42062 cat confdefs.h >>conftest.$ac_ext
42063 cat >>conftest.$ac_ext <<_ACEOF
42064 /* end confdefs.h.  */
42065 $ac_includes_default
42066 long longval () { return (long) (sizeof (wchar_t)); }
42067 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42068 #include <stdio.h>
42069 #include <stdlib.h>
42070 int
42071 main ()
42072 {
42073
42074   FILE *f = fopen ("conftest.val", "w");
42075   if (! f)
42076     exit (1);
42077   if (((long) (sizeof (wchar_t))) < 0)
42078     {
42079       long i = longval ();
42080       if (i != ((long) (sizeof (wchar_t))))
42081         exit (1);
42082       fprintf (f, "%ld\n", i);
42083     }
42084   else
42085     {
42086       unsigned long i = ulongval ();
42087       if (i != ((long) (sizeof (wchar_t))))
42088         exit (1);
42089       fprintf (f, "%lu\n", i);
42090     }
42091   exit (ferror (f) || fclose (f) != 0);
42092
42093   ;
42094   return 0;
42095 }
42096 _ACEOF
42097 rm -f conftest$ac_exeext
42098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42099   (eval $ac_link) 2>&5
42100   ac_status=$?
42101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42104   (eval $ac_try) 2>&5
42105   ac_status=$?
42106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107   (exit $ac_status); }; }; then
42108   ac_cv_sizeof_wchar_t=`cat conftest.val`
42109 else
42110   echo "$as_me: program exited with status $ac_status" >&5
42111 echo "$as_me: failed program was:" >&5
42112 sed 's/^/| /' conftest.$ac_ext >&5
42113
42114 ( exit $ac_status )
42115 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42116 See \`config.log' for more details." >&5
42117 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42118 See \`config.log' for more details." >&2;}
42119    { (exit 1); exit 1; }; }
42120 fi
42121 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42122 fi
42123 fi
42124 rm -f conftest.val
42125 else
42126   ac_cv_sizeof_wchar_t=0
42127 fi
42128 fi
42129 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42130 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42131 cat >>confdefs.h <<_ACEOF
42132 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42133 _ACEOF
42134
42135
42136
42137 if test "$ac_cv_sizeof_int" -lt 4 ; then
42138         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42139 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42140
42141
42142 cat >>confdefs.h <<\_ACEOF
42143 #define LBER_INT_T long
42144 _ACEOF
42145
42146 else
42147
42148 cat >>confdefs.h <<\_ACEOF
42149 #define LBER_INT_T int
42150 _ACEOF
42151
42152 fi
42153
42154
42155 cat >>confdefs.h <<\_ACEOF
42156 #define LBER_LEN_T long
42157 _ACEOF
42158
42159
42160 cat >>confdefs.h <<\_ACEOF
42161 #define LBER_SOCKET_T int
42162 _ACEOF
42163
42164
42165 cat >>confdefs.h <<\_ACEOF
42166 #define LBER_TAG_T long
42167 _ACEOF
42168
42169
42170 echo "$as_me:$LINENO: checking for working memcmp" >&5
42171 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42172 if test "${ac_cv_func_memcmp_working+set}" = set; then
42173   echo $ECHO_N "(cached) $ECHO_C" >&6
42174 else
42175   if test "$cross_compiling" = yes; then
42176   ac_cv_func_memcmp_working=no
42177 else
42178   cat >conftest.$ac_ext <<_ACEOF
42179 /* confdefs.h.  */
42180 _ACEOF
42181 cat confdefs.h >>conftest.$ac_ext
42182 cat >>conftest.$ac_ext <<_ACEOF
42183 /* end confdefs.h.  */
42184 $ac_includes_default
42185 int
42186 main ()
42187 {
42188
42189   /* Some versions of memcmp are not 8-bit clean.  */
42190   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42191   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42192     exit (1);
42193
42194   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42195      or more and with at least one buffer not starting on a 4-byte boundary.
42196      William Lewis provided this test program.   */
42197   {
42198     char foo[21];
42199     char bar[21];
42200     int i;
42201     for (i = 0; i < 4; i++)
42202       {
42203         char *a = foo + i;
42204         char *b = bar + i;
42205         strcpy (a, "--------01111111");
42206         strcpy (b, "--------10000000");
42207         if (memcmp (a, b, 16) >= 0)
42208           exit (1);
42209       }
42210     exit (0);
42211   }
42212
42213   ;
42214   return 0;
42215 }
42216 _ACEOF
42217 rm -f conftest$ac_exeext
42218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42219   (eval $ac_link) 2>&5
42220   ac_status=$?
42221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42224   (eval $ac_try) 2>&5
42225   ac_status=$?
42226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227   (exit $ac_status); }; }; then
42228   ac_cv_func_memcmp_working=yes
42229 else
42230   echo "$as_me: program exited with status $ac_status" >&5
42231 echo "$as_me: failed program was:" >&5
42232 sed 's/^/| /' conftest.$ac_ext >&5
42233
42234 ( exit $ac_status )
42235 ac_cv_func_memcmp_working=no
42236 fi
42237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42238 fi
42239 fi
42240 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42241 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42242 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42243     "memcmp.$ac_objext"   | \
42244   *" memcmp.$ac_objext"   | \
42245     "memcmp.$ac_objext "* | \
42246   *" memcmp.$ac_objext "* ) ;;
42247   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42248 esac
42249
42250
42251
42252 if test $ac_cv_func_memcmp_working = no ; then
42253
42254 cat >>confdefs.h <<\_ACEOF
42255 #define NEED_MEMCMP_REPLACEMENT 1
42256 _ACEOF
42257
42258 fi
42259
42260
42261 for ac_func in strftime
42262 do
42263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42264 echo "$as_me:$LINENO: checking for $ac_func" >&5
42265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42266 if eval "test \"\${$as_ac_var+set}\" = set"; then
42267   echo $ECHO_N "(cached) $ECHO_C" >&6
42268 else
42269   cat >conftest.$ac_ext <<_ACEOF
42270 /* confdefs.h.  */
42271 _ACEOF
42272 cat confdefs.h >>conftest.$ac_ext
42273 cat >>conftest.$ac_ext <<_ACEOF
42274 /* end confdefs.h.  */
42275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42277 #define $ac_func innocuous_$ac_func
42278
42279 /* System header to define __stub macros and hopefully few prototypes,
42280     which can conflict with char $ac_func (); below.
42281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42282     <limits.h> exists even on freestanding compilers.  */
42283
42284 #ifdef __STDC__
42285 # include <limits.h>
42286 #else
42287 # include <assert.h>
42288 #endif
42289
42290 #undef $ac_func
42291
42292 /* Override any gcc2 internal prototype to avoid an error.  */
42293 #ifdef __cplusplus
42294 extern "C"
42295 {
42296 #endif
42297 /* We use char because int might match the return type of a gcc2
42298    builtin and then its argument prototype would still apply.  */
42299 char $ac_func ();
42300 /* The GNU C library defines this for functions which it implements
42301     to always fail with ENOSYS.  Some functions are actually named
42302     something starting with __ and the normal name is an alias.  */
42303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42304 choke me
42305 #else
42306 char (*f) () = $ac_func;
42307 #endif
42308 #ifdef __cplusplus
42309 }
42310 #endif
42311
42312 int
42313 main ()
42314 {
42315 return f != $ac_func;
42316   ;
42317   return 0;
42318 }
42319 _ACEOF
42320 rm -f conftest.$ac_objext conftest$ac_exeext
42321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42322   (eval $ac_link) 2>conftest.er1
42323   ac_status=$?
42324   grep -v '^ *+' conftest.er1 >conftest.err
42325   rm -f conftest.er1
42326   cat conftest.err >&5
42327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328   (exit $ac_status); } &&
42329          { ac_try='test -z "$ac_c_werror_flag"
42330                          || test ! -s conftest.err'
42331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42332   (eval $ac_try) 2>&5
42333   ac_status=$?
42334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42335   (exit $ac_status); }; } &&
42336          { ac_try='test -s conftest$ac_exeext'
42337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42338   (eval $ac_try) 2>&5
42339   ac_status=$?
42340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341   (exit $ac_status); }; }; then
42342   eval "$as_ac_var=yes"
42343 else
42344   echo "$as_me: failed program was:" >&5
42345 sed 's/^/| /' conftest.$ac_ext >&5
42346
42347 eval "$as_ac_var=no"
42348 fi
42349 rm -f conftest.err conftest.$ac_objext \
42350       conftest$ac_exeext conftest.$ac_ext
42351 fi
42352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42354 if test `eval echo '${'$as_ac_var'}'` = yes; then
42355   cat >>confdefs.h <<_ACEOF
42356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42357 _ACEOF
42358
42359 else
42360   # strftime is in -lintl on SCO UNIX.
42361 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42362 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42363 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42364   echo $ECHO_N "(cached) $ECHO_C" >&6
42365 else
42366   ac_check_lib_save_LIBS=$LIBS
42367 LIBS="-lintl  $LIBS"
42368 cat >conftest.$ac_ext <<_ACEOF
42369 /* confdefs.h.  */
42370 _ACEOF
42371 cat confdefs.h >>conftest.$ac_ext
42372 cat >>conftest.$ac_ext <<_ACEOF
42373 /* end confdefs.h.  */
42374
42375 /* Override any gcc2 internal prototype to avoid an error.  */
42376 #ifdef __cplusplus
42377 extern "C"
42378 #endif
42379 /* We use char because int might match the return type of a gcc2
42380    builtin and then its argument prototype would still apply.  */
42381 char strftime ();
42382 int
42383 main ()
42384 {
42385 strftime ();
42386   ;
42387   return 0;
42388 }
42389 _ACEOF
42390 rm -f conftest.$ac_objext conftest$ac_exeext
42391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42392   (eval $ac_link) 2>conftest.er1
42393   ac_status=$?
42394   grep -v '^ *+' conftest.er1 >conftest.err
42395   rm -f conftest.er1
42396   cat conftest.err >&5
42397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398   (exit $ac_status); } &&
42399          { ac_try='test -z "$ac_c_werror_flag"
42400                          || test ! -s conftest.err'
42401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42402   (eval $ac_try) 2>&5
42403   ac_status=$?
42404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42405   (exit $ac_status); }; } &&
42406          { ac_try='test -s conftest$ac_exeext'
42407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42408   (eval $ac_try) 2>&5
42409   ac_status=$?
42410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411   (exit $ac_status); }; }; then
42412   ac_cv_lib_intl_strftime=yes
42413 else
42414   echo "$as_me: failed program was:" >&5
42415 sed 's/^/| /' conftest.$ac_ext >&5
42416
42417 ac_cv_lib_intl_strftime=no
42418 fi
42419 rm -f conftest.err conftest.$ac_objext \
42420       conftest$ac_exeext conftest.$ac_ext
42421 LIBS=$ac_check_lib_save_LIBS
42422 fi
42423 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42424 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42425 if test $ac_cv_lib_intl_strftime = yes; then
42426   cat >>confdefs.h <<\_ACEOF
42427 #define HAVE_STRFTIME 1
42428 _ACEOF
42429
42430 LIBS="-lintl $LIBS"
42431 fi
42432
42433 fi
42434 done
42435
42436
42437 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42438 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42439 if test "${ol_cv_func_inet_aton+set}" = set; then
42440   echo $ECHO_N "(cached) $ECHO_C" >&6
42441 else
42442   cat >conftest.$ac_ext <<_ACEOF
42443 /* confdefs.h.  */
42444 _ACEOF
42445 cat confdefs.h >>conftest.$ac_ext
42446 cat >>conftest.$ac_ext <<_ACEOF
42447 /* end confdefs.h.  */
42448
42449 #ifdef HAVE_SYS_TYPES_H
42450 #       include <sys/types.h>
42451 #endif
42452 #ifdef HAVE_SYS_SOCKET_H
42453 #       include <sys/socket.h>
42454 #       ifdef HAVE_SYS_SELECT_H
42455 #               include <sys/select.h>
42456 #       endif
42457 #       include <netinet/in.h>
42458 #       ifdef HAVE_ARPA_INET_H
42459 #               include <arpa/inet.h>
42460 #       endif
42461 #endif
42462
42463 int
42464 main ()
42465 {
42466 struct in_addr in;
42467 int rc = inet_aton( "255.255.255.255", &in );
42468   ;
42469   return 0;
42470 }
42471 _ACEOF
42472 rm -f conftest.$ac_objext conftest$ac_exeext
42473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42474   (eval $ac_link) 2>conftest.er1
42475   ac_status=$?
42476   grep -v '^ *+' conftest.er1 >conftest.err
42477   rm -f conftest.er1
42478   cat conftest.err >&5
42479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480   (exit $ac_status); } &&
42481          { ac_try='test -z "$ac_c_werror_flag"
42482                          || test ! -s conftest.err'
42483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42484   (eval $ac_try) 2>&5
42485   ac_status=$?
42486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487   (exit $ac_status); }; } &&
42488          { ac_try='test -s conftest$ac_exeext'
42489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42490   (eval $ac_try) 2>&5
42491   ac_status=$?
42492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493   (exit $ac_status); }; }; then
42494   ol_cv_func_inet_aton=yes
42495 else
42496   echo "$as_me: failed program was:" >&5
42497 sed 's/^/| /' conftest.$ac_ext >&5
42498
42499 ol_cv_func_inet_aton=no
42500 fi
42501 rm -f conftest.err conftest.$ac_objext \
42502       conftest$ac_exeext conftest.$ac_ext
42503 fi
42504 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42505 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42506   if test $ol_cv_func_inet_aton != no; then
42507
42508 cat >>confdefs.h <<\_ACEOF
42509 #define HAVE_INET_ATON 1
42510 _ACEOF
42511
42512   fi
42513
42514
42515 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42516 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42517 if test "${ac_cv_func__spawnlp+set}" = set; then
42518   echo $ECHO_N "(cached) $ECHO_C" >&6
42519 else
42520   cat >conftest.$ac_ext <<_ACEOF
42521 /* confdefs.h.  */
42522 _ACEOF
42523 cat confdefs.h >>conftest.$ac_ext
42524 cat >>conftest.$ac_ext <<_ACEOF
42525 /* end confdefs.h.  */
42526 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42528 #define _spawnlp innocuous__spawnlp
42529
42530 /* System header to define __stub macros and hopefully few prototypes,
42531     which can conflict with char _spawnlp (); below.
42532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42533     <limits.h> exists even on freestanding compilers.  */
42534
42535 #ifdef __STDC__
42536 # include <limits.h>
42537 #else
42538 # include <assert.h>
42539 #endif
42540
42541 #undef _spawnlp
42542
42543 /* Override any gcc2 internal prototype to avoid an error.  */
42544 #ifdef __cplusplus
42545 extern "C"
42546 {
42547 #endif
42548 /* We use char because int might match the return type of a gcc2
42549    builtin and then its argument prototype would still apply.  */
42550 char _spawnlp ();
42551 /* The GNU C library defines this for functions which it implements
42552     to always fail with ENOSYS.  Some functions are actually named
42553     something starting with __ and the normal name is an alias.  */
42554 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42555 choke me
42556 #else
42557 char (*f) () = _spawnlp;
42558 #endif
42559 #ifdef __cplusplus
42560 }
42561 #endif
42562
42563 int
42564 main ()
42565 {
42566 return f != _spawnlp;
42567   ;
42568   return 0;
42569 }
42570 _ACEOF
42571 rm -f conftest.$ac_objext conftest$ac_exeext
42572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42573   (eval $ac_link) 2>conftest.er1
42574   ac_status=$?
42575   grep -v '^ *+' conftest.er1 >conftest.err
42576   rm -f conftest.er1
42577   cat conftest.err >&5
42578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579   (exit $ac_status); } &&
42580          { ac_try='test -z "$ac_c_werror_flag"
42581                          || test ! -s conftest.err'
42582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42583   (eval $ac_try) 2>&5
42584   ac_status=$?
42585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42586   (exit $ac_status); }; } &&
42587          { ac_try='test -s conftest$ac_exeext'
42588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42589   (eval $ac_try) 2>&5
42590   ac_status=$?
42591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42592   (exit $ac_status); }; }; then
42593   ac_cv_func__spawnlp=yes
42594 else
42595   echo "$as_me: failed program was:" >&5
42596 sed 's/^/| /' conftest.$ac_ext >&5
42597
42598 ac_cv_func__spawnlp=no
42599 fi
42600 rm -f conftest.err conftest.$ac_objext \
42601       conftest$ac_exeext conftest.$ac_ext
42602 fi
42603 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42604 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42605 if test $ac_cv_func__spawnlp = yes; then
42606
42607 cat >>confdefs.h <<\_ACEOF
42608 #define HAVE_SPAWNLP 1
42609 _ACEOF
42610
42611 fi
42612
42613
42614 echo "$as_me:$LINENO: checking for _snprintf" >&5
42615 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42616 if test "${ac_cv_func__snprintf+set}" = set; then
42617   echo $ECHO_N "(cached) $ECHO_C" >&6
42618 else
42619   cat >conftest.$ac_ext <<_ACEOF
42620 /* confdefs.h.  */
42621 _ACEOF
42622 cat confdefs.h >>conftest.$ac_ext
42623 cat >>conftest.$ac_ext <<_ACEOF
42624 /* end confdefs.h.  */
42625 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42627 #define _snprintf innocuous__snprintf
42628
42629 /* System header to define __stub macros and hopefully few prototypes,
42630     which can conflict with char _snprintf (); below.
42631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42632     <limits.h> exists even on freestanding compilers.  */
42633
42634 #ifdef __STDC__
42635 # include <limits.h>
42636 #else
42637 # include <assert.h>
42638 #endif
42639
42640 #undef _snprintf
42641
42642 /* Override any gcc2 internal prototype to avoid an error.  */
42643 #ifdef __cplusplus
42644 extern "C"
42645 {
42646 #endif
42647 /* We use char because int might match the return type of a gcc2
42648    builtin and then its argument prototype would still apply.  */
42649 char _snprintf ();
42650 /* The GNU C library defines this for functions which it implements
42651     to always fail with ENOSYS.  Some functions are actually named
42652     something starting with __ and the normal name is an alias.  */
42653 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42654 choke me
42655 #else
42656 char (*f) () = _snprintf;
42657 #endif
42658 #ifdef __cplusplus
42659 }
42660 #endif
42661
42662 int
42663 main ()
42664 {
42665 return f != _snprintf;
42666   ;
42667   return 0;
42668 }
42669 _ACEOF
42670 rm -f conftest.$ac_objext conftest$ac_exeext
42671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42672   (eval $ac_link) 2>conftest.er1
42673   ac_status=$?
42674   grep -v '^ *+' conftest.er1 >conftest.err
42675   rm -f conftest.er1
42676   cat conftest.err >&5
42677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678   (exit $ac_status); } &&
42679          { ac_try='test -z "$ac_c_werror_flag"
42680                          || test ! -s conftest.err'
42681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42682   (eval $ac_try) 2>&5
42683   ac_status=$?
42684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42685   (exit $ac_status); }; } &&
42686          { ac_try='test -s conftest$ac_exeext'
42687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42688   (eval $ac_try) 2>&5
42689   ac_status=$?
42690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691   (exit $ac_status); }; }; then
42692   ac_cv_func__snprintf=yes
42693 else
42694   echo "$as_me: failed program was:" >&5
42695 sed 's/^/| /' conftest.$ac_ext >&5
42696
42697 ac_cv_func__snprintf=no
42698 fi
42699 rm -f conftest.err conftest.$ac_objext \
42700       conftest$ac_exeext conftest.$ac_ext
42701 fi
42702 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42703 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42704 if test $ac_cv_func__snprintf = yes; then
42705   ac_cv_func_snprintf=yes
42706
42707 cat >>confdefs.h <<\_ACEOF
42708 #define snprintf _snprintf
42709 _ACEOF
42710
42711
42712 fi
42713
42714
42715 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42716 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42717 if test "${ac_cv_func__vsnprintf+set}" = set; then
42718   echo $ECHO_N "(cached) $ECHO_C" >&6
42719 else
42720   cat >conftest.$ac_ext <<_ACEOF
42721 /* confdefs.h.  */
42722 _ACEOF
42723 cat confdefs.h >>conftest.$ac_ext
42724 cat >>conftest.$ac_ext <<_ACEOF
42725 /* end confdefs.h.  */
42726 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42728 #define _vsnprintf innocuous__vsnprintf
42729
42730 /* System header to define __stub macros and hopefully few prototypes,
42731     which can conflict with char _vsnprintf (); below.
42732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42733     <limits.h> exists even on freestanding compilers.  */
42734
42735 #ifdef __STDC__
42736 # include <limits.h>
42737 #else
42738 # include <assert.h>
42739 #endif
42740
42741 #undef _vsnprintf
42742
42743 /* Override any gcc2 internal prototype to avoid an error.  */
42744 #ifdef __cplusplus
42745 extern "C"
42746 {
42747 #endif
42748 /* We use char because int might match the return type of a gcc2
42749    builtin and then its argument prototype would still apply.  */
42750 char _vsnprintf ();
42751 /* The GNU C library defines this for functions which it implements
42752     to always fail with ENOSYS.  Some functions are actually named
42753     something starting with __ and the normal name is an alias.  */
42754 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42755 choke me
42756 #else
42757 char (*f) () = _vsnprintf;
42758 #endif
42759 #ifdef __cplusplus
42760 }
42761 #endif
42762
42763 int
42764 main ()
42765 {
42766 return f != _vsnprintf;
42767   ;
42768   return 0;
42769 }
42770 _ACEOF
42771 rm -f conftest.$ac_objext conftest$ac_exeext
42772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42773   (eval $ac_link) 2>conftest.er1
42774   ac_status=$?
42775   grep -v '^ *+' conftest.er1 >conftest.err
42776   rm -f conftest.er1
42777   cat conftest.err >&5
42778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42779   (exit $ac_status); } &&
42780          { ac_try='test -z "$ac_c_werror_flag"
42781                          || test ! -s conftest.err'
42782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42783   (eval $ac_try) 2>&5
42784   ac_status=$?
42785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42786   (exit $ac_status); }; } &&
42787          { ac_try='test -s conftest$ac_exeext'
42788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42789   (eval $ac_try) 2>&5
42790   ac_status=$?
42791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42792   (exit $ac_status); }; }; then
42793   ac_cv_func__vsnprintf=yes
42794 else
42795   echo "$as_me: failed program was:" >&5
42796 sed 's/^/| /' conftest.$ac_ext >&5
42797
42798 ac_cv_func__vsnprintf=no
42799 fi
42800 rm -f conftest.err conftest.$ac_objext \
42801       conftest$ac_exeext conftest.$ac_ext
42802 fi
42803 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42804 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42805 if test $ac_cv_func__vsnprintf = yes; then
42806   ac_cv_func_vsnprintf=yes
42807
42808 cat >>confdefs.h <<\_ACEOF
42809 #define vsnprintf _vsnprintf
42810 _ACEOF
42811
42812
42813 fi
42814
42815
42816
42817 for ac_func in vprintf
42818 do
42819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42820 echo "$as_me:$LINENO: checking for $ac_func" >&5
42821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42822 if eval "test \"\${$as_ac_var+set}\" = set"; then
42823   echo $ECHO_N "(cached) $ECHO_C" >&6
42824 else
42825   cat >conftest.$ac_ext <<_ACEOF
42826 /* confdefs.h.  */
42827 _ACEOF
42828 cat confdefs.h >>conftest.$ac_ext
42829 cat >>conftest.$ac_ext <<_ACEOF
42830 /* end confdefs.h.  */
42831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42833 #define $ac_func innocuous_$ac_func
42834
42835 /* System header to define __stub macros and hopefully few prototypes,
42836     which can conflict with char $ac_func (); below.
42837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42838     <limits.h> exists even on freestanding compilers.  */
42839
42840 #ifdef __STDC__
42841 # include <limits.h>
42842 #else
42843 # include <assert.h>
42844 #endif
42845
42846 #undef $ac_func
42847
42848 /* Override any gcc2 internal prototype to avoid an error.  */
42849 #ifdef __cplusplus
42850 extern "C"
42851 {
42852 #endif
42853 /* We use char because int might match the return type of a gcc2
42854    builtin and then its argument prototype would still apply.  */
42855 char $ac_func ();
42856 /* The GNU C library defines this for functions which it implements
42857     to always fail with ENOSYS.  Some functions are actually named
42858     something starting with __ and the normal name is an alias.  */
42859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42860 choke me
42861 #else
42862 char (*f) () = $ac_func;
42863 #endif
42864 #ifdef __cplusplus
42865 }
42866 #endif
42867
42868 int
42869 main ()
42870 {
42871 return f != $ac_func;
42872   ;
42873   return 0;
42874 }
42875 _ACEOF
42876 rm -f conftest.$ac_objext conftest$ac_exeext
42877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42878   (eval $ac_link) 2>conftest.er1
42879   ac_status=$?
42880   grep -v '^ *+' conftest.er1 >conftest.err
42881   rm -f conftest.er1
42882   cat conftest.err >&5
42883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42884   (exit $ac_status); } &&
42885          { ac_try='test -z "$ac_c_werror_flag"
42886                          || test ! -s conftest.err'
42887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42888   (eval $ac_try) 2>&5
42889   ac_status=$?
42890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42891   (exit $ac_status); }; } &&
42892          { ac_try='test -s conftest$ac_exeext'
42893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42894   (eval $ac_try) 2>&5
42895   ac_status=$?
42896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42897   (exit $ac_status); }; }; then
42898   eval "$as_ac_var=yes"
42899 else
42900   echo "$as_me: failed program was:" >&5
42901 sed 's/^/| /' conftest.$ac_ext >&5
42902
42903 eval "$as_ac_var=no"
42904 fi
42905 rm -f conftest.err conftest.$ac_objext \
42906       conftest$ac_exeext conftest.$ac_ext
42907 fi
42908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42910 if test `eval echo '${'$as_ac_var'}'` = yes; then
42911   cat >>confdefs.h <<_ACEOF
42912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42913 _ACEOF
42914
42915 echo "$as_me:$LINENO: checking for _doprnt" >&5
42916 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42917 if test "${ac_cv_func__doprnt+set}" = set; then
42918   echo $ECHO_N "(cached) $ECHO_C" >&6
42919 else
42920   cat >conftest.$ac_ext <<_ACEOF
42921 /* confdefs.h.  */
42922 _ACEOF
42923 cat confdefs.h >>conftest.$ac_ext
42924 cat >>conftest.$ac_ext <<_ACEOF
42925 /* end confdefs.h.  */
42926 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42928 #define _doprnt innocuous__doprnt
42929
42930 /* System header to define __stub macros and hopefully few prototypes,
42931     which can conflict with char _doprnt (); below.
42932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42933     <limits.h> exists even on freestanding compilers.  */
42934
42935 #ifdef __STDC__
42936 # include <limits.h>
42937 #else
42938 # include <assert.h>
42939 #endif
42940
42941 #undef _doprnt
42942
42943 /* Override any gcc2 internal prototype to avoid an error.  */
42944 #ifdef __cplusplus
42945 extern "C"
42946 {
42947 #endif
42948 /* We use char because int might match the return type of a gcc2
42949    builtin and then its argument prototype would still apply.  */
42950 char _doprnt ();
42951 /* The GNU C library defines this for functions which it implements
42952     to always fail with ENOSYS.  Some functions are actually named
42953     something starting with __ and the normal name is an alias.  */
42954 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42955 choke me
42956 #else
42957 char (*f) () = _doprnt;
42958 #endif
42959 #ifdef __cplusplus
42960 }
42961 #endif
42962
42963 int
42964 main ()
42965 {
42966 return f != _doprnt;
42967   ;
42968   return 0;
42969 }
42970 _ACEOF
42971 rm -f conftest.$ac_objext conftest$ac_exeext
42972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42973   (eval $ac_link) 2>conftest.er1
42974   ac_status=$?
42975   grep -v '^ *+' conftest.er1 >conftest.err
42976   rm -f conftest.er1
42977   cat conftest.err >&5
42978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979   (exit $ac_status); } &&
42980          { ac_try='test -z "$ac_c_werror_flag"
42981                          || test ! -s conftest.err'
42982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42983   (eval $ac_try) 2>&5
42984   ac_status=$?
42985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986   (exit $ac_status); }; } &&
42987          { ac_try='test -s conftest$ac_exeext'
42988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42989   (eval $ac_try) 2>&5
42990   ac_status=$?
42991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42992   (exit $ac_status); }; }; then
42993   ac_cv_func__doprnt=yes
42994 else
42995   echo "$as_me: failed program was:" >&5
42996 sed 's/^/| /' conftest.$ac_ext >&5
42997
42998 ac_cv_func__doprnt=no
42999 fi
43000 rm -f conftest.err conftest.$ac_objext \
43001       conftest$ac_exeext conftest.$ac_ext
43002 fi
43003 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43004 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43005 if test $ac_cv_func__doprnt = yes; then
43006
43007 cat >>confdefs.h <<\_ACEOF
43008 #define HAVE_DOPRNT 1
43009 _ACEOF
43010
43011 fi
43012
43013 fi
43014 done
43015
43016
43017
43018 if test $ac_cv_func_vprintf = yes ; then
43019
43020
43021 for ac_func in snprintf vsnprintf
43022 do
43023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43024 echo "$as_me:$LINENO: checking for $ac_func" >&5
43025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43026 if eval "test \"\${$as_ac_var+set}\" = set"; then
43027   echo $ECHO_N "(cached) $ECHO_C" >&6
43028 else
43029   cat >conftest.$ac_ext <<_ACEOF
43030 /* confdefs.h.  */
43031 _ACEOF
43032 cat confdefs.h >>conftest.$ac_ext
43033 cat >>conftest.$ac_ext <<_ACEOF
43034 /* end confdefs.h.  */
43035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43037 #define $ac_func innocuous_$ac_func
43038
43039 /* System header to define __stub macros and hopefully few prototypes,
43040     which can conflict with char $ac_func (); below.
43041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43042     <limits.h> exists even on freestanding compilers.  */
43043
43044 #ifdef __STDC__
43045 # include <limits.h>
43046 #else
43047 # include <assert.h>
43048 #endif
43049
43050 #undef $ac_func
43051
43052 /* Override any gcc2 internal prototype to avoid an error.  */
43053 #ifdef __cplusplus
43054 extern "C"
43055 {
43056 #endif
43057 /* We use char because int might match the return type of a gcc2
43058    builtin and then its argument prototype would still apply.  */
43059 char $ac_func ();
43060 /* The GNU C library defines this for functions which it implements
43061     to always fail with ENOSYS.  Some functions are actually named
43062     something starting with __ and the normal name is an alias.  */
43063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43064 choke me
43065 #else
43066 char (*f) () = $ac_func;
43067 #endif
43068 #ifdef __cplusplus
43069 }
43070 #endif
43071
43072 int
43073 main ()
43074 {
43075 return f != $ac_func;
43076   ;
43077   return 0;
43078 }
43079 _ACEOF
43080 rm -f conftest.$ac_objext conftest$ac_exeext
43081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43082   (eval $ac_link) 2>conftest.er1
43083   ac_status=$?
43084   grep -v '^ *+' conftest.er1 >conftest.err
43085   rm -f conftest.er1
43086   cat conftest.err >&5
43087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088   (exit $ac_status); } &&
43089          { ac_try='test -z "$ac_c_werror_flag"
43090                          || test ! -s conftest.err'
43091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43092   (eval $ac_try) 2>&5
43093   ac_status=$?
43094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095   (exit $ac_status); }; } &&
43096          { ac_try='test -s conftest$ac_exeext'
43097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43098   (eval $ac_try) 2>&5
43099   ac_status=$?
43100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101   (exit $ac_status); }; }; then
43102   eval "$as_ac_var=yes"
43103 else
43104   echo "$as_me: failed program was:" >&5
43105 sed 's/^/| /' conftest.$ac_ext >&5
43106
43107 eval "$as_ac_var=no"
43108 fi
43109 rm -f conftest.err conftest.$ac_objext \
43110       conftest$ac_exeext conftest.$ac_ext
43111 fi
43112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43114 if test `eval echo '${'$as_ac_var'}'` = yes; then
43115   cat >>confdefs.h <<_ACEOF
43116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43117 _ACEOF
43118
43119 fi
43120 done
43121
43122 fi
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
43153
43154
43155
43156
43157
43158
43159
43160
43161
43162
43163
43164
43165
43166
43167
43168
43169
43170
43171
43172
43173
43174
43175
43176
43177
43178 for ac_func in \
43179         bcopy                   \
43180         closesocket             \
43181         chroot                  \
43182         endgrent                \
43183         endpwent                \
43184         fcntl                   \
43185         flock                   \
43186         fstat                   \
43187         getdtablesize   \
43188         getgrgid                \
43189         gethostname             \
43190         getpass                 \
43191         getpassphrase   \
43192         getpwuid                \
43193         getpwnam                \
43194         getspnam                \
43195         gettimeofday    \
43196         initgroups              \
43197         inet_ntoa_b             \
43198         lockf                   \
43199         memcpy                  \
43200         memmove                 \
43201         memrchr                 \
43202         mkstemp                 \
43203         mktemp                  \
43204         pipe                    \
43205         read                    \
43206         recv                    \
43207         recvfrom                \
43208         setpwfile               \
43209         setgid                  \
43210         setegid                 \
43211         setsid                  \
43212         setuid                  \
43213         seteuid                 \
43214         signal                  \
43215         strdup                  \
43216         strpbrk                 \
43217         strrchr                 \
43218         strsep                  \
43219         strstr                  \
43220         strtol                  \
43221         strtoul                 \
43222         strtoq                  \
43223         strtouq                 \
43224         strtoll                 \
43225         strspn                  \
43226         sysconf                 \
43227         waitpid                 \
43228         wait4                   \
43229         write                   \
43230         send                    \
43231         sendmsg                 \
43232         sendto                  \
43233
43234 do
43235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43236 echo "$as_me:$LINENO: checking for $ac_func" >&5
43237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43238 if eval "test \"\${$as_ac_var+set}\" = set"; then
43239   echo $ECHO_N "(cached) $ECHO_C" >&6
43240 else
43241   cat >conftest.$ac_ext <<_ACEOF
43242 /* confdefs.h.  */
43243 _ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h.  */
43247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43249 #define $ac_func innocuous_$ac_func
43250
43251 /* System header to define __stub macros and hopefully few prototypes,
43252     which can conflict with char $ac_func (); below.
43253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43254     <limits.h> exists even on freestanding compilers.  */
43255
43256 #ifdef __STDC__
43257 # include <limits.h>
43258 #else
43259 # include <assert.h>
43260 #endif
43261
43262 #undef $ac_func
43263
43264 /* Override any gcc2 internal prototype to avoid an error.  */
43265 #ifdef __cplusplus
43266 extern "C"
43267 {
43268 #endif
43269 /* We use char because int might match the return type of a gcc2
43270    builtin and then its argument prototype would still apply.  */
43271 char $ac_func ();
43272 /* The GNU C library defines this for functions which it implements
43273     to always fail with ENOSYS.  Some functions are actually named
43274     something starting with __ and the normal name is an alias.  */
43275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43276 choke me
43277 #else
43278 char (*f) () = $ac_func;
43279 #endif
43280 #ifdef __cplusplus
43281 }
43282 #endif
43283
43284 int
43285 main ()
43286 {
43287 return f != $ac_func;
43288   ;
43289   return 0;
43290 }
43291 _ACEOF
43292 rm -f conftest.$ac_objext conftest$ac_exeext
43293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43294   (eval $ac_link) 2>conftest.er1
43295   ac_status=$?
43296   grep -v '^ *+' conftest.er1 >conftest.err
43297   rm -f conftest.er1
43298   cat conftest.err >&5
43299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43300   (exit $ac_status); } &&
43301          { ac_try='test -z "$ac_c_werror_flag"
43302                          || test ! -s conftest.err'
43303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304   (eval $ac_try) 2>&5
43305   ac_status=$?
43306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307   (exit $ac_status); }; } &&
43308          { ac_try='test -s conftest$ac_exeext'
43309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43310   (eval $ac_try) 2>&5
43311   ac_status=$?
43312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43313   (exit $ac_status); }; }; then
43314   eval "$as_ac_var=yes"
43315 else
43316   echo "$as_me: failed program was:" >&5
43317 sed 's/^/| /' conftest.$ac_ext >&5
43318
43319 eval "$as_ac_var=no"
43320 fi
43321 rm -f conftest.err conftest.$ac_objext \
43322       conftest$ac_exeext conftest.$ac_ext
43323 fi
43324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43326 if test `eval echo '${'$as_ac_var'}'` = yes; then
43327   cat >>confdefs.h <<_ACEOF
43328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43329 _ACEOF
43330
43331 fi
43332 done
43333
43334
43335
43336
43337 for ac_func in getopt getpeereid
43338 do
43339 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43340 echo "$as_me:$LINENO: checking for $ac_func" >&5
43341 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43342 if eval "test \"\${$as_ac_var+set}\" = set"; then
43343   echo $ECHO_N "(cached) $ECHO_C" >&6
43344 else
43345   cat >conftest.$ac_ext <<_ACEOF
43346 /* confdefs.h.  */
43347 _ACEOF
43348 cat confdefs.h >>conftest.$ac_ext
43349 cat >>conftest.$ac_ext <<_ACEOF
43350 /* end confdefs.h.  */
43351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43353 #define $ac_func innocuous_$ac_func
43354
43355 /* System header to define __stub macros and hopefully few prototypes,
43356     which can conflict with char $ac_func (); below.
43357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43358     <limits.h> exists even on freestanding compilers.  */
43359
43360 #ifdef __STDC__
43361 # include <limits.h>
43362 #else
43363 # include <assert.h>
43364 #endif
43365
43366 #undef $ac_func
43367
43368 /* Override any gcc2 internal prototype to avoid an error.  */
43369 #ifdef __cplusplus
43370 extern "C"
43371 {
43372 #endif
43373 /* We use char because int might match the return type of a gcc2
43374    builtin and then its argument prototype would still apply.  */
43375 char $ac_func ();
43376 /* The GNU C library defines this for functions which it implements
43377     to always fail with ENOSYS.  Some functions are actually named
43378     something starting with __ and the normal name is an alias.  */
43379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43380 choke me
43381 #else
43382 char (*f) () = $ac_func;
43383 #endif
43384 #ifdef __cplusplus
43385 }
43386 #endif
43387
43388 int
43389 main ()
43390 {
43391 return f != $ac_func;
43392   ;
43393   return 0;
43394 }
43395 _ACEOF
43396 rm -f conftest.$ac_objext conftest$ac_exeext
43397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43398   (eval $ac_link) 2>conftest.er1
43399   ac_status=$?
43400   grep -v '^ *+' conftest.er1 >conftest.err
43401   rm -f conftest.er1
43402   cat conftest.err >&5
43403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43404   (exit $ac_status); } &&
43405          { ac_try='test -z "$ac_c_werror_flag"
43406                          || test ! -s conftest.err'
43407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43408   (eval $ac_try) 2>&5
43409   ac_status=$?
43410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411   (exit $ac_status); }; } &&
43412          { ac_try='test -s conftest$ac_exeext'
43413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414   (eval $ac_try) 2>&5
43415   ac_status=$?
43416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417   (exit $ac_status); }; }; then
43418   eval "$as_ac_var=yes"
43419 else
43420   echo "$as_me: failed program was:" >&5
43421 sed 's/^/| /' conftest.$ac_ext >&5
43422
43423 eval "$as_ac_var=no"
43424 fi
43425 rm -f conftest.err conftest.$ac_objext \
43426       conftest$ac_exeext conftest.$ac_ext
43427 fi
43428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43430 if test `eval echo '${'$as_ac_var'}'` = yes; then
43431   cat >>confdefs.h <<_ACEOF
43432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43433 _ACEOF
43434
43435 else
43436   case $LIBOBJS in
43437     "$ac_func.$ac_objext"   | \
43438   *" $ac_func.$ac_objext"   | \
43439     "$ac_func.$ac_objext "* | \
43440   *" $ac_func.$ac_objext "* ) ;;
43441   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43442 esac
43443
43444 fi
43445 done
43446
43447
43448
43449 if test "$ac_cv_func_getopt" != yes; then
43450         LIBSRCS="$LIBSRCS getopt.c"
43451 fi
43452
43453 if test "$ac_cv_func_getpeereid" != yes; then
43454
43455 for ac_func in getpeerucred
43456 do
43457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43458 echo "$as_me:$LINENO: checking for $ac_func" >&5
43459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43460 if eval "test \"\${$as_ac_var+set}\" = set"; then
43461   echo $ECHO_N "(cached) $ECHO_C" >&6
43462 else
43463   cat >conftest.$ac_ext <<_ACEOF
43464 /* confdefs.h.  */
43465 _ACEOF
43466 cat confdefs.h >>conftest.$ac_ext
43467 cat >>conftest.$ac_ext <<_ACEOF
43468 /* end confdefs.h.  */
43469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43471 #define $ac_func innocuous_$ac_func
43472
43473 /* System header to define __stub macros and hopefully few prototypes,
43474     which can conflict with char $ac_func (); below.
43475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43476     <limits.h> exists even on freestanding compilers.  */
43477
43478 #ifdef __STDC__
43479 # include <limits.h>
43480 #else
43481 # include <assert.h>
43482 #endif
43483
43484 #undef $ac_func
43485
43486 /* Override any gcc2 internal prototype to avoid an error.  */
43487 #ifdef __cplusplus
43488 extern "C"
43489 {
43490 #endif
43491 /* We use char because int might match the return type of a gcc2
43492    builtin and then its argument prototype would still apply.  */
43493 char $ac_func ();
43494 /* The GNU C library defines this for functions which it implements
43495     to always fail with ENOSYS.  Some functions are actually named
43496     something starting with __ and the normal name is an alias.  */
43497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43498 choke me
43499 #else
43500 char (*f) () = $ac_func;
43501 #endif
43502 #ifdef __cplusplus
43503 }
43504 #endif
43505
43506 int
43507 main ()
43508 {
43509 return f != $ac_func;
43510   ;
43511   return 0;
43512 }
43513 _ACEOF
43514 rm -f conftest.$ac_objext conftest$ac_exeext
43515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43516   (eval $ac_link) 2>conftest.er1
43517   ac_status=$?
43518   grep -v '^ *+' conftest.er1 >conftest.err
43519   rm -f conftest.er1
43520   cat conftest.err >&5
43521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43522   (exit $ac_status); } &&
43523          { ac_try='test -z "$ac_c_werror_flag"
43524                          || test ! -s conftest.err'
43525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43526   (eval $ac_try) 2>&5
43527   ac_status=$?
43528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43529   (exit $ac_status); }; } &&
43530          { ac_try='test -s conftest$ac_exeext'
43531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43532   (eval $ac_try) 2>&5
43533   ac_status=$?
43534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535   (exit $ac_status); }; }; then
43536   eval "$as_ac_var=yes"
43537 else
43538   echo "$as_me: failed program was:" >&5
43539 sed 's/^/| /' conftest.$ac_ext >&5
43540
43541 eval "$as_ac_var=no"
43542 fi
43543 rm -f conftest.err conftest.$ac_objext \
43544       conftest$ac_exeext conftest.$ac_ext
43545 fi
43546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43548 if test `eval echo '${'$as_ac_var'}'` = yes; then
43549   cat >>confdefs.h <<_ACEOF
43550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43551 _ACEOF
43552
43553 fi
43554 done
43555
43556         if test "$ac_cv_func_getpeerucred" != yes ; then
43557                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43558 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43559 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43560   echo $ECHO_N "(cached) $ECHO_C" >&6
43561 else
43562   cat >conftest.$ac_ext <<_ACEOF
43563 /* confdefs.h.  */
43564 _ACEOF
43565 cat confdefs.h >>conftest.$ac_ext
43566 cat >>conftest.$ac_ext <<_ACEOF
43567 /* end confdefs.h.  */
43568 $ac_includes_default
43569 #ifdef HAVE_SYS_SOCKET_H
43570 #include <sys/socket.h>
43571 #endif
43572
43573 int
43574 main ()
43575 {
43576 static struct msghdr ac_aggr;
43577 if (ac_aggr.msg_accrightslen)
43578 return 0;
43579   ;
43580   return 0;
43581 }
43582 _ACEOF
43583 rm -f conftest.$ac_objext
43584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43585   (eval $ac_compile) 2>conftest.er1
43586   ac_status=$?
43587   grep -v '^ *+' conftest.er1 >conftest.err
43588   rm -f conftest.er1
43589   cat conftest.err >&5
43590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591   (exit $ac_status); } &&
43592          { ac_try='test -z "$ac_c_werror_flag"
43593                          || test ! -s conftest.err'
43594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43595   (eval $ac_try) 2>&5
43596   ac_status=$?
43597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598   (exit $ac_status); }; } &&
43599          { ac_try='test -s conftest.$ac_objext'
43600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43601   (eval $ac_try) 2>&5
43602   ac_status=$?
43603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604   (exit $ac_status); }; }; then
43605   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43606 else
43607   echo "$as_me: failed program was:" >&5
43608 sed 's/^/| /' conftest.$ac_ext >&5
43609
43610 cat >conftest.$ac_ext <<_ACEOF
43611 /* confdefs.h.  */
43612 _ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h.  */
43616 $ac_includes_default
43617 #ifdef HAVE_SYS_SOCKET_H
43618 #include <sys/socket.h>
43619 #endif
43620
43621 int
43622 main ()
43623 {
43624 static struct msghdr ac_aggr;
43625 if (sizeof ac_aggr.msg_accrightslen)
43626 return 0;
43627   ;
43628   return 0;
43629 }
43630 _ACEOF
43631 rm -f conftest.$ac_objext
43632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43633   (eval $ac_compile) 2>conftest.er1
43634   ac_status=$?
43635   grep -v '^ *+' conftest.er1 >conftest.err
43636   rm -f conftest.er1
43637   cat conftest.err >&5
43638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43639   (exit $ac_status); } &&
43640          { ac_try='test -z "$ac_c_werror_flag"
43641                          || test ! -s conftest.err'
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); }; } &&
43647          { ac_try='test -s conftest.$ac_objext'
43648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43649   (eval $ac_try) 2>&5
43650   ac_status=$?
43651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43652   (exit $ac_status); }; }; then
43653   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43654 else
43655   echo "$as_me: failed program was:" >&5
43656 sed 's/^/| /' conftest.$ac_ext >&5
43657
43658 ac_cv_member_struct_msghdr_msg_accrightslen=no
43659 fi
43660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43661 fi
43662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43663 fi
43664 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43665 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43666 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43667
43668 cat >>confdefs.h <<_ACEOF
43669 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43670 _ACEOF
43671
43672
43673 fi
43674
43675                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43676                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43677 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43678 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43679   echo $ECHO_N "(cached) $ECHO_C" >&6
43680 else
43681   cat >conftest.$ac_ext <<_ACEOF
43682 /* confdefs.h.  */
43683 _ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h.  */
43687 $ac_includes_default
43688 #ifdef HAVE_SYS_SOCKET_H
43689 #include <sys/socket.h>
43690 #endif
43691
43692 int
43693 main ()
43694 {
43695 static struct msghdr ac_aggr;
43696 if (ac_aggr.msg_control)
43697 return 0;
43698   ;
43699   return 0;
43700 }
43701 _ACEOF
43702 rm -f conftest.$ac_objext
43703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43704   (eval $ac_compile) 2>conftest.er1
43705   ac_status=$?
43706   grep -v '^ *+' conftest.er1 >conftest.err
43707   rm -f conftest.er1
43708   cat conftest.err >&5
43709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43710   (exit $ac_status); } &&
43711          { ac_try='test -z "$ac_c_werror_flag"
43712                          || test ! -s conftest.err'
43713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43714   (eval $ac_try) 2>&5
43715   ac_status=$?
43716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43717   (exit $ac_status); }; } &&
43718          { ac_try='test -s conftest.$ac_objext'
43719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43720   (eval $ac_try) 2>&5
43721   ac_status=$?
43722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43723   (exit $ac_status); }; }; then
43724   ac_cv_member_struct_msghdr_msg_control=yes
43725 else
43726   echo "$as_me: failed program was:" >&5
43727 sed 's/^/| /' conftest.$ac_ext >&5
43728
43729 cat >conftest.$ac_ext <<_ACEOF
43730 /* confdefs.h.  */
43731 _ACEOF
43732 cat confdefs.h >>conftest.$ac_ext
43733 cat >>conftest.$ac_ext <<_ACEOF
43734 /* end confdefs.h.  */
43735 $ac_includes_default
43736 #ifdef HAVE_SYS_SOCKET_H
43737 #include <sys/socket.h>
43738 #endif
43739
43740 int
43741 main ()
43742 {
43743 static struct msghdr ac_aggr;
43744 if (sizeof ac_aggr.msg_control)
43745 return 0;
43746   ;
43747   return 0;
43748 }
43749 _ACEOF
43750 rm -f conftest.$ac_objext
43751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43752   (eval $ac_compile) 2>conftest.er1
43753   ac_status=$?
43754   grep -v '^ *+' conftest.er1 >conftest.err
43755   rm -f conftest.er1
43756   cat conftest.err >&5
43757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758   (exit $ac_status); } &&
43759          { ac_try='test -z "$ac_c_werror_flag"
43760                          || test ! -s conftest.err'
43761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43762   (eval $ac_try) 2>&5
43763   ac_status=$?
43764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43765   (exit $ac_status); }; } &&
43766          { ac_try='test -s conftest.$ac_objext'
43767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768   (eval $ac_try) 2>&5
43769   ac_status=$?
43770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771   (exit $ac_status); }; }; then
43772   ac_cv_member_struct_msghdr_msg_control=yes
43773 else
43774   echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43776
43777 ac_cv_member_struct_msghdr_msg_control=no
43778 fi
43779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43780 fi
43781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43782 fi
43783 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43784 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43785 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43786
43787 cat >>confdefs.h <<_ACEOF
43788 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43789 _ACEOF
43790
43791
43792 fi
43793
43794                 fi
43795         fi
43796         LIBSRCS="$LIBSRCS getpeereid.c"
43797 fi
43798
43799 if test "$ac_cv_func_snprintf" != yes ||
43800    test "$ac_cv_func_vsnprintf" != yes; then
43801         if test "$ac_cv_func_snprintf" != yes; then
43802
43803 cat >>confdefs.h <<\_ACEOF
43804 #define snprintf ber_pvt_snprintf
43805 _ACEOF
43806
43807         fi
43808         if test "$ac_cv_func_vsnprintf" != yes; then
43809
43810 cat >>confdefs.h <<\_ACEOF
43811 #define vsnprintf ber_pvt_vsnprintf
43812 _ACEOF
43813
43814         fi
43815 fi
43816
43817
43818 if test "$ol_enable_slapi" != no ; then
43819
43820 for ac_header in ltdl.h
43821 do
43822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43824   echo "$as_me:$LINENO: checking for $ac_header" >&5
43825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43827   echo $ECHO_N "(cached) $ECHO_C" >&6
43828 fi
43829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43831 else
43832   # Is the header compilable?
43833 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43835 cat >conftest.$ac_ext <<_ACEOF
43836 /* confdefs.h.  */
43837 _ACEOF
43838 cat confdefs.h >>conftest.$ac_ext
43839 cat >>conftest.$ac_ext <<_ACEOF
43840 /* end confdefs.h.  */
43841 $ac_includes_default
43842 #include <$ac_header>
43843 _ACEOF
43844 rm -f conftest.$ac_objext
43845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43846   (eval $ac_compile) 2>conftest.er1
43847   ac_status=$?
43848   grep -v '^ *+' conftest.er1 >conftest.err
43849   rm -f conftest.er1
43850   cat conftest.err >&5
43851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43852   (exit $ac_status); } &&
43853          { ac_try='test -z "$ac_c_werror_flag"
43854                          || test ! -s conftest.err'
43855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856   (eval $ac_try) 2>&5
43857   ac_status=$?
43858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859   (exit $ac_status); }; } &&
43860          { ac_try='test -s conftest.$ac_objext'
43861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43862   (eval $ac_try) 2>&5
43863   ac_status=$?
43864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43865   (exit $ac_status); }; }; then
43866   ac_header_compiler=yes
43867 else
43868   echo "$as_me: failed program was:" >&5
43869 sed 's/^/| /' conftest.$ac_ext >&5
43870
43871 ac_header_compiler=no
43872 fi
43873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43875 echo "${ECHO_T}$ac_header_compiler" >&6
43876
43877 # Is the header present?
43878 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43880 cat >conftest.$ac_ext <<_ACEOF
43881 /* confdefs.h.  */
43882 _ACEOF
43883 cat confdefs.h >>conftest.$ac_ext
43884 cat >>conftest.$ac_ext <<_ACEOF
43885 /* end confdefs.h.  */
43886 #include <$ac_header>
43887 _ACEOF
43888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43890   ac_status=$?
43891   grep -v '^ *+' conftest.er1 >conftest.err
43892   rm -f conftest.er1
43893   cat conftest.err >&5
43894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43895   (exit $ac_status); } >/dev/null; then
43896   if test -s conftest.err; then
43897     ac_cpp_err=$ac_c_preproc_warn_flag
43898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43899   else
43900     ac_cpp_err=
43901   fi
43902 else
43903   ac_cpp_err=yes
43904 fi
43905 if test -z "$ac_cpp_err"; then
43906   ac_header_preproc=yes
43907 else
43908   echo "$as_me: failed program was:" >&5
43909 sed 's/^/| /' conftest.$ac_ext >&5
43910
43911   ac_header_preproc=no
43912 fi
43913 rm -f conftest.err conftest.$ac_ext
43914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43915 echo "${ECHO_T}$ac_header_preproc" >&6
43916
43917 # So?  What about this header?
43918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43919   yes:no: )
43920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43924     ac_header_preproc=yes
43925     ;;
43926   no:yes:* )
43927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43939     (
43940       cat <<\_ASBOX
43941 ## ------------------------------------------ ##
43942 ## Report this to the AC_PACKAGE_NAME lists.  ##
43943 ## ------------------------------------------ ##
43944 _ASBOX
43945     ) |
43946       sed "s/^/$as_me: WARNING:     /" >&2
43947     ;;
43948 esac
43949 echo "$as_me:$LINENO: checking for $ac_header" >&5
43950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43952   echo $ECHO_N "(cached) $ECHO_C" >&6
43953 else
43954   eval "$as_ac_Header=\$ac_header_preproc"
43955 fi
43956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43958
43959 fi
43960 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43961   cat >>confdefs.h <<_ACEOF
43962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43963 _ACEOF
43964
43965 fi
43966
43967 done
43968
43969
43970         if test $ac_cv_header_ltdl_h != yes ; then
43971                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43972 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43973    { (exit 1); exit 1; }; }
43974         fi
43975         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43976 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43977 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43978   echo $ECHO_N "(cached) $ECHO_C" >&6
43979 else
43980   ac_check_lib_save_LIBS=$LIBS
43981 LIBS="-lltdl  $LIBS"
43982 cat >conftest.$ac_ext <<_ACEOF
43983 /* confdefs.h.  */
43984 _ACEOF
43985 cat confdefs.h >>conftest.$ac_ext
43986 cat >>conftest.$ac_ext <<_ACEOF
43987 /* end confdefs.h.  */
43988
43989 /* Override any gcc2 internal prototype to avoid an error.  */
43990 #ifdef __cplusplus
43991 extern "C"
43992 #endif
43993 /* We use char because int might match the return type of a gcc2
43994    builtin and then its argument prototype would still apply.  */
43995 char lt_dlinit ();
43996 int
43997 main ()
43998 {
43999 lt_dlinit ();
44000   ;
44001   return 0;
44002 }
44003 _ACEOF
44004 rm -f conftest.$ac_objext conftest$ac_exeext
44005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44006   (eval $ac_link) 2>conftest.er1
44007   ac_status=$?
44008   grep -v '^ *+' conftest.er1 >conftest.err
44009   rm -f conftest.er1
44010   cat conftest.err >&5
44011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012   (exit $ac_status); } &&
44013          { ac_try='test -z "$ac_c_werror_flag"
44014                          || test ! -s conftest.err'
44015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44016   (eval $ac_try) 2>&5
44017   ac_status=$?
44018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44019   (exit $ac_status); }; } &&
44020          { ac_try='test -s conftest$ac_exeext'
44021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44022   (eval $ac_try) 2>&5
44023   ac_status=$?
44024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025   (exit $ac_status); }; }; then
44026   ac_cv_lib_ltdl_lt_dlinit=yes
44027 else
44028   echo "$as_me: failed program was:" >&5
44029 sed 's/^/| /' conftest.$ac_ext >&5
44030
44031 ac_cv_lib_ltdl_lt_dlinit=no
44032 fi
44033 rm -f conftest.err conftest.$ac_objext \
44034       conftest$ac_exeext conftest.$ac_ext
44035 LIBS=$ac_check_lib_save_LIBS
44036 fi
44037 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44038 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44039 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44040
44041                 SLAPI_LIBS=-lltdl
44042                 LIBSLAPI=libslapi.a
44043                 LIBSLAPITOOLS=../libslapi.a
44044
44045 cat >>confdefs.h <<\_ACEOF
44046 #define HAVE_LIBLTDL 1
44047 _ACEOF
44048
44049
44050 else
44051   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44052 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44053    { (exit 1); exit 1; }; }
44054 fi
44055
44056
44057
44058 cat >>confdefs.h <<\_ACEOF
44059 #define LDAP_SLAPI 1
44060 _ACEOF
44061
44062 fi
44063
44064 if test "$ol_enable_debug" != no ; then
44065         if test "$ol_enable_debug" = traditional; then
44066
44067 cat >>confdefs.h <<\_ACEOF
44068 #define OLD_DEBUG 1
44069 _ACEOF
44070
44071         fi
44072
44073 cat >>confdefs.h <<\_ACEOF
44074 #define LDAP_DEBUG 1
44075 _ACEOF
44076
44077 fi
44078 if test "$ol_enable_syslog" = yes ; then
44079
44080 cat >>confdefs.h <<\_ACEOF
44081 #define LDAP_SYSLOG 1
44082 _ACEOF
44083
44084 fi
44085 if test "$ol_link_kbind" != no ; then
44086
44087 cat >>confdefs.h <<\_ACEOF
44088 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44089 _ACEOF
44090
44091 fi
44092 if test "$ol_enable_proctitle" != no ; then
44093
44094 cat >>confdefs.h <<\_ACEOF
44095 #define LDAP_PROCTITLE 1
44096 _ACEOF
44097
44098 fi
44099 if test "$ol_enable_referrals" != no ; then
44100
44101 cat >>confdefs.h <<\_ACEOF
44102 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44103 _ACEOF
44104
44105 fi
44106 if test "$ol_enable_local" != no; then
44107
44108 cat >>confdefs.h <<\_ACEOF
44109 #define LDAP_PF_LOCAL 1
44110 _ACEOF
44111
44112 fi
44113 if test "$ol_link_ipv6" != no; then
44114
44115 cat >>confdefs.h <<\_ACEOF
44116 #define LDAP_PF_INET6 1
44117 _ACEOF
44118
44119 fi
44120 if test "$ol_enable_cleartext" != no ; then
44121
44122 cat >>confdefs.h <<\_ACEOF
44123 #define SLAPD_CLEARTEXT 1
44124 _ACEOF
44125
44126 fi
44127 if test "$ol_enable_crypt" != no ; then
44128
44129 cat >>confdefs.h <<\_ACEOF
44130 #define SLAPD_CRYPT 1
44131 _ACEOF
44132
44133 fi
44134 if test "$ol_link_spasswd" != no ; then
44135
44136 cat >>confdefs.h <<\_ACEOF
44137 #define SLAPD_SPASSWD 1
44138 _ACEOF
44139
44140 fi
44141 if test "$ol_enable_multimaster" != no ; then
44142
44143 cat >>confdefs.h <<\_ACEOF
44144 #define SLAPD_MULTIMASTER 1
44145 _ACEOF
44146
44147 fi
44148 if test "$ol_enable_rlookups" != no ; then
44149
44150 cat >>confdefs.h <<\_ACEOF
44151 #define SLAPD_RLOOKUPS 1
44152 _ACEOF
44153
44154 fi
44155 if test "$ol_enable_aci" != no ; then
44156         if test $ol_enable_dynacl = no ; then
44157                 ol_enable_dynacl=yes
44158                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44159 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44160         fi
44161         if test "$ol_enable_aci" = mod ; then
44162                 MFLAG=SLAPD_MOD_DYNAMIC
44163                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44164 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44165    { (exit 1); exit 1; }; }
44166         else
44167                 MFLAG=SLAPD_MOD_STATIC
44168         fi
44169         WITH_ACI_ENABLED=$ol_enable_aci
44170
44171 cat >>confdefs.h <<_ACEOF
44172 #define SLAPD_ACI_ENABLED $MFLAG
44173 _ACEOF
44174
44175 else
44176         WITH_ACI_ENABLED=no
44177 fi
44178 if test "$ol_enable_dynacl" != no ; then
44179
44180 cat >>confdefs.h <<\_ACEOF
44181 #define SLAP_DYNACL 1
44182 _ACEOF
44183
44184 fi
44185
44186 if test "$ol_link_modules" != no ; then
44187
44188 cat >>confdefs.h <<\_ACEOF
44189 #define SLAPD_MODULES 1
44190 _ACEOF
44191
44192         BUILD_SLAPD=yes
44193         SLAPD_MODULES_LDFLAGS="-dlopen self"
44194 fi
44195
44196
44197 cat >>confdefs.h <<\_ACEOF
44198 #define SLAPD_MOD_STATIC 1
44199 _ACEOF
44200
44201
44202 cat >>confdefs.h <<\_ACEOF
44203 #define SLAPD_MOD_DYNAMIC 2
44204 _ACEOF
44205
44206
44207 if test "$ol_enable_bdb" != no ; then
44208         BUILD_SLAPD=yes
44209         BUILD_BDB=$ol_enable_bdb
44210         if test "$ol_enable_bdb" = mod ; then
44211                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44212                 MFLAG=SLAPD_MOD_DYNAMIC
44213         else
44214                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44215                 MFLAG=SLAPD_MOD_STATIC
44216         fi
44217
44218 cat >>confdefs.h <<_ACEOF
44219 #define SLAPD_BDB $MFLAG
44220 _ACEOF
44221
44222 fi
44223
44224 if test "$ol_enable_dnssrv" != no ; then
44225         BUILD_SLAPD=yes
44226         BUILD_DNSSRV=$ol_enable_dnssrv
44227         if test "$ol_enable_dnssrv" = mod ; then
44228                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44229                 MFLAG=SLAPD_MOD_DYNAMIC
44230         else
44231                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44232                 MFLAG=SLAPD_MOD_STATIC
44233         fi
44234
44235 cat >>confdefs.h <<_ACEOF
44236 #define SLAPD_DNSSRV $MFLAG
44237 _ACEOF
44238
44239 fi
44240
44241 if test "$ol_enable_hdb" != no ; then
44242         BUILD_SLAPD=yes
44243         BUILD_HDB=$ol_enable_hdb
44244         if test "$ol_enable_hdb" = mod ; then
44245                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44246                 MFLAG=SLAPD_MOD_DYNAMIC
44247         else
44248                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44249                 MFLAG=SLAPD_MOD_STATIC
44250         fi
44251
44252 cat >>confdefs.h <<_ACEOF
44253 #define SLAPD_HDB $MFLAG
44254 _ACEOF
44255
44256 fi
44257
44258 if test "$ol_enable_ldap" != no ; then
44259         BUILD_SLAPD=yes
44260         BUILD_LDAP=$ol_enable_ldap
44261         if test "$ol_enable_ldap" = mod ; then
44262                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44263                 MFLAG=SLAPD_MOD_DYNAMIC
44264         else
44265                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44266                 MFLAG=SLAPD_MOD_STATIC
44267         fi
44268
44269 cat >>confdefs.h <<_ACEOF
44270 #define SLAPD_LDAP $MFLAG
44271 _ACEOF
44272
44273 fi
44274
44275 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44276         BUILD_SLAPD=yes
44277         BUILD_LDBM=$ol_enable_ldbm
44278         if test "$ol_enable_ldbm" = mod ; then
44279                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44280                 MFLAG=SLAPD_MOD_DYNAMIC
44281         else
44282                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44283                 MFLAG=SLAPD_MOD_STATIC
44284         fi
44285
44286 cat >>confdefs.h <<_ACEOF
44287 #define SLAPD_LDBM $MFLAG
44288 _ACEOF
44289
44290 fi
44291
44292 if test "$ol_enable_meta" != no ; then
44293         BUILD_SLAPD=yes
44294         BUILD_META=$ol_enable_meta
44295         BUILD_REWRITE=yes
44296         if test "$ol_enable_meta" = mod ; then
44297                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44298                 MFLAG=SLAPD_MOD_DYNAMIC
44299         else
44300                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44301                 MFLAG=SLAPD_MOD_STATIC
44302         fi
44303
44304 cat >>confdefs.h <<_ACEOF
44305 #define SLAPD_META $MFLAG
44306 _ACEOF
44307
44308 fi
44309
44310 if test "$ol_enable_monitor" != no ; then
44311         BUILD_SLAPD=yes
44312         BUILD_MONITOR=$ol_enable_monitor
44313         if test "$ol_enable_monitor" = mod ; then
44314                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44315                 MFLAG=SLAPD_MOD_DYNAMIC
44316         else
44317                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44318                 MFLAG=SLAPD_MOD_STATIC
44319         fi
44320
44321 cat >>confdefs.h <<_ACEOF
44322 #define SLAPD_MONITOR $MFLAG
44323 _ACEOF
44324
44325 fi
44326
44327 if test "$ol_enable_null" != no ; then
44328         BUILD_SLAPD=yes
44329         BUILD_NULL=$ol_enable_null
44330         if test "$ol_enable_null" = mod ; then
44331                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44332                 MFLAG=SLAPD_MOD_DYNAMIC
44333         else
44334                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44335                 MFLAG=SLAPD_MOD_STATIC
44336         fi
44337
44338 cat >>confdefs.h <<_ACEOF
44339 #define SLAPD_NULL $MFLAG
44340 _ACEOF
44341
44342 fi
44343
44344 if test "$ol_enable_passwd" != no ; then
44345         BUILD_SLAPD=yes
44346         BUILD_PASSWD=$ol_enable_passwd
44347         if test "$ol_enable_passwd" = mod ; then
44348                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44349                 MFLAG=SLAPD_MOD_DYNAMIC
44350         else
44351                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44352                 MFLAG=SLAPD_MOD_STATIC
44353         fi
44354
44355 cat >>confdefs.h <<_ACEOF
44356 #define SLAPD_PASSWD $MFLAG
44357 _ACEOF
44358
44359 fi
44360
44361 if test "$ol_link_perl" != no ; then
44362         BUILD_SLAPD=yes
44363         BUILD_PERL=$ol_enable_perl
44364         if test "$ol_enable_perl" = mod ; then
44365                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44366                 MFLAG=SLAPD_MOD_DYNAMIC
44367         else
44368                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44369                 MFLAG=SLAPD_MOD_STATIC
44370         fi
44371
44372 cat >>confdefs.h <<_ACEOF
44373 #define SLAPD_PERL $MFLAG
44374 _ACEOF
44375
44376 fi
44377
44378 if test "$ol_enable_relay" != no ; then
44379         BUILD_SLAPD=yes
44380         BUILD_RELAY=$ol_enable_relay
44381         if test "$ol_enable_relay" = mod ; then
44382                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44383                 MFLAG=SLAPD_MOD_DYNAMIC
44384         else
44385                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44386                 MFLAG=SLAPD_MOD_STATIC
44387         fi
44388
44389 cat >>confdefs.h <<_ACEOF
44390 #define SLAPD_RELAY $MFLAG
44391 _ACEOF
44392
44393 fi
44394
44395 if test "$ol_enable_shell" != no ; then
44396         if test "$ol_link_threads" != no ; then
44397                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44398 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44399         fi
44400         BUILD_SLAPD=yes
44401         BUILD_SHELL=$ol_enable_shell
44402         if test "$ol_enable_shell" = mod ; then
44403                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44404                 MFLAG=SLAPD_MOD_DYNAMIC
44405         else
44406                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44407                 MFLAG=SLAPD_MOD_STATIC
44408         fi
44409
44410 cat >>confdefs.h <<_ACEOF
44411 #define SLAPD_SHELL $MFLAG
44412 _ACEOF
44413
44414 fi
44415
44416 if test "$ol_link_sql" != no ; then
44417         BUILD_SLAPD=yes
44418         BUILD_SQL=$ol_enable_sql
44419         if test "$ol_enable_sql" = mod; then
44420                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44421                 MFLAG=SLAPD_MOD_DYNAMIC
44422         else
44423                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44424                 MFLAG=SLAPD_MOD_STATIC
44425         fi
44426
44427 cat >>confdefs.h <<_ACEOF
44428 #define SLAPD_SQL $MFLAG
44429 _ACEOF
44430
44431 fi
44432
44433 if test "$ol_enable_accesslog" != no ; then
44434         BUILD_ACCESSLOG=$ol_enable_accesslog
44435         if test "$ol_enable_accesslog" = mod ; then
44436                 MFLAG=SLAPD_MOD_DYNAMIC
44437                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44438         else
44439                 MFLAG=SLAPD_MOD_STATIC
44440                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44441         fi
44442
44443 cat >>confdefs.h <<_ACEOF
44444 #define SLAPD_OVER_ACCESSLOG $MFLAG
44445 _ACEOF
44446
44447 fi
44448
44449 if test "$ol_enable_denyop" != no ; then
44450         BUILD_DENYOP=$ol_enable_denyop
44451         if test "$ol_enable_denyop" = mod ; then
44452                 MFLAG=SLAPD_MOD_DYNAMIC
44453                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44454         else
44455                 MFLAG=SLAPD_MOD_STATIC
44456                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44457         fi
44458
44459 cat >>confdefs.h <<_ACEOF
44460 #define SLAPD_OVER_DENYOP $MFLAG
44461 _ACEOF
44462
44463 fi
44464
44465 if test "$ol_enable_dyngroup" != no ; then
44466         BUILD_DYNGROUP=$ol_enable_dyngroup
44467         if test "$ol_enable_dyngroup" = mod ; then
44468                 MFLAG=SLAPD_MOD_DYNAMIC
44469                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44470         else
44471                 MFLAG=SLAPD_MOD_STATIC
44472                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44473         fi
44474
44475 cat >>confdefs.h <<_ACEOF
44476 #define SLAPD_OVER_DYNGROUP $MFLAG
44477 _ACEOF
44478
44479 fi
44480
44481 if test "$ol_enable_dynlist" != no ; then
44482         BUILD_DYNLIST=$ol_enable_dynlist
44483         if test "$ol_enable_dynlist" = mod ; then
44484                 MFLAG=SLAPD_MOD_DYNAMIC
44485                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44486         else
44487                 MFLAG=SLAPD_MOD_STATIC
44488                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44489         fi
44490
44491 cat >>confdefs.h <<_ACEOF
44492 #define SLAPD_OVER_DYNLIST $MFLAG
44493 _ACEOF
44494
44495 fi
44496
44497 if test "$ol_enable_lastmod" != no ; then
44498         BUILD_LASTMOD=$ol_enable_lastmod
44499         if test "$ol_enable_lastmod" = mod ; then
44500                 MFLAG=SLAPD_MOD_DYNAMIC
44501                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44502         else
44503                 MFLAG=SLAPD_MOD_STATIC
44504                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44505         fi
44506
44507 cat >>confdefs.h <<_ACEOF
44508 #define SLAPD_OVER_LASTMOD $MFLAG
44509 _ACEOF
44510
44511 fi
44512
44513 if test "$ol_enable_ppolicy" != no ; then
44514         BUILD_PPOLICY=$ol_enable_ppolicy
44515         if test "$ol_enable_ppolicy" = mod ; then
44516                 MFLAG=SLAPD_MOD_DYNAMIC
44517                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44518         else
44519                 MFLAG=SLAPD_MOD_STATIC
44520                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44521         fi
44522
44523 cat >>confdefs.h <<_ACEOF
44524 #define SLAPD_OVER_PPOLICY $MFLAG
44525 _ACEOF
44526
44527 fi
44528
44529 if test "$ol_enable_proxycache" != no ; then
44530         BUILD_PROXYCACHE=$ol_enable_proxycache
44531         if test "$ol_enable_proxycache" = mod ; then
44532                 MFLAG=SLAPD_MOD_DYNAMIC
44533                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44534         else
44535                 MFLAG=SLAPD_MOD_STATIC
44536                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44537         fi
44538
44539 cat >>confdefs.h <<_ACEOF
44540 #define SLAPD_OVER_PROXYCACHE $MFLAG
44541 _ACEOF
44542
44543 fi
44544
44545 if test "$ol_enable_refint" != no ; then
44546         BUILD_REFINT=$ol_enable_refint
44547         if test "$ol_enable_refint" = mod ; then
44548                 MFLAG=SLAPD_MOD_DYNAMIC
44549                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44550         else
44551                 MFLAG=SLAPD_MOD_STATIC
44552                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44553         fi
44554
44555 cat >>confdefs.h <<_ACEOF
44556 #define SLAPD_OVER_REFINT $MFLAG
44557 _ACEOF
44558
44559 fi
44560
44561 if test "$ol_enable_retcode" != no ; then
44562         BUILD_RETCODE=$ol_enable_retcode
44563         if test "$ol_enable_retcode" = mod ; then
44564                 MFLAG=SLAPD_MOD_DYNAMIC
44565                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44566         else
44567                 MFLAG=SLAPD_MOD_STATIC
44568                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44569         fi
44570
44571 cat >>confdefs.h <<_ACEOF
44572 #define SLAPD_OVER_RETCODE $MFLAG
44573 _ACEOF
44574
44575 fi
44576
44577 if test "$ol_enable_rwm" != no ; then
44578         BUILD_REWRITE=yes
44579         BUILD_RWM=$ol_enable_rwm
44580         if test "$ol_enable_rwm" = mod ; then
44581                 MFLAG=SLAPD_MOD_DYNAMIC
44582                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44583         else
44584                 MFLAG=SLAPD_MOD_STATIC
44585                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44586         fi
44587
44588 cat >>confdefs.h <<_ACEOF
44589 #define SLAPD_OVER_RWM $MFLAG
44590 _ACEOF
44591
44592 fi
44593
44594 if test "$ol_enable_syncprov" != no ; then
44595         BUILD_SYNCPROV=$ol_enable_syncprov
44596         if test "$ol_enable_syncprov" = mod ; then
44597                 MFLAG=SLAPD_MOD_DYNAMIC
44598                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44599         else
44600                 MFLAG=SLAPD_MOD_STATIC
44601                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44602         fi
44603
44604 cat >>confdefs.h <<_ACEOF
44605 #define SLAPD_OVER_SYNCPROV $MFLAG
44606 _ACEOF
44607
44608 fi
44609
44610 if test "$ol_enable_translucent" != no ; then
44611         BUILD_TRANSLUCENT=$ol_enable_translucent
44612         if test "$ol_enable_translucent" = mod ; then
44613                 MFLAG=SLAPD_MOD_DYNAMIC
44614                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44615         else
44616                 MFLAG=SLAPD_MOD_STATIC
44617                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44618         fi
44619
44620 cat >>confdefs.h <<_ACEOF
44621 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44622 _ACEOF
44623
44624 fi
44625
44626 if test "$ol_enable_unique" != no ; then
44627         BUILD_UNIQUE=$ol_enable_unique
44628         if test "$ol_enable_unique" = mod ; then
44629                 MFLAG=SLAPD_MOD_DYNAMIC
44630                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44631         else
44632                 MFLAG=SLAPD_MOD_STATIC
44633                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44634         fi
44635
44636 cat >>confdefs.h <<_ACEOF
44637 #define SLAPD_OVER_UNIQUE $MFLAG
44638 _ACEOF
44639
44640 fi
44641
44642 if test "$ol_enable_valsort" != no ; then
44643         BUILD_VALSORT=$ol_enable_valsort
44644         if test "$ol_enable_valsort" = mod ; then
44645                 MFLAG=SLAPD_MOD_DYNAMIC
44646                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44647         else
44648                 MFLAG=SLAPD_MOD_STATIC
44649                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44650         fi
44651
44652 cat >>confdefs.h <<_ACEOF
44653 #define SLAPD_OVER_VALSORT $MFLAG
44654 _ACEOF
44655
44656 fi
44657
44658 if test "$ol_enable_slurpd" != no &&
44659    test "$ol_link_threads" != no &&
44660    test $BUILD_SLAPD = yes ; then
44661         BUILD_SLURPD=yes
44662 fi
44663
44664 if test "$ol_enable_rewrite" != no ; then
44665
44666 cat >>confdefs.h <<\_ACEOF
44667 #define ENABLE_REWRITE 1
44668 _ACEOF
44669
44670         BUILD_REWRITE=yes
44671 fi
44672
44673 if test "$ol_enable_slapi" != no ; then
44674
44675 cat >>confdefs.h <<\_ACEOF
44676 #define ENABLE_SLAPI 1
44677 _ACEOF
44678
44679         BUILD_SLAPI=yes
44680         SLAPD_SLAPI_DEPEND=libslapi.a
44681 fi
44682
44683
44684
44685 if test "$ac_cv_mingw32" = yes ; then
44686         PLAT=NT
44687         SLAPD_MODULES_LDFLAGS=
44688 else
44689         PLAT=UNIX
44690 fi
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731
44732
44733
44734
44735
44736
44737
44738
44739
44740
44741
44742
44743
44744
44745
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765
44766
44767
44768
44769
44770
44771
44772
44773 # Check whether --with-xxinstall or --without-xxinstall was given.
44774 if test "${with_xxinstall+set}" = set; then
44775   withval="$with_xxinstall"
44776
44777 fi;
44778
44779
44780                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44781
44782
44783           ac_config_commands="$ac_config_commands default"
44784
44785
44786
44787 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44788 # Let make expand exec_prefix.
44789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44790
44791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44793 # trailing colons and then remove the whole line if VPATH becomes empty
44794 # (actually we leave an empty line to preserve line numbers).
44795 if test "x$srcdir" = x.; then
44796   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44797 s/:*\$(srcdir):*/:/;
44798 s/:*\${srcdir}:*/:/;
44799 s/:*@srcdir@:*/:/;
44800 s/^\([^=]*=[     ]*\):*/\1/;
44801 s/:*$//;
44802 s/^[^=]*=[       ]*$//;
44803 }'
44804 fi
44805
44806 DEFS=-DHAVE_CONFIG_H
44807
44808 ac_libobjs=
44809 ac_ltlibobjs=
44810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44811   # 1. Remove the extension, and $U if already installed.
44812   ac_i=`echo "$ac_i" |
44813          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44814   # 2. Add them.
44815   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44816   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44817 done
44818 LIBOBJS=$ac_libobjs
44819
44820 LTLIBOBJS=$ac_ltlibobjs
44821
44822
44823 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44824   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44825 Usually this means the macro was only invoked conditionally." >&5
44826 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44827 Usually this means the macro was only invoked conditionally." >&2;}
44828    { (exit 1); exit 1; }; }
44829 fi
44830 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44831   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44832 Usually this means the macro was only invoked conditionally." >&5
44833 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44834 Usually this means the macro was only invoked conditionally." >&2;}
44835    { (exit 1); exit 1; }; }
44836 fi
44837 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44838   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44839 Usually this means the macro was only invoked conditionally." >&5
44840 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44841 Usually this means the macro was only invoked conditionally." >&2;}
44842    { (exit 1); exit 1; }; }
44843 fi
44844
44845 : ${CONFIG_STATUS=./config.status}
44846 ac_clean_files_save=$ac_clean_files
44847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44848 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44850 cat >$CONFIG_STATUS <<_ACEOF
44851 #! $SHELL
44852 # Generated by $as_me.
44853 # Run this file to recreate the current configuration.
44854 # Compiler output produced by configure, useful for debugging
44855 # configure, is in config.log if it exists.
44856
44857 debug=false
44858 ac_cs_recheck=false
44859 ac_cs_silent=false
44860 SHELL=\${CONFIG_SHELL-$SHELL}
44861 _ACEOF
44862
44863 cat >>$CONFIG_STATUS <<\_ACEOF
44864 ## --------------------- ##
44865 ## M4sh Initialization.  ##
44866 ## --------------------- ##
44867
44868 # Be Bourne compatible
44869 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44870   emulate sh
44871   NULLCMD=:
44872   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44873   # is contrary to our usage.  Disable this feature.
44874   alias -g '${1+"$@"}'='"$@"'
44875 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44876   set -o posix
44877 fi
44878 DUALCASE=1; export DUALCASE # for MKS sh
44879
44880 # Support unset when possible.
44881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44882   as_unset=unset
44883 else
44884   as_unset=false
44885 fi
44886
44887
44888 # Work around bugs in pre-3.0 UWIN ksh.
44889 $as_unset ENV MAIL MAILPATH
44890 PS1='$ '
44891 PS2='> '
44892 PS4='+ '
44893
44894 # NLS nuisances.
44895 for as_var in \
44896   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44897   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44898   LC_TELEPHONE LC_TIME
44899 do
44900   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44901     eval $as_var=C; export $as_var
44902   else
44903     $as_unset $as_var
44904   fi
44905 done
44906
44907 # Required to use basename.
44908 if expr a : '\(a\)' >/dev/null 2>&1; then
44909   as_expr=expr
44910 else
44911   as_expr=false
44912 fi
44913
44914 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44915   as_basename=basename
44916 else
44917   as_basename=false
44918 fi
44919
44920
44921 # Name of the executable.
44922 as_me=`$as_basename "$0" ||
44923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44924          X"$0" : 'X\(//\)$' \| \
44925          X"$0" : 'X\(/\)$' \| \
44926          .     : '\(.\)' 2>/dev/null ||
44927 echo X/"$0" |
44928     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44929           /^X\/\(\/\/\)$/{ s//\1/; q; }
44930           /^X\/\(\/\).*/{ s//\1/; q; }
44931           s/.*/./; q'`
44932
44933
44934 # PATH needs CR, and LINENO needs CR and PATH.
44935 # Avoid depending upon Character Ranges.
44936 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44937 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44938 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44939 as_cr_digits='0123456789'
44940 as_cr_alnum=$as_cr_Letters$as_cr_digits
44941
44942 # The user is always right.
44943 if test "${PATH_SEPARATOR+set}" != set; then
44944   echo "#! /bin/sh" >conf$$.sh
44945   echo  "exit 0"   >>conf$$.sh
44946   chmod +x conf$$.sh
44947   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44948     PATH_SEPARATOR=';'
44949   else
44950     PATH_SEPARATOR=:
44951   fi
44952   rm -f conf$$.sh
44953 fi
44954
44955
44956   as_lineno_1=$LINENO
44957   as_lineno_2=$LINENO
44958   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44959   test "x$as_lineno_1" != "x$as_lineno_2" &&
44960   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
44961   # Find who we are.  Look in the path if we contain no path at all
44962   # relative or not.
44963   case $0 in
44964     *[\\/]* ) as_myself=$0 ;;
44965     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44966 for as_dir in $PATH
44967 do
44968   IFS=$as_save_IFS
44969   test -z "$as_dir" && as_dir=.
44970   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44971 done
44972
44973        ;;
44974   esac
44975   # We did not find ourselves, most probably we were run as `sh COMMAND'
44976   # in which case we are not to be found in the path.
44977   if test "x$as_myself" = x; then
44978     as_myself=$0
44979   fi
44980   if test ! -f "$as_myself"; then
44981     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44982 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44983    { (exit 1); exit 1; }; }
44984   fi
44985   case $CONFIG_SHELL in
44986   '')
44987     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44988 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44989 do
44990   IFS=$as_save_IFS
44991   test -z "$as_dir" && as_dir=.
44992   for as_base in sh bash ksh sh5; do
44993          case $as_dir in
44994          /*)
44995            if ("$as_dir/$as_base" -c '
44996   as_lineno_1=$LINENO
44997   as_lineno_2=$LINENO
44998   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44999   test "x$as_lineno_1" != "x$as_lineno_2" &&
45000   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45001              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45002              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45003              CONFIG_SHELL=$as_dir/$as_base
45004              export CONFIG_SHELL
45005              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45006            fi;;
45007          esac
45008        done
45009 done
45010 ;;
45011   esac
45012
45013   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45014   # uniformly replaced by the line number.  The first 'sed' inserts a
45015   # line-number line before each line; the second 'sed' does the real
45016   # work.  The second script uses 'N' to pair each line-number line
45017   # with the numbered line, and appends trailing '-' during
45018   # substitution so that $LINENO is not a special case at line end.
45019   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45020   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45021   sed '=' <$as_myself |
45022     sed '
45023       N
45024       s,$,-,
45025       : loop
45026       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45027       t loop
45028       s,-$,,
45029       s,^['$as_cr_digits']*\n,,
45030     ' >$as_me.lineno &&
45031   chmod +x $as_me.lineno ||
45032     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45033 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45034    { (exit 1); exit 1; }; }
45035
45036   # Don't try to exec as it changes $[0], causing all sort of problems
45037   # (the dirname of $[0] is not the place where we might find the
45038   # original and so on.  Autoconf is especially sensible to this).
45039   . ./$as_me.lineno
45040   # Exit status is that of the last command.
45041   exit
45042 }
45043
45044
45045 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45046   *c*,-n*) ECHO_N= ECHO_C='
45047 ' ECHO_T='      ' ;;
45048   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45049   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45050 esac
45051
45052 if expr a : '\(a\)' >/dev/null 2>&1; then
45053   as_expr=expr
45054 else
45055   as_expr=false
45056 fi
45057
45058 rm -f conf$$ conf$$.exe conf$$.file
45059 echo >conf$$.file
45060 if ln -s conf$$.file conf$$ 2>/dev/null; then
45061   # We could just check for DJGPP; but this test a) works b) is more generic
45062   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45063   if test -f conf$$.exe; then
45064     # Don't use ln at all; we don't have any links
45065     as_ln_s='cp -p'
45066   else
45067     as_ln_s='ln -s'
45068   fi
45069 elif ln conf$$.file conf$$ 2>/dev/null; then
45070   as_ln_s=ln
45071 else
45072   as_ln_s='cp -p'
45073 fi
45074 rm -f conf$$ conf$$.exe conf$$.file
45075
45076 if mkdir -p . 2>/dev/null; then
45077   as_mkdir_p=:
45078 else
45079   test -d ./-p && rmdir ./-p
45080   as_mkdir_p=false
45081 fi
45082
45083 as_executable_p="test -f"
45084
45085 # Sed expression to map a string onto a valid CPP name.
45086 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45087
45088 # Sed expression to map a string onto a valid variable name.
45089 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45090
45091
45092 # IFS
45093 # We need space, tab and new line, in precisely that order.
45094 as_nl='
45095 '
45096 IFS="   $as_nl"
45097
45098 # CDPATH.
45099 $as_unset CDPATH
45100
45101 exec 6>&1
45102
45103 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45104 # report actual input values of CONFIG_FILES etc. instead of their
45105 # values after options handling.  Logging --version etc. is OK.
45106 exec 5>>config.log
45107 {
45108   echo
45109   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45110 ## Running $as_me. ##
45111 _ASBOX
45112 } >&5
45113 cat >&5 <<_CSEOF
45114
45115 This file was extended by $as_me, which was
45116 generated by GNU Autoconf 2.59.  Invocation command line was
45117
45118   CONFIG_FILES    = $CONFIG_FILES
45119   CONFIG_HEADERS  = $CONFIG_HEADERS
45120   CONFIG_LINKS    = $CONFIG_LINKS
45121   CONFIG_COMMANDS = $CONFIG_COMMANDS
45122   $ $0 $@
45123
45124 _CSEOF
45125 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45126 echo >&5
45127 _ACEOF
45128
45129 # Files that config.status was made for.
45130 if test -n "$ac_config_files"; then
45131   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45132 fi
45133
45134 if test -n "$ac_config_headers"; then
45135   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45136 fi
45137
45138 if test -n "$ac_config_links"; then
45139   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45140 fi
45141
45142 if test -n "$ac_config_commands"; then
45143   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45144 fi
45145
45146 cat >>$CONFIG_STATUS <<\_ACEOF
45147
45148 ac_cs_usage="\
45149 \`$as_me' instantiates files from templates according to the
45150 current configuration.
45151
45152 Usage: $0 [OPTIONS] [FILE]...
45153
45154   -h, --help       print this help, then exit
45155   -V, --version    print version number, then exit
45156   -q, --quiet      do not print progress messages
45157   -d, --debug      don't remove temporary files
45158       --recheck    update $as_me by reconfiguring in the same conditions
45159   --file=FILE[:TEMPLATE]
45160                    instantiate the configuration file FILE
45161   --header=FILE[:TEMPLATE]
45162                    instantiate the configuration header FILE
45163
45164 Configuration files:
45165 $config_files
45166
45167 Configuration headers:
45168 $config_headers
45169
45170 Configuration commands:
45171 $config_commands
45172
45173 Report bugs to <bug-autoconf@gnu.org>."
45174 _ACEOF
45175
45176 cat >>$CONFIG_STATUS <<_ACEOF
45177 ac_cs_version="\\
45178 config.status
45179 configured by $0, generated by GNU Autoconf 2.59,
45180   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45181
45182 Copyright (C) 2003 Free Software Foundation, Inc.
45183 This config.status script is free software; the Free Software Foundation
45184 gives unlimited permission to copy, distribute and modify it."
45185 srcdir=$srcdir
45186 INSTALL="$INSTALL"
45187 _ACEOF
45188
45189 cat >>$CONFIG_STATUS <<\_ACEOF
45190 # If no file are specified by the user, then we need to provide default
45191 # value.  By we need to know if files were specified by the user.
45192 ac_need_defaults=:
45193 while test $# != 0
45194 do
45195   case $1 in
45196   --*=*)
45197     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45198     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45199     ac_shift=:
45200     ;;
45201   -*)
45202     ac_option=$1
45203     ac_optarg=$2
45204     ac_shift=shift
45205     ;;
45206   *) # This is not an option, so the user has probably given explicit
45207      # arguments.
45208      ac_option=$1
45209      ac_need_defaults=false;;
45210   esac
45211
45212   case $ac_option in
45213   # Handling of the options.
45214 _ACEOF
45215 cat >>$CONFIG_STATUS <<\_ACEOF
45216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45217     ac_cs_recheck=: ;;
45218   --version | --vers* | -V )
45219     echo "$ac_cs_version"; exit 0 ;;
45220   --he | --h)
45221     # Conflict between --help and --header
45222     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45223 Try \`$0 --help' for more information." >&5
45224 echo "$as_me: error: ambiguous option: $1
45225 Try \`$0 --help' for more information." >&2;}
45226    { (exit 1); exit 1; }; };;
45227   --help | --hel | -h )
45228     echo "$ac_cs_usage"; exit 0 ;;
45229   --debug | --d* | -d )
45230     debug=: ;;
45231   --file | --fil | --fi | --f )
45232     $ac_shift
45233     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45234     ac_need_defaults=false;;
45235   --header | --heade | --head | --hea )
45236     $ac_shift
45237     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45238     ac_need_defaults=false;;
45239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45240   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45241     ac_cs_silent=: ;;
45242
45243   # This is an error.
45244   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45245 Try \`$0 --help' for more information." >&5
45246 echo "$as_me: error: unrecognized option: $1
45247 Try \`$0 --help' for more information." >&2;}
45248    { (exit 1); exit 1; }; } ;;
45249
45250   *) ac_config_targets="$ac_config_targets $1" ;;
45251
45252   esac
45253   shift
45254 done
45255
45256 ac_configure_extra_args=
45257
45258 if $ac_cs_silent; then
45259   exec 6>/dev/null
45260   ac_configure_extra_args="$ac_configure_extra_args --silent"
45261 fi
45262
45263 _ACEOF
45264 cat >>$CONFIG_STATUS <<_ACEOF
45265 if \$ac_cs_recheck; then
45266   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45267   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45268 fi
45269
45270 _ACEOF
45271
45272 cat >>$CONFIG_STATUS <<_ACEOF
45273 #
45274 # INIT-COMMANDS section.
45275 #
45276
45277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45278
45279 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45280 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45281
45282
45283 _ACEOF
45284
45285
45286
45287 cat >>$CONFIG_STATUS <<\_ACEOF
45288 for ac_config_target in $ac_config_targets
45289 do
45290   case "$ac_config_target" in
45291   # Handling of arguments.
45292   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45293   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45294   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45295   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45296   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45297   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45298   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45299   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45300   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45301   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45302   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45303   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45304   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45305   "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" ;;
45306   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45307   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45308   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45309   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45310   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45311   "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" ;;
45312   "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" ;;
45313   "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" ;;
45314   "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" ;;
45315   "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" ;;
45316   "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" ;;
45317   "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" ;;
45318   "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" ;;
45319   "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" ;;
45320   "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" ;;
45321   "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" ;;
45322   "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" ;;
45323   "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" ;;
45324   "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" ;;
45325   "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" ;;
45326   "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" ;;
45327   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45328   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45329   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45330   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45331   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45332   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45333   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45334   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45335   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45336   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45337   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45338 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45339    { (exit 1); exit 1; }; };;
45340   esac
45341 done
45342
45343 # If the user did not use the arguments to specify the items to instantiate,
45344 # then the envvar interface is used.  Set only those that are not.
45345 # We use the long form for the default assignment because of an extremely
45346 # bizarre bug on SunOS 4.1.3.
45347 if $ac_need_defaults; then
45348   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45349   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45350   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45351 fi
45352
45353 # Have a temporary directory for convenience.  Make it in the build tree
45354 # simply because there is no reason to put it here, and in addition,
45355 # creating and moving files from /tmp can sometimes cause problems.
45356 # Create a temporary directory, and hook for its removal unless debugging.
45357 $debug ||
45358 {
45359   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45360   trap '{ (exit 1); exit 1; }' 1 2 13 15
45361 }
45362
45363 # Create a (secure) tmp directory for tmp files.
45364
45365 {
45366   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45367   test -n "$tmp" && test -d "$tmp"
45368 }  ||
45369 {
45370   tmp=./confstat$$-$RANDOM
45371   (umask 077 && mkdir $tmp)
45372 } ||
45373 {
45374    echo "$me: cannot create a temporary directory in ." >&2
45375    { (exit 1); exit 1; }
45376 }
45377
45378 _ACEOF
45379
45380 cat >>$CONFIG_STATUS <<_ACEOF
45381
45382 #
45383 # CONFIG_FILES section.
45384 #
45385
45386 # No need to generate the scripts if there are no CONFIG_FILES.
45387 # This happens for instance when ./config.status config.h
45388 if test -n "\$CONFIG_FILES"; then
45389   # Protect against being on the right side of a sed subst in config.status.
45390   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45391    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45392 s,@SHELL@,$SHELL,;t t
45393 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45394 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45395 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45396 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45397 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45398 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45399 s,@exec_prefix@,$exec_prefix,;t t
45400 s,@prefix@,$prefix,;t t
45401 s,@program_transform_name@,$program_transform_name,;t t
45402 s,@bindir@,$bindir,;t t
45403 s,@sbindir@,$sbindir,;t t
45404 s,@libexecdir@,$libexecdir,;t t
45405 s,@datadir@,$datadir,;t t
45406 s,@sysconfdir@,$sysconfdir,;t t
45407 s,@sharedstatedir@,$sharedstatedir,;t t
45408 s,@localstatedir@,$localstatedir,;t t
45409 s,@libdir@,$libdir,;t t
45410 s,@includedir@,$includedir,;t t
45411 s,@oldincludedir@,$oldincludedir,;t t
45412 s,@infodir@,$infodir,;t t
45413 s,@mandir@,$mandir,;t t
45414 s,@build_alias@,$build_alias,;t t
45415 s,@host_alias@,$host_alias,;t t
45416 s,@target_alias@,$target_alias,;t t
45417 s,@DEFS@,$DEFS,;t t
45418 s,@ECHO_C@,$ECHO_C,;t t
45419 s,@ECHO_N@,$ECHO_N,;t t
45420 s,@ECHO_T@,$ECHO_T,;t t
45421 s,@LIBS@,$LIBS,;t t
45422 s,@build@,$build,;t t
45423 s,@build_cpu@,$build_cpu,;t t
45424 s,@build_vendor@,$build_vendor,;t t
45425 s,@build_os@,$build_os,;t t
45426 s,@host@,$host,;t t
45427 s,@host_cpu@,$host_cpu,;t t
45428 s,@host_vendor@,$host_vendor,;t t
45429 s,@host_os@,$host_os,;t t
45430 s,@target@,$target,;t t
45431 s,@target_cpu@,$target_cpu,;t t
45432 s,@target_vendor@,$target_vendor,;t t
45433 s,@target_os@,$target_os,;t t
45434 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45435 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45436 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45437 s,@CYGPATH_W@,$CYGPATH_W,;t t
45438 s,@PACKAGE@,$PACKAGE,;t t
45439 s,@VERSION@,$VERSION,;t t
45440 s,@ACLOCAL@,$ACLOCAL,;t t
45441 s,@AUTOCONF@,$AUTOCONF,;t t
45442 s,@AUTOMAKE@,$AUTOMAKE,;t t
45443 s,@AUTOHEADER@,$AUTOHEADER,;t t
45444 s,@MAKEINFO@,$MAKEINFO,;t t
45445 s,@install_sh@,$install_sh,;t t
45446 s,@STRIP@,$STRIP,;t t
45447 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45448 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45449 s,@mkdir_p@,$mkdir_p,;t t
45450 s,@AWK@,$AWK,;t t
45451 s,@SET_MAKE@,$SET_MAKE,;t t
45452 s,@am__leading_dot@,$am__leading_dot,;t t
45453 s,@AMTAR@,$AMTAR,;t t
45454 s,@am__tar@,$am__tar,;t t
45455 s,@am__untar@,$am__untar,;t t
45456 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45457 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45458 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45459 s,@top_builddir@,$top_builddir,;t t
45460 s,@ldap_subdir@,$ldap_subdir,;t t
45461 s,@CC@,$CC,;t t
45462 s,@AR@,$AR,;t t
45463 s,@CFLAGS@,$CFLAGS,;t t
45464 s,@LDFLAGS@,$LDFLAGS,;t t
45465 s,@CPPFLAGS@,$CPPFLAGS,;t t
45466 s,@ac_ct_CC@,$ac_ct_CC,;t t
45467 s,@EXEEXT@,$EXEEXT,;t t
45468 s,@OBJEXT@,$OBJEXT,;t t
45469 s,@DEPDIR@,$DEPDIR,;t t
45470 s,@am__include@,$am__include,;t t
45471 s,@am__quote@,$am__quote,;t t
45472 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45473 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45474 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45475 s,@CCDEPMODE@,$CCDEPMODE,;t t
45476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45478 s,@EGREP@,$EGREP,;t t
45479 s,@LN_S@,$LN_S,;t t
45480 s,@ECHO@,$ECHO,;t t
45481 s,@ac_ct_AR@,$ac_ct_AR,;t t
45482 s,@RANLIB@,$RANLIB,;t t
45483 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45484 s,@DLLTOOL@,$DLLTOOL,;t t
45485 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45486 s,@AS@,$AS,;t t
45487 s,@ac_ct_AS@,$ac_ct_AS,;t t
45488 s,@OBJDUMP@,$OBJDUMP,;t t
45489 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45490 s,@CPP@,$CPP,;t t
45491 s,@LIBTOOL@,$LIBTOOL,;t t
45492 s,@PERLBIN@,$PERLBIN,;t t
45493 s,@OL_MKDEP@,$OL_MKDEP,;t t
45494 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45495 s,@LTSTATIC@,$LTSTATIC,;t t
45496 s,@LIBOBJS@,$LIBOBJS,;t t
45497 s,@LIBSRCS@,$LIBSRCS,;t t
45498 s,@PLAT@,$PLAT,;t t
45499 s,@WITH_SASL@,$WITH_SASL,;t t
45500 s,@WITH_TLS@,$WITH_TLS,;t t
45501 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45502 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45503 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45504 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45505 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45506 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45507 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45508 s,@BUILD_BDB@,$BUILD_BDB,;t t
45509 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45510 s,@BUILD_HDB@,$BUILD_HDB,;t t
45511 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45512 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45513 s,@BUILD_META@,$BUILD_META,;t t
45514 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45515 s,@BUILD_NULL@,$BUILD_NULL,;t t
45516 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45517 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45518 s,@BUILD_PERL@,$BUILD_PERL,;t t
45519 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45520 s,@BUILD_SQL@,$BUILD_SQL,;t t
45521 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45522 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45523 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45524 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45525 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45526 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45527 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45528 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45529 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45530 s,@BUILD_RWM@,$BUILD_RWM,;t t
45531 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45532 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45533 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45534 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45535 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45536 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45537 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45538 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45539 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45540 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45541 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45542 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45543 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45544 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45545 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45546 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45547 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45548 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45549 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45550 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45551 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45552 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45553 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45554 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45555 s,@SASL_LIBS@,$SASL_LIBS,;t t
45556 s,@TLS_LIBS@,$TLS_LIBS,;t t
45557 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45558 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45559 s,@LIBSLAPI@,$LIBSLAPI,;t t
45560 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45561 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45562 s,@ICU_LIBS@,$ICU_LIBS,;t t
45563 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45564 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45565 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45566 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45567 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45568 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45569 CEOF
45570
45571 _ACEOF
45572
45573   cat >>$CONFIG_STATUS <<\_ACEOF
45574   # Split the substitutions into bite-sized pieces for seds with
45575   # small command number limits, like on Digital OSF/1 and HP-UX.
45576   ac_max_sed_lines=48
45577   ac_sed_frag=1 # Number of current file.
45578   ac_beg=1 # First line for current file.
45579   ac_end=$ac_max_sed_lines # Line after last line for current file.
45580   ac_more_lines=:
45581   ac_sed_cmds=
45582   while $ac_more_lines; do
45583     if test $ac_beg -gt 1; then
45584       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45585     else
45586       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45587     fi
45588     if test ! -s $tmp/subs.frag; then
45589       ac_more_lines=false
45590     else
45591       # The purpose of the label and of the branching condition is to
45592       # speed up the sed processing (if there are no `@' at all, there
45593       # is no need to browse any of the substitutions).
45594       # These are the two extra sed commands mentioned above.
45595       (echo ':t
45596   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45597       if test -z "$ac_sed_cmds"; then
45598         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45599       else
45600         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45601       fi
45602       ac_sed_frag=`expr $ac_sed_frag + 1`
45603       ac_beg=$ac_end
45604       ac_end=`expr $ac_end + $ac_max_sed_lines`
45605     fi
45606   done
45607   if test -z "$ac_sed_cmds"; then
45608     ac_sed_cmds=cat
45609   fi
45610 fi # test -n "$CONFIG_FILES"
45611
45612 _ACEOF
45613 cat >>$CONFIG_STATUS <<\_ACEOF
45614 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45615   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45616   case $ac_file in
45617   - | *:- | *:-:* ) # input from stdin
45618         cat >$tmp/stdin
45619         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45620         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45621   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45622         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45623   * )   ac_file_in=$ac_file.in ;;
45624   esac
45625
45626   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45627   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45629          X"$ac_file" : 'X\(//\)[^/]' \| \
45630          X"$ac_file" : 'X\(//\)$' \| \
45631          X"$ac_file" : 'X\(/\)' \| \
45632          .     : '\(.\)' 2>/dev/null ||
45633 echo X"$ac_file" |
45634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45636           /^X\(\/\/\)$/{ s//\1/; q; }
45637           /^X\(\/\).*/{ s//\1/; q; }
45638           s/.*/./; q'`
45639   { if $as_mkdir_p; then
45640     mkdir -p "$ac_dir"
45641   else
45642     as_dir="$ac_dir"
45643     as_dirs=
45644     while test ! -d "$as_dir"; do
45645       as_dirs="$as_dir $as_dirs"
45646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45648          X"$as_dir" : 'X\(//\)[^/]' \| \
45649          X"$as_dir" : 'X\(//\)$' \| \
45650          X"$as_dir" : 'X\(/\)' \| \
45651          .     : '\(.\)' 2>/dev/null ||
45652 echo X"$as_dir" |
45653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45655           /^X\(\/\/\)$/{ s//\1/; q; }
45656           /^X\(\/\).*/{ s//\1/; q; }
45657           s/.*/./; q'`
45658     done
45659     test ! -n "$as_dirs" || mkdir $as_dirs
45660   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45661 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45662    { (exit 1); exit 1; }; }; }
45663
45664   ac_builddir=.
45665
45666 if test "$ac_dir" != .; then
45667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45668   # A "../" for each directory in $ac_dir_suffix.
45669   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45670 else
45671   ac_dir_suffix= ac_top_builddir=
45672 fi
45673
45674 case $srcdir in
45675   .)  # No --srcdir option.  We are building in place.
45676     ac_srcdir=.
45677     if test -z "$ac_top_builddir"; then
45678        ac_top_srcdir=.
45679     else
45680        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45681     fi ;;
45682   [\\/]* | ?:[\\/]* )  # Absolute path.
45683     ac_srcdir=$srcdir$ac_dir_suffix;
45684     ac_top_srcdir=$srcdir ;;
45685   *) # Relative path.
45686     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45687     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45688 esac
45689
45690 # Do not use `cd foo && pwd` to compute absolute paths, because
45691 # the directories may not exist.
45692 case `pwd` in
45693 .) ac_abs_builddir="$ac_dir";;
45694 *)
45695   case "$ac_dir" in
45696   .) ac_abs_builddir=`pwd`;;
45697   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45698   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45699   esac;;
45700 esac
45701 case $ac_abs_builddir in
45702 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45703 *)
45704   case ${ac_top_builddir}. in
45705   .) ac_abs_top_builddir=$ac_abs_builddir;;
45706   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45707   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45708   esac;;
45709 esac
45710 case $ac_abs_builddir in
45711 .) ac_abs_srcdir=$ac_srcdir;;
45712 *)
45713   case $ac_srcdir in
45714   .) ac_abs_srcdir=$ac_abs_builddir;;
45715   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45716   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45717   esac;;
45718 esac
45719 case $ac_abs_builddir in
45720 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45721 *)
45722   case $ac_top_srcdir in
45723   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45724   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45725   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45726   esac;;
45727 esac
45728
45729
45730   case $INSTALL in
45731   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45732   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45733   esac
45734
45735   if test x"$ac_file" != x-; then
45736     { echo "$as_me:$LINENO: creating $ac_file" >&5
45737 echo "$as_me: creating $ac_file" >&6;}
45738     rm -f "$ac_file"
45739   fi
45740   # Let's still pretend it is `configure' which instantiates (i.e., don't
45741   # use $as_me), people would be surprised to read:
45742   #    /* config.h.  Generated by config.status.  */
45743   if test x"$ac_file" = x-; then
45744     configure_input=
45745   else
45746     configure_input="$ac_file.  "
45747   fi
45748   configure_input=$configure_input"Generated from `echo $ac_file_in |
45749                                      sed 's,.*/,,'` by configure."
45750
45751   # First look for the input files in the build tree, otherwise in the
45752   # src tree.
45753   ac_file_inputs=`IFS=:
45754     for f in $ac_file_in; do
45755       case $f in
45756       -) echo $tmp/stdin ;;
45757       [\\/$]*)
45758          # Absolute (can't be DOS-style, as IFS=:)
45759          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45760 echo "$as_me: error: cannot find input file: $f" >&2;}
45761    { (exit 1); exit 1; }; }
45762          echo "$f";;
45763       *) # Relative
45764          if test -f "$f"; then
45765            # Build tree
45766            echo "$f"
45767          elif test -f "$srcdir/$f"; then
45768            # Source tree
45769            echo "$srcdir/$f"
45770          else
45771            # /dev/null tree
45772            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45773 echo "$as_me: error: cannot find input file: $f" >&2;}
45774    { (exit 1); exit 1; }; }
45775          fi;;
45776       esac
45777     done` || { (exit 1); exit 1; }
45778 _ACEOF
45779 cat >>$CONFIG_STATUS <<_ACEOF
45780   sed "$ac_vpsub
45781 $extrasub
45782 _ACEOF
45783 cat >>$CONFIG_STATUS <<\_ACEOF
45784 :t
45785 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45786 s,@configure_input@,$configure_input,;t t
45787 s,@srcdir@,$ac_srcdir,;t t
45788 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45789 s,@top_srcdir@,$ac_top_srcdir,;t t
45790 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45791 s,@builddir@,$ac_builddir,;t t
45792 s,@abs_builddir@,$ac_abs_builddir,;t t
45793 s,@top_builddir@,$ac_top_builddir,;t t
45794 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45795 s,@INSTALL@,$ac_INSTALL,;t t
45796 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45797   rm -f $tmp/stdin
45798   if test x"$ac_file" != x-; then
45799     mv $tmp/out $ac_file
45800   else
45801     cat $tmp/out
45802     rm -f $tmp/out
45803   fi
45804
45805 done
45806 _ACEOF
45807 cat >>$CONFIG_STATUS <<\_ACEOF
45808
45809 #
45810 # CONFIG_HEADER section.
45811 #
45812
45813 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45814 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45815 #
45816 # ac_d sets the value in "#define NAME VALUE" lines.
45817 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45818 ac_dB='[         ].*$,\1#\2'
45819 ac_dC=' '
45820 ac_dD=',;t'
45821 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45822 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45823 ac_uB='$,\1#\2define\3'
45824 ac_uC=' '
45825 ac_uD=',;t'
45826
45827 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45828   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45829   case $ac_file in
45830   - | *:- | *:-:* ) # input from stdin
45831         cat >$tmp/stdin
45832         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45833         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45834   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45835         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45836   * )   ac_file_in=$ac_file.in ;;
45837   esac
45838
45839   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45840 echo "$as_me: creating $ac_file" >&6;}
45841
45842   # First look for the input files in the build tree, otherwise in the
45843   # src tree.
45844   ac_file_inputs=`IFS=:
45845     for f in $ac_file_in; do
45846       case $f in
45847       -) echo $tmp/stdin ;;
45848       [\\/$]*)
45849          # Absolute (can't be DOS-style, as IFS=:)
45850          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45851 echo "$as_me: error: cannot find input file: $f" >&2;}
45852    { (exit 1); exit 1; }; }
45853          # Do quote $f, to prevent DOS paths from being IFS'd.
45854          echo "$f";;
45855       *) # Relative
45856          if test -f "$f"; then
45857            # Build tree
45858            echo "$f"
45859          elif test -f "$srcdir/$f"; then
45860            # Source tree
45861            echo "$srcdir/$f"
45862          else
45863            # /dev/null tree
45864            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45865 echo "$as_me: error: cannot find input file: $f" >&2;}
45866    { (exit 1); exit 1; }; }
45867          fi;;
45868       esac
45869     done` || { (exit 1); exit 1; }
45870   # Remove the trailing spaces.
45871   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45872
45873 _ACEOF
45874
45875 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45876 # `conftest.undefs', that substitutes the proper values into
45877 # config.h.in to produce config.h.  The first handles `#define'
45878 # templates, and the second `#undef' templates.
45879 # And first: Protect against being on the right side of a sed subst in
45880 # config.status.  Protect against being in an unquoted here document
45881 # in config.status.
45882 rm -f conftest.defines conftest.undefs
45883 # Using a here document instead of a string reduces the quoting nightmare.
45884 # Putting comments in sed scripts is not portable.
45885 #
45886 # `end' is used to avoid that the second main sed command (meant for
45887 # 0-ary CPP macros) applies to n-ary macro definitions.
45888 # See the Autoconf documentation for `clear'.
45889 cat >confdef2sed.sed <<\_ACEOF
45890 s/[\\&,]/\\&/g
45891 s,[\\$`],\\&,g
45892 t clear
45893 : clear
45894 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45895 t end
45896 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45897 : end
45898 _ACEOF
45899 # If some macros were called several times there might be several times
45900 # the same #defines, which is useless.  Nevertheless, we may not want to
45901 # sort them, since we want the *last* AC-DEFINE to be honored.
45902 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45903 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45904 rm -f confdef2sed.sed
45905
45906 # This sed command replaces #undef with comments.  This is necessary, for
45907 # example, in the case of _POSIX_SOURCE, which is predefined and required
45908 # on some systems where configure will not decide to define it.
45909 cat >>conftest.undefs <<\_ACEOF
45910 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45911 _ACEOF
45912
45913 # Break up conftest.defines because some shells have a limit on the size
45914 # of here documents, and old seds have small limits too (100 cmds).
45915 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45916 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45917 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45918 echo '  :' >>$CONFIG_STATUS
45919 rm -f conftest.tail
45920 while grep . conftest.defines >/dev/null
45921 do
45922   # Write a limited-size here document to $tmp/defines.sed.
45923   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45924   # Speed up: don't consider the non `#define' lines.
45925   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45926   # Work around the forget-to-reset-the-flag bug.
45927   echo 't clr' >>$CONFIG_STATUS
45928   echo ': clr' >>$CONFIG_STATUS
45929   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45930   echo 'CEOF
45931   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45932   rm -f $tmp/in
45933   mv $tmp/out $tmp/in
45934 ' >>$CONFIG_STATUS
45935   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45936   rm -f conftest.defines
45937   mv conftest.tail conftest.defines
45938 done
45939 rm -f conftest.defines
45940 echo '  fi # grep' >>$CONFIG_STATUS
45941 echo >>$CONFIG_STATUS
45942
45943 # Break up conftest.undefs because some shells have a limit on the size
45944 # of here documents, and old seds have small limits too (100 cmds).
45945 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45946 rm -f conftest.tail
45947 while grep . conftest.undefs >/dev/null
45948 do
45949   # Write a limited-size here document to $tmp/undefs.sed.
45950   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45951   # Speed up: don't consider the non `#undef'
45952   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
45953   # Work around the forget-to-reset-the-flag bug.
45954   echo 't clr' >>$CONFIG_STATUS
45955   echo ': clr' >>$CONFIG_STATUS
45956   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45957   echo 'CEOF
45958   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45959   rm -f $tmp/in
45960   mv $tmp/out $tmp/in
45961 ' >>$CONFIG_STATUS
45962   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45963   rm -f conftest.undefs
45964   mv conftest.tail conftest.undefs
45965 done
45966 rm -f conftest.undefs
45967
45968 cat >>$CONFIG_STATUS <<\_ACEOF
45969   # Let's still pretend it is `configure' which instantiates (i.e., don't
45970   # use $as_me), people would be surprised to read:
45971   #    /* config.h.  Generated by config.status.  */
45972   if test x"$ac_file" = x-; then
45973     echo "/* Generated by configure.  */" >$tmp/config.h
45974   else
45975     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
45976   fi
45977   cat $tmp/in >>$tmp/config.h
45978   rm -f $tmp/in
45979   if test x"$ac_file" != x-; then
45980     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45981       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45982 echo "$as_me: $ac_file is unchanged" >&6;}
45983     else
45984       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45986          X"$ac_file" : 'X\(//\)[^/]' \| \
45987          X"$ac_file" : 'X\(//\)$' \| \
45988          X"$ac_file" : 'X\(/\)' \| \
45989          .     : '\(.\)' 2>/dev/null ||
45990 echo X"$ac_file" |
45991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45993           /^X\(\/\/\)$/{ s//\1/; q; }
45994           /^X\(\/\).*/{ s//\1/; q; }
45995           s/.*/./; q'`
45996       { if $as_mkdir_p; then
45997     mkdir -p "$ac_dir"
45998   else
45999     as_dir="$ac_dir"
46000     as_dirs=
46001     while test ! -d "$as_dir"; do
46002       as_dirs="$as_dir $as_dirs"
46003       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46005          X"$as_dir" : 'X\(//\)[^/]' \| \
46006          X"$as_dir" : 'X\(//\)$' \| \
46007          X"$as_dir" : 'X\(/\)' \| \
46008          .     : '\(.\)' 2>/dev/null ||
46009 echo X"$as_dir" |
46010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46011           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46012           /^X\(\/\/\)$/{ s//\1/; q; }
46013           /^X\(\/\).*/{ s//\1/; q; }
46014           s/.*/./; q'`
46015     done
46016     test ! -n "$as_dirs" || mkdir $as_dirs
46017   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46018 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46019    { (exit 1); exit 1; }; }; }
46020
46021       rm -f $ac_file
46022       mv $tmp/config.h $ac_file
46023     fi
46024   else
46025     cat $tmp/config.h
46026     rm -f $tmp/config.h
46027   fi
46028 # Compute $ac_file's index in $config_headers.
46029 _am_stamp_count=1
46030 for _am_header in $config_headers :; do
46031   case $_am_header in
46032     $ac_file | $ac_file:* )
46033       break ;;
46034     * )
46035       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46036   esac
46037 done
46038 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46039 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46040          X$ac_file : 'X\(//\)[^/]' \| \
46041          X$ac_file : 'X\(//\)$' \| \
46042          X$ac_file : 'X\(/\)' \| \
46043          .     : '\(.\)' 2>/dev/null ||
46044 echo X$ac_file |
46045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46047           /^X\(\/\/\)$/{ s//\1/; q; }
46048           /^X\(\/\).*/{ s//\1/; q; }
46049           s/.*/./; q'`/stamp-h$_am_stamp_count
46050 done
46051 _ACEOF
46052 cat >>$CONFIG_STATUS <<\_ACEOF
46053
46054 #
46055 # CONFIG_COMMANDS section.
46056 #
46057 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46058   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46059   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46060   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46061 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46062          X"$ac_dest" : 'X\(//\)[^/]' \| \
46063          X"$ac_dest" : 'X\(//\)$' \| \
46064          X"$ac_dest" : 'X\(/\)' \| \
46065          .     : '\(.\)' 2>/dev/null ||
46066 echo X"$ac_dest" |
46067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46069           /^X\(\/\/\)$/{ s//\1/; q; }
46070           /^X\(\/\).*/{ s//\1/; q; }
46071           s/.*/./; q'`
46072   { if $as_mkdir_p; then
46073     mkdir -p "$ac_dir"
46074   else
46075     as_dir="$ac_dir"
46076     as_dirs=
46077     while test ! -d "$as_dir"; do
46078       as_dirs="$as_dir $as_dirs"
46079       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46080 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46081          X"$as_dir" : 'X\(//\)[^/]' \| \
46082          X"$as_dir" : 'X\(//\)$' \| \
46083          X"$as_dir" : 'X\(/\)' \| \
46084          .     : '\(.\)' 2>/dev/null ||
46085 echo X"$as_dir" |
46086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46087           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46088           /^X\(\/\/\)$/{ s//\1/; q; }
46089           /^X\(\/\).*/{ s//\1/; q; }
46090           s/.*/./; q'`
46091     done
46092     test ! -n "$as_dirs" || mkdir $as_dirs
46093   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46094 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46095    { (exit 1); exit 1; }; }; }
46096
46097   ac_builddir=.
46098
46099 if test "$ac_dir" != .; then
46100   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46101   # A "../" for each directory in $ac_dir_suffix.
46102   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46103 else
46104   ac_dir_suffix= ac_top_builddir=
46105 fi
46106
46107 case $srcdir in
46108   .)  # No --srcdir option.  We are building in place.
46109     ac_srcdir=.
46110     if test -z "$ac_top_builddir"; then
46111        ac_top_srcdir=.
46112     else
46113        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46114     fi ;;
46115   [\\/]* | ?:[\\/]* )  # Absolute path.
46116     ac_srcdir=$srcdir$ac_dir_suffix;
46117     ac_top_srcdir=$srcdir ;;
46118   *) # Relative path.
46119     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46120     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46121 esac
46122
46123 # Do not use `cd foo && pwd` to compute absolute paths, because
46124 # the directories may not exist.
46125 case `pwd` in
46126 .) ac_abs_builddir="$ac_dir";;
46127 *)
46128   case "$ac_dir" in
46129   .) ac_abs_builddir=`pwd`;;
46130   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46131   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46132   esac;;
46133 esac
46134 case $ac_abs_builddir in
46135 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46136 *)
46137   case ${ac_top_builddir}. in
46138   .) ac_abs_top_builddir=$ac_abs_builddir;;
46139   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46140   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46141   esac;;
46142 esac
46143 case $ac_abs_builddir in
46144 .) ac_abs_srcdir=$ac_srcdir;;
46145 *)
46146   case $ac_srcdir in
46147   .) ac_abs_srcdir=$ac_abs_builddir;;
46148   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46149   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46150   esac;;
46151 esac
46152 case $ac_abs_builddir in
46153 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46154 *)
46155   case $ac_top_srcdir in
46156   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46157   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46158   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46159   esac;;
46160 esac
46161
46162
46163   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46164 echo "$as_me: executing $ac_dest commands" >&6;}
46165   case $ac_dest in
46166     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46167   # Strip MF so we end up with the name of the file.
46168   mf=`echo "$mf" | sed -e 's/:.*$//'`
46169   # Check whether this is an Automake generated Makefile or not.
46170   # We used to match only the files named `Makefile.in', but
46171   # some people rename them; so instead we look at the file content.
46172   # Grep'ing the first line is not enough: some people post-process
46173   # each Makefile.in and add a new line on top of each file to say so.
46174   # So let's grep whole file.
46175   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46176     dirpart=`(dirname "$mf") 2>/dev/null ||
46177 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46178          X"$mf" : 'X\(//\)[^/]' \| \
46179          X"$mf" : 'X\(//\)$' \| \
46180          X"$mf" : 'X\(/\)' \| \
46181          .     : '\(.\)' 2>/dev/null ||
46182 echo X"$mf" |
46183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46185           /^X\(\/\/\)$/{ s//\1/; q; }
46186           /^X\(\/\).*/{ s//\1/; q; }
46187           s/.*/./; q'`
46188   else
46189     continue
46190   fi
46191   # Extract the definition of DEPDIR, am__include, and am__quote
46192   # from the Makefile without running `make'.
46193   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46194   test -z "$DEPDIR" && continue
46195   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46196   test -z "am__include" && continue
46197   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46198   # When using ansi2knr, U may be empty or an underscore; expand it
46199   U=`sed -n 's/^U = //p' < "$mf"`
46200   # Find all dependency output files, they are included files with
46201   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46202   # simplest approach to changing $(DEPDIR) to its actual value in the
46203   # expansion.
46204   for file in `sed -n "
46205     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46206        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46207     # Make sure the directory exists.
46208     test -f "$dirpart/$file" && continue
46209     fdir=`(dirname "$file") 2>/dev/null ||
46210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46211          X"$file" : 'X\(//\)[^/]' \| \
46212          X"$file" : 'X\(//\)$' \| \
46213          X"$file" : 'X\(/\)' \| \
46214          .     : '\(.\)' 2>/dev/null ||
46215 echo X"$file" |
46216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46218           /^X\(\/\/\)$/{ s//\1/; q; }
46219           /^X\(\/\).*/{ s//\1/; q; }
46220           s/.*/./; q'`
46221     { if $as_mkdir_p; then
46222     mkdir -p $dirpart/$fdir
46223   else
46224     as_dir=$dirpart/$fdir
46225     as_dirs=
46226     while test ! -d "$as_dir"; do
46227       as_dirs="$as_dir $as_dirs"
46228       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46230          X"$as_dir" : 'X\(//\)[^/]' \| \
46231          X"$as_dir" : 'X\(//\)$' \| \
46232          X"$as_dir" : 'X\(/\)' \| \
46233          .     : '\(.\)' 2>/dev/null ||
46234 echo X"$as_dir" |
46235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46236           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46237           /^X\(\/\/\)$/{ s//\1/; q; }
46238           /^X\(\/\).*/{ s//\1/; q; }
46239           s/.*/./; q'`
46240     done
46241     test ! -n "$as_dirs" || mkdir $as_dirs
46242   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46243 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46244    { (exit 1); exit 1; }; }; }
46245
46246     # echo "creating $dirpart/$file"
46247     echo '# dummy' > "$dirpart/$file"
46248   done
46249 done
46250  ;;
46251     default )
46252 chmod +x tests/run
46253 date > stamp-h
46254 BACKENDSC="servers/slapd/backends.c"
46255 echo "Making $BACKENDSC"
46256 rm -f $BACKENDSC
46257 cat > $BACKENDSC << ENDX
46258 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46259  *
46260  * Copyright 1998-2006 The OpenLDAP Foundation.
46261  * All rights reserved.
46262  *
46263  * Redistribution and use in source and binary forms, with or without
46264  * modification, are permitted only as authorized by the OpenLDAP
46265  * Public License.
46266  *
46267  * A copy of this license is available in the file LICENSE in the
46268  * top-level directory of the distribution or, alternatively, at
46269  * <http://www.OpenLDAP.org/license.html>.
46270  */
46271 /* This file is automatically generated by configure; please do not edit. */
46272
46273 #include "portable.h"
46274 #include "slap.h"
46275
46276 ENDX
46277 if test "${STATIC_BACKENDS}"; then
46278         for b in config ${STATIC_BACKENDS}; do
46279                 bb=`echo "${b}" | sed -e 's/back-//'`
46280                 cat >> $BACKENDSC << ENDX
46281 extern BI_init ${bb}_back_initialize;
46282 ENDX
46283         done
46284
46285         cat >> $BACKENDSC << ENDX
46286
46287 BackendInfo slap_binfo[] = {
46288 ENDX
46289
46290         for b in config ${STATIC_BACKENDS}; do
46291                 bb=`echo "${b}" | sed -e 's/back-//'`
46292                 echo "    Add ${bb} ..."
46293                 cat >> $BACKENDSC << ENDX
46294         { "${bb}", ${bb}_back_initialize },
46295 ENDX
46296         done
46297
46298         cat >> $BACKENDSC << ENDX
46299         { NULL, NULL },
46300 };
46301
46302 /* end of generated file */
46303 ENDX
46304 fi
46305 OVERLAYSC="servers/slapd/overlays/statover.c"
46306 echo "Making $OVERLAYSC"
46307 rm -f $OVERLAYSC
46308 cat > $OVERLAYSC << ENDX
46309 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46310  *
46311  * Copyright 1998-2006 The OpenLDAP Foundation.
46312  * All rights reserved.
46313  *
46314  * Redistribution and use in source and binary forms, with or without
46315  * modification, are permitted only as authorized by the OpenLDAP
46316  * Public License.
46317  *
46318  * A copy of this license is available in the file LICENSE in the
46319  * top-level directory of the distribution or, alternatively, at
46320  * <http://www.OpenLDAP.org/license.html>.
46321  */
46322 /* This file is automatically generated by configure; please do not edit. */
46323
46324 #include "portable.h"
46325 #include "slap.h"
46326
46327 ENDX
46328 if test "${STATIC_OVERLAYS}"; then
46329         for o in ${STATIC_OVERLAYS}; do
46330                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46331                 cat >> $OVERLAYSC << ENDX
46332 extern OV_init ${oo}_initialize;
46333 ENDX
46334         done
46335 fi
46336
46337 cat >> $OVERLAYSC << ENDX
46338
46339 OverlayInit slap_oinfo[] = {
46340 ENDX
46341
46342 if test "${STATIC_OVERLAYS}"; then
46343         for o in ${STATIC_OVERLAYS}; do
46344                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46345                 echo "    Add ${oo} ..."
46346                 cat >> $OVERLAYSC << ENDX
46347         { "${oo}", ${oo}_initialize },
46348 ENDX
46349         done
46350 fi
46351
46352         cat >> $OVERLAYSC << ENDX
46353         { NULL, NULL },
46354 };
46355
46356 /* end of generated file */
46357 ENDX
46358
46359 echo Please run \"make depend\" to build dependencies
46360  ;;
46361   esac
46362 done
46363 _ACEOF
46364
46365 cat >>$CONFIG_STATUS <<\_ACEOF
46366
46367 { (exit 0); exit 0; }
46368 _ACEOF
46369 chmod +x $CONFIG_STATUS
46370 ac_clean_files=$ac_clean_files_save
46371
46372
46373 # configure is writing to config.log, and then calls config.status.
46374 # config.status does its own redirection, appending to config.log.
46375 # Unfortunately, on DOS this fails, as config.log is still kept open
46376 # by configure, so config.status won't be able to write to it; its
46377 # output is simply discarded.  So we exec the FD to /dev/null,
46378 # effectively closing config.log, so it can be properly (re)opened and
46379 # appended to by config.status.  When coming back to configure, we
46380 # need to make the FD available again.
46381 if test "$no_create" != yes; then
46382   ac_cs_success=:
46383   ac_config_status_args=
46384   test "$silent" = yes &&
46385     ac_config_status_args="$ac_config_status_args --quiet"
46386   exec 5>/dev/null
46387   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46388   exec 5>>config.log
46389   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46390   # would make configure fail if this is the last instruction.
46391   $ac_cs_success || { (exit 1); exit 1; }
46392 fi
46393