]> git.sur5r.net Git - openldap/blob - configure
regenerate
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.619 2006/01/06 16:47:36 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_DDS 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-dds          Dynamic Directory Services overlay no|yes|mod [no]
1053     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1054     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1055     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1056     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1057     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1058     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1059     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1060     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1061     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-multiple-precision
1091                           multiple precision support for statistics
1092                           auto|bignum|gmp [auto]
1093
1094   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095   --with-pic              try to use only PIC/non-PIC objects [default=use
1096                           both]
1097   --with-tags[=TAGS]
1098                           include additional configurations [automatic]
1099
1100 See INSTALL file for further details.
1101
1102 Some influential environment variables:
1103   CC          C compiler command
1104   CFLAGS      C compiler flags
1105   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106               nonstandard directory <lib dir>
1107   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108               headers in a nonstandard directory <include dir>
1109   CPP         C preprocessor
1110
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1113
1114 _ACEOF
1115 fi
1116
1117 if test "$ac_init_help" = "recursive"; then
1118   # If there are subdirs, report their specific --help.
1119   ac_popdir=`pwd`
1120   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121     test -d $ac_dir || continue
1122     ac_builddir=.
1123
1124 if test "$ac_dir" != .; then
1125   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1126   # A "../" for each directory in $ac_dir_suffix.
1127   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 else
1129   ac_dir_suffix= ac_top_builddir=
1130 fi
1131
1132 case $srcdir in
1133   .)  # No --srcdir option.  We are building in place.
1134     ac_srcdir=.
1135     if test -z "$ac_top_builddir"; then
1136        ac_top_srcdir=.
1137     else
1138        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139     fi ;;
1140   [\\/]* | ?:[\\/]* )  # Absolute path.
1141     ac_srcdir=$srcdir$ac_dir_suffix;
1142     ac_top_srcdir=$srcdir ;;
1143   *) # Relative path.
1144     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1146 esac
1147
1148 # Do not use `cd foo && pwd` to compute absolute paths, because
1149 # the directories may not exist.
1150 case `pwd` in
1151 .) ac_abs_builddir="$ac_dir";;
1152 *)
1153   case "$ac_dir" in
1154   .) ac_abs_builddir=`pwd`;;
1155   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1157   esac;;
1158 esac
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 *)
1162   case ${ac_top_builddir}. in
1163   .) ac_abs_top_builddir=$ac_abs_builddir;;
1164   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1166   esac;;
1167 esac
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1170 *)
1171   case $ac_srcdir in
1172   .) ac_abs_srcdir=$ac_abs_builddir;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1175   esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 *)
1180   case $ac_top_srcdir in
1181   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1184   esac;;
1185 esac
1186
1187     cd $ac_dir
1188     # Check for guested configure; otherwise get Cygnus style configure.
1189     if test -f $ac_srcdir/configure.gnu; then
1190       echo
1191       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1192     elif test -f $ac_srcdir/configure; then
1193       echo
1194       $SHELL $ac_srcdir/configure  --help=recursive
1195     elif test -f $ac_srcdir/configure.ac ||
1196            test -f $ac_srcdir/configure.in; then
1197       echo
1198       $ac_configure --help
1199     else
1200       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1201     fi
1202     cd $ac_popdir
1203   done
1204 fi
1205
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1208   cat <<\_ACEOF
1209
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1213
1214 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1215 Restrictions apply, see COPYRIGHT and LICENSE files.
1216 _ACEOF
1217   exit 0
1218 fi
1219 exec 5>config.log
1220 cat >&5 <<_ACEOF
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1223
1224 It was created by $as_me, which was
1225 generated by GNU Autoconf 2.59.  Invocation command line was
1226
1227   $ $0 $@
1228
1229 _ACEOF
1230 {
1231 cat <<_ASUNAME
1232 ## --------- ##
1233 ## Platform. ##
1234 ## --------- ##
1235
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1244
1245 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1246 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1249 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1250 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1251 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1252
1253 _ASUNAME
1254
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1256 for as_dir in $PATH
1257 do
1258   IFS=$as_save_IFS
1259   test -z "$as_dir" && as_dir=.
1260   echo "PATH: $as_dir"
1261 done
1262
1263 } >&5
1264
1265 cat >&5 <<_ACEOF
1266
1267
1268 ## ----------- ##
1269 ## Core tests. ##
1270 ## ----------- ##
1271
1272 _ACEOF
1273
1274
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1280 ac_configure_args=
1281 ac_configure_args0=
1282 ac_configure_args1=
1283 ac_sep=
1284 ac_must_keep_next=false
1285 for ac_pass in 1 2
1286 do
1287   for ac_arg
1288   do
1289     case $ac_arg in
1290     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292     | -silent | --silent | --silen | --sile | --sil)
1293       continue ;;
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     esac
1297     case $ac_pass in
1298     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299     2)
1300       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301       if test $ac_must_keep_next = true; then
1302         ac_must_keep_next=false # Got value, back to normal.
1303       else
1304         case $ac_arg in
1305           *=* | --config-cache | -C | -disable-* | --disable-* \
1306           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308           | -with-* | --with-* | -without-* | --without-* | --x)
1309             case "$ac_configure_args0 " in
1310               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1311             esac
1312             ;;
1313           -* ) ac_must_keep_next=true ;;
1314         esac
1315       fi
1316       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317       # Get rid of the leading space.
1318       ac_sep=" "
1319       ;;
1320     esac
1321   done
1322 done
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log.  We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332   # Save into config.log some information that might help in debugging.
1333   {
1334     echo
1335
1336     cat <<\_ASBOX
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1340 _ASBOX
1341     echo
1342     # The following way of writing the cache mishandles newlines in values,
1343 {
1344   (set) 2>&1 |
1345     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1346     *ac_space=\ *)
1347       sed -n \
1348         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1350       ;;
1351     *)
1352       sed -n \
1353         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1354       ;;
1355     esac;
1356 }
1357     echo
1358
1359     cat <<\_ASBOX
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1363 _ASBOX
1364     echo
1365     for ac_var in $ac_subst_vars
1366     do
1367       eval ac_val=$`echo $ac_var`
1368       echo "$ac_var='"'"'$ac_val'"'"'"
1369     done | sort
1370     echo
1371
1372     if test -n "$ac_subst_files"; then
1373       cat <<\_ASBOX
1374 ## ------------- ##
1375 ## Output files. ##
1376 ## ------------- ##
1377 _ASBOX
1378       echo
1379       for ac_var in $ac_subst_files
1380       do
1381         eval ac_val=$`echo $ac_var`
1382         echo "$ac_var='"'"'$ac_val'"'"'"
1383       done | sort
1384       echo
1385     fi
1386
1387     if test -s confdefs.h; then
1388       cat <<\_ASBOX
1389 ## ----------- ##
1390 ## confdefs.h. ##
1391 ## ----------- ##
1392 _ASBOX
1393       echo
1394       sed "/^$/d" confdefs.h | sort
1395       echo
1396     fi
1397     test "$ac_signal" != 0 &&
1398       echo "$as_me: caught signal $ac_signal"
1399     echo "$as_me: exit $exit_status"
1400   } >&5
1401   rm -f core *.core &&
1402   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1403     exit $exit_status
1404      ' 0
1405 for ac_signal in 1 2 13 15; do
1406   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1407 done
1408 ac_signal=0
1409
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1413 echo >confdefs.h
1414
1415 # Predefined preprocessor variables.
1416
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1419 _ACEOF
1420
1421
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1424 _ACEOF
1425
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1439 _ACEOF
1440
1441
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445   if test "x$prefix" != xNONE; then
1446     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447   else
1448     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1449   fi
1450 fi
1451 for ac_site_file in $CONFIG_SITE; do
1452   if test -r "$ac_site_file"; then
1453     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455     sed 's/^/| /' "$ac_site_file" >&5
1456     . "$ac_site_file"
1457   fi
1458 done
1459
1460
1461 # Check that the precious variables saved in the cache have kept the same
1462 # value.
1463 ac_cache_corrupted=false
1464 for ac_var in `(set) 2>&1 |
1465                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467   eval ac_new_set=\$ac_env_${ac_var}_set
1468   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469   eval ac_new_val="\$ac_env_${ac_var}_value"
1470   case $ac_old_set,$ac_new_set in
1471     set,)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,set)
1476       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478       ac_cache_corrupted=: ;;
1479     ,);;
1480     *)
1481       if test "x$ac_old_val" != "x$ac_new_val"; then
1482         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485 echo "$as_me:   former value:  $ac_old_val" >&2;}
1486         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487 echo "$as_me:   current value: $ac_new_val" >&2;}
1488         ac_cache_corrupted=:
1489       fi;;
1490   esac
1491   # Pass precious variables to config.status.
1492   if test "$ac_new_set" = set; then
1493     case $ac_new_val in
1494     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496     *) ac_arg=$ac_var=$ac_new_val ;;
1497     esac
1498     case " $ac_configure_args " in
1499       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501     esac
1502   fi
1503 done
1504 if $ac_cache_corrupted; then
1505   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509    { (exit 1); exit 1; }; }
1510 fi
1511
1512 ac_ext=c
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1559 ac_aux_dir=
1560 for ac_dir in build $srcdir/build; do
1561   if test -f $ac_dir/install-sh; then
1562     ac_aux_dir=$ac_dir
1563     ac_install_sh="$ac_aux_dir/install-sh -c"
1564     break
1565   elif test -f $ac_dir/install.sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install.sh -c"
1568     break
1569   elif test -f $ac_dir/shtool; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/shtool install -c"
1572     break
1573   fi
1574 done
1575 if test -z "$ac_aux_dir"; then
1576   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1577 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1582 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1583
1584 eval `$ac_aux_dir/version.sh`
1585 if test -z "$OL_STRING"; then
1586         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1587 echo "$as_me: error: could not determine version" >&2;}
1588    { (exit 1); exit 1; }; }
1589 fi
1590
1591 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1592         ac_cv_shtool="$ac_aux_dir/shtool"
1593 else
1594         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1595 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1596    { (exit 1); exit 1; }; }
1597 fi
1598
1599 SHTOOL="$ac_cv_shtool"
1600
1601 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1602 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1603
1604 OPENLDAP_CVS=""
1605 if test -d $ac_aux_dir/CVS; then
1606         OPENLDAP_CVS="(from CVS sources) "
1607 fi
1608
1609 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1610
1611 # Make sure we can run config.sub.
1612 $ac_config_sub sun4 >/dev/null 2>&1 ||
1613   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1614 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1615    { (exit 1); exit 1; }; }
1616
1617 echo "$as_me:$LINENO: checking build system type" >&5
1618 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1619 if test "${ac_cv_build+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   ac_cv_build_alias=$build_alias
1623 test -z "$ac_cv_build_alias" &&
1624   ac_cv_build_alias=`$ac_config_guess`
1625 test -z "$ac_cv_build_alias" &&
1626   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1627 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1628    { (exit 1); exit 1; }; }
1629 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1630   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1631 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1632    { (exit 1); exit 1; }; }
1633
1634 fi
1635 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1636 echo "${ECHO_T}$ac_cv_build" >&6
1637 build=$ac_cv_build
1638 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1639 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1640 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1641
1642
1643 echo "$as_me:$LINENO: checking host system type" >&5
1644 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1645 if test "${ac_cv_host+set}" = set; then
1646   echo $ECHO_N "(cached) $ECHO_C" >&6
1647 else
1648   ac_cv_host_alias=$host_alias
1649 test -z "$ac_cv_host_alias" &&
1650   ac_cv_host_alias=$ac_cv_build_alias
1651 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1652   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1653 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1654    { (exit 1); exit 1; }; }
1655
1656 fi
1657 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1658 echo "${ECHO_T}$ac_cv_host" >&6
1659 host=$ac_cv_host
1660 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663
1664
1665 echo "$as_me:$LINENO: checking target system type" >&5
1666 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1667 if test "${ac_cv_target+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   ac_cv_target_alias=$target_alias
1671 test "x$ac_cv_target_alias" = "x" &&
1672   ac_cv_target_alias=$ac_cv_host_alias
1673 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1674   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1676    { (exit 1); exit 1; }; }
1677
1678 fi
1679 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1680 echo "${ECHO_T}$ac_cv_target" >&6
1681 target=$ac_cv_target
1682 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685
1686
1687 # The aliases save the names the user supplied, while $host etc.
1688 # will get canonicalized.
1689 test -n "$target_alias" &&
1690   test "$program_prefix$program_suffix$program_transform_name" = \
1691     NONENONEs,x,x, &&
1692   program_prefix=${target_alias}-
1693
1694 am__api_version="1.9"
1695 # Find a good install program.  We prefer a C program (faster),
1696 # so one script is as good as another.  But avoid the broken or
1697 # incompatible versions:
1698 # SysV /etc/install, /usr/sbin/install
1699 # SunOS /usr/etc/install
1700 # IRIX /sbin/install
1701 # AIX /bin/install
1702 # AmigaOS /C/install, which installs bootblocks on floppy discs
1703 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1704 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1705 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1706 # OS/2's system install, which has a completely different semantic
1707 # ./install, which can be erroneously created by make from ./install.sh.
1708 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1709 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1710 if test -z "$INSTALL"; then
1711 if test "${ac_cv_path_install+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   # Account for people who put trailing slashes in PATH elements.
1720 case $as_dir/ in
1721   ./ | .// | /cC/* | \
1722   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1723   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1724   /usr/ucb/* ) ;;
1725   *)
1726     # OSF1 and SCO ODT 3.0 have their own names for install.
1727     # Don't use installbsd from OSF since it installs stuff as root
1728     # by default.
1729     for ac_prog in ginstall scoinst install; do
1730       for ac_exec_ext in '' $ac_executable_extensions; do
1731         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1732           if test $ac_prog = install &&
1733             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # AIX install.  It has an incompatible calling convention.
1735             :
1736           elif test $ac_prog = install &&
1737             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1738             # program-specific install script used by HP pwplus--don't use.
1739             :
1740           else
1741             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1742             break 3
1743           fi
1744         fi
1745       done
1746     done
1747     ;;
1748 esac
1749 done
1750
1751
1752 fi
1753   if test "${ac_cv_path_install+set}" = set; then
1754     INSTALL=$ac_cv_path_install
1755   else
1756     # As a last resort, use the slow shell script.  We don't cache a
1757     # path for INSTALL within a source directory, because that will
1758     # break other packages using the cache if that directory is
1759     # removed, or if the path is relative.
1760     INSTALL=$ac_install_sh
1761   fi
1762 fi
1763 echo "$as_me:$LINENO: result: $INSTALL" >&5
1764 echo "${ECHO_T}$INSTALL" >&6
1765
1766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1767 # It thinks the first close brace ends the variable substitution.
1768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1769
1770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1771
1772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1773
1774 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1775 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1776 # Just in case
1777 sleep 1
1778 echo timestamp > conftest.file
1779 # Do `set' in a subshell so we don't clobber the current shell's
1780 # arguments.  Must try -L first in case configure is actually a
1781 # symlink; some systems play weird games with the mod time of symlinks
1782 # (eg FreeBSD returns the mod time of the symlink's containing
1783 # directory).
1784 if (
1785    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1786    if test "$*" = "X"; then
1787       # -L didn't work.
1788       set X `ls -t $srcdir/configure conftest.file`
1789    fi
1790    rm -f conftest.file
1791    if test "$*" != "X $srcdir/configure conftest.file" \
1792       && test "$*" != "X conftest.file $srcdir/configure"; then
1793
1794       # If neither matched, then we have a broken ls.  This can happen
1795       # if, for instance, CONFIG_SHELL is bash and it inherits a
1796       # broken ls alias from the environment.  This has actually
1797       # happened.  Such a system could not be considered "sane".
1798       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&5
1800 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1801 alias in your environment" >&2;}
1802    { (exit 1); exit 1; }; }
1803    fi
1804
1805    test "$2" = conftest.file
1806    )
1807 then
1808    # Ok.
1809    :
1810 else
1811    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1812 Check your system clock" >&5
1813 echo "$as_me: error: newly created file is older than distributed files!
1814 Check your system clock" >&2;}
1815    { (exit 1); exit 1; }; }
1816 fi
1817 echo "$as_me:$LINENO: result: yes" >&5
1818 echo "${ECHO_T}yes" >&6
1819 test "$program_prefix" != NONE &&
1820   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1821 # Use a double $ so make ignores it.
1822 test "$program_suffix" != NONE &&
1823   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1824 # Double any \ or $.  echo might interpret backslashes.
1825 # By default was `s,x,x', remove it if useless.
1826 cat <<\_ACEOF >conftest.sed
1827 s/[\\$]/&&/g;s/;s,x,x,$//
1828 _ACEOF
1829 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1830 rm conftest.sed
1831
1832 # expand $ac_aux_dir to an absolute path
1833 am_aux_dir=`cd $ac_aux_dir && pwd`
1834
1835 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1836 # Use eval to expand $SHELL
1837 if eval "$MISSING --run true"; then
1838   am_missing_run="$MISSING --run "
1839 else
1840   am_missing_run=
1841   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1842 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1843 fi
1844
1845 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1846   # We used to keeping the `.' as first argument, in order to
1847   # allow $(mkdir_p) to be used without argument.  As in
1848   #   $(mkdir_p) $(somedir)
1849   # where $(somedir) is conditionally defined.  However this is wrong
1850   # for two reasons:
1851   #  1. if the package is installed by a user who cannot write `.'
1852   #     make install will fail,
1853   #  2. the above comment should most certainly read
1854   #     $(mkdir_p) $(DESTDIR)$(somedir)
1855   #     so it does not work when $(somedir) is undefined and
1856   #     $(DESTDIR) is not.
1857   #  To support the latter case, we have to write
1858   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1859   #  so the `.' trick is pointless.
1860   mkdir_p='mkdir -p --'
1861 else
1862   # On NextStep and OpenStep, the `mkdir' command does not
1863   # recognize any option.  It will interpret all options as
1864   # directories to create, and then abort because `.' already
1865   # exists.
1866   for d in ./-p ./--version;
1867   do
1868     test -d $d && rmdir $d
1869   done
1870   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1871   if test -f "$ac_aux_dir/mkinstalldirs"; then
1872     mkdir_p='$(mkinstalldirs)'
1873   else
1874     mkdir_p='$(install_sh) -d'
1875   fi
1876 fi
1877
1878 for ac_prog in gawk mawk nawk awk
1879 do
1880   # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884 if test "${ac_cv_prog_AWK+set}" = set; then
1885   echo $ECHO_N "(cached) $ECHO_C" >&6
1886 else
1887   if test -n "$AWK"; then
1888   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1889 else
1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 for as_dir in $PATH
1892 do
1893   IFS=$as_save_IFS
1894   test -z "$as_dir" && as_dir=.
1895   for ac_exec_ext in '' $ac_executable_extensions; do
1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897     ac_cv_prog_AWK="$ac_prog"
1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899     break 2
1900   fi
1901 done
1902 done
1903
1904 fi
1905 fi
1906 AWK=$ac_cv_prog_AWK
1907 if test -n "$AWK"; then
1908   echo "$as_me:$LINENO: result: $AWK" >&5
1909 echo "${ECHO_T}$AWK" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915   test -n "$AWK" && break
1916 done
1917
1918 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1920 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1921 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.make <<\_ACEOF
1925 all:
1926         @echo 'ac_maketemp="$(MAKE)"'
1927 _ACEOF
1928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1929 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1930 if test -n "$ac_maketemp"; then
1931   eval ac_cv_prog_make_${ac_make}_set=yes
1932 else
1933   eval ac_cv_prog_make_${ac_make}_set=no
1934 fi
1935 rm -f conftest.make
1936 fi
1937 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1938   echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1940   SET_MAKE=
1941 else
1942   echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1944   SET_MAKE="MAKE=${MAKE-make}"
1945 fi
1946
1947 rm -rf .tst 2>/dev/null
1948 mkdir .tst 2>/dev/null
1949 if test -d .tst; then
1950   am__leading_dot=.
1951 else
1952   am__leading_dot=_
1953 fi
1954 rmdir .tst 2>/dev/null
1955
1956 # test to see if srcdir already configured
1957 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1958    test -f $srcdir/config.status; then
1959   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1960 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 # test whether we have cygpath
1965 if test -z "$CYGPATH_W"; then
1966   if (cygpath --version) >/dev/null 2>/dev/null; then
1967     CYGPATH_W='cygpath -w'
1968   else
1969     CYGPATH_W=echo
1970   fi
1971 fi
1972
1973
1974 # Define the identity of the package.
1975  PACKAGE=$OL_PACKAGE
1976  VERSION=$OL_VERSION
1977
1978
1979 # Some tools Automake needs.
1980
1981 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1982
1983
1984 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1985
1986
1987 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1988
1989
1990 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1991
1992
1993 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1994
1995 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1996
1997 # Installed binaries are usually stripped using `strip' when the user
1998 # run `make install-strip'.  However `strip' might not be the right
1999 # tool to use in cross-compilation environments, therefore Automake
2000 # will honor the `STRIP' environment variable to overrule this program.
2001 if test "$cross_compiling" != no; then
2002   if test -n "$ac_tool_prefix"; then
2003   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}strip; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_STRIP+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$STRIP"; then
2011   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 STRIP=$ac_cv_prog_STRIP
2030 if test -n "$STRIP"; then
2031   echo "$as_me:$LINENO: result: $STRIP" >&5
2032 echo "${ECHO_T}$STRIP" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_STRIP"; then
2040   ac_ct_STRIP=$STRIP
2041   # Extract the first word of "strip", so it can be a program name with args.
2042 set dummy strip; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$ac_ct_STRIP"; then
2049   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054   IFS=$as_save_IFS
2055   test -z "$as_dir" && as_dir=.
2056   for ac_exec_ext in '' $ac_executable_extensions; do
2057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058     ac_cv_prog_ac_ct_STRIP="strip"
2059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060     break 2
2061   fi
2062 done
2063 done
2064
2065   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2066 fi
2067 fi
2068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2069 if test -n "$ac_ct_STRIP"; then
2070   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2071 echo "${ECHO_T}$ac_ct_STRIP" >&6
2072 else
2073   echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6
2075 fi
2076
2077   STRIP=$ac_ct_STRIP
2078 else
2079   STRIP="$ac_cv_prog_STRIP"
2080 fi
2081
2082 fi
2083 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2084
2085 # We need awk for the "check" target.  The system "awk" is bad on
2086 # some platforms.
2087 # Always define AMTAR for backward compatibility.
2088
2089 AMTAR=${AMTAR-"${am_missing_run}tar"}
2090
2091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2092
2093
2094
2095
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define OPENLDAP_PACKAGE "$PACKAGE"
2099 _ACEOF
2100
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_VERSION "$VERSION"
2104 _ACEOF
2105
2106
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define LDAP_VENDOR_VERSION $OL_API_INC
2110 _ACEOF
2111
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2115 _ACEOF
2116
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2120 _ACEOF
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2125 _ACEOF
2126
2127
2128 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2129
2130 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2131
2132 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2133
2134
2135
2136
2137
2138
2139
2140           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2141
2142           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2143
2144           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2145
2146
2147 echo "$as_me:$LINENO: checking configure arguments" >&5
2148 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2149
2150
2151 top_builddir=`pwd`
2152
2153 ldap_subdir="/openldap"
2154
2155
2156 # Check whether --with-subdir or --without-subdir was given.
2157 if test "${with_subdir+set}" = set; then
2158   withval="$with_subdir"
2159   case "$withval" in
2160         no) ldap_subdir=""
2161                 ;;
2162         yes)
2163                 ;;
2164         /*|\\*)
2165                 ldap_subdir="$withval"
2166                 ;;
2167         *)
2168                 ldap_subdir="/$withval"
2169                 ;;
2170 esac
2171
2172 fi;
2173
2174 # OpenLDAP --enable-debug
2175
2176         # Check whether --enable-debug or --disable-debug was given.
2177 if test "${enable_debug+set}" = set; then
2178   enableval="$enable_debug"
2179
2180         ol_arg=invalid
2181         for ol_val in no yes traditional ; do
2182                 if test "$enableval" = "$ol_val" ; then
2183                         ol_arg="$ol_val"
2184                 fi
2185         done
2186         if test "$ol_arg" = "invalid" ; then
2187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2188 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2189    { (exit 1); exit 1; }; }
2190         fi
2191         ol_enable_debug="$ol_arg"
2192
2193 else
2194         ol_enable_debug=yes
2195 fi;
2196 # end --enable-debug
2197 # OpenLDAP --enable-dynamic
2198
2199         # Check whether --enable-dynamic or --disable-dynamic was given.
2200 if test "${enable_dynamic+set}" = set; then
2201   enableval="$enable_dynamic"
2202
2203         ol_arg=invalid
2204         for ol_val in auto yes no ; do
2205                 if test "$enableval" = "$ol_val" ; then
2206                         ol_arg="$ol_val"
2207                 fi
2208         done
2209         if test "$ol_arg" = "invalid" ; then
2210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2212    { (exit 1); exit 1; }; }
2213         fi
2214         ol_enable_dynamic="$ol_arg"
2215
2216 else
2217         ol_enable_dynamic=no
2218 fi;
2219 # end --enable-dynamic
2220 # OpenLDAP --enable-syslog
2221
2222         # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224   enableval="$enable_syslog"
2225
2226         ol_arg=invalid
2227         for ol_val in auto yes no ; do
2228                 if test "$enableval" = "$ol_val" ; then
2229                         ol_arg="$ol_val"
2230                 fi
2231         done
2232         if test "$ol_arg" = "invalid" ; then
2233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235    { (exit 1); exit 1; }; }
2236         fi
2237         ol_enable_syslog="$ol_arg"
2238
2239 else
2240         ol_enable_syslog=auto
2241 fi;
2242 # end --enable-syslog
2243 # OpenLDAP --enable-proctitle
2244
2245         # Check whether --enable-proctitle or --disable-proctitle was given.
2246 if test "${enable_proctitle+set}" = set; then
2247   enableval="$enable_proctitle"
2248
2249         ol_arg=invalid
2250         for ol_val in auto yes no ; do
2251                 if test "$enableval" = "$ol_val" ; then
2252                         ol_arg="$ol_val"
2253                 fi
2254         done
2255         if test "$ol_arg" = "invalid" ; then
2256                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2257 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2258    { (exit 1); exit 1; }; }
2259         fi
2260         ol_enable_proctitle="$ol_arg"
2261
2262 else
2263         ol_enable_proctitle=yes
2264 fi;
2265 # end --enable-proctitle
2266 ol_enable_referrals=${ol_enable_referrals-no}
2267 ol_enable_kbind=${ol_enable_kbind-no}
2268 # OpenLDAP --enable-ipv6
2269
2270         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2271 if test "${enable_ipv6+set}" = set; then
2272   enableval="$enable_ipv6"
2273
2274         ol_arg=invalid
2275         for ol_val in auto yes no ; do
2276                 if test "$enableval" = "$ol_val" ; then
2277                         ol_arg="$ol_val"
2278                 fi
2279         done
2280         if test "$ol_arg" = "invalid" ; then
2281                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2282 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2283    { (exit 1); exit 1; }; }
2284         fi
2285         ol_enable_ipv6="$ol_arg"
2286
2287 else
2288         ol_enable_ipv6=auto
2289 fi;
2290 # end --enable-ipv6
2291 # OpenLDAP --enable-local
2292
2293         # Check whether --enable-local or --disable-local was given.
2294 if test "${enable_local+set}" = set; then
2295   enableval="$enable_local"
2296
2297         ol_arg=invalid
2298         for ol_val in auto yes no ; do
2299                 if test "$enableval" = "$ol_val" ; then
2300                         ol_arg="$ol_val"
2301                 fi
2302         done
2303         if test "$ol_arg" = "invalid" ; then
2304                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2305 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2306    { (exit 1); exit 1; }; }
2307         fi
2308         ol_enable_local="$ol_arg"
2309
2310 else
2311         ol_enable_local=auto
2312 fi;
2313 # end --enable-local
2314
2315 # OpenLDAP --with-cyrus_sasl
2316
2317 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2318 if test "${with_cyrus_sasl+set}" = set; then
2319   withval="$with_cyrus_sasl"
2320
2321         ol_arg=invalid
2322         for ol_val in auto yes no  ; do
2323                 if test "$withval" = "$ol_val" ; then
2324                         ol_arg="$ol_val"
2325                 fi
2326         done
2327         if test "$ol_arg" = "invalid" ; then
2328                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2329 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2330    { (exit 1); exit 1; }; }
2331         fi
2332         ol_with_cyrus_sasl="$ol_arg"
2333
2334 else
2335         ol_with_cyrus_sasl="auto"
2336 fi; # end --with-cyrus_sasl
2337
2338 # OpenLDAP --with-fetch
2339
2340 # Check whether --with-fetch or --without-fetch was given.
2341 if test "${with_fetch+set}" = set; then
2342   withval="$with_fetch"
2343
2344         ol_arg=invalid
2345         for ol_val in auto yes no  ; do
2346                 if test "$withval" = "$ol_val" ; then
2347                         ol_arg="$ol_val"
2348                 fi
2349         done
2350         if test "$ol_arg" = "invalid" ; then
2351                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2352 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2353    { (exit 1); exit 1; }; }
2354         fi
2355         ol_with_fetch="$ol_arg"
2356
2357 else
2358         ol_with_fetch="auto"
2359 fi; # end --with-fetch
2360
2361 ol_with_kerberos=${ol_with_kerberos-auto}
2362 # OpenLDAP --with-threads
2363
2364 # Check whether --with-threads or --without-threads was given.
2365 if test "${with_threads+set}" = set; then
2366   withval="$with_threads"
2367
2368         ol_arg=invalid
2369         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2370                 if test "$withval" = "$ol_val" ; then
2371                         ol_arg="$ol_val"
2372                 fi
2373         done
2374         if test "$ol_arg" = "invalid" ; then
2375                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2376 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2377    { (exit 1); exit 1; }; }
2378         fi
2379         ol_with_threads="$ol_arg"
2380
2381 else
2382         ol_with_threads="auto"
2383 fi; # end --with-threads
2384
2385 # OpenLDAP --with-tls
2386
2387 # Check whether --with-tls or --without-tls was given.
2388 if test "${with_tls+set}" = set; then
2389   withval="$with_tls"
2390
2391         ol_arg=invalid
2392         for ol_val in auto openssl yes no  ; do
2393                 if test "$withval" = "$ol_val" ; then
2394                         ol_arg="$ol_val"
2395                 fi
2396         done
2397         if test "$ol_arg" = "invalid" ; then
2398                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2399 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2400    { (exit 1); exit 1; }; }
2401         fi
2402         ol_with_tls="$ol_arg"
2403
2404 else
2405         ol_with_tls="auto"
2406 fi; # end --with-tls
2407
2408 # OpenLDAP --with-yielding_select
2409
2410 # Check whether --with-yielding_select or --without-yielding_select was given.
2411 if test "${with_yielding_select+set}" = set; then
2412   withval="$with_yielding_select"
2413
2414         ol_arg=invalid
2415         for ol_val in auto yes no manual  ; do
2416                 if test "$withval" = "$ol_val" ; then
2417                         ol_arg="$ol_val"
2418                 fi
2419         done
2420         if test "$ol_arg" = "invalid" ; then
2421                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2422 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2423    { (exit 1); exit 1; }; }
2424         fi
2425         ol_with_yielding_select="$ol_arg"
2426
2427 else
2428         ol_with_yielding_select="auto"
2429 fi; # end --with-yielding_select
2430
2431 # OpenLDAP --with-multiple_precision
2432
2433 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2434 if test "${with_multiple_precision+set}" = set; then
2435   withval="$with_multiple_precision"
2436
2437         ol_arg=invalid
2438         for ol_val in auto bignum gmp yes no  ; do
2439                 if test "$withval" = "$ol_val" ; then
2440                         ol_arg="$ol_val"
2441                 fi
2442         done
2443         if test "$ol_arg" = "invalid" ; then
2444                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2445 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2446    { (exit 1); exit 1; }; }
2447         fi
2448         ol_with_multiple_precision="$ol_arg"
2449
2450 else
2451         ol_with_multiple_precision="auto"
2452 fi; # end --with-multiple_precision
2453
2454
2455
2456 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2457 if test "${enable_xxslapdoptions+set}" = set; then
2458   enableval="$enable_xxslapdoptions"
2459
2460 fi;
2461 # OpenLDAP --enable-slapd
2462
2463         # Check whether --enable-slapd or --disable-slapd was given.
2464 if test "${enable_slapd+set}" = set; then
2465   enableval="$enable_slapd"
2466
2467         ol_arg=invalid
2468         for ol_val in auto yes no ; do
2469                 if test "$enableval" = "$ol_val" ; then
2470                         ol_arg="$ol_val"
2471                 fi
2472         done
2473         if test "$ol_arg" = "invalid" ; then
2474                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2475 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2476    { (exit 1); exit 1; }; }
2477         fi
2478         ol_enable_slapd="$ol_arg"
2479
2480 else
2481         ol_enable_slapd=yes
2482 fi;
2483 # end --enable-slapd
2484 # OpenLDAP --enable-dynacl
2485
2486         # Check whether --enable-dynacl or --disable-dynacl was given.
2487 if test "${enable_dynacl+set}" = set; then
2488   enableval="$enable_dynacl"
2489
2490         ol_arg=invalid
2491         for ol_val in auto yes no ; do
2492                 if test "$enableval" = "$ol_val" ; then
2493                         ol_arg="$ol_val"
2494                 fi
2495         done
2496         if test "$ol_arg" = "invalid" ; then
2497                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2498 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2499    { (exit 1); exit 1; }; }
2500         fi
2501         ol_enable_dynacl="$ol_arg"
2502
2503 else
2504         ol_enable_dynacl=no
2505 fi;
2506 # end --enable-dynacl
2507 # OpenLDAP --enable-aci
2508
2509         # Check whether --enable-aci or --disable-aci was given.
2510 if test "${enable_aci+set}" = set; then
2511   enableval="$enable_aci"
2512
2513         ol_arg=invalid
2514         for ol_val in no yes mod ; do
2515                 if test "$enableval" = "$ol_val" ; then
2516                         ol_arg="$ol_val"
2517                 fi
2518         done
2519         if test "$ol_arg" = "invalid" ; then
2520                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2521 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2522    { (exit 1); exit 1; }; }
2523         fi
2524         ol_enable_aci="$ol_arg"
2525
2526 else
2527         ol_enable_aci=no
2528 fi;
2529 # end --enable-aci
2530 # OpenLDAP --enable-cleartext
2531
2532         # Check whether --enable-cleartext or --disable-cleartext was given.
2533 if test "${enable_cleartext+set}" = set; then
2534   enableval="$enable_cleartext"
2535
2536         ol_arg=invalid
2537         for ol_val in auto yes no ; do
2538                 if test "$enableval" = "$ol_val" ; then
2539                         ol_arg="$ol_val"
2540                 fi
2541         done
2542         if test "$ol_arg" = "invalid" ; then
2543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2544 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2545    { (exit 1); exit 1; }; }
2546         fi
2547         ol_enable_cleartext="$ol_arg"
2548
2549 else
2550         ol_enable_cleartext=yes
2551 fi;
2552 # end --enable-cleartext
2553 # OpenLDAP --enable-crypt
2554
2555         # Check whether --enable-crypt or --disable-crypt was given.
2556 if test "${enable_crypt+set}" = set; then
2557   enableval="$enable_crypt"
2558
2559         ol_arg=invalid
2560         for ol_val in auto yes no ; do
2561                 if test "$enableval" = "$ol_val" ; then
2562                         ol_arg="$ol_val"
2563                 fi
2564         done
2565         if test "$ol_arg" = "invalid" ; then
2566                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2567 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2568    { (exit 1); exit 1; }; }
2569         fi
2570         ol_enable_crypt="$ol_arg"
2571
2572 else
2573         ol_enable_crypt=no
2574 fi;
2575 # end --enable-crypt
2576 # OpenLDAP --enable-lmpasswd
2577
2578         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2579 if test "${enable_lmpasswd+set}" = set; then
2580   enableval="$enable_lmpasswd"
2581
2582         ol_arg=invalid
2583         for ol_val in auto yes no ; do
2584                 if test "$enableval" = "$ol_val" ; then
2585                         ol_arg="$ol_val"
2586                 fi
2587         done
2588         if test "$ol_arg" = "invalid" ; then
2589                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2590 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2591    { (exit 1); exit 1; }; }
2592         fi
2593         ol_enable_lmpasswd="$ol_arg"
2594
2595 else
2596         ol_enable_lmpasswd=no
2597 fi;
2598 # end --enable-lmpasswd
2599 # OpenLDAP --enable-spasswd
2600
2601         # Check whether --enable-spasswd or --disable-spasswd was given.
2602 if test "${enable_spasswd+set}" = set; then
2603   enableval="$enable_spasswd"
2604
2605         ol_arg=invalid
2606         for ol_val in auto yes no ; do
2607                 if test "$enableval" = "$ol_val" ; then
2608                         ol_arg="$ol_val"
2609                 fi
2610         done
2611         if test "$ol_arg" = "invalid" ; then
2612                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2613 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2614    { (exit 1); exit 1; }; }
2615         fi
2616         ol_enable_spasswd="$ol_arg"
2617
2618 else
2619         ol_enable_spasswd=no
2620 fi;
2621 # end --enable-spasswd
2622 # OpenLDAP --enable-modules
2623
2624         # Check whether --enable-modules or --disable-modules was given.
2625 if test "${enable_modules+set}" = set; then
2626   enableval="$enable_modules"
2627
2628         ol_arg=invalid
2629         for ol_val in auto yes no ; do
2630                 if test "$enableval" = "$ol_val" ; then
2631                         ol_arg="$ol_val"
2632                 fi
2633         done
2634         if test "$ol_arg" = "invalid" ; then
2635                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2636 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2637    { (exit 1); exit 1; }; }
2638         fi
2639         ol_enable_modules="$ol_arg"
2640
2641 else
2642         ol_enable_modules=no
2643 fi;
2644 # end --enable-modules
2645 ol_enable_multimaster=${ol_enable_multimaster-no}
2646 # OpenLDAP --enable-rewrite
2647
2648         # Check whether --enable-rewrite or --disable-rewrite was given.
2649 if test "${enable_rewrite+set}" = set; then
2650   enableval="$enable_rewrite"
2651
2652         ol_arg=invalid
2653         for ol_val in auto yes no ; do
2654                 if test "$enableval" = "$ol_val" ; then
2655                         ol_arg="$ol_val"
2656                 fi
2657         done
2658         if test "$ol_arg" = "invalid" ; then
2659                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2660 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2661    { (exit 1); exit 1; }; }
2662         fi
2663         ol_enable_rewrite="$ol_arg"
2664
2665 else
2666         ol_enable_rewrite=auto
2667 fi;
2668 # end --enable-rewrite
2669 # OpenLDAP --enable-rlookups
2670
2671         # Check whether --enable-rlookups or --disable-rlookups was given.
2672 if test "${enable_rlookups+set}" = set; then
2673   enableval="$enable_rlookups"
2674
2675         ol_arg=invalid
2676         for ol_val in auto yes no ; do
2677                 if test "$enableval" = "$ol_val" ; then
2678                         ol_arg="$ol_val"
2679                 fi
2680         done
2681         if test "$ol_arg" = "invalid" ; then
2682                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2683 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2684    { (exit 1); exit 1; }; }
2685         fi
2686         ol_enable_rlookups="$ol_arg"
2687
2688 else
2689         ol_enable_rlookups=no
2690 fi;
2691 # end --enable-rlookups
2692 # OpenLDAP --enable-slapi
2693
2694         # Check whether --enable-slapi or --disable-slapi was given.
2695 if test "${enable_slapi+set}" = set; then
2696   enableval="$enable_slapi"
2697
2698         ol_arg=invalid
2699         for ol_val in auto yes no ; do
2700                 if test "$enableval" = "$ol_val" ; then
2701                         ol_arg="$ol_val"
2702                 fi
2703         done
2704         if test "$ol_arg" = "invalid" ; then
2705                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2706 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2707    { (exit 1); exit 1; }; }
2708         fi
2709         ol_enable_slapi="$ol_arg"
2710
2711 else
2712         ol_enable_slapi=no
2713 fi;
2714 # end --enable-slapi
2715 # OpenLDAP --enable-slp
2716
2717         # Check whether --enable-slp or --disable-slp was given.
2718 if test "${enable_slp+set}" = set; then
2719   enableval="$enable_slp"
2720
2721         ol_arg=invalid
2722         for ol_val in auto yes no ; do
2723                 if test "$enableval" = "$ol_val" ; then
2724                         ol_arg="$ol_val"
2725                 fi
2726         done
2727         if test "$ol_arg" = "invalid" ; then
2728                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2729 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2730    { (exit 1); exit 1; }; }
2731         fi
2732         ol_enable_slp="$ol_arg"
2733
2734 else
2735         ol_enable_slp=no
2736 fi;
2737 # end --enable-slp
2738 # OpenLDAP --enable-wrappers
2739
2740         # Check whether --enable-wrappers or --disable-wrappers was given.
2741 if test "${enable_wrappers+set}" = set; then
2742   enableval="$enable_wrappers"
2743
2744         ol_arg=invalid
2745         for ol_val in auto yes no ; do
2746                 if test "$enableval" = "$ol_val" ; then
2747                         ol_arg="$ol_val"
2748                 fi
2749         done
2750         if test "$ol_arg" = "invalid" ; then
2751                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2752 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2753    { (exit 1); exit 1; }; }
2754         fi
2755         ol_enable_wrappers="$ol_arg"
2756
2757 else
2758         ol_enable_wrappers=no
2759 fi;
2760 # end --enable-wrappers
2761
2762 Backends="bdb \
2763         dnssrv \
2764         hdb \
2765         ldap \
2766         ldbm \
2767         meta \
2768         monitor \
2769         null \
2770         passwd \
2771         perl \
2772         relay \
2773         shell \
2774         sql"
2775
2776 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2777 if test "${enable_xxslapbackends+set}" = set; then
2778   enableval="$enable_xxslapbackends"
2779
2780 fi;
2781
2782 # OpenLDAP --enable-backends
2783
2784         # Check whether --enable-backends or --disable-backends was given.
2785 if test "${enable_backends+set}" = set; then
2786   enableval="$enable_backends"
2787
2788         ol_arg=invalid
2789         for ol_val in no yes mod ; do
2790                 if test "$enableval" = "$ol_val" ; then
2791                         ol_arg="$ol_val"
2792                 fi
2793         done
2794         if test "$ol_arg" = "invalid" ; then
2795                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2796 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2797    { (exit 1); exit 1; }; }
2798         fi
2799         ol_enable_backends="$ol_arg"
2800
2801 fi;
2802 # end --enable-backends
2803 # OpenLDAP --enable-bdb
2804
2805         # Check whether --enable-bdb or --disable-bdb was given.
2806 if test "${enable_bdb+set}" = set; then
2807   enableval="$enable_bdb"
2808
2809         ol_arg=invalid
2810         for ol_val in no yes mod ; do
2811                 if test "$enableval" = "$ol_val" ; then
2812                         ol_arg="$ol_val"
2813                 fi
2814         done
2815         if test "$ol_arg" = "invalid" ; then
2816                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2817 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2818    { (exit 1); exit 1; }; }
2819         fi
2820         ol_enable_bdb="$ol_arg"
2821
2822 else
2823         ol_enable_bdb=${ol_enable_backends:-yes}
2824 fi;
2825 # end --enable-bdb
2826 # OpenLDAP --enable-dnssrv
2827
2828         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2829 if test "${enable_dnssrv+set}" = set; then
2830   enableval="$enable_dnssrv"
2831
2832         ol_arg=invalid
2833         for ol_val in no yes mod ; do
2834                 if test "$enableval" = "$ol_val" ; then
2835                         ol_arg="$ol_val"
2836                 fi
2837         done
2838         if test "$ol_arg" = "invalid" ; then
2839                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2840 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2841    { (exit 1); exit 1; }; }
2842         fi
2843         ol_enable_dnssrv="$ol_arg"
2844
2845 else
2846         ol_enable_dnssrv=${ol_enable_backends:-no}
2847 fi;
2848 # end --enable-dnssrv
2849 # OpenLDAP --enable-hdb
2850
2851         # Check whether --enable-hdb or --disable-hdb was given.
2852 if test "${enable_hdb+set}" = set; then
2853   enableval="$enable_hdb"
2854
2855         ol_arg=invalid
2856         for ol_val in no yes mod ; do
2857                 if test "$enableval" = "$ol_val" ; then
2858                         ol_arg="$ol_val"
2859                 fi
2860         done
2861         if test "$ol_arg" = "invalid" ; then
2862                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2863 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2864    { (exit 1); exit 1; }; }
2865         fi
2866         ol_enable_hdb="$ol_arg"
2867
2868 else
2869         ol_enable_hdb=${ol_enable_backends:-yes}
2870 fi;
2871 # end --enable-hdb
2872 # OpenLDAP --enable-ldap
2873
2874         # Check whether --enable-ldap or --disable-ldap was given.
2875 if test "${enable_ldap+set}" = set; then
2876   enableval="$enable_ldap"
2877
2878         ol_arg=invalid
2879         for ol_val in no yes mod ; do
2880                 if test "$enableval" = "$ol_val" ; then
2881                         ol_arg="$ol_val"
2882                 fi
2883         done
2884         if test "$ol_arg" = "invalid" ; then
2885                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2886 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2887    { (exit 1); exit 1; }; }
2888         fi
2889         ol_enable_ldap="$ol_arg"
2890
2891 else
2892         ol_enable_ldap=${ol_enable_backends:-no}
2893 fi;
2894 # end --enable-ldap
2895 # OpenLDAP --enable-ldbm
2896
2897         # Check whether --enable-ldbm or --disable-ldbm was given.
2898 if test "${enable_ldbm+set}" = set; then
2899   enableval="$enable_ldbm"
2900
2901         ol_arg=invalid
2902         for ol_val in no yes mod ; do
2903                 if test "$enableval" = "$ol_val" ; then
2904                         ol_arg="$ol_val"
2905                 fi
2906         done
2907         if test "$ol_arg" = "invalid" ; then
2908                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2909 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2910    { (exit 1); exit 1; }; }
2911         fi
2912         ol_enable_ldbm="$ol_arg"
2913
2914 else
2915         ol_enable_ldbm=${ol_enable_backends:-no}
2916 fi;
2917 # end --enable-ldbm
2918
2919 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2920 if test "${with_ldbm_api+set}" = set; then
2921   withval="$with_ldbm_api"
2922
2923         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2924 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2925         enable_ldbm_api="$with_ldbm_api"
2926 fi;
2927 # OpenLDAP --enable-ldbm_api
2928
2929         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2930 if test "${enable_ldbm_api+set}" = set; then
2931   enableval="$enable_ldbm_api"
2932
2933         ol_arg=invalid
2934         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2935                 if test "$enableval" = "$ol_val" ; then
2936                         ol_arg="$ol_val"
2937                 fi
2938         done
2939         if test "$ol_arg" = "invalid" ; then
2940                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2941 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2942    { (exit 1); exit 1; }; }
2943         fi
2944         ol_enable_ldbm_api="$ol_arg"
2945
2946 else
2947         ol_enable_ldbm_api=auto
2948 fi;
2949 # end --enable-ldbm_api
2950
2951
2952 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2953 if test "${with_ldbm_type+set}" = set; then
2954   withval="$with_ldbm_type"
2955
2956         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2957 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2958         enable_ldbm_type="$with_ldbm_type"
2959 fi;
2960 # OpenLDAP --enable-ldbm_type
2961
2962         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2963 if test "${enable_ldbm_type+set}" = set; then
2964   enableval="$enable_ldbm_type"
2965
2966         ol_arg=invalid
2967         for ol_val in auto btree hash ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_ldbm_type="$ol_arg"
2978
2979 else
2980         ol_enable_ldbm_type=auto
2981 fi;
2982 # end --enable-ldbm_type
2983
2984 # OpenLDAP --enable-meta
2985
2986         # Check whether --enable-meta or --disable-meta was given.
2987 if test "${enable_meta+set}" = set; then
2988   enableval="$enable_meta"
2989
2990         ol_arg=invalid
2991         for ol_val in no yes mod ; do
2992                 if test "$enableval" = "$ol_val" ; then
2993                         ol_arg="$ol_val"
2994                 fi
2995         done
2996         if test "$ol_arg" = "invalid" ; then
2997                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2998 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2999    { (exit 1); exit 1; }; }
3000         fi
3001         ol_enable_meta="$ol_arg"
3002
3003 else
3004         ol_enable_meta=${ol_enable_backends:-no}
3005 fi;
3006 # end --enable-meta
3007 # OpenLDAP --enable-monitor
3008
3009         # Check whether --enable-monitor or --disable-monitor was given.
3010 if test "${enable_monitor+set}" = set; then
3011   enableval="$enable_monitor"
3012
3013         ol_arg=invalid
3014         for ol_val in no yes mod ; do
3015                 if test "$enableval" = "$ol_val" ; then
3016                         ol_arg="$ol_val"
3017                 fi
3018         done
3019         if test "$ol_arg" = "invalid" ; then
3020                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3021 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3022    { (exit 1); exit 1; }; }
3023         fi
3024         ol_enable_monitor="$ol_arg"
3025
3026 else
3027         ol_enable_monitor=${ol_enable_backends:-yes}
3028 fi;
3029 # end --enable-monitor
3030 # OpenLDAP --enable-null
3031
3032         # Check whether --enable-null or --disable-null was given.
3033 if test "${enable_null+set}" = set; then
3034   enableval="$enable_null"
3035
3036         ol_arg=invalid
3037         for ol_val in no yes mod ; do
3038                 if test "$enableval" = "$ol_val" ; then
3039                         ol_arg="$ol_val"
3040                 fi
3041         done
3042         if test "$ol_arg" = "invalid" ; then
3043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3044 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3045    { (exit 1); exit 1; }; }
3046         fi
3047         ol_enable_null="$ol_arg"
3048
3049 else
3050         ol_enable_null=${ol_enable_backends:-no}
3051 fi;
3052 # end --enable-null
3053 # OpenLDAP --enable-passwd
3054
3055         # Check whether --enable-passwd or --disable-passwd was given.
3056 if test "${enable_passwd+set}" = set; then
3057   enableval="$enable_passwd"
3058
3059         ol_arg=invalid
3060         for ol_val in no yes mod ; do
3061                 if test "$enableval" = "$ol_val" ; then
3062                         ol_arg="$ol_val"
3063                 fi
3064         done
3065         if test "$ol_arg" = "invalid" ; then
3066                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3067 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3068    { (exit 1); exit 1; }; }
3069         fi
3070         ol_enable_passwd="$ol_arg"
3071
3072 else
3073         ol_enable_passwd=${ol_enable_backends:-no}
3074 fi;
3075 # end --enable-passwd
3076 # OpenLDAP --enable-perl
3077
3078         # Check whether --enable-perl or --disable-perl was given.
3079 if test "${enable_perl+set}" = set; then
3080   enableval="$enable_perl"
3081
3082         ol_arg=invalid
3083         for ol_val in no yes mod ; do
3084                 if test "$enableval" = "$ol_val" ; then
3085                         ol_arg="$ol_val"
3086                 fi
3087         done
3088         if test "$ol_arg" = "invalid" ; then
3089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3090 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3091    { (exit 1); exit 1; }; }
3092         fi
3093         ol_enable_perl="$ol_arg"
3094
3095 else
3096         ol_enable_perl=${ol_enable_backends:-no}
3097 fi;
3098 # end --enable-perl
3099 # OpenLDAP --enable-relay
3100
3101         # Check whether --enable-relay or --disable-relay was given.
3102 if test "${enable_relay+set}" = set; then
3103   enableval="$enable_relay"
3104
3105         ol_arg=invalid
3106         for ol_val in no yes mod ; do
3107                 if test "$enableval" = "$ol_val" ; then
3108                         ol_arg="$ol_val"
3109                 fi
3110         done
3111         if test "$ol_arg" = "invalid" ; then
3112                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3113 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3114    { (exit 1); exit 1; }; }
3115         fi
3116         ol_enable_relay="$ol_arg"
3117
3118 else
3119         ol_enable_relay=${ol_enable_backends:-yes}
3120 fi;
3121 # end --enable-relay
3122 # OpenLDAP --enable-shell
3123
3124         # Check whether --enable-shell or --disable-shell was given.
3125 if test "${enable_shell+set}" = set; then
3126   enableval="$enable_shell"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_shell="$ol_arg"
3140
3141 else
3142         ol_enable_shell=${ol_enable_backends:-no}
3143 fi;
3144 # end --enable-shell
3145 # OpenLDAP --enable-sql
3146
3147         # Check whether --enable-sql or --disable-sql was given.
3148 if test "${enable_sql+set}" = set; then
3149   enableval="$enable_sql"
3150
3151         ol_arg=invalid
3152         for ol_val in no yes mod ; do
3153                 if test "$enableval" = "$ol_val" ; then
3154                         ol_arg="$ol_val"
3155                 fi
3156         done
3157         if test "$ol_arg" = "invalid" ; then
3158                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3159 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3160    { (exit 1); exit 1; }; }
3161         fi
3162         ol_enable_sql="$ol_arg"
3163
3164 else
3165         ol_enable_sql=${ol_enable_backends:-no}
3166 fi;
3167 # end --enable-sql
3168
3169 Overlays="accesslog \
3170         dds \
3171         denyop \
3172         dyngroup \
3173         dynlist \
3174         lastmod \
3175         ppolicy \
3176         proxycache \
3177         refint \
3178         retcode \
3179         rwm \
3180         syncprov \
3181         translucent \
3182         unique \
3183         valsort"
3184
3185 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3186 if test "${enable_xxslapoverlays+set}" = set; then
3187   enableval="$enable_xxslapoverlays"
3188
3189 fi;
3190
3191 # OpenLDAP --enable-overlays
3192
3193         # Check whether --enable-overlays or --disable-overlays was given.
3194 if test "${enable_overlays+set}" = set; then
3195   enableval="$enable_overlays"
3196
3197         ol_arg=invalid
3198         for ol_val in no yes mod ; do
3199                 if test "$enableval" = "$ol_val" ; then
3200                         ol_arg="$ol_val"
3201                 fi
3202         done
3203         if test "$ol_arg" = "invalid" ; then
3204                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3205 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3206    { (exit 1); exit 1; }; }
3207         fi
3208         ol_enable_overlays="$ol_arg"
3209
3210 fi;
3211 # end --enable-overlays
3212 # OpenLDAP --enable-accesslog
3213
3214         # Check whether --enable-accesslog or --disable-accesslog was given.
3215 if test "${enable_accesslog+set}" = set; then
3216   enableval="$enable_accesslog"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_accesslog="$ol_arg"
3230
3231 else
3232         ol_enable_accesslog=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-accesslog
3235
3236 # OpenLDAP --enable-dds
3237
3238         # Check whether --enable-dds or --disable-dds was given.
3239 if test "${enable_dds+set}" = set; then
3240   enableval="$enable_dds"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dds="$ol_arg"
3254
3255 else
3256         ol_enable_dds=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dds
3259
3260 # OpenLDAP --enable-denyop
3261
3262         # Check whether --enable-denyop or --disable-denyop was given.
3263 if test "${enable_denyop+set}" = set; then
3264   enableval="$enable_denyop"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_denyop="$ol_arg"
3278
3279 else
3280         ol_enable_denyop=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-denyop
3283
3284 # OpenLDAP --enable-dyngroup
3285
3286         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3287 if test "${enable_dyngroup+set}" = set; then
3288   enableval="$enable_dyngroup"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_dyngroup="$ol_arg"
3302
3303 else
3304         ol_enable_dyngroup=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-dyngroup
3307
3308 # OpenLDAP --enable-dynlist
3309
3310         # Check whether --enable-dynlist or --disable-dynlist was given.
3311 if test "${enable_dynlist+set}" = set; then
3312   enableval="$enable_dynlist"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_dynlist="$ol_arg"
3326
3327 else
3328         ol_enable_dynlist=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-dynlist
3331
3332 # OpenLDAP --enable-lastmod
3333
3334         # Check whether --enable-lastmod or --disable-lastmod was given.
3335 if test "${enable_lastmod+set}" = set; then
3336   enableval="$enable_lastmod"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_lastmod="$ol_arg"
3350
3351 else
3352         ol_enable_lastmod=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-lastmod
3355
3356 # OpenLDAP --enable-ppolicy
3357
3358         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3359 if test "${enable_ppolicy+set}" = set; then
3360   enableval="$enable_ppolicy"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_ppolicy="$ol_arg"
3374
3375 else
3376         ol_enable_ppolicy=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-ppolicy
3379
3380 # OpenLDAP --enable-proxycache
3381
3382         # Check whether --enable-proxycache or --disable-proxycache was given.
3383 if test "${enable_proxycache+set}" = set; then
3384   enableval="$enable_proxycache"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_proxycache="$ol_arg"
3398
3399 else
3400         ol_enable_proxycache=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-proxycache
3403
3404 # OpenLDAP --enable-refint
3405
3406         # Check whether --enable-refint or --disable-refint was given.
3407 if test "${enable_refint+set}" = set; then
3408   enableval="$enable_refint"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_refint="$ol_arg"
3422
3423 else
3424         ol_enable_refint=${ol_enable_overlays:-no}
3425 fi;
3426 # end --enable-refint
3427
3428 # OpenLDAP --enable-retcode
3429
3430         # Check whether --enable-retcode or --disable-retcode was given.
3431 if test "${enable_retcode+set}" = set; then
3432   enableval="$enable_retcode"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_retcode="$ol_arg"
3446
3447 else
3448         ol_enable_retcode=${ol_enable_overlays:-no}
3449 fi;
3450 # end --enable-retcode
3451
3452 # OpenLDAP --enable-rwm
3453
3454         # Check whether --enable-rwm or --disable-rwm was given.
3455 if test "${enable_rwm+set}" = set; then
3456   enableval="$enable_rwm"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_rwm="$ol_arg"
3470
3471 else
3472         ol_enable_rwm=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-rwm
3475
3476 # OpenLDAP --enable-syncprov
3477
3478         # Check whether --enable-syncprov or --disable-syncprov was given.
3479 if test "${enable_syncprov+set}" = set; then
3480   enableval="$enable_syncprov"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_syncprov="$ol_arg"
3494
3495 else
3496         ol_enable_syncprov=${ol_enable_overlays:-yes}
3497 fi;
3498 # end --enable-syncprov
3499
3500 # OpenLDAP --enable-translucent
3501
3502         # Check whether --enable-translucent or --disable-translucent was given.
3503 if test "${enable_translucent+set}" = set; then
3504   enableval="$enable_translucent"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_translucent="$ol_arg"
3518
3519 else
3520         ol_enable_translucent=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-translucent
3523
3524 # OpenLDAP --enable-unique
3525
3526         # Check whether --enable-unique or --disable-unique was given.
3527 if test "${enable_unique+set}" = set; then
3528   enableval="$enable_unique"
3529
3530         ol_arg=invalid
3531         for ol_val in no yes mod ; do
3532                 if test "$enableval" = "$ol_val" ; then
3533                         ol_arg="$ol_val"
3534                 fi
3535         done
3536         if test "$ol_arg" = "invalid" ; then
3537                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3538 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3539    { (exit 1); exit 1; }; }
3540         fi
3541         ol_enable_unique="$ol_arg"
3542
3543 else
3544         ol_enable_unique=${ol_enable_overlays:-no}
3545 fi;
3546 # end --enable-unique
3547
3548 # OpenLDAP --enable-valsort
3549
3550         # Check whether --enable-valsort or --disable-valsort was given.
3551 if test "${enable_valsort+set}" = set; then
3552   enableval="$enable_valsort"
3553
3554         ol_arg=invalid
3555         for ol_val in no yes mod ; do
3556                 if test "$enableval" = "$ol_val" ; then
3557                         ol_arg="$ol_val"
3558                 fi
3559         done
3560         if test "$ol_arg" = "invalid" ; then
3561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3562 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3563    { (exit 1); exit 1; }; }
3564         fi
3565         ol_enable_valsort="$ol_arg"
3566
3567 else
3568         ol_enable_valsort=${ol_enable_overlays:-no}
3569 fi;
3570 # end --enable-valsort
3571
3572
3573 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3574 if test "${enable_xxslurpdoptions+set}" = set; then
3575   enableval="$enable_xxslurpdoptions"
3576
3577 fi;
3578 # OpenLDAP --enable-slurpd
3579
3580         # Check whether --enable-slurpd or --disable-slurpd was given.
3581 if test "${enable_slurpd+set}" = set; then
3582   enableval="$enable_slurpd"
3583
3584         ol_arg=invalid
3585         for ol_val in auto yes no ; do
3586                 if test "$enableval" = "$ol_val" ; then
3587                         ol_arg="$ol_val"
3588                 fi
3589         done
3590         if test "$ol_arg" = "invalid" ; then
3591                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3593    { (exit 1); exit 1; }; }
3594         fi
3595         ol_enable_slurpd="$ol_arg"
3596
3597 else
3598         ol_enable_slurpd=auto
3599 fi;
3600 # end --enable-slurpd
3601
3602 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3603 if test "${enable_xxliboptions+set}" = set; then
3604   enableval="$enable_xxliboptions"
3605
3606 fi;
3607 # Check whether --enable-static or --disable-static was given.
3608 if test "${enable_static+set}" = set; then
3609   enableval="$enable_static"
3610   p=${PACKAGE-default}
3611     case $enableval in
3612     yes) enable_static=yes ;;
3613     no) enable_static=no ;;
3614     *)
3615      enable_static=no
3616       # Look at the argument we got.  We use all the common list separators.
3617       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3618       for pkg in $enableval; do
3619         IFS="$lt_save_ifs"
3620         if test "X$pkg" = "X$p"; then
3621           enable_static=yes
3622         fi
3623       done
3624       IFS="$lt_save_ifs"
3625       ;;
3626     esac
3627 else
3628   enable_static=yes
3629 fi;
3630
3631 # Check whether --enable-shared or --disable-shared was given.
3632 if test "${enable_shared+set}" = set; then
3633   enableval="$enable_shared"
3634   p=${PACKAGE-default}
3635     case $enableval in
3636     yes) enable_shared=yes ;;
3637     no) enable_shared=no ;;
3638     *)
3639       enable_shared=no
3640       # Look at the argument we got.  We use all the common list separators.
3641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3642       for pkg in $enableval; do
3643         IFS="$lt_save_ifs"
3644         if test "X$pkg" = "X$p"; then
3645           enable_shared=yes
3646         fi
3647       done
3648       IFS="$lt_save_ifs"
3649       ;;
3650     esac
3651 else
3652   enable_shared=yes
3653 fi;
3654
3655
3656
3657 # validate options
3658 if test $ol_enable_slapd = no ; then
3659                 if test $ol_enable_slapi = yes ; then
3660                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3661 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3662         fi
3663         case "$ol_enable_backends" in yes | mod)
3664                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3665 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3666         esac
3667         for i in $Backends; do
3668                 eval "ol_tmp=\$ol_enable_$i"
3669                 if test $ol_tmp != no ; then
3670                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3672                         eval "ol_enable_$i=no"
3673                 fi
3674         done
3675         if test $ol_enable_modules = yes ; then
3676                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3677 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3678         fi
3679         if test $ol_enable_multimaster = yes ; then
3680                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3681 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3682         fi
3683         if test $ol_enable_wrappers = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3686         fi
3687         if test $ol_enable_rlookups = yes ; then
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3690         fi
3691         if test $ol_enable_aci = yes ; then
3692                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3693 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3694         fi
3695         if test $ol_enable_ldbm_api != auto ; then
3696                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3698         fi
3699         if test $ol_enable_ldbm_type != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3702         fi
3703         if test $ol_enable_slurpd = yes ; then
3704                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3705 echo "$as_me: error: slurpd requires slapd" >&2;}
3706    { (exit 1); exit 1; }; }
3707         fi
3708         if test $ol_enable_rewrite = yes ; then
3709                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3710 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3711         fi
3712                 case "$ol_enable_overlays" in yes | mod)
3713                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3714 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3715         esac
3716         for i in $Overlays; do
3717                 eval "ol_tmp=\$ol_enable_$i"
3718                 if test $ol_tmp != no ; then
3719                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3720 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3721                         eval "ol_enable_$i=no"
3722                 fi
3723         done
3724
3725         # force settings to no
3726         ol_enable_slapi=no
3727
3728         ol_enable_backends=
3729         ol_enable_overlays=
3730         ol_enable_modules=no
3731         ol_enable_multimaster=no
3732         ol_enable_rlookups=no
3733         ol_enable_dynacl=no
3734         ol_enable_aci=no
3735         ol_enable_wrappers=no
3736
3737         ol_enable_ldbm_api=no
3738         ol_enable_ldbm_type=no
3739
3740         ol_enable_slurpd=no
3741
3742         ol_enable_rewrite=no
3743
3744 elif test $ol_enable_ldbm = no ; then
3745
3746         if test $ol_enable_ldbm_api != auto ; then
3747                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3748 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3749         fi
3750
3751         if test $ol_enable_ldbm_type != auto ; then
3752                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3753 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3754         fi
3755
3756         if test $ol_enable_modules != yes &&
3757            test $ol_enable_bdb = no &&
3758            test $ol_enable_dnssrv = no &&
3759            test $ol_enable_hdb = no &&
3760            test $ol_enable_ldap = no &&
3761            test $ol_enable_meta = no &&
3762            test $ol_enable_monitor = no &&
3763            test $ol_enable_null = no &&
3764            test $ol_enable_passwd = no &&
3765            test $ol_enable_perl = no &&
3766            test $ol_enable_relay = no &&
3767            test $ol_enable_shell = no &&
3768            test $ol_enable_sql = no ; then
3769
3770                 if test $ol_enable_slapd = yes ; then
3771                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3772 echo "$as_me: error: slapd requires a backend" >&2;}
3773    { (exit 1); exit 1; }; }
3774                 else
3775                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3776 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3777                         ol_enable_slapd=no
3778                 fi
3779         fi
3780
3781         ol_enable_ldbm_api=no
3782         ol_enable_ldbm_type=no
3783
3784         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3785                 ol_enable_ldbm_api=berkeley
3786         fi
3787
3788 else
3789                 if test $ol_enable_ldbm_api = gdbm &&
3790            test $ol_enable_ldbm_type = btree ; then
3791                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3792 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3793    { (exit 1); exit 1; }; }
3794         fi
3795         if test $ol_enable_ldbm_api = mdbm &&
3796            test $ol_enable_ldbm_type = btree ; then
3797                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3798 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3799    { (exit 1); exit 1; }; }
3800         fi
3801         if test $ol_enable_ldbm_api = ndbm &&
3802            test $ol_enable_ldbm_type = btree ; then
3803                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3804 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3805    { (exit 1); exit 1; }; }
3806         fi
3807
3808         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3809                 if test $ol_enable_ldbm_api = auto ; then
3810                         ol_enable_ldbm_api=berkeley
3811                 elif test $ol_enable_ldbm_api != berkeley ; then
3812                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3813 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3814    { (exit 1); exit 1; }; }
3815                 fi
3816         fi
3817 fi
3818
3819 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3820         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3821 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3822    { (exit 1); exit 1; }; }
3823 fi
3824
3825 if test $ol_enable_slurpd = yes ; then
3826                 if test $ol_with_threads = no ; then
3827                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3828 echo "$as_me: error: slurpd requires threads" >&2;}
3829    { (exit 1); exit 1; }; }
3830         fi
3831 fi
3832
3833 if test $ol_enable_lmpasswd = yes ; then
3834         if test $ol_with_tls = no ; then
3835                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3836 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3837    { (exit 1); exit 1; }; }
3838         fi
3839 fi
3840
3841 if test $ol_enable_kbind = yes ; then
3842         if test $ol_with_kerberos = no ; then
3843                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3844 echo "$as_me: error: options require --with-kerberos" >&2;}
3845    { (exit 1); exit 1; }; }
3846         elif test $ol_with_kerberos = auto ; then
3847                 ol_with_kerberos=yes
3848         fi
3849
3850 elif test $ol_enable_kbind = no ; then
3851         if test $ol_with_kerberos = auto ; then
3852                 ol_with_kerberos=no
3853         elif test $ol_with_kerberos != no ; then
3854                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3855 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3856                 ol_with_kerberos=no
3857         fi
3858 fi
3859
3860 if test $ol_enable_spasswd = yes ; then
3861         if test $ol_with_cyrus_sasl = no ; then
3862                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3863 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3864    { (exit 1); exit 1; }; }
3865         fi
3866         ol_with_cyrus_sasl=yes
3867 fi
3868
3869 echo "$as_me:$LINENO: result: done" >&5
3870 echo "${ECHO_T}done" >&6
3871
3872 LDAP_LIBS=
3873 LDBM_LIBS=
3874 LTHREAD_LIBS=
3875 LUTIL_LIBS=
3876
3877 SLAPD_LIBS=
3878 SLURPD_LIBS=
3879
3880 BUILD_SLAPD=no
3881 BUILD_SLURPD=no
3882
3883 BUILD_THREAD=no
3884
3885 BUILD_SLAPI=no
3886 SLAPD_SLAPI_DEPEND=
3887
3888 BUILD_BDB=no
3889 BUILD_DNSSRV=no
3890 BUILD_HDB=no
3891 BUILD_LDAP=no
3892 BUILD_LDBM=no
3893 BUILD_META=no
3894 BUILD_MONITOR=no
3895 BUILD_NULL=no
3896 BUILD_PASSWD=no
3897 BUILD_PERL=no
3898 BUILD_RELAY=no
3899 BUILD_SHELL=no
3900 BUILD_SQL=no
3901
3902 BUILD_ACCESSLOG=no
3903 BUILD_DDS=no
3904 BUILD_DENYOP=no
3905 BUILD_DYNGROUP=no
3906 BUILD_DYNLIST=no
3907 BUILD_LASTMOD=no
3908 BUILD_PPOLICY=no
3909 BUILD_PROXYCACHE=no
3910 BUILD_REFINT=no
3911 BUILD_RETCODE=no
3912 BUILD_RWM=no
3913 BUILD_SYNCPROV=no
3914 BUILD_TRANSLUCENT=no
3915 BUILD_UNIQUE=no
3916 BUILD_VALSORT=no
3917
3918 SLAPD_STATIC_OVERLAYS=
3919 SLAPD_DYNAMIC_OVERLAYS=
3920
3921 SLAPD_MODULES_LDFLAGS=
3922 SLAPD_MODULES_CPPFLAGS=
3923
3924 SLAPD_STATIC_BACKENDS=back-ldif
3925 SLAPD_DYNAMIC_BACKENDS=
3926
3927 SLAPD_PERL_LDFLAGS=
3928 MOD_PERL_LDFLAGS=
3929 PERL_CPPFLAGS=
3930
3931 SLAPD_SQL_LDFLAGS=
3932 SLAPD_SQL_LIBS=
3933 SLAPD_SQL_INCLUDES=
3934
3935 KRB4_LIBS=
3936 KRB5_LIBS=
3937 SASL_LIBS=
3938 TLS_LIBS=
3939 MODULES_LIBS=
3940 SLAPI_LIBS=
3941 LIBSLAPI=
3942 LIBSLAPITOOLS=
3943 AUTH_LIBS=
3944 ICU_LIBS=
3945
3946 SLAPD_SLP_LIBS=
3947 SLAPD_GMP_LIBS=
3948
3949
3950
3951 cat >>confdefs.h <<\_ACEOF
3952 #define HAVE_MKVERSION 1
3953 _ACEOF
3954
3955
3956
3957
3958 ol_aix_threads=no
3959 case "$target" in
3960 *-*-aix*)       if test -z "$CC" ; then
3961                 case "$ol_with_threads" in
3962                 auto | yes |  posix) ol_aix_threads=yes ;;
3963                 esac
3964         fi
3965 ;;
3966 esac
3967
3968 if test $ol_aix_threads = yes ; then
3969         if test -z "${CC}" ; then
3970                 for ac_prog in cc_r xlc_r cc
3971 do
3972   # Extract the first word of "$ac_prog", so it can be a program name with args.
3973 set dummy $ac_prog; ac_word=$2
3974 echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3976 if test "${ac_cv_prog_CC+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   if test -n "$CC"; then
3980   ac_cv_prog_CC="$CC" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_exec_ext in '' $ac_executable_extensions; do
3988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989     ac_cv_prog_CC="$ac_prog"
3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994 done
3995
3996 fi
3997 fi
3998 CC=$ac_cv_prog_CC
3999 if test -n "$CC"; then
4000   echo "$as_me:$LINENO: result: $CC" >&5
4001 echo "${ECHO_T}$CC" >&6
4002 else
4003   echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4005 fi
4006
4007   test -n "$CC" && break
4008 done
4009
4010
4011                 if test "$CC" = cc ; then
4012                                                 if test $ol_with_threads != auto ; then
4013                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4014 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4015    { (exit 1); exit 1; }; }
4016                         else
4017                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4018 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4019                         fi
4020                         ol_with_threads=no
4021                 fi
4022         fi
4023
4024         case ${CC} in cc_r | xlc_r)
4025                 ol_with_threads=posix
4026                 ol_cv_pthread_create=yes
4027                 ;;
4028         esac
4029 fi
4030
4031 if test -z "${CC}"; then
4032         for ac_prog in cc gcc
4033 do
4034   # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_CC+set}" = set; then
4039   echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041   if test -n "$CC"; then
4042   ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047   IFS=$as_save_IFS
4048   test -z "$as_dir" && as_dir=.
4049   for ac_exec_ext in '' $ac_executable_extensions; do
4050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051     ac_cv_prog_CC="$ac_prog"
4052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053     break 2
4054   fi
4055 done
4056 done
4057
4058 fi
4059 fi
4060 CC=$ac_cv_prog_CC
4061 if test -n "$CC"; then
4062   echo "$as_me:$LINENO: result: $CC" >&5
4063 echo "${ECHO_T}$CC" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068
4069   test -n "$CC" && break
4070 done
4071 test -n "$CC" || CC="missing"
4072
4073
4074         if test "${CC}" = "missing" ; then
4075                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4076 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4077    { (exit 1); exit 1; }; }
4078         fi
4079 fi
4080
4081 if test -z "${AR}"; then
4082         for ac_prog in ar gar
4083 do
4084   # Extract the first word of "$ac_prog", so it can be a program name with args.
4085 set dummy $ac_prog; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_AR+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$AR"; then
4092   ac_cv_prog_AR="$AR" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_AR="$ac_prog"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108 fi
4109 fi
4110 AR=$ac_cv_prog_AR
4111 if test -n "$AR"; then
4112   echo "$as_me:$LINENO: result: $AR" >&5
4113 echo "${ECHO_T}$AR" >&6
4114 else
4115   echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4117 fi
4118
4119   test -n "$AR" && break
4120 done
4121 test -n "$AR" || AR="missing"
4122
4123
4124         if test "${AR}" = "missing" ; then
4125                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4126 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4127    { (exit 1); exit 1; }; }
4128         fi
4129 fi
4130
4131
4132
4133
4134
4135 # Check whether --enable-fast-install or --disable-fast-install was given.
4136 if test "${enable_fast_install+set}" = set; then
4137   enableval="$enable_fast_install"
4138   p=${PACKAGE-default}
4139     case $enableval in
4140     yes) enable_fast_install=yes ;;
4141     no) enable_fast_install=no ;;
4142     *)
4143       enable_fast_install=no
4144       # Look at the argument we got.  We use all the common list separators.
4145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4146       for pkg in $enableval; do
4147         IFS="$lt_save_ifs"
4148         if test "X$pkg" = "X$p"; then
4149           enable_fast_install=yes
4150         fi
4151       done
4152       IFS="$lt_save_ifs"
4153       ;;
4154     esac
4155 else
4156   enable_fast_install=yes
4157 fi;
4158
4159 DEPDIR="${am__leading_dot}deps"
4160
4161           ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164 am_make=${MAKE-make}
4165 cat > confinc << 'END'
4166 am__doit:
4167         @echo done
4168 .PHONY: am__doit
4169 END
4170 # If we don't find an include directive, just comment out the code.
4171 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4172 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4173 am__include="#"
4174 am__quote=
4175 _am_result=none
4176 # First try GNU make style include.
4177 echo "include confinc" > confmf
4178 # We grep out `Entering directory' and `Leaving directory'
4179 # messages which can occur if `w' ends up in MAKEFLAGS.
4180 # In particular we don't look at `^make:' because GNU make might
4181 # be invoked under some other name (usually "gmake"), in which
4182 # case it prints its new name instead of `make'.
4183 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4184    am__include=include
4185    am__quote=
4186    _am_result=GNU
4187 fi
4188 # Now try BSD make style include.
4189 if test "$am__include" = "#"; then
4190    echo '.include "confinc"' > confmf
4191    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4192       am__include=.include
4193       am__quote="\""
4194       _am_result=BSD
4195    fi
4196 fi
4197
4198
4199 echo "$as_me:$LINENO: result: $_am_result" >&5
4200 echo "${ECHO_T}$_am_result" >&6
4201 rm -f confinc confmf
4202
4203 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4204 if test "${enable_dependency_tracking+set}" = set; then
4205   enableval="$enable_dependency_tracking"
4206
4207 fi;
4208 if test "x$enable_dependency_tracking" != xno; then
4209   am_depcomp="$ac_aux_dir/depcomp"
4210   AMDEPBACKSLASH='\'
4211 fi
4212
4213
4214 if test "x$enable_dependency_tracking" != xno; then
4215   AMDEP_TRUE=
4216   AMDEP_FALSE='#'
4217 else
4218   AMDEP_TRUE='#'
4219   AMDEP_FALSE=
4220 fi
4221
4222
4223
4224 ac_ext=c
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 if test -n "$ac_tool_prefix"; then
4230   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_CC+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   if test -n "$CC"; then
4238   ac_cv_prog_CC="$CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_exec_ext in '' $ac_executable_extensions; do
4246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252 done
4253
4254 fi
4255 fi
4256 CC=$ac_cv_prog_CC
4257 if test -n "$CC"; then
4258   echo "$as_me:$LINENO: result: $CC" >&5
4259 echo "${ECHO_T}$CC" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
4265 fi
4266 if test -z "$ac_cv_prog_CC"; then
4267   ac_ct_CC=$CC
4268   # Extract the first word of "gcc", so it can be a program name with args.
4269 set dummy gcc; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4273   echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275   if test -n "$ac_ct_CC"; then
4276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_prog_ac_ct_CC="gcc"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292 fi
4293 fi
4294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4295 if test -n "$ac_ct_CC"; then
4296   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4297 echo "${ECHO_T}$ac_ct_CC" >&6
4298 else
4299   echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4301 fi
4302
4303   CC=$ac_ct_CC
4304 else
4305   CC="$ac_cv_prog_CC"
4306 fi
4307
4308 if test -z "$CC"; then
4309   if test -n "$ac_tool_prefix"; then
4310   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}cc; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_prog_CC+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317   if test -n "$CC"; then
4318   ac_cv_prog_CC="$CC" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325   for ac_exec_ext in '' $ac_executable_extensions; do
4326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327     ac_cv_prog_CC="${ac_tool_prefix}cc"
4328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329     break 2
4330   fi
4331 done
4332 done
4333
4334 fi
4335 fi
4336 CC=$ac_cv_prog_CC
4337 if test -n "$CC"; then
4338   echo "$as_me:$LINENO: result: $CC" >&5
4339 echo "${ECHO_T}$CC" >&6
4340 else
4341   echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4343 fi
4344
4345 fi
4346 if test -z "$ac_cv_prog_CC"; then
4347   ac_ct_CC=$CC
4348   # Extract the first word of "cc", so it can be a program name with args.
4349 set dummy cc; ac_word=$2
4350 echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   if test -n "$ac_ct_CC"; then
4356   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365     ac_cv_prog_ac_ct_CC="cc"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371
4372 fi
4373 fi
4374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4375 if test -n "$ac_ct_CC"; then
4376   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4377 echo "${ECHO_T}$ac_ct_CC" >&6
4378 else
4379   echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4381 fi
4382
4383   CC=$ac_ct_CC
4384 else
4385   CC="$ac_cv_prog_CC"
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390   # Extract the first word of "cc", so it can be a program name with args.
4391 set dummy cc; ac_word=$2
4392 echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394 if test "${ac_cv_prog_CC+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$CC"; then
4398   ac_cv_prog_CC="$CC" # Let the user override the test.
4399 else
4400   ac_prog_rejected=no
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406   for ac_exec_ext in '' $ac_executable_extensions; do
4407   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4409        ac_prog_rejected=yes
4410        continue
4411      fi
4412     ac_cv_prog_CC="cc"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418
4419 if test $ac_prog_rejected = yes; then
4420   # We found a bogon in the path, so make sure we never use it.
4421   set dummy $ac_cv_prog_CC
4422   shift
4423   if test $# != 0; then
4424     # We chose a different compiler from the bogus one.
4425     # However, it has the same basename, so the bogon will be chosen
4426     # first if we set CC to just the basename; use the full file name.
4427     shift
4428     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4429   fi
4430 fi
4431 fi
4432 fi
4433 CC=$ac_cv_prog_CC
4434 if test -n "$CC"; then
4435   echo "$as_me:$LINENO: result: $CC" >&5
4436 echo "${ECHO_T}$CC" >&6
4437 else
4438   echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4440 fi
4441
4442 fi
4443 if test -z "$CC"; then
4444   if test -n "$ac_tool_prefix"; then
4445   for ac_prog in cl
4446   do
4447     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_CC+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   if test -n "$CC"; then
4455   ac_cv_prog_CC="$CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470
4471 fi
4472 fi
4473 CC=$ac_cv_prog_CC
4474 if test -n "$CC"; then
4475   echo "$as_me:$LINENO: result: $CC" >&5
4476 echo "${ECHO_T}$CC" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482     test -n "$CC" && break
4483   done
4484 fi
4485 if test -z "$CC"; then
4486   ac_ct_CC=$CC
4487   for ac_prog in cl
4488 do
4489   # Extract the first word of "$ac_prog", so it can be a program name with args.
4490 set dummy $ac_prog; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test -n "$ac_ct_CC"; then
4497   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502   IFS=$as_save_IFS
4503   test -z "$as_dir" && as_dir=.
4504   for ac_exec_ext in '' $ac_executable_extensions; do
4505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506     ac_cv_prog_ac_ct_CC="$ac_prog"
4507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508     break 2
4509   fi
4510 done
4511 done
4512
4513 fi
4514 fi
4515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4516 if test -n "$ac_ct_CC"; then
4517   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4518 echo "${ECHO_T}$ac_ct_CC" >&6
4519 else
4520   echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4522 fi
4523
4524   test -n "$ac_ct_CC" && break
4525 done
4526
4527   CC=$ac_ct_CC
4528 fi
4529
4530 fi
4531
4532
4533 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4534 See \`config.log' for more details." >&5
4535 echo "$as_me: error: no acceptable C compiler found in \$PATH
4536 See \`config.log' for more details." >&2;}
4537    { (exit 1); exit 1; }; }
4538
4539 # Provide some information about the compiler.
4540 echo "$as_me:$LINENO:" \
4541      "checking for C compiler version" >&5
4542 ac_compiler=`set X $ac_compile; echo $2`
4543 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4544   (eval $ac_compiler --version </dev/null >&5) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); }
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4549   (eval $ac_compiler -v </dev/null >&5) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4554   (eval $ac_compiler -V </dev/null >&5) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }
4558
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565
4566 int
4567 main ()
4568 {
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 ac_clean_files_save=$ac_clean_files
4575 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4576 # Try to create an executable without -o first, disregard a.out.
4577 # It will help us diagnose broken compilers, and finding out an intuition
4578 # of exeext.
4579 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4580 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4581 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4583   (eval $ac_link_default) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); }; then
4587   # Find the output, starting from the most likely.  This scheme is
4588 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4589 # resort.
4590
4591 # Be careful to initialize this variable, since it used to be cached.
4592 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4593 ac_cv_exeext=
4594 # b.out is created by i960 compilers.
4595 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4596 do
4597   test -f "$ac_file" || continue
4598   case $ac_file in
4599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4600         ;;
4601     conftest.$ac_ext )
4602         # This is the source file.
4603         ;;
4604     [ab].out )
4605         # We found the default executable, but exeext='' is most
4606         # certainly right.
4607         break;;
4608     *.* )
4609         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4610         # FIXME: I believe we export ac_cv_exeext for Libtool,
4611         # but it would be cool to find out if it's true.  Does anybody
4612         # maintain Libtool? --akim.
4613         export ac_cv_exeext
4614         break;;
4615     * )
4616         break;;
4617   esac
4618 done
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4624 See \`config.log' for more details." >&5
4625 echo "$as_me: error: C compiler cannot create executables
4626 See \`config.log' for more details." >&2;}
4627    { (exit 77); exit 77; }; }
4628 fi
4629
4630 ac_exeext=$ac_cv_exeext
4631 echo "$as_me:$LINENO: result: $ac_file" >&5
4632 echo "${ECHO_T}$ac_file" >&6
4633
4634 # Check the compiler produces executables we can run.  If not, either
4635 # the compiler is broken, or we cross compile.
4636 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4637 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4639 # If not cross compiling, check that we can run a simple program.
4640 if test "$cross_compiling" != yes; then
4641   if { ac_try='./$ac_file'
4642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643   (eval $ac_try) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); }; }; then
4647     cross_compiling=no
4648   else
4649     if test "$cross_compiling" = maybe; then
4650         cross_compiling=yes
4651     else
4652         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4653 If you meant to cross compile, use \`--host'.
4654 See \`config.log' for more details." >&5
4655 echo "$as_me: error: cannot run C compiled programs.
4656 If you meant to cross compile, use \`--host'.
4657 See \`config.log' for more details." >&2;}
4658    { (exit 1); exit 1; }; }
4659     fi
4660   fi
4661 fi
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4664
4665 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4666 ac_clean_files=$ac_clean_files_save
4667 # Check the compiler produces executables we can run.  If not, either
4668 # the compiler is broken, or we cross compile.
4669 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4670 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4671 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4672 echo "${ECHO_T}$cross_compiling" >&6
4673
4674 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4675 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677   (eval $ac_link) 2>&5
4678   ac_status=$?
4679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); }; then
4681   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4682 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4683 # work properly (i.e., refer to `conftest.exe'), while it won't with
4684 # `rm'.
4685 for ac_file in conftest.exe conftest conftest.*; do
4686   test -f "$ac_file" || continue
4687   case $ac_file in
4688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4689     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4690           export ac_cv_exeext
4691           break;;
4692     * ) break;;
4693   esac
4694 done
4695 else
4696   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4699 See \`config.log' for more details." >&2;}
4700    { (exit 1); exit 1; }; }
4701 fi
4702
4703 rm -f conftest$ac_cv_exeext
4704 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4705 echo "${ECHO_T}$ac_cv_exeext" >&6
4706
4707 rm -f conftest.$ac_ext
4708 EXEEXT=$ac_cv_exeext
4709 ac_exeext=$EXEEXT
4710 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4711 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4712 if test "${ac_cv_objext+set}" = set; then
4713   echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715   cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721
4722 int
4723 main ()
4724 {
4725
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.o conftest.obj
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732   (eval $ac_compile) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; then
4736   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4737   case $ac_file in
4738     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4739     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4740        break;;
4741   esac
4742 done
4743 else
4744   echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4750 See \`config.log' for more details." >&2;}
4751    { (exit 1); exit 1; }; }
4752 fi
4753
4754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4755 fi
4756 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4757 echo "${ECHO_T}$ac_cv_objext" >&6
4758 OBJEXT=$ac_cv_objext
4759 ac_objext=$OBJEXT
4760 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   cat >conftest.$ac_ext <<_ACEOF
4766 /* confdefs.h.  */
4767 _ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h.  */
4771
4772 int
4773 main ()
4774 {
4775 #ifndef __GNUC__
4776        choke me
4777 #endif
4778
4779   ;
4780   return 0;
4781 }
4782 _ACEOF
4783 rm -f conftest.$ac_objext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785   (eval $ac_compile) 2>conftest.er1
4786   ac_status=$?
4787   grep -v '^ *+' conftest.er1 >conftest.err
4788   rm -f conftest.er1
4789   cat conftest.err >&5
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); } &&
4792          { ac_try='test -z "$ac_c_werror_flag"
4793                          || test ! -s conftest.err'
4794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795   (eval $ac_try) 2>&5
4796   ac_status=$?
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); }; } &&
4799          { ac_try='test -s conftest.$ac_objext'
4800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801   (eval $ac_try) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; }; then
4805   ac_compiler_gnu=yes
4806 else
4807   echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4809
4810 ac_compiler_gnu=no
4811 fi
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4814
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4817 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4818 GCC=`test $ac_compiler_gnu = yes && echo yes`
4819 ac_test_CFLAGS=${CFLAGS+set}
4820 ac_save_CFLAGS=$CFLAGS
4821 CFLAGS="-g"
4822 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4823 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4824 if test "${ac_cv_prog_cc_g+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h.  */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h.  */
4833
4834 int
4835 main ()
4836 {
4837
4838   ;
4839   return 0;
4840 }
4841 _ACEOF
4842 rm -f conftest.$ac_objext
4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844   (eval $ac_compile) 2>conftest.er1
4845   ac_status=$?
4846   grep -v '^ *+' conftest.er1 >conftest.err
4847   rm -f conftest.er1
4848   cat conftest.err >&5
4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } &&
4851          { ac_try='test -z "$ac_c_werror_flag"
4852                          || test ! -s conftest.err'
4853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854   (eval $ac_try) 2>&5
4855   ac_status=$?
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); }; } &&
4858          { ac_try='test -s conftest.$ac_objext'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; }; then
4864   ac_cv_prog_cc_g=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_cv_prog_cc_g=no
4870 fi
4871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4872 fi
4873 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4875 if test "$ac_test_CFLAGS" = set; then
4876   CFLAGS=$ac_save_CFLAGS
4877 elif test $ac_cv_prog_cc_g = yes; then
4878   if test "$GCC" = yes; then
4879     CFLAGS="-g -O2"
4880   else
4881     CFLAGS="-g"
4882   fi
4883 else
4884   if test "$GCC" = yes; then
4885     CFLAGS="-O2"
4886   else
4887     CFLAGS=
4888   fi
4889 fi
4890 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4891 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4892 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   ac_cv_prog_cc_stdc=no
4896 ac_save_CC=$CC
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #include <stdarg.h>
4904 #include <stdio.h>
4905 #include <sys/types.h>
4906 #include <sys/stat.h>
4907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4908 struct buf { int x; };
4909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4910 static char *e (p, i)
4911      char **p;
4912      int i;
4913 {
4914   return p[i];
4915 }
4916 static char *f (char * (*g) (char **, int), char **p, ...)
4917 {
4918   char *s;
4919   va_list v;
4920   va_start (v,p);
4921   s = g (p, va_arg (v,int));
4922   va_end (v);
4923   return s;
4924 }
4925
4926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4927    function prototypes and stuff, but not '\xHH' hex character constants.
4928    These don't provoke an error unfortunately, instead are silently treated
4929    as 'x'.  The following induces an error, until -std1 is added to get
4930    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4931    array size at least.  It's necessary to write '\x00'==0 to get something
4932    that's true only with -std1.  */
4933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4934
4935 int test (int i, double x);
4936 struct s1 {int (*f) (int a);};
4937 struct s2 {int (*f) (double a);};
4938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4939 int argc;
4940 char **argv;
4941 int
4942 main ()
4943 {
4944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 # Don't try gcc -ansi; that turns off useful extensions and
4950 # breaks some systems' header files.
4951 # AIX                   -qlanglvl=ansi
4952 # Ultrix and OSF/1      -std1
4953 # HP-UX 10.20 and later -Ae
4954 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4955 # SVR4                  -Xc -D__EXTENSIONS__
4956 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4957 do
4958   CC="$ac_save_CC $ac_arg"
4959   rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -z "$ac_c_werror_flag"
4969                          || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_cv_prog_cc_stdc=$ac_arg
4982 break
4983 else
4984   echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 fi
4988 rm -f conftest.err conftest.$ac_objext
4989 done
4990 rm -f conftest.$ac_ext conftest.$ac_objext
4991 CC=$ac_save_CC
4992
4993 fi
4994
4995 case "x$ac_cv_prog_cc_stdc" in
4996   x|xno)
4997     echo "$as_me:$LINENO: result: none needed" >&5
4998 echo "${ECHO_T}none needed" >&6 ;;
4999   *)
5000     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5002     CC="$CC $ac_cv_prog_cc_stdc" ;;
5003 esac
5004
5005 # Some people use a C++ compiler to compile C.  Since we use `exit',
5006 # in C++ we need to declare it.  In case someone uses the same compiler
5007 # for both compiling C and C++ we need to have the C++ compiler decide
5008 # the declaration of exit, since it's the most demanding environment.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #ifndef __cplusplus
5011   choke me
5012 #endif
5013 _ACEOF
5014 rm -f conftest.$ac_objext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016   (eval $ac_compile) 2>conftest.er1
5017   ac_status=$?
5018   grep -v '^ *+' conftest.er1 >conftest.err
5019   rm -f conftest.er1
5020   cat conftest.err >&5
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); } &&
5023          { ac_try='test -z "$ac_c_werror_flag"
5024                          || test ! -s conftest.err'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; } &&
5030          { ac_try='test -s conftest.$ac_objext'
5031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032   (eval $ac_try) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   for ac_declaration in \
5037    '' \
5038    'extern "C" void std::exit (int) throw (); using std::exit;' \
5039    'extern "C" void std::exit (int); using std::exit;' \
5040    'extern "C" void exit (int) throw ();' \
5041    'extern "C" void exit (int);' \
5042    'void exit (int);'
5043 do
5044   cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h.  */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h.  */
5050 $ac_declaration
5051 #include <stdlib.h>
5052 int
5053 main ()
5054 {
5055 exit (42);
5056   ;
5057   return 0;
5058 }
5059 _ACEOF
5060 rm -f conftest.$ac_objext
5061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062   (eval $ac_compile) 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } &&
5069          { ac_try='test -z "$ac_c_werror_flag"
5070                          || test ! -s conftest.err'
5071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072   (eval $ac_try) 2>&5
5073   ac_status=$?
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); }; } &&
5076          { ac_try='test -s conftest.$ac_objext'
5077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078   (eval $ac_try) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); }; }; then
5082   :
5083 else
5084   echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 continue
5088 fi
5089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 $ac_declaration
5097 int
5098 main ()
5099 {
5100 exit (42);
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105 rm -f conftest.$ac_objext
5106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107   (eval $ac_compile) 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } &&
5114          { ac_try='test -z "$ac_c_werror_flag"
5115                          || test ! -s conftest.err'
5116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; } &&
5121          { ac_try='test -s conftest.$ac_objext'
5122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123   (eval $ac_try) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }; }; then
5127   break
5128 else
5129   echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132 fi
5133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134 done
5135 rm -f conftest*
5136 if test -n "$ac_declaration"; then
5137   echo '#ifdef __cplusplus' >>confdefs.h
5138   echo $ac_declaration      >>confdefs.h
5139   echo '#endif'             >>confdefs.h
5140 fi
5141
5142 else
5143   echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 fi
5147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5148 ac_ext=c
5149 ac_cpp='$CPP $CPPFLAGS'
5150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5153
5154 depcc="$CC"   am_compiler_list=
5155
5156 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5157 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5158 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5162   # We make a subdir and do the tests there.  Otherwise we can end up
5163   # making bogus files that we don't know about and never remove.  For
5164   # instance it was reported that on HP-UX the gcc test will end up
5165   # making a dummy file named `D' -- because `-MD' means `put the output
5166   # in D'.
5167   mkdir conftest.dir
5168   # Copy depcomp to subdir because otherwise we won't find it if we're
5169   # using a relative directory.
5170   cp "$am_depcomp" conftest.dir
5171   cd conftest.dir
5172   # We will build objects and dependencies in a subdirectory because
5173   # it helps to detect inapplicable dependency modes.  For instance
5174   # both Tru64's cc and ICC support -MD to output dependencies as a
5175   # side effect of compilation, but ICC will put the dependencies in
5176   # the current directory while Tru64 will put them in the object
5177   # directory.
5178   mkdir sub
5179
5180   am_cv_CC_dependencies_compiler_type=none
5181   if test "$am_compiler_list" = ""; then
5182      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183   fi
5184   for depmode in $am_compiler_list; do
5185     # Setup a source with many dependencies, because some compilers
5186     # like to wrap large dependency lists on column 80 (with \), and
5187     # we should not choose a depcomp mode which is confused by this.
5188     #
5189     # We need to recreate these files for each test, as the compiler may
5190     # overwrite some of them when testing with obscure command lines.
5191     # This happens at least with the AIX C compiler.
5192     : > sub/conftest.c
5193     for i in 1 2 3 4 5 6; do
5194       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5195       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5196       # Solaris 8's {/usr,}/bin/sh.
5197       touch sub/conftst$i.h
5198     done
5199     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5200
5201     case $depmode in
5202     nosideeffect)
5203       # after this tag, mechanisms are not by side-effect, so they'll
5204       # only be used when explicitly requested
5205       if test "x$enable_dependency_tracking" = xyes; then
5206         continue
5207       else
5208         break
5209       fi
5210       ;;
5211     none) break ;;
5212     esac
5213     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5214     # mode.  It turns out that the SunPro C++ compiler does not properly
5215     # handle `-M -o', and we need to detect this.
5216     if depmode=$depmode \
5217        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5218        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5219        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5220          >/dev/null 2>conftest.err &&
5221        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5222        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5223        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5224       # icc doesn't choke on unknown options, it will just issue warnings
5225       # or remarks (even with -Werror).  So we grep stderr for any message
5226       # that says an option was ignored or not supported.
5227       # When given -MP, icc 7.0 and 7.1 complain thusly:
5228       #   icc: Command line warning: ignoring option '-M'; no argument required
5229       # The diagnosis changed in icc 8.0:
5230       #   icc: Command line remark: option '-MP' not supported
5231       if (grep 'ignoring option' conftest.err ||
5232           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5233         am_cv_CC_dependencies_compiler_type=$depmode
5234         break
5235       fi
5236     fi
5237   done
5238
5239   cd ..
5240   rm -rf conftest.dir
5241 else
5242   am_cv_CC_dependencies_compiler_type=none
5243 fi
5244
5245 fi
5246 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5247 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5248 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5249
5250
5251
5252 if
5253   test "x$enable_dependency_tracking" != xno \
5254   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5255   am__fastdepCC_TRUE=
5256   am__fastdepCC_FALSE='#'
5257 else
5258   am__fastdepCC_TRUE='#'
5259   am__fastdepCC_FALSE=
5260 fi
5261
5262
5263 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5264 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5265 if test "${lt_cv_path_SED+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   # Loop through the user's path and test for sed and gsed.
5269 # Then use that list of sed's as ones to test for truncation.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275   for lt_ac_prog in sed gsed; do
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5278         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5279       fi
5280     done
5281   done
5282 done
5283 lt_ac_max=0
5284 lt_ac_count=0
5285 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5286 # along with /bin/sed that truncates output.
5287 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5288   test ! -f $lt_ac_sed && continue
5289   cat /dev/null > conftest.in
5290   lt_ac_count=0
5291   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5292   # Check for GNU sed and select it if it is found.
5293   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5294     lt_cv_path_SED=$lt_ac_sed
5295     break
5296   fi
5297   while true; do
5298     cat conftest.in conftest.in >conftest.tmp
5299     mv conftest.tmp conftest.in
5300     cp conftest.in conftest.nl
5301     echo >>conftest.nl
5302     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5303     cmp -s conftest.out conftest.nl || break
5304     # 10000 chars as input seems more than enough
5305     test $lt_ac_count -gt 10 && break
5306     lt_ac_count=`expr $lt_ac_count + 1`
5307     if test $lt_ac_count -gt $lt_ac_max; then
5308       lt_ac_max=$lt_ac_count
5309       lt_cv_path_SED=$lt_ac_sed
5310     fi
5311   done
5312 done
5313
5314 fi
5315
5316 SED=$lt_cv_path_SED
5317 echo "$as_me:$LINENO: result: $SED" >&5
5318 echo "${ECHO_T}$SED" >&6
5319
5320 echo "$as_me:$LINENO: checking for egrep" >&5
5321 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5322 if test "${ac_cv_prog_egrep+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5326     then ac_cv_prog_egrep='grep -E'
5327     else ac_cv_prog_egrep='egrep'
5328     fi
5329 fi
5330 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5331 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5332  EGREP=$ac_cv_prog_egrep
5333
5334
5335
5336 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5337 if test "${with_gnu_ld+set}" = set; then
5338   withval="$with_gnu_ld"
5339   test "$withval" = no || with_gnu_ld=yes
5340 else
5341   with_gnu_ld=no
5342 fi;
5343 ac_prog=ld
5344 if test "$GCC" = yes; then
5345   # Check if gcc -print-prog-name=ld gives a path.
5346   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5347 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5348   case $host in
5349   *-*-mingw*)
5350     # gcc leaves a trailing carriage return which upsets mingw
5351     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5352   *)
5353     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5354   esac
5355   case $ac_prog in
5356     # Accept absolute paths.
5357     [\\/]* | ?:[\\/]*)
5358       re_direlt='/[^/][^/]*/\.\./'
5359       # Canonicalize the pathname of ld
5360       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5361       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5362         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5363       done
5364       test -z "$LD" && LD="$ac_prog"
5365       ;;
5366   "")
5367     # If it fails, then pretend we aren't using GCC.
5368     ac_prog=ld
5369     ;;
5370   *)
5371     # If it is relative, then search for the first ld in PATH.
5372     with_gnu_ld=unknown
5373     ;;
5374   esac
5375 elif test "$with_gnu_ld" = yes; then
5376   echo "$as_me:$LINENO: checking for GNU ld" >&5
5377 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5378 else
5379   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5380 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5381 fi
5382 if test "${lt_cv_path_LD+set}" = set; then
5383   echo $ECHO_N "(cached) $ECHO_C" >&6
5384 else
5385   if test -z "$LD"; then
5386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5387   for ac_dir in $PATH; do
5388     IFS="$lt_save_ifs"
5389     test -z "$ac_dir" && ac_dir=.
5390     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5391       lt_cv_path_LD="$ac_dir/$ac_prog"
5392       # Check to see if the program is GNU ld.  I'd rather use --version,
5393       # but apparently some variants of GNU ld only accept -v.
5394       # Break only if it was the GNU/non-GNU ld that we prefer.
5395       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5396       *GNU* | *'with BFD'*)
5397         test "$with_gnu_ld" != no && break
5398         ;;
5399       *)
5400         test "$with_gnu_ld" != yes && break
5401         ;;
5402       esac
5403     fi
5404   done
5405   IFS="$lt_save_ifs"
5406 else
5407   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5408 fi
5409 fi
5410
5411 LD="$lt_cv_path_LD"
5412 if test -n "$LD"; then
5413   echo "$as_me:$LINENO: result: $LD" >&5
5414 echo "${ECHO_T}$LD" >&6
5415 else
5416   echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6
5418 fi
5419 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5420 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5421    { (exit 1); exit 1; }; }
5422 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5423 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5424 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5425   echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5428 case `$LD -v 2>&1 </dev/null` in
5429 *GNU* | *'with BFD'*)
5430   lt_cv_prog_gnu_ld=yes
5431   ;;
5432 *)
5433   lt_cv_prog_gnu_ld=no
5434   ;;
5435 esac
5436 fi
5437 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5438 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5439 with_gnu_ld=$lt_cv_prog_gnu_ld
5440
5441
5442 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5443 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5444 if test "${lt_cv_ld_reload_flag+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   lt_cv_ld_reload_flag='-r'
5448 fi
5449 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5450 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5451 reload_flag=$lt_cv_ld_reload_flag
5452 case $reload_flag in
5453 "" | " "*) ;;
5454 *) reload_flag=" $reload_flag" ;;
5455 esac
5456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457 case $host_os in
5458   darwin*)
5459     if test "$GCC" = yes; then
5460       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5461     else
5462       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5463     fi
5464     ;;
5465 esac
5466
5467 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5468 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5469 if test "${lt_cv_path_NM+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   if test -n "$NM"; then
5473   # Let the user override the test.
5474   lt_cv_path_NM="$NM"
5475 else
5476   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5477   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5478     IFS="$lt_save_ifs"
5479     test -z "$ac_dir" && ac_dir=.
5480     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5481     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5482       # Check to see if the nm accepts a BSD-compat flag.
5483       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5484       #   nm: unknown option "B" ignored
5485       # Tru64's nm complains that /dev/null is an invalid object file
5486       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5487       */dev/null* | *'Invalid file or object type'*)
5488         lt_cv_path_NM="$tmp_nm -B"
5489         break
5490         ;;
5491       *)
5492         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5493         */dev/null*)
5494           lt_cv_path_NM="$tmp_nm -p"
5495           break
5496           ;;
5497         *)
5498           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5499           continue # so that we can try to find one that supports BSD flags
5500           ;;
5501         esac
5502       esac
5503     fi
5504   done
5505   IFS="$lt_save_ifs"
5506   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5507 fi
5508 fi
5509 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5510 echo "${ECHO_T}$lt_cv_path_NM" >&6
5511 NM="$lt_cv_path_NM"
5512
5513 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5514 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5515 LN_S=$as_ln_s
5516 if test "$LN_S" = "ln -s"; then
5517   echo "$as_me:$LINENO: result: yes" >&5
5518 echo "${ECHO_T}yes" >&6
5519 else
5520   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5521 echo "${ECHO_T}no, using $LN_S" >&6
5522 fi
5523
5524 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5525 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5526 if test "${lt_cv_deplibs_check_method+set}" = set; then
5527   echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529   lt_cv_file_magic_cmd='$MAGIC_CMD'
5530 lt_cv_file_magic_test_file=
5531 lt_cv_deplibs_check_method='unknown'
5532 # Need to set the preceding variable on all platforms that support
5533 # interlibrary dependencies.
5534 # 'none' -- dependencies not supported.
5535 # `unknown' -- same as none, but documents that we really don't know.
5536 # 'pass_all' -- all dependencies passed with no checks.
5537 # 'test_compile' -- check by making test program.
5538 # 'file_magic [[regex]]' -- check by looking for files in library path
5539 # which responds to the $file_magic_cmd with a given extended regex.
5540 # If you have `file' or equivalent on your system and you're not sure
5541 # whether `pass_all' will *always* work, you probably want this one.
5542
5543 case $host_os in
5544 aix4* | aix5*)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 beos*)
5549   lt_cv_deplibs_check_method=pass_all
5550   ;;
5551
5552 bsdi[45]*)
5553   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5554   lt_cv_file_magic_cmd='/usr/bin/file -L'
5555   lt_cv_file_magic_test_file=/shlib/libc.so
5556   ;;
5557
5558 cygwin*)
5559   # func_win32_libid is a shell function defined in ltmain.sh
5560   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5561   lt_cv_file_magic_cmd='func_win32_libid'
5562   ;;
5563
5564 mingw* | pw32*)
5565   # Base MSYS/MinGW do not provide the 'file' command needed by
5566   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5567   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5568   lt_cv_file_magic_cmd='$OBJDUMP -f'
5569   ;;
5570
5571 darwin* | rhapsody*)
5572   lt_cv_deplibs_check_method=pass_all
5573   ;;
5574
5575 freebsd* | kfreebsd*-gnu | dragonfly*)
5576   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5577     case $host_cpu in
5578     i*86 )
5579       # Not sure whether the presence of OpenBSD here was a mistake.
5580       # Let's accept both of them until this is cleared up.
5581       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5582       lt_cv_file_magic_cmd=/usr/bin/file
5583       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5584       ;;
5585     esac
5586   else
5587     lt_cv_deplibs_check_method=pass_all
5588   fi
5589   ;;
5590
5591 gnu*)
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 hpux10.20* | hpux11*)
5596   lt_cv_file_magic_cmd=/usr/bin/file
5597   case $host_cpu in
5598   ia64*)
5599     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5600     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5601     ;;
5602   hppa*64*)
5603     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]'
5604     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5605     ;;
5606   *)
5607     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5608     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5609     ;;
5610   esac
5611   ;;
5612
5613 irix5* | irix6* | nonstopux*)
5614   case $LD in
5615   *-32|*"-32 ") libmagic=32-bit;;
5616   *-n32|*"-n32 ") libmagic=N32;;
5617   *-64|*"-64 ") libmagic=64-bit;;
5618   *) libmagic=never-match;;
5619   esac
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 # This must be Linux ELF.
5624 linux*)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 netbsd*)
5629   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5631   else
5632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5633   fi
5634   ;;
5635
5636 newos6*)
5637   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5638   lt_cv_file_magic_cmd=/usr/bin/file
5639   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5640   ;;
5641
5642 nto-qnx*)
5643   lt_cv_deplibs_check_method=unknown
5644   ;;
5645
5646 openbsd*)
5647   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5649   else
5650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651   fi
5652   ;;
5653
5654 osf3* | osf4* | osf5*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 sco3.2v5*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 solaris*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5667   case $host_vendor in
5668   motorola)
5669     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]'
5670     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5671     ;;
5672   ncr)
5673     lt_cv_deplibs_check_method=pass_all
5674     ;;
5675   sequent)
5676     lt_cv_file_magic_cmd='/bin/file'
5677     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5678     ;;
5679   sni)
5680     lt_cv_file_magic_cmd='/bin/file'
5681     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5682     lt_cv_file_magic_test_file=/lib/libc.so
5683     ;;
5684   siemens)
5685     lt_cv_deplibs_check_method=pass_all
5686     ;;
5687   esac
5688   ;;
5689
5690 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693 esac
5694
5695 fi
5696 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5697 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5698 file_magic_cmd=$lt_cv_file_magic_cmd
5699 deplibs_check_method=$lt_cv_deplibs_check_method
5700 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5701
5702
5703
5704
5705 # If no C compiler was specified, use CC.
5706 LTCC=${LTCC-"$CC"}
5707
5708 # Allow CC to be a program name with arguments.
5709 compiler=$CC
5710
5711
5712 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5713 if test "${enable_libtool_lock+set}" = set; then
5714   enableval="$enable_libtool_lock"
5715
5716 fi;
5717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5718
5719 # Some flags need to be propagated to the compiler or linker for good
5720 # libtool support.
5721 case $host in
5722 ia64-*-hpux*)
5723   # Find out which ABI we are using.
5724   echo 'int i;' > conftest.$ac_ext
5725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726   (eval $ac_compile) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; then
5730     case `/usr/bin/file conftest.$ac_objext` in
5731     *ELF-32*)
5732       HPUX_IA64_MODE="32"
5733       ;;
5734     *ELF-64*)
5735       HPUX_IA64_MODE="64"
5736       ;;
5737     esac
5738   fi
5739   rm -rf conftest*
5740   ;;
5741 *-*-irix6*)
5742   # Find out which ABI we are using.
5743   echo '#line 5743 "configure"' > conftest.$ac_ext
5744   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5745   (eval $ac_compile) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; then
5749    if test "$lt_cv_prog_gnu_ld" = yes; then
5750     case `/usr/bin/file conftest.$ac_objext` in
5751     *32-bit*)
5752       LD="${LD-ld} -melf32bsmip"
5753       ;;
5754     *N32*)
5755       LD="${LD-ld} -melf32bmipn32"
5756       ;;
5757     *64-bit*)
5758       LD="${LD-ld} -melf64bmip"
5759       ;;
5760     esac
5761    else
5762     case `/usr/bin/file conftest.$ac_objext` in
5763     *32-bit*)
5764       LD="${LD-ld} -32"
5765       ;;
5766     *N32*)
5767       LD="${LD-ld} -n32"
5768       ;;
5769     *64-bit*)
5770       LD="${LD-ld} -64"
5771       ;;
5772     esac
5773    fi
5774   fi
5775   rm -rf conftest*
5776   ;;
5777
5778 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5779   # Find out which ABI we are using.
5780   echo 'int i;' > conftest.$ac_ext
5781   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782   (eval $ac_compile) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; then
5786     case `/usr/bin/file conftest.o` in
5787     *32-bit*)
5788       case $host in
5789         x86_64-*linux*)
5790           LD="${LD-ld} -m elf_i386"
5791           ;;
5792         ppc64-*linux*|powerpc64-*linux*)
5793           LD="${LD-ld} -m elf32ppclinux"
5794           ;;
5795         s390x-*linux*)
5796           LD="${LD-ld} -m elf_s390"
5797           ;;
5798         sparc64-*linux*)
5799           LD="${LD-ld} -m elf32_sparc"
5800           ;;
5801       esac
5802       ;;
5803     *64-bit*)
5804       case $host in
5805         x86_64-*linux*)
5806           LD="${LD-ld} -m elf_x86_64"
5807           ;;
5808         ppc*-*linux*|powerpc*-*linux*)
5809           LD="${LD-ld} -m elf64ppc"
5810           ;;
5811         s390*-*linux*)
5812           LD="${LD-ld} -m elf64_s390"
5813           ;;
5814         sparc*-*linux*)
5815           LD="${LD-ld} -m elf64_sparc"
5816           ;;
5817       esac
5818       ;;
5819     esac
5820   fi
5821   rm -rf conftest*
5822   ;;
5823
5824 *-*-sco3.2v5*)
5825   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5826   SAVE_CFLAGS="$CFLAGS"
5827   CFLAGS="$CFLAGS -belf"
5828   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5829 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5830 if test "${lt_cv_cc_needs_belf+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   ac_ext=c
5834 ac_cpp='$CPP $CPPFLAGS'
5835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5838
5839      cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845
5846 int
5847 main ()
5848 {
5849
5850   ;
5851   return 0;
5852 }
5853 _ACEOF
5854 rm -f conftest.$ac_objext conftest$ac_exeext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5856   (eval $ac_link) 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_c_werror_flag"
5864                          || test ! -s conftest.err'
5865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866   (eval $ac_try) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; } &&
5870          { ac_try='test -s conftest$ac_exeext'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   lt_cv_cc_needs_belf=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 lt_cv_cc_needs_belf=no
5882 fi
5883 rm -f conftest.err conftest.$ac_objext \
5884       conftest$ac_exeext conftest.$ac_ext
5885      ac_ext=c
5886 ac_cpp='$CPP $CPPFLAGS'
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890
5891 fi
5892 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5893 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5894   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5895     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5896     CFLAGS="$SAVE_CFLAGS"
5897   fi
5898   ;;
5899 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5900   if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5903 echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test -n "$DLLTOOL"; then
5909   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924
5925 fi
5926 fi
5927 DLLTOOL=$ac_cv_prog_DLLTOOL
5928 if test -n "$DLLTOOL"; then
5929   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5930 echo "${ECHO_T}$DLLTOOL" >&6
5931 else
5932   echo "$as_me:$LINENO: result: no" >&5
5933 echo "${ECHO_T}no" >&6
5934 fi
5935
5936 fi
5937 if test -z "$ac_cv_prog_DLLTOOL"; then
5938   ac_ct_DLLTOOL=$DLLTOOL
5939   # Extract the first word of "dlltool", so it can be a program name with args.
5940 set dummy dlltool; ac_word=$2
5941 echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   if test -n "$ac_ct_DLLTOOL"; then
5947   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962
5963   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5964 fi
5965 fi
5966 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5967 if test -n "$ac_ct_DLLTOOL"; then
5968   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5969 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5970 else
5971   echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5973 fi
5974
5975   DLLTOOL=$ac_ct_DLLTOOL
5976 else
5977   DLLTOOL="$ac_cv_prog_DLLTOOL"
5978 fi
5979
5980   if test -n "$ac_tool_prefix"; then
5981   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5982 set dummy ${ac_tool_prefix}as; ac_word=$2
5983 echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5985 if test "${ac_cv_prog_AS+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   if test -n "$AS"; then
5989   ac_cv_prog_AS="$AS" # Let the user override the test.
5990 else
5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 for as_dir in $PATH
5993 do
5994   IFS=$as_save_IFS
5995   test -z "$as_dir" && as_dir=.
5996   for ac_exec_ext in '' $ac_executable_extensions; do
5997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5998     ac_cv_prog_AS="${ac_tool_prefix}as"
5999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6000     break 2
6001   fi
6002 done
6003 done
6004
6005 fi
6006 fi
6007 AS=$ac_cv_prog_AS
6008 if test -n "$AS"; then
6009   echo "$as_me:$LINENO: result: $AS" >&5
6010 echo "${ECHO_T}$AS" >&6
6011 else
6012   echo "$as_me:$LINENO: result: no" >&5
6013 echo "${ECHO_T}no" >&6
6014 fi
6015
6016 fi
6017 if test -z "$ac_cv_prog_AS"; then
6018   ac_ct_AS=$AS
6019   # Extract the first word of "as", so it can be a program name with args.
6020 set dummy as; ac_word=$2
6021 echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6023 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6024   echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026   if test -n "$ac_ct_AS"; then
6027   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6031 do
6032   IFS=$as_save_IFS
6033   test -z "$as_dir" && as_dir=.
6034   for ac_exec_ext in '' $ac_executable_extensions; do
6035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036     ac_cv_prog_ac_ct_AS="as"
6037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038     break 2
6039   fi
6040 done
6041 done
6042
6043   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6044 fi
6045 fi
6046 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6047 if test -n "$ac_ct_AS"; then
6048   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6049 echo "${ECHO_T}$ac_ct_AS" >&6
6050 else
6051   echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6053 fi
6054
6055   AS=$ac_ct_AS
6056 else
6057   AS="$ac_cv_prog_AS"
6058 fi
6059
6060   if test -n "$ac_tool_prefix"; then
6061   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6062 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6063 echo "$as_me:$LINENO: checking for $ac_word" >&5
6064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6065 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   if test -n "$OBJDUMP"; then
6069   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074   IFS=$as_save_IFS
6075   test -z "$as_dir" && as_dir=.
6076   for ac_exec_ext in '' $ac_executable_extensions; do
6077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080     break 2
6081   fi
6082 done
6083 done
6084
6085 fi
6086 fi
6087 OBJDUMP=$ac_cv_prog_OBJDUMP
6088 if test -n "$OBJDUMP"; then
6089   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6090 echo "${ECHO_T}$OBJDUMP" >&6
6091 else
6092   echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6094 fi
6095
6096 fi
6097 if test -z "$ac_cv_prog_OBJDUMP"; then
6098   ac_ct_OBJDUMP=$OBJDUMP
6099   # Extract the first word of "objdump", so it can be a program name with args.
6100 set dummy objdump; ac_word=$2
6101 echo "$as_me:$LINENO: checking for $ac_word" >&5
6102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6103 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   if test -n "$ac_ct_OBJDUMP"; then
6107   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112   IFS=$as_save_IFS
6113   test -z "$as_dir" && as_dir=.
6114   for ac_exec_ext in '' $ac_executable_extensions; do
6115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118     break 2
6119   fi
6120 done
6121 done
6122
6123   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6124 fi
6125 fi
6126 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6127 if test -n "$ac_ct_OBJDUMP"; then
6128   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6129 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6130 else
6131   echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6
6133 fi
6134
6135   OBJDUMP=$ac_ct_OBJDUMP
6136 else
6137   OBJDUMP="$ac_cv_prog_OBJDUMP"
6138 fi
6139
6140   ;;
6141
6142 esac
6143
6144 need_locks="$enable_libtool_lock"
6145
6146
6147 ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6152 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6153 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6154 # On Suns, sometimes $CPP names a directory.
6155 if test -n "$CPP" && test -d "$CPP"; then
6156   CPP=
6157 fi
6158 if test -z "$CPP"; then
6159   if test "${ac_cv_prog_CPP+set}" = set; then
6160   echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162       # Double quotes because CPP needs to be expanded
6163     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6164     do
6165       ac_preproc_ok=false
6166 for ac_c_preproc_warn_flag in '' yes
6167 do
6168   # Use a header file that comes with gcc, so configuring glibc
6169   # with a fresh cross-compiler works.
6170   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6171   # <limits.h> exists even on freestanding compilers.
6172   # On the NeXT, cc -E runs the code through the compiler's parser,
6173   # not just through cpp. "Syntax error" is here to catch this case.
6174   cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180 #ifdef __STDC__
6181 # include <limits.h>
6182 #else
6183 # include <assert.h>
6184 #endif
6185                      Syntax error
6186 _ACEOF
6187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6189   ac_status=$?
6190   grep -v '^ *+' conftest.er1 >conftest.err
6191   rm -f conftest.er1
6192   cat conftest.err >&5
6193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194   (exit $ac_status); } >/dev/null; then
6195   if test -s conftest.err; then
6196     ac_cpp_err=$ac_c_preproc_warn_flag
6197     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6198   else
6199     ac_cpp_err=
6200   fi
6201 else
6202   ac_cpp_err=yes
6203 fi
6204 if test -z "$ac_cpp_err"; then
6205   :
6206 else
6207   echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210   # Broken: fails on valid input.
6211 continue
6212 fi
6213 rm -f conftest.err conftest.$ac_ext
6214
6215   # OK, works on sane cases.  Now check whether non-existent headers
6216   # can be detected and how.
6217   cat >conftest.$ac_ext <<_ACEOF
6218 /* confdefs.h.  */
6219 _ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h.  */
6223 #include <ac_nonexistent.h>
6224 _ACEOF
6225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6227   ac_status=$?
6228   grep -v '^ *+' conftest.er1 >conftest.err
6229   rm -f conftest.er1
6230   cat conftest.err >&5
6231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232   (exit $ac_status); } >/dev/null; then
6233   if test -s conftest.err; then
6234     ac_cpp_err=$ac_c_preproc_warn_flag
6235     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6236   else
6237     ac_cpp_err=
6238   fi
6239 else
6240   ac_cpp_err=yes
6241 fi
6242 if test -z "$ac_cpp_err"; then
6243   # Broken: success on invalid input.
6244 continue
6245 else
6246   echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249   # Passes both tests.
6250 ac_preproc_ok=:
6251 break
6252 fi
6253 rm -f conftest.err conftest.$ac_ext
6254
6255 done
6256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6257 rm -f conftest.err conftest.$ac_ext
6258 if $ac_preproc_ok; then
6259   break
6260 fi
6261
6262     done
6263     ac_cv_prog_CPP=$CPP
6264
6265 fi
6266   CPP=$ac_cv_prog_CPP
6267 else
6268   ac_cv_prog_CPP=$CPP
6269 fi
6270 echo "$as_me:$LINENO: result: $CPP" >&5
6271 echo "${ECHO_T}$CPP" >&6
6272 ac_preproc_ok=false
6273 for ac_c_preproc_warn_flag in '' yes
6274 do
6275   # Use a header file that comes with gcc, so configuring glibc
6276   # with a fresh cross-compiler works.
6277   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6278   # <limits.h> exists even on freestanding compilers.
6279   # On the NeXT, cc -E runs the code through the compiler's parser,
6280   # not just through cpp. "Syntax error" is here to catch this case.
6281   cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #ifdef __STDC__
6288 # include <limits.h>
6289 #else
6290 # include <assert.h>
6291 #endif
6292                      Syntax error
6293 _ACEOF
6294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296   ac_status=$?
6297   grep -v '^ *+' conftest.er1 >conftest.err
6298   rm -f conftest.er1
6299   cat conftest.err >&5
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); } >/dev/null; then
6302   if test -s conftest.err; then
6303     ac_cpp_err=$ac_c_preproc_warn_flag
6304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305   else
6306     ac_cpp_err=
6307   fi
6308 else
6309   ac_cpp_err=yes
6310 fi
6311 if test -z "$ac_cpp_err"; then
6312   :
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317   # Broken: fails on valid input.
6318 continue
6319 fi
6320 rm -f conftest.err conftest.$ac_ext
6321
6322   # OK, works on sane cases.  Now check whether non-existent headers
6323   # can be detected and how.
6324   cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 #include <ac_nonexistent.h>
6331 _ACEOF
6332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6333   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } >/dev/null; then
6340   if test -s conftest.err; then
6341     ac_cpp_err=$ac_c_preproc_warn_flag
6342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6343   else
6344     ac_cpp_err=
6345   fi
6346 else
6347   ac_cpp_err=yes
6348 fi
6349 if test -z "$ac_cpp_err"; then
6350   # Broken: success on invalid input.
6351 continue
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356   # Passes both tests.
6357 ac_preproc_ok=:
6358 break
6359 fi
6360 rm -f conftest.err conftest.$ac_ext
6361
6362 done
6363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6364 rm -f conftest.err conftest.$ac_ext
6365 if $ac_preproc_ok; then
6366   :
6367 else
6368   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6369 See \`config.log' for more details." >&5
6370 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6371 See \`config.log' for more details." >&2;}
6372    { (exit 1); exit 1; }; }
6373 fi
6374
6375 ac_ext=c
6376 ac_cpp='$CPP $CPPFLAGS'
6377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6380
6381
6382 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6384 if test "${ac_cv_header_stdc+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 #include <stdlib.h>
6394 #include <stdarg.h>
6395 #include <string.h>
6396 #include <float.h>
6397
6398 int
6399 main ()
6400 {
6401
6402   ;
6403   return 0;
6404 }
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408   (eval $ac_compile) 2>conftest.er1
6409   ac_status=$?
6410   grep -v '^ *+' conftest.er1 >conftest.err
6411   rm -f conftest.er1
6412   cat conftest.err >&5
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); } &&
6415          { ac_try='test -z "$ac_c_werror_flag"
6416                          || test ! -s conftest.err'
6417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418   (eval $ac_try) 2>&5
6419   ac_status=$?
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); }; } &&
6422          { ac_try='test -s conftest.$ac_objext'
6423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424   (eval $ac_try) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; }; then
6428   ac_cv_header_stdc=yes
6429 else
6430   echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 ac_cv_header_stdc=no
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436
6437 if test $ac_cv_header_stdc = yes; then
6438   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6439   cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 #include <string.h>
6446
6447 _ACEOF
6448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6449   $EGREP "memchr" >/dev/null 2>&1; then
6450   :
6451 else
6452   ac_cv_header_stdc=no
6453 fi
6454 rm -f conftest*
6455
6456 fi
6457
6458 if test $ac_cv_header_stdc = yes; then
6459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6460   cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 #include <stdlib.h>
6467
6468 _ACEOF
6469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6470   $EGREP "free" >/dev/null 2>&1; then
6471   :
6472 else
6473   ac_cv_header_stdc=no
6474 fi
6475 rm -f conftest*
6476
6477 fi
6478
6479 if test $ac_cv_header_stdc = yes; then
6480   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6481   if test "$cross_compiling" = yes; then
6482   :
6483 else
6484   cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h.  */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h.  */
6490 #include <ctype.h>
6491 #if ((' ' & 0x0FF) == 0x020)
6492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6494 #else
6495 # define ISLOWER(c) \
6496                    (('a' <= (c) && (c) <= 'i') \
6497                      || ('j' <= (c) && (c) <= 'r') \
6498                      || ('s' <= (c) && (c) <= 'z'))
6499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6500 #endif
6501
6502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6503 int
6504 main ()
6505 {
6506   int i;
6507   for (i = 0; i < 256; i++)
6508     if (XOR (islower (i), ISLOWER (i))
6509         || toupper (i) != TOUPPER (i))
6510       exit(2);
6511   exit (0);
6512 }
6513 _ACEOF
6514 rm -f conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516   (eval $ac_link) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   :
6526 else
6527   echo "$as_me: program exited with status $ac_status" >&5
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 ( exit $ac_status )
6532 ac_cv_header_stdc=no
6533 fi
6534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 fi
6537 fi
6538 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6539 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6540 if test $ac_cv_header_stdc = yes; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define STDC_HEADERS 1
6544 _ACEOF
6545
6546 fi
6547
6548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6559                   inttypes.h stdint.h unistd.h
6560 do
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 echo "$as_me:$LINENO: checking for $ac_header" >&5
6563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565   echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567   cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 $ac_includes_default
6574
6575 #include <$ac_header>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579   (eval $ac_compile) 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -z "$ac_c_werror_flag"
6587                          || test ! -s conftest.err'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; } &&
6593          { ac_try='test -s conftest.$ac_objext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   eval "$as_ac_Header=yes"
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 eval "$as_ac_Header=no"
6605 fi
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 fi
6608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6611   cat >>confdefs.h <<_ACEOF
6612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614
6615 fi
6616
6617 done
6618
6619
6620
6621 for ac_header in dlfcn.h
6622 do
6623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6625   echo "$as_me:$LINENO: checking for $ac_header" >&5
6626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 fi
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6632 else
6633   # Is the header compilable?
6634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 $ac_includes_default
6643 #include <$ac_header>
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647   (eval $ac_compile) 2>conftest.er1
6648   ac_status=$?
6649   grep -v '^ *+' conftest.er1 >conftest.err
6650   rm -f conftest.er1
6651   cat conftest.err >&5
6652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); } &&
6654          { ac_try='test -z "$ac_c_werror_flag"
6655                          || test ! -s conftest.err'
6656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657   (eval $ac_try) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; } &&
6661          { ac_try='test -s conftest.$ac_objext'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; }; then
6667   ac_header_compiler=yes
6668 else
6669   echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_header_compiler=no
6673 fi
6674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6676 echo "${ECHO_T}$ac_header_compiler" >&6
6677
6678 # Is the header present?
6679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 #include <$ac_header>
6688 _ACEOF
6689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } >/dev/null; then
6697   if test -s conftest.err; then
6698     ac_cpp_err=$ac_c_preproc_warn_flag
6699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6700   else
6701     ac_cpp_err=
6702   fi
6703 else
6704   ac_cpp_err=yes
6705 fi
6706 if test -z "$ac_cpp_err"; then
6707   ac_header_preproc=yes
6708 else
6709   echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6711
6712   ac_header_preproc=no
6713 fi
6714 rm -f conftest.err conftest.$ac_ext
6715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6716 echo "${ECHO_T}$ac_header_preproc" >&6
6717
6718 # So?  What about this header?
6719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6720   yes:no: )
6721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6725     ac_header_preproc=yes
6726     ;;
6727   no:yes:* )
6728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6740     (
6741       cat <<\_ASBOX
6742 ## ------------------------------------------ ##
6743 ## Report this to the AC_PACKAGE_NAME lists.  ##
6744 ## ------------------------------------------ ##
6745 _ASBOX
6746     ) |
6747       sed "s/^/$as_me: WARNING:     /" >&2
6748     ;;
6749 esac
6750 echo "$as_me:$LINENO: checking for $ac_header" >&5
6751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   eval "$as_ac_Header=\$ac_header_preproc"
6756 fi
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6759
6760 fi
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762   cat >>confdefs.h <<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 _ACEOF
6765
6766 fi
6767
6768 done
6769
6770
6771 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6772
6773 # find the maximum length of command line arguments
6774 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6775 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6776 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779     i=0
6780   teststring="ABCD"
6781
6782   case $build_os in
6783   msdosdjgpp*)
6784     # On DJGPP, this test can blow up pretty badly due to problems in libc
6785     # (any single argument exceeding 2000 bytes causes a buffer overrun
6786     # during glob expansion).  Even if it were fixed, the result of this
6787     # check would be larger than it should be.
6788     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6789     ;;
6790
6791   gnu*)
6792     # Under GNU Hurd, this test is not required because there is
6793     # no limit to the length of command line arguments.
6794     # Libtool will interpret -1 as no limit whatsoever
6795     lt_cv_sys_max_cmd_len=-1;
6796     ;;
6797
6798   cygwin* | mingw*)
6799     # On Win9x/ME, this test blows up -- it succeeds, but takes
6800     # about 5 minutes as the teststring grows exponentially.
6801     # Worse, since 9x/ME are not pre-emptively multitasking,
6802     # you end up with a "frozen" computer, even though with patience
6803     # the test eventually succeeds (with a max line length of 256k).
6804     # Instead, let's just punt: use the minimum linelength reported by
6805     # all of the supported platforms: 8192 (on NT/2K/XP).
6806     lt_cv_sys_max_cmd_len=8192;
6807     ;;
6808
6809   amigaos*)
6810     # On AmigaOS with pdksh, this test takes hours, literally.
6811     # So we just punt and use a minimum line length of 8192.
6812     lt_cv_sys_max_cmd_len=8192;
6813     ;;
6814
6815   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6816     # This has been around since 386BSD, at least.  Likely further.
6817     if test -x /sbin/sysctl; then
6818       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6819     elif test -x /usr/sbin/sysctl; then
6820       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6821     else
6822       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6823     fi
6824     # And add a safety zone
6825     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6826     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6827     ;;
6828   osf*)
6829     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6830     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6831     # nice to cause kernel panics so lets avoid the loop below.
6832     # First set a reasonable default.
6833     lt_cv_sys_max_cmd_len=16384
6834     #
6835     if test -x /sbin/sysconfig; then
6836       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6837         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6838       esac
6839     fi
6840     ;;
6841   *)
6842     # If test is not a shell built-in, we'll probably end up computing a
6843     # maximum length that is only half of the actual maximum length, but
6844     # we can't tell.
6845     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6846     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6847                = "XX$teststring") >/dev/null 2>&1 &&
6848             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6849             lt_cv_sys_max_cmd_len=$new_result &&
6850             test $i != 17 # 1/2 MB should be enough
6851     do
6852       i=`expr $i + 1`
6853       teststring=$teststring$teststring
6854     done
6855     teststring=
6856     # Add a significant safety factor because C++ compilers can tack on massive
6857     # amounts of additional arguments before passing them to the linker.
6858     # It appears as though 1/2 is a usable value.
6859     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6860     ;;
6861   esac
6862
6863 fi
6864
6865 if test -n $lt_cv_sys_max_cmd_len ; then
6866   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6867 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6868 else
6869   echo "$as_me:$LINENO: result: none" >&5
6870 echo "${ECHO_T}none" >&6
6871 fi
6872
6873
6874
6875
6876 # Check for command to grab the raw symbol name followed by C symbol from nm.
6877 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6878 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6879 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6880   echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882
6883 # These are sane defaults that work on at least a few old systems.
6884 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6885
6886 # Character class describing NM global symbol codes.
6887 symcode='[BCDEGRST]'
6888
6889 # Regexp to match symbols that can be accessed directly from C.
6890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6891
6892 # Transform an extracted symbol line into a proper C declaration
6893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6894
6895 # Transform an extracted symbol line into symbol name and symbol address
6896 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'"
6897
6898 # Define system-specific variables.
6899 case $host_os in
6900 aix*)
6901   symcode='[BCDT]'
6902   ;;
6903 cygwin* | mingw* | pw32*)
6904   symcode='[ABCDGISTW]'
6905   ;;
6906 hpux*) # Its linker distinguishes data from code symbols
6907   if test "$host_cpu" = ia64; then
6908     symcode='[ABCDEGRST]'
6909   fi
6910   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6911   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'"
6912   ;;
6913 linux*)
6914   if test "$host_cpu" = ia64; then
6915     symcode='[ABCDGIRSTW]'
6916     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6917     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'"
6918   fi
6919   ;;
6920 irix* | nonstopux*)
6921   symcode='[BCDEGRST]'
6922   ;;
6923 osf*)
6924   symcode='[BCDEGQRST]'
6925   ;;
6926 solaris* | sysv5*)
6927   symcode='[BDRT]'
6928   ;;
6929 sysv4)
6930   symcode='[DFNSTU]'
6931   ;;
6932 esac
6933
6934 # Handle CRLF in mingw tool chain
6935 opt_cr=
6936 case $build_os in
6937 mingw*)
6938   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6939   ;;
6940 esac
6941
6942 # If we're using GNU nm, then use its standard symbol codes.
6943 case `$NM -V 2>&1` in
6944 *GNU* | *'with BFD'*)
6945   symcode='[ABCDGIRSTW]' ;;
6946 esac
6947
6948 # Try without a prefix undercore, then with it.
6949 for ac_symprfx in "" "_"; do
6950
6951   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6952   symxfrm="\\1 $ac_symprfx\\2 \\2"
6953
6954   # Write the raw and C identifiers.
6955   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6956
6957   # Check to see that the pipe works correctly.
6958   pipe_works=no
6959
6960   rm -f conftest*
6961   cat > conftest.$ac_ext <<EOF
6962 #ifdef __cplusplus
6963 extern "C" {
6964 #endif
6965 char nm_test_var;
6966 void nm_test_func(){}
6967 #ifdef __cplusplus
6968 }
6969 #endif
6970 int main(){nm_test_var='a';nm_test_func();return(0);}
6971 EOF
6972
6973   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974   (eval $ac_compile) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; then
6978     # Now try to grab the symbols.
6979     nlist=conftest.nm
6980     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6981   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); } && test -s "$nlist"; then
6985       # Try sorting and uniquifying the output.
6986       if sort "$nlist" | uniq > "$nlist"T; then
6987         mv -f "$nlist"T "$nlist"
6988       else
6989         rm -f "$nlist"T
6990       fi
6991
6992       # Make sure that we snagged all the symbols we need.
6993       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6994         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6995           cat <<EOF > conftest.$ac_ext
6996 #ifdef __cplusplus
6997 extern "C" {
6998 #endif
6999
7000 EOF
7001           # Now generate the symbol file.
7002           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7003
7004           cat <<EOF >> conftest.$ac_ext
7005 #if defined (__STDC__) && __STDC__
7006 # define lt_ptr_t void *
7007 #else
7008 # define lt_ptr_t char *
7009 # define const
7010 #endif
7011
7012 /* The mapping between symbol names and symbols. */
7013 const struct {
7014   const char *name;
7015   lt_ptr_t address;
7016 }
7017 lt_preloaded_symbols[] =
7018 {
7019 EOF
7020           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7021           cat <<\EOF >> conftest.$ac_ext
7022   {0, (lt_ptr_t) 0}
7023 };
7024
7025 #ifdef __cplusplus
7026 }
7027 #endif
7028 EOF
7029           # Now try linking the two files.
7030           mv conftest.$ac_objext conftstm.$ac_objext
7031           lt_save_LIBS="$LIBS"
7032           lt_save_CFLAGS="$CFLAGS"
7033           LIBS="conftstm.$ac_objext"
7034           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7035           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7036   (eval $ac_link) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7040             pipe_works=yes
7041           fi
7042           LIBS="$lt_save_LIBS"
7043           CFLAGS="$lt_save_CFLAGS"
7044         else
7045           echo "cannot find nm_test_func in $nlist" >&5
7046         fi
7047       else
7048         echo "cannot find nm_test_var in $nlist" >&5
7049       fi
7050     else
7051       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7052     fi
7053   else
7054     echo "$progname: failed program was:" >&5
7055     cat conftest.$ac_ext >&5
7056   fi
7057   rm -f conftest* conftst*
7058
7059   # Do not use the global_symbol_pipe unless it works.
7060   if test "$pipe_works" = yes; then
7061     break
7062   else
7063     lt_cv_sys_global_symbol_pipe=
7064   fi
7065 done
7066
7067 fi
7068
7069 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7070   lt_cv_sys_global_symbol_to_cdecl=
7071 fi
7072 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7073   echo "$as_me:$LINENO: result: failed" >&5
7074 echo "${ECHO_T}failed" >&6
7075 else
7076   echo "$as_me:$LINENO: result: ok" >&5
7077 echo "${ECHO_T}ok" >&6
7078 fi
7079
7080 echo "$as_me:$LINENO: checking for objdir" >&5
7081 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7082 if test "${lt_cv_objdir+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   rm -f .libs 2>/dev/null
7086 mkdir .libs 2>/dev/null
7087 if test -d .libs; then
7088   lt_cv_objdir=.libs
7089 else
7090   # MS-DOS does not allow filenames that begin with a dot.
7091   lt_cv_objdir=_libs
7092 fi
7093 rmdir .libs 2>/dev/null
7094 fi
7095 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7096 echo "${ECHO_T}$lt_cv_objdir" >&6
7097 objdir=$lt_cv_objdir
7098
7099
7100
7101
7102
7103 case $host_os in
7104 aix3*)
7105   # AIX sometimes has problems with the GCC collect2 program.  For some
7106   # reason, if we set the COLLECT_NAMES environment variable, the problems
7107   # vanish in a puff of smoke.
7108   if test "X${COLLECT_NAMES+set}" != Xset; then
7109     COLLECT_NAMES=
7110     export COLLECT_NAMES
7111   fi
7112   ;;
7113 esac
7114
7115 # Sed substitution that helps us do robust quoting.  It backslashifies
7116 # metacharacters that are still active within double-quoted strings.
7117 Xsed='sed -e 1s/^X//'
7118 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7119
7120 # Same as above, but do not quote variable references.
7121 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7122
7123 # Sed substitution to delay expansion of an escaped shell variable in a
7124 # double_quote_subst'ed string.
7125 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7126
7127 # Sed substitution to avoid accidental globbing in evaled expressions
7128 no_glob_subst='s/\*/\\\*/g'
7129
7130 # Constants:
7131 rm="rm -f"
7132
7133 # Global variables:
7134 default_ofile=libtool
7135 can_build_shared=yes
7136
7137 # All known linkers require a `.a' archive for static linking (except MSVC,
7138 # which needs '.lib').
7139 libext=a
7140 ltmain="$ac_aux_dir/ltmain.sh"
7141 ofile="$default_ofile"
7142 with_gnu_ld="$lt_cv_prog_gnu_ld"
7143
7144 if test -n "$ac_tool_prefix"; then
7145   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}ar; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_AR+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$AR"; then
7153   ac_cv_prog_AR="$AR" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_AR="${ac_tool_prefix}ar"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168
7169 fi
7170 fi
7171 AR=$ac_cv_prog_AR
7172 if test -n "$AR"; then
7173   echo "$as_me:$LINENO: result: $AR" >&5
7174 echo "${ECHO_T}$AR" >&6
7175 else
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180 fi
7181 if test -z "$ac_cv_prog_AR"; then
7182   ac_ct_AR=$AR
7183   # Extract the first word of "ar", so it can be a program name with args.
7184 set dummy ar; ac_word=$2
7185 echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   if test -n "$ac_ct_AR"; then
7191   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196   IFS=$as_save_IFS
7197   test -z "$as_dir" && as_dir=.
7198   for ac_exec_ext in '' $ac_executable_extensions; do
7199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_ac_ct_AR="ar"
7201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203   fi
7204 done
7205 done
7206
7207   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7208 fi
7209 fi
7210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7211 if test -n "$ac_ct_AR"; then
7212   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7213 echo "${ECHO_T}$ac_ct_AR" >&6
7214 else
7215   echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217 fi
7218
7219   AR=$ac_ct_AR
7220 else
7221   AR="$ac_cv_prog_AR"
7222 fi
7223
7224 if test -n "$ac_tool_prefix"; then
7225   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_RANLIB+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   if test -n "$RANLIB"; then
7233   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   for ac_exec_ext in '' $ac_executable_extensions; do
7241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247 done
7248
7249 fi
7250 fi
7251 RANLIB=$ac_cv_prog_RANLIB
7252 if test -n "$RANLIB"; then
7253   echo "$as_me:$LINENO: result: $RANLIB" >&5
7254 echo "${ECHO_T}$RANLIB" >&6
7255 else
7256   echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258 fi
7259
7260 fi
7261 if test -z "$ac_cv_prog_RANLIB"; then
7262   ac_ct_RANLIB=$RANLIB
7263   # Extract the first word of "ranlib", so it can be a program name with args.
7264 set dummy ranlib; ac_word=$2
7265 echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   if test -n "$ac_ct_RANLIB"; then
7271   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278   for ac_exec_ext in '' $ac_executable_extensions; do
7279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280     ac_cv_prog_ac_ct_RANLIB="ranlib"
7281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285 done
7286
7287   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7288 fi
7289 fi
7290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7291 if test -n "$ac_ct_RANLIB"; then
7292   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7293 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7294 else
7295   echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297 fi
7298
7299   RANLIB=$ac_ct_RANLIB
7300 else
7301   RANLIB="$ac_cv_prog_RANLIB"
7302 fi
7303
7304 if test -n "$ac_tool_prefix"; then
7305   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}strip; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_STRIP+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   if test -n "$STRIP"; then
7313   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328
7329 fi
7330 fi
7331 STRIP=$ac_cv_prog_STRIP
7332 if test -n "$STRIP"; then
7333   echo "$as_me:$LINENO: result: $STRIP" >&5
7334 echo "${ECHO_T}$STRIP" >&6
7335 else
7336   echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6
7338 fi
7339
7340 fi
7341 if test -z "$ac_cv_prog_STRIP"; then
7342   ac_ct_STRIP=$STRIP
7343   # Extract the first word of "strip", so it can be a program name with args.
7344 set dummy strip; ac_word=$2
7345 echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   if test -n "$ac_ct_STRIP"; then
7351   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356   IFS=$as_save_IFS
7357   test -z "$as_dir" && as_dir=.
7358   for ac_exec_ext in '' $ac_executable_extensions; do
7359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360     ac_cv_prog_ac_ct_STRIP="strip"
7361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7362     break 2
7363   fi
7364 done
7365 done
7366
7367   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7368 fi
7369 fi
7370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7371 if test -n "$ac_ct_STRIP"; then
7372   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7373 echo "${ECHO_T}$ac_ct_STRIP" >&6
7374 else
7375   echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379   STRIP=$ac_ct_STRIP
7380 else
7381   STRIP="$ac_cv_prog_STRIP"
7382 fi
7383
7384
7385 old_CC="$CC"
7386 old_CFLAGS="$CFLAGS"
7387
7388 # Set sane defaults for various variables
7389 test -z "$AR" && AR=ar
7390 test -z "$AR_FLAGS" && AR_FLAGS=cru
7391 test -z "$AS" && AS=as
7392 test -z "$CC" && CC=cc
7393 test -z "$LTCC" && LTCC=$CC
7394 test -z "$DLLTOOL" && DLLTOOL=dlltool
7395 test -z "$LD" && LD=ld
7396 test -z "$LN_S" && LN_S="ln -s"
7397 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7398 test -z "$NM" && NM=nm
7399 test -z "$SED" && SED=sed
7400 test -z "$OBJDUMP" && OBJDUMP=objdump
7401 test -z "$RANLIB" && RANLIB=:
7402 test -z "$STRIP" && STRIP=:
7403 test -z "$ac_objext" && ac_objext=o
7404
7405 # Determine commands to create old-style static archives.
7406 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7407 old_postinstall_cmds='chmod 644 $oldlib'
7408 old_postuninstall_cmds=
7409
7410 if test -n "$RANLIB"; then
7411   case $host_os in
7412   openbsd*)
7413     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7414     ;;
7415   *)
7416     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7417     ;;
7418   esac
7419   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7420 fi
7421
7422 for cc_temp in $compiler""; do
7423   case $cc_temp in
7424     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7425     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7426     \-*) ;;
7427     *) break;;
7428   esac
7429 done
7430 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7431
7432
7433 # Only perform the check for file, if the check method requires it
7434 case $deplibs_check_method in
7435 file_magic*)
7436   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7437     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7438 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7439 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7440   echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442   case $MAGIC_CMD in
7443 [\\/*] |  ?:[\\/]*)
7444   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7445   ;;
7446 *)
7447   lt_save_MAGIC_CMD="$MAGIC_CMD"
7448   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7449   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7450   for ac_dir in $ac_dummy; do
7451     IFS="$lt_save_ifs"
7452     test -z "$ac_dir" && ac_dir=.
7453     if test -f $ac_dir/${ac_tool_prefix}file; then
7454       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7455       if test -n "$file_magic_test_file"; then
7456         case $deplibs_check_method in
7457         "file_magic "*)
7458           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7459           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7461             $EGREP "$file_magic_regex" > /dev/null; then
7462             :
7463           else
7464             cat <<EOF 1>&2
7465
7466 *** Warning: the command libtool uses to detect shared libraries,
7467 *** $file_magic_cmd, produces output that libtool cannot recognize.
7468 *** The result is that libtool may fail to recognize shared libraries
7469 *** as such.  This will affect the creation of libtool libraries that
7470 *** depend on shared libraries, but programs linked with such libtool
7471 *** libraries will work regardless of this problem.  Nevertheless, you
7472 *** may want to report the problem to your system manager and/or to
7473 *** bug-libtool@gnu.org
7474
7475 EOF
7476           fi ;;
7477         esac
7478       fi
7479       break
7480     fi
7481   done
7482   IFS="$lt_save_ifs"
7483   MAGIC_CMD="$lt_save_MAGIC_CMD"
7484   ;;
7485 esac
7486 fi
7487
7488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7489 if test -n "$MAGIC_CMD"; then
7490   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7491 echo "${ECHO_T}$MAGIC_CMD" >&6
7492 else
7493   echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6
7495 fi
7496
7497 if test -z "$lt_cv_path_MAGIC_CMD"; then
7498   if test -n "$ac_tool_prefix"; then
7499     echo "$as_me:$LINENO: checking for file" >&5
7500 echo $ECHO_N "checking for file... $ECHO_C" >&6
7501 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   case $MAGIC_CMD in
7505 [\\/*] |  ?:[\\/]*)
7506   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7507   ;;
7508 *)
7509   lt_save_MAGIC_CMD="$MAGIC_CMD"
7510   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7511   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7512   for ac_dir in $ac_dummy; do
7513     IFS="$lt_save_ifs"
7514     test -z "$ac_dir" && ac_dir=.
7515     if test -f $ac_dir/file; then
7516       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7517       if test -n "$file_magic_test_file"; then
7518         case $deplibs_check_method in
7519         "file_magic "*)
7520           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7521           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7523             $EGREP "$file_magic_regex" > /dev/null; then
7524             :
7525           else
7526             cat <<EOF 1>&2
7527
7528 *** Warning: the command libtool uses to detect shared libraries,
7529 *** $file_magic_cmd, produces output that libtool cannot recognize.
7530 *** The result is that libtool may fail to recognize shared libraries
7531 *** as such.  This will affect the creation of libtool libraries that
7532 *** depend on shared libraries, but programs linked with such libtool
7533 *** libraries will work regardless of this problem.  Nevertheless, you
7534 *** may want to report the problem to your system manager and/or to
7535 *** bug-libtool@gnu.org
7536
7537 EOF
7538           fi ;;
7539         esac
7540       fi
7541       break
7542     fi
7543   done
7544   IFS="$lt_save_ifs"
7545   MAGIC_CMD="$lt_save_MAGIC_CMD"
7546   ;;
7547 esac
7548 fi
7549
7550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7551 if test -n "$MAGIC_CMD"; then
7552   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7553 echo "${ECHO_T}$MAGIC_CMD" >&6
7554 else
7555   echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6
7557 fi
7558
7559   else
7560     MAGIC_CMD=:
7561   fi
7562 fi
7563
7564   fi
7565   ;;
7566 esac
7567
7568 enable_dlopen=yes
7569 enable_win32_dll=yes
7570
7571 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7572 if test "${enable_libtool_lock+set}" = set; then
7573   enableval="$enable_libtool_lock"
7574
7575 fi;
7576 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7577
7578
7579 # Check whether --with-pic or --without-pic was given.
7580 if test "${with_pic+set}" = set; then
7581   withval="$with_pic"
7582   pic_mode="$withval"
7583 else
7584   pic_mode=default
7585 fi;
7586 test -z "$pic_mode" && pic_mode=default
7587
7588 # Use C for the default configuration in the libtool script
7589 tagname=
7590 lt_save_CC="$CC"
7591 ac_ext=c
7592 ac_cpp='$CPP $CPPFLAGS'
7593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596
7597
7598 # Source file extension for C test sources.
7599 ac_ext=c
7600
7601 # Object file extension for compiled C test sources.
7602 objext=o
7603 objext=$objext
7604
7605 # Code to be used in simple compile tests
7606 lt_simple_compile_test_code="int some_variable = 0;\n"
7607
7608 # Code to be used in simple link tests
7609 lt_simple_link_test_code='int main(){return(0);}\n'
7610
7611
7612 # If no C compiler was specified, use CC.
7613 LTCC=${LTCC-"$CC"}
7614
7615 # Allow CC to be a program name with arguments.
7616 compiler=$CC
7617
7618
7619 # save warnings/boilerplate of simple test code
7620 ac_outfile=conftest.$ac_objext
7621 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7622 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7623 _lt_compiler_boilerplate=`cat conftest.err`
7624 $rm conftest*
7625
7626 ac_outfile=conftest.$ac_objext
7627 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7628 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7629 _lt_linker_boilerplate=`cat conftest.err`
7630 $rm conftest*
7631
7632
7633 #
7634 # Check for any special shared library compilation flags.
7635 #
7636 lt_prog_cc_shlib=
7637 if test "$GCC" = no; then
7638   case $host_os in
7639   sco3.2v5*)
7640     lt_prog_cc_shlib='-belf'
7641     ;;
7642   esac
7643 fi
7644 if test -n "$lt_prog_cc_shlib"; then
7645   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7646 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7647   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7648   else
7649     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7650 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7651     lt_cv_prog_cc_can_build_shared=no
7652   fi
7653 fi
7654
7655
7656 #
7657 # Check to make sure the static flag actually works.
7658 #
7659 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7660 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7661 if test "${lt_prog_compiler_static_works+set}" = set; then
7662   echo $ECHO_N "(cached) $ECHO_C" >&6
7663 else
7664   lt_prog_compiler_static_works=no
7665    save_LDFLAGS="$LDFLAGS"
7666    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7667    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7668    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7669      # The linker can only warn and ignore the option if not recognized
7670      # So say no if there are warnings
7671      if test -s conftest.err; then
7672        # Append any errors to the config.log.
7673        cat conftest.err 1>&5
7674        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7675        $SED '/^$/d' conftest.err >conftest.er2
7676        if diff conftest.exp conftest.er2 >/dev/null; then
7677          lt_prog_compiler_static_works=yes
7678        fi
7679      else
7680        lt_prog_compiler_static_works=yes
7681      fi
7682    fi
7683    $rm conftest*
7684    LDFLAGS="$save_LDFLAGS"
7685
7686 fi
7687 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7688 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7689
7690 if test x"$lt_prog_compiler_static_works" = xyes; then
7691     :
7692 else
7693     lt_prog_compiler_static=
7694 fi
7695
7696
7697
7698
7699 lt_prog_compiler_no_builtin_flag=
7700
7701 if test "$GCC" = yes; then
7702   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7703
7704
7705 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7706 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7707 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7708   echo $ECHO_N "(cached) $ECHO_C" >&6
7709 else
7710   lt_cv_prog_compiler_rtti_exceptions=no
7711   ac_outfile=conftest.$ac_objext
7712    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7713    lt_compiler_flag="-fno-rtti -fno-exceptions"
7714    # Insert the option either (1) after the last *FLAGS variable, or
7715    # (2) before a word containing "conftest.", or (3) at the end.
7716    # Note that $ac_compile itself does not contain backslashes and begins
7717    # with a dollar sign (not a hyphen), so the echo should work correctly.
7718    # The option is referenced via a variable to avoid confusing sed.
7719    lt_compile=`echo "$ac_compile" | $SED \
7720    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7721    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7722    -e 's:$: $lt_compiler_flag:'`
7723    (eval echo "\"\$as_me:7723: $lt_compile\"" >&5)
7724    (eval "$lt_compile" 2>conftest.err)
7725    ac_status=$?
7726    cat conftest.err >&5
7727    echo "$as_me:7727: \$? = $ac_status" >&5
7728    if (exit $ac_status) && test -s "$ac_outfile"; then
7729      # The compiler can only warn and ignore the option if not recognized
7730      # So say no if there are warnings other than the usual output.
7731      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7732      $SED '/^$/d' conftest.err >conftest.er2
7733      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7734        lt_cv_prog_compiler_rtti_exceptions=yes
7735      fi
7736    fi
7737    $rm conftest*
7738
7739 fi
7740 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7741 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7742
7743 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7744     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7745 else
7746     :
7747 fi
7748
7749 fi
7750
7751 lt_prog_compiler_wl=
7752 lt_prog_compiler_pic=
7753 lt_prog_compiler_static=
7754
7755 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7756 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7757
7758   if test "$GCC" = yes; then
7759     lt_prog_compiler_wl='-Wl,'
7760     lt_prog_compiler_static='-static'
7761
7762     case $host_os in
7763       aix*)
7764       # All AIX code is PIC.
7765       if test "$host_cpu" = ia64; then
7766         # AIX 5 now supports IA64 processor
7767         lt_prog_compiler_static='-Bstatic'
7768       fi
7769       ;;
7770
7771     amigaos*)
7772       # FIXME: we need at least 68020 code to build shared libraries, but
7773       # adding the `-m68020' flag to GCC prevents building anything better,
7774       # like `-m68040'.
7775       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7776       ;;
7777
7778     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7779       # PIC is the default for these OSes.
7780       ;;
7781
7782     mingw* | pw32* | os2*)
7783       # This hack is so that the source file can tell whether it is being
7784       # built for inclusion in a dll (and should export symbols for example).
7785       lt_prog_compiler_pic='-DDLL_EXPORT'
7786       ;;
7787
7788     darwin* | rhapsody*)
7789       # PIC is the default on this platform
7790       # Common symbols not allowed in MH_DYLIB files
7791       lt_prog_compiler_pic='-fno-common'
7792       ;;
7793
7794     msdosdjgpp*)
7795       # Just because we use GCC doesn't mean we suddenly get shared libraries
7796       # on systems that don't support them.
7797       lt_prog_compiler_can_build_shared=no
7798       enable_shared=no
7799       ;;
7800
7801     sysv4*MP*)
7802       if test -d /usr/nec; then
7803         lt_prog_compiler_pic=-Kconform_pic
7804       fi
7805       ;;
7806
7807     hpux*)
7808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7809       # not for PA HP-UX.
7810       case $host_cpu in
7811       hppa*64*|ia64*)
7812         # +Z the default
7813         ;;
7814       *)
7815         lt_prog_compiler_pic='-fPIC'
7816         ;;
7817       esac
7818       ;;
7819
7820     *)
7821       lt_prog_compiler_pic='-fPIC'
7822       ;;
7823     esac
7824   else
7825     # PORTME Check for flag to pass linker flags through the system compiler.
7826     case $host_os in
7827     aix*)
7828       lt_prog_compiler_wl='-Wl,'
7829       if test "$host_cpu" = ia64; then
7830         # AIX 5 now supports IA64 processor
7831         lt_prog_compiler_static='-Bstatic'
7832       else
7833         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7834       fi
7835       ;;
7836       darwin*)
7837         # PIC is the default on this platform
7838         # Common symbols not allowed in MH_DYLIB files
7839        case $cc_basename in
7840          xlc*)
7841          lt_prog_compiler_pic='-qnocommon'
7842          lt_prog_compiler_wl='-Wl,'
7843          ;;
7844        esac
7845        ;;
7846
7847     mingw* | pw32* | os2*)
7848       # This hack is so that the source file can tell whether it is being
7849       # built for inclusion in a dll (and should export symbols for example).
7850       lt_prog_compiler_pic='-DDLL_EXPORT'
7851       ;;
7852
7853     hpux9* | hpux10* | hpux11*)
7854       lt_prog_compiler_wl='-Wl,'
7855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7856       # not for PA HP-UX.
7857       case $host_cpu in
7858       hppa*64*|ia64*)
7859         # +Z the default
7860         ;;
7861       *)
7862         lt_prog_compiler_pic='+Z'
7863         ;;
7864       esac
7865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7866       lt_prog_compiler_static='${wl}-a ${wl}archive'
7867       ;;
7868
7869     irix5* | irix6* | nonstopux*)
7870       lt_prog_compiler_wl='-Wl,'
7871       # PIC (with -KPIC) is the default.
7872       lt_prog_compiler_static='-non_shared'
7873       ;;
7874
7875     newsos6)
7876       lt_prog_compiler_pic='-KPIC'
7877       lt_prog_compiler_static='-Bstatic'
7878       ;;
7879
7880     linux*)
7881       case $cc_basename in
7882       icc* | ecc*)
7883         lt_prog_compiler_wl='-Wl,'
7884         lt_prog_compiler_pic='-KPIC'
7885         lt_prog_compiler_static='-static'
7886         ;;
7887       pgcc* | pgf77* | pgf90* | pgf95*)
7888         # Portland Group compilers (*not* the Pentium gcc compiler,
7889         # which looks to be a dead project)
7890         lt_prog_compiler_wl='-Wl,'
7891         lt_prog_compiler_pic='-fpic'
7892         lt_prog_compiler_static='-Bstatic'
7893         ;;
7894       ccc*)
7895         lt_prog_compiler_wl='-Wl,'
7896         # All Alpha code is PIC.
7897         lt_prog_compiler_static='-non_shared'
7898         ;;
7899       esac
7900       ;;
7901
7902     osf3* | osf4* | osf5*)
7903       lt_prog_compiler_wl='-Wl,'
7904       # All OSF/1 code is PIC.
7905       lt_prog_compiler_static='-non_shared'
7906       ;;
7907
7908     sco3.2v5*)
7909       lt_prog_compiler_pic='-Kpic'
7910       lt_prog_compiler_static='-dn'
7911       ;;
7912
7913     solaris*)
7914       lt_prog_compiler_pic='-KPIC'
7915       lt_prog_compiler_static='-Bstatic'
7916       case $cc_basename in
7917       f77* | f90* | f95*)
7918         lt_prog_compiler_wl='-Qoption ld ';;
7919       *)
7920         lt_prog_compiler_wl='-Wl,';;
7921       esac
7922       ;;
7923
7924     sunos4*)
7925       lt_prog_compiler_wl='-Qoption ld '
7926       lt_prog_compiler_pic='-PIC'
7927       lt_prog_compiler_static='-Bstatic'
7928       ;;
7929
7930     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7931       lt_prog_compiler_wl='-Wl,'
7932       lt_prog_compiler_pic='-KPIC'
7933       lt_prog_compiler_static='-Bstatic'
7934       ;;
7935
7936     sysv4*MP*)
7937       if test -d /usr/nec ;then
7938         lt_prog_compiler_pic='-Kconform_pic'
7939         lt_prog_compiler_static='-Bstatic'
7940       fi
7941       ;;
7942
7943     unicos*)
7944       lt_prog_compiler_wl='-Wl,'
7945       lt_prog_compiler_can_build_shared=no
7946       ;;
7947
7948     uts4*)
7949       lt_prog_compiler_pic='-pic'
7950       lt_prog_compiler_static='-Bstatic'
7951       ;;
7952
7953     *)
7954       lt_prog_compiler_can_build_shared=no
7955       ;;
7956     esac
7957   fi
7958
7959 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7960 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7961
7962 #
7963 # Check to make sure the PIC flag actually works.
7964 #
7965 if test -n "$lt_prog_compiler_pic"; then
7966
7967 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7968 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7969 if test "${lt_prog_compiler_pic_works+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   lt_prog_compiler_pic_works=no
7973   ac_outfile=conftest.$ac_objext
7974    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7975    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7976    # Insert the option either (1) after the last *FLAGS variable, or
7977    # (2) before a word containing "conftest.", or (3) at the end.
7978    # Note that $ac_compile itself does not contain backslashes and begins
7979    # with a dollar sign (not a hyphen), so the echo should work correctly.
7980    # The option is referenced via a variable to avoid confusing sed.
7981    lt_compile=`echo "$ac_compile" | $SED \
7982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7984    -e 's:$: $lt_compiler_flag:'`
7985    (eval echo "\"\$as_me:7985: $lt_compile\"" >&5)
7986    (eval "$lt_compile" 2>conftest.err)
7987    ac_status=$?
7988    cat conftest.err >&5
7989    echo "$as_me:7989: \$? = $ac_status" >&5
7990    if (exit $ac_status) && test -s "$ac_outfile"; then
7991      # The compiler can only warn and ignore the option if not recognized
7992      # So say no if there are warnings other than the usual output.
7993      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7994      $SED '/^$/d' conftest.err >conftest.er2
7995      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7996        lt_prog_compiler_pic_works=yes
7997      fi
7998    fi
7999    $rm conftest*
8000
8001 fi
8002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8003 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8004
8005 if test x"$lt_prog_compiler_pic_works" = xyes; then
8006     case $lt_prog_compiler_pic in
8007      "" | " "*) ;;
8008      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8009      esac
8010 else
8011     lt_prog_compiler_pic=
8012      lt_prog_compiler_can_build_shared=no
8013 fi
8014
8015 fi
8016 case $host_os in
8017   # For platforms which do not support PIC, -DPIC is meaningless:
8018   *djgpp*)
8019     lt_prog_compiler_pic=
8020     ;;
8021   *)
8022     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8023     ;;
8024 esac
8025
8026 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8027 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8028 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   lt_cv_prog_compiler_c_o=no
8032    $rm -r conftest 2>/dev/null
8033    mkdir conftest
8034    cd conftest
8035    mkdir out
8036    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8037
8038    lt_compiler_flag="-o out/conftest2.$ac_objext"
8039    # Insert the option either (1) after the last *FLAGS variable, or
8040    # (2) before a word containing "conftest.", or (3) at the end.
8041    # Note that $ac_compile itself does not contain backslashes and begins
8042    # with a dollar sign (not a hyphen), so the echo should work correctly.
8043    lt_compile=`echo "$ac_compile" | $SED \
8044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8046    -e 's:$: $lt_compiler_flag:'`
8047    (eval echo "\"\$as_me:8047: $lt_compile\"" >&5)
8048    (eval "$lt_compile" 2>out/conftest.err)
8049    ac_status=$?
8050    cat out/conftest.err >&5
8051    echo "$as_me:8051: \$? = $ac_status" >&5
8052    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8053    then
8054      # The compiler can only warn and ignore the option if not recognized
8055      # So say no if there are warnings
8056      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8057      $SED '/^$/d' out/conftest.err >out/conftest.er2
8058      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8059        lt_cv_prog_compiler_c_o=yes
8060      fi
8061    fi
8062    chmod u+w . 2>&5
8063    $rm conftest*
8064    # SGI C++ compiler will create directory out/ii_files/ for
8065    # template instantiation
8066    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8067    $rm out/* && rmdir out
8068    cd ..
8069    rmdir conftest
8070    $rm conftest*
8071
8072 fi
8073 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8074 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8075
8076
8077 hard_links="nottested"
8078 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8079   # do not overwrite the value of need_locks provided by the user
8080   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8081 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8082   hard_links=yes
8083   $rm conftest*
8084   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8085   touch conftest.a
8086   ln conftest.a conftest.b 2>&5 || hard_links=no
8087   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8088   echo "$as_me:$LINENO: result: $hard_links" >&5
8089 echo "${ECHO_T}$hard_links" >&6
8090   if test "$hard_links" = no; then
8091     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8092 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8093     need_locks=warn
8094   fi
8095 else
8096   need_locks=no
8097 fi
8098
8099 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8100 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8101
8102   runpath_var=
8103   allow_undefined_flag=
8104   enable_shared_with_static_runtimes=no
8105   archive_cmds=
8106   archive_expsym_cmds=
8107   old_archive_From_new_cmds=
8108   old_archive_from_expsyms_cmds=
8109   export_dynamic_flag_spec=
8110   whole_archive_flag_spec=
8111   thread_safe_flag_spec=
8112   hardcode_libdir_flag_spec=
8113   hardcode_libdir_flag_spec_ld=
8114   hardcode_libdir_separator=
8115   hardcode_direct=no
8116   hardcode_minus_L=no
8117   hardcode_shlibpath_var=unsupported
8118   link_all_deplibs=unknown
8119   hardcode_automatic=no
8120   module_cmds=
8121   module_expsym_cmds=
8122   always_export_symbols=no
8123   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8124   # include_expsyms should be a list of space-separated symbols to be *always*
8125   # included in the symbol list
8126   include_expsyms=
8127   # exclude_expsyms can be an extended regexp of symbols to exclude
8128   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8129   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8130   # as well as any symbol that contains `d'.
8131   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8132   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8133   # platforms (ab)use it in PIC code, but their linkers get confused if
8134   # the symbol is explicitly referenced.  Since portable code cannot
8135   # rely on this symbol name, it's probably fine to never include it in
8136   # preloaded symbol tables.
8137   extract_expsyms_cmds=
8138   # Just being paranoid about ensuring that cc_basename is set.
8139   for cc_temp in $compiler""; do
8140   case $cc_temp in
8141     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8142     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8143     \-*) ;;
8144     *) break;;
8145   esac
8146 done
8147 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8148
8149   case $host_os in
8150   cygwin* | mingw* | pw32*)
8151     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8152     # When not using gcc, we currently assume that we are using
8153     # Microsoft Visual C++.
8154     if test "$GCC" != yes; then
8155       with_gnu_ld=no
8156     fi
8157     ;;
8158   openbsd*)
8159     with_gnu_ld=no
8160     ;;
8161   esac
8162
8163   ld_shlibs=yes
8164   if test "$with_gnu_ld" = yes; then
8165     # If archive_cmds runs LD, not CC, wlarc should be empty
8166     wlarc='${wl}'
8167
8168     # Set some defaults for GNU ld with shared library support. These
8169     # are reset later if shared libraries are not supported. Putting them
8170     # here allows them to be overridden if necessary.
8171     runpath_var=LD_RUN_PATH
8172     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8173     export_dynamic_flag_spec='${wl}--export-dynamic'
8174     # ancient GNU ld didn't support --whole-archive et. al.
8175     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8176         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8177       else
8178         whole_archive_flag_spec=
8179     fi
8180     supports_anon_versioning=no
8181     case `$LD -v 2>/dev/null` in
8182       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8183       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8184       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8185       *\ 2.11.*) ;; # other 2.11 versions
8186       *) supports_anon_versioning=yes ;;
8187     esac
8188
8189     # See if GNU ld supports shared libraries.
8190     case $host_os in
8191     aix3* | aix4* | aix5*)
8192       # On AIX/PPC, the GNU linker is very broken
8193       if test "$host_cpu" != ia64; then
8194         ld_shlibs=no
8195         cat <<EOF 1>&2
8196
8197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8198 *** to be unable to reliably create shared libraries on AIX.
8199 *** Therefore, libtool is disabling shared libraries support.  If you
8200 *** really care for shared libraries, you may want to modify your PATH
8201 *** so that a non-GNU linker is found, and then restart.
8202
8203 EOF
8204       fi
8205       ;;
8206
8207     amigaos*)
8208       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)'
8209       hardcode_libdir_flag_spec='-L$libdir'
8210       hardcode_minus_L=yes
8211
8212       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8213       # that the semantics of dynamic libraries on AmigaOS, at least up
8214       # to version 4, is to share data among multiple programs linked
8215       # with the same dynamic library.  Since this doesn't match the
8216       # behavior of shared libraries on other platforms, we can't use
8217       # them.
8218       ld_shlibs=no
8219       ;;
8220
8221     beos*)
8222       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8223         allow_undefined_flag=unsupported
8224         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8225         # support --undefined.  This deserves some investigation.  FIXME
8226         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8227       else
8228         ld_shlibs=no
8229       fi
8230       ;;
8231
8232     cygwin* | mingw* | pw32*)
8233       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8234       # as there is no search path for DLLs.
8235       hardcode_libdir_flag_spec='-L$libdir'
8236       allow_undefined_flag=unsupported
8237       always_export_symbols=no
8238       enable_shared_with_static_runtimes=yes
8239       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8240
8241       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8242         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8243         # If the export-symbols file already is a .def file (1st line
8244         # is EXPORTS), use it as is; otherwise, prepend...
8245         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8246           cp $export_symbols $output_objdir/$soname.def;
8247         else
8248           echo EXPORTS > $output_objdir/$soname.def;
8249           cat $export_symbols >> $output_objdir/$soname.def;
8250         fi~
8251         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8252       else
8253         ld_shlibs=no
8254       fi
8255       ;;
8256
8257     linux*)
8258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259         tmp_addflag=
8260         case $cc_basename,$host_cpu in
8261         pgcc*)                          # Portland Group C compiler
8262           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'
8263           tmp_addflag=' $pic_flag'
8264           ;;
8265         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8266           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'
8267           tmp_addflag=' $pic_flag -Mnomain' ;;
8268         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8269           tmp_addflag=' -i_dynamic' ;;
8270         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8271           tmp_addflag=' -i_dynamic -nofor_main' ;;
8272         ifc* | ifort*)                  # Intel Fortran compiler
8273           tmp_addflag=' -nofor_main' ;;
8274         esac
8275         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276
8277         if test $supports_anon_versioning = yes; then
8278           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8279   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8280   $echo "local: *; };" >> $output_objdir/$libname.ver~
8281           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8282         fi
8283       else
8284         ld_shlibs=no
8285       fi
8286       ;;
8287
8288     netbsd*)
8289       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8290         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8291         wlarc=
8292       else
8293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295       fi
8296       ;;
8297
8298     solaris* | sysv5*)
8299       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8300         ld_shlibs=no
8301         cat <<EOF 1>&2
8302
8303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8304 *** create shared libraries on Solaris systems.  Therefore, libtool
8305 *** is disabling shared libraries support.  We urge you to upgrade GNU
8306 *** binutils to release 2.9.1 or newer.  Another option is to modify
8307 *** your PATH or compiler configuration so that the native linker is
8308 *** used, and then restart.
8309
8310 EOF
8311       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8314       else
8315         ld_shlibs=no
8316       fi
8317       ;;
8318
8319     sunos4*)
8320       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8321       wlarc=
8322       hardcode_direct=yes
8323       hardcode_shlibpath_var=no
8324       ;;
8325
8326     *)
8327       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8330       else
8331         ld_shlibs=no
8332       fi
8333       ;;
8334     esac
8335
8336     if test "$ld_shlibs" = no; then
8337       runpath_var=
8338       hardcode_libdir_flag_spec=
8339       export_dynamic_flag_spec=
8340       whole_archive_flag_spec=
8341     fi
8342   else
8343     # PORTME fill in a description of your system's linker (not GNU ld)
8344     case $host_os in
8345     aix3*)
8346       allow_undefined_flag=unsupported
8347       always_export_symbols=yes
8348       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'
8349       # Note: this linker hardcodes the directories in LIBPATH if there
8350       # are no directories specified by -L.
8351       hardcode_minus_L=yes
8352       if test "$GCC" = yes && test -z "$link_static_flag"; then
8353         # Neither direct hardcoding nor static linking is supported with a
8354         # broken collect2.
8355         hardcode_direct=unsupported
8356       fi
8357       ;;
8358
8359     aix4* | aix5*)
8360       if test "$host_cpu" = ia64; then
8361         # On IA64, the linker does run time linking by default, so we don't
8362         # have to do anything special.
8363         aix_use_runtimelinking=no
8364         exp_sym_flag='-Bexport'
8365         no_entry_flag=""
8366       else
8367         # If we're using GNU nm, then we don't want the "-C" option.
8368         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8369         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8370           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'
8371         else
8372           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'
8373         fi
8374         aix_use_runtimelinking=no
8375
8376         # Test if we are trying to use run time linking or normal
8377         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8378         # need to do runtime linking.
8379         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8380           for ld_flag in $LDFLAGS; do
8381           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8382             aix_use_runtimelinking=yes
8383             break
8384           fi
8385           done
8386         esac
8387
8388         exp_sym_flag='-bexport'
8389         no_entry_flag='-bnoentry'
8390       fi
8391
8392       # When large executables or shared objects are built, AIX ld can
8393       # have problems creating the table of contents.  If linking a library
8394       # or program results in "error TOC overflow" add -mminimal-toc to
8395       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8396       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8397
8398       archive_cmds=''
8399       hardcode_direct=yes
8400       hardcode_libdir_separator=':'
8401       link_all_deplibs=yes
8402
8403       if test "$GCC" = yes; then
8404         case $host_os in aix4.[012]|aix4.[012].*)
8405         # We only want to do this on AIX 4.2 and lower, the check
8406         # below for broken collect2 doesn't work under 4.3+
8407           collect2name=`${CC} -print-prog-name=collect2`
8408           if test -f "$collect2name" && \
8409            strings "$collect2name" | grep resolve_lib_name >/dev/null
8410           then
8411           # We have reworked collect2
8412           hardcode_direct=yes
8413           else
8414           # We have old collect2
8415           hardcode_direct=unsupported
8416           # It fails to find uninstalled libraries when the uninstalled
8417           # path is not listed in the libpath.  Setting hardcode_minus_L
8418           # to unsupported forces relinking
8419           hardcode_minus_L=yes
8420           hardcode_libdir_flag_spec='-L$libdir'
8421           hardcode_libdir_separator=
8422           fi
8423         esac
8424         shared_flag='-shared'
8425         if test "$aix_use_runtimelinking" = yes; then
8426           shared_flag="$shared_flag "'${wl}-G'
8427         fi
8428       else
8429         # not using gcc
8430         if test "$host_cpu" = ia64; then
8431         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8432         # chokes on -Wl,-G. The following line is correct:
8433           shared_flag='-G'
8434         else
8435         if test "$aix_use_runtimelinking" = yes; then
8436             shared_flag='${wl}-G'
8437           else
8438             shared_flag='${wl}-bM:SRE'
8439         fi
8440         fi
8441       fi
8442
8443       # It seems that -bexpall does not export symbols beginning with
8444       # underscore (_), so it is better to generate a list of symbols to export.
8445       always_export_symbols=yes
8446       if test "$aix_use_runtimelinking" = yes; then
8447         # Warning - without using the other runtime loading flags (-brtl),
8448         # -berok will link without error, but may produce a broken library.
8449         allow_undefined_flag='-berok'
8450        # Determine the default libpath from the value encoded in an empty executable.
8451        cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h.  */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h.  */
8457
8458 int
8459 main ()
8460 {
8461
8462   ;
8463   return 0;
8464 }
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468   (eval $ac_link) 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -z "$ac_c_werror_flag"
8476                          || test ! -s conftest.err'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488
8489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8490 }'`
8491 # Check for a 64-bit object if we didn't find anything.
8492 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; }
8493 }'`; fi
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 fi
8499 rm -f conftest.err conftest.$ac_objext \
8500       conftest$ac_exeext conftest.$ac_ext
8501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502
8503        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8504         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"
8505        else
8506         if test "$host_cpu" = ia64; then
8507           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8508           allow_undefined_flag="-z nodefs"
8509           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"
8510         else
8511          # Determine the default libpath from the value encoded in an empty executable.
8512          cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518
8519 int
8520 main ()
8521 {
8522
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529   (eval $ac_link) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag"
8537                          || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest$ac_exeext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549
8550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8551 }'`
8552 # Check for a 64-bit object if we didn't find anything.
8553 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; }
8554 }'`; fi
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 fi
8560 rm -f conftest.err conftest.$ac_objext \
8561       conftest$ac_exeext conftest.$ac_ext
8562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8563
8564          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8565           # Warning - without using the other run time loading flags,
8566           # -berok will link without error, but may produce a broken library.
8567           no_undefined_flag=' ${wl}-bernotok'
8568           allow_undefined_flag=' ${wl}-berok'
8569           # -bexpall does not export symbols beginning with underscore (_)
8570           always_export_symbols=yes
8571           # Exported symbols can be pulled into shared objects from archives
8572           whole_archive_flag_spec=' '
8573           archive_cmds_need_lc=yes
8574           # This is similar to how AIX traditionally builds its shared libraries.
8575           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'
8576         fi
8577       fi
8578       ;;
8579
8580     amigaos*)
8581       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)'
8582       hardcode_libdir_flag_spec='-L$libdir'
8583       hardcode_minus_L=yes
8584       # see comment about different semantics on the GNU ld section
8585       ld_shlibs=no
8586       ;;
8587
8588     bsdi[45]*)
8589       export_dynamic_flag_spec=-rdynamic
8590       ;;
8591
8592     cygwin* | mingw* | pw32*)
8593       # When not using gcc, we currently assume that we are using
8594       # Microsoft Visual C++.
8595       # hardcode_libdir_flag_spec is actually meaningless, as there is
8596       # no search path for DLLs.
8597       hardcode_libdir_flag_spec=' '
8598       allow_undefined_flag=unsupported
8599       # Tell ltmain to make .lib files, not .a files.
8600       libext=lib
8601       # Tell ltmain to make .dll files, not .so files.
8602       shrext_cmds=".dll"
8603       # FIXME: Setting linknames here is a bad hack.
8604       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8605       # The linker will automatically build a .lib file if we build a DLL.
8606       old_archive_From_new_cmds='true'
8607       # FIXME: Should let the user specify the lib program.
8608       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8609       fix_srcfile_path='`cygpath -w "$srcfile"`'
8610       enable_shared_with_static_runtimes=yes
8611       ;;
8612
8613     darwin* | rhapsody*)
8614       case $host_os in
8615         rhapsody* | darwin1.[012])
8616          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8617          ;;
8618        *) # Darwin 1.3 on
8619          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8620            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621          else
8622            case ${MACOSX_DEPLOYMENT_TARGET} in
8623              10.[012])
8624                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8625                ;;
8626              10.*)
8627                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8628                ;;
8629            esac
8630          fi
8631          ;;
8632       esac
8633       archive_cmds_need_lc=no
8634       hardcode_direct=no
8635       hardcode_automatic=yes
8636       hardcode_shlibpath_var=unsupported
8637       whole_archive_flag_spec=''
8638       link_all_deplibs=yes
8639     if test "$GCC" = yes ; then
8640         output_verbose_link_cmd='echo'
8641         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8642       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8643       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8644       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}'
8645       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}'
8646     else
8647       case $cc_basename in
8648         xlc*)
8649          output_verbose_link_cmd='echo'
8650          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8651          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8652           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8653          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}'
8654           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}'
8655           ;;
8656        *)
8657          ld_shlibs=no
8658           ;;
8659       esac
8660     fi
8661       ;;
8662
8663     dgux*)
8664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665       hardcode_libdir_flag_spec='-L$libdir'
8666       hardcode_shlibpath_var=no
8667       ;;
8668
8669     freebsd1*)
8670       ld_shlibs=no
8671       ;;
8672
8673     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8674     # support.  Future versions do this automatically, but an explicit c++rt0.o
8675     # does not break anything, and helps significantly (at the cost of a little
8676     # extra space).
8677     freebsd2.2*)
8678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_direct=yes
8681       hardcode_shlibpath_var=no
8682       ;;
8683
8684     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8685     freebsd2*)
8686       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_direct=yes
8688       hardcode_minus_L=yes
8689       hardcode_shlibpath_var=no
8690       ;;
8691
8692     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8693     freebsd* | kfreebsd*-gnu | dragonfly*)
8694       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8695       hardcode_libdir_flag_spec='-R$libdir'
8696       hardcode_direct=yes
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     hpux9*)
8701       if test "$GCC" = yes; then
8702         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'
8703       else
8704         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'
8705       fi
8706       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707       hardcode_libdir_separator=:
8708       hardcode_direct=yes
8709
8710       # hardcode_minus_L: Not really in the search PATH,
8711       # but as the default location of the library.
8712       hardcode_minus_L=yes
8713       export_dynamic_flag_spec='${wl}-E'
8714       ;;
8715
8716     hpux10* | hpux11*)
8717       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8718         case $host_cpu in
8719         hppa*64*|ia64*)
8720           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8721           ;;
8722         *)
8723           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724           ;;
8725         esac
8726       else
8727         case $host_cpu in
8728         hppa*64*|ia64*)
8729           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8730           ;;
8731         *)
8732           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733           ;;
8734         esac
8735       fi
8736       if test "$with_gnu_ld" = no; then
8737         case $host_cpu in
8738         hppa*64*)
8739           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740           hardcode_libdir_flag_spec_ld='+b $libdir'
8741           hardcode_libdir_separator=:
8742           hardcode_direct=no
8743           hardcode_shlibpath_var=no
8744           ;;
8745         ia64*)
8746           hardcode_libdir_flag_spec='-L$libdir'
8747           hardcode_direct=no
8748           hardcode_shlibpath_var=no
8749
8750           # hardcode_minus_L: Not really in the search PATH,
8751           # but as the default location of the library.
8752           hardcode_minus_L=yes
8753           ;;
8754         *)
8755           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8756           hardcode_libdir_separator=:
8757           hardcode_direct=yes
8758           export_dynamic_flag_spec='${wl}-E'
8759
8760           # hardcode_minus_L: Not really in the search PATH,
8761           # but as the default location of the library.
8762           hardcode_minus_L=yes
8763           ;;
8764         esac
8765       fi
8766       ;;
8767
8768     irix5* | irix6* | nonstopux*)
8769       if test "$GCC" = yes; then
8770         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'
8771       else
8772         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'
8773         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8774       fi
8775       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776       hardcode_libdir_separator=:
8777       link_all_deplibs=yes
8778       ;;
8779
8780     netbsd*)
8781       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8782         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8783       else
8784         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8785       fi
8786       hardcode_libdir_flag_spec='-R$libdir'
8787       hardcode_direct=yes
8788       hardcode_shlibpath_var=no
8789       ;;
8790
8791     newsos6)
8792       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793       hardcode_direct=yes
8794       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8795       hardcode_libdir_separator=:
8796       hardcode_shlibpath_var=no
8797       ;;
8798
8799     openbsd*)
8800       hardcode_direct=yes
8801       hardcode_shlibpath_var=no
8802       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8803         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8805         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8806         export_dynamic_flag_spec='${wl}-E'
8807       else
8808        case $host_os in
8809          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8810            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8811            hardcode_libdir_flag_spec='-R$libdir'
8812            ;;
8813          *)
8814            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8815            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8816            ;;
8817        esac
8818       fi
8819       ;;
8820
8821     os2*)
8822       hardcode_libdir_flag_spec='-L$libdir'
8823       hardcode_minus_L=yes
8824       allow_undefined_flag=unsupported
8825       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'
8826       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8827       ;;
8828
8829     osf3*)
8830       if test "$GCC" = yes; then
8831         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8832         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'
8833       else
8834         allow_undefined_flag=' -expect_unresolved \*'
8835         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'
8836       fi
8837       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8838       hardcode_libdir_separator=:
8839       ;;
8840
8841     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8842       if test "$GCC" = yes; then
8843         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8844         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'
8845         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8846       else
8847         allow_undefined_flag=' -expect_unresolved \*'
8848         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'
8849         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8850         $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'
8851
8852         # Both c and cxx compiler support -rpath directly
8853         hardcode_libdir_flag_spec='-rpath $libdir'
8854       fi
8855       hardcode_libdir_separator=:
8856       ;;
8857
8858     sco3.2v5*)
8859       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860       hardcode_shlibpath_var=no
8861       export_dynamic_flag_spec='${wl}-Bexport'
8862       runpath_var=LD_RUN_PATH
8863       hardcode_runpath_var=yes
8864       ;;
8865
8866     solaris*)
8867       no_undefined_flag=' -z text'
8868       if test "$GCC" = yes; then
8869         wlarc='${wl}'
8870         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8871         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8872           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8873       else
8874         wlarc=''
8875         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8878       fi
8879       hardcode_libdir_flag_spec='-R$libdir'
8880       hardcode_shlibpath_var=no
8881       case $host_os in
8882       solaris2.[0-5] | solaris2.[0-5].*) ;;
8883       *)
8884         # The compiler driver will combine linker options so we
8885         # cannot just pass the convience library names through
8886         # without $wl, iff we do not link with $LD.
8887         # Luckily, gcc supports the same syntax we need for Sun Studio.
8888         # Supported since Solaris 2.6 (maybe 2.5.1?)
8889         case $wlarc in
8890         '')
8891           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8892         *)
8893           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' ;;
8894         esac ;;
8895       esac
8896       link_all_deplibs=yes
8897       ;;
8898
8899     sunos4*)
8900       if test "x$host_vendor" = xsequent; then
8901         # Use $CC to link under sequent, because it throws in some extra .o
8902         # files that make .init and .fini sections work.
8903         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904       else
8905         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8906       fi
8907       hardcode_libdir_flag_spec='-L$libdir'
8908       hardcode_direct=yes
8909       hardcode_minus_L=yes
8910       hardcode_shlibpath_var=no
8911       ;;
8912
8913     sysv4)
8914       case $host_vendor in
8915         sni)
8916           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917           hardcode_direct=yes # is this really true???
8918         ;;
8919         siemens)
8920           ## LD is ld it makes a PLAMLIB
8921           ## CC just makes a GrossModule.
8922           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8923           reload_cmds='$CC -r -o $output$reload_objs'
8924           hardcode_direct=no
8925         ;;
8926         motorola)
8927           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8929         ;;
8930       esac
8931       runpath_var='LD_RUN_PATH'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     sysv4.3*)
8936       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8937       hardcode_shlibpath_var=no
8938       export_dynamic_flag_spec='-Bexport'
8939       ;;
8940
8941     sysv4*MP*)
8942       if test -d /usr/nec; then
8943         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944         hardcode_shlibpath_var=no
8945         runpath_var=LD_RUN_PATH
8946         hardcode_runpath_var=yes
8947         ld_shlibs=yes
8948       fi
8949       ;;
8950
8951     sysv4.2uw2*)
8952       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8953       hardcode_direct=yes
8954       hardcode_minus_L=no
8955       hardcode_shlibpath_var=no
8956       hardcode_runpath_var=yes
8957       runpath_var=LD_RUN_PATH
8958       ;;
8959
8960    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8961       no_undefined_flag='${wl}-z ${wl}text'
8962       if test "$GCC" = yes; then
8963         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964       else
8965         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966       fi
8967       runpath_var='LD_RUN_PATH'
8968       hardcode_shlibpath_var=no
8969       ;;
8970
8971     sysv5*)
8972       no_undefined_flag=' -z text'
8973       # $CC -shared without GNU ld will not create a library from C++
8974       # object files and a static libstdc++, better avoid it by now
8975       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8976       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8977                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8978       hardcode_libdir_flag_spec=
8979       hardcode_shlibpath_var=no
8980       runpath_var='LD_RUN_PATH'
8981       ;;
8982
8983     uts4*)
8984       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8985       hardcode_libdir_flag_spec='-L$libdir'
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     *)
8990       ld_shlibs=no
8991       ;;
8992     esac
8993   fi
8994
8995 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8996 echo "${ECHO_T}$ld_shlibs" >&6
8997 test "$ld_shlibs" = no && can_build_shared=no
8998
8999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9000 if test "$GCC" = yes; then
9001   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9002 fi
9003
9004 #
9005 # Do we need to explicitly link libc?
9006 #
9007 case "x$archive_cmds_need_lc" in
9008 x|xyes)
9009   # Assume -lc should be added
9010   archive_cmds_need_lc=yes
9011
9012   if test "$enable_shared" = yes && test "$GCC" = yes; then
9013     case $archive_cmds in
9014     *'~'*)
9015       # FIXME: we may have to deal with multi-command sequences.
9016       ;;
9017     '$CC '*)
9018       # Test whether the compiler implicitly links with -lc since on some
9019       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9020       # to ld, don't add -lc before -lgcc.
9021       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9022 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9023       $rm conftest*
9024       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9025
9026       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9027   (eval $ac_compile) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } 2>conftest.err; then
9031         soname=conftest
9032         lib=conftest
9033         libobjs=conftest.$ac_objext
9034         deplibs=
9035         wl=$lt_prog_compiler_wl
9036         compiler_flags=-v
9037         linker_flags=-v
9038         verstring=
9039         output_objdir=.
9040         libname=conftest
9041         lt_save_allow_undefined_flag=$allow_undefined_flag
9042         allow_undefined_flag=
9043         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9044   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }
9048         then
9049           archive_cmds_need_lc=no
9050         else
9051           archive_cmds_need_lc=yes
9052         fi
9053         allow_undefined_flag=$lt_save_allow_undefined_flag
9054       else
9055         cat conftest.err 1>&5
9056       fi
9057       $rm conftest*
9058       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9059 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9060       ;;
9061     esac
9062   fi
9063   ;;
9064 esac
9065
9066 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9067 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9068 library_names_spec=
9069 libname_spec='lib$name'
9070 soname_spec=
9071 shrext_cmds=".so"
9072 postinstall_cmds=
9073 postuninstall_cmds=
9074 finish_cmds=
9075 finish_eval=
9076 shlibpath_var=
9077 shlibpath_overrides_runpath=unknown
9078 version_type=none
9079 dynamic_linker="$host_os ld.so"
9080 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9081 if test "$GCC" = yes; then
9082   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9083   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9084     # if the path contains ";" then we assume it to be the separator
9085     # otherwise default to the standard path separator (i.e. ":") - it is
9086     # assumed that no part of a normal pathname contains ";" but that should
9087     # okay in the real world where ";" in dirpaths is itself problematic.
9088     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9089   else
9090     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9091   fi
9092 else
9093   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9094 fi
9095 need_lib_prefix=unknown
9096 hardcode_into_libs=no
9097
9098 # when you set need_version to no, make sure it does not cause -set_version
9099 # flags to be left without arguments
9100 need_version=unknown
9101
9102 case $host_os in
9103 aix3*)
9104   version_type=linux
9105   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9106   shlibpath_var=LIBPATH
9107
9108   # AIX 3 has no versioning support, so we append a major version to the name.
9109   soname_spec='${libname}${release}${shared_ext}$major'
9110   ;;
9111
9112 aix4* | aix5*)
9113   version_type=linux
9114   need_lib_prefix=no
9115   need_version=no
9116   hardcode_into_libs=yes
9117   if test "$host_cpu" = ia64; then
9118     # AIX 5 supports IA64
9119     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9120     shlibpath_var=LD_LIBRARY_PATH
9121   else
9122     # With GCC up to 2.95.x, collect2 would create an import file
9123     # for dependence libraries.  The import file would start with
9124     # the line `#! .'.  This would cause the generated library to
9125     # depend on `.', always an invalid library.  This was fixed in
9126     # development snapshots of GCC prior to 3.0.
9127     case $host_os in
9128       aix4 | aix4.[01] | aix4.[01].*)
9129       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9130            echo ' yes '
9131            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9132         :
9133       else
9134         can_build_shared=no
9135       fi
9136       ;;
9137     esac
9138     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9139     # soname into executable. Probably we can add versioning support to
9140     # collect2, so additional links can be useful in future.
9141     if test "$aix_use_runtimelinking" = yes; then
9142       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9143       # instead of lib<name>.a to let people know that these are not
9144       # typical AIX shared libraries.
9145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146     else
9147       # We preserve .a as extension for shared libraries through AIX4.2
9148       # and later when we are not doing run time linking.
9149       library_names_spec='${libname}${release}.a $libname.a'
9150       soname_spec='${libname}${release}${shared_ext}$major'
9151     fi
9152     shlibpath_var=LIBPATH
9153   fi
9154   ;;
9155
9156 amigaos*)
9157   library_names_spec='$libname.ixlibrary $libname.a'
9158   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9159   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'
9160   ;;
9161
9162 beos*)
9163   library_names_spec='${libname}${shared_ext}'
9164   dynamic_linker="$host_os ld.so"
9165   shlibpath_var=LIBRARY_PATH
9166   ;;
9167
9168 bsdi[45]*)
9169   version_type=linux
9170   need_version=no
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9174   shlibpath_var=LD_LIBRARY_PATH
9175   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9176   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9177   # the default ld.so.conf also contains /usr/contrib/lib and
9178   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9179   # libtool to hard-code these into programs
9180   ;;
9181
9182 cygwin* | mingw* | pw32*)
9183   version_type=windows
9184   shrext_cmds=".dll"
9185   need_version=no
9186   need_lib_prefix=no
9187
9188   case $GCC,$host_os in
9189   yes,cygwin* | yes,mingw* | yes,pw32*)
9190     library_names_spec='$libname.dll.a'
9191     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9192     postinstall_cmds='base_file=`basename \${file}`~
9193       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9194       dldir=$destdir/`dirname \$dlpath`~
9195       test -d \$dldir || mkdir -p \$dldir~
9196       $install_prog $dir/$dlname \$dldir/$dlname~
9197       chmod a+x \$dldir/$dlname'
9198     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9199       dlpath=$dir/\$dldll~
9200        $rm \$dlpath'
9201     shlibpath_overrides_runpath=yes
9202
9203     case $host_os in
9204     cygwin*)
9205       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9206       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9207       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9208       ;;
9209     mingw*)
9210       # MinGW DLLs use traditional 'lib' prefix
9211       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9213       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9214         # It is most probably a Windows format PATH printed by
9215         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9216         # path with ; separators, and with drive letters. We can handle the
9217         # drive letters (cygwin fileutils understands them), so leave them,
9218         # especially as we might pass files found there to a mingw objdump,
9219         # which wouldn't understand a cygwinified path. Ahh.
9220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9221       else
9222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9223       fi
9224       ;;
9225     pw32*)
9226       # pw32 DLLs use 'pw' prefix rather than 'lib'
9227       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9228       ;;
9229     esac
9230     ;;
9231
9232   *)
9233     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9234     ;;
9235   esac
9236   dynamic_linker='Win32 ld.exe'
9237   # FIXME: first we should search . and the directory the executable is in
9238   shlibpath_var=PATH
9239   ;;
9240
9241 darwin* | rhapsody*)
9242   dynamic_linker="$host_os dyld"
9243   version_type=darwin
9244   need_lib_prefix=no
9245   need_version=no
9246   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9247   soname_spec='${libname}${release}${major}$shared_ext'
9248   shlibpath_overrides_runpath=yes
9249   shlibpath_var=DYLD_LIBRARY_PATH
9250   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9251   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9252   if test "$GCC" = yes; then
9253     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"`
9254   else
9255     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9256   fi
9257   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9258   ;;
9259
9260 dgux*)
9261   version_type=linux
9262   need_lib_prefix=no
9263   need_version=no
9264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   shlibpath_var=LD_LIBRARY_PATH
9267   ;;
9268
9269 freebsd1*)
9270   dynamic_linker=no
9271   ;;
9272
9273 kfreebsd*-gnu)
9274   version_type=linux
9275   need_lib_prefix=no
9276   need_version=no
9277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9278   soname_spec='${libname}${release}${shared_ext}$major'
9279   shlibpath_var=LD_LIBRARY_PATH
9280   shlibpath_overrides_runpath=no
9281   hardcode_into_libs=yes
9282   dynamic_linker='GNU ld.so'
9283   ;;
9284
9285 freebsd* | dragonfly*)
9286   # DragonFly does not have aout.  When/if they implement a new
9287   # versioning mechanism, adjust this.
9288   if test -x /usr/bin/objformat; then
9289     objformat=`/usr/bin/objformat`
9290   else
9291     case $host_os in
9292     freebsd[123]*) objformat=aout ;;
9293     *) objformat=elf ;;
9294     esac
9295   fi
9296   version_type=freebsd-$objformat
9297   case $version_type in
9298     freebsd-elf*)
9299       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9300       need_version=no
9301       need_lib_prefix=no
9302       ;;
9303     freebsd-*)
9304       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9305       need_version=yes
9306       ;;
9307   esac
9308   shlibpath_var=LD_LIBRARY_PATH
9309   case $host_os in
9310   freebsd2*)
9311     shlibpath_overrides_runpath=yes
9312     ;;
9313   freebsd3.[01]* | freebsdelf3.[01]*)
9314     shlibpath_overrides_runpath=yes
9315     hardcode_into_libs=yes
9316     ;;
9317   *) # from 3.2 on
9318     shlibpath_overrides_runpath=no
9319     hardcode_into_libs=yes
9320     ;;
9321   esac
9322   ;;
9323
9324 gnu*)
9325   version_type=linux
9326   need_lib_prefix=no
9327   need_version=no
9328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9329   soname_spec='${libname}${release}${shared_ext}$major'
9330   shlibpath_var=LD_LIBRARY_PATH
9331   hardcode_into_libs=yes
9332   ;;
9333
9334 hpux9* | hpux10* | hpux11*)
9335   # Give a soname corresponding to the major version so that dld.sl refuses to
9336   # link against other versions.
9337   version_type=sunos
9338   need_lib_prefix=no
9339   need_version=no
9340   case $host_cpu in
9341   ia64*)
9342     shrext_cmds='.so'
9343     hardcode_into_libs=yes
9344     dynamic_linker="$host_os dld.so"
9345     shlibpath_var=LD_LIBRARY_PATH
9346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348     soname_spec='${libname}${release}${shared_ext}$major'
9349     if test "X$HPUX_IA64_MODE" = X32; then
9350       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9351     else
9352       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9353     fi
9354     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9355     ;;
9356    hppa*64*)
9357      shrext_cmds='.sl'
9358      hardcode_into_libs=yes
9359      dynamic_linker="$host_os dld.sl"
9360      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9361      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363      soname_spec='${libname}${release}${shared_ext}$major'
9364      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9365      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9366      ;;
9367    *)
9368     shrext_cmds='.sl'
9369     dynamic_linker="$host_os dld.sl"
9370     shlibpath_var=SHLIB_PATH
9371     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373     soname_spec='${libname}${release}${shared_ext}$major'
9374     ;;
9375   esac
9376   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9377   postinstall_cmds='chmod 555 $lib'
9378   ;;
9379
9380 irix5* | irix6* | nonstopux*)
9381   case $host_os in
9382     nonstopux*) version_type=nonstopux ;;
9383     *)
9384         if test "$lt_cv_prog_gnu_ld" = yes; then
9385                 version_type=linux
9386         else
9387                 version_type=irix
9388         fi ;;
9389   esac
9390   need_lib_prefix=no
9391   need_version=no
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9394   case $host_os in
9395   irix5* | nonstopux*)
9396     libsuff= shlibsuff=
9397     ;;
9398   *)
9399     case $LD in # libtool.m4 will add one of these switches to LD
9400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9401       libsuff= shlibsuff= libmagic=32-bit;;
9402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9403       libsuff=32 shlibsuff=N32 libmagic=N32;;
9404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9406     *) libsuff= shlibsuff= libmagic=never-match;;
9407     esac
9408     ;;
9409   esac
9410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9411   shlibpath_overrides_runpath=no
9412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9414   hardcode_into_libs=yes
9415   ;;
9416
9417 # No shared lib support for Linux oldld, aout, or coff.
9418 linux*oldld* | linux*aout* | linux*coff*)
9419   dynamic_linker=no
9420   ;;
9421
9422 # This must be Linux ELF.
9423 linux*)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   shlibpath_overrides_runpath=no
9432   # This implies no fast_install, which is unacceptable.
9433   # Some rework will be needed to allow for fast_install
9434   # before this can be enabled.
9435   hardcode_into_libs=yes
9436
9437   # Append ld.so.conf contents to the search path
9438   if test -f /etc/ld.so.conf; then
9439     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' ' '`
9440     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9441   fi
9442
9443   # We used to test for /lib/ld.so.1 and disable shared libraries on
9444   # powerpc, because MkLinux only supported shared libraries with the
9445   # GNU dynamic linker.  Since this was broken with cross compilers,
9446   # most powerpc-linux boxes support dynamic linking these days and
9447   # people can always --disable-shared, the test was removed, and we
9448   # assume the GNU/Linux dynamic linker is in use.
9449   dynamic_linker='GNU/Linux ld.so'
9450   ;;
9451
9452 knetbsd*-gnu)
9453   version_type=linux
9454   need_lib_prefix=no
9455   need_version=no
9456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457   soname_spec='${libname}${release}${shared_ext}$major'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=no
9460   hardcode_into_libs=yes
9461   dynamic_linker='GNU ld.so'
9462   ;;
9463
9464 netbsd*)
9465   version_type=sunos
9466   need_lib_prefix=no
9467   need_version=no
9468   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9470     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9471     dynamic_linker='NetBSD (a.out) ld.so'
9472   else
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     dynamic_linker='NetBSD ld.elf_so'
9476   fi
9477   shlibpath_var=LD_LIBRARY_PATH
9478   shlibpath_overrides_runpath=yes
9479   hardcode_into_libs=yes
9480   ;;
9481
9482 newsos6)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   shlibpath_var=LD_LIBRARY_PATH
9486   shlibpath_overrides_runpath=yes
9487   ;;
9488
9489 nto-qnx*)
9490   version_type=linux
9491   need_lib_prefix=no
9492   need_version=no
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   soname_spec='${libname}${release}${shared_ext}$major'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   shlibpath_overrides_runpath=yes
9497   ;;
9498
9499 openbsd*)
9500   version_type=sunos
9501   need_lib_prefix=no
9502   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9503   case $host_os in
9504     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9505     *)                         need_version=no  ;;
9506   esac
9507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9508   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9509   shlibpath_var=LD_LIBRARY_PATH
9510   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9511     case $host_os in
9512       openbsd2.[89] | openbsd2.[89].*)
9513         shlibpath_overrides_runpath=no
9514         ;;
9515       *)
9516         shlibpath_overrides_runpath=yes
9517         ;;
9518       esac
9519   else
9520     shlibpath_overrides_runpath=yes
9521   fi
9522   ;;
9523
9524 os2*)
9525   libname_spec='$name'
9526   shrext_cmds=".dll"
9527   need_lib_prefix=no
9528   library_names_spec='$libname${shared_ext} $libname.a'
9529   dynamic_linker='OS/2 ld.exe'
9530   shlibpath_var=LIBPATH
9531   ;;
9532
9533 osf3* | osf4* | osf5*)
9534   version_type=osf
9535   need_lib_prefix=no
9536   need_version=no
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539   shlibpath_var=LD_LIBRARY_PATH
9540   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9541   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9542   ;;
9543
9544 sco3.2v5*)
9545   version_type=osf
9546   soname_spec='${libname}${release}${shared_ext}$major'
9547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548   shlibpath_var=LD_LIBRARY_PATH
9549   ;;
9550
9551 solaris*)
9552   version_type=linux
9553   need_lib_prefix=no
9554   need_version=no
9555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556   soname_spec='${libname}${release}${shared_ext}$major'
9557   shlibpath_var=LD_LIBRARY_PATH
9558   shlibpath_overrides_runpath=yes
9559   hardcode_into_libs=yes
9560   # ldd complains unless libraries are executable
9561   postinstall_cmds='chmod +x $lib'
9562   ;;
9563
9564 sunos4*)
9565   version_type=sunos
9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   shlibpath_overrides_runpath=yes
9570   if test "$with_gnu_ld" = yes; then
9571     need_lib_prefix=no
9572   fi
9573   need_version=yes
9574   ;;
9575
9576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9577   version_type=linux
9578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579   soname_spec='${libname}${release}${shared_ext}$major'
9580   shlibpath_var=LD_LIBRARY_PATH
9581   case $host_vendor in
9582     sni)
9583       shlibpath_overrides_runpath=no
9584       need_lib_prefix=no
9585       export_dynamic_flag_spec='${wl}-Blargedynsym'
9586       runpath_var=LD_RUN_PATH
9587       ;;
9588     siemens)
9589       need_lib_prefix=no
9590       ;;
9591     motorola)
9592       need_lib_prefix=no
9593       need_version=no
9594       shlibpath_overrides_runpath=no
9595       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9596       ;;
9597   esac
9598   ;;
9599
9600 sysv4*MP*)
9601   if test -d /usr/nec ;then
9602     version_type=linux
9603     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9604     soname_spec='$libname${shared_ext}.$major'
9605     shlibpath_var=LD_LIBRARY_PATH
9606   fi
9607   ;;
9608
9609 uts4*)
9610   version_type=linux
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   shlibpath_var=LD_LIBRARY_PATH
9614   ;;
9615
9616 *)
9617   dynamic_linker=no
9618   ;;
9619 esac
9620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9621 echo "${ECHO_T}$dynamic_linker" >&6
9622 test "$dynamic_linker" = no && can_build_shared=no
9623
9624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9626 hardcode_action=
9627 if test -n "$hardcode_libdir_flag_spec" || \
9628    test -n "$runpath_var" || \
9629    test "X$hardcode_automatic" = "Xyes" ; then
9630
9631   # We can hardcode non-existant directories.
9632   if test "$hardcode_direct" != no &&
9633      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9634      # have to relink, otherwise we might link with an installed library
9635      # when we should be linking with a yet-to-be-installed one
9636      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9637      test "$hardcode_minus_L" != no; then
9638     # Linking always hardcodes the temporary library directory.
9639     hardcode_action=relink
9640   else
9641     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9642     hardcode_action=immediate
9643   fi
9644 else
9645   # We cannot hardcode anything, or else we can only hardcode existing
9646   # directories.
9647   hardcode_action=unsupported
9648 fi
9649 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9650 echo "${ECHO_T}$hardcode_action" >&6
9651
9652 if test "$hardcode_action" = relink; then
9653   # Fast installation is not supported
9654   enable_fast_install=no
9655 elif test "$shlibpath_overrides_runpath" = yes ||
9656      test "$enable_shared" = no; then
9657   # Fast installation is not necessary
9658   enable_fast_install=needless
9659 fi
9660
9661 striplib=
9662 old_striplib=
9663 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9664 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9665 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9666   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9667   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9668   echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9670 else
9671 # FIXME - insert some real tests, host_os isn't really good enough
9672   case $host_os in
9673    darwin*)
9674        if test -n "$STRIP" ; then
9675          striplib="$STRIP -x"
9676          echo "$as_me:$LINENO: result: yes" >&5
9677 echo "${ECHO_T}yes" >&6
9678        else
9679   echo "$as_me:$LINENO: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9681 fi
9682        ;;
9683    *)
9684   echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9686     ;;
9687   esac
9688 fi
9689
9690 if test "x$enable_dlopen" != xyes; then
9691   enable_dlopen=unknown
9692   enable_dlopen_self=unknown
9693   enable_dlopen_self_static=unknown
9694 else
9695   lt_cv_dlopen=no
9696   lt_cv_dlopen_libs=
9697
9698   case $host_os in
9699   beos*)
9700     lt_cv_dlopen="load_add_on"
9701     lt_cv_dlopen_libs=
9702     lt_cv_dlopen_self=yes
9703     ;;
9704
9705   mingw* | pw32*)
9706     lt_cv_dlopen="LoadLibrary"
9707     lt_cv_dlopen_libs=
9708    ;;
9709
9710   cygwin*)
9711     lt_cv_dlopen="dlopen"
9712     lt_cv_dlopen_libs=
9713    ;;
9714
9715   darwin*)
9716   # if libdl is installed we need to link against it
9717     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9720   echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722   ac_check_lib_save_LIBS=$LIBS
9723 LIBS="-ldl  $LIBS"
9724 cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730
9731 /* Override any gcc2 internal prototype to avoid an error.  */
9732 #ifdef __cplusplus
9733 extern "C"
9734 #endif
9735 /* We use char because int might match the return type of a gcc2
9736    builtin and then its argument prototype would still apply.  */
9737 char dlopen ();
9738 int
9739 main ()
9740 {
9741 dlopen ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_lib_dl_dlopen=yes
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ac_cv_lib_dl_dlopen=no
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9778 fi
9779 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9780 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9781 if test $ac_cv_lib_dl_dlopen = yes; then
9782   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9783 else
9784
9785     lt_cv_dlopen="dyld"
9786     lt_cv_dlopen_libs=
9787     lt_cv_dlopen_self=yes
9788
9789 fi
9790
9791    ;;
9792
9793   *)
9794     echo "$as_me:$LINENO: checking for shl_load" >&5
9795 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9796 if test "${ac_cv_func_shl_load+set}" = set; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807 #define shl_load innocuous_shl_load
9808
9809 /* System header to define __stub macros and hopefully few prototypes,
9810     which can conflict with char shl_load (); below.
9811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812     <limits.h> exists even on freestanding compilers.  */
9813
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9819
9820 #undef shl_load
9821
9822 /* Override any gcc2 internal prototype to avoid an error.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 {
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char shl_load ();
9830 /* The GNU C library defines this for functions which it implements
9831     to always fail with ENOSYS.  Some functions are actually named
9832     something starting with __ and the normal name is an alias.  */
9833 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9834 choke me
9835 #else
9836 char (*f) () = shl_load;
9837 #endif
9838 #ifdef __cplusplus
9839 }
9840 #endif
9841
9842 int
9843 main ()
9844 {
9845 return f != shl_load;
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852   (eval $ac_link) 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -z "$ac_c_werror_flag"
9860                          || test ! -s conftest.err'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_func_shl_load=yes
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 ac_cv_func_shl_load=no
9878 fi
9879 rm -f conftest.err conftest.$ac_objext \
9880       conftest$ac_exeext conftest.$ac_ext
9881 fi
9882 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9883 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9884 if test $ac_cv_func_shl_load = yes; then
9885   lt_cv_dlopen="shl_load"
9886 else
9887   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9888 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9889 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   ac_check_lib_save_LIBS=$LIBS
9893 LIBS="-ldld  $LIBS"
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h.  */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h.  */
9900
9901 /* Override any gcc2 internal prototype to avoid an error.  */
9902 #ifdef __cplusplus
9903 extern "C"
9904 #endif
9905 /* We use char because int might match the return type of a gcc2
9906    builtin and then its argument prototype would still apply.  */
9907 char shl_load ();
9908 int
9909 main ()
9910 {
9911 shl_load ();
9912   ;
9913   return 0;
9914 }
9915 _ACEOF
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918   (eval $ac_link) 2>conftest.er1
9919   ac_status=$?
9920   grep -v '^ *+' conftest.er1 >conftest.err
9921   rm -f conftest.er1
9922   cat conftest.err >&5
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); } &&
9925          { ac_try='test -z "$ac_c_werror_flag"
9926                          || test ! -s conftest.err'
9927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928   (eval $ac_try) 2>&5
9929   ac_status=$?
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); }; } &&
9932          { ac_try='test -s conftest$ac_exeext'
9933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934   (eval $ac_try) 2>&5
9935   ac_status=$?
9936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937   (exit $ac_status); }; }; then
9938   ac_cv_lib_dld_shl_load=yes
9939 else
9940   echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9942
9943 ac_cv_lib_dld_shl_load=no
9944 fi
9945 rm -f conftest.err conftest.$ac_objext \
9946       conftest$ac_exeext conftest.$ac_ext
9947 LIBS=$ac_check_lib_save_LIBS
9948 fi
9949 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9950 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9951 if test $ac_cv_lib_dld_shl_load = yes; then
9952   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9953 else
9954   echo "$as_me:$LINENO: checking for dlopen" >&5
9955 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9956 if test "${ac_cv_func_dlopen+set}" = set; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9967 #define dlopen innocuous_dlopen
9968
9969 /* System header to define __stub macros and hopefully few prototypes,
9970     which can conflict with char dlopen (); below.
9971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972     <limits.h> exists even on freestanding compilers.  */
9973
9974 #ifdef __STDC__
9975 # include <limits.h>
9976 #else
9977 # include <assert.h>
9978 #endif
9979
9980 #undef dlopen
9981
9982 /* Override any gcc2 internal prototype to avoid an error.  */
9983 #ifdef __cplusplus
9984 extern "C"
9985 {
9986 #endif
9987 /* We use char because int might match the return type of a gcc2
9988    builtin and then its argument prototype would still apply.  */
9989 char dlopen ();
9990 /* The GNU C library defines this for functions which it implements
9991     to always fail with ENOSYS.  Some functions are actually named
9992     something starting with __ and the normal name is an alias.  */
9993 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9994 choke me
9995 #else
9996 char (*f) () = dlopen;
9997 #endif
9998 #ifdef __cplusplus
9999 }
10000 #endif
10001
10002 int
10003 main ()
10004 {
10005 return f != dlopen;
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012   (eval $ac_link) 2>conftest.er1
10013   ac_status=$?
10014   grep -v '^ *+' conftest.er1 >conftest.err
10015   rm -f conftest.er1
10016   cat conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } &&
10019          { ac_try='test -z "$ac_c_werror_flag"
10020                          || test ! -s conftest.err'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; } &&
10026          { ac_try='test -s conftest$ac_exeext'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; }; then
10032   ac_cv_func_dlopen=yes
10033 else
10034   echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10036
10037 ac_cv_func_dlopen=no
10038 fi
10039 rm -f conftest.err conftest.$ac_objext \
10040       conftest$ac_exeext conftest.$ac_ext
10041 fi
10042 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10043 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10044 if test $ac_cv_func_dlopen = yes; then
10045   lt_cv_dlopen="dlopen"
10046 else
10047   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10048 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-ldl  $LIBS"
10054 cat >conftest.$ac_ext <<_ACEOF
10055 /* confdefs.h.  */
10056 _ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h.  */
10060
10061 /* Override any gcc2 internal prototype to avoid an error.  */
10062 #ifdef __cplusplus
10063 extern "C"
10064 #endif
10065 /* We use char because int might match the return type of a gcc2
10066    builtin and then its argument prototype would still apply.  */
10067 char dlopen ();
10068 int
10069 main ()
10070 {
10071 dlopen ();
10072   ;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest.$ac_objext conftest$ac_exeext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078   (eval $ac_link) 2>conftest.er1
10079   ac_status=$?
10080   grep -v '^ *+' conftest.er1 >conftest.err
10081   rm -f conftest.er1
10082   cat conftest.err >&5
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } &&
10085          { ac_try='test -z "$ac_c_werror_flag"
10086                          || test ! -s conftest.err'
10087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10088   (eval $ac_try) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; } &&
10092          { ac_try='test -s conftest$ac_exeext'
10093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094   (eval $ac_try) 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098   ac_cv_lib_dl_dlopen=yes
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103 ac_cv_lib_dl_dlopen=no
10104 fi
10105 rm -f conftest.err conftest.$ac_objext \
10106       conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10108 fi
10109 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10111 if test $ac_cv_lib_dl_dlopen = yes; then
10112   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10113 else
10114   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   ac_check_lib_save_LIBS=$LIBS
10120 LIBS="-lsvld  $LIBS"
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127
10128 /* Override any gcc2 internal prototype to avoid an error.  */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 /* We use char because int might match the return type of a gcc2
10133    builtin and then its argument prototype would still apply.  */
10134 char dlopen ();
10135 int
10136 main ()
10137 {
10138 dlopen ();
10139   ;
10140   return 0;
10141 }
10142 _ACEOF
10143 rm -f conftest.$ac_objext conftest$ac_exeext
10144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } &&
10152          { ac_try='test -z "$ac_c_werror_flag"
10153                          || test ! -s conftest.err'
10154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155   (eval $ac_try) 2>&5
10156   ac_status=$?
10157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158   (exit $ac_status); }; } &&
10159          { ac_try='test -s conftest$ac_exeext'
10160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161   (eval $ac_try) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_lib_svld_dlopen=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170 ac_cv_lib_svld_dlopen=no
10171 fi
10172 rm -f conftest.err conftest.$ac_objext \
10173       conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10175 fi
10176 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10177 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10178 if test $ac_cv_lib_svld_dlopen = yes; then
10179   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10180 else
10181   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10182 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10183 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-ldld  $LIBS"
10188 cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h.  */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h.  */
10194
10195 /* Override any gcc2 internal prototype to avoid an error.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 /* We use char because int might match the return type of a gcc2
10200    builtin and then its argument prototype would still apply.  */
10201 char dld_link ();
10202 int
10203 main ()
10204 {
10205 dld_link ();
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 rm -f conftest.$ac_objext conftest$ac_exeext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212   (eval $ac_link) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -z "$ac_c_werror_flag"
10220                          || test ! -s conftest.err'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; } &&
10226          { ac_try='test -s conftest$ac_exeext'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_cv_lib_dld_dld_link=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_cv_lib_dld_dld_link=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext \
10240       conftest$ac_exeext conftest.$ac_ext
10241 LIBS=$ac_check_lib_save_LIBS
10242 fi
10243 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10244 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10245 if test $ac_cv_lib_dld_dld_link = yes; then
10246   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10247 fi
10248
10249
10250 fi
10251
10252
10253 fi
10254
10255
10256 fi
10257
10258
10259 fi
10260
10261
10262 fi
10263
10264     ;;
10265   esac
10266
10267   if test "x$lt_cv_dlopen" != xno; then
10268     enable_dlopen=yes
10269   else
10270     enable_dlopen=no
10271   fi
10272
10273   case $lt_cv_dlopen in
10274   dlopen)
10275     save_CPPFLAGS="$CPPFLAGS"
10276     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10277
10278     save_LDFLAGS="$LDFLAGS"
10279     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10280
10281     save_LIBS="$LIBS"
10282     LIBS="$lt_cv_dlopen_libs $LIBS"
10283
10284     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10285 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10286 if test "${lt_cv_dlopen_self+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289           if test "$cross_compiling" = yes; then :
10290   lt_cv_dlopen_self=cross
10291 else
10292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10293   lt_status=$lt_dlunknown
10294   cat > conftest.$ac_ext <<EOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10297
10298 #if HAVE_DLFCN_H
10299 #include <dlfcn.h>
10300 #endif
10301
10302 #include <stdio.h>
10303
10304 #ifdef RTLD_GLOBAL
10305 #  define LT_DLGLOBAL           RTLD_GLOBAL
10306 #else
10307 #  ifdef DL_GLOBAL
10308 #    define LT_DLGLOBAL         DL_GLOBAL
10309 #  else
10310 #    define LT_DLGLOBAL         0
10311 #  endif
10312 #endif
10313
10314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10315    find out it does not work in some platform. */
10316 #ifndef LT_DLLAZY_OR_NOW
10317 #  ifdef RTLD_LAZY
10318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10319 #  else
10320 #    ifdef DL_LAZY
10321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10322 #    else
10323 #      ifdef RTLD_NOW
10324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10325 #      else
10326 #        ifdef DL_NOW
10327 #          define LT_DLLAZY_OR_NOW      DL_NOW
10328 #        else
10329 #          define LT_DLLAZY_OR_NOW      0
10330 #        endif
10331 #      endif
10332 #    endif
10333 #  endif
10334 #endif
10335
10336 #ifdef __cplusplus
10337 extern "C" void exit (int);
10338 #endif
10339
10340 void fnord() { int i=42;}
10341 int main ()
10342 {
10343   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10344   int status = $lt_dlunknown;
10345
10346   if (self)
10347     {
10348       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10349       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10350       /* dlclose (self); */
10351     }
10352
10353     exit (status);
10354 }
10355 EOF
10356   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357   (eval $ac_link) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361     (./conftest; exit; ) >&5 2>/dev/null
10362     lt_status=$?
10363     case x$lt_status in
10364       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10365       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10366       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10367     esac
10368   else :
10369     # compilation failed
10370     lt_cv_dlopen_self=no
10371   fi
10372 fi
10373 rm -fr conftest*
10374
10375
10376 fi
10377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10378 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10379
10380     if test "x$lt_cv_dlopen_self" = xyes; then
10381       LDFLAGS="$LDFLAGS $link_static_flag"
10382       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10383 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10384 if test "${lt_cv_dlopen_self_static+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387           if test "$cross_compiling" = yes; then :
10388   lt_cv_dlopen_self_static=cross
10389 else
10390   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10391   lt_status=$lt_dlunknown
10392   cat > conftest.$ac_ext <<EOF
10393 #line 10393 "configure"
10394 #include "confdefs.h"
10395
10396 #if HAVE_DLFCN_H
10397 #include <dlfcn.h>
10398 #endif
10399
10400 #include <stdio.h>
10401
10402 #ifdef RTLD_GLOBAL
10403 #  define LT_DLGLOBAL           RTLD_GLOBAL
10404 #else
10405 #  ifdef DL_GLOBAL
10406 #    define LT_DLGLOBAL         DL_GLOBAL
10407 #  else
10408 #    define LT_DLGLOBAL         0
10409 #  endif
10410 #endif
10411
10412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10413    find out it does not work in some platform. */
10414 #ifndef LT_DLLAZY_OR_NOW
10415 #  ifdef RTLD_LAZY
10416 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10417 #  else
10418 #    ifdef DL_LAZY
10419 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10420 #    else
10421 #      ifdef RTLD_NOW
10422 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10423 #      else
10424 #        ifdef DL_NOW
10425 #          define LT_DLLAZY_OR_NOW      DL_NOW
10426 #        else
10427 #          define LT_DLLAZY_OR_NOW      0
10428 #        endif
10429 #      endif
10430 #    endif
10431 #  endif
10432 #endif
10433
10434 #ifdef __cplusplus
10435 extern "C" void exit (int);
10436 #endif
10437
10438 void fnord() { int i=42;}
10439 int main ()
10440 {
10441   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442   int status = $lt_dlunknown;
10443
10444   if (self)
10445     {
10446       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10447       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10448       /* dlclose (self); */
10449     }
10450
10451     exit (status);
10452 }
10453 EOF
10454   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455   (eval $ac_link) 2>&5
10456   ac_status=$?
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459     (./conftest; exit; ) >&5 2>/dev/null
10460     lt_status=$?
10461     case x$lt_status in
10462       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10463       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10464       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10465     esac
10466   else :
10467     # compilation failed
10468     lt_cv_dlopen_self_static=no
10469   fi
10470 fi
10471 rm -fr conftest*
10472
10473
10474 fi
10475 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10476 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10477     fi
10478
10479     CPPFLAGS="$save_CPPFLAGS"
10480     LDFLAGS="$save_LDFLAGS"
10481     LIBS="$save_LIBS"
10482     ;;
10483   esac
10484
10485   case $lt_cv_dlopen_self in
10486   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10487   *) enable_dlopen_self=unknown ;;
10488   esac
10489
10490   case $lt_cv_dlopen_self_static in
10491   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10492   *) enable_dlopen_self_static=unknown ;;
10493   esac
10494 fi
10495
10496
10497 # Report which librarie types wil actually be built
10498 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10499 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10500 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10501 echo "${ECHO_T}$can_build_shared" >&6
10502
10503 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10504 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10505 test "$can_build_shared" = "no" && enable_shared=no
10506
10507 # On AIX, shared libraries and static libraries use the same namespace, and
10508 # are all built from PIC.
10509 case $host_os in
10510 aix3*)
10511   test "$enable_shared" = yes && enable_static=no
10512   if test -n "$RANLIB"; then
10513     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10514     postinstall_cmds='$RANLIB $lib'
10515   fi
10516   ;;
10517
10518 aix4* | aix5*)
10519   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10520     test "$enable_shared" = yes && enable_static=no
10521   fi
10522     ;;
10523 esac
10524 echo "$as_me:$LINENO: result: $enable_shared" >&5
10525 echo "${ECHO_T}$enable_shared" >&6
10526
10527 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10528 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10529 # Make sure either enable_shared or enable_static is yes.
10530 test "$enable_shared" = yes || enable_static=yes
10531 echo "$as_me:$LINENO: result: $enable_static" >&5
10532 echo "${ECHO_T}$enable_static" >&6
10533
10534 # The else clause should only fire when bootstrapping the
10535 # libtool distribution, otherwise you forgot to ship ltmain.sh
10536 # with your package, and you will get complaints that there are
10537 # no rules to generate ltmain.sh.
10538 if test -f "$ltmain"; then
10539   # See if we are running on zsh, and set the options which allow our commands through
10540   # without removal of \ escapes.
10541   if test -n "${ZSH_VERSION+set}" ; then
10542     setopt NO_GLOB_SUBST
10543   fi
10544   # Now quote all the things that may contain metacharacters while being
10545   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10546   # variables and quote the copies for generation of the libtool script.
10547   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10548     SED SHELL STRIP \
10549     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10550     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10551     deplibs_check_method reload_flag reload_cmds need_locks \
10552     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10553     lt_cv_sys_global_symbol_to_c_name_address \
10554     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10555     old_postinstall_cmds old_postuninstall_cmds \
10556     compiler \
10557     CC \
10558     LD \
10559     lt_prog_compiler_wl \
10560     lt_prog_compiler_pic \
10561     lt_prog_compiler_static \
10562     lt_prog_compiler_no_builtin_flag \
10563     export_dynamic_flag_spec \
10564     thread_safe_flag_spec \
10565     whole_archive_flag_spec \
10566     enable_shared_with_static_runtimes \
10567     old_archive_cmds \
10568     old_archive_from_new_cmds \
10569     predep_objects \
10570     postdep_objects \
10571     predeps \
10572     postdeps \
10573     compiler_lib_search_path \
10574     archive_cmds \
10575     archive_expsym_cmds \
10576     postinstall_cmds \
10577     postuninstall_cmds \
10578     old_archive_from_expsyms_cmds \
10579     allow_undefined_flag \
10580     no_undefined_flag \
10581     export_symbols_cmds \
10582     hardcode_libdir_flag_spec \
10583     hardcode_libdir_flag_spec_ld \
10584     hardcode_libdir_separator \
10585     hardcode_automatic \
10586     module_cmds \
10587     module_expsym_cmds \
10588     lt_cv_prog_compiler_c_o \
10589     exclude_expsyms \
10590     include_expsyms; do
10591
10592     case $var in
10593     old_archive_cmds | \
10594     old_archive_from_new_cmds | \
10595     archive_cmds | \
10596     archive_expsym_cmds | \
10597     module_cmds | \
10598     module_expsym_cmds | \
10599     old_archive_from_expsyms_cmds | \
10600     export_symbols_cmds | \
10601     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10602     postinstall_cmds | postuninstall_cmds | \
10603     old_postinstall_cmds | old_postuninstall_cmds | \
10604     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10605       # Double-quote double-evaled strings.
10606       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10607       ;;
10608     *)
10609       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10610       ;;
10611     esac
10612   done
10613
10614   case $lt_echo in
10615   *'\$0 --fallback-echo"')
10616     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10617     ;;
10618   esac
10619
10620 cfgfile="${ofile}T"
10621   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10622   $rm -f "$cfgfile"
10623   { echo "$as_me:$LINENO: creating $ofile" >&5
10624 echo "$as_me: creating $ofile" >&6;}
10625
10626   cat <<__EOF__ >> "$cfgfile"
10627 #! $SHELL
10628
10629 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10630 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10631 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10632 #
10633 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10634 # Free Software Foundation, Inc.
10635 #
10636 # This file is part of GNU Libtool:
10637 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10638 #
10639 # This program is free software; you can redistribute it and/or modify
10640 # it under the terms of the GNU General Public License as published by
10641 # the Free Software Foundation; either version 2 of the License, or
10642 # (at your option) any later version.
10643 #
10644 # This program is distributed in the hope that it will be useful, but
10645 # WITHOUT ANY WARRANTY; without even the implied warranty of
10646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10647 # General Public License for more details.
10648 #
10649 # You should have received a copy of the GNU General Public License
10650 # along with this program; if not, write to the Free Software
10651 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10652 #
10653 # As a special exception to the GNU General Public License, if you
10654 # distribute this file as part of a program that contains a
10655 # configuration script generated by Autoconf, you may include it under
10656 # the same distribution terms that you use for the rest of that program.
10657
10658 # A sed program that does not truncate output.
10659 SED=$lt_SED
10660
10661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10662 Xsed="$SED -e 1s/^X//"
10663
10664 # The HP-UX ksh and POSIX shell print the target directory to stdout
10665 # if CDPATH is set.
10666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10667
10668 # The names of the tagged configurations supported by this script.
10669 available_tags=
10670
10671 # ### BEGIN LIBTOOL CONFIG
10672
10673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10674
10675 # Shell to use when invoking shell scripts.
10676 SHELL=$lt_SHELL
10677
10678 # Whether or not to build shared libraries.
10679 build_libtool_libs=$enable_shared
10680
10681 # Whether or not to build static libraries.
10682 build_old_libs=$enable_static
10683
10684 # Whether or not to add -lc for building shared libraries.
10685 build_libtool_need_lc=$archive_cmds_need_lc
10686
10687 # Whether or not to disallow shared libs when runtime libs are static
10688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10689
10690 # Whether or not to optimize for fast installation.
10691 fast_install=$enable_fast_install
10692
10693 # The host system.
10694 host_alias=$host_alias
10695 host=$host
10696 host_os=$host_os
10697
10698 # The build system.
10699 build_alias=$build_alias
10700 build=$build
10701 build_os=$build_os
10702
10703 # An echo program that does not interpret backslashes.
10704 echo=$lt_echo
10705
10706 # The archiver.
10707 AR=$lt_AR
10708 AR_FLAGS=$lt_AR_FLAGS
10709
10710 # A C compiler.
10711 LTCC=$lt_LTCC
10712
10713 # A language-specific compiler.
10714 CC=$lt_compiler
10715
10716 # Is the compiler the GNU C compiler?
10717 with_gcc=$GCC
10718
10719 # An ERE matcher.
10720 EGREP=$lt_EGREP
10721
10722 # The linker used to build libraries.
10723 LD=$lt_LD
10724
10725 # Whether we need hard or soft links.
10726 LN_S=$lt_LN_S
10727
10728 # A BSD-compatible nm program.
10729 NM=$lt_NM
10730
10731 # A symbol stripping program
10732 STRIP=$lt_STRIP
10733
10734 # Used to examine libraries when file_magic_cmd begins "file"
10735 MAGIC_CMD=$MAGIC_CMD
10736
10737 # Used on cygwin: DLL creation program.
10738 DLLTOOL="$DLLTOOL"
10739
10740 # Used on cygwin: object dumper.
10741 OBJDUMP="$OBJDUMP"
10742
10743 # Used on cygwin: assembler.
10744 AS="$AS"
10745
10746 # The name of the directory that contains temporary libtool files.
10747 objdir=$objdir
10748
10749 # How to create reloadable object files.
10750 reload_flag=$lt_reload_flag
10751 reload_cmds=$lt_reload_cmds
10752
10753 # How to pass a linker flag through the compiler.
10754 wl=$lt_lt_prog_compiler_wl
10755
10756 # Object file suffix (normally "o").
10757 objext="$ac_objext"
10758
10759 # Old archive suffix (normally "a").
10760 libext="$libext"
10761
10762 # Shared library suffix (normally ".so").
10763 shrext_cmds='$shrext_cmds'
10764
10765 # Executable file suffix (normally "").
10766 exeext="$exeext"
10767
10768 # Additional compiler flags for building library objects.
10769 pic_flag=$lt_lt_prog_compiler_pic
10770 pic_mode=$pic_mode
10771
10772 # What is the maximum length of a command?
10773 max_cmd_len=$lt_cv_sys_max_cmd_len
10774
10775 # Does compiler simultaneously support -c and -o options?
10776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10777
10778 # Must we lock files when doing compilation?
10779 need_locks=$lt_need_locks
10780
10781 # Do we need the lib prefix for modules?
10782 need_lib_prefix=$need_lib_prefix
10783
10784 # Do we need a version for libraries?
10785 need_version=$need_version
10786
10787 # Whether dlopen is supported.
10788 dlopen_support=$enable_dlopen
10789
10790 # Whether dlopen of programs is supported.
10791 dlopen_self=$enable_dlopen_self
10792
10793 # Whether dlopen of statically linked programs is supported.
10794 dlopen_self_static=$enable_dlopen_self_static
10795
10796 # Compiler flag to prevent dynamic linking.
10797 link_static_flag=$lt_lt_prog_compiler_static
10798
10799 # Compiler flag to turn off builtin functions.
10800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10801
10802 # Compiler flag to allow reflexive dlopens.
10803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10804
10805 # Compiler flag to generate shared objects directly from archives.
10806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10807
10808 # Compiler flag to generate thread-safe objects.
10809 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10810
10811 # Library versioning type.
10812 version_type=$version_type
10813
10814 # Format of library name prefix.
10815 libname_spec=$lt_libname_spec
10816
10817 # List of archive names.  First name is the real one, the rest are links.
10818 # The last name is the one that the linker finds with -lNAME.
10819 library_names_spec=$lt_library_names_spec
10820
10821 # The coded name of the library, if different from the real name.
10822 soname_spec=$lt_soname_spec
10823
10824 # Commands used to build and install an old-style archive.
10825 RANLIB=$lt_RANLIB
10826 old_archive_cmds=$lt_old_archive_cmds
10827 old_postinstall_cmds=$lt_old_postinstall_cmds
10828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10829
10830 # Create an old-style archive from a shared archive.
10831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10832
10833 # Create a temporary old-style archive to link instead of a shared archive.
10834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10835
10836 # Commands used to build and install a shared archive.
10837 archive_cmds=$lt_archive_cmds
10838 archive_expsym_cmds=$lt_archive_expsym_cmds
10839 postinstall_cmds=$lt_postinstall_cmds
10840 postuninstall_cmds=$lt_postuninstall_cmds
10841
10842 # Commands used to build a loadable module (assumed same as above if empty)
10843 module_cmds=$lt_module_cmds
10844 module_expsym_cmds=$lt_module_expsym_cmds
10845
10846 # Commands to strip libraries.
10847 old_striplib=$lt_old_striplib
10848 striplib=$lt_striplib
10849
10850 # Dependencies to place before the objects being linked to create a
10851 # shared library.
10852 predep_objects=$lt_predep_objects
10853
10854 # Dependencies to place after the objects being linked to create a
10855 # shared library.
10856 postdep_objects=$lt_postdep_objects
10857
10858 # Dependencies to place before the objects being linked to create a
10859 # shared library.
10860 predeps=$lt_predeps
10861
10862 # Dependencies to place after the objects being linked to create a
10863 # shared library.
10864 postdeps=$lt_postdeps
10865
10866 # The library search path used internally by the compiler when linking
10867 # a shared library.
10868 compiler_lib_search_path=$lt_compiler_lib_search_path
10869
10870 # Method to check whether dependent libraries are shared objects.
10871 deplibs_check_method=$lt_deplibs_check_method
10872
10873 # Command to use when deplibs_check_method == file_magic.
10874 file_magic_cmd=$lt_file_magic_cmd
10875
10876 # Flag that allows shared libraries with undefined symbols to be built.
10877 allow_undefined_flag=$lt_allow_undefined_flag
10878
10879 # Flag that forces no undefined symbols.
10880 no_undefined_flag=$lt_no_undefined_flag
10881
10882 # Commands used to finish a libtool library installation in a directory.
10883 finish_cmds=$lt_finish_cmds
10884
10885 # Same as above, but a single script fragment to be evaled but not shown.
10886 finish_eval=$lt_finish_eval
10887
10888 # Take the output of nm and produce a listing of raw symbols and C names.
10889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10890
10891 # Transform the output of nm in a proper C declaration
10892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10893
10894 # Transform the output of nm in a C name address pair
10895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10896
10897 # This is the shared library runtime path variable.
10898 runpath_var=$runpath_var
10899
10900 # This is the shared library path variable.
10901 shlibpath_var=$shlibpath_var
10902
10903 # Is shlibpath searched before the hard-coded library search path?
10904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10905
10906 # How to hardcode a shared library path into an executable.
10907 hardcode_action=$hardcode_action
10908
10909 # Whether we should hardcode library paths into libraries.
10910 hardcode_into_libs=$hardcode_into_libs
10911
10912 # Flag to hardcode \$libdir into a binary during linking.
10913 # This must work even if \$libdir does not exist.
10914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10915
10916 # If ld is used when linking, flag to hardcode \$libdir into
10917 # a binary during linking. This must work even if \$libdir does
10918 # not exist.
10919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10920
10921 # Whether we need a single -rpath flag with a separated argument.
10922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10923
10924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10925 # resulting binary.
10926 hardcode_direct=$hardcode_direct
10927
10928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10929 # resulting binary.
10930 hardcode_minus_L=$hardcode_minus_L
10931
10932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10933 # the resulting binary.
10934 hardcode_shlibpath_var=$hardcode_shlibpath_var
10935
10936 # Set to yes if building a shared library automatically hardcodes DIR into the library
10937 # and all subsequent libraries and executables linked against it.
10938 hardcode_automatic=$hardcode_automatic
10939
10940 # Variables whose values should be saved in libtool wrapper scripts and
10941 # restored at relink time.
10942 variables_saved_for_relink="$variables_saved_for_relink"
10943
10944 # Whether libtool must link a program against all its dependency libraries.
10945 link_all_deplibs=$link_all_deplibs
10946
10947 # Compile-time system search path for libraries
10948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10949
10950 # Run-time system search path for libraries
10951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10952
10953 # Fix the shell variable \$srcfile for the compiler.
10954 fix_srcfile_path="$fix_srcfile_path"
10955
10956 # Set to yes if exported symbols are required.
10957 always_export_symbols=$always_export_symbols
10958
10959 # The commands to list exported symbols.
10960 export_symbols_cmds=$lt_export_symbols_cmds
10961
10962 # The commands to extract the exported symbol list from a shared archive.
10963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10964
10965 # Symbols that should not be listed in the preloaded symbols.
10966 exclude_expsyms=$lt_exclude_expsyms
10967
10968 # Symbols that must always be exported.
10969 include_expsyms=$lt_include_expsyms
10970
10971 # ### END LIBTOOL CONFIG
10972
10973 __EOF__
10974
10975
10976   case $host_os in
10977   aix3*)
10978     cat <<\EOF >> "$cfgfile"
10979
10980 # AIX sometimes has problems with the GCC collect2 program.  For some
10981 # reason, if we set the COLLECT_NAMES environment variable, the problems
10982 # vanish in a puff of smoke.
10983 if test "X${COLLECT_NAMES+set}" != Xset; then
10984   COLLECT_NAMES=
10985   export COLLECT_NAMES
10986 fi
10987 EOF
10988     ;;
10989   esac
10990
10991   # We use sed instead of cat because bash on DJGPP gets confused if
10992   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10993   # text mode, it properly converts lines to CR/LF.  This bash problem
10994   # is reportedly fixed, but why not run on old versions too?
10995   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10996
10997   mv -f "$cfgfile" "$ofile" || \
10998     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10999   chmod +x "$ofile"
11000
11001 else
11002   # If there is no Makefile yet, we rely on a make rule to execute
11003   # `config.status --recheck' to rerun these tests and create the
11004   # libtool script then.
11005   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11006   if test -f "$ltmain_in"; then
11007     test -f Makefile && make "$ltmain"
11008   fi
11009 fi
11010
11011
11012 ac_ext=c
11013 ac_cpp='$CPP $CPPFLAGS'
11014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11017
11018 CC="$lt_save_CC"
11019
11020
11021 # Check whether --with-tags or --without-tags was given.
11022 if test "${with_tags+set}" = set; then
11023   withval="$with_tags"
11024   tagnames="$withval"
11025 fi;
11026
11027 if test -f "$ltmain" && test -n "$tagnames"; then
11028   if test ! -f "${ofile}"; then
11029     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11030 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11031   fi
11032
11033   if test -z "$LTCC"; then
11034     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11035     if test -z "$LTCC"; then
11036       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11037 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11038     else
11039       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11040 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11041     fi
11042   fi
11043
11044   # Extract list of available tagged configurations in $ofile.
11045   # Note that this assumes the entire list is on one line.
11046   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11047
11048   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11049   for tagname in $tagnames; do
11050     IFS="$lt_save_ifs"
11051     # Check whether tagname contains only valid characters
11052     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11053     "") ;;
11054     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11055 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11056    { (exit 1); exit 1; }; }
11057         ;;
11058     esac
11059
11060     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11061     then
11062       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11063 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11064    { (exit 1); exit 1; }; }
11065     fi
11066
11067     # Update the list of available tags.
11068     if test -n "$tagname"; then
11069       echo appending configuration tag \"$tagname\" to $ofile
11070
11071       case $tagname in
11072       CXX)
11073         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11074             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11075             (test "X$CXX" != "Xg++"))) ; then
11076           :
11077         else
11078           tagname=""
11079         fi
11080         ;;
11081
11082       F77)
11083         if test -n "$F77" && test "X$F77" != "Xno"; then
11084           :
11085         else
11086           tagname=""
11087         fi
11088         ;;
11089
11090       GCJ)
11091         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11092           :
11093         else
11094           tagname=""
11095         fi
11096         ;;
11097
11098       RC)
11099
11100
11101
11102 # Source file extension for RC test sources.
11103 ac_ext=rc
11104
11105 # Object file extension for compiled RC test sources.
11106 objext=o
11107 objext_RC=$objext
11108
11109 # Code to be used in simple compile tests
11110 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11111
11112 # Code to be used in simple link tests
11113 lt_simple_link_test_code="$lt_simple_compile_test_code"
11114
11115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11116
11117 # If no C compiler was specified, use CC.
11118 LTCC=${LTCC-"$CC"}
11119
11120 # Allow CC to be a program name with arguments.
11121 compiler=$CC
11122
11123
11124 # save warnings/boilerplate of simple test code
11125 ac_outfile=conftest.$ac_objext
11126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11128 _lt_compiler_boilerplate=`cat conftest.err`
11129 $rm conftest*
11130
11131 ac_outfile=conftest.$ac_objext
11132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11134 _lt_linker_boilerplate=`cat conftest.err`
11135 $rm conftest*
11136
11137
11138 # Allow CC to be a program name with arguments.
11139 lt_save_CC="$CC"
11140 CC=${RC-"windres"}
11141 compiler=$CC
11142 compiler_RC=$CC
11143 for cc_temp in $compiler""; do
11144   case $cc_temp in
11145     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11146     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11147     \-*) ;;
11148     *) break;;
11149   esac
11150 done
11151 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11152
11153 lt_cv_prog_compiler_c_o_RC=yes
11154
11155 # The else clause should only fire when bootstrapping the
11156 # libtool distribution, otherwise you forgot to ship ltmain.sh
11157 # with your package, and you will get complaints that there are
11158 # no rules to generate ltmain.sh.
11159 if test -f "$ltmain"; then
11160   # See if we are running on zsh, and set the options which allow our commands through
11161   # without removal of \ escapes.
11162   if test -n "${ZSH_VERSION+set}" ; then
11163     setopt NO_GLOB_SUBST
11164   fi
11165   # Now quote all the things that may contain metacharacters while being
11166   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11167   # variables and quote the copies for generation of the libtool script.
11168   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11169     SED SHELL STRIP \
11170     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11171     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11172     deplibs_check_method reload_flag reload_cmds need_locks \
11173     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11174     lt_cv_sys_global_symbol_to_c_name_address \
11175     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11176     old_postinstall_cmds old_postuninstall_cmds \
11177     compiler_RC \
11178     CC_RC \
11179     LD_RC \
11180     lt_prog_compiler_wl_RC \
11181     lt_prog_compiler_pic_RC \
11182     lt_prog_compiler_static_RC \
11183     lt_prog_compiler_no_builtin_flag_RC \
11184     export_dynamic_flag_spec_RC \
11185     thread_safe_flag_spec_RC \
11186     whole_archive_flag_spec_RC \
11187     enable_shared_with_static_runtimes_RC \
11188     old_archive_cmds_RC \
11189     old_archive_from_new_cmds_RC \
11190     predep_objects_RC \
11191     postdep_objects_RC \
11192     predeps_RC \
11193     postdeps_RC \
11194     compiler_lib_search_path_RC \
11195     archive_cmds_RC \
11196     archive_expsym_cmds_RC \
11197     postinstall_cmds_RC \
11198     postuninstall_cmds_RC \
11199     old_archive_from_expsyms_cmds_RC \
11200     allow_undefined_flag_RC \
11201     no_undefined_flag_RC \
11202     export_symbols_cmds_RC \
11203     hardcode_libdir_flag_spec_RC \
11204     hardcode_libdir_flag_spec_ld_RC \
11205     hardcode_libdir_separator_RC \
11206     hardcode_automatic_RC \
11207     module_cmds_RC \
11208     module_expsym_cmds_RC \
11209     lt_cv_prog_compiler_c_o_RC \
11210     exclude_expsyms_RC \
11211     include_expsyms_RC; do
11212
11213     case $var in
11214     old_archive_cmds_RC | \
11215     old_archive_from_new_cmds_RC | \
11216     archive_cmds_RC | \
11217     archive_expsym_cmds_RC | \
11218     module_cmds_RC | \
11219     module_expsym_cmds_RC | \
11220     old_archive_from_expsyms_cmds_RC | \
11221     export_symbols_cmds_RC | \
11222     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11223     postinstall_cmds | postuninstall_cmds | \
11224     old_postinstall_cmds | old_postuninstall_cmds | \
11225     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11226       # Double-quote double-evaled strings.
11227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11228       ;;
11229     *)
11230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11231       ;;
11232     esac
11233   done
11234
11235   case $lt_echo in
11236   *'\$0 --fallback-echo"')
11237     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11238     ;;
11239   esac
11240
11241 cfgfile="$ofile"
11242
11243   cat <<__EOF__ >> "$cfgfile"
11244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11245
11246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11247
11248 # Shell to use when invoking shell scripts.
11249 SHELL=$lt_SHELL
11250
11251 # Whether or not to build shared libraries.
11252 build_libtool_libs=$enable_shared
11253
11254 # Whether or not to build static libraries.
11255 build_old_libs=$enable_static
11256
11257 # Whether or not to add -lc for building shared libraries.
11258 build_libtool_need_lc=$archive_cmds_need_lc_RC
11259
11260 # Whether or not to disallow shared libs when runtime libs are static
11261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11262
11263 # Whether or not to optimize for fast installation.
11264 fast_install=$enable_fast_install
11265
11266 # The host system.
11267 host_alias=$host_alias
11268 host=$host
11269 host_os=$host_os
11270
11271 # The build system.
11272 build_alias=$build_alias
11273 build=$build
11274 build_os=$build_os
11275
11276 # An echo program that does not interpret backslashes.
11277 echo=$lt_echo
11278
11279 # The archiver.
11280 AR=$lt_AR
11281 AR_FLAGS=$lt_AR_FLAGS
11282
11283 # A C compiler.
11284 LTCC=$lt_LTCC
11285
11286 # A language-specific compiler.
11287 CC=$lt_compiler_RC
11288
11289 # Is the compiler the GNU C compiler?
11290 with_gcc=$GCC_RC
11291
11292 # An ERE matcher.
11293 EGREP=$lt_EGREP
11294
11295 # The linker used to build libraries.
11296 LD=$lt_LD_RC
11297
11298 # Whether we need hard or soft links.
11299 LN_S=$lt_LN_S
11300
11301 # A BSD-compatible nm program.
11302 NM=$lt_NM
11303
11304 # A symbol stripping program
11305 STRIP=$lt_STRIP
11306
11307 # Used to examine libraries when file_magic_cmd begins "file"
11308 MAGIC_CMD=$MAGIC_CMD
11309
11310 # Used on cygwin: DLL creation program.
11311 DLLTOOL="$DLLTOOL"
11312
11313 # Used on cygwin: object dumper.
11314 OBJDUMP="$OBJDUMP"
11315
11316 # Used on cygwin: assembler.
11317 AS="$AS"
11318
11319 # The name of the directory that contains temporary libtool files.
11320 objdir=$objdir
11321
11322 # How to create reloadable object files.
11323 reload_flag=$lt_reload_flag
11324 reload_cmds=$lt_reload_cmds
11325
11326 # How to pass a linker flag through the compiler.
11327 wl=$lt_lt_prog_compiler_wl_RC
11328
11329 # Object file suffix (normally "o").
11330 objext="$ac_objext"
11331
11332 # Old archive suffix (normally "a").
11333 libext="$libext"
11334
11335 # Shared library suffix (normally ".so").
11336 shrext_cmds='$shrext_cmds'
11337
11338 # Executable file suffix (normally "").
11339 exeext="$exeext"
11340
11341 # Additional compiler flags for building library objects.
11342 pic_flag=$lt_lt_prog_compiler_pic_RC
11343 pic_mode=$pic_mode
11344
11345 # What is the maximum length of a command?
11346 max_cmd_len=$lt_cv_sys_max_cmd_len
11347
11348 # Does compiler simultaneously support -c and -o options?
11349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11350
11351 # Must we lock files when doing compilation?
11352 need_locks=$lt_need_locks
11353
11354 # Do we need the lib prefix for modules?
11355 need_lib_prefix=$need_lib_prefix
11356
11357 # Do we need a version for libraries?
11358 need_version=$need_version
11359
11360 # Whether dlopen is supported.
11361 dlopen_support=$enable_dlopen
11362
11363 # Whether dlopen of programs is supported.
11364 dlopen_self=$enable_dlopen_self
11365
11366 # Whether dlopen of statically linked programs is supported.
11367 dlopen_self_static=$enable_dlopen_self_static
11368
11369 # Compiler flag to prevent dynamic linking.
11370 link_static_flag=$lt_lt_prog_compiler_static_RC
11371
11372 # Compiler flag to turn off builtin functions.
11373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11374
11375 # Compiler flag to allow reflexive dlopens.
11376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11377
11378 # Compiler flag to generate shared objects directly from archives.
11379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11380
11381 # Compiler flag to generate thread-safe objects.
11382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11383
11384 # Library versioning type.
11385 version_type=$version_type
11386
11387 # Format of library name prefix.
11388 libname_spec=$lt_libname_spec
11389
11390 # List of archive names.  First name is the real one, the rest are links.
11391 # The last name is the one that the linker finds with -lNAME.
11392 library_names_spec=$lt_library_names_spec
11393
11394 # The coded name of the library, if different from the real name.
11395 soname_spec=$lt_soname_spec
11396
11397 # Commands used to build and install an old-style archive.
11398 RANLIB=$lt_RANLIB
11399 old_archive_cmds=$lt_old_archive_cmds_RC
11400 old_postinstall_cmds=$lt_old_postinstall_cmds
11401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11402
11403 # Create an old-style archive from a shared archive.
11404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11405
11406 # Create a temporary old-style archive to link instead of a shared archive.
11407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11408
11409 # Commands used to build and install a shared archive.
11410 archive_cmds=$lt_archive_cmds_RC
11411 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11412 postinstall_cmds=$lt_postinstall_cmds
11413 postuninstall_cmds=$lt_postuninstall_cmds
11414
11415 # Commands used to build a loadable module (assumed same as above if empty)
11416 module_cmds=$lt_module_cmds_RC
11417 module_expsym_cmds=$lt_module_expsym_cmds_RC
11418
11419 # Commands to strip libraries.
11420 old_striplib=$lt_old_striplib
11421 striplib=$lt_striplib
11422
11423 # Dependencies to place before the objects being linked to create a
11424 # shared library.
11425 predep_objects=$lt_predep_objects_RC
11426
11427 # Dependencies to place after the objects being linked to create a
11428 # shared library.
11429 postdep_objects=$lt_postdep_objects_RC
11430
11431 # Dependencies to place before the objects being linked to create a
11432 # shared library.
11433 predeps=$lt_predeps_RC
11434
11435 # Dependencies to place after the objects being linked to create a
11436 # shared library.
11437 postdeps=$lt_postdeps_RC
11438
11439 # The library search path used internally by the compiler when linking
11440 # a shared library.
11441 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11442
11443 # Method to check whether dependent libraries are shared objects.
11444 deplibs_check_method=$lt_deplibs_check_method
11445
11446 # Command to use when deplibs_check_method == file_magic.
11447 file_magic_cmd=$lt_file_magic_cmd
11448
11449 # Flag that allows shared libraries with undefined symbols to be built.
11450 allow_undefined_flag=$lt_allow_undefined_flag_RC
11451
11452 # Flag that forces no undefined symbols.
11453 no_undefined_flag=$lt_no_undefined_flag_RC
11454
11455 # Commands used to finish a libtool library installation in a directory.
11456 finish_cmds=$lt_finish_cmds
11457
11458 # Same as above, but a single script fragment to be evaled but not shown.
11459 finish_eval=$lt_finish_eval
11460
11461 # Take the output of nm and produce a listing of raw symbols and C names.
11462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11463
11464 # Transform the output of nm in a proper C declaration
11465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11466
11467 # Transform the output of nm in a C name address pair
11468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11469
11470 # This is the shared library runtime path variable.
11471 runpath_var=$runpath_var
11472
11473 # This is the shared library path variable.
11474 shlibpath_var=$shlibpath_var
11475
11476 # Is shlibpath searched before the hard-coded library search path?
11477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11478
11479 # How to hardcode a shared library path into an executable.
11480 hardcode_action=$hardcode_action_RC
11481
11482 # Whether we should hardcode library paths into libraries.
11483 hardcode_into_libs=$hardcode_into_libs
11484
11485 # Flag to hardcode \$libdir into a binary during linking.
11486 # This must work even if \$libdir does not exist.
11487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11488
11489 # If ld is used when linking, flag to hardcode \$libdir into
11490 # a binary during linking. This must work even if \$libdir does
11491 # not exist.
11492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11493
11494 # Whether we need a single -rpath flag with a separated argument.
11495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11496
11497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11498 # resulting binary.
11499 hardcode_direct=$hardcode_direct_RC
11500
11501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11502 # resulting binary.
11503 hardcode_minus_L=$hardcode_minus_L_RC
11504
11505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11506 # the resulting binary.
11507 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11508
11509 # Set to yes if building a shared library automatically hardcodes DIR into the library
11510 # and all subsequent libraries and executables linked against it.
11511 hardcode_automatic=$hardcode_automatic_RC
11512
11513 # Variables whose values should be saved in libtool wrapper scripts and
11514 # restored at relink time.
11515 variables_saved_for_relink="$variables_saved_for_relink"
11516
11517 # Whether libtool must link a program against all its dependency libraries.
11518 link_all_deplibs=$link_all_deplibs_RC
11519
11520 # Compile-time system search path for libraries
11521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11522
11523 # Run-time system search path for libraries
11524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11525
11526 # Fix the shell variable \$srcfile for the compiler.
11527 fix_srcfile_path="$fix_srcfile_path_RC"
11528
11529 # Set to yes if exported symbols are required.
11530 always_export_symbols=$always_export_symbols_RC
11531
11532 # The commands to list exported symbols.
11533 export_symbols_cmds=$lt_export_symbols_cmds_RC
11534
11535 # The commands to extract the exported symbol list from a shared archive.
11536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11537
11538 # Symbols that should not be listed in the preloaded symbols.
11539 exclude_expsyms=$lt_exclude_expsyms_RC
11540
11541 # Symbols that must always be exported.
11542 include_expsyms=$lt_include_expsyms_RC
11543
11544 # ### END LIBTOOL TAG CONFIG: $tagname
11545
11546 __EOF__
11547
11548
11549 else
11550   # If there is no Makefile yet, we rely on a make rule to execute
11551   # `config.status --recheck' to rerun these tests and create the
11552   # libtool script then.
11553   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11554   if test -f "$ltmain_in"; then
11555     test -f Makefile && make "$ltmain"
11556   fi
11557 fi
11558
11559
11560 ac_ext=c
11561 ac_cpp='$CPP $CPPFLAGS'
11562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11565
11566 CC="$lt_save_CC"
11567
11568         ;;
11569
11570       *)
11571         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11572 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11573    { (exit 1); exit 1; }; }
11574         ;;
11575       esac
11576
11577       # Append the new tag name to the list of available tags.
11578       if test -n "$tagname" ; then
11579       available_tags="$available_tags $tagname"
11580     fi
11581     fi
11582   done
11583   IFS="$lt_save_ifs"
11584
11585   # Now substitute the updated list of available tags.
11586   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11587     mv "${ofile}T" "$ofile"
11588     chmod +x "$ofile"
11589   else
11590     rm -f "${ofile}T"
11591     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11592 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11593    { (exit 1); exit 1; }; }
11594   fi
11595 fi
11596
11597
11598
11599 # This can be used to rebuild libtool when needed
11600 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11601
11602 # Always use our own libtool.
11603 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11604
11605 # Prevent multiple expansion
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616 ol_link_perl=no
11617 if test $ol_enable_perl != no ; then
11618         # Extract the first word of "perl", so it can be a program name with args.
11619 set dummy perl; ac_word=$2
11620 echo "$as_me:$LINENO: checking for $ac_word" >&5
11621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11622 if test "${ac_cv_path_PERLBIN+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625   case $PERLBIN in
11626   [\\/]* | ?:[\\/]*)
11627   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11628   ;;
11629   *)
11630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11632 do
11633   IFS=$as_save_IFS
11634   test -z "$as_dir" && as_dir=.
11635   for ac_exec_ext in '' $ac_executable_extensions; do
11636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11639     break 2
11640   fi
11641 done
11642 done
11643
11644   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11645   ;;
11646 esac
11647 fi
11648 PERLBIN=$ac_cv_path_PERLBIN
11649
11650 if test -n "$PERLBIN"; then
11651   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11652 echo "${ECHO_T}$PERLBIN" >&6
11653 else
11654   echo "$as_me:$LINENO: result: no" >&5
11655 echo "${ECHO_T}no" >&6
11656 fi
11657
11658
11659         if test "no$PERLBIN" = "no" ; then
11660                 if test $ol_enable_perl = yes ; then
11661                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11662 echo "$as_me: error: could not locate perl" >&2;}
11663    { (exit 1); exit 1; }; }
11664                 fi
11665
11666         else
11667                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11668                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11669
11670                 if test x"$ol_enable_perl" = "xyes" ; then
11671                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11672                 else
11673                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11674                 fi
11675                                 ol_link_perl=yes
11676         fi
11677 fi
11678
11679 ac_ext=c
11680 ac_cpp='$CPP $CPPFLAGS'
11681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11684 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11686 # On Suns, sometimes $CPP names a directory.
11687 if test -n "$CPP" && test -d "$CPP"; then
11688   CPP=
11689 fi
11690 if test -z "$CPP"; then
11691   if test "${ac_cv_prog_CPP+set}" = set; then
11692   echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694       # Double quotes because CPP needs to be expanded
11695     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11696     do
11697       ac_preproc_ok=false
11698 for ac_c_preproc_warn_flag in '' yes
11699 do
11700   # Use a header file that comes with gcc, so configuring glibc
11701   # with a fresh cross-compiler works.
11702   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703   # <limits.h> exists even on freestanding compilers.
11704   # On the NeXT, cc -E runs the code through the compiler's parser,
11705   # not just through cpp. "Syntax error" is here to catch this case.
11706   cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712 #ifdef __STDC__
11713 # include <limits.h>
11714 #else
11715 # include <assert.h>
11716 #endif
11717                      Syntax error
11718 _ACEOF
11719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } >/dev/null; then
11727   if test -s conftest.err; then
11728     ac_cpp_err=$ac_c_preproc_warn_flag
11729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11730   else
11731     ac_cpp_err=
11732   fi
11733 else
11734   ac_cpp_err=yes
11735 fi
11736 if test -z "$ac_cpp_err"; then
11737   :
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742   # Broken: fails on valid input.
11743 continue
11744 fi
11745 rm -f conftest.err conftest.$ac_ext
11746
11747   # OK, works on sane cases.  Now check whether non-existent headers
11748   # can be detected and how.
11749   cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #include <ac_nonexistent.h>
11756 _ACEOF
11757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11759   ac_status=$?
11760   grep -v '^ *+' conftest.er1 >conftest.err
11761   rm -f conftest.er1
11762   cat conftest.err >&5
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); } >/dev/null; then
11765   if test -s conftest.err; then
11766     ac_cpp_err=$ac_c_preproc_warn_flag
11767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11768   else
11769     ac_cpp_err=
11770   fi
11771 else
11772   ac_cpp_err=yes
11773 fi
11774 if test -z "$ac_cpp_err"; then
11775   # Broken: success on invalid input.
11776 continue
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781   # Passes both tests.
11782 ac_preproc_ok=:
11783 break
11784 fi
11785 rm -f conftest.err conftest.$ac_ext
11786
11787 done
11788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11789 rm -f conftest.err conftest.$ac_ext
11790 if $ac_preproc_ok; then
11791   break
11792 fi
11793
11794     done
11795     ac_cv_prog_CPP=$CPP
11796
11797 fi
11798   CPP=$ac_cv_prog_CPP
11799 else
11800   ac_cv_prog_CPP=$CPP
11801 fi
11802 echo "$as_me:$LINENO: result: $CPP" >&5
11803 echo "${ECHO_T}$CPP" >&6
11804 ac_preproc_ok=false
11805 for ac_c_preproc_warn_flag in '' yes
11806 do
11807   # Use a header file that comes with gcc, so configuring glibc
11808   # with a fresh cross-compiler works.
11809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810   # <limits.h> exists even on freestanding compilers.
11811   # On the NeXT, cc -E runs the code through the compiler's parser,
11812   # not just through cpp. "Syntax error" is here to catch this case.
11813   cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 #ifdef __STDC__
11820 # include <limits.h>
11821 #else
11822 # include <assert.h>
11823 #endif
11824                      Syntax error
11825 _ACEOF
11826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11828   ac_status=$?
11829   grep -v '^ *+' conftest.er1 >conftest.err
11830   rm -f conftest.er1
11831   cat conftest.err >&5
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); } >/dev/null; then
11834   if test -s conftest.err; then
11835     ac_cpp_err=$ac_c_preproc_warn_flag
11836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11837   else
11838     ac_cpp_err=
11839   fi
11840 else
11841   ac_cpp_err=yes
11842 fi
11843 if test -z "$ac_cpp_err"; then
11844   :
11845 else
11846   echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849   # Broken: fails on valid input.
11850 continue
11851 fi
11852 rm -f conftest.err conftest.$ac_ext
11853
11854   # OK, works on sane cases.  Now check whether non-existent headers
11855   # can be detected and how.
11856   cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862 #include <ac_nonexistent.h>
11863 _ACEOF
11864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } >/dev/null; then
11872   if test -s conftest.err; then
11873     ac_cpp_err=$ac_c_preproc_warn_flag
11874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11875   else
11876     ac_cpp_err=
11877   fi
11878 else
11879   ac_cpp_err=yes
11880 fi
11881 if test -z "$ac_cpp_err"; then
11882   # Broken: success on invalid input.
11883 continue
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888   # Passes both tests.
11889 ac_preproc_ok=:
11890 break
11891 fi
11892 rm -f conftest.err conftest.$ac_ext
11893
11894 done
11895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11896 rm -f conftest.err conftest.$ac_ext
11897 if $ac_preproc_ok; then
11898   :
11899 else
11900   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11901 See \`config.log' for more details." >&5
11902 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11903 See \`config.log' for more details." >&2;}
11904    { (exit 1); exit 1; }; }
11905 fi
11906
11907 ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913
11914 case $host_os in
11915   *mingw32* ) ac_cv_mingw32=yes ;;
11916   *cygwin* ) ac_cv_cygwin=yes ;;
11917 esac
11918
11919
11920
11921
11922 cat >>confdefs.h <<_ACEOF
11923 #define EXEEXT "${EXEEXT}"
11924 _ACEOF
11925
11926
11927 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11928 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11929 if test "${ac_cv_lib_be_be_app+set}" = set; then
11930   echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932   ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lbe -lroot -lnet $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940
11941 /* Override any gcc2 internal prototype to avoid an error.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 /* We use char because int might match the return type of a gcc2
11946    builtin and then its argument prototype would still apply.  */
11947 char be_app ();
11948 int
11949 main ()
11950 {
11951 be_app ();
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958   (eval $ac_link) 2>conftest.er1
11959   ac_status=$?
11960   grep -v '^ *+' conftest.er1 >conftest.err
11961   rm -f conftest.er1
11962   cat conftest.err >&5
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); } &&
11965          { ac_try='test -z "$ac_c_werror_flag"
11966                          || test ! -s conftest.err'
11967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968   (eval $ac_try) 2>&5
11969   ac_status=$?
11970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971   (exit $ac_status); }; } &&
11972          { ac_try='test -s conftest$ac_exeext'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; }; then
11978   ac_cv_lib_be_be_app=yes
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 ac_cv_lib_be_be_app=no
11984 fi
11985 rm -f conftest.err conftest.$ac_objext \
11986       conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11990 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11991 if test $ac_cv_lib_be_be_app = yes; then
11992   LIBS="$LIBS -lbe -lroot -lnet"
11993 else
11994   :
11995 fi
11996
11997
11998 ac_ext=c
11999 ac_cpp='$CPP $CPPFLAGS'
12000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12003 if test -n "$ac_tool_prefix"; then
12004   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12006 echo "$as_me:$LINENO: checking for $ac_word" >&5
12007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12008 if test "${ac_cv_prog_CC+set}" = set; then
12009   echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011   if test -n "$CC"; then
12012   ac_cv_prog_CC="$CC" # Let the user override the test.
12013 else
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12016 do
12017   IFS=$as_save_IFS
12018   test -z "$as_dir" && as_dir=.
12019   for ac_exec_ext in '' $ac_executable_extensions; do
12020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12021     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12023     break 2
12024   fi
12025 done
12026 done
12027
12028 fi
12029 fi
12030 CC=$ac_cv_prog_CC
12031 if test -n "$CC"; then
12032   echo "$as_me:$LINENO: result: $CC" >&5
12033 echo "${ECHO_T}$CC" >&6
12034 else
12035   echo "$as_me:$LINENO: result: no" >&5
12036 echo "${ECHO_T}no" >&6
12037 fi
12038
12039 fi
12040 if test -z "$ac_cv_prog_CC"; then
12041   ac_ct_CC=$CC
12042   # Extract the first word of "gcc", so it can be a program name with args.
12043 set dummy gcc; ac_word=$2
12044 echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   if test -n "$ac_ct_CC"; then
12050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12051 else
12052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12054 do
12055   IFS=$as_save_IFS
12056   test -z "$as_dir" && as_dir=.
12057   for ac_exec_ext in '' $ac_executable_extensions; do
12058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059     ac_cv_prog_ac_ct_CC="gcc"
12060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12061     break 2
12062   fi
12063 done
12064 done
12065
12066 fi
12067 fi
12068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12069 if test -n "$ac_ct_CC"; then
12070   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12071 echo "${ECHO_T}$ac_ct_CC" >&6
12072 else
12073   echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12075 fi
12076
12077   CC=$ac_ct_CC
12078 else
12079   CC="$ac_cv_prog_CC"
12080 fi
12081
12082 if test -z "$CC"; then
12083   if test -n "$ac_tool_prefix"; then
12084   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}cc; ac_word=$2
12086 echo "$as_me:$LINENO: checking for $ac_word" >&5
12087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12088 if test "${ac_cv_prog_CC+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   if test -n "$CC"; then
12092   ac_cv_prog_CC="$CC" # Let the user override the test.
12093 else
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12096 do
12097   IFS=$as_save_IFS
12098   test -z "$as_dir" && as_dir=.
12099   for ac_exec_ext in '' $ac_executable_extensions; do
12100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12101     ac_cv_prog_CC="${ac_tool_prefix}cc"
12102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12103     break 2
12104   fi
12105 done
12106 done
12107
12108 fi
12109 fi
12110 CC=$ac_cv_prog_CC
12111 if test -n "$CC"; then
12112   echo "$as_me:$LINENO: result: $CC" >&5
12113 echo "${ECHO_T}$CC" >&6
12114 else
12115   echo "$as_me:$LINENO: result: no" >&5
12116 echo "${ECHO_T}no" >&6
12117 fi
12118
12119 fi
12120 if test -z "$ac_cv_prog_CC"; then
12121   ac_ct_CC=$CC
12122   # Extract the first word of "cc", so it can be a program name with args.
12123 set dummy cc; ac_word=$2
12124 echo "$as_me:$LINENO: checking for $ac_word" >&5
12125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129   if test -n "$ac_ct_CC"; then
12130   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12131 else
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12134 do
12135   IFS=$as_save_IFS
12136   test -z "$as_dir" && as_dir=.
12137   for ac_exec_ext in '' $ac_executable_extensions; do
12138   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12139     ac_cv_prog_ac_ct_CC="cc"
12140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12141     break 2
12142   fi
12143 done
12144 done
12145
12146 fi
12147 fi
12148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12149 if test -n "$ac_ct_CC"; then
12150   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12151 echo "${ECHO_T}$ac_ct_CC" >&6
12152 else
12153   echo "$as_me:$LINENO: result: no" >&5
12154 echo "${ECHO_T}no" >&6
12155 fi
12156
12157   CC=$ac_ct_CC
12158 else
12159   CC="$ac_cv_prog_CC"
12160 fi
12161
12162 fi
12163 if test -z "$CC"; then
12164   # Extract the first word of "cc", so it can be a program name with args.
12165 set dummy cc; ac_word=$2
12166 echo "$as_me:$LINENO: checking for $ac_word" >&5
12167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12168 if test "${ac_cv_prog_CC+set}" = set; then
12169   echo $ECHO_N "(cached) $ECHO_C" >&6
12170 else
12171   if test -n "$CC"; then
12172   ac_cv_prog_CC="$CC" # Let the user override the test.
12173 else
12174   ac_prog_rejected=no
12175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176 for as_dir in $PATH
12177 do
12178   IFS=$as_save_IFS
12179   test -z "$as_dir" && as_dir=.
12180   for ac_exec_ext in '' $ac_executable_extensions; do
12181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12183        ac_prog_rejected=yes
12184        continue
12185      fi
12186     ac_cv_prog_CC="cc"
12187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191 done
12192
12193 if test $ac_prog_rejected = yes; then
12194   # We found a bogon in the path, so make sure we never use it.
12195   set dummy $ac_cv_prog_CC
12196   shift
12197   if test $# != 0; then
12198     # We chose a different compiler from the bogus one.
12199     # However, it has the same basename, so the bogon will be chosen
12200     # first if we set CC to just the basename; use the full file name.
12201     shift
12202     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12203   fi
12204 fi
12205 fi
12206 fi
12207 CC=$ac_cv_prog_CC
12208 if test -n "$CC"; then
12209   echo "$as_me:$LINENO: result: $CC" >&5
12210 echo "${ECHO_T}$CC" >&6
12211 else
12212   echo "$as_me:$LINENO: result: no" >&5
12213 echo "${ECHO_T}no" >&6
12214 fi
12215
12216 fi
12217 if test -z "$CC"; then
12218   if test -n "$ac_tool_prefix"; then
12219   for ac_prog in cl
12220   do
12221     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12223 echo "$as_me:$LINENO: checking for $ac_word" >&5
12224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12225 if test "${ac_cv_prog_CC+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   if test -n "$CC"; then
12229   ac_cv_prog_CC="$CC" # Let the user override the test.
12230 else
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232 for as_dir in $PATH
12233 do
12234   IFS=$as_save_IFS
12235   test -z "$as_dir" && as_dir=.
12236   for ac_exec_ext in '' $ac_executable_extensions; do
12237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12238     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240     break 2
12241   fi
12242 done
12243 done
12244
12245 fi
12246 fi
12247 CC=$ac_cv_prog_CC
12248 if test -n "$CC"; then
12249   echo "$as_me:$LINENO: result: $CC" >&5
12250 echo "${ECHO_T}$CC" >&6
12251 else
12252   echo "$as_me:$LINENO: result: no" >&5
12253 echo "${ECHO_T}no" >&6
12254 fi
12255
12256     test -n "$CC" && break
12257   done
12258 fi
12259 if test -z "$CC"; then
12260   ac_ct_CC=$CC
12261   for ac_prog in cl
12262 do
12263   # Extract the first word of "$ac_prog", so it can be a program name with args.
12264 set dummy $ac_prog; ac_word=$2
12265 echo "$as_me:$LINENO: checking for $ac_word" >&5
12266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   if test -n "$ac_ct_CC"; then
12271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12272 else
12273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274 for as_dir in $PATH
12275 do
12276   IFS=$as_save_IFS
12277   test -z "$as_dir" && as_dir=.
12278   for ac_exec_ext in '' $ac_executable_extensions; do
12279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12280     ac_cv_prog_ac_ct_CC="$ac_prog"
12281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12282     break 2
12283   fi
12284 done
12285 done
12286
12287 fi
12288 fi
12289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12290 if test -n "$ac_ct_CC"; then
12291   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12292 echo "${ECHO_T}$ac_ct_CC" >&6
12293 else
12294   echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6
12296 fi
12297
12298   test -n "$ac_ct_CC" && break
12299 done
12300
12301   CC=$ac_ct_CC
12302 fi
12303
12304 fi
12305
12306
12307 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12308 See \`config.log' for more details." >&5
12309 echo "$as_me: error: no acceptable C compiler found in \$PATH
12310 See \`config.log' for more details." >&2;}
12311    { (exit 1); exit 1; }; }
12312
12313 # Provide some information about the compiler.
12314 echo "$as_me:$LINENO:" \
12315      "checking for C compiler version" >&5
12316 ac_compiler=`set X $ac_compile; echo $2`
12317 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12318   (eval $ac_compiler --version </dev/null >&5) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }
12322 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12323   (eval $ac_compiler -v </dev/null >&5) 2>&5
12324   ac_status=$?
12325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326   (exit $ac_status); }
12327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12328   (eval $ac_compiler -V </dev/null >&5) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }
12332
12333 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348 #ifndef __GNUC__
12349        choke me
12350 #endif
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12358   (eval $ac_compile) 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -z "$ac_c_werror_flag"
12366                          || test ! -s conftest.err'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; } &&
12372          { ac_try='test -s conftest.$ac_objext'
12373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374   (eval $ac_try) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_compiler_gnu=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383 ac_compiler_gnu=no
12384 fi
12385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12387
12388 fi
12389 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12390 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12391 GCC=`test $ac_compiler_gnu = yes && echo yes`
12392 ac_test_CFLAGS=${CFLAGS+set}
12393 ac_save_CFLAGS=$CFLAGS
12394 CFLAGS="-g"
12395 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12397 if test "${ac_cv_prog_cc_g+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h.  */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h.  */
12406
12407 int
12408 main ()
12409 {
12410
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417   (eval $ac_compile) 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -z "$ac_c_werror_flag"
12425                          || test ! -s conftest.err'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest.$ac_objext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_prog_cc_g=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_prog_cc_g=no
12443 fi
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12447 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12448 if test "$ac_test_CFLAGS" = set; then
12449   CFLAGS=$ac_save_CFLAGS
12450 elif test $ac_cv_prog_cc_g = yes; then
12451   if test "$GCC" = yes; then
12452     CFLAGS="-g -O2"
12453   else
12454     CFLAGS="-g"
12455   fi
12456 else
12457   if test "$GCC" = yes; then
12458     CFLAGS="-O2"
12459   else
12460     CFLAGS=
12461   fi
12462 fi
12463 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12464 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12465 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   ac_cv_prog_cc_stdc=no
12469 ac_save_CC=$CC
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h.  */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h.  */
12476 #include <stdarg.h>
12477 #include <stdio.h>
12478 #include <sys/types.h>
12479 #include <sys/stat.h>
12480 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12481 struct buf { int x; };
12482 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12483 static char *e (p, i)
12484      char **p;
12485      int i;
12486 {
12487   return p[i];
12488 }
12489 static char *f (char * (*g) (char **, int), char **p, ...)
12490 {
12491   char *s;
12492   va_list v;
12493   va_start (v,p);
12494   s = g (p, va_arg (v,int));
12495   va_end (v);
12496   return s;
12497 }
12498
12499 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12500    function prototypes and stuff, but not '\xHH' hex character constants.
12501    These don't provoke an error unfortunately, instead are silently treated
12502    as 'x'.  The following induces an error, until -std1 is added to get
12503    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12504    array size at least.  It's necessary to write '\x00'==0 to get something
12505    that's true only with -std1.  */
12506 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12507
12508 int test (int i, double x);
12509 struct s1 {int (*f) (int a);};
12510 struct s2 {int (*f) (double a);};
12511 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12512 int argc;
12513 char **argv;
12514 int
12515 main ()
12516 {
12517 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12518   ;
12519   return 0;
12520 }
12521 _ACEOF
12522 # Don't try gcc -ansi; that turns off useful extensions and
12523 # breaks some systems' header files.
12524 # AIX                   -qlanglvl=ansi
12525 # Ultrix and OSF/1      -std1
12526 # HP-UX 10.20 and later -Ae
12527 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12528 # SVR4                  -Xc -D__EXTENSIONS__
12529 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12530 do
12531   CC="$ac_save_CC $ac_arg"
12532   rm -f conftest.$ac_objext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12534   (eval $ac_compile) 2>conftest.er1
12535   ac_status=$?
12536   grep -v '^ *+' conftest.er1 >conftest.err
12537   rm -f conftest.er1
12538   cat conftest.err >&5
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); } &&
12541          { ac_try='test -z "$ac_c_werror_flag"
12542                          || test ! -s conftest.err'
12543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544   (eval $ac_try) 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; } &&
12548          { ac_try='test -s conftest.$ac_objext'
12549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550   (eval $ac_try) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; }; then
12554   ac_cv_prog_cc_stdc=$ac_arg
12555 break
12556 else
12557   echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12559
12560 fi
12561 rm -f conftest.err conftest.$ac_objext
12562 done
12563 rm -f conftest.$ac_ext conftest.$ac_objext
12564 CC=$ac_save_CC
12565
12566 fi
12567
12568 case "x$ac_cv_prog_cc_stdc" in
12569   x|xno)
12570     echo "$as_me:$LINENO: result: none needed" >&5
12571 echo "${ECHO_T}none needed" >&6 ;;
12572   *)
12573     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12574 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12575     CC="$CC $ac_cv_prog_cc_stdc" ;;
12576 esac
12577
12578 # Some people use a C++ compiler to compile C.  Since we use `exit',
12579 # in C++ we need to declare it.  In case someone uses the same compiler
12580 # for both compiling C and C++ we need to have the C++ compiler decide
12581 # the declaration of exit, since it's the most demanding environment.
12582 cat >conftest.$ac_ext <<_ACEOF
12583 #ifndef __cplusplus
12584   choke me
12585 #endif
12586 _ACEOF
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589   (eval $ac_compile) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest.$ac_objext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   for ac_declaration in \
12610    '' \
12611    'extern "C" void std::exit (int) throw (); using std::exit;' \
12612    'extern "C" void std::exit (int); using std::exit;' \
12613    'extern "C" void exit (int) throw ();' \
12614    'extern "C" void exit (int);' \
12615    'void exit (int);'
12616 do
12617   cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h.  */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h.  */
12623 $ac_declaration
12624 #include <stdlib.h>
12625 int
12626 main ()
12627 {
12628 exit (42);
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12635   (eval $ac_compile) 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag"
12643                          || test ! -s conftest.err'
12644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645   (eval $ac_try) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest.$ac_objext'
12650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651   (eval $ac_try) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); }; }; then
12655   :
12656 else
12657   echo "$as_me: failed program was:" >&5
12658 sed 's/^/| /' conftest.$ac_ext >&5
12659
12660 continue
12661 fi
12662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12663   cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 $ac_declaration
12670 int
12671 main ()
12672 {
12673 exit (42);
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680   (eval $ac_compile) 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } &&
12687          { ac_try='test -z "$ac_c_werror_flag"
12688                          || test ! -s conftest.err'
12689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690   (eval $ac_try) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; } &&
12694          { ac_try='test -s conftest.$ac_objext'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; }; then
12700   break
12701 else
12702   echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 fi
12706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12707 done
12708 rm -f conftest*
12709 if test -n "$ac_declaration"; then
12710   echo '#ifdef __cplusplus' >>confdefs.h
12711   echo $ac_declaration      >>confdefs.h
12712   echo '#endif'             >>confdefs.h
12713 fi
12714
12715 else
12716   echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 fi
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12721 ac_ext=c
12722 ac_cpp='$CPP $CPPFLAGS'
12723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726
12727 depcc="$CC"   am_compiler_list=
12728
12729 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12730 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12735   # We make a subdir and do the tests there.  Otherwise we can end up
12736   # making bogus files that we don't know about and never remove.  For
12737   # instance it was reported that on HP-UX the gcc test will end up
12738   # making a dummy file named `D' -- because `-MD' means `put the output
12739   # in D'.
12740   mkdir conftest.dir
12741   # Copy depcomp to subdir because otherwise we won't find it if we're
12742   # using a relative directory.
12743   cp "$am_depcomp" conftest.dir
12744   cd conftest.dir
12745   # We will build objects and dependencies in a subdirectory because
12746   # it helps to detect inapplicable dependency modes.  For instance
12747   # both Tru64's cc and ICC support -MD to output dependencies as a
12748   # side effect of compilation, but ICC will put the dependencies in
12749   # the current directory while Tru64 will put them in the object
12750   # directory.
12751   mkdir sub
12752
12753   am_cv_CC_dependencies_compiler_type=none
12754   if test "$am_compiler_list" = ""; then
12755      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12756   fi
12757   for depmode in $am_compiler_list; do
12758     # Setup a source with many dependencies, because some compilers
12759     # like to wrap large dependency lists on column 80 (with \), and
12760     # we should not choose a depcomp mode which is confused by this.
12761     #
12762     # We need to recreate these files for each test, as the compiler may
12763     # overwrite some of them when testing with obscure command lines.
12764     # This happens at least with the AIX C compiler.
12765     : > sub/conftest.c
12766     for i in 1 2 3 4 5 6; do
12767       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12768       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12769       # Solaris 8's {/usr,}/bin/sh.
12770       touch sub/conftst$i.h
12771     done
12772     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12773
12774     case $depmode in
12775     nosideeffect)
12776       # after this tag, mechanisms are not by side-effect, so they'll
12777       # only be used when explicitly requested
12778       if test "x$enable_dependency_tracking" = xyes; then
12779         continue
12780       else
12781         break
12782       fi
12783       ;;
12784     none) break ;;
12785     esac
12786     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12787     # mode.  It turns out that the SunPro C++ compiler does not properly
12788     # handle `-M -o', and we need to detect this.
12789     if depmode=$depmode \
12790        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12791        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12792        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12793          >/dev/null 2>conftest.err &&
12794        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12795        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12796        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12797       # icc doesn't choke on unknown options, it will just issue warnings
12798       # or remarks (even with -Werror).  So we grep stderr for any message
12799       # that says an option was ignored or not supported.
12800       # When given -MP, icc 7.0 and 7.1 complain thusly:
12801       #   icc: Command line warning: ignoring option '-M'; no argument required
12802       # The diagnosis changed in icc 8.0:
12803       #   icc: Command line remark: option '-MP' not supported
12804       if (grep 'ignoring option' conftest.err ||
12805           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12806         am_cv_CC_dependencies_compiler_type=$depmode
12807         break
12808       fi
12809     fi
12810   done
12811
12812   cd ..
12813   rm -rf conftest.dir
12814 else
12815   am_cv_CC_dependencies_compiler_type=none
12816 fi
12817
12818 fi
12819 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12820 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12821 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12822
12823
12824
12825 if
12826   test "x$enable_dependency_tracking" != xno \
12827   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12828   am__fastdepCC_TRUE=
12829   am__fastdepCC_FALSE='#'
12830 else
12831   am__fastdepCC_TRUE='#'
12832   am__fastdepCC_FALSE=
12833 fi
12834
12835
12836 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12837         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12838 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12839    { (exit 1); exit 1; }; }
12840 fi
12841
12842 # test for make depend flag
12843 OL_MKDEP=
12844 OL_MKDEP_FLAGS=
12845 if test -z "${MKDEP}"; then
12846         OL_MKDEP="${CC-cc}"
12847         if test -z "${MKDEP_FLAGS}"; then
12848                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12849 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12850 if test "${ol_cv_mkdep+set}" = set; then
12851   echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853
12854                         ol_cv_mkdep=no
12855                         for flag in "-M" "-xM"; do
12856                                 cat > conftest.c <<EOF
12857  noCode;
12858 EOF
12859                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861   (eval $ac_try) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); }; } \
12865                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12866                                 then
12867                                         if test ! -f conftest."${ac_object}" ; then
12868                                                 ol_cv_mkdep=$flag
12869                                                 OL_MKDEP_FLAGS="$flag"
12870                                                 break
12871                                         fi
12872                                 fi
12873                         done
12874                         rm -f conftest*
12875
12876 fi
12877 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12878 echo "${ECHO_T}$ol_cv_mkdep" >&6
12879         else
12880                 cc_cv_mkdep=yes
12881                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12882         fi
12883 else
12884         cc_cv_mkdep=yes
12885         OL_MKDEP="${MKDEP}"
12886         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12887 fi
12888
12889
12890
12891 if test "${ol_cv_mkdep}" = no ; then
12892         # this will soon become an error
12893         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12894 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12895 fi
12896
12897 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12898 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12899 if test "${ac_cv_lib_s_afopen+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-ls  $LIBS"
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h.  */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h.  */
12910
12911 /* Override any gcc2 internal prototype to avoid an error.  */
12912 #ifdef __cplusplus
12913 extern "C"
12914 #endif
12915 /* We use char because int might match the return type of a gcc2
12916    builtin and then its argument prototype would still apply.  */
12917 char afopen ();
12918 int
12919 main ()
12920 {
12921 afopen ();
12922   ;
12923   return 0;
12924 }
12925 _ACEOF
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928   (eval $ac_link) 2>conftest.er1
12929   ac_status=$?
12930   grep -v '^ *+' conftest.er1 >conftest.err
12931   rm -f conftest.er1
12932   cat conftest.err >&5
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); } &&
12935          { ac_try='test -z "$ac_c_werror_flag"
12936                          || test ! -s conftest.err'
12937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938   (eval $ac_try) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); }; } &&
12942          { ac_try='test -s conftest$ac_exeext'
12943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944   (eval $ac_try) 2>&5
12945   ac_status=$?
12946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947   (exit $ac_status); }; }; then
12948   ac_cv_lib_s_afopen=yes
12949 else
12950   echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 ac_cv_lib_s_afopen=no
12954 fi
12955 rm -f conftest.err conftest.$ac_objext \
12956       conftest$ac_exeext conftest.$ac_ext
12957 LIBS=$ac_check_lib_save_LIBS
12958 fi
12959 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12960 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12961 if test $ac_cv_lib_s_afopen = yes; then
12962
12963         AUTH_LIBS=-ls
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_AIX_SECURITY 1
12967 _ACEOF
12968
12969
12970 fi
12971
12972
12973 case "$target" in
12974 *-ibm-openedition)
12975         ac_cv_func_getopt=no
12976
12977 cat >>confdefs.h <<\_ACEOF
12978 #define BOTH_STRINGS_H 1
12979 _ACEOF
12980
12981         ;;
12982 esac
12983
12984 ol_link_modules=no
12985 WITH_MODULES_ENABLED=no
12986 if test $ol_enable_modules != no ; then
12987
12988 for ac_header in ltdl.h
12989 do
12990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992   echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12995   echo $ECHO_N "(cached) $ECHO_C" >&6
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999 else
13000   # Is the header compilable?
13001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 $ac_includes_default
13010 #include <$ac_header>
13011 _ACEOF
13012 rm -f conftest.$ac_objext
13013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13014   (eval $ac_compile) 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } &&
13021          { ac_try='test -z "$ac_c_werror_flag"
13022                          || test ! -s conftest.err'
13023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024   (eval $ac_try) 2>&5
13025   ac_status=$?
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); }; } &&
13028          { ac_try='test -s conftest.$ac_objext'
13029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13030   (eval $ac_try) 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; }; then
13034   ac_header_compiler=yes
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 ac_header_compiler=no
13040 fi
13041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13043 echo "${ECHO_T}$ac_header_compiler" >&6
13044
13045 # Is the header present?
13046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h.  */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h.  */
13054 #include <$ac_header>
13055 _ACEOF
13056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } >/dev/null; then
13064   if test -s conftest.err; then
13065     ac_cpp_err=$ac_c_preproc_warn_flag
13066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13067   else
13068     ac_cpp_err=
13069   fi
13070 else
13071   ac_cpp_err=yes
13072 fi
13073 if test -z "$ac_cpp_err"; then
13074   ac_header_preproc=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079   ac_header_preproc=no
13080 fi
13081 rm -f conftest.err conftest.$ac_ext
13082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13083 echo "${ECHO_T}$ac_header_preproc" >&6
13084
13085 # So?  What about this header?
13086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13087   yes:no: )
13088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13092     ac_header_preproc=yes
13093     ;;
13094   no:yes:* )
13095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13107     (
13108       cat <<\_ASBOX
13109 ## ------------------------------------------ ##
13110 ## Report this to the AC_PACKAGE_NAME lists.  ##
13111 ## ------------------------------------------ ##
13112 _ASBOX
13113     ) |
13114       sed "s/^/$as_me: WARNING:     /" >&2
13115     ;;
13116 esac
13117 echo "$as_me:$LINENO: checking for $ac_header" >&5
13118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   eval "$as_ac_Header=\$ac_header_preproc"
13123 fi
13124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13126
13127 fi
13128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13129   cat >>confdefs.h <<_ACEOF
13130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13131 _ACEOF
13132
13133 fi
13134
13135 done
13136
13137
13138         if test $ac_cv_header_ltdl_h = no ; then
13139                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13140 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13141    { (exit 1); exit 1; }; }
13142         fi
13143
13144         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13145 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13146 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13147   echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149   ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lltdl  $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157
13158 /* Override any gcc2 internal prototype to avoid an error.  */
13159 #ifdef __cplusplus
13160 extern "C"
13161 #endif
13162 /* We use char because int might match the return type of a gcc2
13163    builtin and then its argument prototype would still apply.  */
13164 char lt_dlinit ();
13165 int
13166 main ()
13167 {
13168 lt_dlinit ();
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13175   (eval $ac_link) 2>conftest.er1
13176   ac_status=$?
13177   grep -v '^ *+' conftest.er1 >conftest.err
13178   rm -f conftest.er1
13179   cat conftest.err >&5
13180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); } &&
13182          { ac_try='test -z "$ac_c_werror_flag"
13183                          || test ! -s conftest.err'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; } &&
13189          { ac_try='test -s conftest$ac_exeext'
13190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191   (eval $ac_try) 2>&5
13192   ac_status=$?
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); }; }; then
13195   ac_cv_lib_ltdl_lt_dlinit=yes
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 ac_cv_lib_ltdl_lt_dlinit=no
13201 fi
13202 rm -f conftest.err conftest.$ac_objext \
13203       conftest$ac_exeext conftest.$ac_ext
13204 LIBS=$ac_check_lib_save_LIBS
13205 fi
13206 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13207 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13208 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13209
13210                 MODULES_LIBS=-lltdl
13211
13212 cat >>confdefs.h <<\_ACEOF
13213 #define HAVE_LIBLTDL 1
13214 _ACEOF
13215
13216
13217 fi
13218
13219
13220         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13221                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13222 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13223    { (exit 1); exit 1; }; }
13224         fi
13225         ol_link_modules=yes
13226         WITH_MODULES_ENABLED=yes
13227
13228 else
13229         for i in $Backends; do
13230                 eval "ol_tmp=\$ol_enable_$i"
13231                 if test $ol_tmp = mod ; then
13232                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13233 echo "$as_me: WARNING: building static $i backend" >&2;}
13234                         eval "ol_enable_$i=yes"
13235                 fi
13236         done
13237         for i in $Overlays; do
13238                 eval "ol_tmp=\$ol_enable_$i"
13239                 if test $ol_tmp = mod ; then
13240                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13241 echo "$as_me: WARNING: building static $i overlay" >&2;}
13242                         eval "ol_enable_$i=yes"
13243                 fi
13244         done
13245 fi
13246
13247 # test for EBCDIC
13248 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13249 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13250 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13251   echo $ECHO_N "(cached) $ECHO_C" >&6
13252 else
13253
13254         cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260
13261 #if !('M' == 0xd4)
13262 #include <__ASCII__/generate_error.h>
13263 #endif
13264
13265 _ACEOF
13266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } >/dev/null; then
13274   if test -s conftest.err; then
13275     ac_cpp_err=$ac_c_preproc_warn_flag
13276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13277   else
13278     ac_cpp_err=
13279   fi
13280 else
13281   ac_cpp_err=yes
13282 fi
13283 if test -z "$ac_cpp_err"; then
13284   ol_cv_cpp_ebcdic=yes
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289   ol_cv_cpp_ebcdic=no
13290 fi
13291 rm -f conftest.err conftest.$ac_ext
13292 fi
13293 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13294 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13295 if test $ol_cv_cpp_ebcdic = yes ; then
13296
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_EBCDIC 1
13299 _ACEOF
13300
13301 fi
13302
13303 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13305 if test "${ol_cv_header_stdc+set}" = set; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h.  */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h.  */
13314 #include <stdlib.h>
13315 #include <stdarg.h>
13316 #include <string.h>
13317 #include <float.h>
13318 _ACEOF
13319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } >/dev/null; then
13327   if test -s conftest.err; then
13328     ac_cpp_err=$ac_c_preproc_warn_flag
13329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13330   else
13331     ac_cpp_err=
13332   fi
13333 else
13334   ac_cpp_err=yes
13335 fi
13336 if test -z "$ac_cpp_err"; then
13337   ol_cv_header_stdc=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342   ol_cv_header_stdc=no
13343 fi
13344 rm -f conftest.err conftest.$ac_ext
13345
13346 if test $ol_cv_header_stdc = yes; then
13347   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354 #include <string.h>
13355
13356 _ACEOF
13357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13358   $EGREP "memchr" >/dev/null 2>&1; then
13359   :
13360 else
13361   ol_cv_header_stdc=no
13362 fi
13363 rm -f conftest*
13364
13365 fi
13366
13367 if test $ol_cv_header_stdc = yes; then
13368   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h.  */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h.  */
13375 #include <stdlib.h>
13376
13377 _ACEOF
13378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13379   $EGREP "free" >/dev/null 2>&1; then
13380   :
13381 else
13382   ol_cv_header_stdc=no
13383 fi
13384 rm -f conftest*
13385
13386 fi
13387
13388 if test $ol_cv_header_stdc = yes; then
13389   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13390 if test "$cross_compiling" = yes; then
13391   :
13392 else
13393   cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 #include <ctype.h>
13400 #ifndef HAVE_EBCDIC
13401 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13402 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13403 #else
13404 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13405                 || ('j' <= (c) && (c) <= 'r') \
13406                 || ('s' <= (c) && (c) <= 'z'))
13407 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13408 #endif
13409 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13410 int main () { int i; for (i = 0; i < 256; i++)
13411 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13412 exit (0); }
13413
13414 _ACEOF
13415 rm -f conftest$ac_exeext
13416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13417   (eval $ac_link) 2>&5
13418   ac_status=$?
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422   (eval $ac_try) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }; then
13426   :
13427 else
13428   echo "$as_me: program exited with status $ac_status" >&5
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ( exit $ac_status )
13433 ol_cv_header_stdc=no
13434 fi
13435 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13436 fi
13437 fi
13438 fi
13439 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13440 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13441 if test $ol_cv_header_stdc = yes; then
13442   cat >>confdefs.h <<\_ACEOF
13443 #define STDC_HEADERS 1
13444 _ACEOF
13445
13446 fi
13447 ac_cv_header_stdc=disable
13448
13449
13450 if test $ol_cv_header_stdc != yes; then
13451         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13452 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13453 fi
13454
13455
13456
13457
13458
13459
13460 ac_header_dirent=no
13461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13462   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13463 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13464 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 #include <sys/types.h>
13475 #include <$ac_hdr>
13476
13477 int
13478 main ()
13479 {
13480 if ((DIR *) 0)
13481 return 0;
13482   ;
13483   return 0;
13484 }
13485 _ACEOF
13486 rm -f conftest.$ac_objext
13487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13488   (eval $ac_compile) 2>conftest.er1
13489   ac_status=$?
13490   grep -v '^ *+' conftest.er1 >conftest.err
13491   rm -f conftest.er1
13492   cat conftest.err >&5
13493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494   (exit $ac_status); } &&
13495          { ac_try='test -z "$ac_c_werror_flag"
13496                          || test ! -s conftest.err'
13497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498   (eval $ac_try) 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; } &&
13502          { ac_try='test -s conftest.$ac_objext'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; }; then
13508   eval "$as_ac_Header=yes"
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513 eval "$as_ac_Header=no"
13514 fi
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516 fi
13517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13520   cat >>confdefs.h <<_ACEOF
13521 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13522 _ACEOF
13523
13524 ac_header_dirent=$ac_hdr; break
13525 fi
13526
13527 done
13528 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13529 if test $ac_header_dirent = dirent.h; then
13530   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13531 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13532 if test "${ac_cv_search_opendir+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   ac_func_search_save_LIBS=$LIBS
13536 ac_cv_search_opendir=no
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543
13544 /* Override any gcc2 internal prototype to avoid an error.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 /* We use char because int might match the return type of a gcc2
13549    builtin and then its argument prototype would still apply.  */
13550 char opendir ();
13551 int
13552 main ()
13553 {
13554 opendir ();
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561   (eval $ac_link) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_c_werror_flag"
13569                          || test ! -s conftest.err'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest$ac_exeext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_cv_search_opendir="none required"
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 fi
13587 rm -f conftest.err conftest.$ac_objext \
13588       conftest$ac_exeext conftest.$ac_ext
13589 if test "$ac_cv_search_opendir" = no; then
13590   for ac_lib in dir; do
13591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13592     cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598
13599 /* Override any gcc2 internal prototype to avoid an error.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 /* We use char because int might match the return type of a gcc2
13604    builtin and then its argument prototype would still apply.  */
13605 char opendir ();
13606 int
13607 main ()
13608 {
13609 opendir ();
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616   (eval $ac_link) 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -z "$ac_c_werror_flag"
13624                          || test ! -s conftest.err'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; } &&
13630          { ac_try='test -s conftest$ac_exeext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_search_opendir="-l$ac_lib"
13637 break
13638 else
13639   echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 fi
13643 rm -f conftest.err conftest.$ac_objext \
13644       conftest$ac_exeext conftest.$ac_ext
13645   done
13646 fi
13647 LIBS=$ac_func_search_save_LIBS
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13651 if test "$ac_cv_search_opendir" != no; then
13652   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13653
13654 fi
13655
13656 else
13657   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13659 if test "${ac_cv_search_opendir+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   ac_func_search_save_LIBS=$LIBS
13663 ac_cv_search_opendir=no
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670
13671 /* Override any gcc2 internal prototype to avoid an error.  */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 /* We use char because int might match the return type of a gcc2
13676    builtin and then its argument prototype would still apply.  */
13677 char opendir ();
13678 int
13679 main ()
13680 {
13681 opendir ();
13682   ;
13683   return 0;
13684 }
13685 _ACEOF
13686 rm -f conftest.$ac_objext conftest$ac_exeext
13687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13688   (eval $ac_link) 2>conftest.er1
13689   ac_status=$?
13690   grep -v '^ *+' conftest.er1 >conftest.err
13691   rm -f conftest.er1
13692   cat conftest.err >&5
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); } &&
13695          { ac_try='test -z "$ac_c_werror_flag"
13696                          || test ! -s conftest.err'
13697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698   (eval $ac_try) 2>&5
13699   ac_status=$?
13700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701   (exit $ac_status); }; } &&
13702          { ac_try='test -s conftest$ac_exeext'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; }; then
13708   ac_cv_search_opendir="none required"
13709 else
13710   echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 fi
13714 rm -f conftest.err conftest.$ac_objext \
13715       conftest$ac_exeext conftest.$ac_ext
13716 if test "$ac_cv_search_opendir" = no; then
13717   for ac_lib in x; do
13718     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13719     cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h.  */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h.  */
13725
13726 /* Override any gcc2 internal prototype to avoid an error.  */
13727 #ifdef __cplusplus
13728 extern "C"
13729 #endif
13730 /* We use char because int might match the return type of a gcc2
13731    builtin and then its argument prototype would still apply.  */
13732 char opendir ();
13733 int
13734 main ()
13735 {
13736 opendir ();
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13743   (eval $ac_link) 2>conftest.er1
13744   ac_status=$?
13745   grep -v '^ *+' conftest.er1 >conftest.err
13746   rm -f conftest.er1
13747   cat conftest.err >&5
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -z "$ac_c_werror_flag"
13751                          || test ! -s conftest.err'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; } &&
13757          { ac_try='test -s conftest$ac_exeext'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_search_opendir="-l$ac_lib"
13764 break
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 fi
13770 rm -f conftest.err conftest.$ac_objext \
13771       conftest$ac_exeext conftest.$ac_ext
13772   done
13773 fi
13774 LIBS=$ac_func_search_save_LIBS
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13777 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13778 if test "$ac_cv_search_opendir" != no; then
13779   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13780
13781 fi
13782
13783 fi
13784
13785 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13786 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13787 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h.  */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h.  */
13796 #include <sys/types.h>
13797 #include <sys/wait.h>
13798 #ifndef WEXITSTATUS
13799 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13800 #endif
13801 #ifndef WIFEXITED
13802 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13803 #endif
13804
13805 int
13806 main ()
13807 {
13808   int s;
13809   wait (&s);
13810   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } &&
13824          { ac_try='test -z "$ac_c_werror_flag"
13825                          || test ! -s conftest.err'
13826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827   (eval $ac_try) 2>&5
13828   ac_status=$?
13829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); }; } &&
13831          { ac_try='test -s conftest.$ac_objext'
13832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833   (eval $ac_try) 2>&5
13834   ac_status=$?
13835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); }; }; then
13837   ac_cv_header_sys_wait_h=yes
13838 else
13839   echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_header_sys_wait_h=no
13843 fi
13844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13847 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13848 if test $ac_cv_header_sys_wait_h = yes; then
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_SYS_WAIT_H 1
13852 _ACEOF
13853
13854 fi
13855
13856 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13857 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13858 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13859   echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861   cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h.  */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h.  */
13867 #include <sys/types.h>
13868 #include <termios.h>
13869 #ifdef TIOCGWINSZ
13870   yes
13871 #endif
13872
13873 _ACEOF
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875   $EGREP "yes" >/dev/null 2>&1; then
13876   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13877 else
13878   ac_cv_sys_tiocgwinsz_in_termios_h=no
13879 fi
13880 rm -f conftest*
13881
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13884 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13885
13886 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13887   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13888 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13889 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13890   echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892   cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898 #include <sys/types.h>
13899 #include <sys/ioctl.h>
13900 #ifdef TIOCGWINSZ
13901   yes
13902 #endif
13903
13904 _ACEOF
13905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13906   $EGREP "yes" >/dev/null 2>&1; then
13907   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13908 else
13909   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13910 fi
13911 rm -f conftest*
13912
13913 fi
13914 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13915 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13916
13917   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13918
13919 cat >>confdefs.h <<\_ACEOF
13920 #define GWINSZ_IN_SYS_IOCTL 1
13921 _ACEOF
13922
13923   fi
13924 fi
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974 for ac_header in \
13975         arpa/inet.h             \
13976         arpa/nameser.h          \
13977         assert.h                \
13978         bits/types.h            \
13979         conio.h                 \
13980         crypt.h                 \
13981         direct.h                \
13982         errno.h                 \
13983         fcntl.h                 \
13984         filio.h                 \
13985         getopt.h                \
13986         grp.h                   \
13987         io.h                    \
13988         libutil.h               \
13989         limits.h                \
13990         locale.h                \
13991         netinet/tcp.h           \
13992         malloc.h                \
13993         memory.h                \
13994         psap.h                  \
13995         pwd.h                   \
13996         process.h               \
13997         sgtty.h                 \
13998         shadow.h                \
13999         stddef.h                \
14000         string.h                \
14001         strings.h               \
14002         sysexits.h              \
14003         sys/file.h              \
14004         sys/filio.h             \
14005         sys/errno.h             \
14006         sys/ioctl.h             \
14007         sys/param.h             \
14008         sys/resource.h          \
14009         sys/select.h            \
14010         sys/socket.h            \
14011         sys/stat.h              \
14012         sys/syslog.h            \
14013         sys/time.h              \
14014         sys/types.h             \
14015         sys/uio.h               \
14016         syslog.h                \
14017         termios.h               \
14018         unistd.h                \
14019         utime.h                 \
14020         winsock.h               \
14021         winsock2.h              \
14022
14023 do
14024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14026   echo "$as_me:$LINENO: checking for $ac_header" >&5
14027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 fi
14031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14033 else
14034   # Is the header compilable?
14035 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h.  */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h.  */
14043 $ac_includes_default
14044 #include <$ac_header>
14045 _ACEOF
14046 rm -f conftest.$ac_objext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14048   (eval $ac_compile) 2>conftest.er1
14049   ac_status=$?
14050   grep -v '^ *+' conftest.er1 >conftest.err
14051   rm -f conftest.er1
14052   cat conftest.err >&5
14053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054   (exit $ac_status); } &&
14055          { ac_try='test -z "$ac_c_werror_flag"
14056                          || test ! -s conftest.err'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; } &&
14062          { ac_try='test -s conftest.$ac_objext'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068   ac_header_compiler=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_compiler=no
14074 fi
14075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14076 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14077 echo "${ECHO_T}$ac_header_compiler" >&6
14078
14079 # Is the header present?
14080 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14082 cat >conftest.$ac_ext <<_ACEOF
14083 /* confdefs.h.  */
14084 _ACEOF
14085 cat confdefs.h >>conftest.$ac_ext
14086 cat >>conftest.$ac_ext <<_ACEOF
14087 /* end confdefs.h.  */
14088 #include <$ac_header>
14089 _ACEOF
14090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14092   ac_status=$?
14093   grep -v '^ *+' conftest.er1 >conftest.err
14094   rm -f conftest.er1
14095   cat conftest.err >&5
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } >/dev/null; then
14098   if test -s conftest.err; then
14099     ac_cpp_err=$ac_c_preproc_warn_flag
14100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14101   else
14102     ac_cpp_err=
14103   fi
14104 else
14105   ac_cpp_err=yes
14106 fi
14107 if test -z "$ac_cpp_err"; then
14108   ac_header_preproc=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113   ac_header_preproc=no
14114 fi
14115 rm -f conftest.err conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6
14118
14119 # So?  What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121   yes:no: )
14122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14126     ac_header_preproc=yes
14127     ;;
14128   no:yes:* )
14129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14141     (
14142       cat <<\_ASBOX
14143 ## ------------------------------------------ ##
14144 ## Report this to the AC_PACKAGE_NAME lists.  ##
14145 ## ------------------------------------------ ##
14146 _ASBOX
14147     ) |
14148       sed "s/^/$as_me: WARNING:     /" >&2
14149     ;;
14150 esac
14151 echo "$as_me:$LINENO: checking for $ac_header" >&5
14152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14154   echo $ECHO_N "(cached) $ECHO_C" >&6
14155 else
14156   eval "$as_ac_Header=\$ac_header_preproc"
14157 fi
14158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14160
14161 fi
14162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14163   cat >>confdefs.h <<_ACEOF
14164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14165 _ACEOF
14166
14167 fi
14168
14169 done
14170
14171
14172
14173 for ac_header in resolv.h
14174 do
14175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14176 echo "$as_me:$LINENO: checking for $ac_header" >&5
14177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14187 $ac_includes_default
14188 #include <netinet/in.h>
14189
14190
14191 #include <$ac_header>
14192 _ACEOF
14193 rm -f conftest.$ac_objext
14194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14195   (eval $ac_compile) 2>conftest.er1
14196   ac_status=$?
14197   grep -v '^ *+' conftest.er1 >conftest.err
14198   rm -f conftest.er1
14199   cat conftest.err >&5
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); } &&
14202          { ac_try='test -z "$ac_c_werror_flag"
14203                          || test ! -s conftest.err'
14204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205   (eval $ac_try) 2>&5
14206   ac_status=$?
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); }; } &&
14209          { ac_try='test -s conftest.$ac_objext'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; }; then
14215   eval "$as_ac_Header=yes"
14216 else
14217   echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 eval "$as_ac_Header=no"
14221 fi
14222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14227   cat >>confdefs.h <<_ACEOF
14228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14229 _ACEOF
14230
14231 fi
14232
14233 done
14234
14235
14236
14237 for ac_header in sys/ucred.h
14238 do
14239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14240 echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 $ac_includes_default
14252 #ifdef HAVE_SYS_PARAM_H
14253 #include <sys/param.h>
14254 #endif
14255
14256
14257 #include <$ac_header>
14258 _ACEOF
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261   (eval $ac_compile) 2>conftest.er1
14262   ac_status=$?
14263   grep -v '^ *+' conftest.er1 >conftest.err
14264   rm -f conftest.er1
14265   cat conftest.err >&5
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); } &&
14268          { ac_try='test -z "$ac_c_werror_flag"
14269                          || test ! -s conftest.err'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; } &&
14275          { ac_try='test -s conftest.$ac_objext'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   eval "$as_ac_Header=yes"
14282 else
14283   echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14285
14286 eval "$as_ac_Header=no"
14287 fi
14288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 fi
14290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14293   cat >>confdefs.h <<_ACEOF
14294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14295 _ACEOF
14296
14297 fi
14298
14299 done
14300
14301
14302
14303
14304
14305 for ac_func in sigaction sigset
14306 do
14307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14308 echo "$as_me:$LINENO: checking for $ac_func" >&5
14309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14310 if eval "test \"\${$as_ac_var+set}\" = set"; then
14311   echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313   cat >conftest.$ac_ext <<_ACEOF
14314 /* confdefs.h.  */
14315 _ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h.  */
14319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14321 #define $ac_func innocuous_$ac_func
14322
14323 /* System header to define __stub macros and hopefully few prototypes,
14324     which can conflict with char $ac_func (); below.
14325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14326     <limits.h> exists even on freestanding compilers.  */
14327
14328 #ifdef __STDC__
14329 # include <limits.h>
14330 #else
14331 # include <assert.h>
14332 #endif
14333
14334 #undef $ac_func
14335
14336 /* Override any gcc2 internal prototype to avoid an error.  */
14337 #ifdef __cplusplus
14338 extern "C"
14339 {
14340 #endif
14341 /* We use char because int might match the return type of a gcc2
14342    builtin and then its argument prototype would still apply.  */
14343 char $ac_func ();
14344 /* The GNU C library defines this for functions which it implements
14345     to always fail with ENOSYS.  Some functions are actually named
14346     something starting with __ and the normal name is an alias.  */
14347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14348 choke me
14349 #else
14350 char (*f) () = $ac_func;
14351 #endif
14352 #ifdef __cplusplus
14353 }
14354 #endif
14355
14356 int
14357 main ()
14358 {
14359 return f != $ac_func;
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext conftest$ac_exeext
14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14366   (eval $ac_link) 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -z "$ac_c_werror_flag"
14374                          || test ! -s conftest.err'
14375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376   (eval $ac_try) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }; } &&
14380          { ac_try='test -s conftest$ac_exeext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   eval "$as_ac_var=yes"
14387 else
14388   echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 eval "$as_ac_var=no"
14392 fi
14393 rm -f conftest.err conftest.$ac_objext \
14394       conftest$ac_exeext conftest.$ac_ext
14395 fi
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14398 if test `eval echo '${'$as_ac_var'}'` = yes; then
14399   cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404 done
14405
14406
14407 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14408
14409 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14410 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14411 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14412   echo $ECHO_N "(cached) $ECHO_C" >&6
14413 else
14414   ac_check_lib_save_LIBS=$LIBS
14415 LIBS="-lV3  $LIBS"
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h.  */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h.  */
14422
14423 /* Override any gcc2 internal prototype to avoid an error.  */
14424 #ifdef __cplusplus
14425 extern "C"
14426 #endif
14427 /* We use char because int might match the return type of a gcc2
14428    builtin and then its argument prototype would still apply.  */
14429 char sigset ();
14430 int
14431 main ()
14432 {
14433 sigset ();
14434   ;
14435   return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext conftest$ac_exeext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14440   (eval $ac_link) 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -z "$ac_c_werror_flag"
14448                          || test ! -s conftest.err'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; } &&
14454          { ac_try='test -s conftest$ac_exeext'
14455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456   (eval $ac_try) 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); }; }; then
14460   ac_cv_lib_V3_sigset=yes
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_cv_lib_V3_sigset=no
14466 fi
14467 rm -f conftest.err conftest.$ac_objext \
14468       conftest$ac_exeext conftest.$ac_ext
14469 LIBS=$ac_check_lib_save_LIBS
14470 fi
14471 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14472 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14473 if test $ac_cv_lib_V3_sigset = yes; then
14474   cat >>confdefs.h <<_ACEOF
14475 #define HAVE_LIBV3 1
14476 _ACEOF
14477
14478   LIBS="-lV3 $LIBS"
14479
14480 fi
14481
14482 fi
14483
14484 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14485 echo "$as_me:$LINENO: checking for winsock" >&5
14486 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14487 if test "${ol_cv_winsock+set}" = set; then
14488   echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490   save_LIBS="$LIBS"
14491 for curlib in ws2_32 wsock32; do
14492         LIBS="$LIBS -l$curlib"
14493         cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 #include <winsock.h>
14500
14501 int
14502 main ()
14503 {
14504
14505                         socket(0,0,0);
14506                         select(0,NULL,NULL,NULL,NULL);
14507                         closesocket(0);
14508                         gethostname(NULL,0);
14509
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext conftest$ac_exeext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516   (eval $ac_link) 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } &&
14523          { ac_try='test -z "$ac_c_werror_flag"
14524                          || test ! -s conftest.err'
14525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526   (eval $ac_try) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); }; } &&
14530          { ac_try='test -s conftest$ac_exeext'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; }; then
14536   ol_cv_winsock=yes
14537 else
14538   echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14540
14541 ol_cv_winsock=no
14542 fi
14543 rm -f conftest.err conftest.$ac_objext \
14544       conftest$ac_exeext conftest.$ac_ext
14545
14546         if test $ol_cv_winsock = yes; then
14547
14548 cat >>confdefs.h <<\_ACEOF
14549 #define HAVE_WINSOCK 1
14550 _ACEOF
14551
14552                 ac_cv_func_socket=yes
14553                 ac_cv_func_select=yes
14554                 ac_cv_func_closesocket=yes
14555                 ac_cv_func_gethostname=yes
14556                 if test $curlib = ws2_32; then
14557                         ol_cv_winsock=winsock2
14558
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_WINSOCK2 1
14561 _ACEOF
14562
14563                 fi
14564                 break
14565         fi
14566         LIBS="$save_LIBS"
14567 done
14568 fi
14569 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14570 echo "${ECHO_T}$ol_cv_winsock" >&6
14571 fi
14572
14573
14574 echo "$as_me:$LINENO: checking for socket" >&5
14575 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14576 if test "${ac_cv_func_socket+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14587 #define socket innocuous_socket
14588
14589 /* System header to define __stub macros and hopefully few prototypes,
14590     which can conflict with char socket (); below.
14591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14592     <limits.h> exists even on freestanding compilers.  */
14593
14594 #ifdef __STDC__
14595 # include <limits.h>
14596 #else
14597 # include <assert.h>
14598 #endif
14599
14600 #undef socket
14601
14602 /* Override any gcc2 internal prototype to avoid an error.  */
14603 #ifdef __cplusplus
14604 extern "C"
14605 {
14606 #endif
14607 /* We use char because int might match the return type of a gcc2
14608    builtin and then its argument prototype would still apply.  */
14609 char socket ();
14610 /* The GNU C library defines this for functions which it implements
14611     to always fail with ENOSYS.  Some functions are actually named
14612     something starting with __ and the normal name is an alias.  */
14613 #if defined (__stub_socket) || defined (__stub___socket)
14614 choke me
14615 #else
14616 char (*f) () = socket;
14617 #endif
14618 #ifdef __cplusplus
14619 }
14620 #endif
14621
14622 int
14623 main ()
14624 {
14625 return f != socket;
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632   (eval $ac_link) 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag"
14640                          || test ! -s conftest.err'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest$ac_exeext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_func_socket=yes
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_func_socket=no
14658 fi
14659 rm -f conftest.err conftest.$ac_objext \
14660       conftest$ac_exeext conftest.$ac_ext
14661 fi
14662 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14663 echo "${ECHO_T}$ac_cv_func_socket" >&6
14664 if test $ac_cv_func_socket = yes; then
14665   :
14666 else
14667
14668
14669 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14670 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14671 if test "${ac_cv_lib_socket_main+set}" = set; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674   ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-lsocket  $LIBS"
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h.  */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h.  */
14682
14683
14684 int
14685 main ()
14686 {
14687 main ();
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14694   (eval $ac_link) 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } &&
14701          { ac_try='test -z "$ac_c_werror_flag"
14702                          || test ! -s conftest.err'
14703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704   (eval $ac_try) 2>&5
14705   ac_status=$?
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); }; } &&
14708          { ac_try='test -s conftest$ac_exeext'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }; then
14714   ac_cv_lib_socket_main=yes
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 ac_cv_lib_socket_main=no
14720 fi
14721 rm -f conftest.err conftest.$ac_objext \
14722       conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14724 fi
14725 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14726 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14727 if test $ac_cv_lib_socket_main = yes; then
14728   cat >>confdefs.h <<_ACEOF
14729 #define HAVE_LIBSOCKET 1
14730 _ACEOF
14731
14732   LIBS="-lsocket $LIBS"
14733
14734 fi
14735
14736
14737 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14738 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14739 if test "${ac_cv_lib_net_main+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   ac_check_lib_save_LIBS=$LIBS
14743 LIBS="-lnet  $LIBS"
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h.  */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h.  */
14750
14751
14752 int
14753 main ()
14754 {
14755 main ();
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14762   (eval $ac_link) 2>conftest.er1
14763   ac_status=$?
14764   grep -v '^ *+' conftest.er1 >conftest.err
14765   rm -f conftest.er1
14766   cat conftest.err >&5
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } &&
14769          { ac_try='test -z "$ac_c_werror_flag"
14770                          || test ! -s conftest.err'
14771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772   (eval $ac_try) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; } &&
14776          { ac_try='test -s conftest$ac_exeext'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; }; then
14782   ac_cv_lib_net_main=yes
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_lib_net_main=no
14788 fi
14789 rm -f conftest.err conftest.$ac_objext \
14790       conftest$ac_exeext conftest.$ac_ext
14791 LIBS=$ac_check_lib_save_LIBS
14792 fi
14793 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14794 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14795 if test $ac_cv_lib_net_main = yes; then
14796   cat >>confdefs.h <<_ACEOF
14797 #define HAVE_LIBNET 1
14798 _ACEOF
14799
14800   LIBS="-lnet $LIBS"
14801
14802 fi
14803
14804
14805 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14806 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14807 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14808   echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810   ac_check_lib_save_LIBS=$LIBS
14811 LIBS="-lnsl_s  $LIBS"
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818
14819
14820 int
14821 main ()
14822 {
14823 main ();
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext conftest$ac_exeext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14830   (eval $ac_link) 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -z "$ac_c_werror_flag"
14838                          || test ! -s conftest.err'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; } &&
14844          { ac_try='test -s conftest$ac_exeext'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; }; then
14850   ac_cv_lib_nsl_s_main=yes
14851 else
14852   echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 ac_cv_lib_nsl_s_main=no
14856 fi
14857 rm -f conftest.err conftest.$ac_objext \
14858       conftest$ac_exeext conftest.$ac_ext
14859 LIBS=$ac_check_lib_save_LIBS
14860 fi
14861 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14862 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14863 if test $ac_cv_lib_nsl_s_main = yes; then
14864   cat >>confdefs.h <<_ACEOF
14865 #define HAVE_LIBNSL_S 1
14866 _ACEOF
14867
14868   LIBS="-lnsl_s $LIBS"
14869
14870 fi
14871
14872
14873 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14874 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14875 if test "${ac_cv_lib_nsl_main+set}" = set; then
14876   echo $ECHO_N "(cached) $ECHO_C" >&6
14877 else
14878   ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lnsl  $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886
14887
14888 int
14889 main ()
14890 {
14891 main ();
14892   ;
14893   return 0;
14894 }
14895 _ACEOF
14896 rm -f conftest.$ac_objext conftest$ac_exeext
14897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898   (eval $ac_link) 2>conftest.er1
14899   ac_status=$?
14900   grep -v '^ *+' conftest.er1 >conftest.err
14901   rm -f conftest.er1
14902   cat conftest.err >&5
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } &&
14905          { ac_try='test -z "$ac_c_werror_flag"
14906                          || test ! -s conftest.err'
14907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908   (eval $ac_try) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; } &&
14912          { ac_try='test -s conftest$ac_exeext'
14913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914   (eval $ac_try) 2>&5
14915   ac_status=$?
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); }; }; then
14918   ac_cv_lib_nsl_main=yes
14919 else
14920   echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923 ac_cv_lib_nsl_main=no
14924 fi
14925 rm -f conftest.err conftest.$ac_objext \
14926       conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14928 fi
14929 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14930 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14931 if test $ac_cv_lib_nsl_main = yes; then
14932   cat >>confdefs.h <<_ACEOF
14933 #define HAVE_LIBNSL 1
14934 _ACEOF
14935
14936   LIBS="-lnsl $LIBS"
14937
14938 fi
14939
14940
14941 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14942 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14943 if test "${ac_cv_lib_inet_socket+set}" = set; then
14944   echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946   ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-linet  $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h.  */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h.  */
14954
14955 /* Override any gcc2 internal prototype to avoid an error.  */
14956 #ifdef __cplusplus
14957 extern "C"
14958 #endif
14959 /* We use char because int might match the return type of a gcc2
14960    builtin and then its argument prototype would still apply.  */
14961 char socket ();
14962 int
14963 main ()
14964 {
14965 socket ();
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14972   (eval $ac_link) 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag"
14980                          || test ! -s conftest.err'
14981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982   (eval $ac_try) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); }; } &&
14986          { ac_try='test -s conftest$ac_exeext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   ac_cv_lib_inet_socket=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ac_cv_lib_inet_socket=no
14998 fi
14999 rm -f conftest.err conftest.$ac_objext \
15000       conftest$ac_exeext conftest.$ac_ext
15001 LIBS=$ac_check_lib_save_LIBS
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15004 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15005 if test $ac_cv_lib_inet_socket = yes; then
15006   cat >>confdefs.h <<_ACEOF
15007 #define HAVE_LIBINET 1
15008 _ACEOF
15009
15010   LIBS="-linet $LIBS"
15011
15012 fi
15013
15014
15015 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15016 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15017 if test "${ac_cv_lib_gen_main+set}" = set; then
15018   echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020   ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lgen  $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028
15029
15030 int
15031 main ()
15032 {
15033 main ();
15034   ;
15035   return 0;
15036 }
15037 _ACEOF
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15040   (eval $ac_link) 2>conftest.er1
15041   ac_status=$?
15042   grep -v '^ *+' conftest.er1 >conftest.err
15043   rm -f conftest.er1
15044   cat conftest.err >&5
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } &&
15047          { ac_try='test -z "$ac_c_werror_flag"
15048                          || test ! -s conftest.err'
15049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050   (eval $ac_try) 2>&5
15051   ac_status=$?
15052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053   (exit $ac_status); }; } &&
15054          { ac_try='test -s conftest$ac_exeext'
15055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15056   (eval $ac_try) 2>&5
15057   ac_status=$?
15058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059   (exit $ac_status); }; }; then
15060   ac_cv_lib_gen_main=yes
15061 else
15062   echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064
15065 ac_cv_lib_gen_main=no
15066 fi
15067 rm -f conftest.err conftest.$ac_objext \
15068       conftest$ac_exeext conftest.$ac_ext
15069 LIBS=$ac_check_lib_save_LIBS
15070 fi
15071 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15072 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15073 if test $ac_cv_lib_gen_main = yes; then
15074   cat >>confdefs.h <<_ACEOF
15075 #define HAVE_LIBGEN 1
15076 _ACEOF
15077
15078   LIBS="-lgen $LIBS"
15079
15080 fi
15081
15082
15083 fi
15084
15085
15086 echo "$as_me:$LINENO: checking for select" >&5
15087 echo $ECHO_N "checking for select... $ECHO_C" >&6
15088 if test "${ac_cv_func_select+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   cat >conftest.$ac_ext <<_ACEOF
15092 /* confdefs.h.  */
15093 _ACEOF
15094 cat confdefs.h >>conftest.$ac_ext
15095 cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h.  */
15097 /* Define select to an innocuous variant, in case <limits.h> declares select.
15098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15099 #define select innocuous_select
15100
15101 /* System header to define __stub macros and hopefully few prototypes,
15102     which can conflict with char select (); below.
15103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15104     <limits.h> exists even on freestanding compilers.  */
15105
15106 #ifdef __STDC__
15107 # include <limits.h>
15108 #else
15109 # include <assert.h>
15110 #endif
15111
15112 #undef select
15113
15114 /* Override any gcc2 internal prototype to avoid an error.  */
15115 #ifdef __cplusplus
15116 extern "C"
15117 {
15118 #endif
15119 /* We use char because int might match the return type of a gcc2
15120    builtin and then its argument prototype would still apply.  */
15121 char select ();
15122 /* The GNU C library defines this for functions which it implements
15123     to always fail with ENOSYS.  Some functions are actually named
15124     something starting with __ and the normal name is an alias.  */
15125 #if defined (__stub_select) || defined (__stub___select)
15126 choke me
15127 #else
15128 char (*f) () = select;
15129 #endif
15130 #ifdef __cplusplus
15131 }
15132 #endif
15133
15134 int
15135 main ()
15136 {
15137 return f != select;
15138   ;
15139   return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15144   (eval $ac_link) 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag"
15152                          || test ! -s conftest.err'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; } &&
15158          { ac_try='test -s conftest$ac_exeext'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164   ac_cv_func_select=yes
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_func_select=no
15170 fi
15171 rm -f conftest.err conftest.$ac_objext \
15172       conftest$ac_exeext conftest.$ac_ext
15173 fi
15174 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15175 echo "${ECHO_T}$ac_cv_func_select" >&6
15176 if test $ac_cv_func_select = yes; then
15177   :
15178 else
15179   { { echo "$as_me:$LINENO: error: select() required." >&5
15180 echo "$as_me: error: select() required." >&2;}
15181    { (exit 1); exit 1; }; }
15182 fi
15183
15184
15185 if test "${ac_cv_header_winsock_h}" != yes; then
15186
15187
15188 for ac_header in sys/select.h sys/socket.h
15189 do
15190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15192   echo "$as_me:$LINENO: checking for $ac_header" >&5
15193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 fi
15197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15199 else
15200   # Is the header compilable?
15201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209 $ac_includes_default
15210 #include <$ac_header>
15211 _ACEOF
15212 rm -f conftest.$ac_objext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15214   (eval $ac_compile) 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -z "$ac_c_werror_flag"
15222                          || test ! -s conftest.err'
15223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224   (eval $ac_try) 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; } &&
15228          { ac_try='test -s conftest.$ac_objext'
15229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230   (eval $ac_try) 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; }; then
15234   ac_header_compiler=yes
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239 ac_header_compiler=no
15240 fi
15241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6
15244
15245 # Is the header present?
15246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h.  */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h.  */
15254 #include <$ac_header>
15255 _ACEOF
15256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15258   ac_status=$?
15259   grep -v '^ *+' conftest.er1 >conftest.err
15260   rm -f conftest.er1
15261   cat conftest.err >&5
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } >/dev/null; then
15264   if test -s conftest.err; then
15265     ac_cpp_err=$ac_c_preproc_warn_flag
15266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15267   else
15268     ac_cpp_err=
15269   fi
15270 else
15271   ac_cpp_err=yes
15272 fi
15273 if test -z "$ac_cpp_err"; then
15274   ac_header_preproc=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279   ac_header_preproc=no
15280 fi
15281 rm -f conftest.err conftest.$ac_ext
15282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15283 echo "${ECHO_T}$ac_header_preproc" >&6
15284
15285 # So?  What about this header?
15286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287   yes:no: )
15288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15292     ac_header_preproc=yes
15293     ;;
15294   no:yes:* )
15295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15307     (
15308       cat <<\_ASBOX
15309 ## ------------------------------------------ ##
15310 ## Report this to the AC_PACKAGE_NAME lists.  ##
15311 ## ------------------------------------------ ##
15312 _ASBOX
15313     ) |
15314       sed "s/^/$as_me: WARNING:     /" >&2
15315     ;;
15316 esac
15317 echo "$as_me:$LINENO: checking for $ac_header" >&5
15318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   eval "$as_ac_Header=\$ac_header_preproc"
15323 fi
15324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15326
15327 fi
15328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15329   cat >>confdefs.h <<_ACEOF
15330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15331 _ACEOF
15332
15333 fi
15334
15335 done
15336
15337 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15338 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15339 if test "${ac_cv_func_select_args+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15343  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15344   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15345    cat >conftest.$ac_ext <<_ACEOF
15346 /* confdefs.h.  */
15347 _ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h.  */
15351 $ac_includes_default
15352 #if HAVE_SYS_SELECT_H
15353 # include <sys/select.h>
15354 #endif
15355 #if HAVE_SYS_SOCKET_H
15356 # include <sys/socket.h>
15357 #endif
15358
15359 int
15360 main ()
15361 {
15362 extern int select ($ac_arg1,
15363                                             $ac_arg234, $ac_arg234, $ac_arg234,
15364                                             $ac_arg5);
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371   (eval $ac_compile) 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } &&
15378          { ac_try='test -z "$ac_c_werror_flag"
15379                          || test ! -s conftest.err'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; } &&
15385          { ac_try='test -s conftest.$ac_objext'
15386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387   (eval $ac_try) 2>&5
15388   ac_status=$?
15389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390   (exit $ac_status); }; }; then
15391   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396 fi
15397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15398   done
15399  done
15400 done
15401 # Provide a safe default value.
15402 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15403
15404 fi
15405 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15406 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15407 ac_save_IFS=$IFS; IFS=','
15408 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15409 IFS=$ac_save_IFS
15410 shift
15411
15412 cat >>confdefs.h <<_ACEOF
15413 #define SELECT_TYPE_ARG1 $1
15414 _ACEOF
15415
15416
15417 cat >>confdefs.h <<_ACEOF
15418 #define SELECT_TYPE_ARG234 ($2)
15419 _ACEOF
15420
15421
15422 cat >>confdefs.h <<_ACEOF
15423 #define SELECT_TYPE_ARG5 ($3)
15424 _ACEOF
15425
15426 rm -f conftest*
15427
15428 fi
15429
15430
15431
15432 for ac_func in poll
15433 do
15434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15435 echo "$as_me:$LINENO: checking for $ac_func" >&5
15436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15437 if eval "test \"\${$as_ac_var+set}\" = set"; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h.  */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h.  */
15446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15448 #define $ac_func innocuous_$ac_func
15449
15450 /* System header to define __stub macros and hopefully few prototypes,
15451     which can conflict with char $ac_func (); below.
15452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15453     <limits.h> exists even on freestanding compilers.  */
15454
15455 #ifdef __STDC__
15456 # include <limits.h>
15457 #else
15458 # include <assert.h>
15459 #endif
15460
15461 #undef $ac_func
15462
15463 /* Override any gcc2 internal prototype to avoid an error.  */
15464 #ifdef __cplusplus
15465 extern "C"
15466 {
15467 #endif
15468 /* We use char because int might match the return type of a gcc2
15469    builtin and then its argument prototype would still apply.  */
15470 char $ac_func ();
15471 /* The GNU C library defines this for functions which it implements
15472     to always fail with ENOSYS.  Some functions are actually named
15473     something starting with __ and the normal name is an alias.  */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15475 choke me
15476 #else
15477 char (*f) () = $ac_func;
15478 #endif
15479 #ifdef __cplusplus
15480 }
15481 #endif
15482
15483 int
15484 main ()
15485 {
15486 return f != $ac_func;
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493   (eval $ac_link) 2>conftest.er1
15494   ac_status=$?
15495   grep -v '^ *+' conftest.er1 >conftest.err
15496   rm -f conftest.er1
15497   cat conftest.err >&5
15498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499   (exit $ac_status); } &&
15500          { ac_try='test -z "$ac_c_werror_flag"
15501                          || test ! -s conftest.err'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; } &&
15507          { ac_try='test -s conftest$ac_exeext'
15508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509   (eval $ac_try) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); }; }; then
15513   eval "$as_ac_var=yes"
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 eval "$as_ac_var=no"
15519 fi
15520 rm -f conftest.err conftest.$ac_objext \
15521       conftest$ac_exeext conftest.$ac_ext
15522 fi
15523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15525 if test `eval echo '${'$as_ac_var'}'` = yes; then
15526   cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15528 _ACEOF
15529
15530 fi
15531 done
15532
15533
15534 for ac_header in poll.h
15535 do
15536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15538   echo "$as_me:$LINENO: checking for $ac_header" >&5
15539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15541   echo $ECHO_N "(cached) $ECHO_C" >&6
15542 fi
15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15545 else
15546   # Is the header compilable?
15547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 $ac_includes_default
15556 #include <$ac_header>
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560   (eval $ac_compile) 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } &&
15567          { ac_try='test -z "$ac_c_werror_flag"
15568                          || test ! -s conftest.err'
15569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570   (eval $ac_try) 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; } &&
15574          { ac_try='test -s conftest.$ac_objext'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; }; then
15580   ac_header_compiler=yes
15581 else
15582   echo "$as_me: failed program was:" >&5
15583 sed 's/^/| /' conftest.$ac_ext >&5
15584
15585 ac_header_compiler=no
15586 fi
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15589 echo "${ECHO_T}$ac_header_compiler" >&6
15590
15591 # Is the header present?
15592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15594 cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 #include <$ac_header>
15601 _ACEOF
15602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15604   ac_status=$?
15605   grep -v '^ *+' conftest.er1 >conftest.err
15606   rm -f conftest.er1
15607   cat conftest.err >&5
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } >/dev/null; then
15610   if test -s conftest.err; then
15611     ac_cpp_err=$ac_c_preproc_warn_flag
15612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15613   else
15614     ac_cpp_err=
15615   fi
15616 else
15617   ac_cpp_err=yes
15618 fi
15619 if test -z "$ac_cpp_err"; then
15620   ac_header_preproc=yes
15621 else
15622   echo "$as_me: failed program was:" >&5
15623 sed 's/^/| /' conftest.$ac_ext >&5
15624
15625   ac_header_preproc=no
15626 fi
15627 rm -f conftest.err conftest.$ac_ext
15628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15629 echo "${ECHO_T}$ac_header_preproc" >&6
15630
15631 # So?  What about this header?
15632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15633   yes:no: )
15634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15638     ac_header_preproc=yes
15639     ;;
15640   no:yes:* )
15641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15653     (
15654       cat <<\_ASBOX
15655 ## ------------------------------------------ ##
15656 ## Report this to the AC_PACKAGE_NAME lists.  ##
15657 ## ------------------------------------------ ##
15658 _ASBOX
15659     ) |
15660       sed "s/^/$as_me: WARNING:     /" >&2
15661     ;;
15662 esac
15663 echo "$as_me:$LINENO: checking for $ac_header" >&5
15664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15666   echo $ECHO_N "(cached) $ECHO_C" >&6
15667 else
15668   eval "$as_ac_Header=\$ac_header_preproc"
15669 fi
15670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15672
15673 fi
15674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15675   cat >>confdefs.h <<_ACEOF
15676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15677 _ACEOF
15678
15679 fi
15680
15681 done
15682
15683
15684
15685 for ac_header in sys/epoll.h
15686 do
15687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15689   echo "$as_me:$LINENO: checking for $ac_header" >&5
15690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 fi
15694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15696 else
15697   # Is the header compilable?
15698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706 $ac_includes_default
15707 #include <$ac_header>
15708 _ACEOF
15709 rm -f conftest.$ac_objext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15711   (eval $ac_compile) 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } &&
15718          { ac_try='test -z "$ac_c_werror_flag"
15719                          || test ! -s conftest.err'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; } &&
15725          { ac_try='test -s conftest.$ac_objext'
15726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727   (eval $ac_try) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); }; }; then
15731   ac_header_compiler=yes
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736 ac_header_compiler=no
15737 fi
15738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15739 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15740 echo "${ECHO_T}$ac_header_compiler" >&6
15741
15742 # Is the header present?
15743 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751 #include <$ac_header>
15752 _ACEOF
15753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } >/dev/null; then
15761   if test -s conftest.err; then
15762     ac_cpp_err=$ac_c_preproc_warn_flag
15763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15764   else
15765     ac_cpp_err=
15766   fi
15767 else
15768   ac_cpp_err=yes
15769 fi
15770 if test -z "$ac_cpp_err"; then
15771   ac_header_preproc=yes
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776   ac_header_preproc=no
15777 fi
15778 rm -f conftest.err conftest.$ac_ext
15779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15780 echo "${ECHO_T}$ac_header_preproc" >&6
15781
15782 # So?  What about this header?
15783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15784   yes:no: )
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15789     ac_header_preproc=yes
15790     ;;
15791   no:yes:* )
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15794     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15795 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15796     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15798     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15799 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15802     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15804     (
15805       cat <<\_ASBOX
15806 ## ------------------------------------------ ##
15807 ## Report this to the AC_PACKAGE_NAME lists.  ##
15808 ## ------------------------------------------ ##
15809 _ASBOX
15810     ) |
15811       sed "s/^/$as_me: WARNING:     /" >&2
15812     ;;
15813 esac
15814 echo "$as_me:$LINENO: checking for $ac_header" >&5
15815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15817   echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819   eval "$as_ac_Header=\$ac_header_preproc"
15820 fi
15821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15823
15824 fi
15825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15826   cat >>confdefs.h <<_ACEOF
15827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15828 _ACEOF
15829
15830 fi
15831
15832 done
15833
15834 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15835 echo "$as_me:$LINENO: checking for epoll system call" >&5
15836 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15837 if test "$cross_compiling" = yes; then
15838   echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6
15840 else
15841   cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847 int main(int argc, char *argv)
15848 {
15849         int epfd = epoll_create(256);
15850         exit (epfd == -1 ? 1 : 0);
15851 }
15852 _ACEOF
15853 rm -f conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15866
15867 cat >>confdefs.h <<\_ACEOF
15868 #define HAVE_EPOLL 1
15869 _ACEOF
15870
15871 else
15872   echo "$as_me: program exited with status $ac_status" >&5
15873 echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876 ( exit $ac_status )
15877 echo "$as_me:$LINENO: result: no" >&5
15878 echo "${ECHO_T}no" >&6
15879 fi
15880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15881 fi
15882 fi
15883
15884 # strerror checks
15885 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890
15891         cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897
15898 #include <stdio.h>
15899 #include <sys/types.h>
15900 #include <errno.h>
15901 #ifdef WINNT
15902 #include <stdlib.h>
15903 #endif
15904 int
15905 main ()
15906 {
15907 char *c = (char *) *sys_errlist
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914   (eval $ac_compile) 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -z "$ac_c_werror_flag"
15922                          || test ! -s conftest.err'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest.$ac_objext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   ol_cv_dcl_sys_errlist=yes
15935         ol_cv_have_sys_errlist=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 ol_cv_dcl_sys_errlist=no
15941 fi
15942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15943 fi
15944 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15945 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15946 #
15947 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15948 if test $ol_cv_dcl_sys_errlist = no ; then
15949
15950 cat >>confdefs.h <<\_ACEOF
15951 #define DECL_SYS_ERRLIST 1
15952 _ACEOF
15953
15954
15955         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15956 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15957 if test "${ol_cv_have_sys_errlist+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960
15961                 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 #include <errno.h>
15968 int
15969 main ()
15970 {
15971 char *c = (char *) *sys_errlist
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978   (eval $ac_link) 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -z "$ac_c_werror_flag"
15986                          || test ! -s conftest.err'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; } &&
15992          { ac_try='test -s conftest$ac_exeext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   ol_cv_have_sys_errlist=yes
15999 else
16000   echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ol_cv_have_sys_errlist=no
16004 fi
16005 rm -f conftest.err conftest.$ac_objext \
16006       conftest$ac_exeext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16009 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16010 fi
16011 if test $ol_cv_have_sys_errlist = yes ; then
16012
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_SYS_ERRLIST 1
16015 _ACEOF
16016
16017 fi
16018
16019
16020 for ac_func in strerror strerror_r
16021 do
16022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16023 echo "$as_me:$LINENO: checking for $ac_func" >&5
16024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16025 if eval "test \"\${$as_ac_var+set}\" = set"; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16036 #define $ac_func innocuous_$ac_func
16037
16038 /* System header to define __stub macros and hopefully few prototypes,
16039     which can conflict with char $ac_func (); below.
16040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16041     <limits.h> exists even on freestanding compilers.  */
16042
16043 #ifdef __STDC__
16044 # include <limits.h>
16045 #else
16046 # include <assert.h>
16047 #endif
16048
16049 #undef $ac_func
16050
16051 /* Override any gcc2 internal prototype to avoid an error.  */
16052 #ifdef __cplusplus
16053 extern "C"
16054 {
16055 #endif
16056 /* We use char because int might match the return type of a gcc2
16057    builtin and then its argument prototype would still apply.  */
16058 char $ac_func ();
16059 /* The GNU C library defines this for functions which it implements
16060     to always fail with ENOSYS.  Some functions are actually named
16061     something starting with __ and the normal name is an alias.  */
16062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16063 choke me
16064 #else
16065 char (*f) () = $ac_func;
16066 #endif
16067 #ifdef __cplusplus
16068 }
16069 #endif
16070
16071 int
16072 main ()
16073 {
16074 return f != $ac_func;
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081   (eval $ac_link) 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } &&
16088          { ac_try='test -z "$ac_c_werror_flag"
16089                          || test ! -s conftest.err'
16090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091   (eval $ac_try) 2>&5
16092   ac_status=$?
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); }; } &&
16095          { ac_try='test -s conftest$ac_exeext'
16096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097   (eval $ac_try) 2>&5
16098   ac_status=$?
16099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100   (exit $ac_status); }; }; then
16101   eval "$as_ac_var=yes"
16102 else
16103   echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16105
16106 eval "$as_ac_var=no"
16107 fi
16108 rm -f conftest.err conftest.$ac_objext \
16109       conftest$ac_exeext conftest.$ac_ext
16110 fi
16111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16113 if test `eval echo '${'$as_ac_var'}'` = yes; then
16114   cat >>confdefs.h <<_ACEOF
16115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16116 _ACEOF
16117
16118 fi
16119 done
16120
16121 ol_cv_func_strerror_r=no
16122 if test "${ac_cv_func_strerror_r}" = yes ; then
16123         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16124 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16125 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128
16129         cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h.  */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h.  */
16135 #include <string.h>
16136 _ACEOF
16137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16138   $EGREP "strerror_r" >/dev/null 2>&1; then
16139   ol_decl_strerror_r=yes
16140 else
16141   ol_decl_strerror_r=no
16142 fi
16143 rm -f conftest*
16144
16145         if test $ol_decl_strerror_r = yes ; then
16146                 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152 #include <string.h>
16153 int
16154 main ()
16155 {
16156    /* from autoconf 2.59 */
16157                                 char buf[100];
16158                                 char x = *strerror_r (0, buf, sizeof buf);
16159                                 char *p = strerror_r (0, buf, sizeof buf);
16160
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167   (eval $ac_compile) 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } &&
16174          { ac_try='test -z "$ac_c_werror_flag"
16175                          || test ! -s conftest.err'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; } &&
16181          { ac_try='test -s conftest.$ac_objext'
16182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183   (eval $ac_try) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }; }; then
16187   ol_cv_nonposix_strerror_r=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ol_cv_nonposix_strerror_r=no
16193 fi
16194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195         else
16196                 if test "$cross_compiling" = yes; then
16197   ol_cv_nonposix_strerror=no
16198 else
16199   cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205
16206                         main() {
16207                                 char buf[100];
16208                                 buf[0] = 0;
16209                                 strerror_r( 1, buf, sizeof buf );
16210                                 exit( buf[0] == 0 );
16211                         }
16212
16213 _ACEOF
16214 rm -f conftest$ac_exeext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16216   (eval $ac_link) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; }; then
16225   ol_cv_nonposix_strerror_r=yes
16226 else
16227   echo "$as_me: program exited with status $ac_status" >&5
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231 ( exit $ac_status )
16232 ol_cv_nonposix_strerror=no
16233 fi
16234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16235 fi
16236         fi
16237
16238 fi
16239 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16240 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16241 if test $ol_cv_nonposix_strerror_r = yes ; then
16242
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_NONPOSIX_STRERROR_R 1
16245 _ACEOF
16246
16247 fi
16248
16249 elif test "${ac_cv_func_strerror}" = no ; then
16250         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16251 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16252 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255
16256         cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262
16263 #include <stdio.h>
16264 #include <sys/types.h>
16265 #include <errno.h>
16266 #ifdef WINNT
16267 #include <stdlib.h>
16268 #endif
16269 int
16270 main ()
16271 {
16272 char *c = (char *) *sys_errlist
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext
16278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16279   (eval $ac_compile) 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } &&
16286          { ac_try='test -z "$ac_c_werror_flag"
16287                          || test ! -s conftest.err'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; } &&
16293          { ac_try='test -s conftest.$ac_objext'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; }; then
16299   ol_cv_dcl_sys_errlist=yes
16300         ol_cv_have_sys_errlist=yes
16301 else
16302   echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ol_cv_dcl_sys_errlist=no
16306 fi
16307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16308 fi
16309 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16310 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16311 #
16312 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16313 if test $ol_cv_dcl_sys_errlist = no ; then
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define DECL_SYS_ERRLIST 1
16317 _ACEOF
16318
16319
16320         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16321 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16322 if test "${ol_cv_have_sys_errlist+set}" = set; then
16323   echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325
16326                 cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 #include <errno.h>
16333 int
16334 main ()
16335 {
16336 char *c = (char *) *sys_errlist
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343   (eval $ac_link) 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } &&
16350          { ac_try='test -z "$ac_c_werror_flag"
16351                          || test ! -s conftest.err'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; } &&
16357          { ac_try='test -s conftest$ac_exeext'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; }; then
16363   ol_cv_have_sys_errlist=yes
16364 else
16365   echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ol_cv_have_sys_errlist=no
16369 fi
16370 rm -f conftest.err conftest.$ac_objext \
16371       conftest$ac_exeext conftest.$ac_ext
16372 fi
16373 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16374 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16375 fi
16376 if test $ol_cv_have_sys_errlist = yes ; then
16377
16378 cat >>confdefs.h <<\_ACEOF
16379 #define HAVE_SYS_ERRLIST 1
16380 _ACEOF
16381
16382 fi
16383
16384 fi
16385
16386
16387
16388 for ac_header in regex.h
16389 do
16390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16392   echo "$as_me:$LINENO: checking for $ac_header" >&5
16393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16395   echo $ECHO_N "(cached) $ECHO_C" >&6
16396 fi
16397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16399 else
16400   # Is the header compilable?
16401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16404 /* confdefs.h.  */
16405 _ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h.  */
16409 $ac_includes_default
16410 #include <$ac_header>
16411 _ACEOF
16412 rm -f conftest.$ac_objext
16413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16414   (eval $ac_compile) 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } &&
16421          { ac_try='test -z "$ac_c_werror_flag"
16422                          || test ! -s conftest.err'
16423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424   (eval $ac_try) 2>&5
16425   ac_status=$?
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); }; } &&
16428          { ac_try='test -s conftest.$ac_objext'
16429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430   (eval $ac_try) 2>&5
16431   ac_status=$?
16432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); }; }; then
16434   ac_header_compiler=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ac_header_compiler=no
16440 fi
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16444
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h.  */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h.  */
16454 #include <$ac_header>
16455 _ACEOF
16456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16457   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } >/dev/null; then
16464   if test -s conftest.err; then
16465     ac_cpp_err=$ac_c_preproc_warn_flag
16466     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16467   else
16468     ac_cpp_err=
16469   fi
16470 else
16471   ac_cpp_err=yes
16472 fi
16473 if test -z "$ac_cpp_err"; then
16474   ac_header_preproc=yes
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479   ac_header_preproc=no
16480 fi
16481 rm -f conftest.err conftest.$ac_ext
16482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16483 echo "${ECHO_T}$ac_header_preproc" >&6
16484
16485 # So?  What about this header?
16486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16487   yes:no: )
16488     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16492     ac_header_preproc=yes
16493     ;;
16494   no:yes:* )
16495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16497     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16498 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16499     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16501     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16502 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16505     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16507     (
16508       cat <<\_ASBOX
16509 ## ------------------------------------------ ##
16510 ## Report this to the AC_PACKAGE_NAME lists.  ##
16511 ## ------------------------------------------ ##
16512 _ASBOX
16513     ) |
16514       sed "s/^/$as_me: WARNING:     /" >&2
16515     ;;
16516 esac
16517 echo "$as_me:$LINENO: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   eval "$as_ac_Header=\$ac_header_preproc"
16523 fi
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16526
16527 fi
16528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16529   cat >>confdefs.h <<_ACEOF
16530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16531 _ACEOF
16532
16533 fi
16534
16535 done
16536
16537 if test "$ac_cv_header_regex_h" != yes ; then
16538         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16539 echo "$as_me: error: POSIX regex.h required." >&2;}
16540    { (exit 1); exit 1; }; }
16541 fi
16542 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16543 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16544 if test "${ac_cv_search_regfree+set}" = set; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   ac_func_search_save_LIBS=$LIBS
16548 ac_cv_search_regfree=no
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555
16556 /* Override any gcc2 internal prototype to avoid an error.  */
16557 #ifdef __cplusplus
16558 extern "C"
16559 #endif
16560 /* We use char because int might match the return type of a gcc2
16561    builtin and then its argument prototype would still apply.  */
16562 char regfree ();
16563 int
16564 main ()
16565 {
16566 regfree ();
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573   (eval $ac_link) 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } &&
16580          { ac_try='test -z "$ac_c_werror_flag"
16581                          || test ! -s conftest.err'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; } &&
16587          { ac_try='test -s conftest$ac_exeext'
16588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589   (eval $ac_try) 2>&5
16590   ac_status=$?
16591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592   (exit $ac_status); }; }; then
16593   ac_cv_search_regfree="none required"
16594 else
16595   echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 fi
16599 rm -f conftest.err conftest.$ac_objext \
16600       conftest$ac_exeext conftest.$ac_ext
16601 if test "$ac_cv_search_regfree" = no; then
16602   for ac_lib in regex gnuregex; do
16603     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16604     cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610
16611 /* Override any gcc2 internal prototype to avoid an error.  */
16612 #ifdef __cplusplus
16613 extern "C"
16614 #endif
16615 /* We use char because int might match the return type of a gcc2
16616    builtin and then its argument prototype would still apply.  */
16617 char regfree ();
16618 int
16619 main ()
16620 {
16621 regfree ();
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16628   (eval $ac_link) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest$ac_exeext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_search_regfree="-l$ac_lib"
16649 break
16650 else
16651   echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 fi
16655 rm -f conftest.err conftest.$ac_objext \
16656       conftest$ac_exeext conftest.$ac_ext
16657   done
16658 fi
16659 LIBS=$ac_func_search_save_LIBS
16660 fi
16661 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16662 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16663 if test "$ac_cv_search_regfree" != no; then
16664   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16665   :
16666 else
16667   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16668 echo "$as_me: error: POSIX regex required." >&2;}
16669    { (exit 1); exit 1; }; }
16670 fi
16671
16672
16673
16674 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16675 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16676 if test "${ol_cv_c_posix_regex+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679
16680         if test "$cross_compiling" = yes; then
16681   ol_cv_c_posix_regex=cross
16682 else
16683   cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689
16690 #include <sys/types.h>
16691 #include <regex.h>
16692 static char *pattern, *string;
16693 main()
16694 {
16695         int rc;
16696         regex_t re;
16697
16698         pattern = "^A";
16699
16700         if(regcomp(&re, pattern, 0)) {
16701                 return -1;
16702         }
16703
16704         string = "ALL MATCH";
16705
16706         rc = regexec(&re, string, 0, (void*)0, 0);
16707
16708         regfree(&re);
16709
16710         return rc;
16711 }
16712 _ACEOF
16713 rm -f conftest$ac_exeext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16715   (eval $ac_link) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720   (eval $ac_try) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; }; then
16724   ol_cv_c_posix_regex=yes
16725 else
16726   echo "$as_me: program exited with status $ac_status" >&5
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ( exit $ac_status )
16731 ol_cv_c_posix_regex=no
16732 fi
16733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16734 fi
16735 fi
16736 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16737 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16738
16739 if test "$ol_cv_c_posix_regex" = no ; then
16740         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16741 echo "$as_me: error: broken POSIX regex!" >&2;}
16742    { (exit 1); exit 1; }; }
16743 fi
16744
16745
16746 have_uuid=no
16747
16748 for ac_header in sys/uuid.h
16749 do
16750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752   echo "$as_me:$LINENO: checking for $ac_header" >&5
16753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755   echo $ECHO_N "(cached) $ECHO_C" >&6
16756 fi
16757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16759 else
16760   # Is the header compilable?
16761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 $ac_includes_default
16770 #include <$ac_header>
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774   (eval $ac_compile) 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -z "$ac_c_werror_flag"
16782                          || test ! -s conftest.err'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest.$ac_objext'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   ac_header_compiler=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 ac_header_compiler=no
16800 fi
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16803 echo "${ECHO_T}$ac_header_compiler" >&6
16804
16805 # Is the header present?
16806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 #include <$ac_header>
16815 _ACEOF
16816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16818   ac_status=$?
16819   grep -v '^ *+' conftest.er1 >conftest.err
16820   rm -f conftest.er1
16821   cat conftest.err >&5
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } >/dev/null; then
16824   if test -s conftest.err; then
16825     ac_cpp_err=$ac_c_preproc_warn_flag
16826     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16827   else
16828     ac_cpp_err=
16829   fi
16830 else
16831   ac_cpp_err=yes
16832 fi
16833 if test -z "$ac_cpp_err"; then
16834   ac_header_preproc=yes
16835 else
16836   echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839   ac_header_preproc=no
16840 fi
16841 rm -f conftest.err conftest.$ac_ext
16842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16843 echo "${ECHO_T}$ac_header_preproc" >&6
16844
16845 # So?  What about this header?
16846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16847   yes:no: )
16848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16852     ac_header_preproc=yes
16853     ;;
16854   no:yes:* )
16855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16857     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16858 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16861     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16862 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16867     (
16868       cat <<\_ASBOX
16869 ## ------------------------------------------ ##
16870 ## Report this to the AC_PACKAGE_NAME lists.  ##
16871 ## ------------------------------------------ ##
16872 _ASBOX
16873     ) |
16874       sed "s/^/$as_me: WARNING:     /" >&2
16875     ;;
16876 esac
16877 echo "$as_me:$LINENO: checking for $ac_header" >&5
16878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16880   echo $ECHO_N "(cached) $ECHO_C" >&6
16881 else
16882   eval "$as_ac_Header=\$ac_header_preproc"
16883 fi
16884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16886
16887 fi
16888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16889   cat >>confdefs.h <<_ACEOF
16890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16891 _ACEOF
16892
16893 fi
16894
16895 done
16896
16897 if test $ac_cv_header_sys_uuid_h = yes ; then
16898         save_LIBS="$LIBS"
16899         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16900 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16901 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   ac_func_search_save_LIBS=$LIBS
16905 ac_cv_search_uuid_to_str=no
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912
16913 /* Override any gcc2 internal prototype to avoid an error.  */
16914 #ifdef __cplusplus
16915 extern "C"
16916 #endif
16917 /* We use char because int might match the return type of a gcc2
16918    builtin and then its argument prototype would still apply.  */
16919 char uuid_to_str ();
16920 int
16921 main ()
16922 {
16923 uuid_to_str ();
16924   ;
16925   return 0;
16926 }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930   (eval $ac_link) 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_c_werror_flag"
16938                          || test ! -s conftest.err'
16939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940   (eval $ac_try) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); }; } &&
16944          { ac_try='test -s conftest$ac_exeext'
16945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946   (eval $ac_try) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; }; then
16950   ac_cv_search_uuid_to_str="none required"
16951 else
16952   echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 fi
16956 rm -f conftest.err conftest.$ac_objext \
16957       conftest$ac_exeext conftest.$ac_ext
16958 if test "$ac_cv_search_uuid_to_str" = no; then
16959   for ac_lib in uuid; do
16960     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16961     cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967
16968 /* Override any gcc2 internal prototype to avoid an error.  */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 /* We use char because int might match the return type of a gcc2
16973    builtin and then its argument prototype would still apply.  */
16974 char uuid_to_str ();
16975 int
16976 main ()
16977 {
16978 uuid_to_str ();
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext conftest$ac_exeext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16985   (eval $ac_link) 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -z "$ac_c_werror_flag"
16993                          || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest$ac_exeext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_cv_search_uuid_to_str="-l$ac_lib"
17006 break
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 fi
17012 rm -f conftest.err conftest.$ac_objext \
17013       conftest$ac_exeext conftest.$ac_ext
17014   done
17015 fi
17016 LIBS=$ac_func_search_save_LIBS
17017 fi
17018 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17019 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17020 if test "$ac_cv_search_uuid_to_str" != no; then
17021   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17022   have_uuid=yes
17023 else
17024   :
17025 fi
17026
17027         LIBS="$save_LIBS"
17028
17029         if test have_uuid = yes ; then
17030
17031 cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_UUID_TO_STR 1
17033 _ACEOF
17034
17035
17036                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17037                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17038         fi
17039 fi
17040
17041 if test $have_uuid = no ; then
17042         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17043 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17044         save_LIBS="$LIBS"
17045         LIBS="$LIBS -lrpcrt4"
17046         cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053                 int __stdcall UuidCreate(void *);
17054                 int __stdcall UuidToStringA(void *,void **);
17055
17056 int
17057 main ()
17058 {
17059
17060                 UuidCreate(0);
17061                 UuidToStringA(0,0);
17062
17063   ;
17064   return 0;
17065 }
17066 _ACEOF
17067 rm -f conftest.$ac_objext conftest$ac_exeext
17068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17069   (eval $ac_link) 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag"
17077                          || test ! -s conftest.err'
17078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079   (eval $ac_try) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; } &&
17083          { ac_try='test -s conftest$ac_exeext'
17084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085   (eval $ac_try) 2>&5
17086   ac_status=$?
17087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); }; }; then
17089   need_rpcrt=yes
17090 else
17091   echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 need_rpcrt=no
17095 fi
17096 rm -f conftest.err conftest.$ac_objext \
17097       conftest$ac_exeext conftest.$ac_ext
17098         if test $need_rpcrt = yes; then
17099                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17100         fi
17101         LIBS="$save_LIBS"
17102         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17103 echo "${ECHO_T}$need_rpcrt" >&6
17104 fi
17105
17106 ol_cv_lib_resolver=no
17107 if test $ol_cv_lib_resolver = no ; then
17108         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17109 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17110 if test "${ol_cv_resolver_none+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113
17114         ol_RESOLVER_LIB=
17115         ol_LIBS=$LIBS
17116         LIBS="$ol_RESOLVER_LIB $LIBS"
17117
17118         cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124
17125 #ifdef HAVE_SYS_TYPES_H
17126 #       include <sys/types.h>
17127 #endif
17128 #include <netinet/in.h>
17129 #ifdef HAVE_ARPA_NAMESER_H
17130 #       include <arpa/nameser.h>
17131 #endif
17132 #ifdef HAVE_RESOLV_H
17133 #       include <resolv.h>
17134 #endif
17135
17136 int
17137 main ()
17138 {
17139 {
17140         int len, status;
17141         char *request = NULL;
17142         unsigned char reply[64*1024];
17143         unsigned char host[64*1024];
17144         unsigned char *p;
17145
17146 #ifdef NS_HFIXEDSZ
17147         /* Bind 8/9 interface */
17148         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17149 #else
17150         /* Bind 4 interface */
17151 # ifndef T_SRV
17152 #  define T_SRV 33
17153 # endif
17154         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17155 #endif
17156         p = reply;
17157 #ifdef NS_HFIXEDSZ
17158         /* Bind 8/9 interface */
17159         p += NS_HFIXEDSZ;
17160 #elif defined(HFIXEDSZ)
17161         /* Bind 4 interface w/ HFIXEDSZ */
17162         p += HFIXEDSZ;
17163 #else
17164         /* Bind 4 interface w/o HFIXEDSZ */
17165         p += sizeof(HEADER);
17166 #endif
17167         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17168 }
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17175   (eval $ac_link) 2>conftest.er1
17176   ac_status=$?
17177   grep -v '^ *+' conftest.er1 >conftest.err
17178   rm -f conftest.er1
17179   cat conftest.err >&5
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -z "$ac_c_werror_flag"
17183                          || test ! -s conftest.err'
17184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185   (eval $ac_try) 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; } &&
17189          { ac_try='test -s conftest$ac_exeext'
17190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191   (eval $ac_try) 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); }; }; then
17195   ol_cv_resolver_none=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ol_cv_resolver_none=no
17201 fi
17202 rm -f conftest.err conftest.$ac_objext \
17203       conftest$ac_exeext conftest.$ac_ext
17204
17205         LIBS="$ol_LIBS"
17206
17207 fi
17208 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17209 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17210
17211         if test $ol_cv_resolver_none = yes ; then
17212                 ol_cv_lib_resolver=yes
17213         fi
17214 fi
17215
17216 if test $ol_cv_lib_resolver = no ; then
17217         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17218 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17219 if test "${ol_cv_resolver_resolv+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222
17223         ol_RESOLVER_LIB=-lresolv
17224         ol_LIBS=$LIBS
17225         LIBS="$ol_RESOLVER_LIB $LIBS"
17226
17227         cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233
17234 #ifdef HAVE_SYS_TYPES_H
17235 #       include <sys/types.h>
17236 #endif
17237 #include <netinet/in.h>
17238 #ifdef HAVE_ARPA_NAMESER_H
17239 #       include <arpa/nameser.h>
17240 #endif
17241 #ifdef HAVE_RESOLV_H
17242 #       include <resolv.h>
17243 #endif
17244
17245 int
17246 main ()
17247 {
17248 {
17249         int len, status;
17250         char *request = NULL;
17251         unsigned char reply[64*1024];
17252         unsigned char host[64*1024];
17253         unsigned char *p;
17254
17255 #ifdef NS_HFIXEDSZ
17256         /* Bind 8/9 interface */
17257         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17258 #else
17259         /* Bind 4 interface */
17260 # ifndef T_SRV
17261 #  define T_SRV 33
17262 # endif
17263         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17264 #endif
17265         p = reply;
17266 #ifdef NS_HFIXEDSZ
17267         /* Bind 8/9 interface */
17268         p += NS_HFIXEDSZ;
17269 #elif defined(HFIXEDSZ)
17270         /* Bind 4 interface w/ HFIXEDSZ */
17271         p += HFIXEDSZ;
17272 #else
17273         /* Bind 4 interface w/o HFIXEDSZ */
17274         p += sizeof(HEADER);
17275 #endif
17276         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17277 }
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17284   (eval $ac_link) 2>conftest.er1
17285   ac_status=$?
17286   grep -v '^ *+' conftest.er1 >conftest.err
17287   rm -f conftest.er1
17288   cat conftest.err >&5
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); } &&
17291          { ac_try='test -z "$ac_c_werror_flag"
17292                          || test ! -s conftest.err'
17293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294   (eval $ac_try) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; } &&
17298          { ac_try='test -s conftest$ac_exeext'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   ol_cv_resolver_resolv=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 ol_cv_resolver_resolv=no
17310 fi
17311 rm -f conftest.err conftest.$ac_objext \
17312       conftest$ac_exeext conftest.$ac_ext
17313
17314         LIBS="$ol_LIBS"
17315
17316 fi
17317 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17318 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17319
17320         if test $ol_cv_resolver_resolv = yes ; then
17321                 ol_cv_lib_resolver=-lresolv
17322         fi
17323 fi
17324
17325 if test $ol_cv_lib_resolver = no ; then
17326         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17327 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17328 if test "${ol_cv_resolver_bind+set}" = set; then
17329   echo $ECHO_N "(cached) $ECHO_C" >&6
17330 else
17331
17332         ol_RESOLVER_LIB=-lbind
17333         ol_LIBS=$LIBS
17334         LIBS="$ol_RESOLVER_LIB $LIBS"
17335
17336         cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342
17343 #ifdef HAVE_SYS_TYPES_H
17344 #       include <sys/types.h>
17345 #endif
17346 #include <netinet/in.h>
17347 #ifdef HAVE_ARPA_NAMESER_H
17348 #       include <arpa/nameser.h>
17349 #endif
17350 #ifdef HAVE_RESOLV_H
17351 #       include <resolv.h>
17352 #endif
17353
17354 int
17355 main ()
17356 {
17357 {
17358         int len, status;
17359         char *request = NULL;
17360         unsigned char reply[64*1024];
17361         unsigned char host[64*1024];
17362         unsigned char *p;
17363
17364 #ifdef NS_HFIXEDSZ
17365         /* Bind 8/9 interface */
17366         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17367 #else
17368         /* Bind 4 interface */
17369 # ifndef T_SRV
17370 #  define T_SRV 33
17371 # endif
17372         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17373 #endif
17374         p = reply;
17375 #ifdef NS_HFIXEDSZ
17376         /* Bind 8/9 interface */
17377         p += NS_HFIXEDSZ;
17378 #elif defined(HFIXEDSZ)
17379         /* Bind 4 interface w/ HFIXEDSZ */
17380         p += HFIXEDSZ;
17381 #else
17382         /* Bind 4 interface w/o HFIXEDSZ */
17383         p += sizeof(HEADER);
17384 #endif
17385         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17386 }
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17393   (eval $ac_link) 2>conftest.er1
17394   ac_status=$?
17395   grep -v '^ *+' conftest.er1 >conftest.err
17396   rm -f conftest.er1
17397   cat conftest.err >&5
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } &&
17400          { ac_try='test -z "$ac_c_werror_flag"
17401                          || test ! -s conftest.err'
17402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403   (eval $ac_try) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   ol_cv_resolver_bind=yes
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 ol_cv_resolver_bind=no
17419 fi
17420 rm -f conftest.err conftest.$ac_objext \
17421       conftest$ac_exeext conftest.$ac_ext
17422
17423         LIBS="$ol_LIBS"
17424
17425 fi
17426 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17427 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17428
17429         if test $ol_cv_resolver_bind = yes ; then
17430                 ol_cv_lib_resolver=-lbind
17431         fi
17432 fi
17433
17434
17435
17436 ol_link_dnssrv=no
17437 if test "$ol_cv_lib_resolver" != no ; then
17438
17439 cat >>confdefs.h <<\_ACEOF
17440 #define HAVE_RES_QUERY 1
17441 _ACEOF
17442
17443
17444         if test "$ol_enable_dnssrv" != no ; then
17445                 ol_link_dnssrv=yes
17446         fi
17447
17448         if test "$ol_cv_lib_resolver" != yes ; then
17449                 LIBS="$ol_cv_lib_resolver $LIBS"
17450         fi
17451 fi
17452
17453 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17454         if test "$ol_link_dnssrv" = no ; then
17455                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17456 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17457    { (exit 1); exit 1; }; }
17458         fi
17459 else
17460         ol_enable_dnssrv=no
17461 fi
17462
17463
17464 for ac_func in hstrerror
17465 do
17466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17467 echo "$as_me:$LINENO: checking for $ac_func" >&5
17468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17469 if eval "test \"\${$as_ac_var+set}\" = set"; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17480 #define $ac_func innocuous_$ac_func
17481
17482 /* System header to define __stub macros and hopefully few prototypes,
17483     which can conflict with char $ac_func (); below.
17484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485     <limits.h> exists even on freestanding compilers.  */
17486
17487 #ifdef __STDC__
17488 # include <limits.h>
17489 #else
17490 # include <assert.h>
17491 #endif
17492
17493 #undef $ac_func
17494
17495 /* Override any gcc2 internal prototype to avoid an error.  */
17496 #ifdef __cplusplus
17497 extern "C"
17498 {
17499 #endif
17500 /* We use char because int might match the return type of a gcc2
17501    builtin and then its argument prototype would still apply.  */
17502 char $ac_func ();
17503 /* The GNU C library defines this for functions which it implements
17504     to always fail with ENOSYS.  Some functions are actually named
17505     something starting with __ and the normal name is an alias.  */
17506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17507 choke me
17508 #else
17509 char (*f) () = $ac_func;
17510 #endif
17511 #ifdef __cplusplus
17512 }
17513 #endif
17514
17515 int
17516 main ()
17517 {
17518 return f != $ac_func;
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525   (eval $ac_link) 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_c_werror_flag"
17533                          || test ! -s conftest.err'
17534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535   (eval $ac_try) 2>&5
17536   ac_status=$?
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); }; } &&
17539          { ac_try='test -s conftest$ac_exeext'
17540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541   (eval $ac_try) 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; }; then
17545   eval "$as_ac_var=yes"
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550 eval "$as_ac_var=no"
17551 fi
17552 rm -f conftest.err conftest.$ac_objext \
17553       conftest$ac_exeext conftest.$ac_ext
17554 fi
17555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17557 if test `eval echo '${'$as_ac_var'}'` = yes; then
17558   cat >>confdefs.h <<_ACEOF
17559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17560 _ACEOF
17561
17562 fi
17563 done
17564
17565
17566
17567
17568
17569
17570 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17571 do
17572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17573 echo "$as_me:$LINENO: checking for $ac_func" >&5
17574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17575 if eval "test \"\${$as_ac_var+set}\" = set"; then
17576   echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578   cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17586 #define $ac_func innocuous_$ac_func
17587
17588 /* System header to define __stub macros and hopefully few prototypes,
17589     which can conflict with char $ac_func (); below.
17590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17591     <limits.h> exists even on freestanding compilers.  */
17592
17593 #ifdef __STDC__
17594 # include <limits.h>
17595 #else
17596 # include <assert.h>
17597 #endif
17598
17599 #undef $ac_func
17600
17601 /* Override any gcc2 internal prototype to avoid an error.  */
17602 #ifdef __cplusplus
17603 extern "C"
17604 {
17605 #endif
17606 /* We use char because int might match the return type of a gcc2
17607    builtin and then its argument prototype would still apply.  */
17608 char $ac_func ();
17609 /* The GNU C library defines this for functions which it implements
17610     to always fail with ENOSYS.  Some functions are actually named
17611     something starting with __ and the normal name is an alias.  */
17612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17613 choke me
17614 #else
17615 char (*f) () = $ac_func;
17616 #endif
17617 #ifdef __cplusplus
17618 }
17619 #endif
17620
17621 int
17622 main ()
17623 {
17624 return f != $ac_func;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17631   (eval $ac_link) 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } &&
17638          { ac_try='test -z "$ac_c_werror_flag"
17639                          || test ! -s conftest.err'
17640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641   (eval $ac_try) 2>&5
17642   ac_status=$?
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); }; } &&
17645          { ac_try='test -s conftest$ac_exeext'
17646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647   (eval $ac_try) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; }; then
17651   eval "$as_ac_var=yes"
17652 else
17653   echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 eval "$as_ac_var=no"
17657 fi
17658 rm -f conftest.err conftest.$ac_objext \
17659       conftest$ac_exeext conftest.$ac_ext
17660 fi
17661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17663 if test `eval echo '${'$as_ac_var'}'` = yes; then
17664   cat >>confdefs.h <<_ACEOF
17665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17666 _ACEOF
17667
17668 fi
17669 done
17670
17671
17672 ol_link_ipv6=no
17673 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17674         if test $ol_enable_ipv6 = yes ; then
17675                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17676 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17677    { (exit 1); exit 1; }; }
17678         fi
17679 elif test $ol_enable_ipv6 != no ; then
17680         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17681 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17682 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685
17686                 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692
17693 #                       include <netinet/in.h>
17694 #                       ifdef INET6_ADDRSTRLEN
17695                                 __has_inet6_addrstrlen__;
17696 #                       endif
17697
17698 _ACEOF
17699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17700   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17701   ol_cv_inet6_addrstrlen=yes
17702 else
17703   ol_cv_inet6_addrstrlen=no
17704 fi
17705 rm -f conftest*
17706
17707 fi
17708 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17709 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17710
17711
17712         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17713 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17714 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17715   echo $ECHO_N "(cached) $ECHO_C" >&6
17716 else
17717
17718                 cat >conftest.$ac_ext <<_ACEOF
17719 /* confdefs.h.  */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h.  */
17724
17725 #include <sys/types.h>
17726 #include <sys/socket.h>
17727
17728 int
17729 main ()
17730 {
17731
17732                         struct sockaddr_storage ss;
17733
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740   (eval $ac_compile) 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -z "$ac_c_werror_flag"
17748                          || test ! -s conftest.err'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; } &&
17754          { ac_try='test -s conftest.$ac_objext'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; }; then
17760   ol_cv_struct_sockaddr_storage=yes
17761 else
17762   echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17764
17765 ol_cv_struct_sockaddr_storage=no
17766 fi
17767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17768 fi
17769 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17770 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17771
17772         if test $ol_cv_inet6_addrstrlen = yes &&
17773            test $ol_cv_struct_sockaddr_storage = yes ; then
17774                 ol_link_ipv6=yes
17775         elif test $ol_enable_ipv6 = yes &&
17776              test $ol_cv_inet6_addrstrlen = no ; then
17777                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17778 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17779    { (exit 1); exit 1; }; }
17780         elif test $ol_enable_ipv6 = yes &&
17781              test $ol_cv_struct_sockaddr_storage = no ; then
17782                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17783 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17784    { (exit 1); exit 1; }; }
17785         fi
17786 fi
17787
17788 if test $ol_enable_local != no ; then
17789
17790 for ac_header in sys/un.h
17791 do
17792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17794   echo "$as_me:$LINENO: checking for $ac_header" >&5
17795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 fi
17799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17801 else
17802   # Is the header compilable?
17803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17805 cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811 $ac_includes_default
17812 #include <$ac_header>
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816   (eval $ac_compile) 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag"
17824                          || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest.$ac_objext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_header_compiler=yes
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 ac_header_compiler=no
17842 fi
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6
17846
17847 # Is the header present?
17848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 #include <$ac_header>
17857 _ACEOF
17858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17860   ac_status=$?
17861   grep -v '^ *+' conftest.er1 >conftest.err
17862   rm -f conftest.er1
17863   cat conftest.err >&5
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); } >/dev/null; then
17866   if test -s conftest.err; then
17867     ac_cpp_err=$ac_c_preproc_warn_flag
17868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17869   else
17870     ac_cpp_err=
17871   fi
17872 else
17873   ac_cpp_err=yes
17874 fi
17875 if test -z "$ac_cpp_err"; then
17876   ac_header_preproc=yes
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881   ac_header_preproc=no
17882 fi
17883 rm -f conftest.err conftest.$ac_ext
17884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17885 echo "${ECHO_T}$ac_header_preproc" >&6
17886
17887 # So?  What about this header?
17888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17889   yes:no: )
17890     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17892     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17894     ac_header_preproc=yes
17895     ;;
17896   no:yes:* )
17897     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17899     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17900 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17901     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17903     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17904 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17905     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17907     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17909     (
17910       cat <<\_ASBOX
17911 ## ------------------------------------------ ##
17912 ## Report this to the AC_PACKAGE_NAME lists.  ##
17913 ## ------------------------------------------ ##
17914 _ASBOX
17915     ) |
17916       sed "s/^/$as_me: WARNING:     /" >&2
17917     ;;
17918 esac
17919 echo "$as_me:$LINENO: checking for $ac_header" >&5
17920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17922   echo $ECHO_N "(cached) $ECHO_C" >&6
17923 else
17924   eval "$as_ac_Header=\$ac_header_preproc"
17925 fi
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17928
17929 fi
17930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17931   cat >>confdefs.h <<_ACEOF
17932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17933 _ACEOF
17934
17935 fi
17936
17937 done
17938
17939
17940         if test $ol_enable_local = auto ; then
17941                 ol_enable_local=$ac_cv_header_sys_un_h
17942         elif test $ac_cv_header_sys_un_h = no ; then
17943                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17944 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17945    { (exit 1); exit 1; }; }
17946         fi
17947 fi
17948
17949 ol_link_kbind=no
17950 ol_link_krb5=no
17951 ol_link_krb4=no
17952
17953 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17954
17955
17956 for ac_header in krb5.h
17957 do
17958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17960   echo "$as_me:$LINENO: checking for $ac_header" >&5
17961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 fi
17965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17967 else
17968   # Is the header compilable?
17969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977 $ac_includes_default
17978 #include <$ac_header>
17979 _ACEOF
17980 rm -f conftest.$ac_objext
17981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17982   (eval $ac_compile) 2>conftest.er1
17983   ac_status=$?
17984   grep -v '^ *+' conftest.er1 >conftest.err
17985   rm -f conftest.er1
17986   cat conftest.err >&5
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); } &&
17989          { ac_try='test -z "$ac_c_werror_flag"
17990                          || test ! -s conftest.err'
17991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992   (eval $ac_try) 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; } &&
17996          { ac_try='test -s conftest.$ac_objext'
17997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998   (eval $ac_try) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); }; }; then
18002   ac_header_compiler=yes
18003 else
18004   echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 ac_header_compiler=no
18008 fi
18009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18011 echo "${ECHO_T}$ac_header_compiler" >&6
18012
18013 # Is the header present?
18014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18016 cat >conftest.$ac_ext <<_ACEOF
18017 /* confdefs.h.  */
18018 _ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h.  */
18022 #include <$ac_header>
18023 _ACEOF
18024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18026   ac_status=$?
18027   grep -v '^ *+' conftest.er1 >conftest.err
18028   rm -f conftest.er1
18029   cat conftest.err >&5
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); } >/dev/null; then
18032   if test -s conftest.err; then
18033     ac_cpp_err=$ac_c_preproc_warn_flag
18034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18035   else
18036     ac_cpp_err=
18037   fi
18038 else
18039   ac_cpp_err=yes
18040 fi
18041 if test -z "$ac_cpp_err"; then
18042   ac_header_preproc=yes
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047   ac_header_preproc=no
18048 fi
18049 rm -f conftest.err conftest.$ac_ext
18050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18051 echo "${ECHO_T}$ac_header_preproc" >&6
18052
18053 # So?  What about this header?
18054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18055   yes:no: )
18056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18060     ac_header_preproc=yes
18061     ;;
18062   no:yes:* )
18063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18075     (
18076       cat <<\_ASBOX
18077 ## ------------------------------------------ ##
18078 ## Report this to the AC_PACKAGE_NAME lists.  ##
18079 ## ------------------------------------------ ##
18080 _ASBOX
18081     ) |
18082       sed "s/^/$as_me: WARNING:     /" >&2
18083     ;;
18084 esac
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 else
18090   eval "$as_ac_Header=\$ac_header_preproc"
18091 fi
18092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18094
18095 fi
18096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18097   cat >>confdefs.h <<_ACEOF
18098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18099 _ACEOF
18100
18101 fi
18102
18103 done
18104
18105
18106         if test $ac_cv_header_krb5_h = yes ; then
18107
18108 for ac_header in heim_err.h
18109 do
18110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18112   echo "$as_me:$LINENO: checking for $ac_header" >&5
18113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18115   echo $ECHO_N "(cached) $ECHO_C" >&6
18116 fi
18117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18119 else
18120   # Is the header compilable?
18121 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129 $ac_includes_default
18130 #include <$ac_header>
18131 _ACEOF
18132 rm -f conftest.$ac_objext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18134   (eval $ac_compile) 2>conftest.er1
18135   ac_status=$?
18136   grep -v '^ *+' conftest.er1 >conftest.err
18137   rm -f conftest.er1
18138   cat conftest.err >&5
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); } &&
18141          { ac_try='test -z "$ac_c_werror_flag"
18142                          || test ! -s conftest.err'
18143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144   (eval $ac_try) 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; } &&
18148          { ac_try='test -s conftest.$ac_objext'
18149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150   (eval $ac_try) 2>&5
18151   ac_status=$?
18152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153   (exit $ac_status); }; }; then
18154   ac_header_compiler=yes
18155 else
18156   echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 ac_header_compiler=no
18160 fi
18161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18163 echo "${ECHO_T}$ac_header_compiler" >&6
18164
18165 # Is the header present?
18166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 #include <$ac_header>
18175 _ACEOF
18176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } >/dev/null; then
18184   if test -s conftest.err; then
18185     ac_cpp_err=$ac_c_preproc_warn_flag
18186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18187   else
18188     ac_cpp_err=
18189   fi
18190 else
18191   ac_cpp_err=yes
18192 fi
18193 if test -z "$ac_cpp_err"; then
18194   ac_header_preproc=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199   ac_header_preproc=no
18200 fi
18201 rm -f conftest.err conftest.$ac_ext
18202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18203 echo "${ECHO_T}$ac_header_preproc" >&6
18204
18205 # So?  What about this header?
18206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18207   yes:no: )
18208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18212     ac_header_preproc=yes
18213     ;;
18214   no:yes:* )
18215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18227     (
18228       cat <<\_ASBOX
18229 ## ------------------------------------------ ##
18230 ## Report this to the AC_PACKAGE_NAME lists.  ##
18231 ## ------------------------------------------ ##
18232 _ASBOX
18233     ) |
18234       sed "s/^/$as_me: WARNING:     /" >&2
18235     ;;
18236 esac
18237 echo "$as_me:$LINENO: checking for $ac_header" >&5
18238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   eval "$as_ac_Header=\$ac_header_preproc"
18243 fi
18244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18246
18247 fi
18248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18249   cat >>confdefs.h <<_ACEOF
18250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18251 _ACEOF
18252
18253 fi
18254
18255 done
18256
18257                 if test $ac_cv_header_heim_err_h = yes ; then
18258                         krb5_impl=heimdal
18259                 else
18260                         krb5_impl=mit
18261                 fi
18262
18263                 if test $krb5_impl = mit; then
18264                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18265 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18266 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   ac_check_lib_save_LIBS=$LIBS
18270 LIBS="-lk5crypto  $LIBS"
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h.  */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h.  */
18277
18278
18279 int
18280 main ()
18281 {
18282 main ();
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18289   (eval $ac_link) 2>conftest.er1
18290   ac_status=$?
18291   grep -v '^ *+' conftest.er1 >conftest.err
18292   rm -f conftest.er1
18293   cat conftest.err >&5
18294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295   (exit $ac_status); } &&
18296          { ac_try='test -z "$ac_c_werror_flag"
18297                          || test ! -s conftest.err'
18298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299   (eval $ac_try) 2>&5
18300   ac_status=$?
18301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302   (exit $ac_status); }; } &&
18303          { ac_try='test -s conftest$ac_exeext'
18304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; }; then
18309   ac_cv_lib_k5crypto_main=yes
18310 else
18311   echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314 ac_cv_lib_k5crypto_main=no
18315 fi
18316 rm -f conftest.err conftest.$ac_objext \
18317       conftest$ac_exeext conftest.$ac_ext
18318 LIBS=$ac_check_lib_save_LIBS
18319 fi
18320 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18321 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18322 if test $ac_cv_lib_k5crypto_main = yes; then
18323   krb5crypto=k5crypto
18324 else
18325   krb5crypto=crypto
18326 fi
18327
18328
18329                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18330 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18331 if test "${ac_cv_lib_krb5_main+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h.  */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h.  */
18342
18343
18344 int
18345 main ()
18346 {
18347 main ();
18348   ;
18349   return 0;
18350 }
18351 _ACEOF
18352 rm -f conftest.$ac_objext conftest$ac_exeext
18353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18354   (eval $ac_link) 2>conftest.er1
18355   ac_status=$?
18356   grep -v '^ *+' conftest.er1 >conftest.err
18357   rm -f conftest.er1
18358   cat conftest.err >&5
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } &&
18361          { ac_try='test -z "$ac_c_werror_flag"
18362                          || test ! -s conftest.err'
18363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18364   (eval $ac_try) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); }; } &&
18368          { ac_try='test -s conftest$ac_exeext'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; }; then
18374   ac_cv_lib_krb5_main=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 ac_cv_lib_krb5_main=no
18380 fi
18381 rm -f conftest.err conftest.$ac_objext \
18382       conftest$ac_exeext conftest.$ac_ext
18383 LIBS=$ac_check_lib_save_LIBS
18384 fi
18385 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18386 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18387 if test $ac_cv_lib_krb5_main = yes; then
18388   have_krb5=yes
18389                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18390 else
18391   have_krb5=no
18392 fi
18393
18394
18395                 elif test $krb5_impl = heimdal; then
18396                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18397 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18398 if test "${ac_cv_lib_des_main+set}" = set; then
18399   echo $ECHO_N "(cached) $ECHO_C" >&6
18400 else
18401   ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-ldes  $LIBS"
18403 cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409
18410
18411 int
18412 main ()
18413 {
18414 main ();
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421   (eval $ac_link) 2>conftest.er1
18422   ac_status=$?
18423   grep -v '^ *+' conftest.er1 >conftest.err
18424   rm -f conftest.er1
18425   cat conftest.err >&5
18426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427   (exit $ac_status); } &&
18428          { ac_try='test -z "$ac_c_werror_flag"
18429                          || test ! -s conftest.err'
18430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431   (eval $ac_try) 2>&5
18432   ac_status=$?
18433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434   (exit $ac_status); }; } &&
18435          { ac_try='test -s conftest$ac_exeext'
18436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437   (eval $ac_try) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); }; }; then
18441   ac_cv_lib_des_main=yes
18442 else
18443   echo "$as_me: failed program was:" >&5
18444 sed 's/^/| /' conftest.$ac_ext >&5
18445
18446 ac_cv_lib_des_main=no
18447 fi
18448 rm -f conftest.err conftest.$ac_objext \
18449       conftest$ac_exeext conftest.$ac_ext
18450 LIBS=$ac_check_lib_save_LIBS
18451 fi
18452 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18453 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18454 if test $ac_cv_lib_des_main = yes; then
18455   krb5crypto=des
18456 else
18457   krb5crypto=crypto
18458 fi
18459
18460
18461                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18462 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18463 if test "${ac_cv_lib_krb5_main+set}" = set; then
18464   echo $ECHO_N "(cached) $ECHO_C" >&6
18465 else
18466   ac_check_lib_save_LIBS=$LIBS
18467 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18468 cat >conftest.$ac_ext <<_ACEOF
18469 /* confdefs.h.  */
18470 _ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h.  */
18474
18475
18476 int
18477 main ()
18478 {
18479 main ();
18480   ;
18481   return 0;
18482 }
18483 _ACEOF
18484 rm -f conftest.$ac_objext conftest$ac_exeext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18486   (eval $ac_link) 2>conftest.er1
18487   ac_status=$?
18488   grep -v '^ *+' conftest.er1 >conftest.err
18489   rm -f conftest.er1
18490   cat conftest.err >&5
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); } &&
18493          { ac_try='test -z "$ac_c_werror_flag"
18494                          || test ! -s conftest.err'
18495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496   (eval $ac_try) 2>&5
18497   ac_status=$?
18498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499   (exit $ac_status); }; } &&
18500          { ac_try='test -s conftest$ac_exeext'
18501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502   (eval $ac_try) 2>&5
18503   ac_status=$?
18504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); }; }; then
18506   ac_cv_lib_krb5_main=yes
18507 else
18508   echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 ac_cv_lib_krb5_main=no
18512 fi
18513 rm -f conftest.err conftest.$ac_objext \
18514       conftest$ac_exeext conftest.$ac_ext
18515 LIBS=$ac_check_lib_save_LIBS
18516 fi
18517 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18518 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18519 if test $ac_cv_lib_krb5_main = yes; then
18520   have_krb5=yes
18521                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18522 else
18523   have_krb5=no
18524 fi
18525
18526
18527
18528 cat >>confdefs.h <<\_ACEOF
18529 #define HAVE_HEIMDAL_KERBEROS 1
18530 _ACEOF
18531
18532
18533                 else
18534                         have_krb5=no
18535                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18536 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18537                 fi
18538
18539                 if test $have_krb5 = yes ; then
18540                         ol_link_krb5=yes
18541
18542
18543 cat >>confdefs.h <<\_ACEOF
18544 #define HAVE_KRB5 1
18545 _ACEOF
18546
18547
18548                         if test $ol_with_kerberos = k5only ; then
18549                                 ol_with_kerberos=found
18550                         fi
18551
18552                 elif test $ol_with_kerberos != auto ; then
18553                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18554 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18555    { (exit 1); exit 1; }; }
18556                 fi
18557
18558         fi
18559         ;;
18560 esac
18561
18562 if test $ol_link_krb5 = yes &&
18563    { test $ol_with_kerberos = yes ||
18564      test $ol_with_kerberos = auto ||
18565      test $ol_with_kerberos = k425; }; then
18566
18567
18568
18569 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18570 do
18571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18573   echo "$as_me:$LINENO: checking for $ac_header" >&5
18574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18576   echo $ECHO_N "(cached) $ECHO_C" >&6
18577 fi
18578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18580 else
18581   # Is the header compilable?
18582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590 $ac_includes_default
18591 #include <$ac_header>
18592 _ACEOF
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595   (eval $ac_compile) 2>conftest.er1
18596   ac_status=$?
18597   grep -v '^ *+' conftest.er1 >conftest.err
18598   rm -f conftest.er1
18599   cat conftest.err >&5
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); } &&
18602          { ac_try='test -z "$ac_c_werror_flag"
18603                          || test ! -s conftest.err'
18604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605   (eval $ac_try) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); }; } &&
18609          { ac_try='test -s conftest.$ac_objext'
18610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18611   (eval $ac_try) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); }; }; then
18615   ac_header_compiler=yes
18616 else
18617   echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620 ac_header_compiler=no
18621 fi
18622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18624 echo "${ECHO_T}$ac_header_compiler" >&6
18625
18626 # Is the header present?
18627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635 #include <$ac_header>
18636 _ACEOF
18637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18639   ac_status=$?
18640   grep -v '^ *+' conftest.er1 >conftest.err
18641   rm -f conftest.er1
18642   cat conftest.err >&5
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); } >/dev/null; then
18645   if test -s conftest.err; then
18646     ac_cpp_err=$ac_c_preproc_warn_flag
18647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18648   else
18649     ac_cpp_err=
18650   fi
18651 else
18652   ac_cpp_err=yes
18653 fi
18654 if test -z "$ac_cpp_err"; then
18655   ac_header_preproc=yes
18656 else
18657   echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660   ac_header_preproc=no
18661 fi
18662 rm -f conftest.err conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 echo "${ECHO_T}$ac_header_preproc" >&6
18665
18666 # So?  What about this header?
18667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18668   yes:no: )
18669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18673     ac_header_preproc=yes
18674     ;;
18675   no:yes:* )
18676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18688     (
18689       cat <<\_ASBOX
18690 ## ------------------------------------------ ##
18691 ## Report this to the AC_PACKAGE_NAME lists.  ##
18692 ## ------------------------------------------ ##
18693 _ASBOX
18694     ) |
18695       sed "s/^/$as_me: WARNING:     /" >&2
18696     ;;
18697 esac
18698 echo "$as_me:$LINENO: checking for $ac_header" >&5
18699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   eval "$as_ac_Header=\$ac_header_preproc"
18704 fi
18705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18707
18708 fi
18709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18710   cat >>confdefs.h <<_ACEOF
18711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18712 _ACEOF
18713
18714 fi
18715
18716 done
18717
18718
18719         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18720                 if test $krb5_impl = mit; then
18721                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18722 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18723 if test "${ac_cv_lib_krb4_main+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   ac_check_lib_save_LIBS=$LIBS
18727 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h.  */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h.  */
18734
18735
18736 int
18737 main ()
18738 {
18739 main ();
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 rm -f conftest.$ac_objext conftest$ac_exeext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18746   (eval $ac_link) 2>conftest.er1
18747   ac_status=$?
18748   grep -v '^ *+' conftest.er1 >conftest.err
18749   rm -f conftest.er1
18750   cat conftest.err >&5
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); } &&
18753          { ac_try='test -z "$ac_c_werror_flag"
18754                          || test ! -s conftest.err'
18755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756   (eval $ac_try) 2>&5
18757   ac_status=$?
18758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759   (exit $ac_status); }; } &&
18760          { ac_try='test -s conftest$ac_exeext'
18761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762   (eval $ac_try) 2>&5
18763   ac_status=$?
18764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765   (exit $ac_status); }; }; then
18766   ac_cv_lib_krb4_main=yes
18767 else
18768   echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_krb4_main=no
18772 fi
18773 rm -f conftest.err conftest.$ac_objext \
18774       conftest$ac_exeext conftest.$ac_ext
18775 LIBS=$ac_check_lib_save_LIBS
18776 fi
18777 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18778 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18779 if test $ac_cv_lib_krb4_main = yes; then
18780   have_k425=yes
18781                                 KRB4_LIBS="-lkrb4 -ldes425"
18782 else
18783   have_k425=no
18784 fi
18785
18786
18787                 elif test $krb5_impl = heimdal; then
18788                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18789 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18790 if test "${ac_cv_lib_krb4_main+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   ac_check_lib_save_LIBS=$LIBS
18794 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801
18802
18803 int
18804 main ()
18805 {
18806 main ();
18807   ;
18808   return 0;
18809 }
18810 _ACEOF
18811 rm -f conftest.$ac_objext conftest$ac_exeext
18812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18813   (eval $ac_link) 2>conftest.er1
18814   ac_status=$?
18815   grep -v '^ *+' conftest.er1 >conftest.err
18816   rm -f conftest.er1
18817   cat conftest.err >&5
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); } &&
18820          { ac_try='test -z "$ac_c_werror_flag"
18821                          || test ! -s conftest.err'
18822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823   (eval $ac_try) 2>&5
18824   ac_status=$?
18825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826   (exit $ac_status); }; } &&
18827          { ac_try='test -s conftest$ac_exeext'
18828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829   (eval $ac_try) 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; }; then
18833   ac_cv_lib_krb4_main=yes
18834 else
18835   echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18837
18838 ac_cv_lib_krb4_main=no
18839 fi
18840 rm -f conftest.err conftest.$ac_objext \
18841       conftest$ac_exeext conftest.$ac_ext
18842 LIBS=$ac_check_lib_save_LIBS
18843 fi
18844 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18845 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18846 if test $ac_cv_lib_krb4_main = yes; then
18847   have_k425=yes
18848                                 KRB4_LIBS="-lkrb4"
18849 else
18850   have_k425=no
18851 fi
18852
18853
18854                 else
18855                         have_425=no
18856                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18857 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18858                 fi
18859
18860                 if test $have_k425 = yes ; then
18861                         ol_with_kerberos=found
18862                         ol_link_krb4=yes
18863
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE_KRB425 1
18867 _ACEOF
18868
18869
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_KRB4 1
18872 _ACEOF
18873
18874
18875                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18876 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18877 if test "${ol_cv_var_des_debug+set}" = set; then
18878   echo $ECHO_N "(cached) $ECHO_C" >&6
18879 else
18880
18881                                                                 save_LIBS="$LIBS"
18882                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18883                                 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889
18890 #include <kerberosIV/krb.h>
18891 #include <kerberosIV/des.h>
18892 extern int des_debug;
18893
18894 int
18895 main ()
18896 {
18897
18898 des_debug = 1;
18899
18900   ;
18901   return 0;
18902 }
18903 _ACEOF
18904 rm -f conftest.$ac_objext conftest$ac_exeext
18905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18906   (eval $ac_link) 2>conftest.er1
18907   ac_status=$?
18908   grep -v '^ *+' conftest.er1 >conftest.err
18909   rm -f conftest.er1
18910   cat conftest.err >&5
18911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912   (exit $ac_status); } &&
18913          { ac_try='test -z "$ac_c_werror_flag"
18914                          || test ! -s conftest.err'
18915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916   (eval $ac_try) 2>&5
18917   ac_status=$?
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); }; } &&
18920          { ac_try='test -s conftest$ac_exeext'
18921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922   (eval $ac_try) 2>&5
18923   ac_status=$?
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); }; }; then
18926   ol_cv_var_des_debug=yes
18927 else
18928   echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 ol_cv_var_des_debug=no
18932 fi
18933 rm -f conftest.err conftest.$ac_objext \
18934       conftest$ac_exeext conftest.$ac_ext
18935                                                                 LIBS="$save_LIBS"
18936
18937 fi
18938 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18939 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18940
18941                         if test $ol_cv_var_des_debug = yes ; then
18942
18943 cat >>confdefs.h <<\_ACEOF
18944 #define HAVE_DES_DEBUG 1
18945 _ACEOF
18946
18947                         fi
18948
18949                         LIBS="$save_LIBS"
18950                 fi
18951         fi
18952 fi
18953
18954 if test $ol_link_krb5 = yes ; then
18955         ol_with_kerberos=found
18956 fi
18957
18958 case $ol_with_kerberos in yes | auto | k4 | kth)
18959
18960
18961
18962
18963 for ac_header in krb.h des.h krb-archaeology.h
18964 do
18965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18967   echo "$as_me:$LINENO: checking for $ac_header" >&5
18968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 fi
18972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18974 else
18975   # Is the header compilable?
18976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 $ac_includes_default
18985 #include <$ac_header>
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989   (eval $ac_compile) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_c_werror_flag"
18997                          || test ! -s conftest.err'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest.$ac_objext'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; }; then
19009   ac_header_compiler=yes
19010 else
19011   echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014 ac_header_compiler=no
19015 fi
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19018 echo "${ECHO_T}$ac_header_compiler" >&6
19019
19020 # Is the header present?
19021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 #include <$ac_header>
19030 _ACEOF
19031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19033   ac_status=$?
19034   grep -v '^ *+' conftest.er1 >conftest.err
19035   rm -f conftest.er1
19036   cat conftest.err >&5
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); } >/dev/null; then
19039   if test -s conftest.err; then
19040     ac_cpp_err=$ac_c_preproc_warn_flag
19041     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19042   else
19043     ac_cpp_err=
19044   fi
19045 else
19046   ac_cpp_err=yes
19047 fi
19048 if test -z "$ac_cpp_err"; then
19049   ac_header_preproc=yes
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054   ac_header_preproc=no
19055 fi
19056 rm -f conftest.err conftest.$ac_ext
19057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19058 echo "${ECHO_T}$ac_header_preproc" >&6
19059
19060 # So?  What about this header?
19061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19062   yes:no: )
19063     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19067     ac_header_preproc=yes
19068     ;;
19069   no:yes:* )
19070     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19072     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19073 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19074     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19076     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19077 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19080     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19082     (
19083       cat <<\_ASBOX
19084 ## ------------------------------------------ ##
19085 ## Report this to the AC_PACKAGE_NAME lists.  ##
19086 ## ------------------------------------------ ##
19087 _ASBOX
19088     ) |
19089       sed "s/^/$as_me: WARNING:     /" >&2
19090     ;;
19091 esac
19092 echo "$as_me:$LINENO: checking for $ac_header" >&5
19093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19095   echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097   eval "$as_ac_Header=\$ac_header_preproc"
19098 fi
19099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19101
19102 fi
19103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19104   cat >>confdefs.h <<_ACEOF
19105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19106 _ACEOF
19107
19108 fi
19109
19110 done
19111
19112
19113         if test $ac_cv_header_krb_h = yes ; then
19114                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19115 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19116 if test "${ac_cv_lib_krb_main+set}" = set; then
19117   echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119   ac_check_lib_save_LIBS=$LIBS
19120 LIBS="-lkrb -ldes $LIBS"
19121 cat >conftest.$ac_ext <<_ACEOF
19122 /* confdefs.h.  */
19123 _ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h.  */
19127
19128
19129 int
19130 main ()
19131 {
19132 main ();
19133   ;
19134   return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139   (eval $ac_link) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } &&
19146          { ac_try='test -z "$ac_c_werror_flag"
19147                          || test ! -s conftest.err'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; } &&
19153          { ac_try='test -s conftest$ac_exeext'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; }; then
19159   ac_cv_lib_krb_main=yes
19160 else
19161   echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 ac_cv_lib_krb_main=no
19165 fi
19166 rm -f conftest.err conftest.$ac_objext \
19167       conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19169 fi
19170 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19171 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19172 if test $ac_cv_lib_krb_main = yes; then
19173   have_k4=yes
19174 else
19175   have_k4=no
19176 fi
19177
19178
19179                 if test $have_k4 = yes ; then
19180                         ol_with_kerberos=found
19181                         ol_link_krb4=yes
19182
19183
19184 cat >>confdefs.h <<\_ACEOF
19185 #define HAVE_KRB4 1
19186 _ACEOF
19187
19188
19189                         KRB4_LIBS="-lkrb -ldes"
19190
19191                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_KTH_KERBEROS 1
19195 _ACEOF
19196
19197                         fi
19198                 fi
19199         fi
19200         ;;
19201 esac
19202
19203 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19204         ol_link_kbind=yes
19205
19206 elif test $ol_enable_kbind = yes ; then
19207         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19208 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19209    { (exit 1); exit 1; }; }
19210 fi
19211
19212 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19213
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_KERBEROS 1
19216 _ACEOF
19217
19218
19219 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19220         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19221 echo "$as_me: error: Kerberos detection failed" >&2;}
19222    { (exit 1); exit 1; }; }
19223 fi
19224
19225
19226 ol_link_tls=no
19227 if test $ol_with_tls != no ; then
19228
19229 for ac_header in openssl/ssl.h
19230 do
19231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19233   echo "$as_me:$LINENO: checking for $ac_header" >&5
19234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19236   echo $ECHO_N "(cached) $ECHO_C" >&6
19237 fi
19238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19240 else
19241   # Is the header compilable?
19242 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h.  */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h.  */
19250 $ac_includes_default
19251 #include <$ac_header>
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255   (eval $ac_compile) 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } &&
19262          { ac_try='test -z "$ac_c_werror_flag"
19263                          || test ! -s conftest.err'
19264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265   (eval $ac_try) 2>&5
19266   ac_status=$?
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); }; } &&
19269          { ac_try='test -s conftest.$ac_objext'
19270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271   (eval $ac_try) 2>&5
19272   ac_status=$?
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); }; }; then
19275   ac_header_compiler=yes
19276 else
19277   echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_header_compiler=no
19281 fi
19282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19284 echo "${ECHO_T}$ac_header_compiler" >&6
19285
19286 # Is the header present?
19287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h.  */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h.  */
19295 #include <$ac_header>
19296 _ACEOF
19297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } >/dev/null; then
19305   if test -s conftest.err; then
19306     ac_cpp_err=$ac_c_preproc_warn_flag
19307     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19308   else
19309     ac_cpp_err=
19310   fi
19311 else
19312   ac_cpp_err=yes
19313 fi
19314 if test -z "$ac_cpp_err"; then
19315   ac_header_preproc=yes
19316 else
19317   echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320   ac_header_preproc=no
19321 fi
19322 rm -f conftest.err conftest.$ac_ext
19323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19324 echo "${ECHO_T}$ac_header_preproc" >&6
19325
19326 # So?  What about this header?
19327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19328   yes:no: )
19329     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19331     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19333     ac_header_preproc=yes
19334     ;;
19335   no:yes:* )
19336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19338     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19339 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19340     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19342     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19343 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19346     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19348     (
19349       cat <<\_ASBOX
19350 ## ------------------------------------------ ##
19351 ## Report this to the AC_PACKAGE_NAME lists.  ##
19352 ## ------------------------------------------ ##
19353 _ASBOX
19354     ) |
19355       sed "s/^/$as_me: WARNING:     /" >&2
19356     ;;
19357 esac
19358 echo "$as_me:$LINENO: checking for $ac_header" >&5
19359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19361   echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363   eval "$as_ac_Header=\$ac_header_preproc"
19364 fi
19365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19367
19368 fi
19369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19370   cat >>confdefs.h <<_ACEOF
19371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19372 _ACEOF
19373
19374 fi
19375
19376 done
19377
19378
19379         if test $ac_cv_header_openssl_ssl_h = yes ; then
19380                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19381 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19382 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19383   echo $ECHO_N "(cached) $ECHO_C" >&6
19384 else
19385   ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-lssl -lcrypto $LIBS"
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 /* Override any gcc2 internal prototype to avoid an error.  */
19395 #ifdef __cplusplus
19396 extern "C"
19397 #endif
19398 /* We use char because int might match the return type of a gcc2
19399    builtin and then its argument prototype would still apply.  */
19400 char SSL_library_init ();
19401 int
19402 main ()
19403 {
19404 SSL_library_init ();
19405   ;
19406   return 0;
19407 }
19408 _ACEOF
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411   (eval $ac_link) 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag"
19419                          || test ! -s conftest.err'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; } &&
19425          { ac_try='test -s conftest$ac_exeext'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   ac_cv_lib_ssl_SSL_library_init=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_cv_lib_ssl_SSL_library_init=no
19437 fi
19438 rm -f conftest.err conftest.$ac_objext \
19439       conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19441 fi
19442 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19443 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19444 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19445   have_openssl=yes
19446                         need_rsaref=no
19447 else
19448   have_openssl=no
19449 fi
19450
19451
19452                 if test $have_openssl = no ; then
19453                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19454 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19455 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   ac_check_lib_save_LIBS=$LIBS
19459 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19460 cat >conftest.$ac_ext <<_ACEOF
19461 /* confdefs.h.  */
19462 _ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h.  */
19466
19467 /* Override any gcc2 internal prototype to avoid an error.  */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 /* We use char because int might match the return type of a gcc2
19472    builtin and then its argument prototype would still apply.  */
19473 char ssl3_accept ();
19474 int
19475 main ()
19476 {
19477 ssl3_accept ();
19478   ;
19479   return 0;
19480 }
19481 _ACEOF
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484   (eval $ac_link) 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } &&
19491          { ac_try='test -z "$ac_c_werror_flag"
19492                          || test ! -s conftest.err'
19493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494   (eval $ac_try) 2>&5
19495   ac_status=$?
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); }; } &&
19498          { ac_try='test -s conftest$ac_exeext'
19499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500   (eval $ac_try) 2>&5
19501   ac_status=$?
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); }; }; then
19504   ac_cv_lib_ssl_ssl3_accept=yes
19505 else
19506   echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19508
19509 ac_cv_lib_ssl_ssl3_accept=no
19510 fi
19511 rm -f conftest.err conftest.$ac_objext \
19512       conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19514 fi
19515 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19516 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19517 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19518   have_openssl=yes
19519                                 need_rsaref=yes
19520 else
19521   have_openssl=no
19522 fi
19523
19524                 fi
19525
19526                 if test $have_openssl = yes ; then
19527                         ol_with_tls=found
19528                         ol_link_tls=yes
19529
19530
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL 1
19533 _ACEOF
19534
19535
19536                         if test $need_rsaref = yes; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_RSAREF 1
19540 _ACEOF
19541
19542
19543                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19544                         else
19545                                 TLS_LIBS="-lssl -lcrypto"
19546                         fi
19547                 fi
19548                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19549 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19550 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19551   echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553
19554         cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560
19561 #ifdef HAVE_OPENSSL_SSL_H
19562 #include <openssl/ssl.h>
19563 #else
19564 #include <ssl.h>
19565 #endif
19566
19567 /* Require 0.9.7d+ */
19568 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19569         char *__ssl_compat = "0.9.7d";
19570 #endif
19571
19572 _ACEOF
19573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19574   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19575   ol_cv_ssl_crl_compat=yes
19576 else
19577   ol_cv_ssl_crl_compat=no
19578 fi
19579 rm -f conftest*
19580
19581 fi
19582 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19583 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19584
19585                 if test $ol_cv_ssl_crl_compat = no ; then
19586                         ol_link_ssl=no
19587                 else
19588
19589 cat >>confdefs.h <<\_ACEOF
19590 #define HAVE_OPENSSL_CRL 1
19591 _ACEOF
19592
19593                 fi
19594         fi
19595
19596 else
19597         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19598 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19599 fi
19600
19601 WITH_TLS=no
19602 if test $ol_link_tls = yes ; then
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_TLS 1
19606 _ACEOF
19607
19608         WITH_TLS=yes
19609
19610 elif test $ol_with_tls = auto ; then
19611         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19612 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19613         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19614 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19615
19616 elif test $ol_with_tls != no ; then
19617         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19618 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19619    { (exit 1); exit 1; }; }
19620 fi
19621
19622 if test $ol_enable_lmpasswd != no; then
19623         if test $ol_link_tls != yes ; then
19624                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19625 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19626    { (exit 1); exit 1; }; }
19627         fi
19628
19629
19630 cat >>confdefs.h <<\_ACEOF
19631 #define SLAPD_LMHASH 1
19632 _ACEOF
19633
19634 fi
19635
19636 ol_link_threads=no
19637
19638 case $ol_with_threads in auto | yes | nt)
19639
19640
19641         echo "$as_me:$LINENO: checking for _beginthread" >&5
19642 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19643 if test "${ac_cv_func__beginthread+set}" = set; then
19644   echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646   cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19654 #define _beginthread innocuous__beginthread
19655
19656 /* System header to define __stub macros and hopefully few prototypes,
19657     which can conflict with char _beginthread (); below.
19658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659     <limits.h> exists even on freestanding compilers.  */
19660
19661 #ifdef __STDC__
19662 # include <limits.h>
19663 #else
19664 # include <assert.h>
19665 #endif
19666
19667 #undef _beginthread
19668
19669 /* Override any gcc2 internal prototype to avoid an error.  */
19670 #ifdef __cplusplus
19671 extern "C"
19672 {
19673 #endif
19674 /* We use char because int might match the return type of a gcc2
19675    builtin and then its argument prototype would still apply.  */
19676 char _beginthread ();
19677 /* The GNU C library defines this for functions which it implements
19678     to always fail with ENOSYS.  Some functions are actually named
19679     something starting with __ and the normal name is an alias.  */
19680 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19681 choke me
19682 #else
19683 char (*f) () = _beginthread;
19684 #endif
19685 #ifdef __cplusplus
19686 }
19687 #endif
19688
19689 int
19690 main ()
19691 {
19692 return f != _beginthread;
19693   ;
19694   return 0;
19695 }
19696 _ACEOF
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699   (eval $ac_link) 2>conftest.er1
19700   ac_status=$?
19701   grep -v '^ *+' conftest.er1 >conftest.err
19702   rm -f conftest.er1
19703   cat conftest.err >&5
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); } &&
19706          { ac_try='test -z "$ac_c_werror_flag"
19707                          || test ! -s conftest.err'
19708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19709   (eval $ac_try) 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; } &&
19713          { ac_try='test -s conftest$ac_exeext'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; }; then
19719   ac_cv_func__beginthread=yes
19720 else
19721   echo "$as_me: failed program was:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19723
19724 ac_cv_func__beginthread=no
19725 fi
19726 rm -f conftest.err conftest.$ac_objext \
19727       conftest$ac_exeext conftest.$ac_ext
19728 fi
19729 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19730 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19731
19732
19733         if test $ac_cv_func__beginthread = yes ; then
19734
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_NT_THREADS 1
19737 _ACEOF
19738
19739                 ol_cv_nt_threads=yes
19740         fi
19741
19742
19743         if test "$ol_cv_nt_threads" = yes ; then
19744                 ol_link_threads=nt
19745                 ol_with_threads=found
19746                 ol_with_yielding_select=yes
19747
19748
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_NT_SERVICE_MANAGER 1
19751 _ACEOF
19752
19753
19754 cat >>confdefs.h <<\_ACEOF
19755 #define HAVE_NT_EVENT_LOG 1
19756 _ACEOF
19757
19758         fi
19759
19760         if test $ol_with_threads = nt ; then
19761                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19762 echo "$as_me: error: could not locate NT Threads" >&2;}
19763    { (exit 1); exit 1; }; }
19764         fi
19765         ;;
19766 esac
19767
19768 case $ol_with_threads in auto | yes | posix)
19769
19770
19771 for ac_header in pthread.h
19772 do
19773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19775   echo "$as_me:$LINENO: checking for $ac_header" >&5
19776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 fi
19780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19782 else
19783   # Is the header compilable?
19784 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19786 cat >conftest.$ac_ext <<_ACEOF
19787 /* confdefs.h.  */
19788 _ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h.  */
19792 $ac_includes_default
19793 #include <$ac_header>
19794 _ACEOF
19795 rm -f conftest.$ac_objext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797   (eval $ac_compile) 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } &&
19804          { ac_try='test -z "$ac_c_werror_flag"
19805                          || test ! -s conftest.err'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; } &&
19811          { ac_try='test -s conftest.$ac_objext'
19812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813   (eval $ac_try) 2>&5
19814   ac_status=$?
19815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816   (exit $ac_status); }; }; then
19817   ac_header_compiler=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 ac_header_compiler=no
19823 fi
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19826 echo "${ECHO_T}$ac_header_compiler" >&6
19827
19828 # Is the header present?
19829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h.  */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h.  */
19837 #include <$ac_header>
19838 _ACEOF
19839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } >/dev/null; then
19847   if test -s conftest.err; then
19848     ac_cpp_err=$ac_c_preproc_warn_flag
19849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19850   else
19851     ac_cpp_err=
19852   fi
19853 else
19854   ac_cpp_err=yes
19855 fi
19856 if test -z "$ac_cpp_err"; then
19857   ac_header_preproc=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862   ac_header_preproc=no
19863 fi
19864 rm -f conftest.err conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6
19867
19868 # So?  What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19870   yes:no: )
19871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875     ac_header_preproc=yes
19876     ;;
19877   no:yes:* )
19878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19890     (
19891       cat <<\_ASBOX
19892 ## ------------------------------------------ ##
19893 ## Report this to the AC_PACKAGE_NAME lists.  ##
19894 ## ------------------------------------------ ##
19895 _ASBOX
19896     ) |
19897       sed "s/^/$as_me: WARNING:     /" >&2
19898     ;;
19899 esac
19900 echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905   eval "$as_ac_Header=\$ac_header_preproc"
19906 fi
19907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19909
19910 fi
19911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19912   cat >>confdefs.h <<_ACEOF
19913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19914 _ACEOF
19915
19916 fi
19917
19918 done
19919
19920
19921         if test $ac_cv_header_pthread_h = yes ; then
19922                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19923 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19924 if test "${ol_cv_pthread_version+set}" = set; then
19925   echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927
19928         cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934
19935 #               include <pthread.h>
19936
19937 int
19938 main ()
19939 {
19940
19941                 int i = PTHREAD_CREATE_JOINABLE;
19942
19943   ;
19944   return 0;
19945 }
19946 _ACEOF
19947 rm -f conftest.$ac_objext
19948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19949   (eval $ac_compile) 2>conftest.er1
19950   ac_status=$?
19951   grep -v '^ *+' conftest.er1 >conftest.err
19952   rm -f conftest.er1
19953   cat conftest.err >&5
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } &&
19956          { ac_try='test -z "$ac_c_werror_flag"
19957                          || test ! -s conftest.err'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; } &&
19963          { ac_try='test -s conftest.$ac_objext'
19964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965   (eval $ac_try) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; }; then
19969
19970         cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976 #include <pthread.h>
19977
19978 _ACEOF
19979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19980   $EGREP "pthread_detach" >/dev/null 2>&1; then
19981   ol_cv_pthread_version=10
19982 else
19983   ol_cv_pthread_version=8
19984 fi
19985 rm -f conftest*
19986
19987 else
19988   echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991
19992         cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998
19999 #               include <pthread.h>
20000 #               ifdef PTHREAD_CREATE_UNDETACHED
20001                 draft7
20002 #               endif
20003
20004 _ACEOF
20005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20006   $EGREP "draft7" >/dev/null 2>&1; then
20007   ol_cv_pthread_version=7
20008 else
20009
20010         cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 #include <pthread.h>
20017
20018 _ACEOF
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20021   ol_cv_pthread_version=6
20022 else
20023
20024         cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h.  */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h.  */
20030
20031 #               include <pthread.h>
20032 #ifdef          PTHREAD_MUTEX_INITIALIZER
20033                 draft5
20034 #endif
20035
20036 _ACEOF
20037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038   $EGREP "draft5" >/dev/null 2>&1; then
20039   ol_cv_pthread_version=5
20040 else
20041   ol_cv_pthread_version=4
20042 fi
20043 rm -f conftest*
20044
20045 fi
20046 rm -f conftest*
20047
20048 fi
20049 rm -f conftest*
20050
20051 fi
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053
20054 fi
20055 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20056 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20057
20058
20059                 if test $ol_cv_pthread_version != 0 ; then
20060
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_PTHREADS $ol_cv_pthread_version
20063 _ACEOF
20064
20065                 else
20066                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20067 echo "$as_me: error: unknown pthread version" >&2;}
20068    { (exit 1); exit 1; }; }
20069                 fi
20070
20071                 # consider threads found
20072                 ol_with_threads=found
20073
20074
20075         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20076 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20077 if test "${ol_cv_header_linux_threads+set}" = set; then
20078   echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080   cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h.  */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h.  */
20086 #include <pthread.h>
20087 _ACEOF
20088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20090   ol_cv_header_linux_threads=yes
20091 else
20092   ol_cv_header_linux_threads=no
20093 fi
20094 rm -f conftest*
20095
20096
20097 fi
20098 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20099 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20100         if test $ol_cv_header_linux_threads = yes; then
20101
20102 cat >>confdefs.h <<\_ACEOF
20103 #define HAVE_LINUX_THREADS 1
20104 _ACEOF
20105
20106         fi
20107
20108
20109         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20110 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20111 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114   cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120 #include <pthread.h>
20121 #ifdef _POSIX_THREAD_IS_GNU_PTH
20122         __gnu_pth__;
20123 #endif
20124
20125 _ACEOF
20126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20127   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20128   ol_cv_header_gnu_pth_pthread_h=yes
20129 else
20130   ol_cv_header_gnu_pth_pthread_h=no
20131 fi
20132 rm -f conftest*
20133
20134
20135 fi
20136 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20137 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20138
20139
20140                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20141
20142 for ac_header in sched.h
20143 do
20144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20146   echo "$as_me:$LINENO: checking for $ac_header" >&5
20147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 fi
20151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20153 else
20154   # Is the header compilable?
20155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 $ac_includes_default
20164 #include <$ac_header>
20165 _ACEOF
20166 rm -f conftest.$ac_objext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20168   (eval $ac_compile) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"
20176                          || test ! -s conftest.err'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; } &&
20182          { ac_try='test -s conftest.$ac_objext'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; }; then
20188   ac_header_compiler=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 ac_header_compiler=no
20194 fi
20195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20197 echo "${ECHO_T}$ac_header_compiler" >&6
20198
20199 # Is the header present?
20200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20202 cat >conftest.$ac_ext <<_ACEOF
20203 /* confdefs.h.  */
20204 _ACEOF
20205 cat confdefs.h >>conftest.$ac_ext
20206 cat >>conftest.$ac_ext <<_ACEOF
20207 /* end confdefs.h.  */
20208 #include <$ac_header>
20209 _ACEOF
20210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } >/dev/null; then
20218   if test -s conftest.err; then
20219     ac_cpp_err=$ac_c_preproc_warn_flag
20220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20221   else
20222     ac_cpp_err=
20223   fi
20224 else
20225   ac_cpp_err=yes
20226 fi
20227 if test -z "$ac_cpp_err"; then
20228   ac_header_preproc=yes
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233   ac_header_preproc=no
20234 fi
20235 rm -f conftest.err conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20237 echo "${ECHO_T}$ac_header_preproc" >&6
20238
20239 # So?  What about this header?
20240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20241   yes:no: )
20242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20246     ac_header_preproc=yes
20247     ;;
20248   no:yes:* )
20249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20261     (
20262       cat <<\_ASBOX
20263 ## ------------------------------------------ ##
20264 ## Report this to the AC_PACKAGE_NAME lists.  ##
20265 ## ------------------------------------------ ##
20266 _ASBOX
20267     ) |
20268       sed "s/^/$as_me: WARNING:     /" >&2
20269     ;;
20270 esac
20271 echo "$as_me:$LINENO: checking for $ac_header" >&5
20272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20274   echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276   eval "$as_ac_Header=\$ac_header_preproc"
20277 fi
20278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20280
20281 fi
20282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20283   cat >>confdefs.h <<_ACEOF
20284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20285 _ACEOF
20286
20287 fi
20288
20289 done
20290
20291                 fi
20292
20293
20294                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20295 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20296 if test "${ol_cv_pthread_create+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299
20300                         if test "$cross_compiling" = yes; then
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 /* pthread test headers */
20309 #include <pthread.h>
20310 #if HAVE_PTHREADS < 7
20311 #include <errno.h>
20312 #endif
20313 #ifndef NULL
20314 #define NULL (void*)0
20315 #endif
20316
20317 static void *task(p)
20318         void *p;
20319 {
20320         return (void *) (p == NULL);
20321 }
20322
20323 int
20324 main ()
20325 {
20326
20327         /* pthread test function */
20328 #ifndef PTHREAD_CREATE_DETACHED
20329 #define PTHREAD_CREATE_DETACHED 1
20330 #endif
20331         pthread_t t;
20332         int status;
20333         int detach = PTHREAD_CREATE_DETACHED;
20334
20335 #if HAVE_PTHREADS > 4
20336         /* Final pthreads */
20337         pthread_attr_t attr;
20338
20339         status = pthread_attr_init(&attr);
20340         if( status ) return status;
20341
20342 #if HAVE_PTHREADS < 7
20343         status = pthread_attr_setdetachstate(&attr, &detach);
20344         if( status < 0 ) status = errno;
20345 #else
20346         status = pthread_attr_setdetachstate(&attr, detach);
20347 #endif
20348         if( status ) return status;
20349         status = pthread_create( &t, &attr, task, NULL );
20350 #if HAVE_PTHREADS < 7
20351         if( status < 0 ) status = errno;
20352 #endif
20353         if( status ) return status;
20354 #else
20355         /* Draft 4 pthreads */
20356         status = pthread_create( &t, pthread_attr_default, task, NULL );
20357         if( status ) return errno;
20358
20359         /* give thread a chance to complete */
20360         /* it should remain joinable and hence detachable */
20361         sleep( 1 );
20362
20363         status = pthread_detach( &t );
20364         if( status ) return errno;
20365 #endif
20366
20367 #ifdef HAVE_LINUX_THREADS
20368         pthread_kill_other_threads_np();
20369 #endif
20370
20371         return 0;
20372
20373   ;
20374   return 0;
20375 }
20376 _ACEOF
20377 rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379   (eval $ac_link) 2>conftest.er1
20380   ac_status=$?
20381   grep -v '^ *+' conftest.er1 >conftest.err
20382   rm -f conftest.er1
20383   cat conftest.err >&5
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); } &&
20386          { ac_try='test -z "$ac_c_werror_flag"
20387                          || test ! -s conftest.err'
20388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389   (eval $ac_try) 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; } &&
20393          { ac_try='test -s conftest$ac_exeext'
20394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395   (eval $ac_try) 2>&5
20396   ac_status=$?
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); }; }; then
20399   ol_cv_pthread_create=yes
20400 else
20401   echo "$as_me: failed program was:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20403
20404 ol_cv_pthread_create=no
20405 fi
20406 rm -f conftest.err conftest.$ac_objext \
20407       conftest$ac_exeext conftest.$ac_ext
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415
20416 /* pthread test headers */
20417 #include <pthread.h>
20418 #if HAVE_PTHREADS < 7
20419 #include <errno.h>
20420 #endif
20421 #ifndef NULL
20422 #define NULL (void*)0
20423 #endif
20424
20425 static void *task(p)
20426         void *p;
20427 {
20428         return (void *) (p == NULL);
20429 }
20430
20431
20432 int main(argc, argv)
20433         int argc;
20434         char **argv;
20435 {
20436
20437         /* pthread test function */
20438 #ifndef PTHREAD_CREATE_DETACHED
20439 #define PTHREAD_CREATE_DETACHED 1
20440 #endif
20441         pthread_t t;
20442         int status;
20443         int detach = PTHREAD_CREATE_DETACHED;
20444
20445 #if HAVE_PTHREADS > 4
20446         /* Final pthreads */
20447         pthread_attr_t attr;
20448
20449         status = pthread_attr_init(&attr);
20450         if( status ) return status;
20451
20452 #if HAVE_PTHREADS < 7
20453         status = pthread_attr_setdetachstate(&attr, &detach);
20454         if( status < 0 ) status = errno;
20455 #else
20456         status = pthread_attr_setdetachstate(&attr, detach);
20457 #endif
20458         if( status ) return status;
20459         status = pthread_create( &t, &attr, task, NULL );
20460 #if HAVE_PTHREADS < 7
20461         if( status < 0 ) status = errno;
20462 #endif
20463         if( status ) return status;
20464 #else
20465         /* Draft 4 pthreads */
20466         status = pthread_create( &t, pthread_attr_default, task, NULL );
20467         if( status ) return errno;
20468
20469         /* give thread a chance to complete */
20470         /* it should remain joinable and hence detachable */
20471         sleep( 1 );
20472
20473         status = pthread_detach( &t );
20474         if( status ) return errno;
20475 #endif
20476
20477 #ifdef HAVE_LINUX_THREADS
20478         pthread_kill_other_threads_np();
20479 #endif
20480
20481         return 0;
20482
20483 }
20484
20485 _ACEOF
20486 rm -f conftest$ac_exeext
20487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20488   (eval $ac_link) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; }; then
20497   ol_cv_pthread_create=yes
20498 else
20499   echo "$as_me: program exited with status $ac_status" >&5
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503 ( exit $ac_status )
20504 ol_cv_pthread_create=no
20505 fi
20506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20507 fi
20508 fi
20509 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20510 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20511
20512                 if test $ol_cv_pthread_create != no ; then
20513                         ol_link_threads=posix
20514                         ol_link_pthreads=""
20515                 fi
20516
20517                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20518 if test "$ol_link_threads" = no ; then
20519         # try -kthread
20520         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20521 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20522 if test "${ol_cv_pthread_kthread+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525
20526                 # save the flags
20527                 ol_LIBS="$LIBS"
20528                 LIBS="-kthread $LIBS"
20529
20530                 if test "$cross_compiling" = yes; then
20531   cat >conftest.$ac_ext <<_ACEOF
20532 /* confdefs.h.  */
20533 _ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h.  */
20537
20538 /* pthread test headers */
20539 #include <pthread.h>
20540 #if HAVE_PTHREADS < 7
20541 #include <errno.h>
20542 #endif
20543 #ifndef NULL
20544 #define NULL (void*)0
20545 #endif
20546
20547 static void *task(p)
20548         void *p;
20549 {
20550         return (void *) (p == NULL);
20551 }
20552
20553 int
20554 main ()
20555 {
20556
20557         /* pthread test function */
20558 #ifndef PTHREAD_CREATE_DETACHED
20559 #define PTHREAD_CREATE_DETACHED 1
20560 #endif
20561         pthread_t t;
20562         int status;
20563         int detach = PTHREAD_CREATE_DETACHED;
20564
20565 #if HAVE_PTHREADS > 4
20566         /* Final pthreads */
20567         pthread_attr_t attr;
20568
20569         status = pthread_attr_init(&attr);
20570         if( status ) return status;
20571
20572 #if HAVE_PTHREADS < 7
20573         status = pthread_attr_setdetachstate(&attr, &detach);
20574         if( status < 0 ) status = errno;
20575 #else
20576         status = pthread_attr_setdetachstate(&attr, detach);
20577 #endif
20578         if( status ) return status;
20579         status = pthread_create( &t, &attr, task, NULL );
20580 #if HAVE_PTHREADS < 7
20581         if( status < 0 ) status = errno;
20582 #endif
20583         if( status ) return status;
20584 #else
20585         /* Draft 4 pthreads */
20586         status = pthread_create( &t, pthread_attr_default, task, NULL );
20587         if( status ) return errno;
20588
20589         /* give thread a chance to complete */
20590         /* it should remain joinable and hence detachable */
20591         sleep( 1 );
20592
20593         status = pthread_detach( &t );
20594         if( status ) return errno;
20595 #endif
20596
20597 #ifdef HAVE_LINUX_THREADS
20598         pthread_kill_other_threads_np();
20599 #endif
20600
20601         return 0;
20602
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20609   (eval $ac_link) 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -z "$ac_c_werror_flag"
20617                          || test ! -s conftest.err'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; } &&
20623          { ac_try='test -s conftest$ac_exeext'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; }; then
20629   ol_cv_pthread_kthread=yes
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 ol_cv_pthread_kthread=no
20635 fi
20636 rm -f conftest.err conftest.$ac_objext \
20637       conftest$ac_exeext conftest.$ac_ext
20638 else
20639   cat >conftest.$ac_ext <<_ACEOF
20640 /* confdefs.h.  */
20641 _ACEOF
20642 cat confdefs.h >>conftest.$ac_ext
20643 cat >>conftest.$ac_ext <<_ACEOF
20644 /* end confdefs.h.  */
20645
20646 /* pthread test headers */
20647 #include <pthread.h>
20648 #if HAVE_PTHREADS < 7
20649 #include <errno.h>
20650 #endif
20651 #ifndef NULL
20652 #define NULL (void*)0
20653 #endif
20654
20655 static void *task(p)
20656         void *p;
20657 {
20658         return (void *) (p == NULL);
20659 }
20660
20661
20662 int main(argc, argv)
20663         int argc;
20664         char **argv;
20665 {
20666
20667         /* pthread test function */
20668 #ifndef PTHREAD_CREATE_DETACHED
20669 #define PTHREAD_CREATE_DETACHED 1
20670 #endif
20671         pthread_t t;
20672         int status;
20673         int detach = PTHREAD_CREATE_DETACHED;
20674
20675 #if HAVE_PTHREADS > 4
20676         /* Final pthreads */
20677         pthread_attr_t attr;
20678
20679         status = pthread_attr_init(&attr);
20680         if( status ) return status;
20681
20682 #if HAVE_PTHREADS < 7
20683         status = pthread_attr_setdetachstate(&attr, &detach);
20684         if( status < 0 ) status = errno;
20685 #else
20686         status = pthread_attr_setdetachstate(&attr, detach);
20687 #endif
20688         if( status ) return status;
20689         status = pthread_create( &t, &attr, task, NULL );
20690 #if HAVE_PTHREADS < 7
20691         if( status < 0 ) status = errno;
20692 #endif
20693         if( status ) return status;
20694 #else
20695         /* Draft 4 pthreads */
20696         status = pthread_create( &t, pthread_attr_default, task, NULL );
20697         if( status ) return errno;
20698
20699         /* give thread a chance to complete */
20700         /* it should remain joinable and hence detachable */
20701         sleep( 1 );
20702
20703         status = pthread_detach( &t );
20704         if( status ) return errno;
20705 #endif
20706
20707 #ifdef HAVE_LINUX_THREADS
20708         pthread_kill_other_threads_np();
20709 #endif
20710
20711         return 0;
20712
20713 }
20714
20715 _ACEOF
20716 rm -f conftest$ac_exeext
20717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20718   (eval $ac_link) 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ol_cv_pthread_kthread=yes
20728 else
20729   echo "$as_me: program exited with status $ac_status" >&5
20730 echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ( exit $ac_status )
20734 ol_cv_pthread_kthread=no
20735 fi
20736 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20737 fi
20738
20739                 # restore the LIBS
20740                 LIBS="$ol_LIBS"
20741
20742 fi
20743 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20744 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20745
20746         if test $ol_cv_pthread_kthread = yes ; then
20747                 ol_link_pthreads="-kthread"
20748                 ol_link_threads=posix
20749         fi
20750 fi
20751
20752                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20753 if test "$ol_link_threads" = no ; then
20754         # try -pthread
20755         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20756 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20757 if test "${ol_cv_pthread_pthread+set}" = set; then
20758   echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760
20761                 # save the flags
20762                 ol_LIBS="$LIBS"
20763                 LIBS="-pthread $LIBS"
20764
20765                 if test "$cross_compiling" = yes; then
20766   cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h.  */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h.  */
20772
20773 /* pthread test headers */
20774 #include <pthread.h>
20775 #if HAVE_PTHREADS < 7
20776 #include <errno.h>
20777 #endif
20778 #ifndef NULL
20779 #define NULL (void*)0
20780 #endif
20781
20782 static void *task(p)
20783         void *p;
20784 {
20785         return (void *) (p == NULL);
20786 }
20787
20788 int
20789 main ()
20790 {
20791
20792         /* pthread test function */
20793 #ifndef PTHREAD_CREATE_DETACHED
20794 #define PTHREAD_CREATE_DETACHED 1
20795 #endif
20796         pthread_t t;
20797         int status;
20798         int detach = PTHREAD_CREATE_DETACHED;
20799
20800 #if HAVE_PTHREADS > 4
20801         /* Final pthreads */
20802         pthread_attr_t attr;
20803
20804         status = pthread_attr_init(&attr);
20805         if( status ) return status;
20806
20807 #if HAVE_PTHREADS < 7
20808         status = pthread_attr_setdetachstate(&attr, &detach);
20809         if( status < 0 ) status = errno;
20810 #else
20811         status = pthread_attr_setdetachstate(&attr, detach);
20812 #endif
20813         if( status ) return status;
20814         status = pthread_create( &t, &attr, task, NULL );
20815 #if HAVE_PTHREADS < 7
20816         if( status < 0 ) status = errno;
20817 #endif
20818         if( status ) return status;
20819 #else
20820         /* Draft 4 pthreads */
20821         status = pthread_create( &t, pthread_attr_default, task, NULL );
20822         if( status ) return errno;
20823
20824         /* give thread a chance to complete */
20825         /* it should remain joinable and hence detachable */
20826         sleep( 1 );
20827
20828         status = pthread_detach( &t );
20829         if( status ) return errno;
20830 #endif
20831
20832 #ifdef HAVE_LINUX_THREADS
20833         pthread_kill_other_threads_np();
20834 #endif
20835
20836         return 0;
20837
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20844   (eval $ac_link) 2>conftest.er1
20845   ac_status=$?
20846   grep -v '^ *+' conftest.er1 >conftest.err
20847   rm -f conftest.er1
20848   cat conftest.err >&5
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); } &&
20851          { ac_try='test -z "$ac_c_werror_flag"
20852                          || test ! -s conftest.err'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; } &&
20858          { ac_try='test -s conftest$ac_exeext'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; }; then
20864   ol_cv_pthread_pthread=yes
20865 else
20866   echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ol_cv_pthread_pthread=no
20870 fi
20871 rm -f conftest.err conftest.$ac_objext \
20872       conftest$ac_exeext conftest.$ac_ext
20873 else
20874   cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h.  */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h.  */
20880
20881 /* pthread test headers */
20882 #include <pthread.h>
20883 #if HAVE_PTHREADS < 7
20884 #include <errno.h>
20885 #endif
20886 #ifndef NULL
20887 #define NULL (void*)0
20888 #endif
20889
20890 static void *task(p)
20891         void *p;
20892 {
20893         return (void *) (p == NULL);
20894 }
20895
20896
20897 int main(argc, argv)
20898         int argc;
20899         char **argv;
20900 {
20901
20902         /* pthread test function */
20903 #ifndef PTHREAD_CREATE_DETACHED
20904 #define PTHREAD_CREATE_DETACHED 1
20905 #endif
20906         pthread_t t;
20907         int status;
20908         int detach = PTHREAD_CREATE_DETACHED;
20909
20910 #if HAVE_PTHREADS > 4
20911         /* Final pthreads */
20912         pthread_attr_t attr;
20913
20914         status = pthread_attr_init(&attr);
20915         if( status ) return status;
20916
20917 #if HAVE_PTHREADS < 7
20918         status = pthread_attr_setdetachstate(&attr, &detach);
20919         if( status < 0 ) status = errno;
20920 #else
20921         status = pthread_attr_setdetachstate(&attr, detach);
20922 #endif
20923         if( status ) return status;
20924         status = pthread_create( &t, &attr, task, NULL );
20925 #if HAVE_PTHREADS < 7
20926         if( status < 0 ) status = errno;
20927 #endif
20928         if( status ) return status;
20929 #else
20930         /* Draft 4 pthreads */
20931         status = pthread_create( &t, pthread_attr_default, task, NULL );
20932         if( status ) return errno;
20933
20934         /* give thread a chance to complete */
20935         /* it should remain joinable and hence detachable */
20936         sleep( 1 );
20937
20938         status = pthread_detach( &t );
20939         if( status ) return errno;
20940 #endif
20941
20942 #ifdef HAVE_LINUX_THREADS
20943         pthread_kill_other_threads_np();
20944 #endif
20945
20946         return 0;
20947
20948 }
20949
20950 _ACEOF
20951 rm -f conftest$ac_exeext
20952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20953   (eval $ac_link) 2>&5
20954   ac_status=$?
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }; then
20962   ol_cv_pthread_pthread=yes
20963 else
20964   echo "$as_me: program exited with status $ac_status" >&5
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 ( exit $ac_status )
20969 ol_cv_pthread_pthread=no
20970 fi
20971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20972 fi
20973
20974                 # restore the LIBS
20975                 LIBS="$ol_LIBS"
20976
20977 fi
20978 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20979 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20980
20981         if test $ol_cv_pthread_pthread = yes ; then
20982                 ol_link_pthreads="-pthread"
20983                 ol_link_threads=posix
20984         fi
20985 fi
20986
20987                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20988 if test "$ol_link_threads" = no ; then
20989         # try -pthreads
20990         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20991 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20992 if test "${ol_cv_pthread_pthreads+set}" = set; then
20993   echo $ECHO_N "(cached) $ECHO_C" >&6
20994 else
20995
20996                 # save the flags
20997                 ol_LIBS="$LIBS"
20998                 LIBS="-pthreads $LIBS"
20999
21000                 if test "$cross_compiling" = yes; then
21001   cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008 /* pthread test headers */
21009 #include <pthread.h>
21010 #if HAVE_PTHREADS < 7
21011 #include <errno.h>
21012 #endif
21013 #ifndef NULL
21014 #define NULL (void*)0
21015 #endif
21016
21017 static void *task(p)
21018         void *p;
21019 {
21020         return (void *) (p == NULL);
21021 }
21022
21023 int
21024 main ()
21025 {
21026
21027         /* pthread test function */
21028 #ifndef PTHREAD_CREATE_DETACHED
21029 #define PTHREAD_CREATE_DETACHED 1
21030 #endif
21031         pthread_t t;
21032         int status;
21033         int detach = PTHREAD_CREATE_DETACHED;
21034
21035 #if HAVE_PTHREADS > 4
21036         /* Final pthreads */
21037         pthread_attr_t attr;
21038
21039         status = pthread_attr_init(&attr);
21040         if( status ) return status;
21041
21042 #if HAVE_PTHREADS < 7
21043         status = pthread_attr_setdetachstate(&attr, &detach);
21044         if( status < 0 ) status = errno;
21045 #else
21046         status = pthread_attr_setdetachstate(&attr, detach);
21047 #endif
21048         if( status ) return status;
21049         status = pthread_create( &t, &attr, task, NULL );
21050 #if HAVE_PTHREADS < 7
21051         if( status < 0 ) status = errno;
21052 #endif
21053         if( status ) return status;
21054 #else
21055         /* Draft 4 pthreads */
21056         status = pthread_create( &t, pthread_attr_default, task, NULL );
21057         if( status ) return errno;
21058
21059         /* give thread a chance to complete */
21060         /* it should remain joinable and hence detachable */
21061         sleep( 1 );
21062
21063         status = pthread_detach( &t );
21064         if( status ) return errno;
21065 #endif
21066
21067 #ifdef HAVE_LINUX_THREADS
21068         pthread_kill_other_threads_np();
21069 #endif
21070
21071         return 0;
21072
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21079   (eval $ac_link) 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } &&
21086          { ac_try='test -z "$ac_c_werror_flag"
21087                          || test ! -s conftest.err'
21088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089   (eval $ac_try) 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; } &&
21093          { ac_try='test -s conftest$ac_exeext'
21094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; }; then
21099   ol_cv_pthread_pthreads=yes
21100 else
21101   echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 ol_cv_pthread_pthreads=no
21105 fi
21106 rm -f conftest.err conftest.$ac_objext \
21107       conftest$ac_exeext conftest.$ac_ext
21108 else
21109   cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115
21116 /* pthread test headers */
21117 #include <pthread.h>
21118 #if HAVE_PTHREADS < 7
21119 #include <errno.h>
21120 #endif
21121 #ifndef NULL
21122 #define NULL (void*)0
21123 #endif
21124
21125 static void *task(p)
21126         void *p;
21127 {
21128         return (void *) (p == NULL);
21129 }
21130
21131
21132 int main(argc, argv)
21133         int argc;
21134         char **argv;
21135 {
21136
21137         /* pthread test function */
21138 #ifndef PTHREAD_CREATE_DETACHED
21139 #define PTHREAD_CREATE_DETACHED 1
21140 #endif
21141         pthread_t t;
21142         int status;
21143         int detach = PTHREAD_CREATE_DETACHED;
21144
21145 #if HAVE_PTHREADS > 4
21146         /* Final pthreads */
21147         pthread_attr_t attr;
21148
21149         status = pthread_attr_init(&attr);
21150         if( status ) return status;
21151
21152 #if HAVE_PTHREADS < 7
21153         status = pthread_attr_setdetachstate(&attr, &detach);
21154         if( status < 0 ) status = errno;
21155 #else
21156         status = pthread_attr_setdetachstate(&attr, detach);
21157 #endif
21158         if( status ) return status;
21159         status = pthread_create( &t, &attr, task, NULL );
21160 #if HAVE_PTHREADS < 7
21161         if( status < 0 ) status = errno;
21162 #endif
21163         if( status ) return status;
21164 #else
21165         /* Draft 4 pthreads */
21166         status = pthread_create( &t, pthread_attr_default, task, NULL );
21167         if( status ) return errno;
21168
21169         /* give thread a chance to complete */
21170         /* it should remain joinable and hence detachable */
21171         sleep( 1 );
21172
21173         status = pthread_detach( &t );
21174         if( status ) return errno;
21175 #endif
21176
21177 #ifdef HAVE_LINUX_THREADS
21178         pthread_kill_other_threads_np();
21179 #endif
21180
21181         return 0;
21182
21183 }
21184
21185 _ACEOF
21186 rm -f conftest$ac_exeext
21187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188   (eval $ac_link) 2>&5
21189   ac_status=$?
21190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193   (eval $ac_try) 2>&5
21194   ac_status=$?
21195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196   (exit $ac_status); }; }; then
21197   ol_cv_pthread_pthreads=yes
21198 else
21199   echo "$as_me: program exited with status $ac_status" >&5
21200 echo "$as_me: failed program was:" >&5
21201 sed 's/^/| /' conftest.$ac_ext >&5
21202
21203 ( exit $ac_status )
21204 ol_cv_pthread_pthreads=no
21205 fi
21206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21207 fi
21208
21209                 # restore the LIBS
21210                 LIBS="$ol_LIBS"
21211
21212 fi
21213 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21214 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21215
21216         if test $ol_cv_pthread_pthreads = yes ; then
21217                 ol_link_pthreads="-pthreads"
21218                 ol_link_threads=posix
21219         fi
21220 fi
21221
21222                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21223 if test "$ol_link_threads" = no ; then
21224         # try -mthreads
21225         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21226 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21227 if test "${ol_cv_pthread_mthreads+set}" = set; then
21228   echo $ECHO_N "(cached) $ECHO_C" >&6
21229 else
21230
21231                 # save the flags
21232                 ol_LIBS="$LIBS"
21233                 LIBS="-mthreads $LIBS"
21234
21235                 if test "$cross_compiling" = yes; then
21236   cat >conftest.$ac_ext <<_ACEOF
21237 /* confdefs.h.  */
21238 _ACEOF
21239 cat confdefs.h >>conftest.$ac_ext
21240 cat >>conftest.$ac_ext <<_ACEOF
21241 /* end confdefs.h.  */
21242
21243 /* pthread test headers */
21244 #include <pthread.h>
21245 #if HAVE_PTHREADS < 7
21246 #include <errno.h>
21247 #endif
21248 #ifndef NULL
21249 #define NULL (void*)0
21250 #endif
21251
21252 static void *task(p)
21253         void *p;
21254 {
21255         return (void *) (p == NULL);
21256 }
21257
21258 int
21259 main ()
21260 {
21261
21262         /* pthread test function */
21263 #ifndef PTHREAD_CREATE_DETACHED
21264 #define PTHREAD_CREATE_DETACHED 1
21265 #endif
21266         pthread_t t;
21267         int status;
21268         int detach = PTHREAD_CREATE_DETACHED;
21269
21270 #if HAVE_PTHREADS > 4
21271         /* Final pthreads */
21272         pthread_attr_t attr;
21273
21274         status = pthread_attr_init(&attr);
21275         if( status ) return status;
21276
21277 #if HAVE_PTHREADS < 7
21278         status = pthread_attr_setdetachstate(&attr, &detach);
21279         if( status < 0 ) status = errno;
21280 #else
21281         status = pthread_attr_setdetachstate(&attr, detach);
21282 #endif
21283         if( status ) return status;
21284         status = pthread_create( &t, &attr, task, NULL );
21285 #if HAVE_PTHREADS < 7
21286         if( status < 0 ) status = errno;
21287 #endif
21288         if( status ) return status;
21289 #else
21290         /* Draft 4 pthreads */
21291         status = pthread_create( &t, pthread_attr_default, task, NULL );
21292         if( status ) return errno;
21293
21294         /* give thread a chance to complete */
21295         /* it should remain joinable and hence detachable */
21296         sleep( 1 );
21297
21298         status = pthread_detach( &t );
21299         if( status ) return errno;
21300 #endif
21301
21302 #ifdef HAVE_LINUX_THREADS
21303         pthread_kill_other_threads_np();
21304 #endif
21305
21306         return 0;
21307
21308   ;
21309   return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21314   (eval $ac_link) 2>conftest.er1
21315   ac_status=$?
21316   grep -v '^ *+' conftest.er1 >conftest.err
21317   rm -f conftest.er1
21318   cat conftest.err >&5
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); } &&
21321          { ac_try='test -z "$ac_c_werror_flag"
21322                          || test ! -s conftest.err'
21323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324   (eval $ac_try) 2>&5
21325   ac_status=$?
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); }; } &&
21328          { ac_try='test -s conftest$ac_exeext'
21329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330   (eval $ac_try) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; }; then
21334   ol_cv_pthread_mthreads=yes
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 ol_cv_pthread_mthreads=no
21340 fi
21341 rm -f conftest.err conftest.$ac_objext \
21342       conftest$ac_exeext conftest.$ac_ext
21343 else
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350
21351 /* pthread test headers */
21352 #include <pthread.h>
21353 #if HAVE_PTHREADS < 7
21354 #include <errno.h>
21355 #endif
21356 #ifndef NULL
21357 #define NULL (void*)0
21358 #endif
21359
21360 static void *task(p)
21361         void *p;
21362 {
21363         return (void *) (p == NULL);
21364 }
21365
21366
21367 int main(argc, argv)
21368         int argc;
21369         char **argv;
21370 {
21371
21372         /* pthread test function */
21373 #ifndef PTHREAD_CREATE_DETACHED
21374 #define PTHREAD_CREATE_DETACHED 1
21375 #endif
21376         pthread_t t;
21377         int status;
21378         int detach = PTHREAD_CREATE_DETACHED;
21379
21380 #if HAVE_PTHREADS > 4
21381         /* Final pthreads */
21382         pthread_attr_t attr;
21383
21384         status = pthread_attr_init(&attr);
21385         if( status ) return status;
21386
21387 #if HAVE_PTHREADS < 7
21388         status = pthread_attr_setdetachstate(&attr, &detach);
21389         if( status < 0 ) status = errno;
21390 #else
21391         status = pthread_attr_setdetachstate(&attr, detach);
21392 #endif
21393         if( status ) return status;
21394         status = pthread_create( &t, &attr, task, NULL );
21395 #if HAVE_PTHREADS < 7
21396         if( status < 0 ) status = errno;
21397 #endif
21398         if( status ) return status;
21399 #else
21400         /* Draft 4 pthreads */
21401         status = pthread_create( &t, pthread_attr_default, task, NULL );
21402         if( status ) return errno;
21403
21404         /* give thread a chance to complete */
21405         /* it should remain joinable and hence detachable */
21406         sleep( 1 );
21407
21408         status = pthread_detach( &t );
21409         if( status ) return errno;
21410 #endif
21411
21412 #ifdef HAVE_LINUX_THREADS
21413         pthread_kill_other_threads_np();
21414 #endif
21415
21416         return 0;
21417
21418 }
21419
21420 _ACEOF
21421 rm -f conftest$ac_exeext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423   (eval $ac_link) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428   (eval $ac_try) 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   ol_cv_pthread_mthreads=yes
21433 else
21434   echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ( exit $ac_status )
21439 ol_cv_pthread_mthreads=no
21440 fi
21441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442 fi
21443
21444                 # restore the LIBS
21445                 LIBS="$ol_LIBS"
21446
21447 fi
21448 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21449 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21450
21451         if test $ol_cv_pthread_mthreads = yes ; then
21452                 ol_link_pthreads="-mthreads"
21453                 ol_link_threads=posix
21454         fi
21455 fi
21456
21457                 # Pthread try link: -thread (ol_cv_pthread_thread)
21458 if test "$ol_link_threads" = no ; then
21459         # try -thread
21460         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21461 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21462 if test "${ol_cv_pthread_thread+set}" = set; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465
21466                 # save the flags
21467                 ol_LIBS="$LIBS"
21468                 LIBS="-thread $LIBS"
21469
21470                 if test "$cross_compiling" = yes; then
21471   cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477
21478 /* pthread test headers */
21479 #include <pthread.h>
21480 #if HAVE_PTHREADS < 7
21481 #include <errno.h>
21482 #endif
21483 #ifndef NULL
21484 #define NULL (void*)0
21485 #endif
21486
21487 static void *task(p)
21488         void *p;
21489 {
21490         return (void *) (p == NULL);
21491 }
21492
21493 int
21494 main ()
21495 {
21496
21497         /* pthread test function */
21498 #ifndef PTHREAD_CREATE_DETACHED
21499 #define PTHREAD_CREATE_DETACHED 1
21500 #endif
21501         pthread_t t;
21502         int status;
21503         int detach = PTHREAD_CREATE_DETACHED;
21504
21505 #if HAVE_PTHREADS > 4
21506         /* Final pthreads */
21507         pthread_attr_t attr;
21508
21509         status = pthread_attr_init(&attr);
21510         if( status ) return status;
21511
21512 #if HAVE_PTHREADS < 7
21513         status = pthread_attr_setdetachstate(&attr, &detach);
21514         if( status < 0 ) status = errno;
21515 #else
21516         status = pthread_attr_setdetachstate(&attr, detach);
21517 #endif
21518         if( status ) return status;
21519         status = pthread_create( &t, &attr, task, NULL );
21520 #if HAVE_PTHREADS < 7
21521         if( status < 0 ) status = errno;
21522 #endif
21523         if( status ) return status;
21524 #else
21525         /* Draft 4 pthreads */
21526         status = pthread_create( &t, pthread_attr_default, task, NULL );
21527         if( status ) return errno;
21528
21529         /* give thread a chance to complete */
21530         /* it should remain joinable and hence detachable */
21531         sleep( 1 );
21532
21533         status = pthread_detach( &t );
21534         if( status ) return errno;
21535 #endif
21536
21537 #ifdef HAVE_LINUX_THREADS
21538         pthread_kill_other_threads_np();
21539 #endif
21540
21541         return 0;
21542
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext conftest$ac_exeext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549   (eval $ac_link) 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -z "$ac_c_werror_flag"
21557                          || test ! -s conftest.err'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; } &&
21563          { ac_try='test -s conftest$ac_exeext'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; }; then
21569   ol_cv_pthread_thread=yes
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 ol_cv_pthread_thread=no
21575 fi
21576 rm -f conftest.err conftest.$ac_objext \
21577       conftest$ac_exeext conftest.$ac_ext
21578 else
21579   cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585
21586 /* pthread test headers */
21587 #include <pthread.h>
21588 #if HAVE_PTHREADS < 7
21589 #include <errno.h>
21590 #endif
21591 #ifndef NULL
21592 #define NULL (void*)0
21593 #endif
21594
21595 static void *task(p)
21596         void *p;
21597 {
21598         return (void *) (p == NULL);
21599 }
21600
21601
21602 int main(argc, argv)
21603         int argc;
21604         char **argv;
21605 {
21606
21607         /* pthread test function */
21608 #ifndef PTHREAD_CREATE_DETACHED
21609 #define PTHREAD_CREATE_DETACHED 1
21610 #endif
21611         pthread_t t;
21612         int status;
21613         int detach = PTHREAD_CREATE_DETACHED;
21614
21615 #if HAVE_PTHREADS > 4
21616         /* Final pthreads */
21617         pthread_attr_t attr;
21618
21619         status = pthread_attr_init(&attr);
21620         if( status ) return status;
21621
21622 #if HAVE_PTHREADS < 7
21623         status = pthread_attr_setdetachstate(&attr, &detach);
21624         if( status < 0 ) status = errno;
21625 #else
21626         status = pthread_attr_setdetachstate(&attr, detach);
21627 #endif
21628         if( status ) return status;
21629         status = pthread_create( &t, &attr, task, NULL );
21630 #if HAVE_PTHREADS < 7
21631         if( status < 0 ) status = errno;
21632 #endif
21633         if( status ) return status;
21634 #else
21635         /* Draft 4 pthreads */
21636         status = pthread_create( &t, pthread_attr_default, task, NULL );
21637         if( status ) return errno;
21638
21639         /* give thread a chance to complete */
21640         /* it should remain joinable and hence detachable */
21641         sleep( 1 );
21642
21643         status = pthread_detach( &t );
21644         if( status ) return errno;
21645 #endif
21646
21647 #ifdef HAVE_LINUX_THREADS
21648         pthread_kill_other_threads_np();
21649 #endif
21650
21651         return 0;
21652
21653 }
21654
21655 _ACEOF
21656 rm -f conftest$ac_exeext
21657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21658   (eval $ac_link) 2>&5
21659   ac_status=$?
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663   (eval $ac_try) 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; }; then
21667   ol_cv_pthread_thread=yes
21668 else
21669   echo "$as_me: program exited with status $ac_status" >&5
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673 ( exit $ac_status )
21674 ol_cv_pthread_thread=no
21675 fi
21676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21677 fi
21678
21679                 # restore the LIBS
21680                 LIBS="$ol_LIBS"
21681
21682 fi
21683 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21684 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21685
21686         if test $ol_cv_pthread_thread = yes ; then
21687                 ol_link_pthreads="-thread"
21688                 ol_link_threads=posix
21689         fi
21690 fi
21691
21692
21693                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21694 if test "$ol_link_threads" = no ; then
21695         # try -lpthread -lmach -lexc -lc_r
21696         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21697 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21698 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21699   echo $ECHO_N "(cached) $ECHO_C" >&6
21700 else
21701
21702                 # save the flags
21703                 ol_LIBS="$LIBS"
21704                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21705
21706                 if test "$cross_compiling" = yes; then
21707   cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713
21714 /* pthread test headers */
21715 #include <pthread.h>
21716 #if HAVE_PTHREADS < 7
21717 #include <errno.h>
21718 #endif
21719 #ifndef NULL
21720 #define NULL (void*)0
21721 #endif
21722
21723 static void *task(p)
21724         void *p;
21725 {
21726         return (void *) (p == NULL);
21727 }
21728
21729 int
21730 main ()
21731 {
21732
21733         /* pthread test function */
21734 #ifndef PTHREAD_CREATE_DETACHED
21735 #define PTHREAD_CREATE_DETACHED 1
21736 #endif
21737         pthread_t t;
21738         int status;
21739         int detach = PTHREAD_CREATE_DETACHED;
21740
21741 #if HAVE_PTHREADS > 4
21742         /* Final pthreads */
21743         pthread_attr_t attr;
21744
21745         status = pthread_attr_init(&attr);
21746         if( status ) return status;
21747
21748 #if HAVE_PTHREADS < 7
21749         status = pthread_attr_setdetachstate(&attr, &detach);
21750         if( status < 0 ) status = errno;
21751 #else
21752         status = pthread_attr_setdetachstate(&attr, detach);
21753 #endif
21754         if( status ) return status;
21755         status = pthread_create( &t, &attr, task, NULL );
21756 #if HAVE_PTHREADS < 7
21757         if( status < 0 ) status = errno;
21758 #endif
21759         if( status ) return status;
21760 #else
21761         /* Draft 4 pthreads */
21762         status = pthread_create( &t, pthread_attr_default, task, NULL );
21763         if( status ) return errno;
21764
21765         /* give thread a chance to complete */
21766         /* it should remain joinable and hence detachable */
21767         sleep( 1 );
21768
21769         status = pthread_detach( &t );
21770         if( status ) return errno;
21771 #endif
21772
21773 #ifdef HAVE_LINUX_THREADS
21774         pthread_kill_other_threads_np();
21775 #endif
21776
21777         return 0;
21778
21779   ;
21780   return 0;
21781 }
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785   (eval $ac_link) 2>conftest.er1
21786   ac_status=$?
21787   grep -v '^ *+' conftest.er1 >conftest.err
21788   rm -f conftest.er1
21789   cat conftest.err >&5
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } &&
21792          { ac_try='test -z "$ac_c_werror_flag"
21793                          || test ! -s conftest.err'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; } &&
21799          { ac_try='test -s conftest$ac_exeext'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; }; then
21805   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21811 fi
21812 rm -f conftest.err conftest.$ac_objext \
21813       conftest$ac_exeext conftest.$ac_ext
21814 else
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821
21822 /* pthread test headers */
21823 #include <pthread.h>
21824 #if HAVE_PTHREADS < 7
21825 #include <errno.h>
21826 #endif
21827 #ifndef NULL
21828 #define NULL (void*)0
21829 #endif
21830
21831 static void *task(p)
21832         void *p;
21833 {
21834         return (void *) (p == NULL);
21835 }
21836
21837
21838 int main(argc, argv)
21839         int argc;
21840         char **argv;
21841 {
21842
21843         /* pthread test function */
21844 #ifndef PTHREAD_CREATE_DETACHED
21845 #define PTHREAD_CREATE_DETACHED 1
21846 #endif
21847         pthread_t t;
21848         int status;
21849         int detach = PTHREAD_CREATE_DETACHED;
21850
21851 #if HAVE_PTHREADS > 4
21852         /* Final pthreads */
21853         pthread_attr_t attr;
21854
21855         status = pthread_attr_init(&attr);
21856         if( status ) return status;
21857
21858 #if HAVE_PTHREADS < 7
21859         status = pthread_attr_setdetachstate(&attr, &detach);
21860         if( status < 0 ) status = errno;
21861 #else
21862         status = pthread_attr_setdetachstate(&attr, detach);
21863 #endif
21864         if( status ) return status;
21865         status = pthread_create( &t, &attr, task, NULL );
21866 #if HAVE_PTHREADS < 7
21867         if( status < 0 ) status = errno;
21868 #endif
21869         if( status ) return status;
21870 #else
21871         /* Draft 4 pthreads */
21872         status = pthread_create( &t, pthread_attr_default, task, NULL );
21873         if( status ) return errno;
21874
21875         /* give thread a chance to complete */
21876         /* it should remain joinable and hence detachable */
21877         sleep( 1 );
21878
21879         status = pthread_detach( &t );
21880         if( status ) return errno;
21881 #endif
21882
21883 #ifdef HAVE_LINUX_THREADS
21884         pthread_kill_other_threads_np();
21885 #endif
21886
21887         return 0;
21888
21889 }
21890
21891 _ACEOF
21892 rm -f conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894   (eval $ac_link) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; }; then
21903   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21904 else
21905   echo "$as_me: program exited with status $ac_status" >&5
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 ( exit $ac_status )
21910 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21911 fi
21912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21913 fi
21914
21915                 # restore the LIBS
21916                 LIBS="$ol_LIBS"
21917
21918 fi
21919 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21920 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21921
21922         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21923                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21924                 ol_link_threads=posix
21925         fi
21926 fi
21927
21928                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21929 if test "$ol_link_threads" = no ; then
21930         # try -lpthread -lmach -lexc
21931         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21932 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21933 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21934   echo $ECHO_N "(cached) $ECHO_C" >&6
21935 else
21936
21937                 # save the flags
21938                 ol_LIBS="$LIBS"
21939                 LIBS="-lpthread -lmach -lexc $LIBS"
21940
21941                 if test "$cross_compiling" = yes; then
21942   cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948
21949 /* pthread test headers */
21950 #include <pthread.h>
21951 #if HAVE_PTHREADS < 7
21952 #include <errno.h>
21953 #endif
21954 #ifndef NULL
21955 #define NULL (void*)0
21956 #endif
21957
21958 static void *task(p)
21959         void *p;
21960 {
21961         return (void *) (p == NULL);
21962 }
21963
21964 int
21965 main ()
21966 {
21967
21968         /* pthread test function */
21969 #ifndef PTHREAD_CREATE_DETACHED
21970 #define PTHREAD_CREATE_DETACHED 1
21971 #endif
21972         pthread_t t;
21973         int status;
21974         int detach = PTHREAD_CREATE_DETACHED;
21975
21976 #if HAVE_PTHREADS > 4
21977         /* Final pthreads */
21978         pthread_attr_t attr;
21979
21980         status = pthread_attr_init(&attr);
21981         if( status ) return status;
21982
21983 #if HAVE_PTHREADS < 7
21984         status = pthread_attr_setdetachstate(&attr, &detach);
21985         if( status < 0 ) status = errno;
21986 #else
21987         status = pthread_attr_setdetachstate(&attr, detach);
21988 #endif
21989         if( status ) return status;
21990         status = pthread_create( &t, &attr, task, NULL );
21991 #if HAVE_PTHREADS < 7
21992         if( status < 0 ) status = errno;
21993 #endif
21994         if( status ) return status;
21995 #else
21996         /* Draft 4 pthreads */
21997         status = pthread_create( &t, pthread_attr_default, task, NULL );
21998         if( status ) return errno;
21999
22000         /* give thread a chance to complete */
22001         /* it should remain joinable and hence detachable */
22002         sleep( 1 );
22003
22004         status = pthread_detach( &t );
22005         if( status ) return errno;
22006 #endif
22007
22008 #ifdef HAVE_LINUX_THREADS
22009         pthread_kill_other_threads_np();
22010 #endif
22011
22012         return 0;
22013
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest.$ac_objext conftest$ac_exeext
22019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22020   (eval $ac_link) 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } &&
22027          { ac_try='test -z "$ac_c_werror_flag"
22028                          || test ! -s conftest.err'
22029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); }; } &&
22034          { ac_try='test -s conftest$ac_exeext'
22035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036   (eval $ac_try) 2>&5
22037   ac_status=$?
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); }; }; then
22040   ol_cv_pthread_lpthread_lmach_lexc=yes
22041 else
22042   echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22044
22045 ol_cv_pthread_lpthread_lmach_lexc=no
22046 fi
22047 rm -f conftest.err conftest.$ac_objext \
22048       conftest$ac_exeext conftest.$ac_ext
22049 else
22050   cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056
22057 /* pthread test headers */
22058 #include <pthread.h>
22059 #if HAVE_PTHREADS < 7
22060 #include <errno.h>
22061 #endif
22062 #ifndef NULL
22063 #define NULL (void*)0
22064 #endif
22065
22066 static void *task(p)
22067         void *p;
22068 {
22069         return (void *) (p == NULL);
22070 }
22071
22072
22073 int main(argc, argv)
22074         int argc;
22075         char **argv;
22076 {
22077
22078         /* pthread test function */
22079 #ifndef PTHREAD_CREATE_DETACHED
22080 #define PTHREAD_CREATE_DETACHED 1
22081 #endif
22082         pthread_t t;
22083         int status;
22084         int detach = PTHREAD_CREATE_DETACHED;
22085
22086 #if HAVE_PTHREADS > 4
22087         /* Final pthreads */
22088         pthread_attr_t attr;
22089
22090         status = pthread_attr_init(&attr);
22091         if( status ) return status;
22092
22093 #if HAVE_PTHREADS < 7
22094         status = pthread_attr_setdetachstate(&attr, &detach);
22095         if( status < 0 ) status = errno;
22096 #else
22097         status = pthread_attr_setdetachstate(&attr, detach);
22098 #endif
22099         if( status ) return status;
22100         status = pthread_create( &t, &attr, task, NULL );
22101 #if HAVE_PTHREADS < 7
22102         if( status < 0 ) status = errno;
22103 #endif
22104         if( status ) return status;
22105 #else
22106         /* Draft 4 pthreads */
22107         status = pthread_create( &t, pthread_attr_default, task, NULL );
22108         if( status ) return errno;
22109
22110         /* give thread a chance to complete */
22111         /* it should remain joinable and hence detachable */
22112         sleep( 1 );
22113
22114         status = pthread_detach( &t );
22115         if( status ) return errno;
22116 #endif
22117
22118 #ifdef HAVE_LINUX_THREADS
22119         pthread_kill_other_threads_np();
22120 #endif
22121
22122         return 0;
22123
22124 }
22125
22126 _ACEOF
22127 rm -f conftest$ac_exeext
22128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129   (eval $ac_link) 2>&5
22130   ac_status=$?
22131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138   ol_cv_pthread_lpthread_lmach_lexc=yes
22139 else
22140   echo "$as_me: program exited with status $ac_status" >&5
22141 echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144 ( exit $ac_status )
22145 ol_cv_pthread_lpthread_lmach_lexc=no
22146 fi
22147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22148 fi
22149
22150                 # restore the LIBS
22151                 LIBS="$ol_LIBS"
22152
22153 fi
22154 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22155 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22156
22157         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22158                 ol_link_pthreads="-lpthread -lmach -lexc"
22159                 ol_link_threads=posix
22160         fi
22161 fi
22162
22163
22164                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22165 if test "$ol_link_threads" = no ; then
22166         # try -lpthread -Wl,-woff,85
22167         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22168 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22169 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172
22173                 # save the flags
22174                 ol_LIBS="$LIBS"
22175                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22176
22177                 if test "$cross_compiling" = yes; then
22178   cat >conftest.$ac_ext <<_ACEOF
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184
22185 /* pthread test headers */
22186 #include <pthread.h>
22187 #if HAVE_PTHREADS < 7
22188 #include <errno.h>
22189 #endif
22190 #ifndef NULL
22191 #define NULL (void*)0
22192 #endif
22193
22194 static void *task(p)
22195         void *p;
22196 {
22197         return (void *) (p == NULL);
22198 }
22199
22200 int
22201 main ()
22202 {
22203
22204         /* pthread test function */
22205 #ifndef PTHREAD_CREATE_DETACHED
22206 #define PTHREAD_CREATE_DETACHED 1
22207 #endif
22208         pthread_t t;
22209         int status;
22210         int detach = PTHREAD_CREATE_DETACHED;
22211
22212 #if HAVE_PTHREADS > 4
22213         /* Final pthreads */
22214         pthread_attr_t attr;
22215
22216         status = pthread_attr_init(&attr);
22217         if( status ) return status;
22218
22219 #if HAVE_PTHREADS < 7
22220         status = pthread_attr_setdetachstate(&attr, &detach);
22221         if( status < 0 ) status = errno;
22222 #else
22223         status = pthread_attr_setdetachstate(&attr, detach);
22224 #endif
22225         if( status ) return status;
22226         status = pthread_create( &t, &attr, task, NULL );
22227 #if HAVE_PTHREADS < 7
22228         if( status < 0 ) status = errno;
22229 #endif
22230         if( status ) return status;
22231 #else
22232         /* Draft 4 pthreads */
22233         status = pthread_create( &t, pthread_attr_default, task, NULL );
22234         if( status ) return errno;
22235
22236         /* give thread a chance to complete */
22237         /* it should remain joinable and hence detachable */
22238         sleep( 1 );
22239
22240         status = pthread_detach( &t );
22241         if( status ) return errno;
22242 #endif
22243
22244 #ifdef HAVE_LINUX_THREADS
22245         pthread_kill_other_threads_np();
22246 #endif
22247
22248         return 0;
22249
22250   ;
22251   return 0;
22252 }
22253 _ACEOF
22254 rm -f conftest.$ac_objext conftest$ac_exeext
22255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22256   (eval $ac_link) 2>conftest.er1
22257   ac_status=$?
22258   grep -v '^ *+' conftest.er1 >conftest.err
22259   rm -f conftest.er1
22260   cat conftest.err >&5
22261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262   (exit $ac_status); } &&
22263          { ac_try='test -z "$ac_c_werror_flag"
22264                          || test ! -s conftest.err'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; } &&
22270          { ac_try='test -s conftest$ac_exeext'
22271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272   (eval $ac_try) 2>&5
22273   ac_status=$?
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); }; }; then
22276   ol_cv_pthread_lib_lpthread_woff=yes
22277 else
22278   echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22280
22281 ol_cv_pthread_lib_lpthread_woff=no
22282 fi
22283 rm -f conftest.err conftest.$ac_objext \
22284       conftest$ac_exeext conftest.$ac_ext
22285 else
22286   cat >conftest.$ac_ext <<_ACEOF
22287 /* confdefs.h.  */
22288 _ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h.  */
22292
22293 /* pthread test headers */
22294 #include <pthread.h>
22295 #if HAVE_PTHREADS < 7
22296 #include <errno.h>
22297 #endif
22298 #ifndef NULL
22299 #define NULL (void*)0
22300 #endif
22301
22302 static void *task(p)
22303         void *p;
22304 {
22305         return (void *) (p == NULL);
22306 }
22307
22308
22309 int main(argc, argv)
22310         int argc;
22311         char **argv;
22312 {
22313
22314         /* pthread test function */
22315 #ifndef PTHREAD_CREATE_DETACHED
22316 #define PTHREAD_CREATE_DETACHED 1
22317 #endif
22318         pthread_t t;
22319         int status;
22320         int detach = PTHREAD_CREATE_DETACHED;
22321
22322 #if HAVE_PTHREADS > 4
22323         /* Final pthreads */
22324         pthread_attr_t attr;
22325
22326         status = pthread_attr_init(&attr);
22327         if( status ) return status;
22328
22329 #if HAVE_PTHREADS < 7
22330         status = pthread_attr_setdetachstate(&attr, &detach);
22331         if( status < 0 ) status = errno;
22332 #else
22333         status = pthread_attr_setdetachstate(&attr, detach);
22334 #endif
22335         if( status ) return status;
22336         status = pthread_create( &t, &attr, task, NULL );
22337 #if HAVE_PTHREADS < 7
22338         if( status < 0 ) status = errno;
22339 #endif
22340         if( status ) return status;
22341 #else
22342         /* Draft 4 pthreads */
22343         status = pthread_create( &t, pthread_attr_default, task, NULL );
22344         if( status ) return errno;
22345
22346         /* give thread a chance to complete */
22347         /* it should remain joinable and hence detachable */
22348         sleep( 1 );
22349
22350         status = pthread_detach( &t );
22351         if( status ) return errno;
22352 #endif
22353
22354 #ifdef HAVE_LINUX_THREADS
22355         pthread_kill_other_threads_np();
22356 #endif
22357
22358         return 0;
22359
22360 }
22361
22362 _ACEOF
22363 rm -f conftest$ac_exeext
22364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365   (eval $ac_link) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370   (eval $ac_try) 2>&5
22371   ac_status=$?
22372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373   (exit $ac_status); }; }; then
22374   ol_cv_pthread_lib_lpthread_woff=yes
22375 else
22376   echo "$as_me: program exited with status $ac_status" >&5
22377 echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380 ( exit $ac_status )
22381 ol_cv_pthread_lib_lpthread_woff=no
22382 fi
22383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22384 fi
22385
22386                 # restore the LIBS
22387                 LIBS="$ol_LIBS"
22388
22389 fi
22390 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22391 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22392
22393         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22394                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22395                 ol_link_threads=posix
22396         fi
22397 fi
22398
22399
22400                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22401 if test "$ol_link_threads" = no ; then
22402         # try -lpthread
22403         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22404 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22405 if test "${ol_cv_pthread_lpthread+set}" = set; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408
22409                 # save the flags
22410                 ol_LIBS="$LIBS"
22411                 LIBS="-lpthread $LIBS"
22412
22413                 if test "$cross_compiling" = yes; then
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420
22421 /* pthread test headers */
22422 #include <pthread.h>
22423 #if HAVE_PTHREADS < 7
22424 #include <errno.h>
22425 #endif
22426 #ifndef NULL
22427 #define NULL (void*)0
22428 #endif
22429
22430 static void *task(p)
22431         void *p;
22432 {
22433         return (void *) (p == NULL);
22434 }
22435
22436 int
22437 main ()
22438 {
22439
22440         /* pthread test function */
22441 #ifndef PTHREAD_CREATE_DETACHED
22442 #define PTHREAD_CREATE_DETACHED 1
22443 #endif
22444         pthread_t t;
22445         int status;
22446         int detach = PTHREAD_CREATE_DETACHED;
22447
22448 #if HAVE_PTHREADS > 4
22449         /* Final pthreads */
22450         pthread_attr_t attr;
22451
22452         status = pthread_attr_init(&attr);
22453         if( status ) return status;
22454
22455 #if HAVE_PTHREADS < 7
22456         status = pthread_attr_setdetachstate(&attr, &detach);
22457         if( status < 0 ) status = errno;
22458 #else
22459         status = pthread_attr_setdetachstate(&attr, detach);
22460 #endif
22461         if( status ) return status;
22462         status = pthread_create( &t, &attr, task, NULL );
22463 #if HAVE_PTHREADS < 7
22464         if( status < 0 ) status = errno;
22465 #endif
22466         if( status ) return status;
22467 #else
22468         /* Draft 4 pthreads */
22469         status = pthread_create( &t, pthread_attr_default, task, NULL );
22470         if( status ) return errno;
22471
22472         /* give thread a chance to complete */
22473         /* it should remain joinable and hence detachable */
22474         sleep( 1 );
22475
22476         status = pthread_detach( &t );
22477         if( status ) return errno;
22478 #endif
22479
22480 #ifdef HAVE_LINUX_THREADS
22481         pthread_kill_other_threads_np();
22482 #endif
22483
22484         return 0;
22485
22486   ;
22487   return 0;
22488 }
22489 _ACEOF
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22492   (eval $ac_link) 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } &&
22499          { ac_try='test -z "$ac_c_werror_flag"
22500                          || test ! -s conftest.err'
22501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502   (eval $ac_try) 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; } &&
22506          { ac_try='test -s conftest$ac_exeext'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; }; then
22512   ol_cv_pthread_lpthread=yes
22513 else
22514   echo "$as_me: failed program was:" >&5
22515 sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 ol_cv_pthread_lpthread=no
22518 fi
22519 rm -f conftest.err conftest.$ac_objext \
22520       conftest$ac_exeext conftest.$ac_ext
22521 else
22522   cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528
22529 /* pthread test headers */
22530 #include <pthread.h>
22531 #if HAVE_PTHREADS < 7
22532 #include <errno.h>
22533 #endif
22534 #ifndef NULL
22535 #define NULL (void*)0
22536 #endif
22537
22538 static void *task(p)
22539         void *p;
22540 {
22541         return (void *) (p == NULL);
22542 }
22543
22544
22545 int main(argc, argv)
22546         int argc;
22547         char **argv;
22548 {
22549
22550         /* pthread test function */
22551 #ifndef PTHREAD_CREATE_DETACHED
22552 #define PTHREAD_CREATE_DETACHED 1
22553 #endif
22554         pthread_t t;
22555         int status;
22556         int detach = PTHREAD_CREATE_DETACHED;
22557
22558 #if HAVE_PTHREADS > 4
22559         /* Final pthreads */
22560         pthread_attr_t attr;
22561
22562         status = pthread_attr_init(&attr);
22563         if( status ) return status;
22564
22565 #if HAVE_PTHREADS < 7
22566         status = pthread_attr_setdetachstate(&attr, &detach);
22567         if( status < 0 ) status = errno;
22568 #else
22569         status = pthread_attr_setdetachstate(&attr, detach);
22570 #endif
22571         if( status ) return status;
22572         status = pthread_create( &t, &attr, task, NULL );
22573 #if HAVE_PTHREADS < 7
22574         if( status < 0 ) status = errno;
22575 #endif
22576         if( status ) return status;
22577 #else
22578         /* Draft 4 pthreads */
22579         status = pthread_create( &t, pthread_attr_default, task, NULL );
22580         if( status ) return errno;
22581
22582         /* give thread a chance to complete */
22583         /* it should remain joinable and hence detachable */
22584         sleep( 1 );
22585
22586         status = pthread_detach( &t );
22587         if( status ) return errno;
22588 #endif
22589
22590 #ifdef HAVE_LINUX_THREADS
22591         pthread_kill_other_threads_np();
22592 #endif
22593
22594         return 0;
22595
22596 }
22597
22598 _ACEOF
22599 rm -f conftest$ac_exeext
22600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22601   (eval $ac_link) 2>&5
22602   ac_status=$?
22603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606   (eval $ac_try) 2>&5
22607   ac_status=$?
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); }; }; then
22610   ol_cv_pthread_lpthread=yes
22611 else
22612   echo "$as_me: program exited with status $ac_status" >&5
22613 echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22615
22616 ( exit $ac_status )
22617 ol_cv_pthread_lpthread=no
22618 fi
22619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22620 fi
22621
22622                 # restore the LIBS
22623                 LIBS="$ol_LIBS"
22624
22625 fi
22626 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22627 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22628
22629         if test $ol_cv_pthread_lpthread = yes ; then
22630                 ol_link_pthreads="-lpthread"
22631                 ol_link_threads=posix
22632         fi
22633 fi
22634
22635                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22636 if test "$ol_link_threads" = no ; then
22637         # try -lc_r
22638         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22639 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22640 if test "${ol_cv_pthread_lc_r+set}" = set; then
22641   echo $ECHO_N "(cached) $ECHO_C" >&6
22642 else
22643
22644                 # save the flags
22645                 ol_LIBS="$LIBS"
22646                 LIBS="-lc_r $LIBS"
22647
22648                 if test "$cross_compiling" = yes; then
22649   cat >conftest.$ac_ext <<_ACEOF
22650 /* confdefs.h.  */
22651 _ACEOF
22652 cat confdefs.h >>conftest.$ac_ext
22653 cat >>conftest.$ac_ext <<_ACEOF
22654 /* end confdefs.h.  */
22655
22656 /* pthread test headers */
22657 #include <pthread.h>
22658 #if HAVE_PTHREADS < 7
22659 #include <errno.h>
22660 #endif
22661 #ifndef NULL
22662 #define NULL (void*)0
22663 #endif
22664
22665 static void *task(p)
22666         void *p;
22667 {
22668         return (void *) (p == NULL);
22669 }
22670
22671 int
22672 main ()
22673 {
22674
22675         /* pthread test function */
22676 #ifndef PTHREAD_CREATE_DETACHED
22677 #define PTHREAD_CREATE_DETACHED 1
22678 #endif
22679         pthread_t t;
22680         int status;
22681         int detach = PTHREAD_CREATE_DETACHED;
22682
22683 #if HAVE_PTHREADS > 4
22684         /* Final pthreads */
22685         pthread_attr_t attr;
22686
22687         status = pthread_attr_init(&attr);
22688         if( status ) return status;
22689
22690 #if HAVE_PTHREADS < 7
22691         status = pthread_attr_setdetachstate(&attr, &detach);
22692         if( status < 0 ) status = errno;
22693 #else
22694         status = pthread_attr_setdetachstate(&attr, detach);
22695 #endif
22696         if( status ) return status;
22697         status = pthread_create( &t, &attr, task, NULL );
22698 #if HAVE_PTHREADS < 7
22699         if( status < 0 ) status = errno;
22700 #endif
22701         if( status ) return status;
22702 #else
22703         /* Draft 4 pthreads */
22704         status = pthread_create( &t, pthread_attr_default, task, NULL );
22705         if( status ) return errno;
22706
22707         /* give thread a chance to complete */
22708         /* it should remain joinable and hence detachable */
22709         sleep( 1 );
22710
22711         status = pthread_detach( &t );
22712         if( status ) return errno;
22713 #endif
22714
22715 #ifdef HAVE_LINUX_THREADS
22716         pthread_kill_other_threads_np();
22717 #endif
22718
22719         return 0;
22720
22721   ;
22722   return 0;
22723 }
22724 _ACEOF
22725 rm -f conftest.$ac_objext conftest$ac_exeext
22726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22727   (eval $ac_link) 2>conftest.er1
22728   ac_status=$?
22729   grep -v '^ *+' conftest.er1 >conftest.err
22730   rm -f conftest.er1
22731   cat conftest.err >&5
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); } &&
22734          { ac_try='test -z "$ac_c_werror_flag"
22735                          || test ! -s conftest.err'
22736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737   (eval $ac_try) 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; } &&
22741          { ac_try='test -s conftest$ac_exeext'
22742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22743   (eval $ac_try) 2>&5
22744   ac_status=$?
22745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746   (exit $ac_status); }; }; then
22747   ol_cv_pthread_lc_r=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ol_cv_pthread_lc_r=no
22753 fi
22754 rm -f conftest.err conftest.$ac_objext \
22755       conftest$ac_exeext conftest.$ac_ext
22756 else
22757   cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h.  */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h.  */
22763
22764 /* pthread test headers */
22765 #include <pthread.h>
22766 #if HAVE_PTHREADS < 7
22767 #include <errno.h>
22768 #endif
22769 #ifndef NULL
22770 #define NULL (void*)0
22771 #endif
22772
22773 static void *task(p)
22774         void *p;
22775 {
22776         return (void *) (p == NULL);
22777 }
22778
22779
22780 int main(argc, argv)
22781         int argc;
22782         char **argv;
22783 {
22784
22785         /* pthread test function */
22786 #ifndef PTHREAD_CREATE_DETACHED
22787 #define PTHREAD_CREATE_DETACHED 1
22788 #endif
22789         pthread_t t;
22790         int status;
22791         int detach = PTHREAD_CREATE_DETACHED;
22792
22793 #if HAVE_PTHREADS > 4
22794         /* Final pthreads */
22795         pthread_attr_t attr;
22796
22797         status = pthread_attr_init(&attr);
22798         if( status ) return status;
22799
22800 #if HAVE_PTHREADS < 7
22801         status = pthread_attr_setdetachstate(&attr, &detach);
22802         if( status < 0 ) status = errno;
22803 #else
22804         status = pthread_attr_setdetachstate(&attr, detach);
22805 #endif
22806         if( status ) return status;
22807         status = pthread_create( &t, &attr, task, NULL );
22808 #if HAVE_PTHREADS < 7
22809         if( status < 0 ) status = errno;
22810 #endif
22811         if( status ) return status;
22812 #else
22813         /* Draft 4 pthreads */
22814         status = pthread_create( &t, pthread_attr_default, task, NULL );
22815         if( status ) return errno;
22816
22817         /* give thread a chance to complete */
22818         /* it should remain joinable and hence detachable */
22819         sleep( 1 );
22820
22821         status = pthread_detach( &t );
22822         if( status ) return errno;
22823 #endif
22824
22825 #ifdef HAVE_LINUX_THREADS
22826         pthread_kill_other_threads_np();
22827 #endif
22828
22829         return 0;
22830
22831 }
22832
22833 _ACEOF
22834 rm -f conftest$ac_exeext
22835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22836   (eval $ac_link) 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841   (eval $ac_try) 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; }; then
22845   ol_cv_pthread_lc_r=yes
22846 else
22847   echo "$as_me: program exited with status $ac_status" >&5
22848 echo "$as_me: failed program was:" >&5
22849 sed 's/^/| /' conftest.$ac_ext >&5
22850
22851 ( exit $ac_status )
22852 ol_cv_pthread_lc_r=no
22853 fi
22854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22855 fi
22856
22857                 # restore the LIBS
22858                 LIBS="$ol_LIBS"
22859
22860 fi
22861 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22862 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22863
22864         if test $ol_cv_pthread_lc_r = yes ; then
22865                 ol_link_pthreads="-lc_r"
22866                 ol_link_threads=posix
22867         fi
22868 fi
22869
22870
22871                 # Pthread try link: -threads (ol_cv_pthread_threads)
22872 if test "$ol_link_threads" = no ; then
22873         # try -threads
22874         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22875 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22876 if test "${ol_cv_pthread_threads+set}" = set; then
22877   echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879
22880                 # save the flags
22881                 ol_LIBS="$LIBS"
22882                 LIBS="-threads $LIBS"
22883
22884                 if test "$cross_compiling" = yes; then
22885   cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h.  */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h.  */
22891
22892 /* pthread test headers */
22893 #include <pthread.h>
22894 #if HAVE_PTHREADS < 7
22895 #include <errno.h>
22896 #endif
22897 #ifndef NULL
22898 #define NULL (void*)0
22899 #endif
22900
22901 static void *task(p)
22902         void *p;
22903 {
22904         return (void *) (p == NULL);
22905 }
22906
22907 int
22908 main ()
22909 {
22910
22911         /* pthread test function */
22912 #ifndef PTHREAD_CREATE_DETACHED
22913 #define PTHREAD_CREATE_DETACHED 1
22914 #endif
22915         pthread_t t;
22916         int status;
22917         int detach = PTHREAD_CREATE_DETACHED;
22918
22919 #if HAVE_PTHREADS > 4
22920         /* Final pthreads */
22921         pthread_attr_t attr;
22922
22923         status = pthread_attr_init(&attr);
22924         if( status ) return status;
22925
22926 #if HAVE_PTHREADS < 7
22927         status = pthread_attr_setdetachstate(&attr, &detach);
22928         if( status < 0 ) status = errno;
22929 #else
22930         status = pthread_attr_setdetachstate(&attr, detach);
22931 #endif
22932         if( status ) return status;
22933         status = pthread_create( &t, &attr, task, NULL );
22934 #if HAVE_PTHREADS < 7
22935         if( status < 0 ) status = errno;
22936 #endif
22937         if( status ) return status;
22938 #else
22939         /* Draft 4 pthreads */
22940         status = pthread_create( &t, pthread_attr_default, task, NULL );
22941         if( status ) return errno;
22942
22943         /* give thread a chance to complete */
22944         /* it should remain joinable and hence detachable */
22945         sleep( 1 );
22946
22947         status = pthread_detach( &t );
22948         if( status ) return errno;
22949 #endif
22950
22951 #ifdef HAVE_LINUX_THREADS
22952         pthread_kill_other_threads_np();
22953 #endif
22954
22955         return 0;
22956
22957   ;
22958   return 0;
22959 }
22960 _ACEOF
22961 rm -f conftest.$ac_objext conftest$ac_exeext
22962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22963   (eval $ac_link) 2>conftest.er1
22964   ac_status=$?
22965   grep -v '^ *+' conftest.er1 >conftest.err
22966   rm -f conftest.er1
22967   cat conftest.err >&5
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); } &&
22970          { ac_try='test -z "$ac_c_werror_flag"
22971                          || test ! -s conftest.err'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; } &&
22977          { ac_try='test -s conftest$ac_exeext'
22978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979   (eval $ac_try) 2>&5
22980   ac_status=$?
22981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982   (exit $ac_status); }; }; then
22983   ol_cv_pthread_threads=yes
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988 ol_cv_pthread_threads=no
22989 fi
22990 rm -f conftest.err conftest.$ac_objext \
22991       conftest$ac_exeext conftest.$ac_ext
22992 else
22993   cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h.  */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h.  */
22999
23000 /* pthread test headers */
23001 #include <pthread.h>
23002 #if HAVE_PTHREADS < 7
23003 #include <errno.h>
23004 #endif
23005 #ifndef NULL
23006 #define NULL (void*)0
23007 #endif
23008
23009 static void *task(p)
23010         void *p;
23011 {
23012         return (void *) (p == NULL);
23013 }
23014
23015
23016 int main(argc, argv)
23017         int argc;
23018         char **argv;
23019 {
23020
23021         /* pthread test function */
23022 #ifndef PTHREAD_CREATE_DETACHED
23023 #define PTHREAD_CREATE_DETACHED 1
23024 #endif
23025         pthread_t t;
23026         int status;
23027         int detach = PTHREAD_CREATE_DETACHED;
23028
23029 #if HAVE_PTHREADS > 4
23030         /* Final pthreads */
23031         pthread_attr_t attr;
23032
23033         status = pthread_attr_init(&attr);
23034         if( status ) return status;
23035
23036 #if HAVE_PTHREADS < 7
23037         status = pthread_attr_setdetachstate(&attr, &detach);
23038         if( status < 0 ) status = errno;
23039 #else
23040         status = pthread_attr_setdetachstate(&attr, detach);
23041 #endif
23042         if( status ) return status;
23043         status = pthread_create( &t, &attr, task, NULL );
23044 #if HAVE_PTHREADS < 7
23045         if( status < 0 ) status = errno;
23046 #endif
23047         if( status ) return status;
23048 #else
23049         /* Draft 4 pthreads */
23050         status = pthread_create( &t, pthread_attr_default, task, NULL );
23051         if( status ) return errno;
23052
23053         /* give thread a chance to complete */
23054         /* it should remain joinable and hence detachable */
23055         sleep( 1 );
23056
23057         status = pthread_detach( &t );
23058         if( status ) return errno;
23059 #endif
23060
23061 #ifdef HAVE_LINUX_THREADS
23062         pthread_kill_other_threads_np();
23063 #endif
23064
23065         return 0;
23066
23067 }
23068
23069 _ACEOF
23070 rm -f conftest$ac_exeext
23071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23072   (eval $ac_link) 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077   (eval $ac_try) 2>&5
23078   ac_status=$?
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); }; }; then
23081   ol_cv_pthread_threads=yes
23082 else
23083   echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087 ( exit $ac_status )
23088 ol_cv_pthread_threads=no
23089 fi
23090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 fi
23092
23093                 # restore the LIBS
23094                 LIBS="$ol_LIBS"
23095
23096 fi
23097 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23098 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23099
23100         if test $ol_cv_pthread_threads = yes ; then
23101                 ol_link_pthreads="-threads"
23102                 ol_link_threads=posix
23103         fi
23104 fi
23105
23106
23107                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23108 if test "$ol_link_threads" = no ; then
23109         # try -lpthreads -lmach -lexc -lc_r
23110         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23111 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23112 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23113   echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115
23116                 # save the flags
23117                 ol_LIBS="$LIBS"
23118                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23119
23120                 if test "$cross_compiling" = yes; then
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127
23128 /* pthread test headers */
23129 #include <pthread.h>
23130 #if HAVE_PTHREADS < 7
23131 #include <errno.h>
23132 #endif
23133 #ifndef NULL
23134 #define NULL (void*)0
23135 #endif
23136
23137 static void *task(p)
23138         void *p;
23139 {
23140         return (void *) (p == NULL);
23141 }
23142
23143 int
23144 main ()
23145 {
23146
23147         /* pthread test function */
23148 #ifndef PTHREAD_CREATE_DETACHED
23149 #define PTHREAD_CREATE_DETACHED 1
23150 #endif
23151         pthread_t t;
23152         int status;
23153         int detach = PTHREAD_CREATE_DETACHED;
23154
23155 #if HAVE_PTHREADS > 4
23156         /* Final pthreads */
23157         pthread_attr_t attr;
23158
23159         status = pthread_attr_init(&attr);
23160         if( status ) return status;
23161
23162 #if HAVE_PTHREADS < 7
23163         status = pthread_attr_setdetachstate(&attr, &detach);
23164         if( status < 0 ) status = errno;
23165 #else
23166         status = pthread_attr_setdetachstate(&attr, detach);
23167 #endif
23168         if( status ) return status;
23169         status = pthread_create( &t, &attr, task, NULL );
23170 #if HAVE_PTHREADS < 7
23171         if( status < 0 ) status = errno;
23172 #endif
23173         if( status ) return status;
23174 #else
23175         /* Draft 4 pthreads */
23176         status = pthread_create( &t, pthread_attr_default, task, NULL );
23177         if( status ) return errno;
23178
23179         /* give thread a chance to complete */
23180         /* it should remain joinable and hence detachable */
23181         sleep( 1 );
23182
23183         status = pthread_detach( &t );
23184         if( status ) return errno;
23185 #endif
23186
23187 #ifdef HAVE_LINUX_THREADS
23188         pthread_kill_other_threads_np();
23189 #endif
23190
23191         return 0;
23192
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23199   (eval $ac_link) 2>conftest.er1
23200   ac_status=$?
23201   grep -v '^ *+' conftest.er1 >conftest.err
23202   rm -f conftest.er1
23203   cat conftest.err >&5
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); } &&
23206          { ac_try='test -z "$ac_c_werror_flag"
23207                          || test ! -s conftest.err'
23208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209   (eval $ac_try) 2>&5
23210   ac_status=$?
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); }; } &&
23213          { ac_try='test -s conftest$ac_exeext'
23214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215   (eval $ac_try) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); }; }; then
23219   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23220 else
23221   echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23223
23224 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23225 fi
23226 rm -f conftest.err conftest.$ac_objext \
23227       conftest$ac_exeext conftest.$ac_ext
23228 else
23229   cat >conftest.$ac_ext <<_ACEOF
23230 /* confdefs.h.  */
23231 _ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h.  */
23235
23236 /* pthread test headers */
23237 #include <pthread.h>
23238 #if HAVE_PTHREADS < 7
23239 #include <errno.h>
23240 #endif
23241 #ifndef NULL
23242 #define NULL (void*)0
23243 #endif
23244
23245 static void *task(p)
23246         void *p;
23247 {
23248         return (void *) (p == NULL);
23249 }
23250
23251
23252 int main(argc, argv)
23253         int argc;
23254         char **argv;
23255 {
23256
23257         /* pthread test function */
23258 #ifndef PTHREAD_CREATE_DETACHED
23259 #define PTHREAD_CREATE_DETACHED 1
23260 #endif
23261         pthread_t t;
23262         int status;
23263         int detach = PTHREAD_CREATE_DETACHED;
23264
23265 #if HAVE_PTHREADS > 4
23266         /* Final pthreads */
23267         pthread_attr_t attr;
23268
23269         status = pthread_attr_init(&attr);
23270         if( status ) return status;
23271
23272 #if HAVE_PTHREADS < 7
23273         status = pthread_attr_setdetachstate(&attr, &detach);
23274         if( status < 0 ) status = errno;
23275 #else
23276         status = pthread_attr_setdetachstate(&attr, detach);
23277 #endif
23278         if( status ) return status;
23279         status = pthread_create( &t, &attr, task, NULL );
23280 #if HAVE_PTHREADS < 7
23281         if( status < 0 ) status = errno;
23282 #endif
23283         if( status ) return status;
23284 #else
23285         /* Draft 4 pthreads */
23286         status = pthread_create( &t, pthread_attr_default, task, NULL );
23287         if( status ) return errno;
23288
23289         /* give thread a chance to complete */
23290         /* it should remain joinable and hence detachable */
23291         sleep( 1 );
23292
23293         status = pthread_detach( &t );
23294         if( status ) return errno;
23295 #endif
23296
23297 #ifdef HAVE_LINUX_THREADS
23298         pthread_kill_other_threads_np();
23299 #endif
23300
23301         return 0;
23302
23303 }
23304
23305 _ACEOF
23306 rm -f conftest$ac_exeext
23307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23308   (eval $ac_link) 2>&5
23309   ac_status=$?
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313   (eval $ac_try) 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; }; then
23317   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23318 else
23319   echo "$as_me: program exited with status $ac_status" >&5
23320 echo "$as_me: failed program was:" >&5
23321 sed 's/^/| /' conftest.$ac_ext >&5
23322
23323 ( exit $ac_status )
23324 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23325 fi
23326 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23327 fi
23328
23329                 # restore the LIBS
23330                 LIBS="$ol_LIBS"
23331
23332 fi
23333 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23334 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23335
23336         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23337                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23338                 ol_link_threads=posix
23339         fi
23340 fi
23341
23342                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23343 if test "$ol_link_threads" = no ; then
23344         # try -lpthreads -lmach -lexc
23345         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23346 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23347 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350
23351                 # save the flags
23352                 ol_LIBS="$LIBS"
23353                 LIBS="-lpthreads -lmach -lexc $LIBS"
23354
23355                 if test "$cross_compiling" = yes; then
23356   cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h.  */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h.  */
23362
23363 /* pthread test headers */
23364 #include <pthread.h>
23365 #if HAVE_PTHREADS < 7
23366 #include <errno.h>
23367 #endif
23368 #ifndef NULL
23369 #define NULL (void*)0
23370 #endif
23371
23372 static void *task(p)
23373         void *p;
23374 {
23375         return (void *) (p == NULL);
23376 }
23377
23378 int
23379 main ()
23380 {
23381
23382         /* pthread test function */
23383 #ifndef PTHREAD_CREATE_DETACHED
23384 #define PTHREAD_CREATE_DETACHED 1
23385 #endif
23386         pthread_t t;
23387         int status;
23388         int detach = PTHREAD_CREATE_DETACHED;
23389
23390 #if HAVE_PTHREADS > 4
23391         /* Final pthreads */
23392         pthread_attr_t attr;
23393
23394         status = pthread_attr_init(&attr);
23395         if( status ) return status;
23396
23397 #if HAVE_PTHREADS < 7
23398         status = pthread_attr_setdetachstate(&attr, &detach);
23399         if( status < 0 ) status = errno;
23400 #else
23401         status = pthread_attr_setdetachstate(&attr, detach);
23402 #endif
23403         if( status ) return status;
23404         status = pthread_create( &t, &attr, task, NULL );
23405 #if HAVE_PTHREADS < 7
23406         if( status < 0 ) status = errno;
23407 #endif
23408         if( status ) return status;
23409 #else
23410         /* Draft 4 pthreads */
23411         status = pthread_create( &t, pthread_attr_default, task, NULL );
23412         if( status ) return errno;
23413
23414         /* give thread a chance to complete */
23415         /* it should remain joinable and hence detachable */
23416         sleep( 1 );
23417
23418         status = pthread_detach( &t );
23419         if( status ) return errno;
23420 #endif
23421
23422 #ifdef HAVE_LINUX_THREADS
23423         pthread_kill_other_threads_np();
23424 #endif
23425
23426         return 0;
23427
23428   ;
23429   return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext conftest$ac_exeext
23433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23434   (eval $ac_link) 2>conftest.er1
23435   ac_status=$?
23436   grep -v '^ *+' conftest.er1 >conftest.err
23437   rm -f conftest.er1
23438   cat conftest.err >&5
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } &&
23441          { ac_try='test -z "$ac_c_werror_flag"
23442                          || test ! -s conftest.err'
23443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444   (eval $ac_try) 2>&5
23445   ac_status=$?
23446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447   (exit $ac_status); }; } &&
23448          { ac_try='test -s conftest$ac_exeext'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; }; then
23454   ol_cv_pthread_lpthreads_lmach_lexc=yes
23455 else
23456   echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23458
23459 ol_cv_pthread_lpthreads_lmach_lexc=no
23460 fi
23461 rm -f conftest.err conftest.$ac_objext \
23462       conftest$ac_exeext conftest.$ac_ext
23463 else
23464   cat >conftest.$ac_ext <<_ACEOF
23465 /* confdefs.h.  */
23466 _ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h.  */
23470
23471 /* pthread test headers */
23472 #include <pthread.h>
23473 #if HAVE_PTHREADS < 7
23474 #include <errno.h>
23475 #endif
23476 #ifndef NULL
23477 #define NULL (void*)0
23478 #endif
23479
23480 static void *task(p)
23481         void *p;
23482 {
23483         return (void *) (p == NULL);
23484 }
23485
23486
23487 int main(argc, argv)
23488         int argc;
23489         char **argv;
23490 {
23491
23492         /* pthread test function */
23493 #ifndef PTHREAD_CREATE_DETACHED
23494 #define PTHREAD_CREATE_DETACHED 1
23495 #endif
23496         pthread_t t;
23497         int status;
23498         int detach = PTHREAD_CREATE_DETACHED;
23499
23500 #if HAVE_PTHREADS > 4
23501         /* Final pthreads */
23502         pthread_attr_t attr;
23503
23504         status = pthread_attr_init(&attr);
23505         if( status ) return status;
23506
23507 #if HAVE_PTHREADS < 7
23508         status = pthread_attr_setdetachstate(&attr, &detach);
23509         if( status < 0 ) status = errno;
23510 #else
23511         status = pthread_attr_setdetachstate(&attr, detach);
23512 #endif
23513         if( status ) return status;
23514         status = pthread_create( &t, &attr, task, NULL );
23515 #if HAVE_PTHREADS < 7
23516         if( status < 0 ) status = errno;
23517 #endif
23518         if( status ) return status;
23519 #else
23520         /* Draft 4 pthreads */
23521         status = pthread_create( &t, pthread_attr_default, task, NULL );
23522         if( status ) return errno;
23523
23524         /* give thread a chance to complete */
23525         /* it should remain joinable and hence detachable */
23526         sleep( 1 );
23527
23528         status = pthread_detach( &t );
23529         if( status ) return errno;
23530 #endif
23531
23532 #ifdef HAVE_LINUX_THREADS
23533         pthread_kill_other_threads_np();
23534 #endif
23535
23536         return 0;
23537
23538 }
23539
23540 _ACEOF
23541 rm -f conftest$ac_exeext
23542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23543   (eval $ac_link) 2>&5
23544   ac_status=$?
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548   (eval $ac_try) 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ol_cv_pthread_lpthreads_lmach_lexc=yes
23553 else
23554   echo "$as_me: program exited with status $ac_status" >&5
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23557
23558 ( exit $ac_status )
23559 ol_cv_pthread_lpthreads_lmach_lexc=no
23560 fi
23561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23562 fi
23563
23564                 # restore the LIBS
23565                 LIBS="$ol_LIBS"
23566
23567 fi
23568 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23569 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23570
23571         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23572                 ol_link_pthreads="-lpthreads -lmach -lexc"
23573                 ol_link_threads=posix
23574         fi
23575 fi
23576
23577                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23578 if test "$ol_link_threads" = no ; then
23579         # try -lpthreads -lexc
23580         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23581 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23582 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23583   echo $ECHO_N "(cached) $ECHO_C" >&6
23584 else
23585
23586                 # save the flags
23587                 ol_LIBS="$LIBS"
23588                 LIBS="-lpthreads -lexc $LIBS"
23589
23590                 if test "$cross_compiling" = yes; then
23591   cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h.  */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h.  */
23597
23598 /* pthread test headers */
23599 #include <pthread.h>
23600 #if HAVE_PTHREADS < 7
23601 #include <errno.h>
23602 #endif
23603 #ifndef NULL
23604 #define NULL (void*)0
23605 #endif
23606
23607 static void *task(p)
23608         void *p;
23609 {
23610         return (void *) (p == NULL);
23611 }
23612
23613 int
23614 main ()
23615 {
23616
23617         /* pthread test function */
23618 #ifndef PTHREAD_CREATE_DETACHED
23619 #define PTHREAD_CREATE_DETACHED 1
23620 #endif
23621         pthread_t t;
23622         int status;
23623         int detach = PTHREAD_CREATE_DETACHED;
23624
23625 #if HAVE_PTHREADS > 4
23626         /* Final pthreads */
23627         pthread_attr_t attr;
23628
23629         status = pthread_attr_init(&attr);
23630         if( status ) return status;
23631
23632 #if HAVE_PTHREADS < 7
23633         status = pthread_attr_setdetachstate(&attr, &detach);
23634         if( status < 0 ) status = errno;
23635 #else
23636         status = pthread_attr_setdetachstate(&attr, detach);
23637 #endif
23638         if( status ) return status;
23639         status = pthread_create( &t, &attr, task, NULL );
23640 #if HAVE_PTHREADS < 7
23641         if( status < 0 ) status = errno;
23642 #endif
23643         if( status ) return status;
23644 #else
23645         /* Draft 4 pthreads */
23646         status = pthread_create( &t, pthread_attr_default, task, NULL );
23647         if( status ) return errno;
23648
23649         /* give thread a chance to complete */
23650         /* it should remain joinable and hence detachable */
23651         sleep( 1 );
23652
23653         status = pthread_detach( &t );
23654         if( status ) return errno;
23655 #endif
23656
23657 #ifdef HAVE_LINUX_THREADS
23658         pthread_kill_other_threads_np();
23659 #endif
23660
23661         return 0;
23662
23663   ;
23664   return 0;
23665 }
23666 _ACEOF
23667 rm -f conftest.$ac_objext conftest$ac_exeext
23668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23669   (eval $ac_link) 2>conftest.er1
23670   ac_status=$?
23671   grep -v '^ *+' conftest.er1 >conftest.err
23672   rm -f conftest.er1
23673   cat conftest.err >&5
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } &&
23676          { ac_try='test -z "$ac_c_werror_flag"
23677                          || test ! -s conftest.err'
23678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679   (eval $ac_try) 2>&5
23680   ac_status=$?
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); }; } &&
23683          { ac_try='test -s conftest$ac_exeext'
23684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23685   (eval $ac_try) 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; }; then
23689   ol_cv_pthread_lpthreads_lexc=yes
23690 else
23691   echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ol_cv_pthread_lpthreads_lexc=no
23695 fi
23696 rm -f conftest.err conftest.$ac_objext \
23697       conftest$ac_exeext conftest.$ac_ext
23698 else
23699   cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705
23706 /* pthread test headers */
23707 #include <pthread.h>
23708 #if HAVE_PTHREADS < 7
23709 #include <errno.h>
23710 #endif
23711 #ifndef NULL
23712 #define NULL (void*)0
23713 #endif
23714
23715 static void *task(p)
23716         void *p;
23717 {
23718         return (void *) (p == NULL);
23719 }
23720
23721
23722 int main(argc, argv)
23723         int argc;
23724         char **argv;
23725 {
23726
23727         /* pthread test function */
23728 #ifndef PTHREAD_CREATE_DETACHED
23729 #define PTHREAD_CREATE_DETACHED 1
23730 #endif
23731         pthread_t t;
23732         int status;
23733         int detach = PTHREAD_CREATE_DETACHED;
23734
23735 #if HAVE_PTHREADS > 4
23736         /* Final pthreads */
23737         pthread_attr_t attr;
23738
23739         status = pthread_attr_init(&attr);
23740         if( status ) return status;
23741
23742 #if HAVE_PTHREADS < 7
23743         status = pthread_attr_setdetachstate(&attr, &detach);
23744         if( status < 0 ) status = errno;
23745 #else
23746         status = pthread_attr_setdetachstate(&attr, detach);
23747 #endif
23748         if( status ) return status;
23749         status = pthread_create( &t, &attr, task, NULL );
23750 #if HAVE_PTHREADS < 7
23751         if( status < 0 ) status = errno;
23752 #endif
23753         if( status ) return status;
23754 #else
23755         /* Draft 4 pthreads */
23756         status = pthread_create( &t, pthread_attr_default, task, NULL );
23757         if( status ) return errno;
23758
23759         /* give thread a chance to complete */
23760         /* it should remain joinable and hence detachable */
23761         sleep( 1 );
23762
23763         status = pthread_detach( &t );
23764         if( status ) return errno;
23765 #endif
23766
23767 #ifdef HAVE_LINUX_THREADS
23768         pthread_kill_other_threads_np();
23769 #endif
23770
23771         return 0;
23772
23773 }
23774
23775 _ACEOF
23776 rm -f conftest$ac_exeext
23777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23778   (eval $ac_link) 2>&5
23779   ac_status=$?
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783   (eval $ac_try) 2>&5
23784   ac_status=$?
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); }; }; then
23787   ol_cv_pthread_lpthreads_lexc=yes
23788 else
23789   echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793 ( exit $ac_status )
23794 ol_cv_pthread_lpthreads_lexc=no
23795 fi
23796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23797 fi
23798
23799                 # restore the LIBS
23800                 LIBS="$ol_LIBS"
23801
23802 fi
23803 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23804 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23805
23806         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23807                 ol_link_pthreads="-lpthreads -lexc"
23808                 ol_link_threads=posix
23809         fi
23810 fi
23811
23812
23813                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23814 if test "$ol_link_threads" = no ; then
23815         # try -lpthreads
23816         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23817 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23818 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23819   echo $ECHO_N "(cached) $ECHO_C" >&6
23820 else
23821
23822                 # save the flags
23823                 ol_LIBS="$LIBS"
23824                 LIBS="-lpthreads $LIBS"
23825
23826                 if test "$cross_compiling" = yes; then
23827   cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h.  */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h.  */
23833
23834 /* pthread test headers */
23835 #include <pthread.h>
23836 #if HAVE_PTHREADS < 7
23837 #include <errno.h>
23838 #endif
23839 #ifndef NULL
23840 #define NULL (void*)0
23841 #endif
23842
23843 static void *task(p)
23844         void *p;
23845 {
23846         return (void *) (p == NULL);
23847 }
23848
23849 int
23850 main ()
23851 {
23852
23853         /* pthread test function */
23854 #ifndef PTHREAD_CREATE_DETACHED
23855 #define PTHREAD_CREATE_DETACHED 1
23856 #endif
23857         pthread_t t;
23858         int status;
23859         int detach = PTHREAD_CREATE_DETACHED;
23860
23861 #if HAVE_PTHREADS > 4
23862         /* Final pthreads */
23863         pthread_attr_t attr;
23864
23865         status = pthread_attr_init(&attr);
23866         if( status ) return status;
23867
23868 #if HAVE_PTHREADS < 7
23869         status = pthread_attr_setdetachstate(&attr, &detach);
23870         if( status < 0 ) status = errno;
23871 #else
23872         status = pthread_attr_setdetachstate(&attr, detach);
23873 #endif
23874         if( status ) return status;
23875         status = pthread_create( &t, &attr, task, NULL );
23876 #if HAVE_PTHREADS < 7
23877         if( status < 0 ) status = errno;
23878 #endif
23879         if( status ) return status;
23880 #else
23881         /* Draft 4 pthreads */
23882         status = pthread_create( &t, pthread_attr_default, task, NULL );
23883         if( status ) return errno;
23884
23885         /* give thread a chance to complete */
23886         /* it should remain joinable and hence detachable */
23887         sleep( 1 );
23888
23889         status = pthread_detach( &t );
23890         if( status ) return errno;
23891 #endif
23892
23893 #ifdef HAVE_LINUX_THREADS
23894         pthread_kill_other_threads_np();
23895 #endif
23896
23897         return 0;
23898
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 rm -f conftest.$ac_objext conftest$ac_exeext
23904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23905   (eval $ac_link) 2>conftest.er1
23906   ac_status=$?
23907   grep -v '^ *+' conftest.er1 >conftest.err
23908   rm -f conftest.er1
23909   cat conftest.err >&5
23910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911   (exit $ac_status); } &&
23912          { ac_try='test -z "$ac_c_werror_flag"
23913                          || test ! -s conftest.err'
23914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915   (eval $ac_try) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); }; } &&
23919          { ac_try='test -s conftest$ac_exeext'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; }; then
23925   ol_cv_pthread_lib_lpthreads=yes
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930 ol_cv_pthread_lib_lpthreads=no
23931 fi
23932 rm -f conftest.err conftest.$ac_objext \
23933       conftest$ac_exeext conftest.$ac_ext
23934 else
23935   cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941
23942 /* pthread test headers */
23943 #include <pthread.h>
23944 #if HAVE_PTHREADS < 7
23945 #include <errno.h>
23946 #endif
23947 #ifndef NULL
23948 #define NULL (void*)0
23949 #endif
23950
23951 static void *task(p)
23952         void *p;
23953 {
23954         return (void *) (p == NULL);
23955 }
23956
23957
23958 int main(argc, argv)
23959         int argc;
23960         char **argv;
23961 {
23962
23963         /* pthread test function */
23964 #ifndef PTHREAD_CREATE_DETACHED
23965 #define PTHREAD_CREATE_DETACHED 1
23966 #endif
23967         pthread_t t;
23968         int status;
23969         int detach = PTHREAD_CREATE_DETACHED;
23970
23971 #if HAVE_PTHREADS > 4
23972         /* Final pthreads */
23973         pthread_attr_t attr;
23974
23975         status = pthread_attr_init(&attr);
23976         if( status ) return status;
23977
23978 #if HAVE_PTHREADS < 7
23979         status = pthread_attr_setdetachstate(&attr, &detach);
23980         if( status < 0 ) status = errno;
23981 #else
23982         status = pthread_attr_setdetachstate(&attr, detach);
23983 #endif
23984         if( status ) return status;
23985         status = pthread_create( &t, &attr, task, NULL );
23986 #if HAVE_PTHREADS < 7
23987         if( status < 0 ) status = errno;
23988 #endif
23989         if( status ) return status;
23990 #else
23991         /* Draft 4 pthreads */
23992         status = pthread_create( &t, pthread_attr_default, task, NULL );
23993         if( status ) return errno;
23994
23995         /* give thread a chance to complete */
23996         /* it should remain joinable and hence detachable */
23997         sleep( 1 );
23998
23999         status = pthread_detach( &t );
24000         if( status ) return errno;
24001 #endif
24002
24003 #ifdef HAVE_LINUX_THREADS
24004         pthread_kill_other_threads_np();
24005 #endif
24006
24007         return 0;
24008
24009 }
24010
24011 _ACEOF
24012 rm -f conftest$ac_exeext
24013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24014   (eval $ac_link) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019   (eval $ac_try) 2>&5
24020   ac_status=$?
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); }; }; then
24023   ol_cv_pthread_lib_lpthreads=yes
24024 else
24025   echo "$as_me: program exited with status $ac_status" >&5
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24028
24029 ( exit $ac_status )
24030 ol_cv_pthread_lib_lpthreads=no
24031 fi
24032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24033 fi
24034
24035                 # restore the LIBS
24036                 LIBS="$ol_LIBS"
24037
24038 fi
24039 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24040 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24041
24042         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24043                 ol_link_pthreads="-lpthreads"
24044                 ol_link_threads=posix
24045         fi
24046 fi
24047
24048
24049                 if test $ol_link_threads != no ; then
24050                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24051
24052                                                 save_CPPFLAGS="$CPPFLAGS"
24053                         save_LIBS="$LIBS"
24054                         LIBS="$LTHREAD_LIBS $LIBS"
24055
24056
24057
24058
24059 for ac_func in sched_yield pthread_yield thr_yield
24060 do
24061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24062 echo "$as_me:$LINENO: checking for $ac_func" >&5
24063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24064 if eval "test \"\${$as_ac_var+set}\" = set"; then
24065   echo $ECHO_N "(cached) $ECHO_C" >&6
24066 else
24067   cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24075 #define $ac_func innocuous_$ac_func
24076
24077 /* System header to define __stub macros and hopefully few prototypes,
24078     which can conflict with char $ac_func (); below.
24079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080     <limits.h> exists even on freestanding compilers.  */
24081
24082 #ifdef __STDC__
24083 # include <limits.h>
24084 #else
24085 # include <assert.h>
24086 #endif
24087
24088 #undef $ac_func
24089
24090 /* Override any gcc2 internal prototype to avoid an error.  */
24091 #ifdef __cplusplus
24092 extern "C"
24093 {
24094 #endif
24095 /* We use char because int might match the return type of a gcc2
24096    builtin and then its argument prototype would still apply.  */
24097 char $ac_func ();
24098 /* The GNU C library defines this for functions which it implements
24099     to always fail with ENOSYS.  Some functions are actually named
24100     something starting with __ and the normal name is an alias.  */
24101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24102 choke me
24103 #else
24104 char (*f) () = $ac_func;
24105 #endif
24106 #ifdef __cplusplus
24107 }
24108 #endif
24109
24110 int
24111 main ()
24112 {
24113 return f != $ac_func;
24114   ;
24115   return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest.$ac_objext conftest$ac_exeext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24120   (eval $ac_link) 2>conftest.er1
24121   ac_status=$?
24122   grep -v '^ *+' conftest.er1 >conftest.err
24123   rm -f conftest.er1
24124   cat conftest.err >&5
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); } &&
24127          { ac_try='test -z "$ac_c_werror_flag"
24128                          || test ! -s conftest.err'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; } &&
24134          { ac_try='test -s conftest$ac_exeext'
24135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136   (eval $ac_try) 2>&5
24137   ac_status=$?
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); }; }; then
24140   eval "$as_ac_var=yes"
24141 else
24142   echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 eval "$as_ac_var=no"
24146 fi
24147 rm -f conftest.err conftest.$ac_objext \
24148       conftest$ac_exeext conftest.$ac_ext
24149 fi
24150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24152 if test `eval echo '${'$as_ac_var'}'` = yes; then
24153   cat >>confdefs.h <<_ACEOF
24154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24155 _ACEOF
24156
24157 fi
24158 done
24159
24160
24161                         if test $ac_cv_func_sched_yield = no &&
24162                            test $ac_cv_func_pthread_yield = no &&
24163                            test $ac_cv_func_thr_yield = no ; then
24164                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24165 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24166 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24167   echo $ECHO_N "(cached) $ECHO_C" >&6
24168 else
24169   ac_check_lib_save_LIBS=$LIBS
24170 LIBS="-lrt  $LIBS"
24171 cat >conftest.$ac_ext <<_ACEOF
24172 /* confdefs.h.  */
24173 _ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h.  */
24177
24178 /* Override any gcc2 internal prototype to avoid an error.  */
24179 #ifdef __cplusplus
24180 extern "C"
24181 #endif
24182 /* We use char because int might match the return type of a gcc2
24183    builtin and then its argument prototype would still apply.  */
24184 char sched_yield ();
24185 int
24186 main ()
24187 {
24188 sched_yield ();
24189   ;
24190   return 0;
24191 }
24192 _ACEOF
24193 rm -f conftest.$ac_objext conftest$ac_exeext
24194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24195   (eval $ac_link) 2>conftest.er1
24196   ac_status=$?
24197   grep -v '^ *+' conftest.er1 >conftest.err
24198   rm -f conftest.er1
24199   cat conftest.err >&5
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } &&
24202          { ac_try='test -z "$ac_c_werror_flag"
24203                          || test ! -s conftest.err'
24204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205   (eval $ac_try) 2>&5
24206   ac_status=$?
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); }; } &&
24209          { ac_try='test -s conftest$ac_exeext'
24210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211   (eval $ac_try) 2>&5
24212   ac_status=$?
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); }; }; then
24215   ac_cv_lib_rt_sched_yield=yes
24216 else
24217   echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24219
24220 ac_cv_lib_rt_sched_yield=no
24221 fi
24222 rm -f conftest.err conftest.$ac_objext \
24223       conftest$ac_exeext conftest.$ac_ext
24224 LIBS=$ac_check_lib_save_LIBS
24225 fi
24226 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24227 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24228 if test $ac_cv_lib_rt_sched_yield = yes; then
24229   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24230
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_SCHED_YIELD 1
24233 _ACEOF
24234
24235                                         ac_cv_func_sched_yield=yes
24236 else
24237   ac_cv_func_sched_yield=no
24238 fi
24239
24240                         fi
24241                         if test $ac_cv_func_sched_yield = no &&
24242                            test $ac_cv_func_pthread_yield = no &&
24243                            test "$ac_cv_func_thr_yield" = no ; then
24244                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24245 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24246                         fi
24247
24248
24249
24250 for ac_func in pthread_kill pthread_rwlock_destroy
24251 do
24252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24253 echo "$as_me:$LINENO: checking for $ac_func" >&5
24254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24255 if eval "test \"\${$as_ac_var+set}\" = set"; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258   cat >conftest.$ac_ext <<_ACEOF
24259 /* confdefs.h.  */
24260 _ACEOF
24261 cat confdefs.h >>conftest.$ac_ext
24262 cat >>conftest.$ac_ext <<_ACEOF
24263 /* end confdefs.h.  */
24264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24266 #define $ac_func innocuous_$ac_func
24267
24268 /* System header to define __stub macros and hopefully few prototypes,
24269     which can conflict with char $ac_func (); below.
24270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24271     <limits.h> exists even on freestanding compilers.  */
24272
24273 #ifdef __STDC__
24274 # include <limits.h>
24275 #else
24276 # include <assert.h>
24277 #endif
24278
24279 #undef $ac_func
24280
24281 /* Override any gcc2 internal prototype to avoid an error.  */
24282 #ifdef __cplusplus
24283 extern "C"
24284 {
24285 #endif
24286 /* We use char because int might match the return type of a gcc2
24287    builtin and then its argument prototype would still apply.  */
24288 char $ac_func ();
24289 /* The GNU C library defines this for functions which it implements
24290     to always fail with ENOSYS.  Some functions are actually named
24291     something starting with __ and the normal name is an alias.  */
24292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24293 choke me
24294 #else
24295 char (*f) () = $ac_func;
24296 #endif
24297 #ifdef __cplusplus
24298 }
24299 #endif
24300
24301 int
24302 main ()
24303 {
24304 return f != $ac_func;
24305   ;
24306   return 0;
24307 }
24308 _ACEOF
24309 rm -f conftest.$ac_objext conftest$ac_exeext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24311   (eval $ac_link) 2>conftest.er1
24312   ac_status=$?
24313   grep -v '^ *+' conftest.er1 >conftest.err
24314   rm -f conftest.er1
24315   cat conftest.err >&5
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); } &&
24318          { ac_try='test -z "$ac_c_werror_flag"
24319                          || test ! -s conftest.err'
24320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321   (eval $ac_try) 2>&5
24322   ac_status=$?
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); }; } &&
24325          { ac_try='test -s conftest$ac_exeext'
24326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327   (eval $ac_try) 2>&5
24328   ac_status=$?
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); }; }; then
24331   eval "$as_ac_var=yes"
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336 eval "$as_ac_var=no"
24337 fi
24338 rm -f conftest.err conftest.$ac_objext \
24339       conftest$ac_exeext conftest.$ac_ext
24340 fi
24341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24343 if test `eval echo '${'$as_ac_var'}'` = yes; then
24344   cat >>confdefs.h <<_ACEOF
24345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24346 _ACEOF
24347
24348 fi
24349 done
24350
24351
24352                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24353 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24354 if test "${ol_cv_func_pthread_detach+set}" = set; then
24355   echo $ECHO_N "(cached) $ECHO_C" >&6
24356 else
24357
24358                                                                 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364
24365 #include <pthread.h>
24366 #ifndef NULL
24367 #define NULL (void*)0
24368 #endif
24369
24370 int
24371 main ()
24372 {
24373 pthread_detach(NULL);
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24380   (eval $ac_link) 2>conftest.er1
24381   ac_status=$?
24382   grep -v '^ *+' conftest.er1 >conftest.err
24383   rm -f conftest.er1
24384   cat conftest.err >&5
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); } &&
24387          { ac_try='test -z "$ac_c_werror_flag"
24388                          || test ! -s conftest.err'
24389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390   (eval $ac_try) 2>&5
24391   ac_status=$?
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); }; } &&
24394          { ac_try='test -s conftest$ac_exeext'
24395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396   (eval $ac_try) 2>&5
24397   ac_status=$?
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); }; }; then
24400   ol_cv_func_pthread_detach=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24404
24405 ol_cv_func_pthread_detach=no
24406 fi
24407 rm -f conftest.err conftest.$ac_objext \
24408       conftest$ac_exeext conftest.$ac_ext
24409
24410 fi
24411 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24412 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24413
24414                         if test $ol_cv_func_pthread_detach = no ; then
24415                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24416 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24417    { (exit 1); exit 1; }; }
24418                         fi
24419
24420
24421 cat >>confdefs.h <<\_ACEOF
24422 #define HAVE_PTHREAD_DETACH 1
24423 _ACEOF
24424
24425
24426
24427
24428
24429
24430 for ac_func in \
24431                                 pthread_setconcurrency \
24432                                 pthread_getconcurrency \
24433                                 thr_setconcurrency \
24434                                 thr_getconcurrency \
24435
24436 do
24437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24438 echo "$as_me:$LINENO: checking for $ac_func" >&5
24439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24440 if eval "test \"\${$as_ac_var+set}\" = set"; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24443   cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24451 #define $ac_func innocuous_$ac_func
24452
24453 /* System header to define __stub macros and hopefully few prototypes,
24454     which can conflict with char $ac_func (); below.
24455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24456     <limits.h> exists even on freestanding compilers.  */
24457
24458 #ifdef __STDC__
24459 # include <limits.h>
24460 #else
24461 # include <assert.h>
24462 #endif
24463
24464 #undef $ac_func
24465
24466 /* Override any gcc2 internal prototype to avoid an error.  */
24467 #ifdef __cplusplus
24468 extern "C"
24469 {
24470 #endif
24471 /* We use char because int might match the return type of a gcc2
24472    builtin and then its argument prototype would still apply.  */
24473 char $ac_func ();
24474 /* The GNU C library defines this for functions which it implements
24475     to always fail with ENOSYS.  Some functions are actually named
24476     something starting with __ and the normal name is an alias.  */
24477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24478 choke me
24479 #else
24480 char (*f) () = $ac_func;
24481 #endif
24482 #ifdef __cplusplus
24483 }
24484 #endif
24485
24486 int
24487 main ()
24488 {
24489 return f != $ac_func;
24490   ;
24491   return 0;
24492 }
24493 _ACEOF
24494 rm -f conftest.$ac_objext conftest$ac_exeext
24495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24496   (eval $ac_link) 2>conftest.er1
24497   ac_status=$?
24498   grep -v '^ *+' conftest.er1 >conftest.err
24499   rm -f conftest.er1
24500   cat conftest.err >&5
24501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); } &&
24503          { ac_try='test -z "$ac_c_werror_flag"
24504                          || test ! -s conftest.err'
24505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506   (eval $ac_try) 2>&5
24507   ac_status=$?
24508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509   (exit $ac_status); }; } &&
24510          { ac_try='test -s conftest$ac_exeext'
24511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512   (eval $ac_try) 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; }; then
24516   eval "$as_ac_var=yes"
24517 else
24518   echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 eval "$as_ac_var=no"
24522 fi
24523 rm -f conftest.err conftest.$ac_objext \
24524       conftest$ac_exeext conftest.$ac_ext
24525 fi
24526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24528 if test `eval echo '${'$as_ac_var'}'` = yes; then
24529   cat >>confdefs.h <<_ACEOF
24530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24531 _ACEOF
24532
24533 fi
24534 done
24535
24536
24537
24538
24539 for ac_func in pthread_kill_other_threads_np
24540 do
24541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24542 echo "$as_me:$LINENO: checking for $ac_func" >&5
24543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24544 if eval "test \"\${$as_ac_var+set}\" = set"; then
24545   echo $ECHO_N "(cached) $ECHO_C" >&6
24546 else
24547   cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h.  */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h.  */
24553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24555 #define $ac_func innocuous_$ac_func
24556
24557 /* System header to define __stub macros and hopefully few prototypes,
24558     which can conflict with char $ac_func (); below.
24559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24560     <limits.h> exists even on freestanding compilers.  */
24561
24562 #ifdef __STDC__
24563 # include <limits.h>
24564 #else
24565 # include <assert.h>
24566 #endif
24567
24568 #undef $ac_func
24569
24570 /* Override any gcc2 internal prototype to avoid an error.  */
24571 #ifdef __cplusplus
24572 extern "C"
24573 {
24574 #endif
24575 /* We use char because int might match the return type of a gcc2
24576    builtin and then its argument prototype would still apply.  */
24577 char $ac_func ();
24578 /* The GNU C library defines this for functions which it implements
24579     to always fail with ENOSYS.  Some functions are actually named
24580     something starting with __ and the normal name is an alias.  */
24581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24582 choke me
24583 #else
24584 char (*f) () = $ac_func;
24585 #endif
24586 #ifdef __cplusplus
24587 }
24588 #endif
24589
24590 int
24591 main ()
24592 {
24593 return f != $ac_func;
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest.$ac_objext conftest$ac_exeext
24599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24600   (eval $ac_link) 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } &&
24607          { ac_try='test -z "$ac_c_werror_flag"
24608                          || test ! -s conftest.err'
24609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610   (eval $ac_try) 2>&5
24611   ac_status=$?
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); }; } &&
24614          { ac_try='test -s conftest$ac_exeext'
24615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616   (eval $ac_try) 2>&5
24617   ac_status=$?
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); }; }; then
24620   eval "$as_ac_var=yes"
24621 else
24622   echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24624
24625 eval "$as_ac_var=no"
24626 fi
24627 rm -f conftest.err conftest.$ac_objext \
24628       conftest$ac_exeext conftest.$ac_ext
24629 fi
24630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24632 if test `eval echo '${'$as_ac_var'}'` = yes; then
24633   cat >>confdefs.h <<_ACEOF
24634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24635 _ACEOF
24636
24637 fi
24638 done
24639
24640         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24641 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24642 if test "${ol_cv_sys_linux_threads+set}" = set; then
24643   echo $ECHO_N "(cached) $ECHO_C" >&6
24644 else
24645   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24646 fi
24647 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24648 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24649
24650
24651
24652
24653         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24654 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24655 if test "${ol_cv_linux_threads+set}" = set; then
24656   echo $ECHO_N "(cached) $ECHO_C" >&6
24657 else
24658
24659                 if test $ol_cv_header_linux_threads = yes &&
24660                    test $ol_cv_sys_linux_threads = yes; then
24661                         ol_cv_linux_threads=yes
24662                 elif test $ol_cv_header_linux_threads = no &&
24663                      test $ol_cv_sys_linux_threads = no; then
24664                         ol_cv_linux_threads=no
24665                 else
24666                         ol_cv_linux_threads=error
24667                 fi
24668
24669 fi
24670 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24671 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24672
24673
24674                         if test $ol_cv_linux_threads = error; then
24675                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24676 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24677    { (exit 1); exit 1; }; };
24678                         fi
24679
24680                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24681 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24682 if test "${ol_cv_pthread_create_works+set}" = set; then
24683   echo $ECHO_N "(cached) $ECHO_C" >&6
24684 else
24685
24686                         if test "$cross_compiling" = yes; then
24687                                 ol_cv_pthread_create_works=yes
24688 else
24689   cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695
24696 /* pthread test headers */
24697 #include <pthread.h>
24698 #if HAVE_PTHREADS < 7
24699 #include <errno.h>
24700 #endif
24701 #ifndef NULL
24702 #define NULL (void*)0
24703 #endif
24704
24705 static void *task(p)
24706         void *p;
24707 {
24708         return (void *) (p == NULL);
24709 }
24710
24711
24712 int main(argc, argv)
24713         int argc;
24714         char **argv;
24715 {
24716
24717         /* pthread test function */
24718 #ifndef PTHREAD_CREATE_DETACHED
24719 #define PTHREAD_CREATE_DETACHED 1
24720 #endif
24721         pthread_t t;
24722         int status;
24723         int detach = PTHREAD_CREATE_DETACHED;
24724
24725 #if HAVE_PTHREADS > 4
24726         /* Final pthreads */
24727         pthread_attr_t attr;
24728
24729         status = pthread_attr_init(&attr);
24730         if( status ) return status;
24731
24732 #if HAVE_PTHREADS < 7
24733         status = pthread_attr_setdetachstate(&attr, &detach);
24734         if( status < 0 ) status = errno;
24735 #else
24736         status = pthread_attr_setdetachstate(&attr, detach);
24737 #endif
24738         if( status ) return status;
24739         status = pthread_create( &t, &attr, task, NULL );
24740 #if HAVE_PTHREADS < 7
24741         if( status < 0 ) status = errno;
24742 #endif
24743         if( status ) return status;
24744 #else
24745         /* Draft 4 pthreads */
24746         status = pthread_create( &t, pthread_attr_default, task, NULL );
24747         if( status ) return errno;
24748
24749         /* give thread a chance to complete */
24750         /* it should remain joinable and hence detachable */
24751         sleep( 1 );
24752
24753         status = pthread_detach( &t );
24754         if( status ) return errno;
24755 #endif
24756
24757 #ifdef HAVE_LINUX_THREADS
24758         pthread_kill_other_threads_np();
24759 #endif
24760
24761         return 0;
24762
24763 }
24764
24765 _ACEOF
24766 rm -f conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768   (eval $ac_link) 2>&5
24769   ac_status=$?
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773   (eval $ac_try) 2>&5
24774   ac_status=$?
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); }; }; then
24777   ol_cv_pthread_create_works=yes
24778 else
24779   echo "$as_me: program exited with status $ac_status" >&5
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783 ( exit $ac_status )
24784 ol_cv_pthread_create_works=no
24785 fi
24786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24787 fi
24788 fi
24789 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24790 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24791
24792                         if test $ol_cv_pthread_create_works = no ; then
24793                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24794 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24795    { (exit 1); exit 1; }; }
24796                         fi
24797
24798                         ol_replace_broken_yield=no
24799                         case "$target" in
24800                         *-*-linux*)
24801                                 ol_replace_broken_yield=yes
24802                         ;;
24803                         esac
24804
24805                         if test $ol_replace_broken_yield = yes ; then
24806
24807 cat >>confdefs.h <<\_ACEOF
24808 #define REPLACE_BROKEN_YIELD 1
24809 _ACEOF
24810
24811                         fi
24812
24813                                                 if test $ol_with_yielding_select = auto ; then
24814                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24815 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24816 if test "${ol_cv_pthread_select_yields+set}" = set; then
24817   echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819
24820                                 if test "$cross_compiling" = yes; then
24821   ol_cv_pthread_select_yields=cross
24822 else
24823   cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h.  */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h.  */
24829
24830 #include <sys/types.h>
24831 #include <sys/time.h>
24832 #include <unistd.h>
24833 #include <pthread.h>
24834 #ifndef NULL
24835 #define NULL (void*) 0
24836 #endif
24837
24838 static int fildes[2];
24839
24840 static void *task(p)
24841         void *p;
24842 {
24843         int i;
24844         struct timeval tv;
24845
24846         fd_set rfds;
24847
24848         tv.tv_sec=10;
24849         tv.tv_usec=0;
24850
24851         FD_ZERO(&rfds);
24852         FD_SET(fildes[0], &rfds);
24853
24854         /* we're not interested in any fds */
24855         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24856
24857         if(i < 0) {
24858                 perror("select");
24859                 exit(10);
24860         }
24861
24862         exit(0); /* if we exit here, the select blocked the whole process */
24863 }
24864
24865 int main(argc, argv)
24866         int argc;
24867         char **argv;
24868 {
24869         pthread_t t;
24870
24871         /* create a pipe to select */
24872         if(pipe(&fildes[0])) {
24873                 perror("select");
24874                 exit(1);
24875         }
24876
24877 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24878         (void) pthread_setconcurrency(2);
24879 #else
24880 #ifdef HAVE_THR_SETCONCURRENCY
24881         /* Set Solaris LWP concurrency to 2 */
24882         thr_setconcurrency(2);
24883 #endif
24884 #endif
24885
24886 #if HAVE_PTHREADS < 6
24887         pthread_create(&t, pthread_attr_default, task, NULL);
24888 #else
24889         pthread_create(&t, NULL, task, NULL);
24890 #endif
24891
24892         /* make sure task runs first */
24893 #if HAVE_THR_YIELD
24894         thr_yield();
24895 #elif defined( HAVE_SCHED_YIELD )
24896         sched_yield();
24897 #elif defined( HAVE_PTHREAD_YIELD )
24898         pthread_yield();
24899 #endif
24900
24901         exit(2);
24902 }
24903 _ACEOF
24904 rm -f conftest$ac_exeext
24905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24906   (eval $ac_link) 2>&5
24907   ac_status=$?
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ol_cv_pthread_select_yields=no
24916 else
24917   echo "$as_me: program exited with status $ac_status" >&5
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24920
24921 ( exit $ac_status )
24922 ol_cv_pthread_select_yields=yes
24923 fi
24924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24925 fi
24926 fi
24927 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24928 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24929
24930                                 if test $ol_cv_pthread_select_yields = cross ; then
24931                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24932 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24933    { (exit 1); exit 1; }; }
24934                                 fi
24935
24936                                 if test $ol_cv_pthread_select_yields = yes ; then
24937                                         ol_with_yielding_select=yes
24938                                 fi
24939                         fi
24940
24941                                                 CPPFLAGS="$save_CPPFLAGS"
24942                         LIBS="$save_LIBS"
24943                 else
24944                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24945 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24946    { (exit 1); exit 1; }; }
24947                 fi
24948         fi
24949
24950         if test $ol_with_threads = posix ; then
24951                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24952 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24953    { (exit 1); exit 1; }; }
24954         fi
24955         ;;
24956 esac
24957
24958 case $ol_with_threads in auto | yes | mach)
24959
24960
24961
24962 for ac_header in mach/cthreads.h cthreads.h
24963 do
24964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24966   echo "$as_me:$LINENO: checking for $ac_header" >&5
24967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24969   echo $ECHO_N "(cached) $ECHO_C" >&6
24970 fi
24971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24973 else
24974   # Is the header compilable?
24975 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h.  */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h.  */
24983 $ac_includes_default
24984 #include <$ac_header>
24985 _ACEOF
24986 rm -f conftest.$ac_objext
24987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24988   (eval $ac_compile) 2>conftest.er1
24989   ac_status=$?
24990   grep -v '^ *+' conftest.er1 >conftest.err
24991   rm -f conftest.er1
24992   cat conftest.err >&5
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); } &&
24995          { ac_try='test -z "$ac_c_werror_flag"
24996                          || test ! -s conftest.err'
24997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998   (eval $ac_try) 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; } &&
25002          { ac_try='test -s conftest.$ac_objext'
25003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25004   (eval $ac_try) 2>&5
25005   ac_status=$?
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); }; }; then
25008   ac_header_compiler=yes
25009 else
25010   echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.$ac_ext >&5
25012
25013 ac_header_compiler=no
25014 fi
25015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25016 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25017 echo "${ECHO_T}$ac_header_compiler" >&6
25018
25019 # Is the header present?
25020 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25021 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25022 cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h.  */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h.  */
25028 #include <$ac_header>
25029 _ACEOF
25030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25032   ac_status=$?
25033   grep -v '^ *+' conftest.er1 >conftest.err
25034   rm -f conftest.er1
25035   cat conftest.err >&5
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); } >/dev/null; then
25038   if test -s conftest.err; then
25039     ac_cpp_err=$ac_c_preproc_warn_flag
25040     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25041   else
25042     ac_cpp_err=
25043   fi
25044 else
25045   ac_cpp_err=yes
25046 fi
25047 if test -z "$ac_cpp_err"; then
25048   ac_header_preproc=yes
25049 else
25050   echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053   ac_header_preproc=no
25054 fi
25055 rm -f conftest.err conftest.$ac_ext
25056 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25057 echo "${ECHO_T}$ac_header_preproc" >&6
25058
25059 # So?  What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25061   yes:no: )
25062     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25063 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25065 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25066     ac_header_preproc=yes
25067     ;;
25068   no:yes:* )
25069     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25070 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25071     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25072 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25073     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25074 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25075     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25076 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25078 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25079     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25080 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25081     (
25082       cat <<\_ASBOX
25083 ## ------------------------------------------ ##
25084 ## Report this to the AC_PACKAGE_NAME lists.  ##
25085 ## ------------------------------------------ ##
25086 _ASBOX
25087     ) |
25088       sed "s/^/$as_me: WARNING:     /" >&2
25089     ;;
25090 esac
25091 echo "$as_me:$LINENO: checking for $ac_header" >&5
25092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25094   echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096   eval "$as_ac_Header=\$ac_header_preproc"
25097 fi
25098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25100
25101 fi
25102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25103   cat >>confdefs.h <<_ACEOF
25104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25105 _ACEOF
25106
25107 fi
25108
25109 done
25110
25111         if test $ac_cv_header_mach_cthreads_h = yes ; then
25112                 ol_with_threads=found
25113
25114                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25115 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25116 if test "${ac_cv_func_cthread_fork+set}" = set; then
25117   echo $ECHO_N "(cached) $ECHO_C" >&6
25118 else
25119   cat >conftest.$ac_ext <<_ACEOF
25120 /* confdefs.h.  */
25121 _ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h.  */
25125 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25127 #define cthread_fork innocuous_cthread_fork
25128
25129 /* System header to define __stub macros and hopefully few prototypes,
25130     which can conflict with char cthread_fork (); below.
25131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25132     <limits.h> exists even on freestanding compilers.  */
25133
25134 #ifdef __STDC__
25135 # include <limits.h>
25136 #else
25137 # include <assert.h>
25138 #endif
25139
25140 #undef cthread_fork
25141
25142 /* Override any gcc2 internal prototype to avoid an error.  */
25143 #ifdef __cplusplus
25144 extern "C"
25145 {
25146 #endif
25147 /* We use char because int might match the return type of a gcc2
25148    builtin and then its argument prototype would still apply.  */
25149 char cthread_fork ();
25150 /* The GNU C library defines this for functions which it implements
25151     to always fail with ENOSYS.  Some functions are actually named
25152     something starting with __ and the normal name is an alias.  */
25153 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25154 choke me
25155 #else
25156 char (*f) () = cthread_fork;
25157 #endif
25158 #ifdef __cplusplus
25159 }
25160 #endif
25161
25162 int
25163 main ()
25164 {
25165 return f != cthread_fork;
25166   ;
25167   return 0;
25168 }
25169 _ACEOF
25170 rm -f conftest.$ac_objext conftest$ac_exeext
25171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25172   (eval $ac_link) 2>conftest.er1
25173   ac_status=$?
25174   grep -v '^ *+' conftest.er1 >conftest.err
25175   rm -f conftest.er1
25176   cat conftest.err >&5
25177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178   (exit $ac_status); } &&
25179          { ac_try='test -z "$ac_c_werror_flag"
25180                          || test ! -s conftest.err'
25181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182   (eval $ac_try) 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; } &&
25186          { ac_try='test -s conftest$ac_exeext'
25187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; }; then
25192   ac_cv_func_cthread_fork=yes
25193 else
25194   echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197 ac_cv_func_cthread_fork=no
25198 fi
25199 rm -f conftest.err conftest.$ac_objext \
25200       conftest$ac_exeext conftest.$ac_ext
25201 fi
25202 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25203 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25204 if test $ac_cv_func_cthread_fork = yes; then
25205   ol_link_threads=yes
25206 fi
25207
25208
25209                 if test $ol_link_threads = no ; then
25210                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25211 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25212 if test "${ol_cv_cthread_all_load+set}" = set; then
25213   echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215
25216                                                                 save_LIBS="$LIBS"
25217                                 LIBS="-all_load $LIBS"
25218                                 cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h.  */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h.  */
25224 #include <mach/cthreads.h>
25225 int
25226 main ()
25227 {
25228
25229                                         cthread_fork((void *)0, (void *)0);
25230
25231   ;
25232   return 0;
25233 }
25234 _ACEOF
25235 rm -f conftest.$ac_objext conftest$ac_exeext
25236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25237   (eval $ac_link) 2>conftest.er1
25238   ac_status=$?
25239   grep -v '^ *+' conftest.er1 >conftest.err
25240   rm -f conftest.er1
25241   cat conftest.err >&5
25242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243   (exit $ac_status); } &&
25244          { ac_try='test -z "$ac_c_werror_flag"
25245                          || test ! -s conftest.err'
25246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247   (eval $ac_try) 2>&5
25248   ac_status=$?
25249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250   (exit $ac_status); }; } &&
25251          { ac_try='test -s conftest$ac_exeext'
25252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253   (eval $ac_try) 2>&5
25254   ac_status=$?
25255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); }; }; then
25257   ol_cv_cthread_all_load=yes
25258 else
25259   echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25261
25262 ol_cv_cthread_all_load=no
25263 fi
25264 rm -f conftest.err conftest.$ac_objext \
25265       conftest$ac_exeext conftest.$ac_ext
25266                                                                 LIBS="$save_LIBS"
25267
25268 fi
25269 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25270 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25271
25272                         if test $ol_cv_cthread_all_load = yes ; then
25273                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25274                                 ol_link_threads=mach
25275                                 ol_with_threads=found
25276                         fi
25277                 fi
25278
25279         elif test $ac_cv_header_cthreads_h = yes ; then
25280
25281                 ol_with_threads=found
25282
25283                                 save_LIBS="$LIBS"
25284                 LIBS="$LIBS -lthreads"
25285                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25286 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25287 if test "${ac_cv_func_cthread_fork+set}" = set; then
25288   echo $ECHO_N "(cached) $ECHO_C" >&6
25289 else
25290   cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25298 #define cthread_fork innocuous_cthread_fork
25299
25300 /* System header to define __stub macros and hopefully few prototypes,
25301     which can conflict with char cthread_fork (); below.
25302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25303     <limits.h> exists even on freestanding compilers.  */
25304
25305 #ifdef __STDC__
25306 # include <limits.h>
25307 #else
25308 # include <assert.h>
25309 #endif
25310
25311 #undef cthread_fork
25312
25313 /* Override any gcc2 internal prototype to avoid an error.  */
25314 #ifdef __cplusplus
25315 extern "C"
25316 {
25317 #endif
25318 /* We use char because int might match the return type of a gcc2
25319    builtin and then its argument prototype would still apply.  */
25320 char cthread_fork ();
25321 /* The GNU C library defines this for functions which it implements
25322     to always fail with ENOSYS.  Some functions are actually named
25323     something starting with __ and the normal name is an alias.  */
25324 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25325 choke me
25326 #else
25327 char (*f) () = cthread_fork;
25328 #endif
25329 #ifdef __cplusplus
25330 }
25331 #endif
25332
25333 int
25334 main ()
25335 {
25336 return f != cthread_fork;
25337   ;
25338   return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343   (eval $ac_link) 2>conftest.er1
25344   ac_status=$?
25345   grep -v '^ *+' conftest.er1 >conftest.err
25346   rm -f conftest.er1
25347   cat conftest.err >&5
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); } &&
25350          { ac_try='test -z "$ac_c_werror_flag"
25351                          || test ! -s conftest.err'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; } &&
25357          { ac_try='test -s conftest$ac_exeext'
25358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359   (eval $ac_try) 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; }; then
25363   ac_cv_func_cthread_fork=yes
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 ac_cv_func_cthread_fork=no
25369 fi
25370 rm -f conftest.err conftest.$ac_objext \
25371       conftest$ac_exeext conftest.$ac_ext
25372 fi
25373 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25374 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25375 if test $ac_cv_func_cthread_fork = yes; then
25376   ol_link_threads=yes
25377 fi
25378
25379                 LIBS="$save_LIBS"
25380
25381                 if test $ol_link_threads = yes ; then
25382                         LTHREAD_LIBS="-lthreads"
25383                         ol_link_threads=mach
25384                         ol_with_threads=found
25385                 else
25386                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25387 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25388    { (exit 1); exit 1; }; }
25389                 fi
25390
25391         elif test $ol_with_threads = mach ; then
25392                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25393 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25394    { (exit 1); exit 1; }; }
25395         fi
25396
25397         if test $ol_link_threads = mach ; then
25398
25399 cat >>confdefs.h <<\_ACEOF
25400 #define HAVE_MACH_CTHREADS 1
25401 _ACEOF
25402
25403         elif test $ol_with_threads = found ; then
25404                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25405 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25406    { (exit 1); exit 1; }; }
25407         fi
25408         ;;
25409 esac
25410
25411 case $ol_with_threads in auto | yes | pth)
25412
25413
25414 for ac_header in pth.h
25415 do
25416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25418   echo "$as_me:$LINENO: checking for $ac_header" >&5
25419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25421   echo $ECHO_N "(cached) $ECHO_C" >&6
25422 fi
25423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25425 else
25426   # Is the header compilable?
25427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25429 cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h.  */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h.  */
25435 $ac_includes_default
25436 #include <$ac_header>
25437 _ACEOF
25438 rm -f conftest.$ac_objext
25439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25440   (eval $ac_compile) 2>conftest.er1
25441   ac_status=$?
25442   grep -v '^ *+' conftest.er1 >conftest.err
25443   rm -f conftest.er1
25444   cat conftest.err >&5
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } &&
25447          { ac_try='test -z "$ac_c_werror_flag"
25448                          || test ! -s conftest.err'
25449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25450   (eval $ac_try) 2>&5
25451   ac_status=$?
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); }; } &&
25454          { ac_try='test -s conftest.$ac_objext'
25455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456   (eval $ac_try) 2>&5
25457   ac_status=$?
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); }; }; then
25460   ac_header_compiler=yes
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465 ac_header_compiler=no
25466 fi
25467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6
25470
25471 # Is the header present?
25472 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25473 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h.  */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h.  */
25480 #include <$ac_header>
25481 _ACEOF
25482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } >/dev/null; then
25490   if test -s conftest.err; then
25491     ac_cpp_err=$ac_c_preproc_warn_flag
25492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25493   else
25494     ac_cpp_err=
25495   fi
25496 else
25497   ac_cpp_err=yes
25498 fi
25499 if test -z "$ac_cpp_err"; then
25500   ac_header_preproc=yes
25501 else
25502   echo "$as_me: failed program was:" >&5
25503 sed 's/^/| /' conftest.$ac_ext >&5
25504
25505   ac_header_preproc=no
25506 fi
25507 rm -f conftest.err conftest.$ac_ext
25508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25509 echo "${ECHO_T}$ac_header_preproc" >&6
25510
25511 # So?  What about this header?
25512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513   yes:no: )
25514     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25518     ac_header_preproc=yes
25519     ;;
25520   no:yes:* )
25521     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25523     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25524 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25525     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25527     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25528 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25531     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25533     (
25534       cat <<\_ASBOX
25535 ## ------------------------------------------ ##
25536 ## Report this to the AC_PACKAGE_NAME lists.  ##
25537 ## ------------------------------------------ ##
25538 _ASBOX
25539     ) |
25540       sed "s/^/$as_me: WARNING:     /" >&2
25541     ;;
25542 esac
25543 echo "$as_me:$LINENO: checking for $ac_header" >&5
25544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25546   echo $ECHO_N "(cached) $ECHO_C" >&6
25547 else
25548   eval "$as_ac_Header=\$ac_header_preproc"
25549 fi
25550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25552
25553 fi
25554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25555   cat >>confdefs.h <<_ACEOF
25556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25557 _ACEOF
25558
25559 fi
25560
25561 done
25562
25563
25564         if test $ac_cv_header_pth_h = yes ; then
25565                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25566 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25567 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25568   echo $ECHO_N "(cached) $ECHO_C" >&6
25569 else
25570   ac_check_lib_save_LIBS=$LIBS
25571 LIBS="-lpth  $LIBS"
25572 cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578
25579 /* Override any gcc2 internal prototype to avoid an error.  */
25580 #ifdef __cplusplus
25581 extern "C"
25582 #endif
25583 /* We use char because int might match the return type of a gcc2
25584    builtin and then its argument prototype would still apply.  */
25585 char pth_version ();
25586 int
25587 main ()
25588 {
25589 pth_version ();
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext conftest$ac_exeext
25595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25596   (eval $ac_link) 2>conftest.er1
25597   ac_status=$?
25598   grep -v '^ *+' conftest.er1 >conftest.err
25599   rm -f conftest.er1
25600   cat conftest.err >&5
25601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } &&
25603          { ac_try='test -z "$ac_c_werror_flag"
25604                          || test ! -s conftest.err'
25605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25606   (eval $ac_try) 2>&5
25607   ac_status=$?
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); }; } &&
25610          { ac_try='test -s conftest$ac_exeext'
25611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25612   (eval $ac_try) 2>&5
25613   ac_status=$?
25614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615   (exit $ac_status); }; }; then
25616   ac_cv_lib_pth_pth_version=yes
25617 else
25618   echo "$as_me: failed program was:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25620
25621 ac_cv_lib_pth_pth_version=no
25622 fi
25623 rm -f conftest.err conftest.$ac_objext \
25624       conftest$ac_exeext conftest.$ac_ext
25625 LIBS=$ac_check_lib_save_LIBS
25626 fi
25627 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25628 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25629 if test $ac_cv_lib_pth_pth_version = yes; then
25630   have_pth=yes
25631 else
25632   have_pth=no
25633 fi
25634
25635
25636                 if test $have_pth = yes ; then
25637
25638 cat >>confdefs.h <<\_ACEOF
25639 #define HAVE_GNU_PTH 1
25640 _ACEOF
25641
25642                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25643                         ol_link_threads=pth
25644                         ol_with_threads=found
25645
25646                         if test $ol_with_yielding_select = auto ; then
25647                                 ol_with_yielding_select=yes
25648                         fi
25649                 fi
25650         fi
25651         ;;
25652 esac
25653
25654 case $ol_with_threads in auto | yes | lwp)
25655
25656
25657
25658 for ac_header in thread.h synch.h
25659 do
25660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25662   echo "$as_me:$LINENO: checking for $ac_header" >&5
25663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25665   echo $ECHO_N "(cached) $ECHO_C" >&6
25666 fi
25667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25669 else
25670   # Is the header compilable?
25671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25673 cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h.  */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h.  */
25679 $ac_includes_default
25680 #include <$ac_header>
25681 _ACEOF
25682 rm -f conftest.$ac_objext
25683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25684   (eval $ac_compile) 2>conftest.er1
25685   ac_status=$?
25686   grep -v '^ *+' conftest.er1 >conftest.err
25687   rm -f conftest.er1
25688   cat conftest.err >&5
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); } &&
25691          { ac_try='test -z "$ac_c_werror_flag"
25692                          || test ! -s conftest.err'
25693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25694   (eval $ac_try) 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); }; } &&
25698          { ac_try='test -s conftest.$ac_objext'
25699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700   (eval $ac_try) 2>&5
25701   ac_status=$?
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); }; }; then
25704   ac_header_compiler=yes
25705 else
25706   echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.$ac_ext >&5
25708
25709 ac_header_compiler=no
25710 fi
25711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25713 echo "${ECHO_T}$ac_header_compiler" >&6
25714
25715 # Is the header present?
25716 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25718 cat >conftest.$ac_ext <<_ACEOF
25719 /* confdefs.h.  */
25720 _ACEOF
25721 cat confdefs.h >>conftest.$ac_ext
25722 cat >>conftest.$ac_ext <<_ACEOF
25723 /* end confdefs.h.  */
25724 #include <$ac_header>
25725 _ACEOF
25726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25728   ac_status=$?
25729   grep -v '^ *+' conftest.er1 >conftest.err
25730   rm -f conftest.er1
25731   cat conftest.err >&5
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); } >/dev/null; then
25734   if test -s conftest.err; then
25735     ac_cpp_err=$ac_c_preproc_warn_flag
25736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25737   else
25738     ac_cpp_err=
25739   fi
25740 else
25741   ac_cpp_err=yes
25742 fi
25743 if test -z "$ac_cpp_err"; then
25744   ac_header_preproc=yes
25745 else
25746   echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749   ac_header_preproc=no
25750 fi
25751 rm -f conftest.err conftest.$ac_ext
25752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25753 echo "${ECHO_T}$ac_header_preproc" >&6
25754
25755 # So?  What about this header?
25756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25757   yes:no: )
25758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25762     ac_header_preproc=yes
25763     ;;
25764   no:yes:* )
25765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25777     (
25778       cat <<\_ASBOX
25779 ## ------------------------------------------ ##
25780 ## Report this to the AC_PACKAGE_NAME lists.  ##
25781 ## ------------------------------------------ ##
25782 _ASBOX
25783     ) |
25784       sed "s/^/$as_me: WARNING:     /" >&2
25785     ;;
25786 esac
25787 echo "$as_me:$LINENO: checking for $ac_header" >&5
25788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25790   echo $ECHO_N "(cached) $ECHO_C" >&6
25791 else
25792   eval "$as_ac_Header=\$ac_header_preproc"
25793 fi
25794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25796
25797 fi
25798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25799   cat >>confdefs.h <<_ACEOF
25800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25801 _ACEOF
25802
25803 fi
25804
25805 done
25806
25807         if test $ac_cv_header_thread_h = yes &&
25808            test $ac_cv_header_synch_h = yes ; then
25809                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25810 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25811 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25812   echo $ECHO_N "(cached) $ECHO_C" >&6
25813 else
25814   ac_check_lib_save_LIBS=$LIBS
25815 LIBS="-lthread  $LIBS"
25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h.  */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h.  */
25822
25823 /* Override any gcc2 internal prototype to avoid an error.  */
25824 #ifdef __cplusplus
25825 extern "C"
25826 #endif
25827 /* We use char because int might match the return type of a gcc2
25828    builtin and then its argument prototype would still apply.  */
25829 char thr_create ();
25830 int
25831 main ()
25832 {
25833 thr_create ();
25834   ;
25835   return 0;
25836 }
25837 _ACEOF
25838 rm -f conftest.$ac_objext conftest$ac_exeext
25839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25840   (eval $ac_link) 2>conftest.er1
25841   ac_status=$?
25842   grep -v '^ *+' conftest.er1 >conftest.err
25843   rm -f conftest.er1
25844   cat conftest.err >&5
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); } &&
25847          { ac_try='test -z "$ac_c_werror_flag"
25848                          || test ! -s conftest.err'
25849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25850   (eval $ac_try) 2>&5
25851   ac_status=$?
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); }; } &&
25854          { ac_try='test -s conftest$ac_exeext'
25855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856   (eval $ac_try) 2>&5
25857   ac_status=$?
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); }; }; then
25860   ac_cv_lib_thread_thr_create=yes
25861 else
25862   echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25864
25865 ac_cv_lib_thread_thr_create=no
25866 fi
25867 rm -f conftest.err conftest.$ac_objext \
25868       conftest$ac_exeext conftest.$ac_ext
25869 LIBS=$ac_check_lib_save_LIBS
25870 fi
25871 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25872 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25873 if test $ac_cv_lib_thread_thr_create = yes; then
25874   have_thr=yes
25875 else
25876   have_thr=no
25877 fi
25878
25879
25880                 if test $have_thr = yes ; then
25881
25882 cat >>confdefs.h <<\_ACEOF
25883 #define HAVE_THR 1
25884 _ACEOF
25885
25886                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25887                         ol_link_threads=thr
25888
25889                         if test $ol_with_yielding_select = auto ; then
25890                                 ol_with_yielding_select=yes
25891                         fi
25892
25893
25894
25895 for ac_func in \
25896                                 thr_setconcurrency \
25897                                 thr_getconcurrency \
25898
25899 do
25900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25901 echo "$as_me:$LINENO: checking for $ac_func" >&5
25902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25903 if eval "test \"\${$as_ac_var+set}\" = set"; then
25904   echo $ECHO_N "(cached) $ECHO_C" >&6
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25914 #define $ac_func innocuous_$ac_func
25915
25916 /* System header to define __stub macros and hopefully few prototypes,
25917     which can conflict with char $ac_func (); below.
25918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25919     <limits.h> exists even on freestanding compilers.  */
25920
25921 #ifdef __STDC__
25922 # include <limits.h>
25923 #else
25924 # include <assert.h>
25925 #endif
25926
25927 #undef $ac_func
25928
25929 /* Override any gcc2 internal prototype to avoid an error.  */
25930 #ifdef __cplusplus
25931 extern "C"
25932 {
25933 #endif
25934 /* We use char because int might match the return type of a gcc2
25935    builtin and then its argument prototype would still apply.  */
25936 char $ac_func ();
25937 /* The GNU C library defines this for functions which it implements
25938     to always fail with ENOSYS.  Some functions are actually named
25939     something starting with __ and the normal name is an alias.  */
25940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25941 choke me
25942 #else
25943 char (*f) () = $ac_func;
25944 #endif
25945 #ifdef __cplusplus
25946 }
25947 #endif
25948
25949 int
25950 main ()
25951 {
25952 return f != $ac_func;
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext conftest$ac_exeext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25959   (eval $ac_link) 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } &&
25966          { ac_try='test -z "$ac_c_werror_flag"
25967                          || test ! -s conftest.err'
25968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969   (eval $ac_try) 2>&5
25970   ac_status=$?
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); }; } &&
25973          { ac_try='test -s conftest$ac_exeext'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; }; then
25979   eval "$as_ac_var=yes"
25980 else
25981   echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25983
25984 eval "$as_ac_var=no"
25985 fi
25986 rm -f conftest.err conftest.$ac_objext \
25987       conftest$ac_exeext conftest.$ac_ext
25988 fi
25989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25991 if test `eval echo '${'$as_ac_var'}'` = yes; then
25992   cat >>confdefs.h <<_ACEOF
25993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25994 _ACEOF
25995
25996 fi
25997 done
25998
25999                 fi
26000         fi
26001
26002
26003 for ac_header in lwp/lwp.h
26004 do
26005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26007   echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 fi
26012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26014 else
26015   # Is the header compilable?
26016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26018 cat >conftest.$ac_ext <<_ACEOF
26019 /* confdefs.h.  */
26020 _ACEOF
26021 cat confdefs.h >>conftest.$ac_ext
26022 cat >>conftest.$ac_ext <<_ACEOF
26023 /* end confdefs.h.  */
26024 $ac_includes_default
26025 #include <$ac_header>
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26029   (eval $ac_compile) 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } &&
26036          { ac_try='test -z "$ac_c_werror_flag"
26037                          || test ! -s conftest.err'
26038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039   (eval $ac_try) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); }; } &&
26043          { ac_try='test -s conftest.$ac_objext'
26044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045   (eval $ac_try) 2>&5
26046   ac_status=$?
26047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048   (exit $ac_status); }; }; then
26049   ac_header_compiler=yes
26050 else
26051   echo "$as_me: failed program was:" >&5
26052 sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 ac_header_compiler=no
26055 fi
26056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26058 echo "${ECHO_T}$ac_header_compiler" >&6
26059
26060 # Is the header present?
26061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26063 cat >conftest.$ac_ext <<_ACEOF
26064 /* confdefs.h.  */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h.  */
26069 #include <$ac_header>
26070 _ACEOF
26071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26073   ac_status=$?
26074   grep -v '^ *+' conftest.er1 >conftest.err
26075   rm -f conftest.er1
26076   cat conftest.err >&5
26077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078   (exit $ac_status); } >/dev/null; then
26079   if test -s conftest.err; then
26080     ac_cpp_err=$ac_c_preproc_warn_flag
26081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26082   else
26083     ac_cpp_err=
26084   fi
26085 else
26086   ac_cpp_err=yes
26087 fi
26088 if test -z "$ac_cpp_err"; then
26089   ac_header_preproc=yes
26090 else
26091   echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26093
26094   ac_header_preproc=no
26095 fi
26096 rm -f conftest.err conftest.$ac_ext
26097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26098 echo "${ECHO_T}$ac_header_preproc" >&6
26099
26100 # So?  What about this header?
26101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26102   yes:no: )
26103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26107     ac_header_preproc=yes
26108     ;;
26109   no:yes:* )
26110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26122     (
26123       cat <<\_ASBOX
26124 ## ------------------------------------------ ##
26125 ## Report this to the AC_PACKAGE_NAME lists.  ##
26126 ## ------------------------------------------ ##
26127 _ASBOX
26128     ) |
26129       sed "s/^/$as_me: WARNING:     /" >&2
26130     ;;
26131 esac
26132 echo "$as_me:$LINENO: checking for $ac_header" >&5
26133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26135   echo $ECHO_N "(cached) $ECHO_C" >&6
26136 else
26137   eval "$as_ac_Header=\$ac_header_preproc"
26138 fi
26139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26141
26142 fi
26143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26144   cat >>confdefs.h <<_ACEOF
26145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26146 _ACEOF
26147
26148 fi
26149
26150 done
26151
26152         if test $ac_cv_header_lwp_lwp_h = yes ; then
26153                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26154 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26155 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26156   echo $ECHO_N "(cached) $ECHO_C" >&6
26157 else
26158   ac_check_lib_save_LIBS=$LIBS
26159 LIBS="-llwp  $LIBS"
26160 cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166
26167 /* Override any gcc2 internal prototype to avoid an error.  */
26168 #ifdef __cplusplus
26169 extern "C"
26170 #endif
26171 /* We use char because int might match the return type of a gcc2
26172    builtin and then its argument prototype would still apply.  */
26173 char lwp_create ();
26174 int
26175 main ()
26176 {
26177 lwp_create ();
26178   ;
26179   return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest.$ac_objext conftest$ac_exeext
26183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26184   (eval $ac_link) 2>conftest.er1
26185   ac_status=$?
26186   grep -v '^ *+' conftest.er1 >conftest.err
26187   rm -f conftest.er1
26188   cat conftest.err >&5
26189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190   (exit $ac_status); } &&
26191          { ac_try='test -z "$ac_c_werror_flag"
26192                          || test ! -s conftest.err'
26193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194   (eval $ac_try) 2>&5
26195   ac_status=$?
26196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197   (exit $ac_status); }; } &&
26198          { ac_try='test -s conftest$ac_exeext'
26199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200   (eval $ac_try) 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); }; }; then
26204   ac_cv_lib_lwp_lwp_create=yes
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209 ac_cv_lib_lwp_lwp_create=no
26210 fi
26211 rm -f conftest.err conftest.$ac_objext \
26212       conftest$ac_exeext conftest.$ac_ext
26213 LIBS=$ac_check_lib_save_LIBS
26214 fi
26215 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26216 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26217 if test $ac_cv_lib_lwp_lwp_create = yes; then
26218   have_lwp=yes
26219 else
26220   have_lwp=no
26221 fi
26222
26223
26224                 if test $have_lwp = yes ; then
26225
26226 cat >>confdefs.h <<\_ACEOF
26227 #define HAVE_LWP 1
26228 _ACEOF
26229
26230                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26231                         ol_link_threads=lwp
26232
26233                         if test $ol_with_yielding_select = auto ; then
26234                                 ol_with_yielding_select=no
26235                         fi
26236                 fi
26237         fi
26238         ;;
26239 esac
26240
26241 if test $ol_with_yielding_select = yes ; then
26242
26243 cat >>confdefs.h <<\_ACEOF
26244 #define HAVE_YIELDING_SELECT 1
26245 _ACEOF
26246
26247 fi
26248
26249 if test $ol_with_threads = manual ; then
26250                 ol_link_threads=yes
26251
26252         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26253 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26254
26255
26256
26257 for ac_header in pthread.h sched.h
26258 do
26259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26261   echo "$as_me:$LINENO: checking for $ac_header" >&5
26262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26264   echo $ECHO_N "(cached) $ECHO_C" >&6
26265 fi
26266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26268 else
26269   # Is the header compilable?
26270 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278 $ac_includes_default
26279 #include <$ac_header>
26280 _ACEOF
26281 rm -f conftest.$ac_objext
26282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26283   (eval $ac_compile) 2>conftest.er1
26284   ac_status=$?
26285   grep -v '^ *+' conftest.er1 >conftest.err
26286   rm -f conftest.er1
26287   cat conftest.err >&5
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); } &&
26290          { ac_try='test -z "$ac_c_werror_flag"
26291                          || test ! -s conftest.err'
26292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); }; } &&
26297          { ac_try='test -s conftest.$ac_objext'
26298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299   (eval $ac_try) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); }; }; then
26303   ac_header_compiler=yes
26304 else
26305   echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26307
26308 ac_header_compiler=no
26309 fi
26310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26312 echo "${ECHO_T}$ac_header_compiler" >&6
26313
26314 # Is the header present?
26315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26317 cat >conftest.$ac_ext <<_ACEOF
26318 /* confdefs.h.  */
26319 _ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h.  */
26323 #include <$ac_header>
26324 _ACEOF
26325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } >/dev/null; then
26333   if test -s conftest.err; then
26334     ac_cpp_err=$ac_c_preproc_warn_flag
26335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26336   else
26337     ac_cpp_err=
26338   fi
26339 else
26340   ac_cpp_err=yes
26341 fi
26342 if test -z "$ac_cpp_err"; then
26343   ac_header_preproc=yes
26344 else
26345   echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26347
26348   ac_header_preproc=no
26349 fi
26350 rm -f conftest.err conftest.$ac_ext
26351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26352 echo "${ECHO_T}$ac_header_preproc" >&6
26353
26354 # So?  What about this header?
26355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26356   yes:no: )
26357     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26361     ac_header_preproc=yes
26362     ;;
26363   no:yes:* )
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26367 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26368     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26370     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26371 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26374     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26376     (
26377       cat <<\_ASBOX
26378 ## ------------------------------------------ ##
26379 ## Report this to the AC_PACKAGE_NAME lists.  ##
26380 ## ------------------------------------------ ##
26381 _ASBOX
26382     ) |
26383       sed "s/^/$as_me: WARNING:     /" >&2
26384     ;;
26385 esac
26386 echo "$as_me:$LINENO: checking for $ac_header" >&5
26387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26389   echo $ECHO_N "(cached) $ECHO_C" >&6
26390 else
26391   eval "$as_ac_Header=\$ac_header_preproc"
26392 fi
26393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26395
26396 fi
26397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26398   cat >>confdefs.h <<_ACEOF
26399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26400 _ACEOF
26401
26402 fi
26403
26404 done
26405
26406
26407
26408 for ac_func in sched_yield pthread_yield
26409 do
26410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26411 echo "$as_me:$LINENO: checking for $ac_func" >&5
26412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26413 if eval "test \"\${$as_ac_var+set}\" = set"; then
26414   echo $ECHO_N "(cached) $ECHO_C" >&6
26415 else
26416   cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26424 #define $ac_func innocuous_$ac_func
26425
26426 /* System header to define __stub macros and hopefully few prototypes,
26427     which can conflict with char $ac_func (); below.
26428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26429     <limits.h> exists even on freestanding compilers.  */
26430
26431 #ifdef __STDC__
26432 # include <limits.h>
26433 #else
26434 # include <assert.h>
26435 #endif
26436
26437 #undef $ac_func
26438
26439 /* Override any gcc2 internal prototype to avoid an error.  */
26440 #ifdef __cplusplus
26441 extern "C"
26442 {
26443 #endif
26444 /* We use char because int might match the return type of a gcc2
26445    builtin and then its argument prototype would still apply.  */
26446 char $ac_func ();
26447 /* The GNU C library defines this for functions which it implements
26448     to always fail with ENOSYS.  Some functions are actually named
26449     something starting with __ and the normal name is an alias.  */
26450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26451 choke me
26452 #else
26453 char (*f) () = $ac_func;
26454 #endif
26455 #ifdef __cplusplus
26456 }
26457 #endif
26458
26459 int
26460 main ()
26461 {
26462 return f != $ac_func;
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26469   (eval $ac_link) 2>conftest.er1
26470   ac_status=$?
26471   grep -v '^ *+' conftest.er1 >conftest.err
26472   rm -f conftest.er1
26473   cat conftest.err >&5
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } &&
26476          { ac_try='test -z "$ac_c_werror_flag"
26477                          || test ! -s conftest.err'
26478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479   (eval $ac_try) 2>&5
26480   ac_status=$?
26481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482   (exit $ac_status); }; } &&
26483          { ac_try='test -s conftest$ac_exeext'
26484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26485   (eval $ac_try) 2>&5
26486   ac_status=$?
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); }; }; then
26489   eval "$as_ac_var=yes"
26490 else
26491   echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494 eval "$as_ac_var=no"
26495 fi
26496 rm -f conftest.err conftest.$ac_objext \
26497       conftest$ac_exeext conftest.$ac_ext
26498 fi
26499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26501 if test `eval echo '${'$as_ac_var'}'` = yes; then
26502   cat >>confdefs.h <<_ACEOF
26503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26504 _ACEOF
26505
26506 fi
26507 done
26508
26509
26510         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26511 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26512 if test "${ol_cv_header_linux_threads+set}" = set; then
26513   echo $ECHO_N "(cached) $ECHO_C" >&6
26514 else
26515   cat >conftest.$ac_ext <<_ACEOF
26516 /* confdefs.h.  */
26517 _ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h.  */
26521 #include <pthread.h>
26522 _ACEOF
26523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26524   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26525   ol_cv_header_linux_threads=yes
26526 else
26527   ol_cv_header_linux_threads=no
26528 fi
26529 rm -f conftest*
26530
26531
26532 fi
26533 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26534 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26535         if test $ol_cv_header_linux_threads = yes; then
26536
26537 cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_LINUX_THREADS 1
26539 _ACEOF
26540
26541         fi
26542
26543
26544
26545 for ac_header in mach/cthreads.h
26546 do
26547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26549   echo "$as_me:$LINENO: checking for $ac_header" >&5
26550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 fi
26554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26556 else
26557   # Is the header compilable?
26558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26560 cat >conftest.$ac_ext <<_ACEOF
26561 /* confdefs.h.  */
26562 _ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h.  */
26566 $ac_includes_default
26567 #include <$ac_header>
26568 _ACEOF
26569 rm -f conftest.$ac_objext
26570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26571   (eval $ac_compile) 2>conftest.er1
26572   ac_status=$?
26573   grep -v '^ *+' conftest.er1 >conftest.err
26574   rm -f conftest.er1
26575   cat conftest.err >&5
26576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); } &&
26578          { ac_try='test -z "$ac_c_werror_flag"
26579                          || test ! -s conftest.err'
26580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581   (eval $ac_try) 2>&5
26582   ac_status=$?
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); }; } &&
26585          { ac_try='test -s conftest.$ac_objext'
26586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587   (eval $ac_try) 2>&5
26588   ac_status=$?
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); }; }; then
26591   ac_header_compiler=yes
26592 else
26593   echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26595
26596 ac_header_compiler=no
26597 fi
26598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26600 echo "${ECHO_T}$ac_header_compiler" >&6
26601
26602 # Is the header present?
26603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26605 cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611 #include <$ac_header>
26612 _ACEOF
26613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26615   ac_status=$?
26616   grep -v '^ *+' conftest.er1 >conftest.err
26617   rm -f conftest.er1
26618   cat conftest.err >&5
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); } >/dev/null; then
26621   if test -s conftest.err; then
26622     ac_cpp_err=$ac_c_preproc_warn_flag
26623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26624   else
26625     ac_cpp_err=
26626   fi
26627 else
26628   ac_cpp_err=yes
26629 fi
26630 if test -z "$ac_cpp_err"; then
26631   ac_header_preproc=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636   ac_header_preproc=no
26637 fi
26638 rm -f conftest.err conftest.$ac_ext
26639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26640 echo "${ECHO_T}$ac_header_preproc" >&6
26641
26642 # So?  What about this header?
26643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26644   yes:no: )
26645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26649     ac_header_preproc=yes
26650     ;;
26651   no:yes:* )
26652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26664     (
26665       cat <<\_ASBOX
26666 ## ------------------------------------------ ##
26667 ## Report this to the AC_PACKAGE_NAME lists.  ##
26668 ## ------------------------------------------ ##
26669 _ASBOX
26670     ) |
26671       sed "s/^/$as_me: WARNING:     /" >&2
26672     ;;
26673 esac
26674 echo "$as_me:$LINENO: checking for $ac_header" >&5
26675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26677   echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679   eval "$as_ac_Header=\$ac_header_preproc"
26680 fi
26681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26683
26684 fi
26685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26686   cat >>confdefs.h <<_ACEOF
26687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26688 _ACEOF
26689
26690 fi
26691
26692 done
26693
26694
26695 for ac_header in lwp/lwp.h
26696 do
26697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26699   echo "$as_me:$LINENO: checking for $ac_header" >&5
26700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26702   echo $ECHO_N "(cached) $ECHO_C" >&6
26703 fi
26704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26706 else
26707   # Is the header compilable?
26708 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26710 cat >conftest.$ac_ext <<_ACEOF
26711 /* confdefs.h.  */
26712 _ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h.  */
26716 $ac_includes_default
26717 #include <$ac_header>
26718 _ACEOF
26719 rm -f conftest.$ac_objext
26720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26721   (eval $ac_compile) 2>conftest.er1
26722   ac_status=$?
26723   grep -v '^ *+' conftest.er1 >conftest.err
26724   rm -f conftest.er1
26725   cat conftest.err >&5
26726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727   (exit $ac_status); } &&
26728          { ac_try='test -z "$ac_c_werror_flag"
26729                          || test ! -s conftest.err'
26730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731   (eval $ac_try) 2>&5
26732   ac_status=$?
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; } &&
26735          { ac_try='test -s conftest.$ac_objext'
26736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737   (eval $ac_try) 2>&5
26738   ac_status=$?
26739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); }; }; then
26741   ac_header_compiler=yes
26742 else
26743   echo "$as_me: failed program was:" >&5
26744 sed 's/^/| /' conftest.$ac_ext >&5
26745
26746 ac_header_compiler=no
26747 fi
26748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26750 echo "${ECHO_T}$ac_header_compiler" >&6
26751
26752 # Is the header present?
26753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26755 cat >conftest.$ac_ext <<_ACEOF
26756 /* confdefs.h.  */
26757 _ACEOF
26758 cat confdefs.h >>conftest.$ac_ext
26759 cat >>conftest.$ac_ext <<_ACEOF
26760 /* end confdefs.h.  */
26761 #include <$ac_header>
26762 _ACEOF
26763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26764   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } >/dev/null; then
26771   if test -s conftest.err; then
26772     ac_cpp_err=$ac_c_preproc_warn_flag
26773     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26774   else
26775     ac_cpp_err=
26776   fi
26777 else
26778   ac_cpp_err=yes
26779 fi
26780 if test -z "$ac_cpp_err"; then
26781   ac_header_preproc=yes
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786   ac_header_preproc=no
26787 fi
26788 rm -f conftest.err conftest.$ac_ext
26789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26790 echo "${ECHO_T}$ac_header_preproc" >&6
26791
26792 # So?  What about this header?
26793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26794   yes:no: )
26795     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26799     ac_header_preproc=yes
26800     ;;
26801   no:yes:* )
26802     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26804     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26805 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26806     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26809 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26814     (
26815       cat <<\_ASBOX
26816 ## ------------------------------------------ ##
26817 ## Report this to the AC_PACKAGE_NAME lists.  ##
26818 ## ------------------------------------------ ##
26819 _ASBOX
26820     ) |
26821       sed "s/^/$as_me: WARNING:     /" >&2
26822     ;;
26823 esac
26824 echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26827   echo $ECHO_N "(cached) $ECHO_C" >&6
26828 else
26829   eval "$as_ac_Header=\$ac_header_preproc"
26830 fi
26831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26833
26834 fi
26835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26836   cat >>confdefs.h <<_ACEOF
26837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26838 _ACEOF
26839
26840 fi
26841
26842 done
26843
26844
26845
26846 for ac_header in thread.h synch.h
26847 do
26848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26850   echo "$as_me:$LINENO: checking for $ac_header" >&5
26851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26853   echo $ECHO_N "(cached) $ECHO_C" >&6
26854 fi
26855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26857 else
26858   # Is the header compilable?
26859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26862 /* confdefs.h.  */
26863 _ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h.  */
26867 $ac_includes_default
26868 #include <$ac_header>
26869 _ACEOF
26870 rm -f conftest.$ac_objext
26871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26872   (eval $ac_compile) 2>conftest.er1
26873   ac_status=$?
26874   grep -v '^ *+' conftest.er1 >conftest.err
26875   rm -f conftest.er1
26876   cat conftest.err >&5
26877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878   (exit $ac_status); } &&
26879          { ac_try='test -z "$ac_c_werror_flag"
26880                          || test ! -s conftest.err'
26881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882   (eval $ac_try) 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; } &&
26886          { ac_try='test -s conftest.$ac_objext'
26887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26888   (eval $ac_try) 2>&5
26889   ac_status=$?
26890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); }; }; then
26892   ac_header_compiler=yes
26893 else
26894   echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26896
26897 ac_header_compiler=no
26898 fi
26899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26901 echo "${ECHO_T}$ac_header_compiler" >&6
26902
26903 # Is the header present?
26904 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26906 cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h.  */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h.  */
26912 #include <$ac_header>
26913 _ACEOF
26914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26915   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26916   ac_status=$?
26917   grep -v '^ *+' conftest.er1 >conftest.err
26918   rm -f conftest.er1
26919   cat conftest.err >&5
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); } >/dev/null; then
26922   if test -s conftest.err; then
26923     ac_cpp_err=$ac_c_preproc_warn_flag
26924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26925   else
26926     ac_cpp_err=
26927   fi
26928 else
26929   ac_cpp_err=yes
26930 fi
26931 if test -z "$ac_cpp_err"; then
26932   ac_header_preproc=yes
26933 else
26934   echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26936
26937   ac_header_preproc=no
26938 fi
26939 rm -f conftest.err conftest.$ac_ext
26940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26941 echo "${ECHO_T}$ac_header_preproc" >&6
26942
26943 # So?  What about this header?
26944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26945   yes:no: )
26946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26950     ac_header_preproc=yes
26951     ;;
26952   no:yes:* )
26953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26965     (
26966       cat <<\_ASBOX
26967 ## ------------------------------------------ ##
26968 ## Report this to the AC_PACKAGE_NAME lists.  ##
26969 ## ------------------------------------------ ##
26970 _ASBOX
26971     ) |
26972       sed "s/^/$as_me: WARNING:     /" >&2
26973     ;;
26974 esac
26975 echo "$as_me:$LINENO: checking for $ac_header" >&5
26976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26978   echo $ECHO_N "(cached) $ECHO_C" >&6
26979 else
26980   eval "$as_ac_Header=\$ac_header_preproc"
26981 fi
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26984
26985 fi
26986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26987   cat >>confdefs.h <<_ACEOF
26988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26989 _ACEOF
26990
26991 fi
26992
26993 done
26994
26995 fi
26996
26997 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26998                         cat >>confdefs.h <<\_ACEOF
26999 #define REENTRANT 1
27000 _ACEOF
27001
27002         cat >>confdefs.h <<\_ACEOF
27003 #define _REENTRANT 1
27004 _ACEOF
27005
27006         cat >>confdefs.h <<\_ACEOF
27007 #define THREAD_SAFE 1
27008 _ACEOF
27009
27010         cat >>confdefs.h <<\_ACEOF
27011 #define _THREAD_SAFE 1
27012 _ACEOF
27013
27014         cat >>confdefs.h <<\_ACEOF
27015 #define THREADSAFE 1
27016 _ACEOF
27017
27018         cat >>confdefs.h <<\_ACEOF
27019 #define _THREADSAFE 1
27020 _ACEOF
27021
27022         cat >>confdefs.h <<\_ACEOF
27023 #define _SGI_MP_SOURCE 1
27024 _ACEOF
27025
27026
27027                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27028 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27029 if test "${ol_cv_errno_thread_specific+set}" = set; then
27030   echo $ECHO_N "(cached) $ECHO_C" >&6
27031 else
27032
27033                 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039 #include <errno.h>
27040 int
27041 main ()
27042 {
27043 errno = 0;
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050   (eval $ac_link) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest$ac_exeext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   ol_cv_errno_thread_specific=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 ol_cv_errno_thread_specific=no
27076 fi
27077 rm -f conftest.err conftest.$ac_objext \
27078       conftest$ac_exeext conftest.$ac_ext
27079
27080 fi
27081 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27082 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27083
27084                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27085 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27086 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27087   echo $ECHO_N "(cached) $ECHO_C" >&6
27088 else
27089
27090                 cat >conftest.$ac_ext <<_ACEOF
27091 /* confdefs.h.  */
27092 _ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h.  */
27096 #include <netdb.h>
27097 int
27098 main ()
27099 {
27100 h_errno = 0;
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 rm -f conftest.$ac_objext conftest$ac_exeext
27106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27107   (eval $ac_link) 2>conftest.er1
27108   ac_status=$?
27109   grep -v '^ *+' conftest.er1 >conftest.err
27110   rm -f conftest.er1
27111   cat conftest.err >&5
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); } &&
27114          { ac_try='test -z "$ac_c_werror_flag"
27115                          || test ! -s conftest.err'
27116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; } &&
27121          { ac_try='test -s conftest$ac_exeext'
27122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27123   (eval $ac_try) 2>&5
27124   ac_status=$?
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); }; }; then
27127   ol_cv_h_errno_thread_specific=yes
27128 else
27129   echo "$as_me: failed program was:" >&5
27130 sed 's/^/| /' conftest.$ac_ext >&5
27131
27132 ol_cv_h_errno_thread_specific=no
27133 fi
27134 rm -f conftest.err conftest.$ac_objext \
27135       conftest$ac_exeext conftest.$ac_ext
27136
27137 fi
27138 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27139 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27140
27141         if test $ol_cv_errno_thread_specific != yes ||
27142            test $ol_cv_h_errno_thread_specific != yes ; then
27143                 LIBS="$LTHREAD_LIBS $LIBS"
27144                 LTHREAD_LIBS=""
27145         fi
27146
27147 fi
27148
27149 if test $ol_link_threads = no ; then
27150         if test $ol_with_threads = yes ; then
27151                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27152 echo "$as_me: error: no suitable thread support" >&2;}
27153    { (exit 1); exit 1; }; }
27154         fi
27155
27156         if test $ol_with_threads = auto ; then
27157                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27158 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27159                 ol_with_threads=no
27160         fi
27161
27162
27163 cat >>confdefs.h <<\_ACEOF
27164 #define NO_THREADS 1
27165 _ACEOF
27166
27167         LTHREAD_LIBS=""
27168         BUILD_THREAD=no
27169 else
27170         BUILD_THREAD=yes
27171 fi
27172
27173 if test $ol_link_threads != no ; then
27174
27175 cat >>confdefs.h <<\_ACEOF
27176 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27177 _ACEOF
27178
27179 fi
27180
27181
27182
27183
27184 for ac_func in \
27185         ctime_r                 \
27186         gethostbyname_r gethostbyaddr_r \
27187
27188 do
27189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27190 echo "$as_me:$LINENO: checking for $ac_func" >&5
27191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27192 if eval "test \"\${$as_ac_var+set}\" = set"; then
27193   echo $ECHO_N "(cached) $ECHO_C" >&6
27194 else
27195   cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27203 #define $ac_func innocuous_$ac_func
27204
27205 /* System header to define __stub macros and hopefully few prototypes,
27206     which can conflict with char $ac_func (); below.
27207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208     <limits.h> exists even on freestanding compilers.  */
27209
27210 #ifdef __STDC__
27211 # include <limits.h>
27212 #else
27213 # include <assert.h>
27214 #endif
27215
27216 #undef $ac_func
27217
27218 /* Override any gcc2 internal prototype to avoid an error.  */
27219 #ifdef __cplusplus
27220 extern "C"
27221 {
27222 #endif
27223 /* We use char because int might match the return type of a gcc2
27224    builtin and then its argument prototype would still apply.  */
27225 char $ac_func ();
27226 /* The GNU C library defines this for functions which it implements
27227     to always fail with ENOSYS.  Some functions are actually named
27228     something starting with __ and the normal name is an alias.  */
27229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27230 choke me
27231 #else
27232 char (*f) () = $ac_func;
27233 #endif
27234 #ifdef __cplusplus
27235 }
27236 #endif
27237
27238 int
27239 main ()
27240 {
27241 return f != $ac_func;
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248   (eval $ac_link) 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } &&
27255          { ac_try='test -z "$ac_c_werror_flag"
27256                          || test ! -s conftest.err'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; } &&
27262          { ac_try='test -s conftest$ac_exeext'
27263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264   (eval $ac_try) 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; }; then
27268   eval "$as_ac_var=yes"
27269 else
27270   echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 eval "$as_ac_var=no"
27274 fi
27275 rm -f conftest.err conftest.$ac_objext \
27276       conftest$ac_exeext conftest.$ac_ext
27277 fi
27278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27280 if test `eval echo '${'$as_ac_var'}'` = yes; then
27281   cat >>confdefs.h <<_ACEOF
27282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27283 _ACEOF
27284
27285 fi
27286 done
27287
27288
27289 if test "$ac_cv_func_ctime_r" = no ; then
27290         ol_cv_func_ctime_r_nargs=0
27291 else
27292         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27293 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27294 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27295   echo $ECHO_N "(cached) $ECHO_C" >&6
27296 else
27297   cat >conftest.$ac_ext <<_ACEOF
27298 /* confdefs.h.  */
27299 _ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h.  */
27303 #include <time.h>
27304 int
27305 main ()
27306 {
27307 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27308   ;
27309   return 0;
27310 }
27311 _ACEOF
27312 rm -f conftest.$ac_objext
27313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27314   (eval $ac_compile) 2>conftest.er1
27315   ac_status=$?
27316   grep -v '^ *+' conftest.er1 >conftest.err
27317   rm -f conftest.er1
27318   cat conftest.err >&5
27319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320   (exit $ac_status); } &&
27321          { ac_try='test -z "$ac_c_werror_flag"
27322                          || test ! -s conftest.err'
27323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324   (eval $ac_try) 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); }; } &&
27328          { ac_try='test -s conftest.$ac_objext'
27329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330   (eval $ac_try) 2>&5
27331   ac_status=$?
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); }; }; then
27334   ol_cv_func_ctime_r_nargs3=yes
27335 else
27336   echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27338
27339 ol_cv_func_ctime_r_nargs3=no
27340 fi
27341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27342
27343         cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 #include <time.h>
27350 int
27351 main ()
27352 {
27353 time_t ti; char *buffer; ctime_r(&ti,buffer);
27354   ;
27355   return 0;
27356 }
27357 _ACEOF
27358 rm -f conftest.$ac_objext
27359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27360   (eval $ac_compile) 2>conftest.er1
27361   ac_status=$?
27362   grep -v '^ *+' conftest.er1 >conftest.err
27363   rm -f conftest.er1
27364   cat conftest.err >&5
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); } &&
27367          { ac_try='test -z "$ac_c_werror_flag"
27368                          || test ! -s conftest.err'
27369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370   (eval $ac_try) 2>&5
27371   ac_status=$?
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); }; } &&
27374          { ac_try='test -s conftest.$ac_objext'
27375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376   (eval $ac_try) 2>&5
27377   ac_status=$?
27378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); }; }; then
27380   ol_cv_func_ctime_r_nargs2=yes
27381 else
27382   echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27384
27385 ol_cv_func_ctime_r_nargs2=no
27386 fi
27387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27388
27389         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27390            test $ol_cv_func_ctime_r_nargs2 = no ; then
27391
27392                 ol_cv_func_ctime_r_nargs=3
27393
27394         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27395              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27396
27397                 ol_cv_func_ctime_r_nargs=2
27398
27399         else
27400                 ol_cv_func_ctime_r_nargs=0
27401         fi
27402
27403 fi
27404 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27405 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27406
27407   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27408
27409 cat >>confdefs.h <<_ACEOF
27410 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27411 _ACEOF
27412
27413   fi
27414
27415 fi
27416
27417 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27418         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27419 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27420 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27421   echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423   cat >conftest.$ac_ext <<_ACEOF
27424 /* confdefs.h.  */
27425 _ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h.  */
27429 #include <sys/types.h>
27430 #include <sys/socket.h>
27431 #include <netinet/in.h>
27432 #include <netdb.h>
27433 #define BUFSIZE (sizeof(struct hostent)+10)
27434 int
27435 main ()
27436 {
27437 struct hostent hent; char buffer[BUFSIZE];
27438                 int bufsize=BUFSIZE;int h_errno;
27439                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27440                         buffer, bufsize, &h_errno);
27441   ;
27442   return 0;
27443 }
27444 _ACEOF
27445 rm -f conftest.$ac_objext
27446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27447   (eval $ac_compile) 2>conftest.er1
27448   ac_status=$?
27449   grep -v '^ *+' conftest.er1 >conftest.err
27450   rm -f conftest.er1
27451   cat conftest.err >&5
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); } &&
27454          { ac_try='test -z "$ac_c_werror_flag"
27455                          || test ! -s conftest.err'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; } &&
27461          { ac_try='test -s conftest.$ac_objext'
27462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463   (eval $ac_try) 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ol_cv_func_gethostbyname_r_nargs5=yes
27468 else
27469   echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.$ac_ext >&5
27471
27472 ol_cv_func_gethostbyname_r_nargs5=no
27473 fi
27474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27475
27476         cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h.  */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h.  */
27482 #include <sys/types.h>
27483 #include <sys/socket.h>
27484 #include <netinet/in.h>
27485 #include <netdb.h>
27486 #define BUFSIZE (sizeof(struct hostent)+10)
27487 int
27488 main ()
27489 {
27490 struct hostent hent;struct hostent *rhent;
27491                 char buffer[BUFSIZE];
27492                 int bufsize=BUFSIZE;int h_errno;
27493                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27494                         &rhent, &h_errno);
27495   ;
27496   return 0;
27497 }
27498 _ACEOF
27499 rm -f conftest.$ac_objext
27500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27501   (eval $ac_compile) 2>conftest.er1
27502   ac_status=$?
27503   grep -v '^ *+' conftest.er1 >conftest.err
27504   rm -f conftest.er1
27505   cat conftest.err >&5
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); } &&
27508          { ac_try='test -z "$ac_c_werror_flag"
27509                          || test ! -s conftest.err'
27510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27511   (eval $ac_try) 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); }; } &&
27515          { ac_try='test -s conftest.$ac_objext'
27516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517   (eval $ac_try) 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; }; then
27521   ol_cv_func_gethostbyname_r_nargs6=yes
27522 else
27523   echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526 ol_cv_func_gethostbyname_r_nargs6=no
27527 fi
27528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27529
27530         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27531            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27532
27533                 ol_cv_func_gethostbyname_r_nargs=5
27534
27535         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27536              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27537
27538                 ol_cv_func_gethostbyname_r_nargs=6
27539
27540         else
27541                 ol_cv_func_gethostbyname_r_nargs=0
27542         fi
27543
27544 fi
27545 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27546 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27547   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27548
27549 cat >>confdefs.h <<_ACEOF
27550 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27551 _ACEOF
27552
27553   fi
27554
27555 else
27556         ol_cv_func_gethostbyname_r_nargs=0
27557 fi
27558
27559 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27560         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27561 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27562 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27563   echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565   cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h.  */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h.  */
27571 #include <sys/types.h>
27572 #include <sys/socket.h>
27573 #include <netinet/in.h>
27574 #include <netdb.h>
27575 #define BUFSIZE (sizeof(struct hostent)+10)
27576 int
27577 main ()
27578 {
27579 struct hostent hent; char buffer[BUFSIZE];
27580             struct in_addr add;
27581             size_t alen=sizeof(struct in_addr);
27582             int bufsize=BUFSIZE;int h_errno;
27583                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27584                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27585   ;
27586   return 0;
27587 }
27588 _ACEOF
27589 rm -f conftest.$ac_objext
27590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27591   (eval $ac_compile) 2>conftest.er1
27592   ac_status=$?
27593   grep -v '^ *+' conftest.er1 >conftest.err
27594   rm -f conftest.er1
27595   cat conftest.err >&5
27596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597   (exit $ac_status); } &&
27598          { ac_try='test -z "$ac_c_werror_flag"
27599                          || test ! -s conftest.err'
27600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601   (eval $ac_try) 2>&5
27602   ac_status=$?
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); }; } &&
27605          { ac_try='test -s conftest.$ac_objext'
27606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607   (eval $ac_try) 2>&5
27608   ac_status=$?
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); }; }; then
27611   ol_cv_func_gethostbyaddr_r_nargs7=yes
27612 else
27613   echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27615
27616 ol_cv_func_gethostbyaddr_r_nargs7=no
27617 fi
27618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27619
27620         cat >conftest.$ac_ext <<_ACEOF
27621 /* confdefs.h.  */
27622 _ACEOF
27623 cat confdefs.h >>conftest.$ac_ext
27624 cat >>conftest.$ac_ext <<_ACEOF
27625 /* end confdefs.h.  */
27626 #include <sys/types.h>
27627 #include <sys/socket.h>
27628 #include <netinet/in.h>
27629 #include <netdb.h>
27630 #define BUFSIZE (sizeof(struct hostent)+10)
27631 int
27632 main ()
27633 {
27634 struct hostent hent;
27635                 struct hostent *rhent; char buffer[BUFSIZE];
27636                 struct in_addr add;
27637                 size_t alen=sizeof(struct in_addr);
27638                 int bufsize=BUFSIZE;int h_errno;
27639                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27640                         alen, AF_INET, &hent, buffer, bufsize,
27641                         &rhent, &h_errno);
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648   (eval $ac_compile) 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } &&
27655          { ac_try='test -z "$ac_c_werror_flag"
27656                          || test ! -s conftest.err'
27657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658   (eval $ac_try) 2>&5
27659   ac_status=$?
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); }; } &&
27662          { ac_try='test -s conftest.$ac_objext'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   ol_cv_func_gethostbyaddr_r_nargs8=yes
27669 else
27670   echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673 ol_cv_func_gethostbyaddr_r_nargs8=no
27674 fi
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27676
27677         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27678            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27679
27680                 ol_cv_func_gethostbyaddr_r_nargs=7
27681
27682         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27683              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27684
27685                 ol_cv_func_gethostbyaddr_r_nargs=8
27686
27687         else
27688                 ol_cv_func_gethostbyaddr_r_nargs=0
27689         fi
27690
27691 fi
27692 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27693 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27694   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27695
27696 cat >>confdefs.h <<_ACEOF
27697 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27698 _ACEOF
27699
27700   fi
27701
27702 else
27703         ol_cv_func_gethostbyaddr_r_nargs=0
27704 fi
27705
27706 ol_link_ldbm=no
27707
27708 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27709
27710         if test $ol_enable_ldbm_api = bcompat; then \
27711
27712
27713 for ac_header in db_185.h db.h
27714 do
27715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27717   echo "$as_me:$LINENO: checking for $ac_header" >&5
27718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27720   echo $ECHO_N "(cached) $ECHO_C" >&6
27721 fi
27722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27724 else
27725   # Is the header compilable?
27726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27728 cat >conftest.$ac_ext <<_ACEOF
27729 /* confdefs.h.  */
27730 _ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h.  */
27734 $ac_includes_default
27735 #include <$ac_header>
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739   (eval $ac_compile) 2>conftest.er1
27740   ac_status=$?
27741   grep -v '^ *+' conftest.er1 >conftest.err
27742   rm -f conftest.er1
27743   cat conftest.err >&5
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } &&
27746          { ac_try='test -z "$ac_c_werror_flag"
27747                          || test ! -s conftest.err'
27748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749   (eval $ac_try) 2>&5
27750   ac_status=$?
27751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752   (exit $ac_status); }; } &&
27753          { ac_try='test -s conftest.$ac_objext'
27754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755   (eval $ac_try) 2>&5
27756   ac_status=$?
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); }; }; then
27759   ac_header_compiler=yes
27760 else
27761   echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764 ac_header_compiler=no
27765 fi
27766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27768 echo "${ECHO_T}$ac_header_compiler" >&6
27769
27770 # Is the header present?
27771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27773 cat >conftest.$ac_ext <<_ACEOF
27774 /* confdefs.h.  */
27775 _ACEOF
27776 cat confdefs.h >>conftest.$ac_ext
27777 cat >>conftest.$ac_ext <<_ACEOF
27778 /* end confdefs.h.  */
27779 #include <$ac_header>
27780 _ACEOF
27781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27782   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27783   ac_status=$?
27784   grep -v '^ *+' conftest.er1 >conftest.err
27785   rm -f conftest.er1
27786   cat conftest.err >&5
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); } >/dev/null; then
27789   if test -s conftest.err; then
27790     ac_cpp_err=$ac_c_preproc_warn_flag
27791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27792   else
27793     ac_cpp_err=
27794   fi
27795 else
27796   ac_cpp_err=yes
27797 fi
27798 if test -z "$ac_cpp_err"; then
27799   ac_header_preproc=yes
27800 else
27801   echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27803
27804   ac_header_preproc=no
27805 fi
27806 rm -f conftest.err conftest.$ac_ext
27807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27808 echo "${ECHO_T}$ac_header_preproc" >&6
27809
27810 # So?  What about this header?
27811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27812   yes:no: )
27813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27817     ac_header_preproc=yes
27818     ;;
27819   no:yes:* )
27820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27832     (
27833       cat <<\_ASBOX
27834 ## ------------------------------------------ ##
27835 ## Report this to the AC_PACKAGE_NAME lists.  ##
27836 ## ------------------------------------------ ##
27837 _ASBOX
27838     ) |
27839       sed "s/^/$as_me: WARNING:     /" >&2
27840     ;;
27841 esac
27842 echo "$as_me:$LINENO: checking for $ac_header" >&5
27843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27845   echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847   eval "$as_ac_Header=\$ac_header_preproc"
27848 fi
27849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27851
27852 fi
27853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27854   cat >>confdefs.h <<_ACEOF
27855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27856 _ACEOF
27857
27858 fi
27859
27860 done
27861
27862 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27863         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27864 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27865 if test "${ol_cv_header_db1+set}" = set; then
27866   echo $ECHO_N "(cached) $ECHO_C" >&6
27867 else
27868
27869                 cat >conftest.$ac_ext <<_ACEOF
27870 /* confdefs.h.  */
27871 _ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h.  */
27875
27876 #if HAVE_DB_185_H
27877 #       include <db_185.h>
27878 #else
27879 #       include <db.h>
27880 #endif
27881
27882  /* this check could be improved */
27883 #ifndef DB_VERSION_MAJOR
27884 #       define DB_VERSION_MAJOR 1
27885 #endif
27886
27887 #if DB_VERSION_MAJOR == 1
27888         __db_version_1
27889 #endif
27890
27891 _ACEOF
27892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27893   $EGREP "__db_version_1" >/dev/null 2>&1; then
27894   ol_cv_header_db1=yes
27895 else
27896   ol_cv_header_db1=no
27897 fi
27898 rm -f conftest*
27899
27900 fi
27901 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27902 echo "${ECHO_T}$ol_cv_header_db1" >&6
27903
27904         if test $ol_cv_header_db1 = yes ; then
27905                 ol_cv_lib_db=no
27906
27907 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27908 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27909 if test "${ol_cv_bdb_major+set}" = set; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912
27913         ol_cv_bdb_major=0
27914         if test $ol_cv_bdb_major = 0 ; then
27915                 cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921
27922 #include <db.h>
27923 #ifndef DB_VERSION_MAJOR
27924 #       define DB_VERSION_MAJOR 1
27925 #endif
27926 #if DB_VERSION_MAJOR == 4
27927 __db_version
27928 #endif
27929
27930 _ACEOF
27931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27932   $EGREP "__db_version" >/dev/null 2>&1; then
27933   ol_cv_bdb_major=4
27934 else
27935   :
27936 fi
27937 rm -f conftest*
27938
27939         fi
27940         if test $ol_cv_bdb_major = 0 ; then
27941                 cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947
27948 #include <db.h>
27949 #ifndef DB_VERSION_MAJOR
27950 #       define DB_VERSION_MAJOR 1
27951 #endif
27952 #if DB_VERSION_MAJOR == 3
27953 __db_version
27954 #endif
27955
27956 _ACEOF
27957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27958   $EGREP "__db_version" >/dev/null 2>&1; then
27959   ol_cv_bdb_major=3
27960 else
27961   :
27962 fi
27963 rm -f conftest*
27964
27965         fi
27966         if test $ol_cv_bdb_major = 0 ; then
27967                 cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h.  */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h.  */
27973
27974 #include <db.h>
27975 #ifndef DB_VERSION_MAJOR
27976 #       define DB_VERSION_MAJOR 1
27977 #endif
27978 #if DB_VERSION_MAJOR == 2
27979 __db_version
27980 #endif
27981
27982 _ACEOF
27983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27984   $EGREP "__db_version" >/dev/null 2>&1; then
27985   ol_cv_bdb_major=2
27986 else
27987   :
27988 fi
27989 rm -f conftest*
27990
27991         fi
27992         if test $ol_cv_bdb_major = 0 ; then
27993                 cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999
28000 #include <db.h>
28001 #ifndef DB_VERSION_MAJOR
28002 #       define DB_VERSION_MAJOR 1
28003 #endif
28004 #if DB_VERSION_MAJOR == 1
28005 __db_version
28006 #endif
28007
28008 _ACEOF
28009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28010   $EGREP "__db_version" >/dev/null 2>&1; then
28011   ol_cv_bdb_major=1
28012 else
28013   :
28014 fi
28015 rm -f conftest*
28016
28017         fi
28018
28019         if test $ol_cv_bdb_major = 0 ; then
28020                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28021 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28022    { (exit 1); exit 1; }; }
28023         fi
28024
28025 fi
28026 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28027 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28028
28029 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28030 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28031 if test "${ol_cv_bdb_minor+set}" = set; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034
28035         ol_cv_bdb_minor=0
28036         if test $ol_cv_bdb_minor = 0 ; then
28037                 cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043
28044 #include <db.h>
28045 #ifndef DB_VERSION_MINOR
28046 #       define DB_VERSION_MINOR 0
28047 #endif
28048 #if DB_VERSION_MINOR == 9
28049 __db_version
28050 #endif
28051
28052 _ACEOF
28053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28054   $EGREP "__db_version" >/dev/null 2>&1; then
28055   ol_cv_bdb_minor=9
28056 else
28057   :
28058 fi
28059 rm -f conftest*
28060
28061         fi
28062         if test $ol_cv_bdb_minor = 0 ; then
28063                 cat >conftest.$ac_ext <<_ACEOF
28064 /* confdefs.h.  */
28065 _ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h.  */
28069
28070 #include <db.h>
28071 #ifndef DB_VERSION_MINOR
28072 #       define DB_VERSION_MINOR 0
28073 #endif
28074 #if DB_VERSION_MINOR == 8
28075 __db_version
28076 #endif
28077
28078 _ACEOF
28079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28080   $EGREP "__db_version" >/dev/null 2>&1; then
28081   ol_cv_bdb_minor=8
28082 else
28083   :
28084 fi
28085 rm -f conftest*
28086
28087         fi
28088         if test $ol_cv_bdb_minor = 0 ; then
28089                 cat >conftest.$ac_ext <<_ACEOF
28090 /* confdefs.h.  */
28091 _ACEOF
28092 cat confdefs.h >>conftest.$ac_ext
28093 cat >>conftest.$ac_ext <<_ACEOF
28094 /* end confdefs.h.  */
28095
28096 #include <db.h>
28097 #ifndef DB_VERSION_MINOR
28098 #       define DB_VERSION_MINOR 0
28099 #endif
28100 #if DB_VERSION_MINOR == 7
28101 __db_version
28102 #endif
28103
28104 _ACEOF
28105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28106   $EGREP "__db_version" >/dev/null 2>&1; then
28107   ol_cv_bdb_minor=7
28108 else
28109   :
28110 fi
28111 rm -f conftest*
28112
28113         fi
28114         if test $ol_cv_bdb_minor = 0 ; then
28115                 cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121
28122 #include <db.h>
28123 #ifndef DB_VERSION_MINOR
28124 #       define DB_VERSION_MINOR 0
28125 #endif
28126 #if DB_VERSION_MINOR == 6
28127 __db_version
28128 #endif
28129
28130 _ACEOF
28131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28132   $EGREP "__db_version" >/dev/null 2>&1; then
28133   ol_cv_bdb_minor=6
28134 else
28135   :
28136 fi
28137 rm -f conftest*
28138
28139         fi
28140         if test $ol_cv_bdb_minor = 0 ; then
28141                 cat >conftest.$ac_ext <<_ACEOF
28142 /* confdefs.h.  */
28143 _ACEOF
28144 cat confdefs.h >>conftest.$ac_ext
28145 cat >>conftest.$ac_ext <<_ACEOF
28146 /* end confdefs.h.  */
28147
28148 #include <db.h>
28149 #ifndef DB_VERSION_MINOR
28150 #       define DB_VERSION_MINOR 0
28151 #endif
28152 #if DB_VERSION_MINOR == 5
28153 __db_version
28154 #endif
28155
28156 _ACEOF
28157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28158   $EGREP "__db_version" >/dev/null 2>&1; then
28159   ol_cv_bdb_minor=5
28160 else
28161   :
28162 fi
28163 rm -f conftest*
28164
28165         fi
28166         if test $ol_cv_bdb_minor = 0 ; then
28167                 cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h.  */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h.  */
28173
28174 #include <db.h>
28175 #ifndef DB_VERSION_MINOR
28176 #       define DB_VERSION_MINOR 0
28177 #endif
28178 #if DB_VERSION_MINOR == 4
28179 __db_version
28180 #endif
28181
28182 _ACEOF
28183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28184   $EGREP "__db_version" >/dev/null 2>&1; then
28185   ol_cv_bdb_minor=4
28186 else
28187   :
28188 fi
28189 rm -f conftest*
28190
28191         fi
28192         if test $ol_cv_bdb_minor = 0 ; then
28193                 cat >conftest.$ac_ext <<_ACEOF
28194 /* confdefs.h.  */
28195 _ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h.  */
28199
28200 #include <db.h>
28201 #ifndef DB_VERSION_MINOR
28202 #       define DB_VERSION_MINOR 0
28203 #endif
28204 #if DB_VERSION_MINOR == 3
28205 __db_version
28206 #endif
28207
28208 _ACEOF
28209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28210   $EGREP "__db_version" >/dev/null 2>&1; then
28211   ol_cv_bdb_minor=3
28212 else
28213   :
28214 fi
28215 rm -f conftest*
28216
28217         fi
28218         if test $ol_cv_bdb_minor = 0 ; then
28219                 cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h.  */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h.  */
28225
28226 #include <db.h>
28227 #ifndef DB_VERSION_MINOR
28228 #       define DB_VERSION_MINOR 0
28229 #endif
28230 #if DB_VERSION_MINOR == 2
28231 __db_version
28232 #endif
28233
28234 _ACEOF
28235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28236   $EGREP "__db_version" >/dev/null 2>&1; then
28237   ol_cv_bdb_minor=2
28238 else
28239   :
28240 fi
28241 rm -f conftest*
28242
28243         fi
28244         if test $ol_cv_bdb_minor = 0 ; then
28245                 cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251
28252 #include <db.h>
28253 #ifndef DB_VERSION_MINOR
28254 #       define DB_VERSION_MINOR 0
28255 #endif
28256 #if DB_VERSION_MINOR == 1
28257 __db_version
28258 #endif
28259
28260 _ACEOF
28261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28262   $EGREP "__db_version" >/dev/null 2>&1; then
28263   ol_cv_bdb_minor=1
28264 else
28265   :
28266 fi
28267 rm -f conftest*
28268
28269         fi
28270
28271 fi
28272 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28273 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28274
28275 if test $ol_cv_bdb_major = 4 ; then
28276         if test $ol_cv_bdb_minor = 4 ; then
28277                 if test $ol_cv_lib_db = no ; then
28278         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28279 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28280 if test "${ol_cv_db_db44+set}" = set; then
28281   echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283
28284         ol_DB_LIB=-ldb44
28285         ol_LIBS=$LIBS
28286         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28287
28288         cat >conftest.$ac_ext <<_ACEOF
28289 /* confdefs.h.  */
28290 _ACEOF
28291 cat confdefs.h >>conftest.$ac_ext
28292 cat >>conftest.$ac_ext <<_ACEOF
28293 /* end confdefs.h.  */
28294
28295 #ifdef HAVE_DB_185_H
28296 # include <db_185.h>
28297 #else
28298 # include <db.h>
28299 #endif
28300
28301 #ifndef DB_VERSION_MAJOR
28302 # define DB_VERSION_MAJOR 1
28303 #endif
28304
28305 #ifndef NULL
28306 #define NULL ((void*)0)
28307 #endif
28308
28309 int
28310 main ()
28311 {
28312
28313 #if DB_VERSION_MAJOR > 1
28314         {
28315                 char *version;
28316                 int major, minor, patch;
28317
28318                 version = db_version( &major, &minor, &patch );
28319
28320                 if( major != DB_VERSION_MAJOR ||
28321                         minor < DB_VERSION_MINOR )
28322                 {
28323                         printf("Berkeley DB version mismatch\n"
28324                                 "\theader: %s\n\tlibrary: %s\n",
28325                                 DB_VERSION_STRING, version);
28326                         return 1;
28327                 }
28328         }
28329 #endif
28330
28331 #if DB_VERSION_MAJOR > 2
28332         db_env_create( NULL, 0 );
28333 #elif DB_VERSION_MAJOR > 1
28334         db_appexit( NULL );
28335 #else
28336         (void) dbopen( NULL, 0, 0, 0, NULL);
28337 #endif
28338
28339   ;
28340   return 0;
28341 }
28342 _ACEOF
28343 rm -f conftest.$ac_objext conftest$ac_exeext
28344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28345   (eval $ac_link) 2>conftest.er1
28346   ac_status=$?
28347   grep -v '^ *+' conftest.er1 >conftest.err
28348   rm -f conftest.er1
28349   cat conftest.err >&5
28350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351   (exit $ac_status); } &&
28352          { ac_try='test -z "$ac_c_werror_flag"
28353                          || test ! -s conftest.err'
28354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355   (eval $ac_try) 2>&5
28356   ac_status=$?
28357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358   (exit $ac_status); }; } &&
28359          { ac_try='test -s conftest$ac_exeext'
28360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361   (eval $ac_try) 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; }; then
28365   ol_cv_db_db44=yes
28366 else
28367   echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28369
28370 ol_cv_db_db44=no
28371 fi
28372 rm -f conftest.err conftest.$ac_objext \
28373       conftest$ac_exeext conftest.$ac_ext
28374
28375         LIBS="$ol_LIBS"
28376
28377 fi
28378 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28379 echo "${ECHO_T}$ol_cv_db_db44" >&6
28380
28381         if test $ol_cv_db_db44 = yes ; then
28382                 ol_cv_lib_db=-ldb44
28383         fi
28384 fi
28385
28386                 if test $ol_cv_lib_db = no ; then
28387         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28388 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28389 if test "${ol_cv_db_db_44+set}" = set; then
28390   echo $ECHO_N "(cached) $ECHO_C" >&6
28391 else
28392
28393         ol_DB_LIB=-ldb-44
28394         ol_LIBS=$LIBS
28395         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28396
28397         cat >conftest.$ac_ext <<_ACEOF
28398 /* confdefs.h.  */
28399 _ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h.  */
28403
28404 #ifdef HAVE_DB_185_H
28405 # include <db_185.h>
28406 #else
28407 # include <db.h>
28408 #endif
28409
28410 #ifndef DB_VERSION_MAJOR
28411 # define DB_VERSION_MAJOR 1
28412 #endif
28413
28414 #ifndef NULL
28415 #define NULL ((void*)0)
28416 #endif
28417
28418 int
28419 main ()
28420 {
28421
28422 #if DB_VERSION_MAJOR > 1
28423         {
28424                 char *version;
28425                 int major, minor, patch;
28426
28427                 version = db_version( &major, &minor, &patch );
28428
28429                 if( major != DB_VERSION_MAJOR ||
28430                         minor < DB_VERSION_MINOR )
28431                 {
28432                         printf("Berkeley DB version mismatch\n"
28433                                 "\theader: %s\n\tlibrary: %s\n",
28434                                 DB_VERSION_STRING, version);
28435                         return 1;
28436                 }
28437         }
28438 #endif
28439
28440 #if DB_VERSION_MAJOR > 2
28441         db_env_create( NULL, 0 );
28442 #elif DB_VERSION_MAJOR > 1
28443         db_appexit( NULL );
28444 #else
28445         (void) dbopen( NULL, 0, 0, 0, NULL);
28446 #endif
28447
28448   ;
28449   return 0;
28450 }
28451 _ACEOF
28452 rm -f conftest.$ac_objext conftest$ac_exeext
28453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28454   (eval $ac_link) 2>conftest.er1
28455   ac_status=$?
28456   grep -v '^ *+' conftest.er1 >conftest.err
28457   rm -f conftest.er1
28458   cat conftest.err >&5
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); } &&
28461          { ac_try='test -z "$ac_c_werror_flag"
28462                          || test ! -s conftest.err'
28463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464   (eval $ac_try) 2>&5
28465   ac_status=$?
28466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); }; } &&
28468          { ac_try='test -s conftest$ac_exeext'
28469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470   (eval $ac_try) 2>&5
28471   ac_status=$?
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); }; }; then
28474   ol_cv_db_db_44=yes
28475 else
28476   echo "$as_me: failed program was:" >&5
28477 sed 's/^/| /' conftest.$ac_ext >&5
28478
28479 ol_cv_db_db_44=no
28480 fi
28481 rm -f conftest.err conftest.$ac_objext \
28482       conftest$ac_exeext conftest.$ac_ext
28483
28484         LIBS="$ol_LIBS"
28485
28486 fi
28487 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28488 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28489
28490         if test $ol_cv_db_db_44 = yes ; then
28491                 ol_cv_lib_db=-ldb-44
28492         fi
28493 fi
28494
28495                 if test $ol_cv_lib_db = no ; then
28496         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28497 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28498 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28499   echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501
28502         ol_DB_LIB=-ldb-4.4
28503         ol_LIBS=$LIBS
28504         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28505
28506         cat >conftest.$ac_ext <<_ACEOF
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512
28513 #ifdef HAVE_DB_185_H
28514 # include <db_185.h>
28515 #else
28516 # include <db.h>
28517 #endif
28518
28519 #ifndef DB_VERSION_MAJOR
28520 # define DB_VERSION_MAJOR 1
28521 #endif
28522
28523 #ifndef NULL
28524 #define NULL ((void*)0)
28525 #endif
28526
28527 int
28528 main ()
28529 {
28530
28531 #if DB_VERSION_MAJOR > 1
28532         {
28533                 char *version;
28534                 int major, minor, patch;
28535
28536                 version = db_version( &major, &minor, &patch );
28537
28538                 if( major != DB_VERSION_MAJOR ||
28539                         minor < DB_VERSION_MINOR )
28540                 {
28541                         printf("Berkeley DB version mismatch\n"
28542                                 "\theader: %s\n\tlibrary: %s\n",
28543                                 DB_VERSION_STRING, version);
28544                         return 1;
28545                 }
28546         }
28547 #endif
28548
28549 #if DB_VERSION_MAJOR > 2
28550         db_env_create( NULL, 0 );
28551 #elif DB_VERSION_MAJOR > 1
28552         db_appexit( NULL );
28553 #else
28554         (void) dbopen( NULL, 0, 0, 0, NULL);
28555 #endif
28556
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext conftest$ac_exeext
28562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28563   (eval $ac_link) 2>conftest.er1
28564   ac_status=$?
28565   grep -v '^ *+' conftest.er1 >conftest.err
28566   rm -f conftest.er1
28567   cat conftest.err >&5
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); } &&
28570          { ac_try='test -z "$ac_c_werror_flag"
28571                          || test ! -s conftest.err'
28572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573   (eval $ac_try) 2>&5
28574   ac_status=$?
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); }; } &&
28577          { ac_try='test -s conftest$ac_exeext'
28578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28579   (eval $ac_try) 2>&5
28580   ac_status=$?
28581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582   (exit $ac_status); }; }; then
28583   ol_cv_db_db_4_dot_4=yes
28584 else
28585   echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588 ol_cv_db_db_4_dot_4=no
28589 fi
28590 rm -f conftest.err conftest.$ac_objext \
28591       conftest$ac_exeext conftest.$ac_ext
28592
28593         LIBS="$ol_LIBS"
28594
28595 fi
28596 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28597 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28598
28599         if test $ol_cv_db_db_4_dot_4 = yes ; then
28600                 ol_cv_lib_db=-ldb-4.4
28601         fi
28602 fi
28603
28604                 if test $ol_cv_lib_db = no ; then
28605         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28606 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28607 if test "${ol_cv_db_db_4_4+set}" = set; then
28608   echo $ECHO_N "(cached) $ECHO_C" >&6
28609 else
28610
28611         ol_DB_LIB=-ldb-4-4
28612         ol_LIBS=$LIBS
28613         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28614
28615         cat >conftest.$ac_ext <<_ACEOF
28616 /* confdefs.h.  */
28617 _ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h.  */
28621
28622 #ifdef HAVE_DB_185_H
28623 # include <db_185.h>
28624 #else
28625 # include <db.h>
28626 #endif
28627
28628 #ifndef DB_VERSION_MAJOR
28629 # define DB_VERSION_MAJOR 1
28630 #endif
28631
28632 #ifndef NULL
28633 #define NULL ((void*)0)
28634 #endif
28635
28636 int
28637 main ()
28638 {
28639
28640 #if DB_VERSION_MAJOR > 1
28641         {
28642                 char *version;
28643                 int major, minor, patch;
28644
28645                 version = db_version( &major, &minor, &patch );
28646
28647                 if( major != DB_VERSION_MAJOR ||
28648                         minor < DB_VERSION_MINOR )
28649                 {
28650                         printf("Berkeley DB version mismatch\n"
28651                                 "\theader: %s\n\tlibrary: %s\n",
28652                                 DB_VERSION_STRING, version);
28653                         return 1;
28654                 }
28655         }
28656 #endif
28657
28658 #if DB_VERSION_MAJOR > 2
28659         db_env_create( NULL, 0 );
28660 #elif DB_VERSION_MAJOR > 1
28661         db_appexit( NULL );
28662 #else
28663         (void) dbopen( NULL, 0, 0, 0, NULL);
28664 #endif
28665
28666   ;
28667   return 0;
28668 }
28669 _ACEOF
28670 rm -f conftest.$ac_objext conftest$ac_exeext
28671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28672   (eval $ac_link) 2>conftest.er1
28673   ac_status=$?
28674   grep -v '^ *+' conftest.er1 >conftest.err
28675   rm -f conftest.er1
28676   cat conftest.err >&5
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); } &&
28679          { ac_try='test -z "$ac_c_werror_flag"
28680                          || test ! -s conftest.err'
28681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682   (eval $ac_try) 2>&5
28683   ac_status=$?
28684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); }; } &&
28686          { ac_try='test -s conftest$ac_exeext'
28687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688   (eval $ac_try) 2>&5
28689   ac_status=$?
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); }; }; then
28692   ol_cv_db_db_4_4=yes
28693 else
28694   echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28696
28697 ol_cv_db_db_4_4=no
28698 fi
28699 rm -f conftest.err conftest.$ac_objext \
28700       conftest$ac_exeext conftest.$ac_ext
28701
28702         LIBS="$ol_LIBS"
28703
28704 fi
28705 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28706 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28707
28708         if test $ol_cv_db_db_4_4 = yes ; then
28709                 ol_cv_lib_db=-ldb-4-4
28710         fi
28711 fi
28712
28713         elif test $ol_cv_bdb_minor = 3 ; then
28714                 if test $ol_cv_lib_db = no ; then
28715         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28716 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28717 if test "${ol_cv_db_db43+set}" = set; then
28718   echo $ECHO_N "(cached) $ECHO_C" >&6
28719 else
28720
28721         ol_DB_LIB=-ldb43
28722         ol_LIBS=$LIBS
28723         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28724
28725         cat >conftest.$ac_ext <<_ACEOF
28726 /* confdefs.h.  */
28727 _ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h.  */
28731
28732 #ifdef HAVE_DB_185_H
28733 # include <db_185.h>
28734 #else
28735 # include <db.h>
28736 #endif
28737
28738 #ifndef DB_VERSION_MAJOR
28739 # define DB_VERSION_MAJOR 1
28740 #endif
28741
28742 #ifndef NULL
28743 #define NULL ((void*)0)
28744 #endif
28745
28746 int
28747 main ()
28748 {
28749
28750 #if DB_VERSION_MAJOR > 1
28751         {
28752                 char *version;
28753                 int major, minor, patch;
28754
28755                 version = db_version( &major, &minor, &patch );
28756
28757                 if( major != DB_VERSION_MAJOR ||
28758                         minor < DB_VERSION_MINOR )
28759                 {
28760                         printf("Berkeley DB version mismatch\n"
28761                                 "\theader: %s\n\tlibrary: %s\n",
28762                                 DB_VERSION_STRING, version);
28763                         return 1;
28764                 }
28765         }
28766 #endif
28767
28768 #if DB_VERSION_MAJOR > 2
28769         db_env_create( NULL, 0 );
28770 #elif DB_VERSION_MAJOR > 1
28771         db_appexit( NULL );
28772 #else
28773         (void) dbopen( NULL, 0, 0, 0, NULL);
28774 #endif
28775
28776   ;
28777   return 0;
28778 }
28779 _ACEOF
28780 rm -f conftest.$ac_objext conftest$ac_exeext
28781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28782   (eval $ac_link) 2>conftest.er1
28783   ac_status=$?
28784   grep -v '^ *+' conftest.er1 >conftest.err
28785   rm -f conftest.er1
28786   cat conftest.err >&5
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); } &&
28789          { ac_try='test -z "$ac_c_werror_flag"
28790                          || test ! -s conftest.err'
28791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792   (eval $ac_try) 2>&5
28793   ac_status=$?
28794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795   (exit $ac_status); }; } &&
28796          { ac_try='test -s conftest$ac_exeext'
28797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28798   (eval $ac_try) 2>&5
28799   ac_status=$?
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); }; }; then
28802   ol_cv_db_db43=yes
28803 else
28804   echo "$as_me: failed program was:" >&5
28805 sed 's/^/| /' conftest.$ac_ext >&5
28806
28807 ol_cv_db_db43=no
28808 fi
28809 rm -f conftest.err conftest.$ac_objext \
28810       conftest$ac_exeext conftest.$ac_ext
28811
28812         LIBS="$ol_LIBS"
28813
28814 fi
28815 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28816 echo "${ECHO_T}$ol_cv_db_db43" >&6
28817
28818         if test $ol_cv_db_db43 = yes ; then
28819                 ol_cv_lib_db=-ldb43
28820         fi
28821 fi
28822
28823                 if test $ol_cv_lib_db = no ; then
28824         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28825 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28826 if test "${ol_cv_db_db_43+set}" = set; then
28827   echo $ECHO_N "(cached) $ECHO_C" >&6
28828 else
28829
28830         ol_DB_LIB=-ldb-43
28831         ol_LIBS=$LIBS
28832         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28833
28834         cat >conftest.$ac_ext <<_ACEOF
28835 /* confdefs.h.  */
28836 _ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h.  */
28840
28841 #ifdef HAVE_DB_185_H
28842 # include <db_185.h>
28843 #else
28844 # include <db.h>
28845 #endif
28846
28847 #ifndef DB_VERSION_MAJOR
28848 # define DB_VERSION_MAJOR 1
28849 #endif
28850
28851 #ifndef NULL
28852 #define NULL ((void*)0)
28853 #endif
28854
28855 int
28856 main ()
28857 {
28858
28859 #if DB_VERSION_MAJOR > 1
28860         {
28861                 char *version;
28862                 int major, minor, patch;
28863
28864                 version = db_version( &major, &minor, &patch );
28865
28866                 if( major != DB_VERSION_MAJOR ||
28867                         minor < DB_VERSION_MINOR )
28868                 {
28869                         printf("Berkeley DB version mismatch\n"
28870                                 "\theader: %s\n\tlibrary: %s\n",
28871                                 DB_VERSION_STRING, version);
28872                         return 1;
28873                 }
28874         }
28875 #endif
28876
28877 #if DB_VERSION_MAJOR > 2
28878         db_env_create( NULL, 0 );
28879 #elif DB_VERSION_MAJOR > 1
28880         db_appexit( NULL );
28881 #else
28882         (void) dbopen( NULL, 0, 0, 0, NULL);
28883 #endif
28884
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28891   (eval $ac_link) 2>conftest.er1
28892   ac_status=$?
28893   grep -v '^ *+' conftest.er1 >conftest.err
28894   rm -f conftest.er1
28895   cat conftest.err >&5
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); } &&
28898          { ac_try='test -z "$ac_c_werror_flag"
28899                          || test ! -s conftest.err'
28900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28901   (eval $ac_try) 2>&5
28902   ac_status=$?
28903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904   (exit $ac_status); }; } &&
28905          { ac_try='test -s conftest$ac_exeext'
28906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28907   (eval $ac_try) 2>&5
28908   ac_status=$?
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); }; }; then
28911   ol_cv_db_db_43=yes
28912 else
28913   echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 ol_cv_db_db_43=no
28917 fi
28918 rm -f conftest.err conftest.$ac_objext \
28919       conftest$ac_exeext conftest.$ac_ext
28920
28921         LIBS="$ol_LIBS"
28922
28923 fi
28924 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28925 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28926
28927         if test $ol_cv_db_db_43 = yes ; then
28928                 ol_cv_lib_db=-ldb-43
28929         fi
28930 fi
28931
28932                 if test $ol_cv_lib_db = no ; then
28933         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28934 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28935 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28936   echo $ECHO_N "(cached) $ECHO_C" >&6
28937 else
28938
28939         ol_DB_LIB=-ldb-4.3
28940         ol_LIBS=$LIBS
28941         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28942
28943         cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h.  */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h.  */
28949
28950 #ifdef HAVE_DB_185_H
28951 # include <db_185.h>
28952 #else
28953 # include <db.h>
28954 #endif
28955
28956 #ifndef DB_VERSION_MAJOR
28957 # define DB_VERSION_MAJOR 1
28958 #endif
28959
28960 #ifndef NULL
28961 #define NULL ((void*)0)
28962 #endif
28963
28964 int
28965 main ()
28966 {
28967
28968 #if DB_VERSION_MAJOR > 1
28969         {
28970                 char *version;
28971                 int major, minor, patch;
28972
28973                 version = db_version( &major, &minor, &patch );
28974
28975                 if( major != DB_VERSION_MAJOR ||
28976                         minor < DB_VERSION_MINOR )
28977                 {
28978                         printf("Berkeley DB version mismatch\n"
28979                                 "\theader: %s\n\tlibrary: %s\n",
28980                                 DB_VERSION_STRING, version);
28981                         return 1;
28982                 }
28983         }
28984 #endif
28985
28986 #if DB_VERSION_MAJOR > 2
28987         db_env_create( NULL, 0 );
28988 #elif DB_VERSION_MAJOR > 1
28989         db_appexit( NULL );
28990 #else
28991         (void) dbopen( NULL, 0, 0, 0, NULL);
28992 #endif
28993
28994   ;
28995   return 0;
28996 }
28997 _ACEOF
28998 rm -f conftest.$ac_objext conftest$ac_exeext
28999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29000   (eval $ac_link) 2>conftest.er1
29001   ac_status=$?
29002   grep -v '^ *+' conftest.er1 >conftest.err
29003   rm -f conftest.er1
29004   cat conftest.err >&5
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); } &&
29007          { ac_try='test -z "$ac_c_werror_flag"
29008                          || test ! -s conftest.err'
29009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29010   (eval $ac_try) 2>&5
29011   ac_status=$?
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); }; } &&
29014          { ac_try='test -s conftest$ac_exeext'
29015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016   (eval $ac_try) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; }; then
29020   ol_cv_db_db_4_dot_3=yes
29021 else
29022   echo "$as_me: failed program was:" >&5
29023 sed 's/^/| /' conftest.$ac_ext >&5
29024
29025 ol_cv_db_db_4_dot_3=no
29026 fi
29027 rm -f conftest.err conftest.$ac_objext \
29028       conftest$ac_exeext conftest.$ac_ext
29029
29030         LIBS="$ol_LIBS"
29031
29032 fi
29033 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29034 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29035
29036         if test $ol_cv_db_db_4_dot_3 = yes ; then
29037                 ol_cv_lib_db=-ldb-4.3
29038         fi
29039 fi
29040
29041                 if test $ol_cv_lib_db = no ; then
29042         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29043 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29044 if test "${ol_cv_db_db_4_3+set}" = set; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047
29048         ol_DB_LIB=-ldb-4-3
29049         ol_LIBS=$LIBS
29050         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29051
29052         cat >conftest.$ac_ext <<_ACEOF
29053 /* confdefs.h.  */
29054 _ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h.  */
29058
29059 #ifdef HAVE_DB_185_H
29060 # include <db_185.h>
29061 #else
29062 # include <db.h>
29063 #endif
29064
29065 #ifndef DB_VERSION_MAJOR
29066 # define DB_VERSION_MAJOR 1
29067 #endif
29068
29069 #ifndef NULL
29070 #define NULL ((void*)0)
29071 #endif
29072
29073 int
29074 main ()
29075 {
29076
29077 #if DB_VERSION_MAJOR > 1
29078         {
29079                 char *version;
29080                 int major, minor, patch;
29081
29082                 version = db_version( &major, &minor, &patch );
29083
29084                 if( major != DB_VERSION_MAJOR ||
29085                         minor < DB_VERSION_MINOR )
29086                 {
29087                         printf("Berkeley DB version mismatch\n"
29088                                 "\theader: %s\n\tlibrary: %s\n",
29089                                 DB_VERSION_STRING, version);
29090                         return 1;
29091                 }
29092         }
29093 #endif
29094
29095 #if DB_VERSION_MAJOR > 2
29096         db_env_create( NULL, 0 );
29097 #elif DB_VERSION_MAJOR > 1
29098         db_appexit( NULL );
29099 #else
29100         (void) dbopen( NULL, 0, 0, 0, NULL);
29101 #endif
29102
29103   ;
29104   return 0;
29105 }
29106 _ACEOF
29107 rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29109   (eval $ac_link) 2>conftest.er1
29110   ac_status=$?
29111   grep -v '^ *+' conftest.er1 >conftest.err
29112   rm -f conftest.er1
29113   cat conftest.err >&5
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); } &&
29116          { ac_try='test -z "$ac_c_werror_flag"
29117                          || test ! -s conftest.err'
29118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119   (eval $ac_try) 2>&5
29120   ac_status=$?
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); }; } &&
29123          { ac_try='test -s conftest$ac_exeext'
29124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125   (eval $ac_try) 2>&5
29126   ac_status=$?
29127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128   (exit $ac_status); }; }; then
29129   ol_cv_db_db_4_3=yes
29130 else
29131   echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ol_cv_db_db_4_3=no
29135 fi
29136 rm -f conftest.err conftest.$ac_objext \
29137       conftest$ac_exeext conftest.$ac_ext
29138
29139         LIBS="$ol_LIBS"
29140
29141 fi
29142 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29143 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29144
29145         if test $ol_cv_db_db_4_3 = yes ; then
29146                 ol_cv_lib_db=-ldb-4-3
29147         fi
29148 fi
29149
29150         elif test $ol_cv_bdb_minor = 2 ; then
29151                 if test $ol_cv_lib_db = no ; then
29152         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29153 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29154 if test "${ol_cv_db_db42+set}" = set; then
29155   echo $ECHO_N "(cached) $ECHO_C" >&6
29156 else
29157
29158         ol_DB_LIB=-ldb42
29159         ol_LIBS=$LIBS
29160         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29161
29162         cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168
29169 #ifdef HAVE_DB_185_H
29170 # include <db_185.h>
29171 #else
29172 # include <db.h>
29173 #endif
29174
29175 #ifndef DB_VERSION_MAJOR
29176 # define DB_VERSION_MAJOR 1
29177 #endif
29178
29179 #ifndef NULL
29180 #define NULL ((void*)0)
29181 #endif
29182
29183 int
29184 main ()
29185 {
29186
29187 #if DB_VERSION_MAJOR > 1
29188         {
29189                 char *version;
29190                 int major, minor, patch;
29191
29192                 version = db_version( &major, &minor, &patch );
29193
29194                 if( major != DB_VERSION_MAJOR ||
29195                         minor < DB_VERSION_MINOR )
29196                 {
29197                         printf("Berkeley DB version mismatch\n"
29198                                 "\theader: %s\n\tlibrary: %s\n",
29199                                 DB_VERSION_STRING, version);
29200                         return 1;
29201                 }
29202         }
29203 #endif
29204
29205 #if DB_VERSION_MAJOR > 2
29206         db_env_create( NULL, 0 );
29207 #elif DB_VERSION_MAJOR > 1
29208         db_appexit( NULL );
29209 #else
29210         (void) dbopen( NULL, 0, 0, 0, NULL);
29211 #endif
29212
29213   ;
29214   return 0;
29215 }
29216 _ACEOF
29217 rm -f conftest.$ac_objext conftest$ac_exeext
29218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29219   (eval $ac_link) 2>conftest.er1
29220   ac_status=$?
29221   grep -v '^ *+' conftest.er1 >conftest.err
29222   rm -f conftest.er1
29223   cat conftest.err >&5
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); } &&
29226          { ac_try='test -z "$ac_c_werror_flag"
29227                          || test ! -s conftest.err'
29228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29229   (eval $ac_try) 2>&5
29230   ac_status=$?
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); }; } &&
29233          { ac_try='test -s conftest$ac_exeext'
29234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235   (eval $ac_try) 2>&5
29236   ac_status=$?
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); }; }; then
29239   ol_cv_db_db42=yes
29240 else
29241   echo "$as_me: failed program was:" >&5
29242 sed 's/^/| /' conftest.$ac_ext >&5
29243
29244 ol_cv_db_db42=no
29245 fi
29246 rm -f conftest.err conftest.$ac_objext \
29247       conftest$ac_exeext conftest.$ac_ext
29248
29249         LIBS="$ol_LIBS"
29250
29251 fi
29252 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29253 echo "${ECHO_T}$ol_cv_db_db42" >&6
29254
29255         if test $ol_cv_db_db42 = yes ; then
29256                 ol_cv_lib_db=-ldb42
29257         fi
29258 fi
29259
29260                 if test $ol_cv_lib_db = no ; then
29261         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29262 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29263 if test "${ol_cv_db_db_42+set}" = set; then
29264   echo $ECHO_N "(cached) $ECHO_C" >&6
29265 else
29266
29267         ol_DB_LIB=-ldb-42
29268         ol_LIBS=$LIBS
29269         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29270
29271         cat >conftest.$ac_ext <<_ACEOF
29272 /* confdefs.h.  */
29273 _ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h.  */
29277
29278 #ifdef HAVE_DB_185_H
29279 # include <db_185.h>
29280 #else
29281 # include <db.h>
29282 #endif
29283
29284 #ifndef DB_VERSION_MAJOR
29285 # define DB_VERSION_MAJOR 1
29286 #endif
29287
29288 #ifndef NULL
29289 #define NULL ((void*)0)
29290 #endif
29291
29292 int
29293 main ()
29294 {
29295
29296 #if DB_VERSION_MAJOR > 1
29297         {
29298                 char *version;
29299                 int major, minor, patch;
29300
29301                 version = db_version( &major, &minor, &patch );
29302
29303                 if( major != DB_VERSION_MAJOR ||
29304                         minor < DB_VERSION_MINOR )
29305                 {
29306                         printf("Berkeley DB version mismatch\n"
29307                                 "\theader: %s\n\tlibrary: %s\n",
29308                                 DB_VERSION_STRING, version);
29309                         return 1;
29310                 }
29311         }
29312 #endif
29313
29314 #if DB_VERSION_MAJOR > 2
29315         db_env_create( NULL, 0 );
29316 #elif DB_VERSION_MAJOR > 1
29317         db_appexit( NULL );
29318 #else
29319         (void) dbopen( NULL, 0, 0, 0, NULL);
29320 #endif
29321
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328   (eval $ac_link) 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } &&
29335          { ac_try='test -z "$ac_c_werror_flag"
29336                          || test ! -s conftest.err'
29337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338   (eval $ac_try) 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest$ac_exeext'
29343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344   (eval $ac_try) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; }; then
29348   ol_cv_db_db_42=yes
29349 else
29350   echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29352
29353 ol_cv_db_db_42=no
29354 fi
29355 rm -f conftest.err conftest.$ac_objext \
29356       conftest$ac_exeext conftest.$ac_ext
29357
29358         LIBS="$ol_LIBS"
29359
29360 fi
29361 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29362 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29363
29364         if test $ol_cv_db_db_42 = yes ; then
29365                 ol_cv_lib_db=-ldb-42
29366         fi
29367 fi
29368
29369                 if test $ol_cv_lib_db = no ; then
29370         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29371 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29372 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375
29376         ol_DB_LIB=-ldb-4.2
29377         ol_LIBS=$LIBS
29378         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29379
29380         cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386
29387 #ifdef HAVE_DB_185_H
29388 # include <db_185.h>
29389 #else
29390 # include <db.h>
29391 #endif
29392
29393 #ifndef DB_VERSION_MAJOR
29394 # define DB_VERSION_MAJOR 1
29395 #endif
29396
29397 #ifndef NULL
29398 #define NULL ((void*)0)
29399 #endif
29400
29401 int
29402 main ()
29403 {
29404
29405 #if DB_VERSION_MAJOR > 1
29406         {
29407                 char *version;
29408                 int major, minor, patch;
29409
29410                 version = db_version( &major, &minor, &patch );
29411
29412                 if( major != DB_VERSION_MAJOR ||
29413                         minor < DB_VERSION_MINOR )
29414                 {
29415                         printf("Berkeley DB version mismatch\n"
29416                                 "\theader: %s\n\tlibrary: %s\n",
29417                                 DB_VERSION_STRING, version);
29418                         return 1;
29419                 }
29420         }
29421 #endif
29422
29423 #if DB_VERSION_MAJOR > 2
29424         db_env_create( NULL, 0 );
29425 #elif DB_VERSION_MAJOR > 1
29426         db_appexit( NULL );
29427 #else
29428         (void) dbopen( NULL, 0, 0, 0, NULL);
29429 #endif
29430
29431   ;
29432   return 0;
29433 }
29434 _ACEOF
29435 rm -f conftest.$ac_objext conftest$ac_exeext
29436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29437   (eval $ac_link) 2>conftest.er1
29438   ac_status=$?
29439   grep -v '^ *+' conftest.er1 >conftest.err
29440   rm -f conftest.er1
29441   cat conftest.err >&5
29442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443   (exit $ac_status); } &&
29444          { ac_try='test -z "$ac_c_werror_flag"
29445                          || test ! -s conftest.err'
29446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29447   (eval $ac_try) 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); }; } &&
29451          { ac_try='test -s conftest$ac_exeext'
29452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29453   (eval $ac_try) 2>&5
29454   ac_status=$?
29455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29456   (exit $ac_status); }; }; then
29457   ol_cv_db_db_4_dot_2=yes
29458 else
29459   echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29461
29462 ol_cv_db_db_4_dot_2=no
29463 fi
29464 rm -f conftest.err conftest.$ac_objext \
29465       conftest$ac_exeext conftest.$ac_ext
29466
29467         LIBS="$ol_LIBS"
29468
29469 fi
29470 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29471 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29472
29473         if test $ol_cv_db_db_4_dot_2 = yes ; then
29474                 ol_cv_lib_db=-ldb-4.2
29475         fi
29476 fi
29477
29478                 if test $ol_cv_lib_db = no ; then
29479         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29480 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29481 if test "${ol_cv_db_db_4_2+set}" = set; then
29482   echo $ECHO_N "(cached) $ECHO_C" >&6
29483 else
29484
29485         ol_DB_LIB=-ldb-4-2
29486         ol_LIBS=$LIBS
29487         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29488
29489         cat >conftest.$ac_ext <<_ACEOF
29490 /* confdefs.h.  */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h.  */
29495
29496 #ifdef HAVE_DB_185_H
29497 # include <db_185.h>
29498 #else
29499 # include <db.h>
29500 #endif
29501
29502 #ifndef DB_VERSION_MAJOR
29503 # define DB_VERSION_MAJOR 1
29504 #endif
29505
29506 #ifndef NULL
29507 #define NULL ((void*)0)
29508 #endif
29509
29510 int
29511 main ()
29512 {
29513
29514 #if DB_VERSION_MAJOR > 1
29515         {
29516                 char *version;
29517                 int major, minor, patch;
29518
29519                 version = db_version( &major, &minor, &patch );
29520
29521                 if( major != DB_VERSION_MAJOR ||
29522                         minor < DB_VERSION_MINOR )
29523                 {
29524                         printf("Berkeley DB version mismatch\n"
29525                                 "\theader: %s\n\tlibrary: %s\n",
29526                                 DB_VERSION_STRING, version);
29527                         return 1;
29528                 }
29529         }
29530 #endif
29531
29532 #if DB_VERSION_MAJOR > 2
29533         db_env_create( NULL, 0 );
29534 #elif DB_VERSION_MAJOR > 1
29535         db_appexit( NULL );
29536 #else
29537         (void) dbopen( NULL, 0, 0, 0, NULL);
29538 #endif
29539
29540   ;
29541   return 0;
29542 }
29543 _ACEOF
29544 rm -f conftest.$ac_objext conftest$ac_exeext
29545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29546   (eval $ac_link) 2>conftest.er1
29547   ac_status=$?
29548   grep -v '^ *+' conftest.er1 >conftest.err
29549   rm -f conftest.er1
29550   cat conftest.err >&5
29551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); } &&
29553          { ac_try='test -z "$ac_c_werror_flag"
29554                          || test ! -s conftest.err'
29555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29556   (eval $ac_try) 2>&5
29557   ac_status=$?
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); }; } &&
29560          { ac_try='test -s conftest$ac_exeext'
29561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562   (eval $ac_try) 2>&5
29563   ac_status=$?
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); }; }; then
29566   ol_cv_db_db_4_2=yes
29567 else
29568   echo "$as_me: failed program was:" >&5
29569 sed 's/^/| /' conftest.$ac_ext >&5
29570
29571 ol_cv_db_db_4_2=no
29572 fi
29573 rm -f conftest.err conftest.$ac_objext \
29574       conftest$ac_exeext conftest.$ac_ext
29575
29576         LIBS="$ol_LIBS"
29577
29578 fi
29579 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29580 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29581
29582         if test $ol_cv_db_db_4_2 = yes ; then
29583                 ol_cv_lib_db=-ldb-4-2
29584         fi
29585 fi
29586
29587         elif test $ol_cv_bdb_minor = 1 ; then
29588                 if test $ol_cv_lib_db = no ; then
29589         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29590 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29591 if test "${ol_cv_db_db41+set}" = set; then
29592   echo $ECHO_N "(cached) $ECHO_C" >&6
29593 else
29594
29595         ol_DB_LIB=-ldb41
29596         ol_LIBS=$LIBS
29597         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29598
29599         cat >conftest.$ac_ext <<_ACEOF
29600 /* confdefs.h.  */
29601 _ACEOF
29602 cat confdefs.h >>conftest.$ac_ext
29603 cat >>conftest.$ac_ext <<_ACEOF
29604 /* end confdefs.h.  */
29605
29606 #ifdef HAVE_DB_185_H
29607 # include <db_185.h>
29608 #else
29609 # include <db.h>
29610 #endif
29611
29612 #ifndef DB_VERSION_MAJOR
29613 # define DB_VERSION_MAJOR 1
29614 #endif
29615
29616 #ifndef NULL
29617 #define NULL ((void*)0)
29618 #endif
29619
29620 int
29621 main ()
29622 {
29623
29624 #if DB_VERSION_MAJOR > 1
29625         {
29626                 char *version;
29627                 int major, minor, patch;
29628
29629                 version = db_version( &major, &minor, &patch );
29630
29631                 if( major != DB_VERSION_MAJOR ||
29632                         minor < DB_VERSION_MINOR )
29633                 {
29634                         printf("Berkeley DB version mismatch\n"
29635                                 "\theader: %s\n\tlibrary: %s\n",
29636                                 DB_VERSION_STRING, version);
29637                         return 1;
29638                 }
29639         }
29640 #endif
29641
29642 #if DB_VERSION_MAJOR > 2
29643         db_env_create( NULL, 0 );
29644 #elif DB_VERSION_MAJOR > 1
29645         db_appexit( NULL );
29646 #else
29647         (void) dbopen( NULL, 0, 0, 0, NULL);
29648 #endif
29649
29650   ;
29651   return 0;
29652 }
29653 _ACEOF
29654 rm -f conftest.$ac_objext conftest$ac_exeext
29655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29656   (eval $ac_link) 2>conftest.er1
29657   ac_status=$?
29658   grep -v '^ *+' conftest.er1 >conftest.err
29659   rm -f conftest.er1
29660   cat conftest.err >&5
29661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662   (exit $ac_status); } &&
29663          { ac_try='test -z "$ac_c_werror_flag"
29664                          || test ! -s conftest.err'
29665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666   (eval $ac_try) 2>&5
29667   ac_status=$?
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; } &&
29670          { ac_try='test -s conftest$ac_exeext'
29671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29672   (eval $ac_try) 2>&5
29673   ac_status=$?
29674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); }; }; then
29676   ol_cv_db_db41=yes
29677 else
29678   echo "$as_me: failed program was:" >&5
29679 sed 's/^/| /' conftest.$ac_ext >&5
29680
29681 ol_cv_db_db41=no
29682 fi
29683 rm -f conftest.err conftest.$ac_objext \
29684       conftest$ac_exeext conftest.$ac_ext
29685
29686         LIBS="$ol_LIBS"
29687
29688 fi
29689 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29690 echo "${ECHO_T}$ol_cv_db_db41" >&6
29691
29692         if test $ol_cv_db_db41 = yes ; then
29693                 ol_cv_lib_db=-ldb41
29694         fi
29695 fi
29696
29697                 if test $ol_cv_lib_db = no ; then
29698         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29699 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29700 if test "${ol_cv_db_db_41+set}" = set; then
29701   echo $ECHO_N "(cached) $ECHO_C" >&6
29702 else
29703
29704         ol_DB_LIB=-ldb-41
29705         ol_LIBS=$LIBS
29706         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29707
29708         cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h.  */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h.  */
29714
29715 #ifdef HAVE_DB_185_H
29716 # include <db_185.h>
29717 #else
29718 # include <db.h>
29719 #endif
29720
29721 #ifndef DB_VERSION_MAJOR
29722 # define DB_VERSION_MAJOR 1
29723 #endif
29724
29725 #ifndef NULL
29726 #define NULL ((void*)0)
29727 #endif
29728
29729 int
29730 main ()
29731 {
29732
29733 #if DB_VERSION_MAJOR > 1
29734         {
29735                 char *version;
29736                 int major, minor, patch;
29737
29738                 version = db_version( &major, &minor, &patch );
29739
29740                 if( major != DB_VERSION_MAJOR ||
29741                         minor < DB_VERSION_MINOR )
29742                 {
29743                         printf("Berkeley DB version mismatch\n"
29744                                 "\theader: %s\n\tlibrary: %s\n",
29745                                 DB_VERSION_STRING, version);
29746                         return 1;
29747                 }
29748         }
29749 #endif
29750
29751 #if DB_VERSION_MAJOR > 2
29752         db_env_create( NULL, 0 );
29753 #elif DB_VERSION_MAJOR > 1
29754         db_appexit( NULL );
29755 #else
29756         (void) dbopen( NULL, 0, 0, 0, NULL);
29757 #endif
29758
29759   ;
29760   return 0;
29761 }
29762 _ACEOF
29763 rm -f conftest.$ac_objext conftest$ac_exeext
29764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29765   (eval $ac_link) 2>conftest.er1
29766   ac_status=$?
29767   grep -v '^ *+' conftest.er1 >conftest.err
29768   rm -f conftest.er1
29769   cat conftest.err >&5
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); } &&
29772          { ac_try='test -z "$ac_c_werror_flag"
29773                          || test ! -s conftest.err'
29774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775   (eval $ac_try) 2>&5
29776   ac_status=$?
29777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778   (exit $ac_status); }; } &&
29779          { ac_try='test -s conftest$ac_exeext'
29780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781   (eval $ac_try) 2>&5
29782   ac_status=$?
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); }; }; then
29785   ol_cv_db_db_41=yes
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790 ol_cv_db_db_41=no
29791 fi
29792 rm -f conftest.err conftest.$ac_objext \
29793       conftest$ac_exeext conftest.$ac_ext
29794
29795         LIBS="$ol_LIBS"
29796
29797 fi
29798 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29799 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29800
29801         if test $ol_cv_db_db_41 = yes ; then
29802                 ol_cv_lib_db=-ldb-41
29803         fi
29804 fi
29805
29806                 if test $ol_cv_lib_db = no ; then
29807         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29808 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29809 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29810   echo $ECHO_N "(cached) $ECHO_C" >&6
29811 else
29812
29813         ol_DB_LIB=-ldb-4.1
29814         ol_LIBS=$LIBS
29815         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29816
29817         cat >conftest.$ac_ext <<_ACEOF
29818 /* confdefs.h.  */
29819 _ACEOF
29820 cat confdefs.h >>conftest.$ac_ext
29821 cat >>conftest.$ac_ext <<_ACEOF
29822 /* end confdefs.h.  */
29823
29824 #ifdef HAVE_DB_185_H
29825 # include <db_185.h>
29826 #else
29827 # include <db.h>
29828 #endif
29829
29830 #ifndef DB_VERSION_MAJOR
29831 # define DB_VERSION_MAJOR 1
29832 #endif
29833
29834 #ifndef NULL
29835 #define NULL ((void*)0)
29836 #endif
29837
29838 int
29839 main ()
29840 {
29841
29842 #if DB_VERSION_MAJOR > 1
29843         {
29844                 char *version;
29845                 int major, minor, patch;
29846
29847                 version = db_version( &major, &minor, &patch );
29848
29849                 if( major != DB_VERSION_MAJOR ||
29850                         minor < DB_VERSION_MINOR )
29851                 {
29852                         printf("Berkeley DB version mismatch\n"
29853                                 "\theader: %s\n\tlibrary: %s\n",
29854                                 DB_VERSION_STRING, version);
29855                         return 1;
29856                 }
29857         }
29858 #endif
29859
29860 #if DB_VERSION_MAJOR > 2
29861         db_env_create( NULL, 0 );
29862 #elif DB_VERSION_MAJOR > 1
29863         db_appexit( NULL );
29864 #else
29865         (void) dbopen( NULL, 0, 0, 0, NULL);
29866 #endif
29867
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext conftest$ac_exeext
29873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29874   (eval $ac_link) 2>conftest.er1
29875   ac_status=$?
29876   grep -v '^ *+' conftest.er1 >conftest.err
29877   rm -f conftest.er1
29878   cat conftest.err >&5
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); } &&
29881          { ac_try='test -z "$ac_c_werror_flag"
29882                          || test ! -s conftest.err'
29883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884   (eval $ac_try) 2>&5
29885   ac_status=$?
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); }; } &&
29888          { ac_try='test -s conftest$ac_exeext'
29889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890   (eval $ac_try) 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); }; }; then
29894   ol_cv_db_db_4_dot_1=yes
29895 else
29896   echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899 ol_cv_db_db_4_dot_1=no
29900 fi
29901 rm -f conftest.err conftest.$ac_objext \
29902       conftest$ac_exeext conftest.$ac_ext
29903
29904         LIBS="$ol_LIBS"
29905
29906 fi
29907 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29908 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29909
29910         if test $ol_cv_db_db_4_dot_1 = yes ; then
29911                 ol_cv_lib_db=-ldb-4.1
29912         fi
29913 fi
29914
29915                 if test $ol_cv_lib_db = no ; then
29916         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29917 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29918 if test "${ol_cv_db_db_4_1+set}" = set; then
29919   echo $ECHO_N "(cached) $ECHO_C" >&6
29920 else
29921
29922         ol_DB_LIB=-ldb-4-1
29923         ol_LIBS=$LIBS
29924         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29925
29926         cat >conftest.$ac_ext <<_ACEOF
29927 /* confdefs.h.  */
29928 _ACEOF
29929 cat confdefs.h >>conftest.$ac_ext
29930 cat >>conftest.$ac_ext <<_ACEOF
29931 /* end confdefs.h.  */
29932
29933 #ifdef HAVE_DB_185_H
29934 # include <db_185.h>
29935 #else
29936 # include <db.h>
29937 #endif
29938
29939 #ifndef DB_VERSION_MAJOR
29940 # define DB_VERSION_MAJOR 1
29941 #endif
29942
29943 #ifndef NULL
29944 #define NULL ((void*)0)
29945 #endif
29946
29947 int
29948 main ()
29949 {
29950
29951 #if DB_VERSION_MAJOR > 1
29952         {
29953                 char *version;
29954                 int major, minor, patch;
29955
29956                 version = db_version( &major, &minor, &patch );
29957
29958                 if( major != DB_VERSION_MAJOR ||
29959                         minor < DB_VERSION_MINOR )
29960                 {
29961                         printf("Berkeley DB version mismatch\n"
29962                                 "\theader: %s\n\tlibrary: %s\n",
29963                                 DB_VERSION_STRING, version);
29964                         return 1;
29965                 }
29966         }
29967 #endif
29968
29969 #if DB_VERSION_MAJOR > 2
29970         db_env_create( NULL, 0 );
29971 #elif DB_VERSION_MAJOR > 1
29972         db_appexit( NULL );
29973 #else
29974         (void) dbopen( NULL, 0, 0, 0, NULL);
29975 #endif
29976
29977   ;
29978   return 0;
29979 }
29980 _ACEOF
29981 rm -f conftest.$ac_objext conftest$ac_exeext
29982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29983   (eval $ac_link) 2>conftest.er1
29984   ac_status=$?
29985   grep -v '^ *+' conftest.er1 >conftest.err
29986   rm -f conftest.er1
29987   cat conftest.err >&5
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); } &&
29990          { ac_try='test -z "$ac_c_werror_flag"
29991                          || test ! -s conftest.err'
29992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993   (eval $ac_try) 2>&5
29994   ac_status=$?
29995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996   (exit $ac_status); }; } &&
29997          { ac_try='test -s conftest$ac_exeext'
29998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999   (eval $ac_try) 2>&5
30000   ac_status=$?
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); }; }; then
30003   ol_cv_db_db_4_1=yes
30004 else
30005   echo "$as_me: failed program was:" >&5
30006 sed 's/^/| /' conftest.$ac_ext >&5
30007
30008 ol_cv_db_db_4_1=no
30009 fi
30010 rm -f conftest.err conftest.$ac_objext \
30011       conftest$ac_exeext conftest.$ac_ext
30012
30013         LIBS="$ol_LIBS"
30014
30015 fi
30016 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30017 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30018
30019         if test $ol_cv_db_db_4_1 = yes ; then
30020                 ol_cv_lib_db=-ldb-4-1
30021         fi
30022 fi
30023
30024         fi
30025         if test $ol_cv_lib_db = no ; then
30026         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30027 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30028 if test "${ol_cv_db_db_4+set}" = set; then
30029   echo $ECHO_N "(cached) $ECHO_C" >&6
30030 else
30031
30032         ol_DB_LIB=-ldb-4
30033         ol_LIBS=$LIBS
30034         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30035
30036         cat >conftest.$ac_ext <<_ACEOF
30037 /* confdefs.h.  */
30038 _ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h.  */
30042
30043 #ifdef HAVE_DB_185_H
30044 # include <db_185.h>
30045 #else
30046 # include <db.h>
30047 #endif
30048
30049 #ifndef DB_VERSION_MAJOR
30050 # define DB_VERSION_MAJOR 1
30051 #endif
30052
30053 #ifndef NULL
30054 #define NULL ((void*)0)
30055 #endif
30056
30057 int
30058 main ()
30059 {
30060
30061 #if DB_VERSION_MAJOR > 1
30062         {
30063                 char *version;
30064                 int major, minor, patch;
30065
30066                 version = db_version( &major, &minor, &patch );
30067
30068                 if( major != DB_VERSION_MAJOR ||
30069                         minor < DB_VERSION_MINOR )
30070                 {
30071                         printf("Berkeley DB version mismatch\n"
30072                                 "\theader: %s\n\tlibrary: %s\n",
30073                                 DB_VERSION_STRING, version);
30074                         return 1;
30075                 }
30076         }
30077 #endif
30078
30079 #if DB_VERSION_MAJOR > 2
30080         db_env_create( NULL, 0 );
30081 #elif DB_VERSION_MAJOR > 1
30082         db_appexit( NULL );
30083 #else
30084         (void) dbopen( NULL, 0, 0, 0, NULL);
30085 #endif
30086
30087   ;
30088   return 0;
30089 }
30090 _ACEOF
30091 rm -f conftest.$ac_objext conftest$ac_exeext
30092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30093   (eval $ac_link) 2>conftest.er1
30094   ac_status=$?
30095   grep -v '^ *+' conftest.er1 >conftest.err
30096   rm -f conftest.er1
30097   cat conftest.err >&5
30098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099   (exit $ac_status); } &&
30100          { ac_try='test -z "$ac_c_werror_flag"
30101                          || test ! -s conftest.err'
30102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103   (eval $ac_try) 2>&5
30104   ac_status=$?
30105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106   (exit $ac_status); }; } &&
30107          { ac_try='test -s conftest$ac_exeext'
30108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109   (eval $ac_try) 2>&5
30110   ac_status=$?
30111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112   (exit $ac_status); }; }; then
30113   ol_cv_db_db_4=yes
30114 else
30115   echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30117
30118 ol_cv_db_db_4=no
30119 fi
30120 rm -f conftest.err conftest.$ac_objext \
30121       conftest$ac_exeext conftest.$ac_ext
30122
30123         LIBS="$ol_LIBS"
30124
30125 fi
30126 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30127 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30128
30129         if test $ol_cv_db_db_4 = yes ; then
30130                 ol_cv_lib_db=-ldb-4
30131         fi
30132 fi
30133
30134         if test $ol_cv_lib_db = no ; then
30135         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30136 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30137 if test "${ol_cv_db_db4+set}" = set; then
30138   echo $ECHO_N "(cached) $ECHO_C" >&6
30139 else
30140
30141         ol_DB_LIB=-ldb4
30142         ol_LIBS=$LIBS
30143         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30144
30145         cat >conftest.$ac_ext <<_ACEOF
30146 /* confdefs.h.  */
30147 _ACEOF
30148 cat confdefs.h >>conftest.$ac_ext
30149 cat >>conftest.$ac_ext <<_ACEOF
30150 /* end confdefs.h.  */
30151
30152 #ifdef HAVE_DB_185_H
30153 # include <db_185.h>
30154 #else
30155 # include <db.h>
30156 #endif
30157
30158 #ifndef DB_VERSION_MAJOR
30159 # define DB_VERSION_MAJOR 1
30160 #endif
30161
30162 #ifndef NULL
30163 #define NULL ((void*)0)
30164 #endif
30165
30166 int
30167 main ()
30168 {
30169
30170 #if DB_VERSION_MAJOR > 1
30171         {
30172                 char *version;
30173                 int major, minor, patch;
30174
30175                 version = db_version( &major, &minor, &patch );
30176
30177                 if( major != DB_VERSION_MAJOR ||
30178                         minor < DB_VERSION_MINOR )
30179                 {
30180                         printf("Berkeley DB version mismatch\n"
30181                                 "\theader: %s\n\tlibrary: %s\n",
30182                                 DB_VERSION_STRING, version);
30183                         return 1;
30184                 }
30185         }
30186 #endif
30187
30188 #if DB_VERSION_MAJOR > 2
30189         db_env_create( NULL, 0 );
30190 #elif DB_VERSION_MAJOR > 1
30191         db_appexit( NULL );
30192 #else
30193         (void) dbopen( NULL, 0, 0, 0, NULL);
30194 #endif
30195
30196   ;
30197   return 0;
30198 }
30199 _ACEOF
30200 rm -f conftest.$ac_objext conftest$ac_exeext
30201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30202   (eval $ac_link) 2>conftest.er1
30203   ac_status=$?
30204   grep -v '^ *+' conftest.er1 >conftest.err
30205   rm -f conftest.er1
30206   cat conftest.err >&5
30207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208   (exit $ac_status); } &&
30209          { ac_try='test -z "$ac_c_werror_flag"
30210                          || test ! -s conftest.err'
30211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212   (eval $ac_try) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; } &&
30216          { ac_try='test -s conftest$ac_exeext'
30217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218   (eval $ac_try) 2>&5
30219   ac_status=$?
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); }; }; then
30222   ol_cv_db_db4=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227 ol_cv_db_db4=no
30228 fi
30229 rm -f conftest.err conftest.$ac_objext \
30230       conftest$ac_exeext conftest.$ac_ext
30231
30232         LIBS="$ol_LIBS"
30233
30234 fi
30235 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30236 echo "${ECHO_T}$ol_cv_db_db4" >&6
30237
30238         if test $ol_cv_db_db4 = yes ; then
30239                 ol_cv_lib_db=-ldb4
30240         fi
30241 fi
30242
30243         if test $ol_cv_lib_db = no ; then
30244         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30245 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30246 if test "${ol_cv_db_db+set}" = set; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249
30250         ol_DB_LIB=-ldb
30251         ol_LIBS=$LIBS
30252         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30253
30254         cat >conftest.$ac_ext <<_ACEOF
30255 /* confdefs.h.  */
30256 _ACEOF
30257 cat confdefs.h >>conftest.$ac_ext
30258 cat >>conftest.$ac_ext <<_ACEOF
30259 /* end confdefs.h.  */
30260
30261 #ifdef HAVE_DB_185_H
30262 # include <db_185.h>
30263 #else
30264 # include <db.h>
30265 #endif
30266
30267 #ifndef DB_VERSION_MAJOR
30268 # define DB_VERSION_MAJOR 1
30269 #endif
30270
30271 #ifndef NULL
30272 #define NULL ((void*)0)
30273 #endif
30274
30275 int
30276 main ()
30277 {
30278
30279 #if DB_VERSION_MAJOR > 1
30280         {
30281                 char *version;
30282                 int major, minor, patch;
30283
30284                 version = db_version( &major, &minor, &patch );
30285
30286                 if( major != DB_VERSION_MAJOR ||
30287                         minor < DB_VERSION_MINOR )
30288                 {
30289                         printf("Berkeley DB version mismatch\n"
30290                                 "\theader: %s\n\tlibrary: %s\n",
30291                                 DB_VERSION_STRING, version);
30292                         return 1;
30293                 }
30294         }
30295 #endif
30296
30297 #if DB_VERSION_MAJOR > 2
30298         db_env_create( NULL, 0 );
30299 #elif DB_VERSION_MAJOR > 1
30300         db_appexit( NULL );
30301 #else
30302         (void) dbopen( NULL, 0, 0, 0, NULL);
30303 #endif
30304
30305   ;
30306   return 0;
30307 }
30308 _ACEOF
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30311   (eval $ac_link) 2>conftest.er1
30312   ac_status=$?
30313   grep -v '^ *+' conftest.er1 >conftest.err
30314   rm -f conftest.er1
30315   cat conftest.err >&5
30316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); } &&
30318          { ac_try='test -z "$ac_c_werror_flag"
30319                          || test ! -s conftest.err'
30320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30321   (eval $ac_try) 2>&5
30322   ac_status=$?
30323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324   (exit $ac_status); }; } &&
30325          { ac_try='test -s conftest$ac_exeext'
30326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30327   (eval $ac_try) 2>&5
30328   ac_status=$?
30329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30330   (exit $ac_status); }; }; then
30331   ol_cv_db_db=yes
30332 else
30333   echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336 ol_cv_db_db=no
30337 fi
30338 rm -f conftest.err conftest.$ac_objext \
30339       conftest$ac_exeext conftest.$ac_ext
30340
30341         LIBS="$ol_LIBS"
30342
30343 fi
30344 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30345 echo "${ECHO_T}$ol_cv_db_db" >&6
30346
30347         if test $ol_cv_db_db = yes ; then
30348                 ol_cv_lib_db=-ldb
30349         fi
30350 fi
30351
30352
30353 elif test $ol_cv_bdb_major = 3 ; then
30354         if test $ol_cv_lib_db = no ; then
30355         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30356 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30357 if test "${ol_cv_db_db3+set}" = set; then
30358   echo $ECHO_N "(cached) $ECHO_C" >&6
30359 else
30360
30361         ol_DB_LIB=-ldb3
30362         ol_LIBS=$LIBS
30363         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30364
30365         cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371
30372 #ifdef HAVE_DB_185_H
30373 # include <db_185.h>
30374 #else
30375 # include <db.h>
30376 #endif
30377
30378 #ifndef DB_VERSION_MAJOR
30379 # define DB_VERSION_MAJOR 1
30380 #endif
30381
30382 #ifndef NULL
30383 #define NULL ((void*)0)
30384 #endif
30385
30386 int
30387 main ()
30388 {
30389
30390 #if DB_VERSION_MAJOR > 1
30391         {
30392                 char *version;
30393                 int major, minor, patch;
30394
30395                 version = db_version( &major, &minor, &patch );
30396
30397                 if( major != DB_VERSION_MAJOR ||
30398                         minor < DB_VERSION_MINOR )
30399                 {
30400                         printf("Berkeley DB version mismatch\n"
30401                                 "\theader: %s\n\tlibrary: %s\n",
30402                                 DB_VERSION_STRING, version);
30403                         return 1;
30404                 }
30405         }
30406 #endif
30407
30408 #if DB_VERSION_MAJOR > 2
30409         db_env_create( NULL, 0 );
30410 #elif DB_VERSION_MAJOR > 1
30411         db_appexit( NULL );
30412 #else
30413         (void) dbopen( NULL, 0, 0, 0, NULL);
30414 #endif
30415
30416   ;
30417   return 0;
30418 }
30419 _ACEOF
30420 rm -f conftest.$ac_objext conftest$ac_exeext
30421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30422   (eval $ac_link) 2>conftest.er1
30423   ac_status=$?
30424   grep -v '^ *+' conftest.er1 >conftest.err
30425   rm -f conftest.er1
30426   cat conftest.err >&5
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); } &&
30429          { ac_try='test -z "$ac_c_werror_flag"
30430                          || test ! -s conftest.err'
30431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432   (eval $ac_try) 2>&5
30433   ac_status=$?
30434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435   (exit $ac_status); }; } &&
30436          { ac_try='test -s conftest$ac_exeext'
30437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30438   (eval $ac_try) 2>&5
30439   ac_status=$?
30440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441   (exit $ac_status); }; }; then
30442   ol_cv_db_db3=yes
30443 else
30444   echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30446
30447 ol_cv_db_db3=no
30448 fi
30449 rm -f conftest.err conftest.$ac_objext \
30450       conftest$ac_exeext conftest.$ac_ext
30451
30452         LIBS="$ol_LIBS"
30453
30454 fi
30455 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30456 echo "${ECHO_T}$ol_cv_db_db3" >&6
30457
30458         if test $ol_cv_db_db3 = yes ; then
30459                 ol_cv_lib_db=-ldb3
30460         fi
30461 fi
30462
30463         if test $ol_cv_lib_db = no ; then
30464         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30465 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30466 if test "${ol_cv_db_db_3+set}" = set; then
30467   echo $ECHO_N "(cached) $ECHO_C" >&6
30468 else
30469
30470         ol_DB_LIB=-ldb-3
30471         ol_LIBS=$LIBS
30472         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30473
30474         cat >conftest.$ac_ext <<_ACEOF
30475 /* confdefs.h.  */
30476 _ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h.  */
30480
30481 #ifdef HAVE_DB_185_H
30482 # include <db_185.h>
30483 #else
30484 # include <db.h>
30485 #endif
30486
30487 #ifndef DB_VERSION_MAJOR
30488 # define DB_VERSION_MAJOR 1
30489 #endif
30490
30491 #ifndef NULL
30492 #define NULL ((void*)0)
30493 #endif
30494
30495 int
30496 main ()
30497 {
30498
30499 #if DB_VERSION_MAJOR > 1
30500         {
30501                 char *version;
30502                 int major, minor, patch;
30503
30504                 version = db_version( &major, &minor, &patch );
30505
30506                 if( major != DB_VERSION_MAJOR ||
30507                         minor < DB_VERSION_MINOR )
30508                 {
30509                         printf("Berkeley DB version mismatch\n"
30510                                 "\theader: %s\n\tlibrary: %s\n",
30511                                 DB_VERSION_STRING, version);
30512                         return 1;
30513                 }
30514         }
30515 #endif
30516
30517 #if DB_VERSION_MAJOR > 2
30518         db_env_create( NULL, 0 );
30519 #elif DB_VERSION_MAJOR > 1
30520         db_appexit( NULL );
30521 #else
30522         (void) dbopen( NULL, 0, 0, 0, NULL);
30523 #endif
30524
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 rm -f conftest.$ac_objext conftest$ac_exeext
30530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30531   (eval $ac_link) 2>conftest.er1
30532   ac_status=$?
30533   grep -v '^ *+' conftest.er1 >conftest.err
30534   rm -f conftest.er1
30535   cat conftest.err >&5
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } &&
30538          { ac_try='test -z "$ac_c_werror_flag"
30539                          || test ! -s conftest.err'
30540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30541   (eval $ac_try) 2>&5
30542   ac_status=$?
30543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544   (exit $ac_status); }; } &&
30545          { ac_try='test -s conftest$ac_exeext'
30546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30547   (eval $ac_try) 2>&5
30548   ac_status=$?
30549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550   (exit $ac_status); }; }; then
30551   ol_cv_db_db_3=yes
30552 else
30553   echo "$as_me: failed program was:" >&5
30554 sed 's/^/| /' conftest.$ac_ext >&5
30555
30556 ol_cv_db_db_3=no
30557 fi
30558 rm -f conftest.err conftest.$ac_objext \
30559       conftest$ac_exeext conftest.$ac_ext
30560
30561         LIBS="$ol_LIBS"
30562
30563 fi
30564 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30565 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30566
30567         if test $ol_cv_db_db_3 = yes ; then
30568                 ol_cv_lib_db=-ldb-3
30569         fi
30570 fi
30571
30572
30573 elif test $ol_cv_bdb_major = 2 ; then
30574         if test $ol_cv_lib_db = no ; then
30575         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30576 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30577 if test "${ol_cv_db_db2+set}" = set; then
30578   echo $ECHO_N "(cached) $ECHO_C" >&6
30579 else
30580
30581         ol_DB_LIB=-ldb2
30582         ol_LIBS=$LIBS
30583         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30584
30585         cat >conftest.$ac_ext <<_ACEOF
30586 /* confdefs.h.  */
30587 _ACEOF
30588 cat confdefs.h >>conftest.$ac_ext
30589 cat >>conftest.$ac_ext <<_ACEOF
30590 /* end confdefs.h.  */
30591
30592 #ifdef HAVE_DB_185_H
30593 # include <db_185.h>
30594 #else
30595 # include <db.h>
30596 #endif
30597
30598 #ifndef DB_VERSION_MAJOR
30599 # define DB_VERSION_MAJOR 1
30600 #endif
30601
30602 #ifndef NULL
30603 #define NULL ((void*)0)
30604 #endif
30605
30606 int
30607 main ()
30608 {
30609
30610 #if DB_VERSION_MAJOR > 1
30611         {
30612                 char *version;
30613                 int major, minor, patch;
30614
30615                 version = db_version( &major, &minor, &patch );
30616
30617                 if( major != DB_VERSION_MAJOR ||
30618                         minor < DB_VERSION_MINOR )
30619                 {
30620                         printf("Berkeley DB version mismatch\n"
30621                                 "\theader: %s\n\tlibrary: %s\n",
30622                                 DB_VERSION_STRING, version);
30623                         return 1;
30624                 }
30625         }
30626 #endif
30627
30628 #if DB_VERSION_MAJOR > 2
30629         db_env_create( NULL, 0 );
30630 #elif DB_VERSION_MAJOR > 1
30631         db_appexit( NULL );
30632 #else
30633         (void) dbopen( NULL, 0, 0, 0, NULL);
30634 #endif
30635
30636   ;
30637   return 0;
30638 }
30639 _ACEOF
30640 rm -f conftest.$ac_objext conftest$ac_exeext
30641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30642   (eval $ac_link) 2>conftest.er1
30643   ac_status=$?
30644   grep -v '^ *+' conftest.er1 >conftest.err
30645   rm -f conftest.er1
30646   cat conftest.err >&5
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); } &&
30649          { ac_try='test -z "$ac_c_werror_flag"
30650                          || test ! -s conftest.err'
30651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652   (eval $ac_try) 2>&5
30653   ac_status=$?
30654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655   (exit $ac_status); }; } &&
30656          { ac_try='test -s conftest$ac_exeext'
30657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658   (eval $ac_try) 2>&5
30659   ac_status=$?
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); }; }; then
30662   ol_cv_db_db2=yes
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667 ol_cv_db_db2=no
30668 fi
30669 rm -f conftest.err conftest.$ac_objext \
30670       conftest$ac_exeext conftest.$ac_ext
30671
30672         LIBS="$ol_LIBS"
30673
30674 fi
30675 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30676 echo "${ECHO_T}$ol_cv_db_db2" >&6
30677
30678         if test $ol_cv_db_db2 = yes ; then
30679                 ol_cv_lib_db=-ldb2
30680         fi
30681 fi
30682
30683         if test $ol_cv_lib_db = no ; then
30684         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30685 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30686 if test "${ol_cv_db_db_2+set}" = set; then
30687   echo $ECHO_N "(cached) $ECHO_C" >&6
30688 else
30689
30690         ol_DB_LIB=-ldb-2
30691         ol_LIBS=$LIBS
30692         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30693
30694         cat >conftest.$ac_ext <<_ACEOF
30695 /* confdefs.h.  */
30696 _ACEOF
30697 cat confdefs.h >>conftest.$ac_ext
30698 cat >>conftest.$ac_ext <<_ACEOF
30699 /* end confdefs.h.  */
30700
30701 #ifdef HAVE_DB_185_H
30702 # include <db_185.h>
30703 #else
30704 # include <db.h>
30705 #endif
30706
30707 #ifndef DB_VERSION_MAJOR
30708 # define DB_VERSION_MAJOR 1
30709 #endif
30710
30711 #ifndef NULL
30712 #define NULL ((void*)0)
30713 #endif
30714
30715 int
30716 main ()
30717 {
30718
30719 #if DB_VERSION_MAJOR > 1
30720         {
30721                 char *version;
30722                 int major, minor, patch;
30723
30724                 version = db_version( &major, &minor, &patch );
30725
30726                 if( major != DB_VERSION_MAJOR ||
30727                         minor < DB_VERSION_MINOR )
30728                 {
30729                         printf("Berkeley DB version mismatch\n"
30730                                 "\theader: %s\n\tlibrary: %s\n",
30731                                 DB_VERSION_STRING, version);
30732                         return 1;
30733                 }
30734         }
30735 #endif
30736
30737 #if DB_VERSION_MAJOR > 2
30738         db_env_create( NULL, 0 );
30739 #elif DB_VERSION_MAJOR > 1
30740         db_appexit( NULL );
30741 #else
30742         (void) dbopen( NULL, 0, 0, 0, NULL);
30743 #endif
30744
30745   ;
30746   return 0;
30747 }
30748 _ACEOF
30749 rm -f conftest.$ac_objext conftest$ac_exeext
30750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30751   (eval $ac_link) 2>conftest.er1
30752   ac_status=$?
30753   grep -v '^ *+' conftest.er1 >conftest.err
30754   rm -f conftest.er1
30755   cat conftest.err >&5
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); } &&
30758          { ac_try='test -z "$ac_c_werror_flag"
30759                          || test ! -s conftest.err'
30760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761   (eval $ac_try) 2>&5
30762   ac_status=$?
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); }; } &&
30765          { ac_try='test -s conftest$ac_exeext'
30766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767   (eval $ac_try) 2>&5
30768   ac_status=$?
30769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770   (exit $ac_status); }; }; then
30771   ol_cv_db_db_2=yes
30772 else
30773   echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776 ol_cv_db_db_2=no
30777 fi
30778 rm -f conftest.err conftest.$ac_objext \
30779       conftest$ac_exeext conftest.$ac_ext
30780
30781         LIBS="$ol_LIBS"
30782
30783 fi
30784 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30785 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30786
30787         if test $ol_cv_db_db_2 = yes ; then
30788                 ol_cv_lib_db=-ldb-2
30789         fi
30790 fi
30791
30792
30793 elif test $ol_cv_bdb_major = 1 ; then
30794         if test $ol_cv_lib_db = no ; then
30795         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30796 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30797 if test "${ol_cv_db_db1+set}" = set; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30800
30801         ol_DB_LIB=-ldb1
30802         ol_LIBS=$LIBS
30803         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30804
30805         cat >conftest.$ac_ext <<_ACEOF
30806 /* confdefs.h.  */
30807 _ACEOF
30808 cat confdefs.h >>conftest.$ac_ext
30809 cat >>conftest.$ac_ext <<_ACEOF
30810 /* end confdefs.h.  */
30811
30812 #ifdef HAVE_DB_185_H
30813 # include <db_185.h>
30814 #else
30815 # include <db.h>
30816 #endif
30817
30818 #ifndef DB_VERSION_MAJOR
30819 # define DB_VERSION_MAJOR 1
30820 #endif
30821
30822 #ifndef NULL
30823 #define NULL ((void*)0)
30824 #endif
30825
30826 int
30827 main ()
30828 {
30829
30830 #if DB_VERSION_MAJOR > 1
30831         {
30832                 char *version;
30833                 int major, minor, patch;
30834
30835                 version = db_version( &major, &minor, &patch );
30836
30837                 if( major != DB_VERSION_MAJOR ||
30838                         minor < DB_VERSION_MINOR )
30839                 {
30840                         printf("Berkeley DB version mismatch\n"
30841                                 "\theader: %s\n\tlibrary: %s\n",
30842                                 DB_VERSION_STRING, version);
30843                         return 1;
30844                 }
30845         }
30846 #endif
30847
30848 #if DB_VERSION_MAJOR > 2
30849         db_env_create( NULL, 0 );
30850 #elif DB_VERSION_MAJOR > 1
30851         db_appexit( NULL );
30852 #else
30853         (void) dbopen( NULL, 0, 0, 0, NULL);
30854 #endif
30855
30856   ;
30857   return 0;
30858 }
30859 _ACEOF
30860 rm -f conftest.$ac_objext conftest$ac_exeext
30861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30862   (eval $ac_link) 2>conftest.er1
30863   ac_status=$?
30864   grep -v '^ *+' conftest.er1 >conftest.err
30865   rm -f conftest.er1
30866   cat conftest.err >&5
30867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868   (exit $ac_status); } &&
30869          { ac_try='test -z "$ac_c_werror_flag"
30870                          || test ! -s conftest.err'
30871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30872   (eval $ac_try) 2>&5
30873   ac_status=$?
30874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875   (exit $ac_status); }; } &&
30876          { ac_try='test -s conftest$ac_exeext'
30877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30878   (eval $ac_try) 2>&5
30879   ac_status=$?
30880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881   (exit $ac_status); }; }; then
30882   ol_cv_db_db1=yes
30883 else
30884   echo "$as_me: failed program was:" >&5
30885 sed 's/^/| /' conftest.$ac_ext >&5
30886
30887 ol_cv_db_db1=no
30888 fi
30889 rm -f conftest.err conftest.$ac_objext \
30890       conftest$ac_exeext conftest.$ac_ext
30891
30892         LIBS="$ol_LIBS"
30893
30894 fi
30895 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30896 echo "${ECHO_T}$ol_cv_db_db1" >&6
30897
30898         if test $ol_cv_db_db1 = yes ; then
30899                 ol_cv_lib_db=-ldb1
30900         fi
30901 fi
30902
30903         if test $ol_cv_lib_db = no ; then
30904         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30905 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30906 if test "${ol_cv_db_db_1+set}" = set; then
30907   echo $ECHO_N "(cached) $ECHO_C" >&6
30908 else
30909
30910         ol_DB_LIB=-ldb-1
30911         ol_LIBS=$LIBS
30912         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30913
30914         cat >conftest.$ac_ext <<_ACEOF
30915 /* confdefs.h.  */
30916 _ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h.  */
30920
30921 #ifdef HAVE_DB_185_H
30922 # include <db_185.h>
30923 #else
30924 # include <db.h>
30925 #endif
30926
30927 #ifndef DB_VERSION_MAJOR
30928 # define DB_VERSION_MAJOR 1
30929 #endif
30930
30931 #ifndef NULL
30932 #define NULL ((void*)0)
30933 #endif
30934
30935 int
30936 main ()
30937 {
30938
30939 #if DB_VERSION_MAJOR > 1
30940         {
30941                 char *version;
30942                 int major, minor, patch;
30943
30944                 version = db_version( &major, &minor, &patch );
30945
30946                 if( major != DB_VERSION_MAJOR ||
30947                         minor < DB_VERSION_MINOR )
30948                 {
30949                         printf("Berkeley DB version mismatch\n"
30950                                 "\theader: %s\n\tlibrary: %s\n",
30951                                 DB_VERSION_STRING, version);
30952                         return 1;
30953                 }
30954         }
30955 #endif
30956
30957 #if DB_VERSION_MAJOR > 2
30958         db_env_create( NULL, 0 );
30959 #elif DB_VERSION_MAJOR > 1
30960         db_appexit( NULL );
30961 #else
30962         (void) dbopen( NULL, 0, 0, 0, NULL);
30963 #endif
30964
30965   ;
30966   return 0;
30967 }
30968 _ACEOF
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30971   (eval $ac_link) 2>conftest.er1
30972   ac_status=$?
30973   grep -v '^ *+' conftest.er1 >conftest.err
30974   rm -f conftest.er1
30975   cat conftest.err >&5
30976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); } &&
30978          { ac_try='test -z "$ac_c_werror_flag"
30979                          || test ! -s conftest.err'
30980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981   (eval $ac_try) 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; } &&
30985          { ac_try='test -s conftest$ac_exeext'
30986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987   (eval $ac_try) 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; }; then
30991   ol_cv_db_db_1=yes
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996 ol_cv_db_db_1=no
30997 fi
30998 rm -f conftest.err conftest.$ac_objext \
30999       conftest$ac_exeext conftest.$ac_ext
31000
31001         LIBS="$ol_LIBS"
31002
31003 fi
31004 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31005 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31006
31007         if test $ol_cv_db_db_1 = yes ; then
31008                 ol_cv_lib_db=-ldb-1
31009         fi
31010 fi
31011
31012 fi
31013 if test $ol_cv_lib_db = no ; then
31014         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31015 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31016 if test "${ol_cv_db_none+set}" = set; then
31017   echo $ECHO_N "(cached) $ECHO_C" >&6
31018 else
31019
31020         ol_DB_LIB=
31021         ol_LIBS=$LIBS
31022         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31023
31024         cat >conftest.$ac_ext <<_ACEOF
31025 /* confdefs.h.  */
31026 _ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h.  */
31030
31031 #ifdef HAVE_DB_185_H
31032 # include <db_185.h>
31033 #else
31034 # include <db.h>
31035 #endif
31036
31037 #ifndef DB_VERSION_MAJOR
31038 # define DB_VERSION_MAJOR 1
31039 #endif
31040
31041 #ifndef NULL
31042 #define NULL ((void*)0)
31043 #endif
31044
31045 int
31046 main ()
31047 {
31048
31049 #if DB_VERSION_MAJOR > 1
31050         {
31051                 char *version;
31052                 int major, minor, patch;
31053
31054                 version = db_version( &major, &minor, &patch );
31055
31056                 if( major != DB_VERSION_MAJOR ||
31057                         minor < DB_VERSION_MINOR )
31058                 {
31059                         printf("Berkeley DB version mismatch\n"
31060                                 "\theader: %s\n\tlibrary: %s\n",
31061                                 DB_VERSION_STRING, version);
31062                         return 1;
31063                 }
31064         }
31065 #endif
31066
31067 #if DB_VERSION_MAJOR > 2
31068         db_env_create( NULL, 0 );
31069 #elif DB_VERSION_MAJOR > 1
31070         db_appexit( NULL );
31071 #else
31072         (void) dbopen( NULL, 0, 0, 0, NULL);
31073 #endif
31074
31075   ;
31076   return 0;
31077 }
31078 _ACEOF
31079 rm -f conftest.$ac_objext conftest$ac_exeext
31080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31081   (eval $ac_link) 2>conftest.er1
31082   ac_status=$?
31083   grep -v '^ *+' conftest.er1 >conftest.err
31084   rm -f conftest.er1
31085   cat conftest.err >&5
31086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087   (exit $ac_status); } &&
31088          { ac_try='test -z "$ac_c_werror_flag"
31089                          || test ! -s conftest.err'
31090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31091   (eval $ac_try) 2>&5
31092   ac_status=$?
31093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094   (exit $ac_status); }; } &&
31095          { ac_try='test -s conftest$ac_exeext'
31096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097   (eval $ac_try) 2>&5
31098   ac_status=$?
31099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100   (exit $ac_status); }; }; then
31101   ol_cv_db_none=yes
31102 else
31103   echo "$as_me: failed program was:" >&5
31104 sed 's/^/| /' conftest.$ac_ext >&5
31105
31106 ol_cv_db_none=no
31107 fi
31108 rm -f conftest.err conftest.$ac_objext \
31109       conftest$ac_exeext conftest.$ac_ext
31110
31111         LIBS="$ol_LIBS"
31112
31113 fi
31114 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31115 echo "${ECHO_T}$ol_cv_db_none" >&6
31116
31117         if test $ol_cv_db_none = yes ; then
31118                 ol_cv_lib_db=yes
31119         fi
31120 fi
31121
31122
31123                 if test "$ol_cv_lib_db" != no ; then
31124                         ol_cv_berkeley_db=yes
31125                 fi
31126         fi
31127 fi
31128
31129         else
31130                 ol_cv_berkeley_db=no
31131
31132 for ac_header in db.h
31133 do
31134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31136   echo "$as_me:$LINENO: checking for $ac_header" >&5
31137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31139   echo $ECHO_N "(cached) $ECHO_C" >&6
31140 fi
31141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31143 else
31144   # Is the header compilable?
31145 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31146 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31147 cat >conftest.$ac_ext <<_ACEOF
31148 /* confdefs.h.  */
31149 _ACEOF
31150 cat confdefs.h >>conftest.$ac_ext
31151 cat >>conftest.$ac_ext <<_ACEOF
31152 /* end confdefs.h.  */
31153 $ac_includes_default
31154 #include <$ac_header>
31155 _ACEOF
31156 rm -f conftest.$ac_objext
31157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31158   (eval $ac_compile) 2>conftest.er1
31159   ac_status=$?
31160   grep -v '^ *+' conftest.er1 >conftest.err
31161   rm -f conftest.er1
31162   cat conftest.err >&5
31163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164   (exit $ac_status); } &&
31165          { ac_try='test -z "$ac_c_werror_flag"
31166                          || test ! -s conftest.err'
31167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31168   (eval $ac_try) 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); }; } &&
31172          { ac_try='test -s conftest.$ac_objext'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; }; then
31178   ac_header_compiler=yes
31179 else
31180   echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31182
31183 ac_header_compiler=no
31184 fi
31185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31187 echo "${ECHO_T}$ac_header_compiler" >&6
31188
31189 # Is the header present?
31190 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31191 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31192 cat >conftest.$ac_ext <<_ACEOF
31193 /* confdefs.h.  */
31194 _ACEOF
31195 cat confdefs.h >>conftest.$ac_ext
31196 cat >>conftest.$ac_ext <<_ACEOF
31197 /* end confdefs.h.  */
31198 #include <$ac_header>
31199 _ACEOF
31200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31202   ac_status=$?
31203   grep -v '^ *+' conftest.er1 >conftest.err
31204   rm -f conftest.er1
31205   cat conftest.err >&5
31206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207   (exit $ac_status); } >/dev/null; then
31208   if test -s conftest.err; then
31209     ac_cpp_err=$ac_c_preproc_warn_flag
31210     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31211   else
31212     ac_cpp_err=
31213   fi
31214 else
31215   ac_cpp_err=yes
31216 fi
31217 if test -z "$ac_cpp_err"; then
31218   ac_header_preproc=yes
31219 else
31220   echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31222
31223   ac_header_preproc=no
31224 fi
31225 rm -f conftest.err conftest.$ac_ext
31226 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31227 echo "${ECHO_T}$ac_header_preproc" >&6
31228
31229 # So?  What about this header?
31230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31231   yes:no: )
31232     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31233 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31236     ac_header_preproc=yes
31237     ;;
31238   no:yes:* )
31239     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31240 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31241     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31242 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31243     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31244 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31245     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31246 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31249     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31250 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31251     (
31252       cat <<\_ASBOX
31253 ## ------------------------------------------ ##
31254 ## Report this to the AC_PACKAGE_NAME lists.  ##
31255 ## ------------------------------------------ ##
31256 _ASBOX
31257     ) |
31258       sed "s/^/$as_me: WARNING:     /" >&2
31259     ;;
31260 esac
31261 echo "$as_me:$LINENO: checking for $ac_header" >&5
31262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31264   echo $ECHO_N "(cached) $ECHO_C" >&6
31265 else
31266   eval "$as_ac_Header=\$ac_header_preproc"
31267 fi
31268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31270
31271 fi
31272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31273   cat >>confdefs.h <<_ACEOF
31274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31275 _ACEOF
31276
31277 fi
31278
31279 done
31280
31281 if test $ac_cv_header_db_h = yes; then
31282         ol_cv_lib_db=no
31283
31284 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31285 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31286 if test "${ol_cv_bdb_major+set}" = set; then
31287   echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289
31290         ol_cv_bdb_major=0
31291         if test $ol_cv_bdb_major = 0 ; then
31292                 cat >conftest.$ac_ext <<_ACEOF
31293 /* confdefs.h.  */
31294 _ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h.  */
31298
31299 #include <db.h>
31300 #ifndef DB_VERSION_MAJOR
31301 #       define DB_VERSION_MAJOR 1
31302 #endif
31303 #if DB_VERSION_MAJOR == 4
31304 __db_version
31305 #endif
31306
31307 _ACEOF
31308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31309   $EGREP "__db_version" >/dev/null 2>&1; then
31310   ol_cv_bdb_major=4
31311 else
31312   :
31313 fi
31314 rm -f conftest*
31315
31316         fi
31317         if test $ol_cv_bdb_major = 0 ; then
31318                 cat >conftest.$ac_ext <<_ACEOF
31319 /* confdefs.h.  */
31320 _ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h.  */
31324
31325 #include <db.h>
31326 #ifndef DB_VERSION_MAJOR
31327 #       define DB_VERSION_MAJOR 1
31328 #endif
31329 #if DB_VERSION_MAJOR == 3
31330 __db_version
31331 #endif
31332
31333 _ACEOF
31334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31335   $EGREP "__db_version" >/dev/null 2>&1; then
31336   ol_cv_bdb_major=3
31337 else
31338   :
31339 fi
31340 rm -f conftest*
31341
31342         fi
31343         if test $ol_cv_bdb_major = 0 ; then
31344                 cat >conftest.$ac_ext <<_ACEOF
31345 /* confdefs.h.  */
31346 _ACEOF
31347 cat confdefs.h >>conftest.$ac_ext
31348 cat >>conftest.$ac_ext <<_ACEOF
31349 /* end confdefs.h.  */
31350
31351 #include <db.h>
31352 #ifndef DB_VERSION_MAJOR
31353 #       define DB_VERSION_MAJOR 1
31354 #endif
31355 #if DB_VERSION_MAJOR == 2
31356 __db_version
31357 #endif
31358
31359 _ACEOF
31360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31361   $EGREP "__db_version" >/dev/null 2>&1; then
31362   ol_cv_bdb_major=2
31363 else
31364   :
31365 fi
31366 rm -f conftest*
31367
31368         fi
31369         if test $ol_cv_bdb_major = 0 ; then
31370                 cat >conftest.$ac_ext <<_ACEOF
31371 /* confdefs.h.  */
31372 _ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h.  */
31376
31377 #include <db.h>
31378 #ifndef DB_VERSION_MAJOR
31379 #       define DB_VERSION_MAJOR 1
31380 #endif
31381 #if DB_VERSION_MAJOR == 1
31382 __db_version
31383 #endif
31384
31385 _ACEOF
31386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31387   $EGREP "__db_version" >/dev/null 2>&1; then
31388   ol_cv_bdb_major=1
31389 else
31390   :
31391 fi
31392 rm -f conftest*
31393
31394         fi
31395
31396         if test $ol_cv_bdb_major = 0 ; then
31397                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31398 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31399    { (exit 1); exit 1; }; }
31400         fi
31401
31402 fi
31403 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31404 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31405
31406 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31407 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31408 if test "${ol_cv_bdb_minor+set}" = set; then
31409   echo $ECHO_N "(cached) $ECHO_C" >&6
31410 else
31411
31412         ol_cv_bdb_minor=0
31413         if test $ol_cv_bdb_minor = 0 ; then
31414                 cat >conftest.$ac_ext <<_ACEOF
31415 /* confdefs.h.  */
31416 _ACEOF
31417 cat confdefs.h >>conftest.$ac_ext
31418 cat >>conftest.$ac_ext <<_ACEOF
31419 /* end confdefs.h.  */
31420
31421 #include <db.h>
31422 #ifndef DB_VERSION_MINOR
31423 #       define DB_VERSION_MINOR 0
31424 #endif
31425 #if DB_VERSION_MINOR == 9
31426 __db_version
31427 #endif
31428
31429 _ACEOF
31430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31431   $EGREP "__db_version" >/dev/null 2>&1; then
31432   ol_cv_bdb_minor=9
31433 else
31434   :
31435 fi
31436 rm -f conftest*
31437
31438         fi
31439         if test $ol_cv_bdb_minor = 0 ; then
31440                 cat >conftest.$ac_ext <<_ACEOF
31441 /* confdefs.h.  */
31442 _ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h.  */
31446
31447 #include <db.h>
31448 #ifndef DB_VERSION_MINOR
31449 #       define DB_VERSION_MINOR 0
31450 #endif
31451 #if DB_VERSION_MINOR == 8
31452 __db_version
31453 #endif
31454
31455 _ACEOF
31456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31457   $EGREP "__db_version" >/dev/null 2>&1; then
31458   ol_cv_bdb_minor=8
31459 else
31460   :
31461 fi
31462 rm -f conftest*
31463
31464         fi
31465         if test $ol_cv_bdb_minor = 0 ; then
31466                 cat >conftest.$ac_ext <<_ACEOF
31467 /* confdefs.h.  */
31468 _ACEOF
31469 cat confdefs.h >>conftest.$ac_ext
31470 cat >>conftest.$ac_ext <<_ACEOF
31471 /* end confdefs.h.  */
31472
31473 #include <db.h>
31474 #ifndef DB_VERSION_MINOR
31475 #       define DB_VERSION_MINOR 0
31476 #endif
31477 #if DB_VERSION_MINOR == 7
31478 __db_version
31479 #endif
31480
31481 _ACEOF
31482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31483   $EGREP "__db_version" >/dev/null 2>&1; then
31484   ol_cv_bdb_minor=7
31485 else
31486   :
31487 fi
31488 rm -f conftest*
31489
31490         fi
31491         if test $ol_cv_bdb_minor = 0 ; then
31492                 cat >conftest.$ac_ext <<_ACEOF
31493 /* confdefs.h.  */
31494 _ACEOF
31495 cat confdefs.h >>conftest.$ac_ext
31496 cat >>conftest.$ac_ext <<_ACEOF
31497 /* end confdefs.h.  */
31498
31499 #include <db.h>
31500 #ifndef DB_VERSION_MINOR
31501 #       define DB_VERSION_MINOR 0
31502 #endif
31503 #if DB_VERSION_MINOR == 6
31504 __db_version
31505 #endif
31506
31507 _ACEOF
31508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31509   $EGREP "__db_version" >/dev/null 2>&1; then
31510   ol_cv_bdb_minor=6
31511 else
31512   :
31513 fi
31514 rm -f conftest*
31515
31516         fi
31517         if test $ol_cv_bdb_minor = 0 ; then
31518                 cat >conftest.$ac_ext <<_ACEOF
31519 /* confdefs.h.  */
31520 _ACEOF
31521 cat confdefs.h >>conftest.$ac_ext
31522 cat >>conftest.$ac_ext <<_ACEOF
31523 /* end confdefs.h.  */
31524
31525 #include <db.h>
31526 #ifndef DB_VERSION_MINOR
31527 #       define DB_VERSION_MINOR 0
31528 #endif
31529 #if DB_VERSION_MINOR == 5
31530 __db_version
31531 #endif
31532
31533 _ACEOF
31534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31535   $EGREP "__db_version" >/dev/null 2>&1; then
31536   ol_cv_bdb_minor=5
31537 else
31538   :
31539 fi
31540 rm -f conftest*
31541
31542         fi
31543         if test $ol_cv_bdb_minor = 0 ; then
31544                 cat >conftest.$ac_ext <<_ACEOF
31545 /* confdefs.h.  */
31546 _ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h.  */
31550
31551 #include <db.h>
31552 #ifndef DB_VERSION_MINOR
31553 #       define DB_VERSION_MINOR 0
31554 #endif
31555 #if DB_VERSION_MINOR == 4
31556 __db_version
31557 #endif
31558
31559 _ACEOF
31560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31561   $EGREP "__db_version" >/dev/null 2>&1; then
31562   ol_cv_bdb_minor=4
31563 else
31564   :
31565 fi
31566 rm -f conftest*
31567
31568         fi
31569         if test $ol_cv_bdb_minor = 0 ; then
31570                 cat >conftest.$ac_ext <<_ACEOF
31571 /* confdefs.h.  */
31572 _ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h.  */
31576
31577 #include <db.h>
31578 #ifndef DB_VERSION_MINOR
31579 #       define DB_VERSION_MINOR 0
31580 #endif
31581 #if DB_VERSION_MINOR == 3
31582 __db_version
31583 #endif
31584
31585 _ACEOF
31586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31587   $EGREP "__db_version" >/dev/null 2>&1; then
31588   ol_cv_bdb_minor=3
31589 else
31590   :
31591 fi
31592 rm -f conftest*
31593
31594         fi
31595         if test $ol_cv_bdb_minor = 0 ; then
31596                 cat >conftest.$ac_ext <<_ACEOF
31597 /* confdefs.h.  */
31598 _ACEOF
31599 cat confdefs.h >>conftest.$ac_ext
31600 cat >>conftest.$ac_ext <<_ACEOF
31601 /* end confdefs.h.  */
31602
31603 #include <db.h>
31604 #ifndef DB_VERSION_MINOR
31605 #       define DB_VERSION_MINOR 0
31606 #endif
31607 #if DB_VERSION_MINOR == 2
31608 __db_version
31609 #endif
31610
31611 _ACEOF
31612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31613   $EGREP "__db_version" >/dev/null 2>&1; then
31614   ol_cv_bdb_minor=2
31615 else
31616   :
31617 fi
31618 rm -f conftest*
31619
31620         fi
31621         if test $ol_cv_bdb_minor = 0 ; then
31622                 cat >conftest.$ac_ext <<_ACEOF
31623 /* confdefs.h.  */
31624 _ACEOF
31625 cat confdefs.h >>conftest.$ac_ext
31626 cat >>conftest.$ac_ext <<_ACEOF
31627 /* end confdefs.h.  */
31628
31629 #include <db.h>
31630 #ifndef DB_VERSION_MINOR
31631 #       define DB_VERSION_MINOR 0
31632 #endif
31633 #if DB_VERSION_MINOR == 1
31634 __db_version
31635 #endif
31636
31637 _ACEOF
31638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31639   $EGREP "__db_version" >/dev/null 2>&1; then
31640   ol_cv_bdb_minor=1
31641 else
31642   :
31643 fi
31644 rm -f conftest*
31645
31646         fi
31647
31648 fi
31649 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31650 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31651
31652 if test $ol_cv_bdb_major = 4 ; then
31653         if test $ol_cv_bdb_minor = 4 ; then
31654                 if test $ol_cv_lib_db = no ; then
31655         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31656 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31657 if test "${ol_cv_db_db44+set}" = set; then
31658   echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660
31661         ol_DB_LIB=-ldb44
31662         ol_LIBS=$LIBS
31663         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31664
31665         cat >conftest.$ac_ext <<_ACEOF
31666 /* confdefs.h.  */
31667 _ACEOF
31668 cat confdefs.h >>conftest.$ac_ext
31669 cat >>conftest.$ac_ext <<_ACEOF
31670 /* end confdefs.h.  */
31671
31672 #ifdef HAVE_DB_185_H
31673 # include <db_185.h>
31674 #else
31675 # include <db.h>
31676 #endif
31677
31678 #ifndef DB_VERSION_MAJOR
31679 # define DB_VERSION_MAJOR 1
31680 #endif
31681
31682 #ifndef NULL
31683 #define NULL ((void*)0)
31684 #endif
31685
31686 int
31687 main ()
31688 {
31689
31690 #if DB_VERSION_MAJOR > 1
31691         {
31692                 char *version;
31693                 int major, minor, patch;
31694
31695                 version = db_version( &major, &minor, &patch );
31696
31697                 if( major != DB_VERSION_MAJOR ||
31698                         minor < DB_VERSION_MINOR )
31699                 {
31700                         printf("Berkeley DB version mismatch\n"
31701                                 "\theader: %s\n\tlibrary: %s\n",
31702                                 DB_VERSION_STRING, version);
31703                         return 1;
31704                 }
31705         }
31706 #endif
31707
31708 #if DB_VERSION_MAJOR > 2
31709         db_env_create( NULL, 0 );
31710 #elif DB_VERSION_MAJOR > 1
31711         db_appexit( NULL );
31712 #else
31713         (void) dbopen( NULL, 0, 0, 0, NULL);
31714 #endif
31715
31716   ;
31717   return 0;
31718 }
31719 _ACEOF
31720 rm -f conftest.$ac_objext conftest$ac_exeext
31721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31722   (eval $ac_link) 2>conftest.er1
31723   ac_status=$?
31724   grep -v '^ *+' conftest.er1 >conftest.err
31725   rm -f conftest.er1
31726   cat conftest.err >&5
31727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728   (exit $ac_status); } &&
31729          { ac_try='test -z "$ac_c_werror_flag"
31730                          || test ! -s conftest.err'
31731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732   (eval $ac_try) 2>&5
31733   ac_status=$?
31734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735   (exit $ac_status); }; } &&
31736          { ac_try='test -s conftest$ac_exeext'
31737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738   (eval $ac_try) 2>&5
31739   ac_status=$?
31740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741   (exit $ac_status); }; }; then
31742   ol_cv_db_db44=yes
31743 else
31744   echo "$as_me: failed program was:" >&5
31745 sed 's/^/| /' conftest.$ac_ext >&5
31746
31747 ol_cv_db_db44=no
31748 fi
31749 rm -f conftest.err conftest.$ac_objext \
31750       conftest$ac_exeext conftest.$ac_ext
31751
31752         LIBS="$ol_LIBS"
31753
31754 fi
31755 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31756 echo "${ECHO_T}$ol_cv_db_db44" >&6
31757
31758         if test $ol_cv_db_db44 = yes ; then
31759                 ol_cv_lib_db=-ldb44
31760         fi
31761 fi
31762
31763                 if test $ol_cv_lib_db = no ; then
31764         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31765 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31766 if test "${ol_cv_db_db_44+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769
31770         ol_DB_LIB=-ldb-44
31771         ol_LIBS=$LIBS
31772         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31773
31774         cat >conftest.$ac_ext <<_ACEOF
31775 /* confdefs.h.  */
31776 _ACEOF
31777 cat confdefs.h >>conftest.$ac_ext
31778 cat >>conftest.$ac_ext <<_ACEOF
31779 /* end confdefs.h.  */
31780
31781 #ifdef HAVE_DB_185_H
31782 # include <db_185.h>
31783 #else
31784 # include <db.h>
31785 #endif
31786
31787 #ifndef DB_VERSION_MAJOR
31788 # define DB_VERSION_MAJOR 1
31789 #endif
31790
31791 #ifndef NULL
31792 #define NULL ((void*)0)
31793 #endif
31794
31795 int
31796 main ()
31797 {
31798
31799 #if DB_VERSION_MAJOR > 1
31800         {
31801                 char *version;
31802                 int major, minor, patch;
31803
31804                 version = db_version( &major, &minor, &patch );
31805
31806                 if( major != DB_VERSION_MAJOR ||
31807                         minor < DB_VERSION_MINOR )
31808                 {
31809                         printf("Berkeley DB version mismatch\n"
31810                                 "\theader: %s\n\tlibrary: %s\n",
31811                                 DB_VERSION_STRING, version);
31812                         return 1;
31813                 }
31814         }
31815 #endif
31816
31817 #if DB_VERSION_MAJOR > 2
31818         db_env_create( NULL, 0 );
31819 #elif DB_VERSION_MAJOR > 1
31820         db_appexit( NULL );
31821 #else
31822         (void) dbopen( NULL, 0, 0, 0, NULL);
31823 #endif
31824
31825   ;
31826   return 0;
31827 }
31828 _ACEOF
31829 rm -f conftest.$ac_objext conftest$ac_exeext
31830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31831   (eval $ac_link) 2>conftest.er1
31832   ac_status=$?
31833   grep -v '^ *+' conftest.er1 >conftest.err
31834   rm -f conftest.er1
31835   cat conftest.err >&5
31836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837   (exit $ac_status); } &&
31838          { ac_try='test -z "$ac_c_werror_flag"
31839                          || test ! -s conftest.err'
31840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841   (eval $ac_try) 2>&5
31842   ac_status=$?
31843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844   (exit $ac_status); }; } &&
31845          { ac_try='test -s conftest$ac_exeext'
31846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847   (eval $ac_try) 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; }; then
31851   ol_cv_db_db_44=yes
31852 else
31853   echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31855
31856 ol_cv_db_db_44=no
31857 fi
31858 rm -f conftest.err conftest.$ac_objext \
31859       conftest$ac_exeext conftest.$ac_ext
31860
31861         LIBS="$ol_LIBS"
31862
31863 fi
31864 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31865 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31866
31867         if test $ol_cv_db_db_44 = yes ; then
31868                 ol_cv_lib_db=-ldb-44
31869         fi
31870 fi
31871
31872                 if test $ol_cv_lib_db = no ; then
31873         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31874 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31875 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31876   echo $ECHO_N "(cached) $ECHO_C" >&6
31877 else
31878
31879         ol_DB_LIB=-ldb-4.4
31880         ol_LIBS=$LIBS
31881         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31882
31883         cat >conftest.$ac_ext <<_ACEOF
31884 /* confdefs.h.  */
31885 _ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h.  */
31889
31890 #ifdef HAVE_DB_185_H
31891 # include <db_185.h>
31892 #else
31893 # include <db.h>
31894 #endif
31895
31896 #ifndef DB_VERSION_MAJOR
31897 # define DB_VERSION_MAJOR 1
31898 #endif
31899
31900 #ifndef NULL
31901 #define NULL ((void*)0)
31902 #endif
31903
31904 int
31905 main ()
31906 {
31907
31908 #if DB_VERSION_MAJOR > 1
31909         {
31910                 char *version;
31911                 int major, minor, patch;
31912
31913                 version = db_version( &major, &minor, &patch );
31914
31915                 if( major != DB_VERSION_MAJOR ||
31916                         minor < DB_VERSION_MINOR )
31917                 {
31918                         printf("Berkeley DB version mismatch\n"
31919                                 "\theader: %s\n\tlibrary: %s\n",
31920                                 DB_VERSION_STRING, version);
31921                         return 1;
31922                 }
31923         }
31924 #endif
31925
31926 #if DB_VERSION_MAJOR > 2
31927         db_env_create( NULL, 0 );
31928 #elif DB_VERSION_MAJOR > 1
31929         db_appexit( NULL );
31930 #else
31931         (void) dbopen( NULL, 0, 0, 0, NULL);
31932 #endif
31933
31934   ;
31935   return 0;
31936 }
31937 _ACEOF
31938 rm -f conftest.$ac_objext conftest$ac_exeext
31939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31940   (eval $ac_link) 2>conftest.er1
31941   ac_status=$?
31942   grep -v '^ *+' conftest.er1 >conftest.err
31943   rm -f conftest.er1
31944   cat conftest.err >&5
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); } &&
31947          { ac_try='test -z "$ac_c_werror_flag"
31948                          || test ! -s conftest.err'
31949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31950   (eval $ac_try) 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); }; } &&
31954          { ac_try='test -s conftest$ac_exeext'
31955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956   (eval $ac_try) 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; }; then
31960   ol_cv_db_db_4_dot_4=yes
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965 ol_cv_db_db_4_dot_4=no
31966 fi
31967 rm -f conftest.err conftest.$ac_objext \
31968       conftest$ac_exeext conftest.$ac_ext
31969
31970         LIBS="$ol_LIBS"
31971
31972 fi
31973 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31974 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31975
31976         if test $ol_cv_db_db_4_dot_4 = yes ; then
31977                 ol_cv_lib_db=-ldb-4.4
31978         fi
31979 fi
31980
31981                 if test $ol_cv_lib_db = no ; then
31982         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31983 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31984 if test "${ol_cv_db_db_4_4+set}" = set; then
31985   echo $ECHO_N "(cached) $ECHO_C" >&6
31986 else
31987
31988         ol_DB_LIB=-ldb-4-4
31989         ol_LIBS=$LIBS
31990         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31991
31992         cat >conftest.$ac_ext <<_ACEOF
31993 /* confdefs.h.  */
31994 _ACEOF
31995 cat confdefs.h >>conftest.$ac_ext
31996 cat >>conftest.$ac_ext <<_ACEOF
31997 /* end confdefs.h.  */
31998
31999 #ifdef HAVE_DB_185_H
32000 # include <db_185.h>
32001 #else
32002 # include <db.h>
32003 #endif
32004
32005 #ifndef DB_VERSION_MAJOR
32006 # define DB_VERSION_MAJOR 1
32007 #endif
32008
32009 #ifndef NULL
32010 #define NULL ((void*)0)
32011 #endif
32012
32013 int
32014 main ()
32015 {
32016
32017 #if DB_VERSION_MAJOR > 1
32018         {
32019                 char *version;
32020                 int major, minor, patch;
32021
32022                 version = db_version( &major, &minor, &patch );
32023
32024                 if( major != DB_VERSION_MAJOR ||
32025                         minor < DB_VERSION_MINOR )
32026                 {
32027                         printf("Berkeley DB version mismatch\n"
32028                                 "\theader: %s\n\tlibrary: %s\n",
32029                                 DB_VERSION_STRING, version);
32030                         return 1;
32031                 }
32032         }
32033 #endif
32034
32035 #if DB_VERSION_MAJOR > 2
32036         db_env_create( NULL, 0 );
32037 #elif DB_VERSION_MAJOR > 1
32038         db_appexit( NULL );
32039 #else
32040         (void) dbopen( NULL, 0, 0, 0, NULL);
32041 #endif
32042
32043   ;
32044   return 0;
32045 }
32046 _ACEOF
32047 rm -f conftest.$ac_objext conftest$ac_exeext
32048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32049   (eval $ac_link) 2>conftest.er1
32050   ac_status=$?
32051   grep -v '^ *+' conftest.er1 >conftest.err
32052   rm -f conftest.er1
32053   cat conftest.err >&5
32054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055   (exit $ac_status); } &&
32056          { ac_try='test -z "$ac_c_werror_flag"
32057                          || test ! -s conftest.err'
32058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32059   (eval $ac_try) 2>&5
32060   ac_status=$?
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); }; } &&
32063          { ac_try='test -s conftest$ac_exeext'
32064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065   (eval $ac_try) 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; }; then
32069   ol_cv_db_db_4_4=yes
32070 else
32071   echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 ol_cv_db_db_4_4=no
32075 fi
32076 rm -f conftest.err conftest.$ac_objext \
32077       conftest$ac_exeext conftest.$ac_ext
32078
32079         LIBS="$ol_LIBS"
32080
32081 fi
32082 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32083 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32084
32085         if test $ol_cv_db_db_4_4 = yes ; then
32086                 ol_cv_lib_db=-ldb-4-4
32087         fi
32088 fi
32089
32090         elif test $ol_cv_bdb_minor = 3 ; then
32091                 if test $ol_cv_lib_db = no ; then
32092         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32093 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32094 if test "${ol_cv_db_db43+set}" = set; then
32095   echo $ECHO_N "(cached) $ECHO_C" >&6
32096 else
32097
32098         ol_DB_LIB=-ldb43
32099         ol_LIBS=$LIBS
32100         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32101
32102         cat >conftest.$ac_ext <<_ACEOF
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108
32109 #ifdef HAVE_DB_185_H
32110 # include <db_185.h>
32111 #else
32112 # include <db.h>
32113 #endif
32114
32115 #ifndef DB_VERSION_MAJOR
32116 # define DB_VERSION_MAJOR 1
32117 #endif
32118
32119 #ifndef NULL
32120 #define NULL ((void*)0)
32121 #endif
32122
32123 int
32124 main ()
32125 {
32126
32127 #if DB_VERSION_MAJOR > 1
32128         {
32129                 char *version;
32130                 int major, minor, patch;
32131
32132                 version = db_version( &major, &minor, &patch );
32133
32134                 if( major != DB_VERSION_MAJOR ||
32135                         minor < DB_VERSION_MINOR )
32136                 {
32137                         printf("Berkeley DB version mismatch\n"
32138                                 "\theader: %s\n\tlibrary: %s\n",
32139                                 DB_VERSION_STRING, version);
32140                         return 1;
32141                 }
32142         }
32143 #endif
32144
32145 #if DB_VERSION_MAJOR > 2
32146         db_env_create( NULL, 0 );
32147 #elif DB_VERSION_MAJOR > 1
32148         db_appexit( NULL );
32149 #else
32150         (void) dbopen( NULL, 0, 0, 0, NULL);
32151 #endif
32152
32153   ;
32154   return 0;
32155 }
32156 _ACEOF
32157 rm -f conftest.$ac_objext conftest$ac_exeext
32158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32159   (eval $ac_link) 2>conftest.er1
32160   ac_status=$?
32161   grep -v '^ *+' conftest.er1 >conftest.err
32162   rm -f conftest.er1
32163   cat conftest.err >&5
32164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165   (exit $ac_status); } &&
32166          { ac_try='test -z "$ac_c_werror_flag"
32167                          || test ! -s conftest.err'
32168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169   (eval $ac_try) 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; } &&
32173          { ac_try='test -s conftest$ac_exeext'
32174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175   (eval $ac_try) 2>&5
32176   ac_status=$?
32177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178   (exit $ac_status); }; }; then
32179   ol_cv_db_db43=yes
32180 else
32181   echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32183
32184 ol_cv_db_db43=no
32185 fi
32186 rm -f conftest.err conftest.$ac_objext \
32187       conftest$ac_exeext conftest.$ac_ext
32188
32189         LIBS="$ol_LIBS"
32190
32191 fi
32192 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32193 echo "${ECHO_T}$ol_cv_db_db43" >&6
32194
32195         if test $ol_cv_db_db43 = yes ; then
32196                 ol_cv_lib_db=-ldb43
32197         fi
32198 fi
32199
32200                 if test $ol_cv_lib_db = no ; then
32201         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32202 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32203 if test "${ol_cv_db_db_43+set}" = set; then
32204   echo $ECHO_N "(cached) $ECHO_C" >&6
32205 else
32206
32207         ol_DB_LIB=-ldb-43
32208         ol_LIBS=$LIBS
32209         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32210
32211         cat >conftest.$ac_ext <<_ACEOF
32212 /* confdefs.h.  */
32213 _ACEOF
32214 cat confdefs.h >>conftest.$ac_ext
32215 cat >>conftest.$ac_ext <<_ACEOF
32216 /* end confdefs.h.  */
32217
32218 #ifdef HAVE_DB_185_H
32219 # include <db_185.h>
32220 #else
32221 # include <db.h>
32222 #endif
32223
32224 #ifndef DB_VERSION_MAJOR
32225 # define DB_VERSION_MAJOR 1
32226 #endif
32227
32228 #ifndef NULL
32229 #define NULL ((void*)0)
32230 #endif
32231
32232 int
32233 main ()
32234 {
32235
32236 #if DB_VERSION_MAJOR > 1
32237         {
32238                 char *version;
32239                 int major, minor, patch;
32240
32241                 version = db_version( &major, &minor, &patch );
32242
32243                 if( major != DB_VERSION_MAJOR ||
32244                         minor < DB_VERSION_MINOR )
32245                 {
32246                         printf("Berkeley DB version mismatch\n"
32247                                 "\theader: %s\n\tlibrary: %s\n",
32248                                 DB_VERSION_STRING, version);
32249                         return 1;
32250                 }
32251         }
32252 #endif
32253
32254 #if DB_VERSION_MAJOR > 2
32255         db_env_create( NULL, 0 );
32256 #elif DB_VERSION_MAJOR > 1
32257         db_appexit( NULL );
32258 #else
32259         (void) dbopen( NULL, 0, 0, 0, NULL);
32260 #endif
32261
32262   ;
32263   return 0;
32264 }
32265 _ACEOF
32266 rm -f conftest.$ac_objext conftest$ac_exeext
32267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32268   (eval $ac_link) 2>conftest.er1
32269   ac_status=$?
32270   grep -v '^ *+' conftest.er1 >conftest.err
32271   rm -f conftest.er1
32272   cat conftest.err >&5
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); } &&
32275          { ac_try='test -z "$ac_c_werror_flag"
32276                          || test ! -s conftest.err'
32277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278   (eval $ac_try) 2>&5
32279   ac_status=$?
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); }; } &&
32282          { ac_try='test -s conftest$ac_exeext'
32283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284   (eval $ac_try) 2>&5
32285   ac_status=$?
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); }; }; then
32288   ol_cv_db_db_43=yes
32289 else
32290   echo "$as_me: failed program was:" >&5
32291 sed 's/^/| /' conftest.$ac_ext >&5
32292
32293 ol_cv_db_db_43=no
32294 fi
32295 rm -f conftest.err conftest.$ac_objext \
32296       conftest$ac_exeext conftest.$ac_ext
32297
32298         LIBS="$ol_LIBS"
32299
32300 fi
32301 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32302 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32303
32304         if test $ol_cv_db_db_43 = yes ; then
32305                 ol_cv_lib_db=-ldb-43
32306         fi
32307 fi
32308
32309                 if test $ol_cv_lib_db = no ; then
32310         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32311 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32312 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32313   echo $ECHO_N "(cached) $ECHO_C" >&6
32314 else
32315
32316         ol_DB_LIB=-ldb-4.3
32317         ol_LIBS=$LIBS
32318         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32319
32320         cat >conftest.$ac_ext <<_ACEOF
32321 /* confdefs.h.  */
32322 _ACEOF
32323 cat confdefs.h >>conftest.$ac_ext
32324 cat >>conftest.$ac_ext <<_ACEOF
32325 /* end confdefs.h.  */
32326
32327 #ifdef HAVE_DB_185_H
32328 # include <db_185.h>
32329 #else
32330 # include <db.h>
32331 #endif
32332
32333 #ifndef DB_VERSION_MAJOR
32334 # define DB_VERSION_MAJOR 1
32335 #endif
32336
32337 #ifndef NULL
32338 #define NULL ((void*)0)
32339 #endif
32340
32341 int
32342 main ()
32343 {
32344
32345 #if DB_VERSION_MAJOR > 1
32346         {
32347                 char *version;
32348                 int major, minor, patch;
32349
32350                 version = db_version( &major, &minor, &patch );
32351
32352                 if( major != DB_VERSION_MAJOR ||
32353                         minor < DB_VERSION_MINOR )
32354                 {
32355                         printf("Berkeley DB version mismatch\n"
32356                                 "\theader: %s\n\tlibrary: %s\n",
32357                                 DB_VERSION_STRING, version);
32358                         return 1;
32359                 }
32360         }
32361 #endif
32362
32363 #if DB_VERSION_MAJOR > 2
32364         db_env_create( NULL, 0 );
32365 #elif DB_VERSION_MAJOR > 1
32366         db_appexit( NULL );
32367 #else
32368         (void) dbopen( NULL, 0, 0, 0, NULL);
32369 #endif
32370
32371   ;
32372   return 0;
32373 }
32374 _ACEOF
32375 rm -f conftest.$ac_objext conftest$ac_exeext
32376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32377   (eval $ac_link) 2>conftest.er1
32378   ac_status=$?
32379   grep -v '^ *+' conftest.er1 >conftest.err
32380   rm -f conftest.er1
32381   cat conftest.err >&5
32382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383   (exit $ac_status); } &&
32384          { ac_try='test -z "$ac_c_werror_flag"
32385                          || test ! -s conftest.err'
32386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387   (eval $ac_try) 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); }; } &&
32391          { ac_try='test -s conftest$ac_exeext'
32392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393   (eval $ac_try) 2>&5
32394   ac_status=$?
32395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396   (exit $ac_status); }; }; then
32397   ol_cv_db_db_4_dot_3=yes
32398 else
32399   echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32401
32402 ol_cv_db_db_4_dot_3=no
32403 fi
32404 rm -f conftest.err conftest.$ac_objext \
32405       conftest$ac_exeext conftest.$ac_ext
32406
32407         LIBS="$ol_LIBS"
32408
32409 fi
32410 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32411 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32412
32413         if test $ol_cv_db_db_4_dot_3 = yes ; then
32414                 ol_cv_lib_db=-ldb-4.3
32415         fi
32416 fi
32417
32418                 if test $ol_cv_lib_db = no ; then
32419         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32420 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32421 if test "${ol_cv_db_db_4_3+set}" = set; then
32422   echo $ECHO_N "(cached) $ECHO_C" >&6
32423 else
32424
32425         ol_DB_LIB=-ldb-4-3
32426         ol_LIBS=$LIBS
32427         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32428
32429         cat >conftest.$ac_ext <<_ACEOF
32430 /* confdefs.h.  */
32431 _ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h.  */
32435
32436 #ifdef HAVE_DB_185_H
32437 # include <db_185.h>
32438 #else
32439 # include <db.h>
32440 #endif
32441
32442 #ifndef DB_VERSION_MAJOR
32443 # define DB_VERSION_MAJOR 1
32444 #endif
32445
32446 #ifndef NULL
32447 #define NULL ((void*)0)
32448 #endif
32449
32450 int
32451 main ()
32452 {
32453
32454 #if DB_VERSION_MAJOR > 1
32455         {
32456                 char *version;
32457                 int major, minor, patch;
32458
32459                 version = db_version( &major, &minor, &patch );
32460
32461                 if( major != DB_VERSION_MAJOR ||
32462                         minor < DB_VERSION_MINOR )
32463                 {
32464                         printf("Berkeley DB version mismatch\n"
32465                                 "\theader: %s\n\tlibrary: %s\n",
32466                                 DB_VERSION_STRING, version);
32467                         return 1;
32468                 }
32469         }
32470 #endif
32471
32472 #if DB_VERSION_MAJOR > 2
32473         db_env_create( NULL, 0 );
32474 #elif DB_VERSION_MAJOR > 1
32475         db_appexit( NULL );
32476 #else
32477         (void) dbopen( NULL, 0, 0, 0, NULL);
32478 #endif
32479
32480   ;
32481   return 0;
32482 }
32483 _ACEOF
32484 rm -f conftest.$ac_objext conftest$ac_exeext
32485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32486   (eval $ac_link) 2>conftest.er1
32487   ac_status=$?
32488   grep -v '^ *+' conftest.er1 >conftest.err
32489   rm -f conftest.er1
32490   cat conftest.err >&5
32491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492   (exit $ac_status); } &&
32493          { ac_try='test -z "$ac_c_werror_flag"
32494                          || test ! -s conftest.err'
32495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496   (eval $ac_try) 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; } &&
32500          { ac_try='test -s conftest$ac_exeext'
32501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502   (eval $ac_try) 2>&5
32503   ac_status=$?
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); }; }; then
32506   ol_cv_db_db_4_3=yes
32507 else
32508   echo "$as_me: failed program was:" >&5
32509 sed 's/^/| /' conftest.$ac_ext >&5
32510
32511 ol_cv_db_db_4_3=no
32512 fi
32513 rm -f conftest.err conftest.$ac_objext \
32514       conftest$ac_exeext conftest.$ac_ext
32515
32516         LIBS="$ol_LIBS"
32517
32518 fi
32519 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32520 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32521
32522         if test $ol_cv_db_db_4_3 = yes ; then
32523                 ol_cv_lib_db=-ldb-4-3
32524         fi
32525 fi
32526
32527         elif test $ol_cv_bdb_minor = 2 ; then
32528                 if test $ol_cv_lib_db = no ; then
32529         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32530 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32531 if test "${ol_cv_db_db42+set}" = set; then
32532   echo $ECHO_N "(cached) $ECHO_C" >&6
32533 else
32534
32535         ol_DB_LIB=-ldb42
32536         ol_LIBS=$LIBS
32537         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32538
32539         cat >conftest.$ac_ext <<_ACEOF
32540 /* confdefs.h.  */
32541 _ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h.  */
32545
32546 #ifdef HAVE_DB_185_H
32547 # include <db_185.h>
32548 #else
32549 # include <db.h>
32550 #endif
32551
32552 #ifndef DB_VERSION_MAJOR
32553 # define DB_VERSION_MAJOR 1
32554 #endif
32555
32556 #ifndef NULL
32557 #define NULL ((void*)0)
32558 #endif
32559
32560 int
32561 main ()
32562 {
32563
32564 #if DB_VERSION_MAJOR > 1
32565         {
32566                 char *version;
32567                 int major, minor, patch;
32568
32569                 version = db_version( &major, &minor, &patch );
32570
32571                 if( major != DB_VERSION_MAJOR ||
32572                         minor < DB_VERSION_MINOR )
32573                 {
32574                         printf("Berkeley DB version mismatch\n"
32575                                 "\theader: %s\n\tlibrary: %s\n",
32576                                 DB_VERSION_STRING, version);
32577                         return 1;
32578                 }
32579         }
32580 #endif
32581
32582 #if DB_VERSION_MAJOR > 2
32583         db_env_create( NULL, 0 );
32584 #elif DB_VERSION_MAJOR > 1
32585         db_appexit( NULL );
32586 #else
32587         (void) dbopen( NULL, 0, 0, 0, NULL);
32588 #endif
32589
32590   ;
32591   return 0;
32592 }
32593 _ACEOF
32594 rm -f conftest.$ac_objext conftest$ac_exeext
32595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32596   (eval $ac_link) 2>conftest.er1
32597   ac_status=$?
32598   grep -v '^ *+' conftest.er1 >conftest.err
32599   rm -f conftest.er1
32600   cat conftest.err >&5
32601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602   (exit $ac_status); } &&
32603          { ac_try='test -z "$ac_c_werror_flag"
32604                          || test ! -s conftest.err'
32605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32606   (eval $ac_try) 2>&5
32607   ac_status=$?
32608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609   (exit $ac_status); }; } &&
32610          { ac_try='test -s conftest$ac_exeext'
32611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32612   (eval $ac_try) 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; }; then
32616   ol_cv_db_db42=yes
32617 else
32618   echo "$as_me: failed program was:" >&5
32619 sed 's/^/| /' conftest.$ac_ext >&5
32620
32621 ol_cv_db_db42=no
32622 fi
32623 rm -f conftest.err conftest.$ac_objext \
32624       conftest$ac_exeext conftest.$ac_ext
32625
32626         LIBS="$ol_LIBS"
32627
32628 fi
32629 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32630 echo "${ECHO_T}$ol_cv_db_db42" >&6
32631
32632         if test $ol_cv_db_db42 = yes ; then
32633                 ol_cv_lib_db=-ldb42
32634         fi
32635 fi
32636
32637                 if test $ol_cv_lib_db = no ; then
32638         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32639 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32640 if test "${ol_cv_db_db_42+set}" = set; then
32641   echo $ECHO_N "(cached) $ECHO_C" >&6
32642 else
32643
32644         ol_DB_LIB=-ldb-42
32645         ol_LIBS=$LIBS
32646         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32647
32648         cat >conftest.$ac_ext <<_ACEOF
32649 /* confdefs.h.  */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h.  */
32654
32655 #ifdef HAVE_DB_185_H
32656 # include <db_185.h>
32657 #else
32658 # include <db.h>
32659 #endif
32660
32661 #ifndef DB_VERSION_MAJOR
32662 # define DB_VERSION_MAJOR 1
32663 #endif
32664
32665 #ifndef NULL
32666 #define NULL ((void*)0)
32667 #endif
32668
32669 int
32670 main ()
32671 {
32672
32673 #if DB_VERSION_MAJOR > 1
32674         {
32675                 char *version;
32676                 int major, minor, patch;
32677
32678                 version = db_version( &major, &minor, &patch );
32679
32680                 if( major != DB_VERSION_MAJOR ||
32681                         minor < DB_VERSION_MINOR )
32682                 {
32683                         printf("Berkeley DB version mismatch\n"
32684                                 "\theader: %s\n\tlibrary: %s\n",
32685                                 DB_VERSION_STRING, version);
32686                         return 1;
32687                 }
32688         }
32689 #endif
32690
32691 #if DB_VERSION_MAJOR > 2
32692         db_env_create( NULL, 0 );
32693 #elif DB_VERSION_MAJOR > 1
32694         db_appexit( NULL );
32695 #else
32696         (void) dbopen( NULL, 0, 0, 0, NULL);
32697 #endif
32698
32699   ;
32700   return 0;
32701 }
32702 _ACEOF
32703 rm -f conftest.$ac_objext conftest$ac_exeext
32704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32705   (eval $ac_link) 2>conftest.er1
32706   ac_status=$?
32707   grep -v '^ *+' conftest.er1 >conftest.err
32708   rm -f conftest.er1
32709   cat conftest.err >&5
32710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); } &&
32712          { ac_try='test -z "$ac_c_werror_flag"
32713                          || test ! -s conftest.err'
32714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32715   (eval $ac_try) 2>&5
32716   ac_status=$?
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); }; } &&
32719          { ac_try='test -s conftest$ac_exeext'
32720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721   (eval $ac_try) 2>&5
32722   ac_status=$?
32723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724   (exit $ac_status); }; }; then
32725   ol_cv_db_db_42=yes
32726 else
32727   echo "$as_me: failed program was:" >&5
32728 sed 's/^/| /' conftest.$ac_ext >&5
32729
32730 ol_cv_db_db_42=no
32731 fi
32732 rm -f conftest.err conftest.$ac_objext \
32733       conftest$ac_exeext conftest.$ac_ext
32734
32735         LIBS="$ol_LIBS"
32736
32737 fi
32738 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32739 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32740
32741         if test $ol_cv_db_db_42 = yes ; then
32742                 ol_cv_lib_db=-ldb-42
32743         fi
32744 fi
32745
32746                 if test $ol_cv_lib_db = no ; then
32747         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32748 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32749 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32750   echo $ECHO_N "(cached) $ECHO_C" >&6
32751 else
32752
32753         ol_DB_LIB=-ldb-4.2
32754         ol_LIBS=$LIBS
32755         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32756
32757         cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763
32764 #ifdef HAVE_DB_185_H
32765 # include <db_185.h>
32766 #else
32767 # include <db.h>
32768 #endif
32769
32770 #ifndef DB_VERSION_MAJOR
32771 # define DB_VERSION_MAJOR 1
32772 #endif
32773
32774 #ifndef NULL
32775 #define NULL ((void*)0)
32776 #endif
32777
32778 int
32779 main ()
32780 {
32781
32782 #if DB_VERSION_MAJOR > 1
32783         {
32784                 char *version;
32785                 int major, minor, patch;
32786
32787                 version = db_version( &major, &minor, &patch );
32788
32789                 if( major != DB_VERSION_MAJOR ||
32790                         minor < DB_VERSION_MINOR )
32791                 {
32792                         printf("Berkeley DB version mismatch\n"
32793                                 "\theader: %s\n\tlibrary: %s\n",
32794                                 DB_VERSION_STRING, version);
32795                         return 1;
32796                 }
32797         }
32798 #endif
32799
32800 #if DB_VERSION_MAJOR > 2
32801         db_env_create( NULL, 0 );
32802 #elif DB_VERSION_MAJOR > 1
32803         db_appexit( NULL );
32804 #else
32805         (void) dbopen( NULL, 0, 0, 0, NULL);
32806 #endif
32807
32808   ;
32809   return 0;
32810 }
32811 _ACEOF
32812 rm -f conftest.$ac_objext conftest$ac_exeext
32813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32814   (eval $ac_link) 2>conftest.er1
32815   ac_status=$?
32816   grep -v '^ *+' conftest.er1 >conftest.err
32817   rm -f conftest.er1
32818   cat conftest.err >&5
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); } &&
32821          { ac_try='test -z "$ac_c_werror_flag"
32822                          || test ! -s conftest.err'
32823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824   (eval $ac_try) 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; } &&
32828          { ac_try='test -s conftest$ac_exeext'
32829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830   (eval $ac_try) 2>&5
32831   ac_status=$?
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); }; }; then
32834   ol_cv_db_db_4_dot_2=yes
32835 else
32836   echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32838
32839 ol_cv_db_db_4_dot_2=no
32840 fi
32841 rm -f conftest.err conftest.$ac_objext \
32842       conftest$ac_exeext conftest.$ac_ext
32843
32844         LIBS="$ol_LIBS"
32845
32846 fi
32847 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32848 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32849
32850         if test $ol_cv_db_db_4_dot_2 = yes ; then
32851                 ol_cv_lib_db=-ldb-4.2
32852         fi
32853 fi
32854
32855                 if test $ol_cv_lib_db = no ; then
32856         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32857 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32858 if test "${ol_cv_db_db_4_2+set}" = set; then
32859   echo $ECHO_N "(cached) $ECHO_C" >&6
32860 else
32861
32862         ol_DB_LIB=-ldb-4-2
32863         ol_LIBS=$LIBS
32864         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32865
32866         cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872
32873 #ifdef HAVE_DB_185_H
32874 # include <db_185.h>
32875 #else
32876 # include <db.h>
32877 #endif
32878
32879 #ifndef DB_VERSION_MAJOR
32880 # define DB_VERSION_MAJOR 1
32881 #endif
32882
32883 #ifndef NULL
32884 #define NULL ((void*)0)
32885 #endif
32886
32887 int
32888 main ()
32889 {
32890
32891 #if DB_VERSION_MAJOR > 1
32892         {
32893                 char *version;
32894                 int major, minor, patch;
32895
32896                 version = db_version( &major, &minor, &patch );
32897
32898                 if( major != DB_VERSION_MAJOR ||
32899                         minor < DB_VERSION_MINOR )
32900                 {
32901                         printf("Berkeley DB version mismatch\n"
32902                                 "\theader: %s\n\tlibrary: %s\n",
32903                                 DB_VERSION_STRING, version);
32904                         return 1;
32905                 }
32906         }
32907 #endif
32908
32909 #if DB_VERSION_MAJOR > 2
32910         db_env_create( NULL, 0 );
32911 #elif DB_VERSION_MAJOR > 1
32912         db_appexit( NULL );
32913 #else
32914         (void) dbopen( NULL, 0, 0, 0, NULL);
32915 #endif
32916
32917   ;
32918   return 0;
32919 }
32920 _ACEOF
32921 rm -f conftest.$ac_objext conftest$ac_exeext
32922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32923   (eval $ac_link) 2>conftest.er1
32924   ac_status=$?
32925   grep -v '^ *+' conftest.er1 >conftest.err
32926   rm -f conftest.er1
32927   cat conftest.err >&5
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); } &&
32930          { ac_try='test -z "$ac_c_werror_flag"
32931                          || test ! -s conftest.err'
32932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32933   (eval $ac_try) 2>&5
32934   ac_status=$?
32935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936   (exit $ac_status); }; } &&
32937          { ac_try='test -s conftest$ac_exeext'
32938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32939   (eval $ac_try) 2>&5
32940   ac_status=$?
32941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32942   (exit $ac_status); }; }; then
32943   ol_cv_db_db_4_2=yes
32944 else
32945   echo "$as_me: failed program was:" >&5
32946 sed 's/^/| /' conftest.$ac_ext >&5
32947
32948 ol_cv_db_db_4_2=no
32949 fi
32950 rm -f conftest.err conftest.$ac_objext \
32951       conftest$ac_exeext conftest.$ac_ext
32952
32953         LIBS="$ol_LIBS"
32954
32955 fi
32956 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32957 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32958
32959         if test $ol_cv_db_db_4_2 = yes ; then
32960                 ol_cv_lib_db=-ldb-4-2
32961         fi
32962 fi
32963
32964         elif test $ol_cv_bdb_minor = 1 ; then
32965                 if test $ol_cv_lib_db = no ; then
32966         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32967 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32968 if test "${ol_cv_db_db41+set}" = set; then
32969   echo $ECHO_N "(cached) $ECHO_C" >&6
32970 else
32971
32972         ol_DB_LIB=-ldb41
32973         ol_LIBS=$LIBS
32974         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32975
32976         cat >conftest.$ac_ext <<_ACEOF
32977 /* confdefs.h.  */
32978 _ACEOF
32979 cat confdefs.h >>conftest.$ac_ext
32980 cat >>conftest.$ac_ext <<_ACEOF
32981 /* end confdefs.h.  */
32982
32983 #ifdef HAVE_DB_185_H
32984 # include <db_185.h>
32985 #else
32986 # include <db.h>
32987 #endif
32988
32989 #ifndef DB_VERSION_MAJOR
32990 # define DB_VERSION_MAJOR 1
32991 #endif
32992
32993 #ifndef NULL
32994 #define NULL ((void*)0)
32995 #endif
32996
32997 int
32998 main ()
32999 {
33000
33001 #if DB_VERSION_MAJOR > 1
33002         {
33003                 char *version;
33004                 int major, minor, patch;
33005
33006                 version = db_version( &major, &minor, &patch );
33007
33008                 if( major != DB_VERSION_MAJOR ||
33009                         minor < DB_VERSION_MINOR )
33010                 {
33011                         printf("Berkeley DB version mismatch\n"
33012                                 "\theader: %s\n\tlibrary: %s\n",
33013                                 DB_VERSION_STRING, version);
33014                         return 1;
33015                 }
33016         }
33017 #endif
33018
33019 #if DB_VERSION_MAJOR > 2
33020         db_env_create( NULL, 0 );
33021 #elif DB_VERSION_MAJOR > 1
33022         db_appexit( NULL );
33023 #else
33024         (void) dbopen( NULL, 0, 0, 0, NULL);
33025 #endif
33026
33027   ;
33028   return 0;
33029 }
33030 _ACEOF
33031 rm -f conftest.$ac_objext conftest$ac_exeext
33032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33033   (eval $ac_link) 2>conftest.er1
33034   ac_status=$?
33035   grep -v '^ *+' conftest.er1 >conftest.err
33036   rm -f conftest.er1
33037   cat conftest.err >&5
33038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33039   (exit $ac_status); } &&
33040          { ac_try='test -z "$ac_c_werror_flag"
33041                          || test ! -s conftest.err'
33042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043   (eval $ac_try) 2>&5
33044   ac_status=$?
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; } &&
33047          { ac_try='test -s conftest$ac_exeext'
33048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33049   (eval $ac_try) 2>&5
33050   ac_status=$?
33051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052   (exit $ac_status); }; }; then
33053   ol_cv_db_db41=yes
33054 else
33055   echo "$as_me: failed program was:" >&5
33056 sed 's/^/| /' conftest.$ac_ext >&5
33057
33058 ol_cv_db_db41=no
33059 fi
33060 rm -f conftest.err conftest.$ac_objext \
33061       conftest$ac_exeext conftest.$ac_ext
33062
33063         LIBS="$ol_LIBS"
33064
33065 fi
33066 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33067 echo "${ECHO_T}$ol_cv_db_db41" >&6
33068
33069         if test $ol_cv_db_db41 = yes ; then
33070                 ol_cv_lib_db=-ldb41
33071         fi
33072 fi
33073
33074                 if test $ol_cv_lib_db = no ; then
33075         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33076 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33077 if test "${ol_cv_db_db_41+set}" = set; then
33078   echo $ECHO_N "(cached) $ECHO_C" >&6
33079 else
33080
33081         ol_DB_LIB=-ldb-41
33082         ol_LIBS=$LIBS
33083         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33084
33085         cat >conftest.$ac_ext <<_ACEOF
33086 /* confdefs.h.  */
33087 _ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h.  */
33091
33092 #ifdef HAVE_DB_185_H
33093 # include <db_185.h>
33094 #else
33095 # include <db.h>
33096 #endif
33097
33098 #ifndef DB_VERSION_MAJOR
33099 # define DB_VERSION_MAJOR 1
33100 #endif
33101
33102 #ifndef NULL
33103 #define NULL ((void*)0)
33104 #endif
33105
33106 int
33107 main ()
33108 {
33109
33110 #if DB_VERSION_MAJOR > 1
33111         {
33112                 char *version;
33113                 int major, minor, patch;
33114
33115                 version = db_version( &major, &minor, &patch );
33116
33117                 if( major != DB_VERSION_MAJOR ||
33118                         minor < DB_VERSION_MINOR )
33119                 {
33120                         printf("Berkeley DB version mismatch\n"
33121                                 "\theader: %s\n\tlibrary: %s\n",
33122                                 DB_VERSION_STRING, version);
33123                         return 1;
33124                 }
33125         }
33126 #endif
33127
33128 #if DB_VERSION_MAJOR > 2
33129         db_env_create( NULL, 0 );
33130 #elif DB_VERSION_MAJOR > 1
33131         db_appexit( NULL );
33132 #else
33133         (void) dbopen( NULL, 0, 0, 0, NULL);
33134 #endif
33135
33136   ;
33137   return 0;
33138 }
33139 _ACEOF
33140 rm -f conftest.$ac_objext conftest$ac_exeext
33141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33142   (eval $ac_link) 2>conftest.er1
33143   ac_status=$?
33144   grep -v '^ *+' conftest.er1 >conftest.err
33145   rm -f conftest.er1
33146   cat conftest.err >&5
33147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148   (exit $ac_status); } &&
33149          { ac_try='test -z "$ac_c_werror_flag"
33150                          || test ! -s conftest.err'
33151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152   (eval $ac_try) 2>&5
33153   ac_status=$?
33154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155   (exit $ac_status); }; } &&
33156          { ac_try='test -s conftest$ac_exeext'
33157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33158   (eval $ac_try) 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); }; }; then
33162   ol_cv_db_db_41=yes
33163 else
33164   echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33166
33167 ol_cv_db_db_41=no
33168 fi
33169 rm -f conftest.err conftest.$ac_objext \
33170       conftest$ac_exeext conftest.$ac_ext
33171
33172         LIBS="$ol_LIBS"
33173
33174 fi
33175 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33176 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33177
33178         if test $ol_cv_db_db_41 = yes ; then
33179                 ol_cv_lib_db=-ldb-41
33180         fi
33181 fi
33182
33183                 if test $ol_cv_lib_db = no ; then
33184         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33185 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33186 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33187   echo $ECHO_N "(cached) $ECHO_C" >&6
33188 else
33189
33190         ol_DB_LIB=-ldb-4.1
33191         ol_LIBS=$LIBS
33192         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33193
33194         cat >conftest.$ac_ext <<_ACEOF
33195 /* confdefs.h.  */
33196 _ACEOF
33197 cat confdefs.h >>conftest.$ac_ext
33198 cat >>conftest.$ac_ext <<_ACEOF
33199 /* end confdefs.h.  */
33200
33201 #ifdef HAVE_DB_185_H
33202 # include <db_185.h>
33203 #else
33204 # include <db.h>
33205 #endif
33206
33207 #ifndef DB_VERSION_MAJOR
33208 # define DB_VERSION_MAJOR 1
33209 #endif
33210
33211 #ifndef NULL
33212 #define NULL ((void*)0)
33213 #endif
33214
33215 int
33216 main ()
33217 {
33218
33219 #if DB_VERSION_MAJOR > 1
33220         {
33221                 char *version;
33222                 int major, minor, patch;
33223
33224                 version = db_version( &major, &minor, &patch );
33225
33226                 if( major != DB_VERSION_MAJOR ||
33227                         minor < DB_VERSION_MINOR )
33228                 {
33229                         printf("Berkeley DB version mismatch\n"
33230                                 "\theader: %s\n\tlibrary: %s\n",
33231                                 DB_VERSION_STRING, version);
33232                         return 1;
33233                 }
33234         }
33235 #endif
33236
33237 #if DB_VERSION_MAJOR > 2
33238         db_env_create( NULL, 0 );
33239 #elif DB_VERSION_MAJOR > 1
33240         db_appexit( NULL );
33241 #else
33242         (void) dbopen( NULL, 0, 0, 0, NULL);
33243 #endif
33244
33245   ;
33246   return 0;
33247 }
33248 _ACEOF
33249 rm -f conftest.$ac_objext conftest$ac_exeext
33250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33251   (eval $ac_link) 2>conftest.er1
33252   ac_status=$?
33253   grep -v '^ *+' conftest.er1 >conftest.err
33254   rm -f conftest.er1
33255   cat conftest.err >&5
33256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257   (exit $ac_status); } &&
33258          { ac_try='test -z "$ac_c_werror_flag"
33259                          || test ! -s conftest.err'
33260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33261   (eval $ac_try) 2>&5
33262   ac_status=$?
33263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264   (exit $ac_status); }; } &&
33265          { ac_try='test -s conftest$ac_exeext'
33266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33267   (eval $ac_try) 2>&5
33268   ac_status=$?
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); }; }; then
33271   ol_cv_db_db_4_dot_1=yes
33272 else
33273   echo "$as_me: failed program was:" >&5
33274 sed 's/^/| /' conftest.$ac_ext >&5
33275
33276 ol_cv_db_db_4_dot_1=no
33277 fi
33278 rm -f conftest.err conftest.$ac_objext \
33279       conftest$ac_exeext conftest.$ac_ext
33280
33281         LIBS="$ol_LIBS"
33282
33283 fi
33284 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33285 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33286
33287         if test $ol_cv_db_db_4_dot_1 = yes ; then
33288                 ol_cv_lib_db=-ldb-4.1
33289         fi
33290 fi
33291
33292                 if test $ol_cv_lib_db = no ; then
33293         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33294 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33295 if test "${ol_cv_db_db_4_1+set}" = set; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298
33299         ol_DB_LIB=-ldb-4-1
33300         ol_LIBS=$LIBS
33301         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33302
33303         cat >conftest.$ac_ext <<_ACEOF
33304 /* confdefs.h.  */
33305 _ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h.  */
33309
33310 #ifdef HAVE_DB_185_H
33311 # include <db_185.h>
33312 #else
33313 # include <db.h>
33314 #endif
33315
33316 #ifndef DB_VERSION_MAJOR
33317 # define DB_VERSION_MAJOR 1
33318 #endif
33319
33320 #ifndef NULL
33321 #define NULL ((void*)0)
33322 #endif
33323
33324 int
33325 main ()
33326 {
33327
33328 #if DB_VERSION_MAJOR > 1
33329         {
33330                 char *version;
33331                 int major, minor, patch;
33332
33333                 version = db_version( &major, &minor, &patch );
33334
33335                 if( major != DB_VERSION_MAJOR ||
33336                         minor < DB_VERSION_MINOR )
33337                 {
33338                         printf("Berkeley DB version mismatch\n"
33339                                 "\theader: %s\n\tlibrary: %s\n",
33340                                 DB_VERSION_STRING, version);
33341                         return 1;
33342                 }
33343         }
33344 #endif
33345
33346 #if DB_VERSION_MAJOR > 2
33347         db_env_create( NULL, 0 );
33348 #elif DB_VERSION_MAJOR > 1
33349         db_appexit( NULL );
33350 #else
33351         (void) dbopen( NULL, 0, 0, 0, NULL);
33352 #endif
33353
33354   ;
33355   return 0;
33356 }
33357 _ACEOF
33358 rm -f conftest.$ac_objext conftest$ac_exeext
33359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33360   (eval $ac_link) 2>conftest.er1
33361   ac_status=$?
33362   grep -v '^ *+' conftest.er1 >conftest.err
33363   rm -f conftest.er1
33364   cat conftest.err >&5
33365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366   (exit $ac_status); } &&
33367          { ac_try='test -z "$ac_c_werror_flag"
33368                          || test ! -s conftest.err'
33369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370   (eval $ac_try) 2>&5
33371   ac_status=$?
33372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373   (exit $ac_status); }; } &&
33374          { ac_try='test -s conftest$ac_exeext'
33375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376   (eval $ac_try) 2>&5
33377   ac_status=$?
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); }; }; then
33380   ol_cv_db_db_4_1=yes
33381 else
33382   echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33384
33385 ol_cv_db_db_4_1=no
33386 fi
33387 rm -f conftest.err conftest.$ac_objext \
33388       conftest$ac_exeext conftest.$ac_ext
33389
33390         LIBS="$ol_LIBS"
33391
33392 fi
33393 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33394 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33395
33396         if test $ol_cv_db_db_4_1 = yes ; then
33397                 ol_cv_lib_db=-ldb-4-1
33398         fi
33399 fi
33400
33401         fi
33402         if test $ol_cv_lib_db = no ; then
33403         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33404 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33405 if test "${ol_cv_db_db_4+set}" = set; then
33406   echo $ECHO_N "(cached) $ECHO_C" >&6
33407 else
33408
33409         ol_DB_LIB=-ldb-4
33410         ol_LIBS=$LIBS
33411         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33412
33413         cat >conftest.$ac_ext <<_ACEOF
33414 /* confdefs.h.  */
33415 _ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h.  */
33419
33420 #ifdef HAVE_DB_185_H
33421 # include <db_185.h>
33422 #else
33423 # include <db.h>
33424 #endif
33425
33426 #ifndef DB_VERSION_MAJOR
33427 # define DB_VERSION_MAJOR 1
33428 #endif
33429
33430 #ifndef NULL
33431 #define NULL ((void*)0)
33432 #endif
33433
33434 int
33435 main ()
33436 {
33437
33438 #if DB_VERSION_MAJOR > 1
33439         {
33440                 char *version;
33441                 int major, minor, patch;
33442
33443                 version = db_version( &major, &minor, &patch );
33444
33445                 if( major != DB_VERSION_MAJOR ||
33446                         minor < DB_VERSION_MINOR )
33447                 {
33448                         printf("Berkeley DB version mismatch\n"
33449                                 "\theader: %s\n\tlibrary: %s\n",
33450                                 DB_VERSION_STRING, version);
33451                         return 1;
33452                 }
33453         }
33454 #endif
33455
33456 #if DB_VERSION_MAJOR > 2
33457         db_env_create( NULL, 0 );
33458 #elif DB_VERSION_MAJOR > 1
33459         db_appexit( NULL );
33460 #else
33461         (void) dbopen( NULL, 0, 0, 0, NULL);
33462 #endif
33463
33464   ;
33465   return 0;
33466 }
33467 _ACEOF
33468 rm -f conftest.$ac_objext conftest$ac_exeext
33469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33470   (eval $ac_link) 2>conftest.er1
33471   ac_status=$?
33472   grep -v '^ *+' conftest.er1 >conftest.err
33473   rm -f conftest.er1
33474   cat conftest.err >&5
33475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476   (exit $ac_status); } &&
33477          { ac_try='test -z "$ac_c_werror_flag"
33478                          || test ! -s conftest.err'
33479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33480   (eval $ac_try) 2>&5
33481   ac_status=$?
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); }; } &&
33484          { ac_try='test -s conftest$ac_exeext'
33485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33486   (eval $ac_try) 2>&5
33487   ac_status=$?
33488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33489   (exit $ac_status); }; }; then
33490   ol_cv_db_db_4=yes
33491 else
33492   echo "$as_me: failed program was:" >&5
33493 sed 's/^/| /' conftest.$ac_ext >&5
33494
33495 ol_cv_db_db_4=no
33496 fi
33497 rm -f conftest.err conftest.$ac_objext \
33498       conftest$ac_exeext conftest.$ac_ext
33499
33500         LIBS="$ol_LIBS"
33501
33502 fi
33503 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33504 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33505
33506         if test $ol_cv_db_db_4 = yes ; then
33507                 ol_cv_lib_db=-ldb-4
33508         fi
33509 fi
33510
33511         if test $ol_cv_lib_db = no ; then
33512         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33513 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33514 if test "${ol_cv_db_db4+set}" = set; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517
33518         ol_DB_LIB=-ldb4
33519         ol_LIBS=$LIBS
33520         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33521
33522         cat >conftest.$ac_ext <<_ACEOF
33523 /* confdefs.h.  */
33524 _ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h.  */
33528
33529 #ifdef HAVE_DB_185_H
33530 # include <db_185.h>
33531 #else
33532 # include <db.h>
33533 #endif
33534
33535 #ifndef DB_VERSION_MAJOR
33536 # define DB_VERSION_MAJOR 1
33537 #endif
33538
33539 #ifndef NULL
33540 #define NULL ((void*)0)
33541 #endif
33542
33543 int
33544 main ()
33545 {
33546
33547 #if DB_VERSION_MAJOR > 1
33548         {
33549                 char *version;
33550                 int major, minor, patch;
33551
33552                 version = db_version( &major, &minor, &patch );
33553
33554                 if( major != DB_VERSION_MAJOR ||
33555                         minor < DB_VERSION_MINOR )
33556                 {
33557                         printf("Berkeley DB version mismatch\n"
33558                                 "\theader: %s\n\tlibrary: %s\n",
33559                                 DB_VERSION_STRING, version);
33560                         return 1;
33561                 }
33562         }
33563 #endif
33564
33565 #if DB_VERSION_MAJOR > 2
33566         db_env_create( NULL, 0 );
33567 #elif DB_VERSION_MAJOR > 1
33568         db_appexit( NULL );
33569 #else
33570         (void) dbopen( NULL, 0, 0, 0, NULL);
33571 #endif
33572
33573   ;
33574   return 0;
33575 }
33576 _ACEOF
33577 rm -f conftest.$ac_objext conftest$ac_exeext
33578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33579   (eval $ac_link) 2>conftest.er1
33580   ac_status=$?
33581   grep -v '^ *+' conftest.er1 >conftest.err
33582   rm -f conftest.er1
33583   cat conftest.err >&5
33584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585   (exit $ac_status); } &&
33586          { ac_try='test -z "$ac_c_werror_flag"
33587                          || test ! -s conftest.err'
33588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33589   (eval $ac_try) 2>&5
33590   ac_status=$?
33591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592   (exit $ac_status); }; } &&
33593          { ac_try='test -s conftest$ac_exeext'
33594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33595   (eval $ac_try) 2>&5
33596   ac_status=$?
33597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598   (exit $ac_status); }; }; then
33599   ol_cv_db_db4=yes
33600 else
33601   echo "$as_me: failed program was:" >&5
33602 sed 's/^/| /' conftest.$ac_ext >&5
33603
33604 ol_cv_db_db4=no
33605 fi
33606 rm -f conftest.err conftest.$ac_objext \
33607       conftest$ac_exeext conftest.$ac_ext
33608
33609         LIBS="$ol_LIBS"
33610
33611 fi
33612 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33613 echo "${ECHO_T}$ol_cv_db_db4" >&6
33614
33615         if test $ol_cv_db_db4 = yes ; then
33616                 ol_cv_lib_db=-ldb4
33617         fi
33618 fi
33619
33620         if test $ol_cv_lib_db = no ; then
33621         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33622 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33623 if test "${ol_cv_db_db+set}" = set; then
33624   echo $ECHO_N "(cached) $ECHO_C" >&6
33625 else
33626
33627         ol_DB_LIB=-ldb
33628         ol_LIBS=$LIBS
33629         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33630
33631         cat >conftest.$ac_ext <<_ACEOF
33632 /* confdefs.h.  */
33633 _ACEOF
33634 cat confdefs.h >>conftest.$ac_ext
33635 cat >>conftest.$ac_ext <<_ACEOF
33636 /* end confdefs.h.  */
33637
33638 #ifdef HAVE_DB_185_H
33639 # include <db_185.h>
33640 #else
33641 # include <db.h>
33642 #endif
33643
33644 #ifndef DB_VERSION_MAJOR
33645 # define DB_VERSION_MAJOR 1
33646 #endif
33647
33648 #ifndef NULL
33649 #define NULL ((void*)0)
33650 #endif
33651
33652 int
33653 main ()
33654 {
33655
33656 #if DB_VERSION_MAJOR > 1
33657         {
33658                 char *version;
33659                 int major, minor, patch;
33660
33661                 version = db_version( &major, &minor, &patch );
33662
33663                 if( major != DB_VERSION_MAJOR ||
33664                         minor < DB_VERSION_MINOR )
33665                 {
33666                         printf("Berkeley DB version mismatch\n"
33667                                 "\theader: %s\n\tlibrary: %s\n",
33668                                 DB_VERSION_STRING, version);
33669                         return 1;
33670                 }
33671         }
33672 #endif
33673
33674 #if DB_VERSION_MAJOR > 2
33675         db_env_create( NULL, 0 );
33676 #elif DB_VERSION_MAJOR > 1
33677         db_appexit( NULL );
33678 #else
33679         (void) dbopen( NULL, 0, 0, 0, NULL);
33680 #endif
33681
33682   ;
33683   return 0;
33684 }
33685 _ACEOF
33686 rm -f conftest.$ac_objext conftest$ac_exeext
33687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33688   (eval $ac_link) 2>conftest.er1
33689   ac_status=$?
33690   grep -v '^ *+' conftest.er1 >conftest.err
33691   rm -f conftest.er1
33692   cat conftest.err >&5
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); } &&
33695          { ac_try='test -z "$ac_c_werror_flag"
33696                          || test ! -s conftest.err'
33697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698   (eval $ac_try) 2>&5
33699   ac_status=$?
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); }; } &&
33702          { ac_try='test -s conftest$ac_exeext'
33703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704   (eval $ac_try) 2>&5
33705   ac_status=$?
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); }; }; then
33708   ol_cv_db_db=yes
33709 else
33710   echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33712
33713 ol_cv_db_db=no
33714 fi
33715 rm -f conftest.err conftest.$ac_objext \
33716       conftest$ac_exeext conftest.$ac_ext
33717
33718         LIBS="$ol_LIBS"
33719
33720 fi
33721 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33722 echo "${ECHO_T}$ol_cv_db_db" >&6
33723
33724         if test $ol_cv_db_db = yes ; then
33725                 ol_cv_lib_db=-ldb
33726         fi
33727 fi
33728
33729
33730 elif test $ol_cv_bdb_major = 3 ; then
33731         if test $ol_cv_lib_db = no ; then
33732         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33733 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33734 if test "${ol_cv_db_db3+set}" = set; then
33735   echo $ECHO_N "(cached) $ECHO_C" >&6
33736 else
33737
33738         ol_DB_LIB=-ldb3
33739         ol_LIBS=$LIBS
33740         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33741
33742         cat >conftest.$ac_ext <<_ACEOF
33743 /* confdefs.h.  */
33744 _ACEOF
33745 cat confdefs.h >>conftest.$ac_ext
33746 cat >>conftest.$ac_ext <<_ACEOF
33747 /* end confdefs.h.  */
33748
33749 #ifdef HAVE_DB_185_H
33750 # include <db_185.h>
33751 #else
33752 # include <db.h>
33753 #endif
33754
33755 #ifndef DB_VERSION_MAJOR
33756 # define DB_VERSION_MAJOR 1
33757 #endif
33758
33759 #ifndef NULL
33760 #define NULL ((void*)0)
33761 #endif
33762
33763 int
33764 main ()
33765 {
33766
33767 #if DB_VERSION_MAJOR > 1
33768         {
33769                 char *version;
33770                 int major, minor, patch;
33771
33772                 version = db_version( &major, &minor, &patch );
33773
33774                 if( major != DB_VERSION_MAJOR ||
33775                         minor < DB_VERSION_MINOR )
33776                 {
33777                         printf("Berkeley DB version mismatch\n"
33778                                 "\theader: %s\n\tlibrary: %s\n",
33779                                 DB_VERSION_STRING, version);
33780                         return 1;
33781                 }
33782         }
33783 #endif
33784
33785 #if DB_VERSION_MAJOR > 2
33786         db_env_create( NULL, 0 );
33787 #elif DB_VERSION_MAJOR > 1
33788         db_appexit( NULL );
33789 #else
33790         (void) dbopen( NULL, 0, 0, 0, NULL);
33791 #endif
33792
33793   ;
33794   return 0;
33795 }
33796 _ACEOF
33797 rm -f conftest.$ac_objext conftest$ac_exeext
33798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33799   (eval $ac_link) 2>conftest.er1
33800   ac_status=$?
33801   grep -v '^ *+' conftest.er1 >conftest.err
33802   rm -f conftest.er1
33803   cat conftest.err >&5
33804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805   (exit $ac_status); } &&
33806          { ac_try='test -z "$ac_c_werror_flag"
33807                          || test ! -s conftest.err'
33808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809   (eval $ac_try) 2>&5
33810   ac_status=$?
33811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812   (exit $ac_status); }; } &&
33813          { ac_try='test -s conftest$ac_exeext'
33814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815   (eval $ac_try) 2>&5
33816   ac_status=$?
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); }; }; then
33819   ol_cv_db_db3=yes
33820 else
33821   echo "$as_me: failed program was:" >&5
33822 sed 's/^/| /' conftest.$ac_ext >&5
33823
33824 ol_cv_db_db3=no
33825 fi
33826 rm -f conftest.err conftest.$ac_objext \
33827       conftest$ac_exeext conftest.$ac_ext
33828
33829         LIBS="$ol_LIBS"
33830
33831 fi
33832 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33833 echo "${ECHO_T}$ol_cv_db_db3" >&6
33834
33835         if test $ol_cv_db_db3 = yes ; then
33836                 ol_cv_lib_db=-ldb3
33837         fi
33838 fi
33839
33840         if test $ol_cv_lib_db = no ; then
33841         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33842 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33843 if test "${ol_cv_db_db_3+set}" = set; then
33844   echo $ECHO_N "(cached) $ECHO_C" >&6
33845 else
33846
33847         ol_DB_LIB=-ldb-3
33848         ol_LIBS=$LIBS
33849         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33850
33851         cat >conftest.$ac_ext <<_ACEOF
33852 /* confdefs.h.  */
33853 _ACEOF
33854 cat confdefs.h >>conftest.$ac_ext
33855 cat >>conftest.$ac_ext <<_ACEOF
33856 /* end confdefs.h.  */
33857
33858 #ifdef HAVE_DB_185_H
33859 # include <db_185.h>
33860 #else
33861 # include <db.h>
33862 #endif
33863
33864 #ifndef DB_VERSION_MAJOR
33865 # define DB_VERSION_MAJOR 1
33866 #endif
33867
33868 #ifndef NULL
33869 #define NULL ((void*)0)
33870 #endif
33871
33872 int
33873 main ()
33874 {
33875
33876 #if DB_VERSION_MAJOR > 1
33877         {
33878                 char *version;
33879                 int major, minor, patch;
33880
33881                 version = db_version( &major, &minor, &patch );
33882
33883                 if( major != DB_VERSION_MAJOR ||
33884                         minor < DB_VERSION_MINOR )
33885                 {
33886                         printf("Berkeley DB version mismatch\n"
33887                                 "\theader: %s\n\tlibrary: %s\n",
33888                                 DB_VERSION_STRING, version);
33889                         return 1;
33890                 }
33891         }
33892 #endif
33893
33894 #if DB_VERSION_MAJOR > 2
33895         db_env_create( NULL, 0 );
33896 #elif DB_VERSION_MAJOR > 1
33897         db_appexit( NULL );
33898 #else
33899         (void) dbopen( NULL, 0, 0, 0, NULL);
33900 #endif
33901
33902   ;
33903   return 0;
33904 }
33905 _ACEOF
33906 rm -f conftest.$ac_objext conftest$ac_exeext
33907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33908   (eval $ac_link) 2>conftest.er1
33909   ac_status=$?
33910   grep -v '^ *+' conftest.er1 >conftest.err
33911   rm -f conftest.er1
33912   cat conftest.err >&5
33913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33914   (exit $ac_status); } &&
33915          { ac_try='test -z "$ac_c_werror_flag"
33916                          || test ! -s conftest.err'
33917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33918   (eval $ac_try) 2>&5
33919   ac_status=$?
33920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921   (exit $ac_status); }; } &&
33922          { ac_try='test -s conftest$ac_exeext'
33923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924   (eval $ac_try) 2>&5
33925   ac_status=$?
33926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927   (exit $ac_status); }; }; then
33928   ol_cv_db_db_3=yes
33929 else
33930   echo "$as_me: failed program was:" >&5
33931 sed 's/^/| /' conftest.$ac_ext >&5
33932
33933 ol_cv_db_db_3=no
33934 fi
33935 rm -f conftest.err conftest.$ac_objext \
33936       conftest$ac_exeext conftest.$ac_ext
33937
33938         LIBS="$ol_LIBS"
33939
33940 fi
33941 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33942 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33943
33944         if test $ol_cv_db_db_3 = yes ; then
33945                 ol_cv_lib_db=-ldb-3
33946         fi
33947 fi
33948
33949
33950 elif test $ol_cv_bdb_major = 2 ; then
33951         if test $ol_cv_lib_db = no ; then
33952         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33953 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33954 if test "${ol_cv_db_db2+set}" = set; then
33955   echo $ECHO_N "(cached) $ECHO_C" >&6
33956 else
33957
33958         ol_DB_LIB=-ldb2
33959         ol_LIBS=$LIBS
33960         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33961
33962         cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h.  */
33964 _ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h.  */
33968
33969 #ifdef HAVE_DB_185_H
33970 # include <db_185.h>
33971 #else
33972 # include <db.h>
33973 #endif
33974
33975 #ifndef DB_VERSION_MAJOR
33976 # define DB_VERSION_MAJOR 1
33977 #endif
33978
33979 #ifndef NULL
33980 #define NULL ((void*)0)
33981 #endif
33982
33983 int
33984 main ()
33985 {
33986
33987 #if DB_VERSION_MAJOR > 1
33988         {
33989                 char *version;
33990                 int major, minor, patch;
33991
33992                 version = db_version( &major, &minor, &patch );
33993
33994                 if( major != DB_VERSION_MAJOR ||
33995                         minor < DB_VERSION_MINOR )
33996                 {
33997                         printf("Berkeley DB version mismatch\n"
33998                                 "\theader: %s\n\tlibrary: %s\n",
33999                                 DB_VERSION_STRING, version);
34000                         return 1;
34001                 }
34002         }
34003 #endif
34004
34005 #if DB_VERSION_MAJOR > 2
34006         db_env_create( NULL, 0 );
34007 #elif DB_VERSION_MAJOR > 1
34008         db_appexit( NULL );
34009 #else
34010         (void) dbopen( NULL, 0, 0, 0, NULL);
34011 #endif
34012
34013   ;
34014   return 0;
34015 }
34016 _ACEOF
34017 rm -f conftest.$ac_objext conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019   (eval $ac_link) 2>conftest.er1
34020   ac_status=$?
34021   grep -v '^ *+' conftest.er1 >conftest.err
34022   rm -f conftest.er1
34023   cat conftest.err >&5
34024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025   (exit $ac_status); } &&
34026          { ac_try='test -z "$ac_c_werror_flag"
34027                          || test ! -s conftest.err'
34028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029   (eval $ac_try) 2>&5
34030   ac_status=$?
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); }; } &&
34033          { ac_try='test -s conftest$ac_exeext'
34034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035   (eval $ac_try) 2>&5
34036   ac_status=$?
34037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038   (exit $ac_status); }; }; then
34039   ol_cv_db_db2=yes
34040 else
34041   echo "$as_me: failed program was:" >&5
34042 sed 's/^/| /' conftest.$ac_ext >&5
34043
34044 ol_cv_db_db2=no
34045 fi
34046 rm -f conftest.err conftest.$ac_objext \
34047       conftest$ac_exeext conftest.$ac_ext
34048
34049         LIBS="$ol_LIBS"
34050
34051 fi
34052 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
34053 echo "${ECHO_T}$ol_cv_db_db2" >&6
34054
34055         if test $ol_cv_db_db2 = yes ; then
34056                 ol_cv_lib_db=-ldb2
34057         fi
34058 fi
34059
34060         if test $ol_cv_lib_db = no ; then
34061         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
34062 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
34063 if test "${ol_cv_db_db_2+set}" = set; then
34064   echo $ECHO_N "(cached) $ECHO_C" >&6
34065 else
34066
34067         ol_DB_LIB=-ldb-2
34068         ol_LIBS=$LIBS
34069         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34070
34071         cat >conftest.$ac_ext <<_ACEOF
34072 /* confdefs.h.  */
34073 _ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h.  */
34077
34078 #ifdef HAVE_DB_185_H
34079 # include <db_185.h>
34080 #else
34081 # include <db.h>
34082 #endif
34083
34084 #ifndef DB_VERSION_MAJOR
34085 # define DB_VERSION_MAJOR 1
34086 #endif
34087
34088 #ifndef NULL
34089 #define NULL ((void*)0)
34090 #endif
34091
34092 int
34093 main ()
34094 {
34095
34096 #if DB_VERSION_MAJOR > 1
34097         {
34098                 char *version;
34099                 int major, minor, patch;
34100
34101                 version = db_version( &major, &minor, &patch );
34102
34103                 if( major != DB_VERSION_MAJOR ||
34104                         minor < DB_VERSION_MINOR )
34105                 {
34106                         printf("Berkeley DB version mismatch\n"
34107                                 "\theader: %s\n\tlibrary: %s\n",
34108                                 DB_VERSION_STRING, version);
34109                         return 1;
34110                 }
34111         }
34112 #endif
34113
34114 #if DB_VERSION_MAJOR > 2
34115         db_env_create( NULL, 0 );
34116 #elif DB_VERSION_MAJOR > 1
34117         db_appexit( NULL );
34118 #else
34119         (void) dbopen( NULL, 0, 0, 0, NULL);
34120 #endif
34121
34122   ;
34123   return 0;
34124 }
34125 _ACEOF
34126 rm -f conftest.$ac_objext conftest$ac_exeext
34127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34128   (eval $ac_link) 2>conftest.er1
34129   ac_status=$?
34130   grep -v '^ *+' conftest.er1 >conftest.err
34131   rm -f conftest.er1
34132   cat conftest.err >&5
34133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134   (exit $ac_status); } &&
34135          { ac_try='test -z "$ac_c_werror_flag"
34136                          || test ! -s conftest.err'
34137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138   (eval $ac_try) 2>&5
34139   ac_status=$?
34140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141   (exit $ac_status); }; } &&
34142          { ac_try='test -s conftest$ac_exeext'
34143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144   (eval $ac_try) 2>&5
34145   ac_status=$?
34146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147   (exit $ac_status); }; }; then
34148   ol_cv_db_db_2=yes
34149 else
34150   echo "$as_me: failed program was:" >&5
34151 sed 's/^/| /' conftest.$ac_ext >&5
34152
34153 ol_cv_db_db_2=no
34154 fi
34155 rm -f conftest.err conftest.$ac_objext \
34156       conftest$ac_exeext conftest.$ac_ext
34157
34158         LIBS="$ol_LIBS"
34159
34160 fi
34161 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34162 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34163
34164         if test $ol_cv_db_db_2 = yes ; then
34165                 ol_cv_lib_db=-ldb-2
34166         fi
34167 fi
34168
34169
34170 elif test $ol_cv_bdb_major = 1 ; then
34171         if test $ol_cv_lib_db = no ; then
34172         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34173 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34174 if test "${ol_cv_db_db1+set}" = set; then
34175   echo $ECHO_N "(cached) $ECHO_C" >&6
34176 else
34177
34178         ol_DB_LIB=-ldb1
34179         ol_LIBS=$LIBS
34180         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34181
34182         cat >conftest.$ac_ext <<_ACEOF
34183 /* confdefs.h.  */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h.  */
34188
34189 #ifdef HAVE_DB_185_H
34190 # include <db_185.h>
34191 #else
34192 # include <db.h>
34193 #endif
34194
34195 #ifndef DB_VERSION_MAJOR
34196 # define DB_VERSION_MAJOR 1
34197 #endif
34198
34199 #ifndef NULL
34200 #define NULL ((void*)0)
34201 #endif
34202
34203 int
34204 main ()
34205 {
34206
34207 #if DB_VERSION_MAJOR > 1
34208         {
34209                 char *version;
34210                 int major, minor, patch;
34211
34212                 version = db_version( &major, &minor, &patch );
34213
34214                 if( major != DB_VERSION_MAJOR ||
34215                         minor < DB_VERSION_MINOR )
34216                 {
34217                         printf("Berkeley DB version mismatch\n"
34218                                 "\theader: %s\n\tlibrary: %s\n",
34219                                 DB_VERSION_STRING, version);
34220                         return 1;
34221                 }
34222         }
34223 #endif
34224
34225 #if DB_VERSION_MAJOR > 2
34226         db_env_create( NULL, 0 );
34227 #elif DB_VERSION_MAJOR > 1
34228         db_appexit( NULL );
34229 #else
34230         (void) dbopen( NULL, 0, 0, 0, NULL);
34231 #endif
34232
34233   ;
34234   return 0;
34235 }
34236 _ACEOF
34237 rm -f conftest.$ac_objext conftest$ac_exeext
34238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34239   (eval $ac_link) 2>conftest.er1
34240   ac_status=$?
34241   grep -v '^ *+' conftest.er1 >conftest.err
34242   rm -f conftest.er1
34243   cat conftest.err >&5
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); } &&
34246          { ac_try='test -z "$ac_c_werror_flag"
34247                          || test ! -s conftest.err'
34248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249   (eval $ac_try) 2>&5
34250   ac_status=$?
34251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252   (exit $ac_status); }; } &&
34253          { ac_try='test -s conftest$ac_exeext'
34254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255   (eval $ac_try) 2>&5
34256   ac_status=$?
34257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258   (exit $ac_status); }; }; then
34259   ol_cv_db_db1=yes
34260 else
34261   echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34263
34264 ol_cv_db_db1=no
34265 fi
34266 rm -f conftest.err conftest.$ac_objext \
34267       conftest$ac_exeext conftest.$ac_ext
34268
34269         LIBS="$ol_LIBS"
34270
34271 fi
34272 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34273 echo "${ECHO_T}$ol_cv_db_db1" >&6
34274
34275         if test $ol_cv_db_db1 = yes ; then
34276                 ol_cv_lib_db=-ldb1
34277         fi
34278 fi
34279
34280         if test $ol_cv_lib_db = no ; then
34281         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34282 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34283 if test "${ol_cv_db_db_1+set}" = set; then
34284   echo $ECHO_N "(cached) $ECHO_C" >&6
34285 else
34286
34287         ol_DB_LIB=-ldb-1
34288         ol_LIBS=$LIBS
34289         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34290
34291         cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h.  */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h.  */
34297
34298 #ifdef HAVE_DB_185_H
34299 # include <db_185.h>
34300 #else
34301 # include <db.h>
34302 #endif
34303
34304 #ifndef DB_VERSION_MAJOR
34305 # define DB_VERSION_MAJOR 1
34306 #endif
34307
34308 #ifndef NULL
34309 #define NULL ((void*)0)
34310 #endif
34311
34312 int
34313 main ()
34314 {
34315
34316 #if DB_VERSION_MAJOR > 1
34317         {
34318                 char *version;
34319                 int major, minor, patch;
34320
34321                 version = db_version( &major, &minor, &patch );
34322
34323                 if( major != DB_VERSION_MAJOR ||
34324                         minor < DB_VERSION_MINOR )
34325                 {
34326                         printf("Berkeley DB version mismatch\n"
34327                                 "\theader: %s\n\tlibrary: %s\n",
34328                                 DB_VERSION_STRING, version);
34329                         return 1;
34330                 }
34331         }
34332 #endif
34333
34334 #if DB_VERSION_MAJOR > 2
34335         db_env_create( NULL, 0 );
34336 #elif DB_VERSION_MAJOR > 1
34337         db_appexit( NULL );
34338 #else
34339         (void) dbopen( NULL, 0, 0, 0, NULL);
34340 #endif
34341
34342   ;
34343   return 0;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext conftest$ac_exeext
34347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34348   (eval $ac_link) 2>conftest.er1
34349   ac_status=$?
34350   grep -v '^ *+' conftest.er1 >conftest.err
34351   rm -f conftest.er1
34352   cat conftest.err >&5
34353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); } &&
34355          { ac_try='test -z "$ac_c_werror_flag"
34356                          || test ! -s conftest.err'
34357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358   (eval $ac_try) 2>&5
34359   ac_status=$?
34360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361   (exit $ac_status); }; } &&
34362          { ac_try='test -s conftest$ac_exeext'
34363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364   (eval $ac_try) 2>&5
34365   ac_status=$?
34366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367   (exit $ac_status); }; }; then
34368   ol_cv_db_db_1=yes
34369 else
34370   echo "$as_me: failed program was:" >&5
34371 sed 's/^/| /' conftest.$ac_ext >&5
34372
34373 ol_cv_db_db_1=no
34374 fi
34375 rm -f conftest.err conftest.$ac_objext \
34376       conftest$ac_exeext conftest.$ac_ext
34377
34378         LIBS="$ol_LIBS"
34379
34380 fi
34381 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34382 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34383
34384         if test $ol_cv_db_db_1 = yes ; then
34385                 ol_cv_lib_db=-ldb-1
34386         fi
34387 fi
34388
34389 fi
34390 if test $ol_cv_lib_db = no ; then
34391         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34392 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34393 if test "${ol_cv_db_none+set}" = set; then
34394   echo $ECHO_N "(cached) $ECHO_C" >&6
34395 else
34396
34397         ol_DB_LIB=
34398         ol_LIBS=$LIBS
34399         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34400
34401         cat >conftest.$ac_ext <<_ACEOF
34402 /* confdefs.h.  */
34403 _ACEOF
34404 cat confdefs.h >>conftest.$ac_ext
34405 cat >>conftest.$ac_ext <<_ACEOF
34406 /* end confdefs.h.  */
34407
34408 #ifdef HAVE_DB_185_H
34409 # include <db_185.h>
34410 #else
34411 # include <db.h>
34412 #endif
34413
34414 #ifndef DB_VERSION_MAJOR
34415 # define DB_VERSION_MAJOR 1
34416 #endif
34417
34418 #ifndef NULL
34419 #define NULL ((void*)0)
34420 #endif
34421
34422 int
34423 main ()
34424 {
34425
34426 #if DB_VERSION_MAJOR > 1
34427         {
34428                 char *version;
34429                 int major, minor, patch;
34430
34431                 version = db_version( &major, &minor, &patch );
34432
34433                 if( major != DB_VERSION_MAJOR ||
34434                         minor < DB_VERSION_MINOR )
34435                 {
34436                         printf("Berkeley DB version mismatch\n"
34437                                 "\theader: %s\n\tlibrary: %s\n",
34438                                 DB_VERSION_STRING, version);
34439                         return 1;
34440                 }
34441         }
34442 #endif
34443
34444 #if DB_VERSION_MAJOR > 2
34445         db_env_create( NULL, 0 );
34446 #elif DB_VERSION_MAJOR > 1
34447         db_appexit( NULL );
34448 #else
34449         (void) dbopen( NULL, 0, 0, 0, NULL);
34450 #endif
34451
34452   ;
34453   return 0;
34454 }
34455 _ACEOF
34456 rm -f conftest.$ac_objext conftest$ac_exeext
34457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34458   (eval $ac_link) 2>conftest.er1
34459   ac_status=$?
34460   grep -v '^ *+' conftest.er1 >conftest.err
34461   rm -f conftest.er1
34462   cat conftest.err >&5
34463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464   (exit $ac_status); } &&
34465          { ac_try='test -z "$ac_c_werror_flag"
34466                          || test ! -s conftest.err'
34467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468   (eval $ac_try) 2>&5
34469   ac_status=$?
34470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471   (exit $ac_status); }; } &&
34472          { ac_try='test -s conftest$ac_exeext'
34473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34474   (eval $ac_try) 2>&5
34475   ac_status=$?
34476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477   (exit $ac_status); }; }; then
34478   ol_cv_db_none=yes
34479 else
34480   echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34482
34483 ol_cv_db_none=no
34484 fi
34485 rm -f conftest.err conftest.$ac_objext \
34486       conftest$ac_exeext conftest.$ac_ext
34487
34488         LIBS="$ol_LIBS"
34489
34490 fi
34491 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34492 echo "${ECHO_T}$ol_cv_db_none" >&6
34493
34494         if test $ol_cv_db_none = yes ; then
34495                 ol_cv_lib_db=yes
34496         fi
34497 fi
34498
34499
34500         if test "$ol_cv_lib_db" != no ; then
34501                 ol_cv_berkeley_db=yes
34502                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34503 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34504 if test "${ol_cv_berkeley_db_version+set}" = set; then
34505   echo $ECHO_N "(cached) $ECHO_C" >&6
34506 else
34507
34508         ol_LIBS="$LIBS"
34509         LIBS="$LTHREAD_LIBS $LIBS"
34510         if test $ol_cv_lib_db != yes ; then
34511                 LIBS="$ol_cv_lib_db $LIBS"
34512         fi
34513
34514         if test "$cross_compiling" = yes; then
34515   ol_cv_berkeley_db_version=cross
34516 else
34517   cat >conftest.$ac_ext <<_ACEOF
34518 /* confdefs.h.  */
34519 _ACEOF
34520 cat confdefs.h >>conftest.$ac_ext
34521 cat >>conftest.$ac_ext <<_ACEOF
34522 /* end confdefs.h.  */
34523
34524 #ifdef HAVE_DB_185_H
34525         choke me;
34526 #else
34527 #include <db.h>
34528 #endif
34529 #ifndef DB_VERSION_MAJOR
34530 # define DB_VERSION_MAJOR 1
34531 #endif
34532 #ifndef NULL
34533 #define NULL ((void *)0)
34534 #endif
34535 main()
34536 {
34537 #if DB_VERSION_MAJOR > 1
34538         char *version;
34539         int major, minor, patch;
34540
34541         version = db_version( &major, &minor, &patch );
34542
34543         if( major != DB_VERSION_MAJOR ||
34544                 minor != DB_VERSION_MINOR ||
34545                 patch != DB_VERSION_PATCH )
34546         {
34547                 printf("Berkeley DB version mismatch\n"
34548                         "\theader: %s\n\tlibrary: %s\n",
34549                         DB_VERSION_STRING, version);
34550                 return 1;
34551         }
34552 #endif
34553
34554         return 0;
34555 }
34556 _ACEOF
34557 rm -f conftest$ac_exeext
34558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34559   (eval $ac_link) 2>&5
34560   ac_status=$?
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564   (eval $ac_try) 2>&5
34565   ac_status=$?
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); }; }; then
34568   ol_cv_berkeley_db_version=yes
34569 else
34570   echo "$as_me: program exited with status $ac_status" >&5
34571 echo "$as_me: failed program was:" >&5
34572 sed 's/^/| /' conftest.$ac_ext >&5
34573
34574 ( exit $ac_status )
34575 ol_cv_berkeley_db_version=no
34576 fi
34577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34578 fi
34579
34580         LIBS="$ol_LIBS"
34581
34582 fi
34583 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34584 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34585
34586         if test $ol_cv_berkeley_db_version = no ; then
34587                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34588 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34589    { (exit 1); exit 1; }; }
34590         fi
34591
34592                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34593 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34594 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34595   echo $ECHO_N "(cached) $ECHO_C" >&6
34596 else
34597
34598         ol_LIBS="$LIBS"
34599         LIBS="$LTHREAD_LIBS $LIBS"
34600         if test $ol_cv_lib_db != yes ; then
34601                 LIBS="$ol_cv_lib_db $LIBS"
34602         fi
34603
34604         if test "$cross_compiling" = yes; then
34605   ol_cv_berkeley_db_thread=cross
34606 else
34607   cat >conftest.$ac_ext <<_ACEOF
34608 /* confdefs.h.  */
34609 _ACEOF
34610 cat confdefs.h >>conftest.$ac_ext
34611 cat >>conftest.$ac_ext <<_ACEOF
34612 /* end confdefs.h.  */
34613
34614 #ifdef HAVE_DB_185_H
34615         choke me;
34616 #else
34617 #include <db.h>
34618 #endif
34619 #ifndef NULL
34620 #define NULL ((void *)0)
34621 #endif
34622 main()
34623 {
34624         int rc;
34625         u_int32_t flags = DB_CREATE |
34626 #ifdef DB_PRIVATE
34627                 DB_PRIVATE |
34628 #endif
34629                 DB_THREAD;
34630
34631 #if DB_VERSION_MAJOR > 2
34632         DB_ENV *env = NULL;
34633
34634         rc = db_env_create( &env, 0 );
34635
34636         flags |= DB_INIT_MPOOL;
34637 #ifdef DB_MPOOL_PRIVATE
34638         flags |= DB_MPOOL_PRIVATE;
34639 #endif
34640
34641         if( rc ) {
34642                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34643                 return rc;
34644         }
34645
34646 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34647         rc = env->open( env, NULL, flags, 0 );
34648 #else
34649         rc = env->open( env, NULL, NULL, flags, 0 );
34650 #endif
34651
34652         if ( rc == 0 ) {
34653                 rc = env->close( env, 0 );
34654         }
34655
34656         if( rc ) {
34657                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34658                 return rc;
34659         }
34660
34661 #else
34662         DB_ENV env;
34663         memset( &env, '\0', sizeof(env) );
34664
34665         rc = db_appinit( NULL, NULL, &env, flags );
34666
34667         if( rc == 0 ) {
34668                 db_appexit( &env );
34669         }
34670
34671         unlink("__db_mpool.share");
34672         unlink("__db_lock.share");
34673 #endif
34674
34675         return rc;
34676 }
34677 _ACEOF
34678 rm -f conftest$ac_exeext
34679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680   (eval $ac_link) 2>&5
34681   ac_status=$?
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685   (eval $ac_try) 2>&5
34686   ac_status=$?
34687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688   (exit $ac_status); }; }; then
34689   ol_cv_berkeley_db_thread=yes
34690 else
34691   echo "$as_me: program exited with status $ac_status" >&5
34692 echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34694
34695 ( exit $ac_status )
34696 ol_cv_berkeley_db_thread=no
34697 fi
34698 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34699 fi
34700
34701         LIBS="$ol_LIBS"
34702
34703 fi
34704 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34705 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34706
34707         if test $ol_cv_berkeley_db_thread != no ; then
34708
34709 cat >>confdefs.h <<\_ACEOF
34710 #define HAVE_BERKELEY_DB_THREAD 1
34711 _ACEOF
34712
34713         fi
34714
34715         fi
34716 fi
34717
34718         fi
34719
34720         if test $ol_cv_berkeley_db != no ; then
34721
34722 cat >>confdefs.h <<\_ACEOF
34723 #define HAVE_BERKELEY_DB 1
34724 _ACEOF
34725
34726
34727                 ol_link_ldbm=berkeley
34728                 ol_enable_ldbm_api=berkeley
34729
34730                 if test $ol_enable_ldbm_type = hash ; then
34731
34732 cat >>confdefs.h <<\_ACEOF
34733 #define LDBM_USE_DBHASH 1
34734 _ACEOF
34735
34736                 else
34737
34738 cat >>confdefs.h <<\_ACEOF
34739 #define LDBM_USE_DBBTREE 1
34740 _ACEOF
34741
34742                 fi
34743
34744                                                 if test $ol_cv_lib_db != yes ; then
34745                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34746                 fi
34747         fi
34748         ;;
34749 esac
34750
34751 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34752         if test $ol_link_ldbm != berkeley ; then
34753                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34754 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34755    { (exit 1); exit 1; }; }
34756         else
34757                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34758 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34759 if test "${ol_cv_bdb_compat+set}" = set; then
34760   echo $ECHO_N "(cached) $ECHO_C" >&6
34761 else
34762
34763         cat >conftest.$ac_ext <<_ACEOF
34764 /* confdefs.h.  */
34765 _ACEOF
34766 cat confdefs.h >>conftest.$ac_ext
34767 cat >>conftest.$ac_ext <<_ACEOF
34768 /* end confdefs.h.  */
34769
34770 #include <db.h>
34771
34772  /* this check could be improved */
34773 #ifndef DB_VERSION_MAJOR
34774 #       define DB_VERSION_MAJOR 1
34775 #endif
34776 #ifndef DB_VERSION_MINOR
34777 #       define DB_VERSION_MINOR 0
34778 #endif
34779
34780 /* require 4.2 or later */
34781 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34782         __db_version_compat
34783 #endif
34784
34785 _ACEOF
34786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34787   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34788   ol_cv_bdb_compat=yes
34789 else
34790   ol_cv_bdb_compat=no
34791 fi
34792 rm -f conftest*
34793
34794 fi
34795 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34796 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34797
34798
34799                 if test $ol_cv_bdb_compat != yes ; then
34800                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34801 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34802    { (exit 1); exit 1; }; }
34803                 fi
34804         fi
34805 fi
34806
34807 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34808         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34809 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34810         ol_enable_ldbm_api=none
34811 fi
34812
34813 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34814         echo "$as_me:$LINENO: checking for MDBM library" >&5
34815 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34816 if test "${ol_cv_lib_mdbm+set}" = set; then
34817   echo $ECHO_N "(cached) $ECHO_C" >&6
34818 else
34819         ol_LIBS="$LIBS"
34820         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34821 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34822 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34823   echo $ECHO_N "(cached) $ECHO_C" >&6
34824 else
34825   cat >conftest.$ac_ext <<_ACEOF
34826 /* confdefs.h.  */
34827 _ACEOF
34828 cat confdefs.h >>conftest.$ac_ext
34829 cat >>conftest.$ac_ext <<_ACEOF
34830 /* end confdefs.h.  */
34831 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34833 #define mdbm_set_chain innocuous_mdbm_set_chain
34834
34835 /* System header to define __stub macros and hopefully few prototypes,
34836     which can conflict with char mdbm_set_chain (); below.
34837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34838     <limits.h> exists even on freestanding compilers.  */
34839
34840 #ifdef __STDC__
34841 # include <limits.h>
34842 #else
34843 # include <assert.h>
34844 #endif
34845
34846 #undef mdbm_set_chain
34847
34848 /* Override any gcc2 internal prototype to avoid an error.  */
34849 #ifdef __cplusplus
34850 extern "C"
34851 {
34852 #endif
34853 /* We use char because int might match the return type of a gcc2
34854    builtin and then its argument prototype would still apply.  */
34855 char mdbm_set_chain ();
34856 /* The GNU C library defines this for functions which it implements
34857     to always fail with ENOSYS.  Some functions are actually named
34858     something starting with __ and the normal name is an alias.  */
34859 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34860 choke me
34861 #else
34862 char (*f) () = mdbm_set_chain;
34863 #endif
34864 #ifdef __cplusplus
34865 }
34866 #endif
34867
34868 int
34869 main ()
34870 {
34871 return f != mdbm_set_chain;
34872   ;
34873   return 0;
34874 }
34875 _ACEOF
34876 rm -f conftest.$ac_objext conftest$ac_exeext
34877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34878   (eval $ac_link) 2>conftest.er1
34879   ac_status=$?
34880   grep -v '^ *+' conftest.er1 >conftest.err
34881   rm -f conftest.er1
34882   cat conftest.err >&5
34883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34884   (exit $ac_status); } &&
34885          { ac_try='test -z "$ac_c_werror_flag"
34886                          || test ! -s conftest.err'
34887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34888   (eval $ac_try) 2>&5
34889   ac_status=$?
34890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34891   (exit $ac_status); }; } &&
34892          { ac_try='test -s conftest$ac_exeext'
34893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894   (eval $ac_try) 2>&5
34895   ac_status=$?
34896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897   (exit $ac_status); }; }; then
34898   ac_cv_func_mdbm_set_chain=yes
34899 else
34900   echo "$as_me: failed program was:" >&5
34901 sed 's/^/| /' conftest.$ac_ext >&5
34902
34903 ac_cv_func_mdbm_set_chain=no
34904 fi
34905 rm -f conftest.err conftest.$ac_objext \
34906       conftest$ac_exeext conftest.$ac_ext
34907 fi
34908 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34909 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34910 if test $ac_cv_func_mdbm_set_chain = yes; then
34911   ol_cv_lib_mdbm=yes
34912 else
34913
34914                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34915 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34916 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34917   echo $ECHO_N "(cached) $ECHO_C" >&6
34918 else
34919   ac_check_lib_save_LIBS=$LIBS
34920 LIBS="-lmdbm  $LIBS"
34921 cat >conftest.$ac_ext <<_ACEOF
34922 /* confdefs.h.  */
34923 _ACEOF
34924 cat confdefs.h >>conftest.$ac_ext
34925 cat >>conftest.$ac_ext <<_ACEOF
34926 /* end confdefs.h.  */
34927
34928 /* Override any gcc2 internal prototype to avoid an error.  */
34929 #ifdef __cplusplus
34930 extern "C"
34931 #endif
34932 /* We use char because int might match the return type of a gcc2
34933    builtin and then its argument prototype would still apply.  */
34934 char mdbm_set_chain ();
34935 int
34936 main ()
34937 {
34938 mdbm_set_chain ();
34939   ;
34940   return 0;
34941 }
34942 _ACEOF
34943 rm -f conftest.$ac_objext conftest$ac_exeext
34944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34945   (eval $ac_link) 2>conftest.er1
34946   ac_status=$?
34947   grep -v '^ *+' conftest.er1 >conftest.err
34948   rm -f conftest.er1
34949   cat conftest.err >&5
34950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951   (exit $ac_status); } &&
34952          { ac_try='test -z "$ac_c_werror_flag"
34953                          || test ! -s conftest.err'
34954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34955   (eval $ac_try) 2>&5
34956   ac_status=$?
34957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958   (exit $ac_status); }; } &&
34959          { ac_try='test -s conftest$ac_exeext'
34960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34961   (eval $ac_try) 2>&5
34962   ac_status=$?
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); }; }; then
34965   ac_cv_lib_mdbm_mdbm_set_chain=yes
34966 else
34967   echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.$ac_ext >&5
34969
34970 ac_cv_lib_mdbm_mdbm_set_chain=no
34971 fi
34972 rm -f conftest.err conftest.$ac_objext \
34973       conftest$ac_exeext conftest.$ac_ext
34974 LIBS=$ac_check_lib_save_LIBS
34975 fi
34976 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34977 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34978 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34979   ol_cv_lib_mdbm=-lmdbm
34980 else
34981   ol_cv_lib_mdbm=no
34982 fi
34983
34984
34985 fi
34986
34987         LIBS="$ol_LIBS"
34988
34989 fi
34990 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34991 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34992
34993
34994
34995 for ac_header in mdbm.h
34996 do
34997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34999   echo "$as_me:$LINENO: checking for $ac_header" >&5
35000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35001 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 fi
35004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35006 else
35007   # Is the header compilable?
35008 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35010 cat >conftest.$ac_ext <<_ACEOF
35011 /* confdefs.h.  */
35012 _ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h.  */
35016 $ac_includes_default
35017 #include <$ac_header>
35018 _ACEOF
35019 rm -f conftest.$ac_objext
35020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35021   (eval $ac_compile) 2>conftest.er1
35022   ac_status=$?
35023   grep -v '^ *+' conftest.er1 >conftest.err
35024   rm -f conftest.er1
35025   cat conftest.err >&5
35026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35027   (exit $ac_status); } &&
35028          { ac_try='test -z "$ac_c_werror_flag"
35029                          || test ! -s conftest.err'
35030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031   (eval $ac_try) 2>&5
35032   ac_status=$?
35033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034   (exit $ac_status); }; } &&
35035          { ac_try='test -s conftest.$ac_objext'
35036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037   (eval $ac_try) 2>&5
35038   ac_status=$?
35039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040   (exit $ac_status); }; }; then
35041   ac_header_compiler=yes
35042 else
35043   echo "$as_me: failed program was:" >&5
35044 sed 's/^/| /' conftest.$ac_ext >&5
35045
35046 ac_header_compiler=no
35047 fi
35048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35049 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35050 echo "${ECHO_T}$ac_header_compiler" >&6
35051
35052 # Is the header present?
35053 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35055 cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h.  */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h.  */
35061 #include <$ac_header>
35062 _ACEOF
35063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35065   ac_status=$?
35066   grep -v '^ *+' conftest.er1 >conftest.err
35067   rm -f conftest.er1
35068   cat conftest.err >&5
35069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070   (exit $ac_status); } >/dev/null; then
35071   if test -s conftest.err; then
35072     ac_cpp_err=$ac_c_preproc_warn_flag
35073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35074   else
35075     ac_cpp_err=
35076   fi
35077 else
35078   ac_cpp_err=yes
35079 fi
35080 if test -z "$ac_cpp_err"; then
35081   ac_header_preproc=yes
35082 else
35083   echo "$as_me: failed program was:" >&5
35084 sed 's/^/| /' conftest.$ac_ext >&5
35085
35086   ac_header_preproc=no
35087 fi
35088 rm -f conftest.err conftest.$ac_ext
35089 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35090 echo "${ECHO_T}$ac_header_preproc" >&6
35091
35092 # So?  What about this header?
35093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35094   yes:no: )
35095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35099     ac_header_preproc=yes
35100     ;;
35101   no:yes:* )
35102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35114     (
35115       cat <<\_ASBOX
35116 ## ------------------------------------------ ##
35117 ## Report this to the AC_PACKAGE_NAME lists.  ##
35118 ## ------------------------------------------ ##
35119 _ASBOX
35120     ) |
35121       sed "s/^/$as_me: WARNING:     /" >&2
35122     ;;
35123 esac
35124 echo "$as_me:$LINENO: checking for $ac_header" >&5
35125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35127   echo $ECHO_N "(cached) $ECHO_C" >&6
35128 else
35129   eval "$as_ac_Header=\$ac_header_preproc"
35130 fi
35131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35133
35134 fi
35135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35136   cat >>confdefs.h <<_ACEOF
35137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35138 _ACEOF
35139
35140 fi
35141
35142 done
35143
35144  echo "$as_me:$LINENO: checking for db" >&5
35145 echo $ECHO_N "checking for db... $ECHO_C" >&6
35146 if test "${ol_cv_mdbm+set}" = set; then
35147   echo $ECHO_N "(cached) $ECHO_C" >&6
35148 else
35149
35150         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35151                 ol_cv_mdbm=no
35152         else
35153                 ol_cv_mdbm=yes
35154         fi
35155
35156 fi
35157 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35158 echo "${ECHO_T}$ol_cv_mdbm" >&6
35159  if test $ol_cv_mdbm = yes ; then
35160
35161 cat >>confdefs.h <<\_ACEOF
35162 #define HAVE_MDBM 1
35163 _ACEOF
35164
35165  fi
35166
35167
35168         if test $ol_cv_mdbm = yes ; then
35169                 ol_link_ldbm=mdbm
35170                 ol_enable_ldbm_api=mdbm
35171                 if test $ol_cv_lib_mdbm != yes ; then
35172                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35173                 fi
35174         fi
35175 fi
35176
35177 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35178         echo "$as_me:$LINENO: checking for GDBM library" >&5
35179 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35180 if test "${ol_cv_lib_gdbm+set}" = set; then
35181   echo $ECHO_N "(cached) $ECHO_C" >&6
35182 else
35183         ol_LIBS="$LIBS"
35184         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35185 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35186 if test "${ac_cv_func_gdbm_open+set}" = set; then
35187   echo $ECHO_N "(cached) $ECHO_C" >&6
35188 else
35189   cat >conftest.$ac_ext <<_ACEOF
35190 /* confdefs.h.  */
35191 _ACEOF
35192 cat confdefs.h >>conftest.$ac_ext
35193 cat >>conftest.$ac_ext <<_ACEOF
35194 /* end confdefs.h.  */
35195 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35197 #define gdbm_open innocuous_gdbm_open
35198
35199 /* System header to define __stub macros and hopefully few prototypes,
35200     which can conflict with char gdbm_open (); below.
35201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35202     <limits.h> exists even on freestanding compilers.  */
35203
35204 #ifdef __STDC__
35205 # include <limits.h>
35206 #else
35207 # include <assert.h>
35208 #endif
35209
35210 #undef gdbm_open
35211
35212 /* Override any gcc2 internal prototype to avoid an error.  */
35213 #ifdef __cplusplus
35214 extern "C"
35215 {
35216 #endif
35217 /* We use char because int might match the return type of a gcc2
35218    builtin and then its argument prototype would still apply.  */
35219 char gdbm_open ();
35220 /* The GNU C library defines this for functions which it implements
35221     to always fail with ENOSYS.  Some functions are actually named
35222     something starting with __ and the normal name is an alias.  */
35223 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35224 choke me
35225 #else
35226 char (*f) () = gdbm_open;
35227 #endif
35228 #ifdef __cplusplus
35229 }
35230 #endif
35231
35232 int
35233 main ()
35234 {
35235 return f != gdbm_open;
35236   ;
35237   return 0;
35238 }
35239 _ACEOF
35240 rm -f conftest.$ac_objext conftest$ac_exeext
35241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35242   (eval $ac_link) 2>conftest.er1
35243   ac_status=$?
35244   grep -v '^ *+' conftest.er1 >conftest.err
35245   rm -f conftest.er1
35246   cat conftest.err >&5
35247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248   (exit $ac_status); } &&
35249          { ac_try='test -z "$ac_c_werror_flag"
35250                          || test ! -s conftest.err'
35251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252   (eval $ac_try) 2>&5
35253   ac_status=$?
35254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255   (exit $ac_status); }; } &&
35256          { ac_try='test -s conftest$ac_exeext'
35257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35258   (eval $ac_try) 2>&5
35259   ac_status=$?
35260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261   (exit $ac_status); }; }; then
35262   ac_cv_func_gdbm_open=yes
35263 else
35264   echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.$ac_ext >&5
35266
35267 ac_cv_func_gdbm_open=no
35268 fi
35269 rm -f conftest.err conftest.$ac_objext \
35270       conftest$ac_exeext conftest.$ac_ext
35271 fi
35272 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35273 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35274 if test $ac_cv_func_gdbm_open = yes; then
35275   ol_cv_lib_gdbm=yes
35276 else
35277
35278                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35279 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35280 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35281   echo $ECHO_N "(cached) $ECHO_C" >&6
35282 else
35283   ac_check_lib_save_LIBS=$LIBS
35284 LIBS="-lgdbm  $LIBS"
35285 cat >conftest.$ac_ext <<_ACEOF
35286 /* confdefs.h.  */
35287 _ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h.  */
35291
35292 /* Override any gcc2 internal prototype to avoid an error.  */
35293 #ifdef __cplusplus
35294 extern "C"
35295 #endif
35296 /* We use char because int might match the return type of a gcc2
35297    builtin and then its argument prototype would still apply.  */
35298 char gdbm_open ();
35299 int
35300 main ()
35301 {
35302 gdbm_open ();
35303   ;
35304   return 0;
35305 }
35306 _ACEOF
35307 rm -f conftest.$ac_objext conftest$ac_exeext
35308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35309   (eval $ac_link) 2>conftest.er1
35310   ac_status=$?
35311   grep -v '^ *+' conftest.er1 >conftest.err
35312   rm -f conftest.er1
35313   cat conftest.err >&5
35314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315   (exit $ac_status); } &&
35316          { ac_try='test -z "$ac_c_werror_flag"
35317                          || test ! -s conftest.err'
35318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319   (eval $ac_try) 2>&5
35320   ac_status=$?
35321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322   (exit $ac_status); }; } &&
35323          { ac_try='test -s conftest$ac_exeext'
35324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325   (eval $ac_try) 2>&5
35326   ac_status=$?
35327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328   (exit $ac_status); }; }; then
35329   ac_cv_lib_gdbm_gdbm_open=yes
35330 else
35331   echo "$as_me: failed program was:" >&5
35332 sed 's/^/| /' conftest.$ac_ext >&5
35333
35334 ac_cv_lib_gdbm_gdbm_open=no
35335 fi
35336 rm -f conftest.err conftest.$ac_objext \
35337       conftest$ac_exeext conftest.$ac_ext
35338 LIBS=$ac_check_lib_save_LIBS
35339 fi
35340 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35341 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35342 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35343   ol_cv_lib_gdbm=-lgdbm
35344 else
35345   ol_cv_lib_gdbm=no
35346 fi
35347
35348
35349 fi
35350
35351         LIBS="$ol_LIBS"
35352
35353 fi
35354 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35355 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35356
35357
35358
35359 for ac_header in gdbm.h
35360 do
35361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35363   echo "$as_me:$LINENO: checking for $ac_header" >&5
35364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35366   echo $ECHO_N "(cached) $ECHO_C" >&6
35367 fi
35368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35370 else
35371   # Is the header compilable?
35372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35374 cat >conftest.$ac_ext <<_ACEOF
35375 /* confdefs.h.  */
35376 _ACEOF
35377 cat confdefs.h >>conftest.$ac_ext
35378 cat >>conftest.$ac_ext <<_ACEOF
35379 /* end confdefs.h.  */
35380 $ac_includes_default
35381 #include <$ac_header>
35382 _ACEOF
35383 rm -f conftest.$ac_objext
35384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35385   (eval $ac_compile) 2>conftest.er1
35386   ac_status=$?
35387   grep -v '^ *+' conftest.er1 >conftest.err
35388   rm -f conftest.er1
35389   cat conftest.err >&5
35390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391   (exit $ac_status); } &&
35392          { ac_try='test -z "$ac_c_werror_flag"
35393                          || test ! -s conftest.err'
35394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35395   (eval $ac_try) 2>&5
35396   ac_status=$?
35397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398   (exit $ac_status); }; } &&
35399          { ac_try='test -s conftest.$ac_objext'
35400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35401   (eval $ac_try) 2>&5
35402   ac_status=$?
35403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404   (exit $ac_status); }; }; then
35405   ac_header_compiler=yes
35406 else
35407   echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35409
35410 ac_header_compiler=no
35411 fi
35412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35414 echo "${ECHO_T}$ac_header_compiler" >&6
35415
35416 # Is the header present?
35417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35419 cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425 #include <$ac_header>
35426 _ACEOF
35427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35428   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35429   ac_status=$?
35430   grep -v '^ *+' conftest.er1 >conftest.err
35431   rm -f conftest.er1
35432   cat conftest.err >&5
35433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434   (exit $ac_status); } >/dev/null; then
35435   if test -s conftest.err; then
35436     ac_cpp_err=$ac_c_preproc_warn_flag
35437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35438   else
35439     ac_cpp_err=
35440   fi
35441 else
35442   ac_cpp_err=yes
35443 fi
35444 if test -z "$ac_cpp_err"; then
35445   ac_header_preproc=yes
35446 else
35447   echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35449
35450   ac_header_preproc=no
35451 fi
35452 rm -f conftest.err conftest.$ac_ext
35453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35454 echo "${ECHO_T}$ac_header_preproc" >&6
35455
35456 # So?  What about this header?
35457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35458   yes:no: )
35459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35463     ac_header_preproc=yes
35464     ;;
35465   no:yes:* )
35466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35478     (
35479       cat <<\_ASBOX
35480 ## ------------------------------------------ ##
35481 ## Report this to the AC_PACKAGE_NAME lists.  ##
35482 ## ------------------------------------------ ##
35483 _ASBOX
35484     ) |
35485       sed "s/^/$as_me: WARNING:     /" >&2
35486     ;;
35487 esac
35488 echo "$as_me:$LINENO: checking for $ac_header" >&5
35489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35491   echo $ECHO_N "(cached) $ECHO_C" >&6
35492 else
35493   eval "$as_ac_Header=\$ac_header_preproc"
35494 fi
35495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35497
35498 fi
35499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35500   cat >>confdefs.h <<_ACEOF
35501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35502 _ACEOF
35503
35504 fi
35505
35506 done
35507
35508  echo "$as_me:$LINENO: checking for db" >&5
35509 echo $ECHO_N "checking for db... $ECHO_C" >&6
35510 if test "${ol_cv_gdbm+set}" = set; then
35511   echo $ECHO_N "(cached) $ECHO_C" >&6
35512 else
35513
35514         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35515                 ol_cv_gdbm=no
35516         else
35517                 ol_cv_gdbm=yes
35518         fi
35519
35520 fi
35521 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35522 echo "${ECHO_T}$ol_cv_gdbm" >&6
35523  if test $ol_cv_gdbm = yes ; then
35524
35525 cat >>confdefs.h <<\_ACEOF
35526 #define HAVE_GDBM 1
35527 _ACEOF
35528
35529  fi
35530
35531
35532         if test $ol_cv_gdbm = yes ; then
35533                 ol_link_ldbm=gdbm
35534                 ol_enable_ldbm_api=gdbm
35535
35536                 if test $ol_cv_lib_gdbm != yes ; then
35537                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35538                 fi
35539         fi
35540 fi
35541
35542 if test $ol_enable_ldbm_api = ndbm ; then
35543         echo "$as_me:$LINENO: checking for NDBM library" >&5
35544 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35545 if test "${ol_cv_lib_ndbm+set}" = set; then
35546   echo $ECHO_N "(cached) $ECHO_C" >&6
35547 else
35548         ol_LIBS="$LIBS"
35549         echo "$as_me:$LINENO: checking for dbm_open" >&5
35550 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35551 if test "${ac_cv_func_dbm_open+set}" = set; then
35552   echo $ECHO_N "(cached) $ECHO_C" >&6
35553 else
35554   cat >conftest.$ac_ext <<_ACEOF
35555 /* confdefs.h.  */
35556 _ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h.  */
35560 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35562 #define dbm_open innocuous_dbm_open
35563
35564 /* System header to define __stub macros and hopefully few prototypes,
35565     which can conflict with char dbm_open (); below.
35566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35567     <limits.h> exists even on freestanding compilers.  */
35568
35569 #ifdef __STDC__
35570 # include <limits.h>
35571 #else
35572 # include <assert.h>
35573 #endif
35574
35575 #undef dbm_open
35576
35577 /* Override any gcc2 internal prototype to avoid an error.  */
35578 #ifdef __cplusplus
35579 extern "C"
35580 {
35581 #endif
35582 /* We use char because int might match the return type of a gcc2
35583    builtin and then its argument prototype would still apply.  */
35584 char dbm_open ();
35585 /* The GNU C library defines this for functions which it implements
35586     to always fail with ENOSYS.  Some functions are actually named
35587     something starting with __ and the normal name is an alias.  */
35588 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35589 choke me
35590 #else
35591 char (*f) () = dbm_open;
35592 #endif
35593 #ifdef __cplusplus
35594 }
35595 #endif
35596
35597 int
35598 main ()
35599 {
35600 return f != dbm_open;
35601   ;
35602   return 0;
35603 }
35604 _ACEOF
35605 rm -f conftest.$ac_objext conftest$ac_exeext
35606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35607   (eval $ac_link) 2>conftest.er1
35608   ac_status=$?
35609   grep -v '^ *+' conftest.er1 >conftest.err
35610   rm -f conftest.er1
35611   cat conftest.err >&5
35612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613   (exit $ac_status); } &&
35614          { ac_try='test -z "$ac_c_werror_flag"
35615                          || test ! -s conftest.err'
35616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617   (eval $ac_try) 2>&5
35618   ac_status=$?
35619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620   (exit $ac_status); }; } &&
35621          { ac_try='test -s conftest$ac_exeext'
35622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35623   (eval $ac_try) 2>&5
35624   ac_status=$?
35625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); }; }; then
35627   ac_cv_func_dbm_open=yes
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632 ac_cv_func_dbm_open=no
35633 fi
35634 rm -f conftest.err conftest.$ac_objext \
35635       conftest$ac_exeext conftest.$ac_ext
35636 fi
35637 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35638 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35639 if test $ac_cv_func_dbm_open = yes; then
35640   ol_cv_lib_ndbm=yes
35641 else
35642
35643                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35644 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35645 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35646   echo $ECHO_N "(cached) $ECHO_C" >&6
35647 else
35648   ac_check_lib_save_LIBS=$LIBS
35649 LIBS="-lndbm  $LIBS"
35650 cat >conftest.$ac_ext <<_ACEOF
35651 /* confdefs.h.  */
35652 _ACEOF
35653 cat confdefs.h >>conftest.$ac_ext
35654 cat >>conftest.$ac_ext <<_ACEOF
35655 /* end confdefs.h.  */
35656
35657 /* Override any gcc2 internal prototype to avoid an error.  */
35658 #ifdef __cplusplus
35659 extern "C"
35660 #endif
35661 /* We use char because int might match the return type of a gcc2
35662    builtin and then its argument prototype would still apply.  */
35663 char dbm_open ();
35664 int
35665 main ()
35666 {
35667 dbm_open ();
35668   ;
35669   return 0;
35670 }
35671 _ACEOF
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674   (eval $ac_link) 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } &&
35681          { ac_try='test -z "$ac_c_werror_flag"
35682                          || test ! -s conftest.err'
35683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684   (eval $ac_try) 2>&5
35685   ac_status=$?
35686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687   (exit $ac_status); }; } &&
35688          { ac_try='test -s conftest$ac_exeext'
35689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690   (eval $ac_try) 2>&5
35691   ac_status=$?
35692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693   (exit $ac_status); }; }; then
35694   ac_cv_lib_ndbm_dbm_open=yes
35695 else
35696   echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.$ac_ext >&5
35698
35699 ac_cv_lib_ndbm_dbm_open=no
35700 fi
35701 rm -f conftest.err conftest.$ac_objext \
35702       conftest$ac_exeext conftest.$ac_ext
35703 LIBS=$ac_check_lib_save_LIBS
35704 fi
35705 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35706 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35707 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35708   ol_cv_lib_ndbm=-lndbm
35709 else
35710
35711                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35712 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35713 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35714   echo $ECHO_N "(cached) $ECHO_C" >&6
35715 else
35716   ac_check_lib_save_LIBS=$LIBS
35717 LIBS="-ldbm  $LIBS"
35718 cat >conftest.$ac_ext <<_ACEOF
35719 /* confdefs.h.  */
35720 _ACEOF
35721 cat confdefs.h >>conftest.$ac_ext
35722 cat >>conftest.$ac_ext <<_ACEOF
35723 /* end confdefs.h.  */
35724
35725 /* Override any gcc2 internal prototype to avoid an error.  */
35726 #ifdef __cplusplus
35727 extern "C"
35728 #endif
35729 /* We use char because int might match the return type of a gcc2
35730    builtin and then its argument prototype would still apply.  */
35731 char dbm_open ();
35732 int
35733 main ()
35734 {
35735 dbm_open ();
35736   ;
35737   return 0;
35738 }
35739 _ACEOF
35740 rm -f conftest.$ac_objext conftest$ac_exeext
35741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35742   (eval $ac_link) 2>conftest.er1
35743   ac_status=$?
35744   grep -v '^ *+' conftest.er1 >conftest.err
35745   rm -f conftest.er1
35746   cat conftest.err >&5
35747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748   (exit $ac_status); } &&
35749          { ac_try='test -z "$ac_c_werror_flag"
35750                          || test ! -s conftest.err'
35751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752   (eval $ac_try) 2>&5
35753   ac_status=$?
35754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755   (exit $ac_status); }; } &&
35756          { ac_try='test -s conftest$ac_exeext'
35757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758   (eval $ac_try) 2>&5
35759   ac_status=$?
35760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761   (exit $ac_status); }; }; then
35762   ac_cv_lib_dbm_dbm_open=yes
35763 else
35764   echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35766
35767 ac_cv_lib_dbm_dbm_open=no
35768 fi
35769 rm -f conftest.err conftest.$ac_objext \
35770       conftest$ac_exeext conftest.$ac_ext
35771 LIBS=$ac_check_lib_save_LIBS
35772 fi
35773 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35774 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35775 if test $ac_cv_lib_dbm_dbm_open = yes; then
35776   ol_cv_lib_ndbm=-ldbm
35777 else
35778   ol_cv_lib_ndbm=no
35779 fi
35780
35781 fi
35782
35783
35784 fi
35785
35786         LIBS="$ol_LIBS"
35787
35788 fi
35789 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35790 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35791
35792
35793
35794 for ac_header in ndbm.h
35795 do
35796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35798   echo "$as_me:$LINENO: checking for $ac_header" >&5
35799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35801   echo $ECHO_N "(cached) $ECHO_C" >&6
35802 fi
35803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35805 else
35806   # Is the header compilable?
35807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35809 cat >conftest.$ac_ext <<_ACEOF
35810 /* confdefs.h.  */
35811 _ACEOF
35812 cat confdefs.h >>conftest.$ac_ext
35813 cat >>conftest.$ac_ext <<_ACEOF
35814 /* end confdefs.h.  */
35815 $ac_includes_default
35816 #include <$ac_header>
35817 _ACEOF
35818 rm -f conftest.$ac_objext
35819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35820   (eval $ac_compile) 2>conftest.er1
35821   ac_status=$?
35822   grep -v '^ *+' conftest.er1 >conftest.err
35823   rm -f conftest.er1
35824   cat conftest.err >&5
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); } &&
35827          { ac_try='test -z "$ac_c_werror_flag"
35828                          || test ! -s conftest.err'
35829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35830   (eval $ac_try) 2>&5
35831   ac_status=$?
35832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833   (exit $ac_status); }; } &&
35834          { ac_try='test -s conftest.$ac_objext'
35835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35836   (eval $ac_try) 2>&5
35837   ac_status=$?
35838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839   (exit $ac_status); }; }; then
35840   ac_header_compiler=yes
35841 else
35842   echo "$as_me: failed program was:" >&5
35843 sed 's/^/| /' conftest.$ac_ext >&5
35844
35845 ac_header_compiler=no
35846 fi
35847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35849 echo "${ECHO_T}$ac_header_compiler" >&6
35850
35851 # Is the header present?
35852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35854 cat >conftest.$ac_ext <<_ACEOF
35855 /* confdefs.h.  */
35856 _ACEOF
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h.  */
35860 #include <$ac_header>
35861 _ACEOF
35862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35864   ac_status=$?
35865   grep -v '^ *+' conftest.er1 >conftest.err
35866   rm -f conftest.er1
35867   cat conftest.err >&5
35868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35869   (exit $ac_status); } >/dev/null; then
35870   if test -s conftest.err; then
35871     ac_cpp_err=$ac_c_preproc_warn_flag
35872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35873   else
35874     ac_cpp_err=
35875   fi
35876 else
35877   ac_cpp_err=yes
35878 fi
35879 if test -z "$ac_cpp_err"; then
35880   ac_header_preproc=yes
35881 else
35882   echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35884
35885   ac_header_preproc=no
35886 fi
35887 rm -f conftest.err conftest.$ac_ext
35888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35889 echo "${ECHO_T}$ac_header_preproc" >&6
35890
35891 # So?  What about this header?
35892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35893   yes:no: )
35894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35898     ac_header_preproc=yes
35899     ;;
35900   no:yes:* )
35901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35913     (
35914       cat <<\_ASBOX
35915 ## ------------------------------------------ ##
35916 ## Report this to the AC_PACKAGE_NAME lists.  ##
35917 ## ------------------------------------------ ##
35918 _ASBOX
35919     ) |
35920       sed "s/^/$as_me: WARNING:     /" >&2
35921     ;;
35922 esac
35923 echo "$as_me:$LINENO: checking for $ac_header" >&5
35924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35926   echo $ECHO_N "(cached) $ECHO_C" >&6
35927 else
35928   eval "$as_ac_Header=\$ac_header_preproc"
35929 fi
35930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35932
35933 fi
35934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35935   cat >>confdefs.h <<_ACEOF
35936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35937 _ACEOF
35938
35939 fi
35940
35941 done
35942
35943  echo "$as_me:$LINENO: checking for db" >&5
35944 echo $ECHO_N "checking for db... $ECHO_C" >&6
35945 if test "${ol_cv_ndbm+set}" = set; then
35946   echo $ECHO_N "(cached) $ECHO_C" >&6
35947 else
35948
35949         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35950                 ol_cv_ndbm=no
35951         else
35952                 ol_cv_ndbm=yes
35953         fi
35954
35955 fi
35956 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35957 echo "${ECHO_T}$ol_cv_ndbm" >&6
35958  if test $ol_cv_ndbm = yes ; then
35959
35960 cat >>confdefs.h <<\_ACEOF
35961 #define HAVE_NDBM 1
35962 _ACEOF
35963
35964  fi
35965
35966
35967         if test $ol_cv_ndbm = yes ; then
35968                 ol_link_ldbm=ndbm
35969                 ol_enable_ldbm_api=ndbm
35970
35971                 if test $ol_cv_lib_ndbm != yes ; then
35972                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35973                 fi
35974         fi
35975 fi
35976
35977 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35978         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35979 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35980    { (exit 1); exit 1; }; }
35981 fi
35982
35983 if test $ol_enable_bdb = yes ||
35984    test $ol_enable_hdb = yes ||
35985    test $ol_enable_ldbm = yes ; then
35986         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35987 fi
35988
35989
35990 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35991         BUILD_LIBS_DYNAMIC=shared
35992
35993 cat >>confdefs.h <<\_ACEOF
35994 #define LDAP_LIBS_DYNAMIC 1
35995 _ACEOF
35996
35997         LTSTATIC=""
35998 else
35999         BUILD_LIBS_DYNAMIC=static
36000         LTSTATIC="-static"
36001 fi
36002
36003 if test $ol_enable_wrappers != no ; then
36004
36005 for ac_header in tcpd.h
36006 do
36007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36009   echo "$as_me:$LINENO: checking for $ac_header" >&5
36010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36012   echo $ECHO_N "(cached) $ECHO_C" >&6
36013 fi
36014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36016 else
36017   # Is the header compilable?
36018 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36019 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36020 cat >conftest.$ac_ext <<_ACEOF
36021 /* confdefs.h.  */
36022 _ACEOF
36023 cat confdefs.h >>conftest.$ac_ext
36024 cat >>conftest.$ac_ext <<_ACEOF
36025 /* end confdefs.h.  */
36026 $ac_includes_default
36027 #include <$ac_header>
36028 _ACEOF
36029 rm -f conftest.$ac_objext
36030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36031   (eval $ac_compile) 2>conftest.er1
36032   ac_status=$?
36033   grep -v '^ *+' conftest.er1 >conftest.err
36034   rm -f conftest.er1
36035   cat conftest.err >&5
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); } &&
36038          { ac_try='test -z "$ac_c_werror_flag"
36039                          || test ! -s conftest.err'
36040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36041   (eval $ac_try) 2>&5
36042   ac_status=$?
36043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36044   (exit $ac_status); }; } &&
36045          { ac_try='test -s conftest.$ac_objext'
36046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36047   (eval $ac_try) 2>&5
36048   ac_status=$?
36049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050   (exit $ac_status); }; }; then
36051   ac_header_compiler=yes
36052 else
36053   echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36055
36056 ac_header_compiler=no
36057 fi
36058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36060 echo "${ECHO_T}$ac_header_compiler" >&6
36061
36062 # Is the header present?
36063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36065 cat >conftest.$ac_ext <<_ACEOF
36066 /* confdefs.h.  */
36067 _ACEOF
36068 cat confdefs.h >>conftest.$ac_ext
36069 cat >>conftest.$ac_ext <<_ACEOF
36070 /* end confdefs.h.  */
36071 #include <$ac_header>
36072 _ACEOF
36073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36075   ac_status=$?
36076   grep -v '^ *+' conftest.er1 >conftest.err
36077   rm -f conftest.er1
36078   cat conftest.err >&5
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); } >/dev/null; then
36081   if test -s conftest.err; then
36082     ac_cpp_err=$ac_c_preproc_warn_flag
36083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36084   else
36085     ac_cpp_err=
36086   fi
36087 else
36088   ac_cpp_err=yes
36089 fi
36090 if test -z "$ac_cpp_err"; then
36091   ac_header_preproc=yes
36092 else
36093   echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36095
36096   ac_header_preproc=no
36097 fi
36098 rm -f conftest.err conftest.$ac_ext
36099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36100 echo "${ECHO_T}$ac_header_preproc" >&6
36101
36102 # So?  What about this header?
36103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36104   yes:no: )
36105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36109     ac_header_preproc=yes
36110     ;;
36111   no:yes:* )
36112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36124     (
36125       cat <<\_ASBOX
36126 ## ------------------------------------------ ##
36127 ## Report this to the AC_PACKAGE_NAME lists.  ##
36128 ## ------------------------------------------ ##
36129 _ASBOX
36130     ) |
36131       sed "s/^/$as_me: WARNING:     /" >&2
36132     ;;
36133 esac
36134 echo "$as_me:$LINENO: checking for $ac_header" >&5
36135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36137   echo $ECHO_N "(cached) $ECHO_C" >&6
36138 else
36139   eval "$as_ac_Header=\$ac_header_preproc"
36140 fi
36141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36143
36144 fi
36145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36146   cat >>confdefs.h <<_ACEOF
36147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36148 _ACEOF
36149
36150                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36151 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36152                 save_LIBS="$LIBS"
36153                 LIBS="$LIBS -lwrap"
36154                 cat >conftest.$ac_ext <<_ACEOF
36155 /* confdefs.h.  */
36156 _ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h.  */
36160
36161 #include <tcpd.h>
36162 int allow_severity = 0;
36163 int deny_severity  = 0;
36164
36165 struct request_info *req;
36166
36167 int
36168 main ()
36169 {
36170
36171 hosts_access(req)
36172
36173   ;
36174   return 0;
36175 }
36176 _ACEOF
36177 rm -f conftest.$ac_objext conftest$ac_exeext
36178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36179   (eval $ac_link) 2>conftest.er1
36180   ac_status=$?
36181   grep -v '^ *+' conftest.er1 >conftest.err
36182   rm -f conftest.er1
36183   cat conftest.err >&5
36184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185   (exit $ac_status); } &&
36186          { ac_try='test -z "$ac_c_werror_flag"
36187                          || test ! -s conftest.err'
36188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189   (eval $ac_try) 2>&5
36190   ac_status=$?
36191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192   (exit $ac_status); }; } &&
36193          { ac_try='test -s conftest$ac_exeext'
36194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195   (eval $ac_try) 2>&5
36196   ac_status=$?
36197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198   (exit $ac_status); }; }; then
36199   echo "$as_me:$LINENO: result: -lwrap" >&5
36200 echo "${ECHO_T}-lwrap" >&6
36201                 have_wrappers=yes
36202                 LIBS="$save_LIBS"
36203 else
36204   echo "$as_me: failed program was:" >&5
36205 sed 's/^/| /' conftest.$ac_ext >&5
36206
36207
36208                                 LIBS="$LIBS -lnsl"
36209                 cat >conftest.$ac_ext <<_ACEOF
36210 /* confdefs.h.  */
36211 _ACEOF
36212 cat confdefs.h >>conftest.$ac_ext
36213 cat >>conftest.$ac_ext <<_ACEOF
36214 /* end confdefs.h.  */
36215
36216 #include <tcpd.h>
36217 int allow_severity = 0;
36218 int deny_severity  = 0;
36219
36220 struct request_info *req;
36221
36222 int
36223 main ()
36224 {
36225
36226 hosts_access(req)
36227
36228   ;
36229   return 0;
36230 }
36231 _ACEOF
36232 rm -f conftest.$ac_objext conftest$ac_exeext
36233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36234   (eval $ac_link) 2>conftest.er1
36235   ac_status=$?
36236   grep -v '^ *+' conftest.er1 >conftest.err
36237   rm -f conftest.er1
36238   cat conftest.err >&5
36239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240   (exit $ac_status); } &&
36241          { ac_try='test -z "$ac_c_werror_flag"
36242                          || test ! -s conftest.err'
36243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36244   (eval $ac_try) 2>&5
36245   ac_status=$?
36246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247   (exit $ac_status); }; } &&
36248          { ac_try='test -s conftest$ac_exeext'
36249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250   (eval $ac_try) 2>&5
36251   ac_status=$?
36252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253   (exit $ac_status); }; }; then
36254   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36255 echo "${ECHO_T}-lwrap -lnsl" >&6
36256                 have_wrappers=yes
36257                 LIBS="$save_LIBS -lnsl"
36258 else
36259   echo "$as_me: failed program was:" >&5
36260 sed 's/^/| /' conftest.$ac_ext >&5
36261
36262
36263                 echo "$as_me:$LINENO: result: no" >&5
36264 echo "${ECHO_T}no" >&6
36265                 have_wrappers=no
36266                 LIBS=$save_LIBS
36267 fi
36268 rm -f conftest.err conftest.$ac_objext \
36269       conftest$ac_exeext conftest.$ac_ext
36270 fi
36271 rm -f conftest.err conftest.$ac_objext \
36272       conftest$ac_exeext conftest.$ac_ext
36273 else
36274   have_wrappers=no
36275 fi
36276
36277 done
36278
36279
36280         if test $have_wrappers = yes ; then
36281
36282 cat >>confdefs.h <<\_ACEOF
36283 #define HAVE_TCPD 1
36284 _ACEOF
36285
36286                 WRAP_LIBS="-lwrap"
36287         elif test $ol_enable_wrappers = yes ; then
36288                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36289 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36290    { (exit 1); exit 1; }; }
36291         else
36292                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36293 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36294                 WRAP_LIBS=""
36295         fi
36296 fi
36297
36298 if test $ol_enable_syslog != no ; then
36299         echo "$as_me:$LINENO: checking for openlog" >&5
36300 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36301 if test "${ac_cv_func_openlog+set}" = set; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36312 #define openlog innocuous_openlog
36313
36314 /* System header to define __stub macros and hopefully few prototypes,
36315     which can conflict with char openlog (); below.
36316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36317     <limits.h> exists even on freestanding compilers.  */
36318
36319 #ifdef __STDC__
36320 # include <limits.h>
36321 #else
36322 # include <assert.h>
36323 #endif
36324
36325 #undef openlog
36326
36327 /* Override any gcc2 internal prototype to avoid an error.  */
36328 #ifdef __cplusplus
36329 extern "C"
36330 {
36331 #endif
36332 /* We use char because int might match the return type of a gcc2
36333    builtin and then its argument prototype would still apply.  */
36334 char openlog ();
36335 /* The GNU C library defines this for functions which it implements
36336     to always fail with ENOSYS.  Some functions are actually named
36337     something starting with __ and the normal name is an alias.  */
36338 #if defined (__stub_openlog) || defined (__stub___openlog)
36339 choke me
36340 #else
36341 char (*f) () = openlog;
36342 #endif
36343 #ifdef __cplusplus
36344 }
36345 #endif
36346
36347 int
36348 main ()
36349 {
36350 return f != openlog;
36351   ;
36352   return 0;
36353 }
36354 _ACEOF
36355 rm -f conftest.$ac_objext conftest$ac_exeext
36356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36357   (eval $ac_link) 2>conftest.er1
36358   ac_status=$?
36359   grep -v '^ *+' conftest.er1 >conftest.err
36360   rm -f conftest.er1
36361   cat conftest.err >&5
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); } &&
36364          { ac_try='test -z "$ac_c_werror_flag"
36365                          || test ! -s conftest.err'
36366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367   (eval $ac_try) 2>&5
36368   ac_status=$?
36369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370   (exit $ac_status); }; } &&
36371          { ac_try='test -s conftest$ac_exeext'
36372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373   (eval $ac_try) 2>&5
36374   ac_status=$?
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); }; }; then
36377   ac_cv_func_openlog=yes
36378 else
36379   echo "$as_me: failed program was:" >&5
36380 sed 's/^/| /' conftest.$ac_ext >&5
36381
36382 ac_cv_func_openlog=no
36383 fi
36384 rm -f conftest.err conftest.$ac_objext \
36385       conftest$ac_exeext conftest.$ac_ext
36386 fi
36387 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36388 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36389
36390         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36391                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36392 echo "$as_me: error: could not find syslog" >&2;}
36393    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36394         fi
36395         ol_enable_syslog=$ac_cv_func_openlog
36396 fi
36397
36398 ol_link_sql=no
36399 if test $ol_enable_sql != no ; then
36400
36401
36402 for ac_header in sql.h sqlext.h
36403 do
36404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36406   echo "$as_me:$LINENO: checking for $ac_header" >&5
36407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36409   echo $ECHO_N "(cached) $ECHO_C" >&6
36410 fi
36411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36413 else
36414   # Is the header compilable?
36415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36417 cat >conftest.$ac_ext <<_ACEOF
36418 /* confdefs.h.  */
36419 _ACEOF
36420 cat confdefs.h >>conftest.$ac_ext
36421 cat >>conftest.$ac_ext <<_ACEOF
36422 /* end confdefs.h.  */
36423 $ac_includes_default
36424 #include <$ac_header>
36425 _ACEOF
36426 rm -f conftest.$ac_objext
36427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36428   (eval $ac_compile) 2>conftest.er1
36429   ac_status=$?
36430   grep -v '^ *+' conftest.er1 >conftest.err
36431   rm -f conftest.er1
36432   cat conftest.err >&5
36433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434   (exit $ac_status); } &&
36435          { ac_try='test -z "$ac_c_werror_flag"
36436                          || test ! -s conftest.err'
36437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36438   (eval $ac_try) 2>&5
36439   ac_status=$?
36440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36441   (exit $ac_status); }; } &&
36442          { ac_try='test -s conftest.$ac_objext'
36443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36444   (eval $ac_try) 2>&5
36445   ac_status=$?
36446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447   (exit $ac_status); }; }; then
36448   ac_header_compiler=yes
36449 else
36450   echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.$ac_ext >&5
36452
36453 ac_header_compiler=no
36454 fi
36455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36457 echo "${ECHO_T}$ac_header_compiler" >&6
36458
36459 # Is the header present?
36460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36462 cat >conftest.$ac_ext <<_ACEOF
36463 /* confdefs.h.  */
36464 _ACEOF
36465 cat confdefs.h >>conftest.$ac_ext
36466 cat >>conftest.$ac_ext <<_ACEOF
36467 /* end confdefs.h.  */
36468 #include <$ac_header>
36469 _ACEOF
36470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36472   ac_status=$?
36473   grep -v '^ *+' conftest.er1 >conftest.err
36474   rm -f conftest.er1
36475   cat conftest.err >&5
36476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477   (exit $ac_status); } >/dev/null; then
36478   if test -s conftest.err; then
36479     ac_cpp_err=$ac_c_preproc_warn_flag
36480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36481   else
36482     ac_cpp_err=
36483   fi
36484 else
36485   ac_cpp_err=yes
36486 fi
36487 if test -z "$ac_cpp_err"; then
36488   ac_header_preproc=yes
36489 else
36490   echo "$as_me: failed program was:" >&5
36491 sed 's/^/| /' conftest.$ac_ext >&5
36492
36493   ac_header_preproc=no
36494 fi
36495 rm -f conftest.err conftest.$ac_ext
36496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36497 echo "${ECHO_T}$ac_header_preproc" >&6
36498
36499 # So?  What about this header?
36500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36501   yes:no: )
36502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36506     ac_header_preproc=yes
36507     ;;
36508   no:yes:* )
36509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36521     (
36522       cat <<\_ASBOX
36523 ## ------------------------------------------ ##
36524 ## Report this to the AC_PACKAGE_NAME lists.  ##
36525 ## ------------------------------------------ ##
36526 _ASBOX
36527     ) |
36528       sed "s/^/$as_me: WARNING:     /" >&2
36529     ;;
36530 esac
36531 echo "$as_me:$LINENO: checking for $ac_header" >&5
36532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36534   echo $ECHO_N "(cached) $ECHO_C" >&6
36535 else
36536   eval "$as_ac_Header=\$ac_header_preproc"
36537 fi
36538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36540
36541 fi
36542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36543   cat >>confdefs.h <<_ACEOF
36544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36545 _ACEOF
36546
36547 else
36548
36549                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36550 echo "$as_me: error: could not locate SQL headers" >&2;}
36551    { (exit 1); exit 1; }; }
36552
36553 fi
36554
36555 done
36556
36557
36558         sql_LIBS="$LIBS"
36559         LIBS="$LTHREAD_LIBS"
36560
36561         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36562 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36563 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36564   echo $ECHO_N "(cached) $ECHO_C" >&6
36565 else
36566   ac_check_lib_save_LIBS=$LIBS
36567 LIBS="-liodbc  $LIBS"
36568 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h.  */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h.  */
36574
36575 /* Override any gcc2 internal prototype to avoid an error.  */
36576 #ifdef __cplusplus
36577 extern "C"
36578 #endif
36579 /* We use char because int might match the return type of a gcc2
36580    builtin and then its argument prototype would still apply.  */
36581 char SQLDriverConnect ();
36582 int
36583 main ()
36584 {
36585 SQLDriverConnect ();
36586   ;
36587   return 0;
36588 }
36589 _ACEOF
36590 rm -f conftest.$ac_objext conftest$ac_exeext
36591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36592   (eval $ac_link) 2>conftest.er1
36593   ac_status=$?
36594   grep -v '^ *+' conftest.er1 >conftest.err
36595   rm -f conftest.er1
36596   cat conftest.err >&5
36597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36598   (exit $ac_status); } &&
36599          { ac_try='test -z "$ac_c_werror_flag"
36600                          || test ! -s conftest.err'
36601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602   (eval $ac_try) 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); }; } &&
36606          { ac_try='test -s conftest$ac_exeext'
36607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36608   (eval $ac_try) 2>&5
36609   ac_status=$?
36610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36611   (exit $ac_status); }; }; then
36612   ac_cv_lib_iodbc_SQLDriverConnect=yes
36613 else
36614   echo "$as_me: failed program was:" >&5
36615 sed 's/^/| /' conftest.$ac_ext >&5
36616
36617 ac_cv_lib_iodbc_SQLDriverConnect=no
36618 fi
36619 rm -f conftest.err conftest.$ac_objext \
36620       conftest$ac_exeext conftest.$ac_ext
36621 LIBS=$ac_check_lib_save_LIBS
36622 fi
36623 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36624 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36625 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36626   have_iodbc=yes
36627 else
36628   have_iodbc=no
36629 fi
36630
36631         if test $have_iodbc = yes ; then
36632                 ol_link_sql="-liodbc"
36633         else
36634                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36635 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36636 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36637   echo $ECHO_N "(cached) $ECHO_C" >&6
36638 else
36639   ac_check_lib_save_LIBS=$LIBS
36640 LIBS="-lodbc  $LIBS"
36641 cat >conftest.$ac_ext <<_ACEOF
36642 /* confdefs.h.  */
36643 _ACEOF
36644 cat confdefs.h >>conftest.$ac_ext
36645 cat >>conftest.$ac_ext <<_ACEOF
36646 /* end confdefs.h.  */
36647
36648 /* Override any gcc2 internal prototype to avoid an error.  */
36649 #ifdef __cplusplus
36650 extern "C"
36651 #endif
36652 /* We use char because int might match the return type of a gcc2
36653    builtin and then its argument prototype would still apply.  */
36654 char SQLDriverConnect ();
36655 int
36656 main ()
36657 {
36658 SQLDriverConnect ();
36659   ;
36660   return 0;
36661 }
36662 _ACEOF
36663 rm -f conftest.$ac_objext conftest$ac_exeext
36664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36665   (eval $ac_link) 2>conftest.er1
36666   ac_status=$?
36667   grep -v '^ *+' conftest.er1 >conftest.err
36668   rm -f conftest.er1
36669   cat conftest.err >&5
36670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671   (exit $ac_status); } &&
36672          { ac_try='test -z "$ac_c_werror_flag"
36673                          || test ! -s conftest.err'
36674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675   (eval $ac_try) 2>&5
36676   ac_status=$?
36677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678   (exit $ac_status); }; } &&
36679          { ac_try='test -s conftest$ac_exeext'
36680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36681   (eval $ac_try) 2>&5
36682   ac_status=$?
36683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684   (exit $ac_status); }; }; then
36685   ac_cv_lib_odbc_SQLDriverConnect=yes
36686 else
36687   echo "$as_me: failed program was:" >&5
36688 sed 's/^/| /' conftest.$ac_ext >&5
36689
36690 ac_cv_lib_odbc_SQLDriverConnect=no
36691 fi
36692 rm -f conftest.err conftest.$ac_objext \
36693       conftest$ac_exeext conftest.$ac_ext
36694 LIBS=$ac_check_lib_save_LIBS
36695 fi
36696 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36697 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36698 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36699   have_odbc=yes
36700 else
36701   have_odbc=no
36702 fi
36703
36704                 if test $have_odbc = yes ; then
36705                         ol_link_sql="-lodbc"
36706                 fi
36707         fi
36708
36709         LIBS="$sql_LIBS"
36710
36711         if test $ol_link_sql != no ; then
36712                 SLAPD_SQL_LIBS="$ol_link_sql"
36713
36714         elif test $ol_enable_sql != auto ; then
36715                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36716 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36717    { (exit 1); exit 1; }; }
36718         fi
36719 fi
36720
36721 ol_icu=no
36722
36723 for ac_header in unicode/utypes.h
36724 do
36725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36727   echo "$as_me:$LINENO: checking for $ac_header" >&5
36728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36730   echo $ECHO_N "(cached) $ECHO_C" >&6
36731 fi
36732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36734 else
36735   # Is the header compilable?
36736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36738 cat >conftest.$ac_ext <<_ACEOF
36739 /* confdefs.h.  */
36740 _ACEOF
36741 cat confdefs.h >>conftest.$ac_ext
36742 cat >>conftest.$ac_ext <<_ACEOF
36743 /* end confdefs.h.  */
36744 $ac_includes_default
36745 #include <$ac_header>
36746 _ACEOF
36747 rm -f conftest.$ac_objext
36748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36749   (eval $ac_compile) 2>conftest.er1
36750   ac_status=$?
36751   grep -v '^ *+' conftest.er1 >conftest.err
36752   rm -f conftest.er1
36753   cat conftest.err >&5
36754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755   (exit $ac_status); } &&
36756          { ac_try='test -z "$ac_c_werror_flag"
36757                          || test ! -s conftest.err'
36758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36759   (eval $ac_try) 2>&5
36760   ac_status=$?
36761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36762   (exit $ac_status); }; } &&
36763          { ac_try='test -s conftest.$ac_objext'
36764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765   (eval $ac_try) 2>&5
36766   ac_status=$?
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); }; }; then
36769   ac_header_compiler=yes
36770 else
36771   echo "$as_me: failed program was:" >&5
36772 sed 's/^/| /' conftest.$ac_ext >&5
36773
36774 ac_header_compiler=no
36775 fi
36776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36778 echo "${ECHO_T}$ac_header_compiler" >&6
36779
36780 # Is the header present?
36781 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36783 cat >conftest.$ac_ext <<_ACEOF
36784 /* confdefs.h.  */
36785 _ACEOF
36786 cat confdefs.h >>conftest.$ac_ext
36787 cat >>conftest.$ac_ext <<_ACEOF
36788 /* end confdefs.h.  */
36789 #include <$ac_header>
36790 _ACEOF
36791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36792   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36793   ac_status=$?
36794   grep -v '^ *+' conftest.er1 >conftest.err
36795   rm -f conftest.er1
36796   cat conftest.err >&5
36797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798   (exit $ac_status); } >/dev/null; then
36799   if test -s conftest.err; then
36800     ac_cpp_err=$ac_c_preproc_warn_flag
36801     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36802   else
36803     ac_cpp_err=
36804   fi
36805 else
36806   ac_cpp_err=yes
36807 fi
36808 if test -z "$ac_cpp_err"; then
36809   ac_header_preproc=yes
36810 else
36811   echo "$as_me: failed program was:" >&5
36812 sed 's/^/| /' conftest.$ac_ext >&5
36813
36814   ac_header_preproc=no
36815 fi
36816 rm -f conftest.err conftest.$ac_ext
36817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36818 echo "${ECHO_T}$ac_header_preproc" >&6
36819
36820 # So?  What about this header?
36821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36822   yes:no: )
36823     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36827     ac_header_preproc=yes
36828     ;;
36829   no:yes:* )
36830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36832     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36833 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36834     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36836     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36837 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36838     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36840     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36842     (
36843       cat <<\_ASBOX
36844 ## ------------------------------------------ ##
36845 ## Report this to the AC_PACKAGE_NAME lists.  ##
36846 ## ------------------------------------------ ##
36847 _ASBOX
36848     ) |
36849       sed "s/^/$as_me: WARNING:     /" >&2
36850     ;;
36851 esac
36852 echo "$as_me:$LINENO: checking for $ac_header" >&5
36853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36855   echo $ECHO_N "(cached) $ECHO_C" >&6
36856 else
36857   eval "$as_ac_Header=\$ac_header_preproc"
36858 fi
36859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36861
36862 fi
36863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36864   cat >>confdefs.h <<_ACEOF
36865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36866 _ACEOF
36867
36868 fi
36869
36870 done
36871
36872 if test $ac_cv_header_unicode_utypes_h = yes ; then
36873                 OL_ICULIBS="-licuuc -licudata"
36874
36875         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36876 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36877 if test "${ol_cv_lib_icu+set}" = set; then
36878   echo $ECHO_N "(cached) $ECHO_C" >&6
36879 else
36880
36881                 ol_LIBS="$LIBS"
36882                 LIBS="$OL_ICULIBS $LIBS"
36883                 cat >conftest.$ac_ext <<_ACEOF
36884 /* confdefs.h.  */
36885 _ACEOF
36886 cat confdefs.h >>conftest.$ac_ext
36887 cat >>conftest.$ac_ext <<_ACEOF
36888 /* end confdefs.h.  */
36889
36890 #include <unicode/utypes.h>
36891
36892 int
36893 main ()
36894 {
36895
36896 (void) u_errorName(0);
36897
36898   ;
36899   return 0;
36900 }
36901 _ACEOF
36902 rm -f conftest.$ac_objext conftest$ac_exeext
36903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36904   (eval $ac_link) 2>conftest.er1
36905   ac_status=$?
36906   grep -v '^ *+' conftest.er1 >conftest.err
36907   rm -f conftest.er1
36908   cat conftest.err >&5
36909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910   (exit $ac_status); } &&
36911          { ac_try='test -z "$ac_c_werror_flag"
36912                          || test ! -s conftest.err'
36913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36914   (eval $ac_try) 2>&5
36915   ac_status=$?
36916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36917   (exit $ac_status); }; } &&
36918          { ac_try='test -s conftest$ac_exeext'
36919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36920   (eval $ac_try) 2>&5
36921   ac_status=$?
36922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36923   (exit $ac_status); }; }; then
36924   ol_cv_lib_icu=yes
36925 else
36926   echo "$as_me: failed program was:" >&5
36927 sed 's/^/| /' conftest.$ac_ext >&5
36928
36929 ol_cv_lib_icu=no
36930 fi
36931 rm -f conftest.err conftest.$ac_objext \
36932       conftest$ac_exeext conftest.$ac_ext
36933                 LIBS="$ol_LIBS"
36934
36935 fi
36936 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36937 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36938
36939         if test $ol_cv_lib_icu != no ; then
36940                 ol_icu="$OL_ICULIBS"
36941
36942 cat >>confdefs.h <<\_ACEOF
36943 #define HAVE_ICU 1
36944 _ACEOF
36945
36946         fi
36947 fi
36948
36949 if test "$ol_icu" = no ; then
36950         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36951 echo "$as_me: WARNING: ICU not available" >&2;}
36952 else
36953         ICU_LIBS="$ol_icu"
36954 fi
36955 WITH_SASL=no
36956 ol_link_sasl=no
36957 ol_link_spasswd=no
36958 if test $ol_with_cyrus_sasl != no ; then
36959
36960
36961 for ac_header in sasl/sasl.h sasl.h
36962 do
36963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36965   echo "$as_me:$LINENO: checking for $ac_header" >&5
36966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36968   echo $ECHO_N "(cached) $ECHO_C" >&6
36969 fi
36970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36972 else
36973   # Is the header compilable?
36974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36976 cat >conftest.$ac_ext <<_ACEOF
36977 /* confdefs.h.  */
36978 _ACEOF
36979 cat confdefs.h >>conftest.$ac_ext
36980 cat >>conftest.$ac_ext <<_ACEOF
36981 /* end confdefs.h.  */
36982 $ac_includes_default
36983 #include <$ac_header>
36984 _ACEOF
36985 rm -f conftest.$ac_objext
36986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36987   (eval $ac_compile) 2>conftest.er1
36988   ac_status=$?
36989   grep -v '^ *+' conftest.er1 >conftest.err
36990   rm -f conftest.er1
36991   cat conftest.err >&5
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); } &&
36994          { ac_try='test -z "$ac_c_werror_flag"
36995                          || test ! -s conftest.err'
36996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36997   (eval $ac_try) 2>&5
36998   ac_status=$?
36999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37000   (exit $ac_status); }; } &&
37001          { ac_try='test -s conftest.$ac_objext'
37002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003   (eval $ac_try) 2>&5
37004   ac_status=$?
37005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006   (exit $ac_status); }; }; then
37007   ac_header_compiler=yes
37008 else
37009   echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012 ac_header_compiler=no
37013 fi
37014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37016 echo "${ECHO_T}$ac_header_compiler" >&6
37017
37018 # Is the header present?
37019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37021 cat >conftest.$ac_ext <<_ACEOF
37022 /* confdefs.h.  */
37023 _ACEOF
37024 cat confdefs.h >>conftest.$ac_ext
37025 cat >>conftest.$ac_ext <<_ACEOF
37026 /* end confdefs.h.  */
37027 #include <$ac_header>
37028 _ACEOF
37029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37031   ac_status=$?
37032   grep -v '^ *+' conftest.er1 >conftest.err
37033   rm -f conftest.er1
37034   cat conftest.err >&5
37035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036   (exit $ac_status); } >/dev/null; then
37037   if test -s conftest.err; then
37038     ac_cpp_err=$ac_c_preproc_warn_flag
37039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37040   else
37041     ac_cpp_err=
37042   fi
37043 else
37044   ac_cpp_err=yes
37045 fi
37046 if test -z "$ac_cpp_err"; then
37047   ac_header_preproc=yes
37048 else
37049   echo "$as_me: failed program was:" >&5
37050 sed 's/^/| /' conftest.$ac_ext >&5
37051
37052   ac_header_preproc=no
37053 fi
37054 rm -f conftest.err conftest.$ac_ext
37055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37056 echo "${ECHO_T}$ac_header_preproc" >&6
37057
37058 # So?  What about this header?
37059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37060   yes:no: )
37061     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37063     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37065     ac_header_preproc=yes
37066     ;;
37067   no:yes:* )
37068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37070     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37071 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37072     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37074     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37075 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37078     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37080     (
37081       cat <<\_ASBOX
37082 ## ------------------------------------------ ##
37083 ## Report this to the AC_PACKAGE_NAME lists.  ##
37084 ## ------------------------------------------ ##
37085 _ASBOX
37086     ) |
37087       sed "s/^/$as_me: WARNING:     /" >&2
37088     ;;
37089 esac
37090 echo "$as_me:$LINENO: checking for $ac_header" >&5
37091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37093   echo $ECHO_N "(cached) $ECHO_C" >&6
37094 else
37095   eval "$as_ac_Header=\$ac_header_preproc"
37096 fi
37097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37099
37100 fi
37101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37102   cat >>confdefs.h <<_ACEOF
37103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37104 _ACEOF
37105
37106 fi
37107
37108 done
37109
37110
37111         if test $ac_cv_header_sasl_sasl_h = yes ||
37112            test $ac_cv_header_sasl_h = yes; then
37113                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37114 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37115 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37116   echo $ECHO_N "(cached) $ECHO_C" >&6
37117 else
37118   ac_check_lib_save_LIBS=$LIBS
37119 LIBS="-lsasl2  $LIBS"
37120 cat >conftest.$ac_ext <<_ACEOF
37121 /* confdefs.h.  */
37122 _ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h.  */
37126
37127 /* Override any gcc2 internal prototype to avoid an error.  */
37128 #ifdef __cplusplus
37129 extern "C"
37130 #endif
37131 /* We use char because int might match the return type of a gcc2
37132    builtin and then its argument prototype would still apply.  */
37133 char sasl_client_init ();
37134 int
37135 main ()
37136 {
37137 sasl_client_init ();
37138   ;
37139   return 0;
37140 }
37141 _ACEOF
37142 rm -f conftest.$ac_objext conftest$ac_exeext
37143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37144   (eval $ac_link) 2>conftest.er1
37145   ac_status=$?
37146   grep -v '^ *+' conftest.er1 >conftest.err
37147   rm -f conftest.er1
37148   cat conftest.err >&5
37149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150   (exit $ac_status); } &&
37151          { ac_try='test -z "$ac_c_werror_flag"
37152                          || test ! -s conftest.err'
37153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154   (eval $ac_try) 2>&5
37155   ac_status=$?
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); }; } &&
37158          { ac_try='test -s conftest$ac_exeext'
37159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160   (eval $ac_try) 2>&5
37161   ac_status=$?
37162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163   (exit $ac_status); }; }; then
37164   ac_cv_lib_sasl2_sasl_client_init=yes
37165 else
37166   echo "$as_me: failed program was:" >&5
37167 sed 's/^/| /' conftest.$ac_ext >&5
37168
37169 ac_cv_lib_sasl2_sasl_client_init=no
37170 fi
37171 rm -f conftest.err conftest.$ac_objext \
37172       conftest$ac_exeext conftest.$ac_ext
37173 LIBS=$ac_check_lib_save_LIBS
37174 fi
37175 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37176 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37177 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37178   ol_link_sasl="-lsasl2"
37179 else
37180   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37181 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37182 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
37183   echo $ECHO_N "(cached) $ECHO_C" >&6
37184 else
37185   ac_check_lib_save_LIBS=$LIBS
37186 LIBS="-lsasl  $LIBS"
37187 cat >conftest.$ac_ext <<_ACEOF
37188 /* confdefs.h.  */
37189 _ACEOF
37190 cat confdefs.h >>conftest.$ac_ext
37191 cat >>conftest.$ac_ext <<_ACEOF
37192 /* end confdefs.h.  */
37193
37194 /* Override any gcc2 internal prototype to avoid an error.  */
37195 #ifdef __cplusplus
37196 extern "C"
37197 #endif
37198 /* We use char because int might match the return type of a gcc2
37199    builtin and then its argument prototype would still apply.  */
37200 char sasl_client_init ();
37201 int
37202 main ()
37203 {
37204 sasl_client_init ();
37205   ;
37206   return 0;
37207 }
37208 _ACEOF
37209 rm -f conftest.$ac_objext conftest$ac_exeext
37210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37211   (eval $ac_link) 2>conftest.er1
37212   ac_status=$?
37213   grep -v '^ *+' conftest.er1 >conftest.err
37214   rm -f conftest.er1
37215   cat conftest.err >&5
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); } &&
37218          { ac_try='test -z "$ac_c_werror_flag"
37219                          || test ! -s conftest.err'
37220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221   (eval $ac_try) 2>&5
37222   ac_status=$?
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); }; } &&
37225          { ac_try='test -s conftest$ac_exeext'
37226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227   (eval $ac_try) 2>&5
37228   ac_status=$?
37229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230   (exit $ac_status); }; }; then
37231   ac_cv_lib_sasl_sasl_client_init=yes
37232 else
37233   echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37235
37236 ac_cv_lib_sasl_sasl_client_init=no
37237 fi
37238 rm -f conftest.err conftest.$ac_objext \
37239       conftest$ac_exeext conftest.$ac_ext
37240 LIBS=$ac_check_lib_save_LIBS
37241 fi
37242 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
37243 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37244 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37245   ol_link_sasl="-lsasl"
37246 fi
37247
37248 fi
37249
37250         fi
37251
37252         if test $ol_link_sasl = no ; then
37253                 if test $ol_with_cyrus_sasl != auto ; then
37254                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37255 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37256    { (exit 1); exit 1; }; }
37257                 else
37258                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37259 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37260                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37261 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37262                         if test $ol_link_tls = no ; then
37263                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37264 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37265                         fi
37266                 fi
37267         else
37268                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37269 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37270 if test "${ol_cv_sasl_compat+set}" = set; then
37271   echo $ECHO_N "(cached) $ECHO_C" >&6
37272 else
37273
37274         cat >conftest.$ac_ext <<_ACEOF
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280
37281 #ifdef HAVE_SASL_SASL_H
37282 #include <sasl/sasl.h>
37283 #else
37284 #include <sasl.h>
37285 #endif
37286
37287 /* Require 2.1.15+ */
37288 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37289         char *__sasl_compat = "2.2+ or better okay (we guess)";
37290 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37291         && SASL_VERSION_STEP >=15
37292         char *__sasl_compat = "2.1.15+ or better okay";
37293 #endif
37294
37295 _ACEOF
37296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37297   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37298   ol_cv_sasl_compat=yes
37299 else
37300   ol_cv_sasl_compat=no
37301 fi
37302 rm -f conftest*
37303
37304 fi
37305 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37306 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37307
37308                 if test $ol_cv_sasl_compat = no ; then
37309                         ol_link_sasl=no
37310                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37311 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37312    { (exit 1); exit 1; }; }
37313                 fi
37314
37315
37316 cat >>confdefs.h <<\_ACEOF
37317 #define HAVE_CYRUS_SASL 1
37318 _ACEOF
37319
37320                 SASL_LIBS="$ol_link_sasl"
37321                 if test $ol_enable_spasswd != no ; then
37322                         ol_link_spasswd=yes
37323                 fi
37324
37325                 ac_save_LIBS="$LIBS"
37326                 LIBS="$LIBS $ol_link_sasl"
37327                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37328 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37329 if test "${ac_cv_func_sasl_version+set}" = set; then
37330   echo $ECHO_N "(cached) $ECHO_C" >&6
37331 else
37332   cat >conftest.$ac_ext <<_ACEOF
37333 /* confdefs.h.  */
37334 _ACEOF
37335 cat confdefs.h >>conftest.$ac_ext
37336 cat >>conftest.$ac_ext <<_ACEOF
37337 /* end confdefs.h.  */
37338 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37340 #define sasl_version innocuous_sasl_version
37341
37342 /* System header to define __stub macros and hopefully few prototypes,
37343     which can conflict with char sasl_version (); below.
37344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37345     <limits.h> exists even on freestanding compilers.  */
37346
37347 #ifdef __STDC__
37348 # include <limits.h>
37349 #else
37350 # include <assert.h>
37351 #endif
37352
37353 #undef sasl_version
37354
37355 /* Override any gcc2 internal prototype to avoid an error.  */
37356 #ifdef __cplusplus
37357 extern "C"
37358 {
37359 #endif
37360 /* We use char because int might match the return type of a gcc2
37361    builtin and then its argument prototype would still apply.  */
37362 char sasl_version ();
37363 /* The GNU C library defines this for functions which it implements
37364     to always fail with ENOSYS.  Some functions are actually named
37365     something starting with __ and the normal name is an alias.  */
37366 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37367 choke me
37368 #else
37369 char (*f) () = sasl_version;
37370 #endif
37371 #ifdef __cplusplus
37372 }
37373 #endif
37374
37375 int
37376 main ()
37377 {
37378 return f != sasl_version;
37379   ;
37380   return 0;
37381 }
37382 _ACEOF
37383 rm -f conftest.$ac_objext conftest$ac_exeext
37384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37385   (eval $ac_link) 2>conftest.er1
37386   ac_status=$?
37387   grep -v '^ *+' conftest.er1 >conftest.err
37388   rm -f conftest.er1
37389   cat conftest.err >&5
37390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391   (exit $ac_status); } &&
37392          { ac_try='test -z "$ac_c_werror_flag"
37393                          || test ! -s conftest.err'
37394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395   (eval $ac_try) 2>&5
37396   ac_status=$?
37397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398   (exit $ac_status); }; } &&
37399          { ac_try='test -s conftest$ac_exeext'
37400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401   (eval $ac_try) 2>&5
37402   ac_status=$?
37403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404   (exit $ac_status); }; }; then
37405   ac_cv_func_sasl_version=yes
37406 else
37407   echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37409
37410 ac_cv_func_sasl_version=no
37411 fi
37412 rm -f conftest.err conftest.$ac_objext \
37413       conftest$ac_exeext conftest.$ac_ext
37414 fi
37415 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37416 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37417 if test $ac_cv_func_sasl_version = yes; then
37418
37419 cat >>confdefs.h <<\_ACEOF
37420 #define HAVE_SASL_VERSION 1
37421 _ACEOF
37422
37423 fi
37424
37425                 LIBS="$ac_save_LIBS"
37426
37427                 WITH_SASL=yes
37428         fi
37429
37430 else
37431         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37432 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37433         if test $ol_link_tls = no ; then
37434                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37435 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37436         fi
37437 fi
37438
37439 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37440         dev=no
37441         if test -r /dev/urandom ; then
37442                 dev="/dev/urandom";
37443         elif test -r /idev/urandom ; then
37444                 dev="/idev/urandom";
37445         elif test -r /dev/srandom ; then
37446                 dev="/dev/srandom";
37447         elif test -r /dev/random ; then
37448                 dev="/dev/random";
37449         elif test -r /idev/random ; then
37450                 dev="/idev/random";
37451         fi
37452
37453         if test $dev != no ; then
37454
37455 cat >>confdefs.h <<_ACEOF
37456 #define URANDOM_DEVICE "$dev"
37457 _ACEOF
37458
37459         fi
37460 fi
37461
37462 ol_link_fetch=no
37463 if test $ol_with_fetch != no ; then
37464         ol_LIBS=$LIBS
37465 LIBS="-lfetch -lcom_err $LIBS"
37466 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37467 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37468 if test "${ol_cv_lib_fetch+set}" = set; then
37469   echo $ECHO_N "(cached) $ECHO_C" >&6
37470 else
37471
37472         cat >conftest.$ac_ext <<_ACEOF
37473 /* confdefs.h.  */
37474 _ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h.  */
37478
37479 #include <sys/param.h>
37480 #include <stdio.h>
37481 #include <fetch.h>
37482 int
37483 main ()
37484 {
37485 struct url *u = fetchParseURL("file:///");
37486   ;
37487   return 0;
37488 }
37489 _ACEOF
37490 rm -f conftest.$ac_objext conftest$ac_exeext
37491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37492   (eval $ac_link) 2>conftest.er1
37493   ac_status=$?
37494   grep -v '^ *+' conftest.er1 >conftest.err
37495   rm -f conftest.er1
37496   cat conftest.err >&5
37497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37498   (exit $ac_status); } &&
37499          { ac_try='test -z "$ac_c_werror_flag"
37500                          || test ! -s conftest.err'
37501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37502   (eval $ac_try) 2>&5
37503   ac_status=$?
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); }; } &&
37506          { ac_try='test -s conftest$ac_exeext'
37507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37508   (eval $ac_try) 2>&5
37509   ac_status=$?
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); }; }; then
37512   ol_cv_lib_fetch=yes
37513 else
37514   echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37516
37517 ol_cv_lib_fetch=no
37518 fi
37519 rm -f conftest.err conftest.$ac_objext \
37520       conftest$ac_exeext conftest.$ac_ext
37521 fi
37522 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37523 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37524 LIBS=$ol_LIBS
37525 if test $ol_cv_lib_fetch != no ; then
37526         ol_link_fetch="-lfetch -lcom_err"
37527
37528 cat >>confdefs.h <<\_ACEOF
37529 #define HAVE_FETCH 1
37530 _ACEOF
37531
37532 fi
37533
37534
37535         if test $ol_cv_lib_fetch != no ; then
37536                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37537                 ol_link_fetch=freebsd
37538
37539         elif test $ol_with_fetch != auto ; then
37540                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37541 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37542    { (exit 1); exit 1; }; }
37543         fi
37544 fi
37545
37546 if test $ol_enable_crypt != no ; then
37547         save_LIBS="$LIBS"
37548         LIBS="$TLS_LIBS $LIBS"
37549
37550         echo "$as_me:$LINENO: checking for crypt" >&5
37551 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37552 if test "${ac_cv_func_crypt+set}" = set; then
37553   echo $ECHO_N "(cached) $ECHO_C" >&6
37554 else
37555   cat >conftest.$ac_ext <<_ACEOF
37556 /* confdefs.h.  */
37557 _ACEOF
37558 cat confdefs.h >>conftest.$ac_ext
37559 cat >>conftest.$ac_ext <<_ACEOF
37560 /* end confdefs.h.  */
37561 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37563 #define crypt innocuous_crypt
37564
37565 /* System header to define __stub macros and hopefully few prototypes,
37566     which can conflict with char crypt (); below.
37567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37568     <limits.h> exists even on freestanding compilers.  */
37569
37570 #ifdef __STDC__
37571 # include <limits.h>
37572 #else
37573 # include <assert.h>
37574 #endif
37575
37576 #undef crypt
37577
37578 /* Override any gcc2 internal prototype to avoid an error.  */
37579 #ifdef __cplusplus
37580 extern "C"
37581 {
37582 #endif
37583 /* We use char because int might match the return type of a gcc2
37584    builtin and then its argument prototype would still apply.  */
37585 char crypt ();
37586 /* The GNU C library defines this for functions which it implements
37587     to always fail with ENOSYS.  Some functions are actually named
37588     something starting with __ and the normal name is an alias.  */
37589 #if defined (__stub_crypt) || defined (__stub___crypt)
37590 choke me
37591 #else
37592 char (*f) () = crypt;
37593 #endif
37594 #ifdef __cplusplus
37595 }
37596 #endif
37597
37598 int
37599 main ()
37600 {
37601 return f != crypt;
37602   ;
37603   return 0;
37604 }
37605 _ACEOF
37606 rm -f conftest.$ac_objext conftest$ac_exeext
37607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37608   (eval $ac_link) 2>conftest.er1
37609   ac_status=$?
37610   grep -v '^ *+' conftest.er1 >conftest.err
37611   rm -f conftest.er1
37612   cat conftest.err >&5
37613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); } &&
37615          { ac_try='test -z "$ac_c_werror_flag"
37616                          || test ! -s conftest.err'
37617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618   (eval $ac_try) 2>&5
37619   ac_status=$?
37620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621   (exit $ac_status); }; } &&
37622          { ac_try='test -s conftest$ac_exeext'
37623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37624   (eval $ac_try) 2>&5
37625   ac_status=$?
37626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37627   (exit $ac_status); }; }; then
37628   ac_cv_func_crypt=yes
37629 else
37630   echo "$as_me: failed program was:" >&5
37631 sed 's/^/| /' conftest.$ac_ext >&5
37632
37633 ac_cv_func_crypt=no
37634 fi
37635 rm -f conftest.err conftest.$ac_objext \
37636       conftest$ac_exeext conftest.$ac_ext
37637 fi
37638 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37639 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37640 if test $ac_cv_func_crypt = yes; then
37641   have_crypt=yes
37642 else
37643
37644                 LIBS="$save_LIBS"
37645                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37646 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37647 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37648   echo $ECHO_N "(cached) $ECHO_C" >&6
37649 else
37650   ac_check_lib_save_LIBS=$LIBS
37651 LIBS="-lcrypt  $LIBS"
37652 cat >conftest.$ac_ext <<_ACEOF
37653 /* confdefs.h.  */
37654 _ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h.  */
37658
37659 /* Override any gcc2 internal prototype to avoid an error.  */
37660 #ifdef __cplusplus
37661 extern "C"
37662 #endif
37663 /* We use char because int might match the return type of a gcc2
37664    builtin and then its argument prototype would still apply.  */
37665 char crypt ();
37666 int
37667 main ()
37668 {
37669 crypt ();
37670   ;
37671   return 0;
37672 }
37673 _ACEOF
37674 rm -f conftest.$ac_objext conftest$ac_exeext
37675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37676   (eval $ac_link) 2>conftest.er1
37677   ac_status=$?
37678   grep -v '^ *+' conftest.er1 >conftest.err
37679   rm -f conftest.er1
37680   cat conftest.err >&5
37681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682   (exit $ac_status); } &&
37683          { ac_try='test -z "$ac_c_werror_flag"
37684                          || test ! -s conftest.err'
37685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686   (eval $ac_try) 2>&5
37687   ac_status=$?
37688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689   (exit $ac_status); }; } &&
37690          { ac_try='test -s conftest$ac_exeext'
37691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37692   (eval $ac_try) 2>&5
37693   ac_status=$?
37694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695   (exit $ac_status); }; }; then
37696   ac_cv_lib_crypt_crypt=yes
37697 else
37698   echo "$as_me: failed program was:" >&5
37699 sed 's/^/| /' conftest.$ac_ext >&5
37700
37701 ac_cv_lib_crypt_crypt=no
37702 fi
37703 rm -f conftest.err conftest.$ac_objext \
37704       conftest$ac_exeext conftest.$ac_ext
37705 LIBS=$ac_check_lib_save_LIBS
37706 fi
37707 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37708 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37709 if test $ac_cv_lib_crypt_crypt = yes; then
37710   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37711                         have_crypt=yes
37712 else
37713   have_crypt=no
37714 fi
37715
37716 fi
37717
37718
37719         LIBS="$save_LIBS"
37720
37721         if test $have_crypt = yes ; then
37722
37723 cat >>confdefs.h <<\_ACEOF
37724 #define HAVE_CRYPT 1
37725 _ACEOF
37726
37727         else
37728                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37729 echo "$as_me: WARNING: could not find crypt" >&2;}
37730                 if test $ol_enable_crypt = yes ; then
37731                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37732 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37733    { (exit 1); exit 1; }; }
37734                 fi
37735
37736                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37737 echo "$as_me: WARNING: disabling crypt support" >&2;}
37738                 ol_enable_crypt=no
37739         fi
37740 fi
37741
37742 if test $ol_enable_proctitle != no ; then
37743         echo "$as_me:$LINENO: checking for setproctitle" >&5
37744 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37745 if test "${ac_cv_func_setproctitle+set}" = set; then
37746   echo $ECHO_N "(cached) $ECHO_C" >&6
37747 else
37748   cat >conftest.$ac_ext <<_ACEOF
37749 /* confdefs.h.  */
37750 _ACEOF
37751 cat confdefs.h >>conftest.$ac_ext
37752 cat >>conftest.$ac_ext <<_ACEOF
37753 /* end confdefs.h.  */
37754 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37756 #define setproctitle innocuous_setproctitle
37757
37758 /* System header to define __stub macros and hopefully few prototypes,
37759     which can conflict with char setproctitle (); below.
37760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37761     <limits.h> exists even on freestanding compilers.  */
37762
37763 #ifdef __STDC__
37764 # include <limits.h>
37765 #else
37766 # include <assert.h>
37767 #endif
37768
37769 #undef setproctitle
37770
37771 /* Override any gcc2 internal prototype to avoid an error.  */
37772 #ifdef __cplusplus
37773 extern "C"
37774 {
37775 #endif
37776 /* We use char because int might match the return type of a gcc2
37777    builtin and then its argument prototype would still apply.  */
37778 char setproctitle ();
37779 /* The GNU C library defines this for functions which it implements
37780     to always fail with ENOSYS.  Some functions are actually named
37781     something starting with __ and the normal name is an alias.  */
37782 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37783 choke me
37784 #else
37785 char (*f) () = setproctitle;
37786 #endif
37787 #ifdef __cplusplus
37788 }
37789 #endif
37790
37791 int
37792 main ()
37793 {
37794 return f != setproctitle;
37795   ;
37796   return 0;
37797 }
37798 _ACEOF
37799 rm -f conftest.$ac_objext conftest$ac_exeext
37800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37801   (eval $ac_link) 2>conftest.er1
37802   ac_status=$?
37803   grep -v '^ *+' conftest.er1 >conftest.err
37804   rm -f conftest.er1
37805   cat conftest.err >&5
37806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37807   (exit $ac_status); } &&
37808          { ac_try='test -z "$ac_c_werror_flag"
37809                          || test ! -s conftest.err'
37810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37811   (eval $ac_try) 2>&5
37812   ac_status=$?
37813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814   (exit $ac_status); }; } &&
37815          { ac_try='test -s conftest$ac_exeext'
37816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37817   (eval $ac_try) 2>&5
37818   ac_status=$?
37819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820   (exit $ac_status); }; }; then
37821   ac_cv_func_setproctitle=yes
37822 else
37823   echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37825
37826 ac_cv_func_setproctitle=no
37827 fi
37828 rm -f conftest.err conftest.$ac_objext \
37829       conftest$ac_exeext conftest.$ac_ext
37830 fi
37831 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37832 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37833 if test $ac_cv_func_setproctitle = yes; then
37834   have_setproctitle=yes
37835 else
37836
37837                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37838 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37839 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37840   echo $ECHO_N "(cached) $ECHO_C" >&6
37841 else
37842   ac_check_lib_save_LIBS=$LIBS
37843 LIBS="-lutil  $LIBS"
37844 cat >conftest.$ac_ext <<_ACEOF
37845 /* confdefs.h.  */
37846 _ACEOF
37847 cat confdefs.h >>conftest.$ac_ext
37848 cat >>conftest.$ac_ext <<_ACEOF
37849 /* end confdefs.h.  */
37850
37851 /* Override any gcc2 internal prototype to avoid an error.  */
37852 #ifdef __cplusplus
37853 extern "C"
37854 #endif
37855 /* We use char because int might match the return type of a gcc2
37856    builtin and then its argument prototype would still apply.  */
37857 char setproctitle ();
37858 int
37859 main ()
37860 {
37861 setproctitle ();
37862   ;
37863   return 0;
37864 }
37865 _ACEOF
37866 rm -f conftest.$ac_objext conftest$ac_exeext
37867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37868   (eval $ac_link) 2>conftest.er1
37869   ac_status=$?
37870   grep -v '^ *+' conftest.er1 >conftest.err
37871   rm -f conftest.er1
37872   cat conftest.err >&5
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); } &&
37875          { ac_try='test -z "$ac_c_werror_flag"
37876                          || test ! -s conftest.err'
37877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37878   (eval $ac_try) 2>&5
37879   ac_status=$?
37880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881   (exit $ac_status); }; } &&
37882          { ac_try='test -s conftest$ac_exeext'
37883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37884   (eval $ac_try) 2>&5
37885   ac_status=$?
37886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887   (exit $ac_status); }; }; then
37888   ac_cv_lib_util_setproctitle=yes
37889 else
37890   echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37892
37893 ac_cv_lib_util_setproctitle=no
37894 fi
37895 rm -f conftest.err conftest.$ac_objext \
37896       conftest$ac_exeext conftest.$ac_ext
37897 LIBS=$ac_check_lib_save_LIBS
37898 fi
37899 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37900 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37901 if test $ac_cv_lib_util_setproctitle = yes; then
37902   have_setproctitle=yes
37903                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37904 else
37905   have_setproctitle=no
37906                         case $LIBOBJS in
37907     "setproctitle.$ac_objext"   | \
37908   *" setproctitle.$ac_objext"   | \
37909     "setproctitle.$ac_objext "* | \
37910   *" setproctitle.$ac_objext "* ) ;;
37911   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37912 esac
37913
37914                         LIBSRCS="$LIBSRCS setproctitle.c"
37915 fi
37916
37917 fi
37918
37919
37920         if test $have_setproctitle = yes ; then
37921
37922 cat >>confdefs.h <<\_ACEOF
37923 #define HAVE_SETPROCTITLE 1
37924 _ACEOF
37925
37926         fi
37927 fi
37928
37929 if test $ol_enable_slp != no ; then
37930
37931 for ac_header in slp.h
37932 do
37933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37935   echo "$as_me:$LINENO: checking for $ac_header" >&5
37936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37938   echo $ECHO_N "(cached) $ECHO_C" >&6
37939 fi
37940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37942 else
37943   # Is the header compilable?
37944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37946 cat >conftest.$ac_ext <<_ACEOF
37947 /* confdefs.h.  */
37948 _ACEOF
37949 cat confdefs.h >>conftest.$ac_ext
37950 cat >>conftest.$ac_ext <<_ACEOF
37951 /* end confdefs.h.  */
37952 $ac_includes_default
37953 #include <$ac_header>
37954 _ACEOF
37955 rm -f conftest.$ac_objext
37956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37957   (eval $ac_compile) 2>conftest.er1
37958   ac_status=$?
37959   grep -v '^ *+' conftest.er1 >conftest.err
37960   rm -f conftest.er1
37961   cat conftest.err >&5
37962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37963   (exit $ac_status); } &&
37964          { ac_try='test -z "$ac_c_werror_flag"
37965                          || test ! -s conftest.err'
37966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967   (eval $ac_try) 2>&5
37968   ac_status=$?
37969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970   (exit $ac_status); }; } &&
37971          { ac_try='test -s conftest.$ac_objext'
37972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973   (eval $ac_try) 2>&5
37974   ac_status=$?
37975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976   (exit $ac_status); }; }; then
37977   ac_header_compiler=yes
37978 else
37979   echo "$as_me: failed program was:" >&5
37980 sed 's/^/| /' conftest.$ac_ext >&5
37981
37982 ac_header_compiler=no
37983 fi
37984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37986 echo "${ECHO_T}$ac_header_compiler" >&6
37987
37988 # Is the header present?
37989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37991 cat >conftest.$ac_ext <<_ACEOF
37992 /* confdefs.h.  */
37993 _ACEOF
37994 cat confdefs.h >>conftest.$ac_ext
37995 cat >>conftest.$ac_ext <<_ACEOF
37996 /* end confdefs.h.  */
37997 #include <$ac_header>
37998 _ACEOF
37999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38001   ac_status=$?
38002   grep -v '^ *+' conftest.er1 >conftest.err
38003   rm -f conftest.er1
38004   cat conftest.err >&5
38005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006   (exit $ac_status); } >/dev/null; then
38007   if test -s conftest.err; then
38008     ac_cpp_err=$ac_c_preproc_warn_flag
38009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38010   else
38011     ac_cpp_err=
38012   fi
38013 else
38014   ac_cpp_err=yes
38015 fi
38016 if test -z "$ac_cpp_err"; then
38017   ac_header_preproc=yes
38018 else
38019   echo "$as_me: failed program was:" >&5
38020 sed 's/^/| /' conftest.$ac_ext >&5
38021
38022   ac_header_preproc=no
38023 fi
38024 rm -f conftest.err conftest.$ac_ext
38025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38026 echo "${ECHO_T}$ac_header_preproc" >&6
38027
38028 # So?  What about this header?
38029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38030   yes:no: )
38031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38035     ac_header_preproc=yes
38036     ;;
38037   no:yes:* )
38038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38050     (
38051       cat <<\_ASBOX
38052 ## ------------------------------------------ ##
38053 ## Report this to the AC_PACKAGE_NAME lists.  ##
38054 ## ------------------------------------------ ##
38055 _ASBOX
38056     ) |
38057       sed "s/^/$as_me: WARNING:     /" >&2
38058     ;;
38059 esac
38060 echo "$as_me:$LINENO: checking for $ac_header" >&5
38061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38063   echo $ECHO_N "(cached) $ECHO_C" >&6
38064 else
38065   eval "$as_ac_Header=\$ac_header_preproc"
38066 fi
38067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38069
38070 fi
38071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38072   cat >>confdefs.h <<_ACEOF
38073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38074 _ACEOF
38075
38076 fi
38077
38078 done
38079
38080
38081         if test $ac_cv_header_slp_h = yes ; then
38082                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38083 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38084 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38085   echo $ECHO_N "(cached) $ECHO_C" >&6
38086 else
38087   ac_check_lib_save_LIBS=$LIBS
38088 LIBS="-lslp  $LIBS"
38089 cat >conftest.$ac_ext <<_ACEOF
38090 /* confdefs.h.  */
38091 _ACEOF
38092 cat confdefs.h >>conftest.$ac_ext
38093 cat >>conftest.$ac_ext <<_ACEOF
38094 /* end confdefs.h.  */
38095
38096 /* Override any gcc2 internal prototype to avoid an error.  */
38097 #ifdef __cplusplus
38098 extern "C"
38099 #endif
38100 /* We use char because int might match the return type of a gcc2
38101    builtin and then its argument prototype would still apply.  */
38102 char SLPOpen ();
38103 int
38104 main ()
38105 {
38106 SLPOpen ();
38107   ;
38108   return 0;
38109 }
38110 _ACEOF
38111 rm -f conftest.$ac_objext conftest$ac_exeext
38112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38113   (eval $ac_link) 2>conftest.er1
38114   ac_status=$?
38115   grep -v '^ *+' conftest.er1 >conftest.err
38116   rm -f conftest.er1
38117   cat conftest.err >&5
38118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119   (exit $ac_status); } &&
38120          { ac_try='test -z "$ac_c_werror_flag"
38121                          || test ! -s conftest.err'
38122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38123   (eval $ac_try) 2>&5
38124   ac_status=$?
38125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126   (exit $ac_status); }; } &&
38127          { ac_try='test -s conftest$ac_exeext'
38128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38129   (eval $ac_try) 2>&5
38130   ac_status=$?
38131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38132   (exit $ac_status); }; }; then
38133   ac_cv_lib_slp_SLPOpen=yes
38134 else
38135   echo "$as_me: failed program was:" >&5
38136 sed 's/^/| /' conftest.$ac_ext >&5
38137
38138 ac_cv_lib_slp_SLPOpen=no
38139 fi
38140 rm -f conftest.err conftest.$ac_objext \
38141       conftest$ac_exeext conftest.$ac_ext
38142 LIBS=$ac_check_lib_save_LIBS
38143 fi
38144 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38145 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38146 if test $ac_cv_lib_slp_SLPOpen = yes; then
38147   have_slp=yes
38148 else
38149   have_slp=no
38150 fi
38151
38152                 if test $have_slp = yes ; then
38153
38154 cat >>confdefs.h <<\_ACEOF
38155 #define HAVE_SLP 1
38156 _ACEOF
38157
38158                         SLAPD_SLP_LIBS=-lslp
38159                 fi
38160
38161         elif test $ol_enable_slp = yes ; then
38162                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38163 echo "$as_me: error: SLP not found" >&2;}
38164    { (exit 1); exit 1; }; }
38165         fi
38166 fi
38167
38168 if test "$ol_with_multiple_precision" != "no" ; then
38169         ol_have_bignum=no
38170         ol_have_gmp=no
38171
38172
38173
38174 for ac_header in openssl/bn.h bn.h
38175 do
38176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38178   echo "$as_me:$LINENO: checking for $ac_header" >&5
38179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38181   echo $ECHO_N "(cached) $ECHO_C" >&6
38182 fi
38183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38185 else
38186   # Is the header compilable?
38187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38189 cat >conftest.$ac_ext <<_ACEOF
38190 /* confdefs.h.  */
38191 _ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h.  */
38195 $ac_includes_default
38196 #include <$ac_header>
38197 _ACEOF
38198 rm -f conftest.$ac_objext
38199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38200   (eval $ac_compile) 2>conftest.er1
38201   ac_status=$?
38202   grep -v '^ *+' conftest.er1 >conftest.err
38203   rm -f conftest.er1
38204   cat conftest.err >&5
38205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206   (exit $ac_status); } &&
38207          { ac_try='test -z "$ac_c_werror_flag"
38208                          || test ! -s conftest.err'
38209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210   (eval $ac_try) 2>&5
38211   ac_status=$?
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); }; } &&
38214          { ac_try='test -s conftest.$ac_objext'
38215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38216   (eval $ac_try) 2>&5
38217   ac_status=$?
38218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38219   (exit $ac_status); }; }; then
38220   ac_header_compiler=yes
38221 else
38222   echo "$as_me: failed program was:" >&5
38223 sed 's/^/| /' conftest.$ac_ext >&5
38224
38225 ac_header_compiler=no
38226 fi
38227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38229 echo "${ECHO_T}$ac_header_compiler" >&6
38230
38231 # Is the header present?
38232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38234 cat >conftest.$ac_ext <<_ACEOF
38235 /* confdefs.h.  */
38236 _ACEOF
38237 cat confdefs.h >>conftest.$ac_ext
38238 cat >>conftest.$ac_ext <<_ACEOF
38239 /* end confdefs.h.  */
38240 #include <$ac_header>
38241 _ACEOF
38242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38244   ac_status=$?
38245   grep -v '^ *+' conftest.er1 >conftest.err
38246   rm -f conftest.er1
38247   cat conftest.err >&5
38248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38249   (exit $ac_status); } >/dev/null; then
38250   if test -s conftest.err; then
38251     ac_cpp_err=$ac_c_preproc_warn_flag
38252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38253   else
38254     ac_cpp_err=
38255   fi
38256 else
38257   ac_cpp_err=yes
38258 fi
38259 if test -z "$ac_cpp_err"; then
38260   ac_header_preproc=yes
38261 else
38262   echo "$as_me: failed program was:" >&5
38263 sed 's/^/| /' conftest.$ac_ext >&5
38264
38265   ac_header_preproc=no
38266 fi
38267 rm -f conftest.err conftest.$ac_ext
38268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38269 echo "${ECHO_T}$ac_header_preproc" >&6
38270
38271 # So?  What about this header?
38272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38273   yes:no: )
38274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38278     ac_header_preproc=yes
38279     ;;
38280   no:yes:* )
38281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38293     (
38294       cat <<\_ASBOX
38295 ## ------------------------------------------ ##
38296 ## Report this to the AC_PACKAGE_NAME lists.  ##
38297 ## ------------------------------------------ ##
38298 _ASBOX
38299     ) |
38300       sed "s/^/$as_me: WARNING:     /" >&2
38301     ;;
38302 esac
38303 echo "$as_me:$LINENO: checking for $ac_header" >&5
38304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38306   echo $ECHO_N "(cached) $ECHO_C" >&6
38307 else
38308   eval "$as_ac_Header=\$ac_header_preproc"
38309 fi
38310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38312
38313 fi
38314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38315   cat >>confdefs.h <<_ACEOF
38316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38317 _ACEOF
38318
38319 fi
38320
38321 done
38322
38323
38324
38325 for ac_header in openssl/crypto.h crypto.h
38326 do
38327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38329   echo "$as_me:$LINENO: checking for $ac_header" >&5
38330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38332   echo $ECHO_N "(cached) $ECHO_C" >&6
38333 fi
38334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38336 else
38337   # Is the header compilable?
38338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38340 cat >conftest.$ac_ext <<_ACEOF
38341 /* confdefs.h.  */
38342 _ACEOF
38343 cat confdefs.h >>conftest.$ac_ext
38344 cat >>conftest.$ac_ext <<_ACEOF
38345 /* end confdefs.h.  */
38346 $ac_includes_default
38347 #include <$ac_header>
38348 _ACEOF
38349 rm -f conftest.$ac_objext
38350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38351   (eval $ac_compile) 2>conftest.er1
38352   ac_status=$?
38353   grep -v '^ *+' conftest.er1 >conftest.err
38354   rm -f conftest.er1
38355   cat conftest.err >&5
38356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357   (exit $ac_status); } &&
38358          { ac_try='test -z "$ac_c_werror_flag"
38359                          || test ! -s conftest.err'
38360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361   (eval $ac_try) 2>&5
38362   ac_status=$?
38363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364   (exit $ac_status); }; } &&
38365          { ac_try='test -s conftest.$ac_objext'
38366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367   (eval $ac_try) 2>&5
38368   ac_status=$?
38369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370   (exit $ac_status); }; }; then
38371   ac_header_compiler=yes
38372 else
38373   echo "$as_me: failed program was:" >&5
38374 sed 's/^/| /' conftest.$ac_ext >&5
38375
38376 ac_header_compiler=no
38377 fi
38378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38380 echo "${ECHO_T}$ac_header_compiler" >&6
38381
38382 # Is the header present?
38383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38385 cat >conftest.$ac_ext <<_ACEOF
38386 /* confdefs.h.  */
38387 _ACEOF
38388 cat confdefs.h >>conftest.$ac_ext
38389 cat >>conftest.$ac_ext <<_ACEOF
38390 /* end confdefs.h.  */
38391 #include <$ac_header>
38392 _ACEOF
38393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38394   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38395   ac_status=$?
38396   grep -v '^ *+' conftest.er1 >conftest.err
38397   rm -f conftest.er1
38398   cat conftest.err >&5
38399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); } >/dev/null; then
38401   if test -s conftest.err; then
38402     ac_cpp_err=$ac_c_preproc_warn_flag
38403     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38404   else
38405     ac_cpp_err=
38406   fi
38407 else
38408   ac_cpp_err=yes
38409 fi
38410 if test -z "$ac_cpp_err"; then
38411   ac_header_preproc=yes
38412 else
38413   echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38415
38416   ac_header_preproc=no
38417 fi
38418 rm -f conftest.err conftest.$ac_ext
38419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38420 echo "${ECHO_T}$ac_header_preproc" >&6
38421
38422 # So?  What about this header?
38423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38424   yes:no: )
38425     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38427     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38429     ac_header_preproc=yes
38430     ;;
38431   no:yes:* )
38432     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38434     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38435 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38436     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38438     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38439 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38442     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38444     (
38445       cat <<\_ASBOX
38446 ## ------------------------------------------ ##
38447 ## Report this to the AC_PACKAGE_NAME lists.  ##
38448 ## ------------------------------------------ ##
38449 _ASBOX
38450     ) |
38451       sed "s/^/$as_me: WARNING:     /" >&2
38452     ;;
38453 esac
38454 echo "$as_me:$LINENO: checking for $ac_header" >&5
38455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38457   echo $ECHO_N "(cached) $ECHO_C" >&6
38458 else
38459   eval "$as_ac_Header=\$ac_header_preproc"
38460 fi
38461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38463
38464 fi
38465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38466   cat >>confdefs.h <<_ACEOF
38467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38468 _ACEOF
38469
38470 fi
38471
38472 done
38473
38474
38475 for ac_header in gmp.h
38476 do
38477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38479   echo "$as_me:$LINENO: checking for $ac_header" >&5
38480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38482   echo $ECHO_N "(cached) $ECHO_C" >&6
38483 fi
38484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38486 else
38487   # Is the header compilable?
38488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38490 cat >conftest.$ac_ext <<_ACEOF
38491 /* confdefs.h.  */
38492 _ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h.  */
38496 $ac_includes_default
38497 #include <$ac_header>
38498 _ACEOF
38499 rm -f conftest.$ac_objext
38500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38501   (eval $ac_compile) 2>conftest.er1
38502   ac_status=$?
38503   grep -v '^ *+' conftest.er1 >conftest.err
38504   rm -f conftest.er1
38505   cat conftest.err >&5
38506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507   (exit $ac_status); } &&
38508          { ac_try='test -z "$ac_c_werror_flag"
38509                          || test ! -s conftest.err'
38510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511   (eval $ac_try) 2>&5
38512   ac_status=$?
38513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514   (exit $ac_status); }; } &&
38515          { ac_try='test -s conftest.$ac_objext'
38516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38517   (eval $ac_try) 2>&5
38518   ac_status=$?
38519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520   (exit $ac_status); }; }; then
38521   ac_header_compiler=yes
38522 else
38523   echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38525
38526 ac_header_compiler=no
38527 fi
38528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38530 echo "${ECHO_T}$ac_header_compiler" >&6
38531
38532 # Is the header present?
38533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38535 cat >conftest.$ac_ext <<_ACEOF
38536 /* confdefs.h.  */
38537 _ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h.  */
38541 #include <$ac_header>
38542 _ACEOF
38543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38545   ac_status=$?
38546   grep -v '^ *+' conftest.er1 >conftest.err
38547   rm -f conftest.er1
38548   cat conftest.err >&5
38549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550   (exit $ac_status); } >/dev/null; then
38551   if test -s conftest.err; then
38552     ac_cpp_err=$ac_c_preproc_warn_flag
38553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38554   else
38555     ac_cpp_err=
38556   fi
38557 else
38558   ac_cpp_err=yes
38559 fi
38560 if test -z "$ac_cpp_err"; then
38561   ac_header_preproc=yes
38562 else
38563   echo "$as_me: failed program was:" >&5
38564 sed 's/^/| /' conftest.$ac_ext >&5
38565
38566   ac_header_preproc=no
38567 fi
38568 rm -f conftest.err conftest.$ac_ext
38569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38570 echo "${ECHO_T}$ac_header_preproc" >&6
38571
38572 # So?  What about this header?
38573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38574   yes:no: )
38575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38579     ac_header_preproc=yes
38580     ;;
38581   no:yes:* )
38582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38594     (
38595       cat <<\_ASBOX
38596 ## ------------------------------------------ ##
38597 ## Report this to the AC_PACKAGE_NAME lists.  ##
38598 ## ------------------------------------------ ##
38599 _ASBOX
38600     ) |
38601       sed "s/^/$as_me: WARNING:     /" >&2
38602     ;;
38603 esac
38604 echo "$as_me:$LINENO: checking for $ac_header" >&5
38605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38607   echo $ECHO_N "(cached) $ECHO_C" >&6
38608 else
38609   eval "$as_ac_Header=\$ac_header_preproc"
38610 fi
38611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38613
38614 fi
38615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38616   cat >>confdefs.h <<_ACEOF
38617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38618 _ACEOF
38619
38620 fi
38621
38622 done
38623
38624
38625         if test "$ol_with_tls" = "found" ; then
38626                 ol_have_bn_h=no
38627                 ol_have_crypto_h=no
38628
38629                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38630                    test "$ac_cv_header_bn_h" = "yes" ; then
38631                         ol_have_bn_h=yes
38632                 fi
38633
38634                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38635                    test "$ac_cv_header_crypto_h" = "yes" ; then
38636                         ol_have_crypto_h=yes
38637                 fi
38638
38639                 if test "$ol_have_bn_h" = "yes" &&
38640                    test "$ol_have_crypto_h" = "yes" ; then
38641                         ol_have_bignum=yes
38642                 fi
38643         fi
38644
38645         if test $ac_cv_header_gmp_h = yes ; then
38646                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38647 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38648 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38649   echo $ECHO_N "(cached) $ECHO_C" >&6
38650 else
38651   ac_check_lib_save_LIBS=$LIBS
38652 LIBS="-lgmp  $LIBS"
38653 cat >conftest.$ac_ext <<_ACEOF
38654 /* confdefs.h.  */
38655 _ACEOF
38656 cat confdefs.h >>conftest.$ac_ext
38657 cat >>conftest.$ac_ext <<_ACEOF
38658 /* end confdefs.h.  */
38659
38660 /* Override any gcc2 internal prototype to avoid an error.  */
38661 #ifdef __cplusplus
38662 extern "C"
38663 #endif
38664 /* We use char because int might match the return type of a gcc2
38665    builtin and then its argument prototype would still apply.  */
38666 char __gmpz_add_ui ();
38667 int
38668 main ()
38669 {
38670 __gmpz_add_ui ();
38671   ;
38672   return 0;
38673 }
38674 _ACEOF
38675 rm -f conftest.$ac_objext conftest$ac_exeext
38676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38677   (eval $ac_link) 2>conftest.er1
38678   ac_status=$?
38679   grep -v '^ *+' conftest.er1 >conftest.err
38680   rm -f conftest.er1
38681   cat conftest.err >&5
38682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683   (exit $ac_status); } &&
38684          { ac_try='test -z "$ac_c_werror_flag"
38685                          || test ! -s conftest.err'
38686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687   (eval $ac_try) 2>&5
38688   ac_status=$?
38689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690   (exit $ac_status); }; } &&
38691          { ac_try='test -s conftest$ac_exeext'
38692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38693   (eval $ac_try) 2>&5
38694   ac_status=$?
38695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696   (exit $ac_status); }; }; then
38697   ac_cv_lib_gmp___gmpz_add_ui=yes
38698 else
38699   echo "$as_me: failed program was:" >&5
38700 sed 's/^/| /' conftest.$ac_ext >&5
38701
38702 ac_cv_lib_gmp___gmpz_add_ui=no
38703 fi
38704 rm -f conftest.err conftest.$ac_objext \
38705       conftest$ac_exeext conftest.$ac_ext
38706 LIBS=$ac_check_lib_save_LIBS
38707 fi
38708 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38709 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38710 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38711   have_gmp=yes
38712 else
38713   have_gmp=no
38714 fi
38715
38716                 if test $have_gmp = yes ; then
38717                         ol_have_gmp=yes
38718                 fi
38719         fi
38720
38721         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38722 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38723
38724         ol_mp_support="none"
38725         case "$ol_with_multiple_precision" in
38726         auto)
38727                                                                                 if test "$ol_have_bignum" = "yes" ; then
38728                         ol_mp_support="bignum"
38729                 else
38730                         if test "$ol_have_gmp" = "yes" ; then
38731                                 ol_mp_support="gmp"
38732                         fi
38733                 fi
38734                 ;;
38735         bignum)
38736                 if test "$ol_have_bignum" != "yes" ; then
38737                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38738 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38739    { (exit 1); exit 1; }; }
38740                 fi
38741                 ol_mp_support="bignum"
38742                 ;;
38743         gmp)
38744                 if test "$ol_have_gmp" != "yes" ; then
38745                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38746 echo "$as_me: error: GMP not available" >&2;}
38747    { (exit 1); exit 1; }; }
38748                 fi
38749                 ol_mp_support="gmp"
38750                 ;;
38751         yes)
38752                 if test "$ol_have_bignum" = "yes" ; then
38753                         ol_mp_support="bignum"
38754                 elif test "$ol_have_gmp" = "yes" ; then
38755                         ol_mp_support="gmp"
38756                 else
38757                         { { echo "$as_me:$LINENO: error: not available" >&5
38758 echo "$as_me: error: not available" >&2;}
38759    { (exit 1); exit 1; }; }
38760                 fi
38761                 ;;
38762         esac
38763
38764         case "$ol_mp_support" in
38765         bignum)
38766
38767 cat >>confdefs.h <<\_ACEOF
38768 #define HAVE_BIGNUM 1
38769 _ACEOF
38770
38771                 ;;
38772         gmp)
38773
38774 cat >>confdefs.h <<\_ACEOF
38775 #define HAVE_GMP 1
38776 _ACEOF
38777
38778                 SLAPD_GMP_LIBS=-lgmp
38779                 ;;
38780         none)
38781                 ;;
38782         esac
38783
38784         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38785 echo "${ECHO_T}$ol_mp_support" >&6
38786 fi
38787
38788
38789 echo "$as_me:$LINENO: checking for mode_t" >&5
38790 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38791 if test "${ac_cv_type_mode_t+set}" = set; then
38792   echo $ECHO_N "(cached) $ECHO_C" >&6
38793 else
38794   cat >conftest.$ac_ext <<_ACEOF
38795 /* confdefs.h.  */
38796 _ACEOF
38797 cat confdefs.h >>conftest.$ac_ext
38798 cat >>conftest.$ac_ext <<_ACEOF
38799 /* end confdefs.h.  */
38800 $ac_includes_default
38801 int
38802 main ()
38803 {
38804 if ((mode_t *) 0)
38805   return 0;
38806 if (sizeof (mode_t))
38807   return 0;
38808   ;
38809   return 0;
38810 }
38811 _ACEOF
38812 rm -f conftest.$ac_objext
38813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38814   (eval $ac_compile) 2>conftest.er1
38815   ac_status=$?
38816   grep -v '^ *+' conftest.er1 >conftest.err
38817   rm -f conftest.er1
38818   cat conftest.err >&5
38819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820   (exit $ac_status); } &&
38821          { ac_try='test -z "$ac_c_werror_flag"
38822                          || test ! -s conftest.err'
38823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824   (eval $ac_try) 2>&5
38825   ac_status=$?
38826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827   (exit $ac_status); }; } &&
38828          { ac_try='test -s conftest.$ac_objext'
38829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830   (eval $ac_try) 2>&5
38831   ac_status=$?
38832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833   (exit $ac_status); }; }; then
38834   ac_cv_type_mode_t=yes
38835 else
38836   echo "$as_me: failed program was:" >&5
38837 sed 's/^/| /' conftest.$ac_ext >&5
38838
38839 ac_cv_type_mode_t=no
38840 fi
38841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38842 fi
38843 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38844 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38845 if test $ac_cv_type_mode_t = yes; then
38846   :
38847 else
38848
38849 cat >>confdefs.h <<_ACEOF
38850 #define mode_t int
38851 _ACEOF
38852
38853 fi
38854
38855 echo "$as_me:$LINENO: checking for off_t" >&5
38856 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38857 if test "${ac_cv_type_off_t+set}" = set; then
38858   echo $ECHO_N "(cached) $ECHO_C" >&6
38859 else
38860   cat >conftest.$ac_ext <<_ACEOF
38861 /* confdefs.h.  */
38862 _ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h.  */
38866 $ac_includes_default
38867 int
38868 main ()
38869 {
38870 if ((off_t *) 0)
38871   return 0;
38872 if (sizeof (off_t))
38873   return 0;
38874   ;
38875   return 0;
38876 }
38877 _ACEOF
38878 rm -f conftest.$ac_objext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880   (eval $ac_compile) 2>conftest.er1
38881   ac_status=$?
38882   grep -v '^ *+' conftest.er1 >conftest.err
38883   rm -f conftest.er1
38884   cat conftest.err >&5
38885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886   (exit $ac_status); } &&
38887          { ac_try='test -z "$ac_c_werror_flag"
38888                          || test ! -s conftest.err'
38889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890   (eval $ac_try) 2>&5
38891   ac_status=$?
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); }; } &&
38894          { ac_try='test -s conftest.$ac_objext'
38895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896   (eval $ac_try) 2>&5
38897   ac_status=$?
38898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899   (exit $ac_status); }; }; then
38900   ac_cv_type_off_t=yes
38901 else
38902   echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38904
38905 ac_cv_type_off_t=no
38906 fi
38907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38908 fi
38909 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38910 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38911 if test $ac_cv_type_off_t = yes; then
38912   :
38913 else
38914
38915 cat >>confdefs.h <<_ACEOF
38916 #define off_t long
38917 _ACEOF
38918
38919 fi
38920
38921 echo "$as_me:$LINENO: checking for pid_t" >&5
38922 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38923 if test "${ac_cv_type_pid_t+set}" = set; then
38924   echo $ECHO_N "(cached) $ECHO_C" >&6
38925 else
38926   cat >conftest.$ac_ext <<_ACEOF
38927 /* confdefs.h.  */
38928 _ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h.  */
38932 $ac_includes_default
38933 int
38934 main ()
38935 {
38936 if ((pid_t *) 0)
38937   return 0;
38938 if (sizeof (pid_t))
38939   return 0;
38940   ;
38941   return 0;
38942 }
38943 _ACEOF
38944 rm -f conftest.$ac_objext
38945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38946   (eval $ac_compile) 2>conftest.er1
38947   ac_status=$?
38948   grep -v '^ *+' conftest.er1 >conftest.err
38949   rm -f conftest.er1
38950   cat conftest.err >&5
38951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952   (exit $ac_status); } &&
38953          { ac_try='test -z "$ac_c_werror_flag"
38954                          || test ! -s conftest.err'
38955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956   (eval $ac_try) 2>&5
38957   ac_status=$?
38958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959   (exit $ac_status); }; } &&
38960          { ac_try='test -s conftest.$ac_objext'
38961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962   (eval $ac_try) 2>&5
38963   ac_status=$?
38964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965   (exit $ac_status); }; }; then
38966   ac_cv_type_pid_t=yes
38967 else
38968   echo "$as_me: failed program was:" >&5
38969 sed 's/^/| /' conftest.$ac_ext >&5
38970
38971 ac_cv_type_pid_t=no
38972 fi
38973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38974 fi
38975 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38976 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38977 if test $ac_cv_type_pid_t = yes; then
38978   :
38979 else
38980
38981 cat >>confdefs.h <<_ACEOF
38982 #define pid_t int
38983 _ACEOF
38984
38985 fi
38986
38987 echo "$as_me:$LINENO: checking for ssize_t" >&5
38988 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38989 if test "${ac_cv_type_ssize_t+set}" = set; then
38990   echo $ECHO_N "(cached) $ECHO_C" >&6
38991 else
38992   cat >conftest.$ac_ext <<_ACEOF
38993 /* confdefs.h.  */
38994 _ACEOF
38995 cat confdefs.h >>conftest.$ac_ext
38996 cat >>conftest.$ac_ext <<_ACEOF
38997 /* end confdefs.h.  */
38998 $ac_includes_default
38999 int
39000 main ()
39001 {
39002 if ((ssize_t *) 0)
39003   return 0;
39004 if (sizeof (ssize_t))
39005   return 0;
39006   ;
39007   return 0;
39008 }
39009 _ACEOF
39010 rm -f conftest.$ac_objext
39011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39012   (eval $ac_compile) 2>conftest.er1
39013   ac_status=$?
39014   grep -v '^ *+' conftest.er1 >conftest.err
39015   rm -f conftest.er1
39016   cat conftest.err >&5
39017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39018   (exit $ac_status); } &&
39019          { ac_try='test -z "$ac_c_werror_flag"
39020                          || test ! -s conftest.err'
39021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022   (eval $ac_try) 2>&5
39023   ac_status=$?
39024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025   (exit $ac_status); }; } &&
39026          { ac_try='test -s conftest.$ac_objext'
39027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028   (eval $ac_try) 2>&5
39029   ac_status=$?
39030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031   (exit $ac_status); }; }; then
39032   ac_cv_type_ssize_t=yes
39033 else
39034   echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.$ac_ext >&5
39036
39037 ac_cv_type_ssize_t=no
39038 fi
39039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39040 fi
39041 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39042 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39043 if test $ac_cv_type_ssize_t = yes; then
39044   :
39045 else
39046
39047 cat >>confdefs.h <<_ACEOF
39048 #define ssize_t signed int
39049 _ACEOF
39050
39051 fi
39052
39053 echo "$as_me:$LINENO: checking for caddr_t" >&5
39054 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
39055 if test "${ac_cv_type_caddr_t+set}" = set; then
39056   echo $ECHO_N "(cached) $ECHO_C" >&6
39057 else
39058   cat >conftest.$ac_ext <<_ACEOF
39059 /* confdefs.h.  */
39060 _ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h.  */
39064 $ac_includes_default
39065 int
39066 main ()
39067 {
39068 if ((caddr_t *) 0)
39069   return 0;
39070 if (sizeof (caddr_t))
39071   return 0;
39072   ;
39073   return 0;
39074 }
39075 _ACEOF
39076 rm -f conftest.$ac_objext
39077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39078   (eval $ac_compile) 2>conftest.er1
39079   ac_status=$?
39080   grep -v '^ *+' conftest.er1 >conftest.err
39081   rm -f conftest.er1
39082   cat conftest.err >&5
39083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084   (exit $ac_status); } &&
39085          { ac_try='test -z "$ac_c_werror_flag"
39086                          || test ! -s conftest.err'
39087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088   (eval $ac_try) 2>&5
39089   ac_status=$?
39090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091   (exit $ac_status); }; } &&
39092          { ac_try='test -s conftest.$ac_objext'
39093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094   (eval $ac_try) 2>&5
39095   ac_status=$?
39096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097   (exit $ac_status); }; }; then
39098   ac_cv_type_caddr_t=yes
39099 else
39100   echo "$as_me: failed program was:" >&5
39101 sed 's/^/| /' conftest.$ac_ext >&5
39102
39103 ac_cv_type_caddr_t=no
39104 fi
39105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39106 fi
39107 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39108 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39109 if test $ac_cv_type_caddr_t = yes; then
39110   :
39111 else
39112
39113 cat >>confdefs.h <<_ACEOF
39114 #define caddr_t char *
39115 _ACEOF
39116
39117 fi
39118
39119 echo "$as_me:$LINENO: checking for size_t" >&5
39120 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39121 if test "${ac_cv_type_size_t+set}" = set; then
39122   echo $ECHO_N "(cached) $ECHO_C" >&6
39123 else
39124   cat >conftest.$ac_ext <<_ACEOF
39125 /* confdefs.h.  */
39126 _ACEOF
39127 cat confdefs.h >>conftest.$ac_ext
39128 cat >>conftest.$ac_ext <<_ACEOF
39129 /* end confdefs.h.  */
39130 $ac_includes_default
39131 int
39132 main ()
39133 {
39134 if ((size_t *) 0)
39135   return 0;
39136 if (sizeof (size_t))
39137   return 0;
39138   ;
39139   return 0;
39140 }
39141 _ACEOF
39142 rm -f conftest.$ac_objext
39143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39144   (eval $ac_compile) 2>conftest.er1
39145   ac_status=$?
39146   grep -v '^ *+' conftest.er1 >conftest.err
39147   rm -f conftest.er1
39148   cat conftest.err >&5
39149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150   (exit $ac_status); } &&
39151          { ac_try='test -z "$ac_c_werror_flag"
39152                          || test ! -s conftest.err'
39153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39154   (eval $ac_try) 2>&5
39155   ac_status=$?
39156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39157   (exit $ac_status); }; } &&
39158          { ac_try='test -s conftest.$ac_objext'
39159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39160   (eval $ac_try) 2>&5
39161   ac_status=$?
39162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163   (exit $ac_status); }; }; then
39164   ac_cv_type_size_t=yes
39165 else
39166   echo "$as_me: failed program was:" >&5
39167 sed 's/^/| /' conftest.$ac_ext >&5
39168
39169 ac_cv_type_size_t=no
39170 fi
39171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39172 fi
39173 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39174 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39175 if test $ac_cv_type_size_t = yes; then
39176   :
39177 else
39178
39179 cat >>confdefs.h <<_ACEOF
39180 #define size_t unsigned
39181 _ACEOF
39182
39183 fi
39184
39185
39186 echo "$as_me:$LINENO: checking for long long" >&5
39187 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39188 if test "${ac_cv_type_long_long+set}" = set; then
39189   echo $ECHO_N "(cached) $ECHO_C" >&6
39190 else
39191   cat >conftest.$ac_ext <<_ACEOF
39192 /* confdefs.h.  */
39193 _ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h.  */
39197 $ac_includes_default
39198 int
39199 main ()
39200 {
39201 if ((long long *) 0)
39202   return 0;
39203 if (sizeof (long long))
39204   return 0;
39205   ;
39206   return 0;
39207 }
39208 _ACEOF
39209 rm -f conftest.$ac_objext
39210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39211   (eval $ac_compile) 2>conftest.er1
39212   ac_status=$?
39213   grep -v '^ *+' conftest.er1 >conftest.err
39214   rm -f conftest.er1
39215   cat conftest.err >&5
39216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217   (exit $ac_status); } &&
39218          { ac_try='test -z "$ac_c_werror_flag"
39219                          || test ! -s conftest.err'
39220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39221   (eval $ac_try) 2>&5
39222   ac_status=$?
39223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224   (exit $ac_status); }; } &&
39225          { ac_try='test -s conftest.$ac_objext'
39226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39227   (eval $ac_try) 2>&5
39228   ac_status=$?
39229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39230   (exit $ac_status); }; }; then
39231   ac_cv_type_long_long=yes
39232 else
39233   echo "$as_me: failed program was:" >&5
39234 sed 's/^/| /' conftest.$ac_ext >&5
39235
39236 ac_cv_type_long_long=no
39237 fi
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39239 fi
39240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
39241 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39242 if test $ac_cv_type_long_long = yes; then
39243
39244 cat >>confdefs.h <<_ACEOF
39245 #define HAVE_LONG_LONG 1
39246 _ACEOF
39247
39248
39249 fi
39250
39251 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39252 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39253 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39254   echo $ECHO_N "(cached) $ECHO_C" >&6
39255 else
39256   cat >conftest.$ac_ext <<_ACEOF
39257 /* confdefs.h.  */
39258 _ACEOF
39259 cat confdefs.h >>conftest.$ac_ext
39260 cat >>conftest.$ac_ext <<_ACEOF
39261 /* end confdefs.h.  */
39262 $ac_includes_default
39263 int
39264 main ()
39265 {
39266 if ((ptrdiff_t *) 0)
39267   return 0;
39268 if (sizeof (ptrdiff_t))
39269   return 0;
39270   ;
39271   return 0;
39272 }
39273 _ACEOF
39274 rm -f conftest.$ac_objext
39275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39276   (eval $ac_compile) 2>conftest.er1
39277   ac_status=$?
39278   grep -v '^ *+' conftest.er1 >conftest.err
39279   rm -f conftest.er1
39280   cat conftest.err >&5
39281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282   (exit $ac_status); } &&
39283          { ac_try='test -z "$ac_c_werror_flag"
39284                          || test ! -s conftest.err'
39285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39286   (eval $ac_try) 2>&5
39287   ac_status=$?
39288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289   (exit $ac_status); }; } &&
39290          { ac_try='test -s conftest.$ac_objext'
39291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39292   (eval $ac_try) 2>&5
39293   ac_status=$?
39294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295   (exit $ac_status); }; }; then
39296   ac_cv_type_ptrdiff_t=yes
39297 else
39298   echo "$as_me: failed program was:" >&5
39299 sed 's/^/| /' conftest.$ac_ext >&5
39300
39301 ac_cv_type_ptrdiff_t=no
39302 fi
39303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39304 fi
39305 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39306 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39307 if test $ac_cv_type_ptrdiff_t = yes; then
39308
39309 cat >>confdefs.h <<_ACEOF
39310 #define HAVE_PTRDIFF_T 1
39311 _ACEOF
39312
39313
39314 fi
39315
39316
39317 echo "$as_me:$LINENO: checking for socklen_t" >&5
39318 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39319 if test "${ac_cv_type_socklen_t+set}" = set; then
39320   echo $ECHO_N "(cached) $ECHO_C" >&6
39321 else
39322   cat >conftest.$ac_ext <<_ACEOF
39323 /* confdefs.h.  */
39324 _ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h.  */
39328 $ac_includes_default
39329 #ifdef HAVE_SYS_SOCKET_H
39330 #include <sys/socket.h>
39331 #endif
39332
39333
39334 int
39335 main ()
39336 {
39337 if ((socklen_t *) 0)
39338   return 0;
39339 if (sizeof (socklen_t))
39340   return 0;
39341   ;
39342   return 0;
39343 }
39344 _ACEOF
39345 rm -f conftest.$ac_objext
39346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39347   (eval $ac_compile) 2>conftest.er1
39348   ac_status=$?
39349   grep -v '^ *+' conftest.er1 >conftest.err
39350   rm -f conftest.er1
39351   cat conftest.err >&5
39352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39353   (exit $ac_status); } &&
39354          { ac_try='test -z "$ac_c_werror_flag"
39355                          || test ! -s conftest.err'
39356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39357   (eval $ac_try) 2>&5
39358   ac_status=$?
39359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360   (exit $ac_status); }; } &&
39361          { ac_try='test -s conftest.$ac_objext'
39362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39363   (eval $ac_try) 2>&5
39364   ac_status=$?
39365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366   (exit $ac_status); }; }; then
39367   ac_cv_type_socklen_t=yes
39368 else
39369   echo "$as_me: failed program was:" >&5
39370 sed 's/^/| /' conftest.$ac_ext >&5
39371
39372 ac_cv_type_socklen_t=no
39373 fi
39374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39375 fi
39376 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39377 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39378 if test $ac_cv_type_socklen_t = yes; then
39379   :
39380 else
39381
39382 cat >>confdefs.h <<_ACEOF
39383 #define socklen_t int
39384 _ACEOF
39385
39386 fi
39387
39388
39389 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39390 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39391 if test "${ac_cv_type_signal+set}" = set; then
39392   echo $ECHO_N "(cached) $ECHO_C" >&6
39393 else
39394   cat >conftest.$ac_ext <<_ACEOF
39395 /* confdefs.h.  */
39396 _ACEOF
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h.  */
39400 #include <sys/types.h>
39401 #include <signal.h>
39402 #ifdef signal
39403 # undef signal
39404 #endif
39405 #ifdef __cplusplus
39406 extern "C" void (*signal (int, void (*)(int)))(int);
39407 #else
39408 void (*signal ()) ();
39409 #endif
39410
39411 int
39412 main ()
39413 {
39414 int i;
39415   ;
39416   return 0;
39417 }
39418 _ACEOF
39419 rm -f conftest.$ac_objext
39420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39421   (eval $ac_compile) 2>conftest.er1
39422   ac_status=$?
39423   grep -v '^ *+' conftest.er1 >conftest.err
39424   rm -f conftest.er1
39425   cat conftest.err >&5
39426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39427   (exit $ac_status); } &&
39428          { ac_try='test -z "$ac_c_werror_flag"
39429                          || test ! -s conftest.err'
39430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39431   (eval $ac_try) 2>&5
39432   ac_status=$?
39433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434   (exit $ac_status); }; } &&
39435          { ac_try='test -s conftest.$ac_objext'
39436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437   (eval $ac_try) 2>&5
39438   ac_status=$?
39439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440   (exit $ac_status); }; }; then
39441   ac_cv_type_signal=void
39442 else
39443   echo "$as_me: failed program was:" >&5
39444 sed 's/^/| /' conftest.$ac_ext >&5
39445
39446 ac_cv_type_signal=int
39447 fi
39448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39449 fi
39450 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39451 echo "${ECHO_T}$ac_cv_type_signal" >&6
39452
39453 cat >>confdefs.h <<_ACEOF
39454 #define RETSIGTYPE $ac_cv_type_signal
39455 _ACEOF
39456
39457
39458
39459 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39460 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39461 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39462   echo $ECHO_N "(cached) $ECHO_C" >&6
39463 else
39464   cat >conftest.$ac_ext <<_ACEOF
39465 /* confdefs.h.  */
39466 _ACEOF
39467 cat confdefs.h >>conftest.$ac_ext
39468 cat >>conftest.$ac_ext <<_ACEOF
39469 /* end confdefs.h.  */
39470 $ac_includes_default
39471 #include <signal.h>
39472
39473
39474 int
39475 main ()
39476 {
39477 if ((sig_atomic_t *) 0)
39478   return 0;
39479 if (sizeof (sig_atomic_t))
39480   return 0;
39481   ;
39482   return 0;
39483 }
39484 _ACEOF
39485 rm -f conftest.$ac_objext
39486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39487   (eval $ac_compile) 2>conftest.er1
39488   ac_status=$?
39489   grep -v '^ *+' conftest.er1 >conftest.err
39490   rm -f conftest.er1
39491   cat conftest.err >&5
39492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493   (exit $ac_status); } &&
39494          { ac_try='test -z "$ac_c_werror_flag"
39495                          || test ! -s conftest.err'
39496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39497   (eval $ac_try) 2>&5
39498   ac_status=$?
39499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39500   (exit $ac_status); }; } &&
39501          { ac_try='test -s conftest.$ac_objext'
39502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39503   (eval $ac_try) 2>&5
39504   ac_status=$?
39505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506   (exit $ac_status); }; }; then
39507   ac_cv_type_sig_atomic_t=yes
39508 else
39509   echo "$as_me: failed program was:" >&5
39510 sed 's/^/| /' conftest.$ac_ext >&5
39511
39512 ac_cv_type_sig_atomic_t=no
39513 fi
39514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39515 fi
39516 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39517 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39518 if test $ac_cv_type_sig_atomic_t = yes; then
39519   :
39520 else
39521
39522 cat >>confdefs.h <<_ACEOF
39523 #define sig_atomic_t int
39524 _ACEOF
39525
39526 fi
39527
39528
39529 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39530 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39531 if test "${ac_cv_type_uid_t+set}" = set; then
39532   echo $ECHO_N "(cached) $ECHO_C" >&6
39533 else
39534   cat >conftest.$ac_ext <<_ACEOF
39535 /* confdefs.h.  */
39536 _ACEOF
39537 cat confdefs.h >>conftest.$ac_ext
39538 cat >>conftest.$ac_ext <<_ACEOF
39539 /* end confdefs.h.  */
39540 #include <sys/types.h>
39541
39542 _ACEOF
39543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39544   $EGREP "uid_t" >/dev/null 2>&1; then
39545   ac_cv_type_uid_t=yes
39546 else
39547   ac_cv_type_uid_t=no
39548 fi
39549 rm -f conftest*
39550
39551 fi
39552 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39553 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39554 if test $ac_cv_type_uid_t = no; then
39555
39556 cat >>confdefs.h <<\_ACEOF
39557 #define uid_t int
39558 _ACEOF
39559
39560
39561 cat >>confdefs.h <<\_ACEOF
39562 #define gid_t int
39563 _ACEOF
39564
39565 fi
39566
39567
39568 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39569 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39570 if test "${ac_cv_header_time+set}" = set; then
39571   echo $ECHO_N "(cached) $ECHO_C" >&6
39572 else
39573   cat >conftest.$ac_ext <<_ACEOF
39574 /* confdefs.h.  */
39575 _ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h.  */
39579 #include <sys/types.h>
39580 #include <sys/time.h>
39581 #include <time.h>
39582
39583 int
39584 main ()
39585 {
39586 if ((struct tm *) 0)
39587 return 0;
39588   ;
39589   return 0;
39590 }
39591 _ACEOF
39592 rm -f conftest.$ac_objext
39593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39594   (eval $ac_compile) 2>conftest.er1
39595   ac_status=$?
39596   grep -v '^ *+' conftest.er1 >conftest.err
39597   rm -f conftest.er1
39598   cat conftest.err >&5
39599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600   (exit $ac_status); } &&
39601          { ac_try='test -z "$ac_c_werror_flag"
39602                          || test ! -s conftest.err'
39603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604   (eval $ac_try) 2>&5
39605   ac_status=$?
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); }; } &&
39608          { ac_try='test -s conftest.$ac_objext'
39609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610   (eval $ac_try) 2>&5
39611   ac_status=$?
39612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613   (exit $ac_status); }; }; then
39614   ac_cv_header_time=yes
39615 else
39616   echo "$as_me: failed program was:" >&5
39617 sed 's/^/| /' conftest.$ac_ext >&5
39618
39619 ac_cv_header_time=no
39620 fi
39621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39622 fi
39623 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39624 echo "${ECHO_T}$ac_cv_header_time" >&6
39625 if test $ac_cv_header_time = yes; then
39626
39627 cat >>confdefs.h <<\_ACEOF
39628 #define TIME_WITH_SYS_TIME 1
39629 _ACEOF
39630
39631 fi
39632
39633 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39634 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39635 if test "${ac_cv_struct_tm+set}" = set; then
39636   echo $ECHO_N "(cached) $ECHO_C" >&6
39637 else
39638   cat >conftest.$ac_ext <<_ACEOF
39639 /* confdefs.h.  */
39640 _ACEOF
39641 cat confdefs.h >>conftest.$ac_ext
39642 cat >>conftest.$ac_ext <<_ACEOF
39643 /* end confdefs.h.  */
39644 #include <sys/types.h>
39645 #include <time.h>
39646
39647 int
39648 main ()
39649 {
39650 struct tm *tp; tp->tm_sec;
39651   ;
39652   return 0;
39653 }
39654 _ACEOF
39655 rm -f conftest.$ac_objext
39656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39657   (eval $ac_compile) 2>conftest.er1
39658   ac_status=$?
39659   grep -v '^ *+' conftest.er1 >conftest.err
39660   rm -f conftest.er1
39661   cat conftest.err >&5
39662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39663   (exit $ac_status); } &&
39664          { ac_try='test -z "$ac_c_werror_flag"
39665                          || test ! -s conftest.err'
39666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667   (eval $ac_try) 2>&5
39668   ac_status=$?
39669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670   (exit $ac_status); }; } &&
39671          { ac_try='test -s conftest.$ac_objext'
39672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673   (eval $ac_try) 2>&5
39674   ac_status=$?
39675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676   (exit $ac_status); }; }; then
39677   ac_cv_struct_tm=time.h
39678 else
39679   echo "$as_me: failed program was:" >&5
39680 sed 's/^/| /' conftest.$ac_ext >&5
39681
39682 ac_cv_struct_tm=sys/time.h
39683 fi
39684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39685 fi
39686 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39687 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39688 if test $ac_cv_struct_tm = sys/time.h; then
39689
39690 cat >>confdefs.h <<\_ACEOF
39691 #define TM_IN_SYS_TIME 1
39692 _ACEOF
39693
39694 fi
39695
39696 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39697 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39698 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39699   echo $ECHO_N "(cached) $ECHO_C" >&6
39700 else
39701   cat >conftest.$ac_ext <<_ACEOF
39702 /* confdefs.h.  */
39703 _ACEOF
39704 cat confdefs.h >>conftest.$ac_ext
39705 cat >>conftest.$ac_ext <<_ACEOF
39706 /* end confdefs.h.  */
39707 $ac_includes_default
39708 int
39709 main ()
39710 {
39711 static struct stat ac_aggr;
39712 if (ac_aggr.st_blksize)
39713 return 0;
39714   ;
39715   return 0;
39716 }
39717 _ACEOF
39718 rm -f conftest.$ac_objext
39719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39720   (eval $ac_compile) 2>conftest.er1
39721   ac_status=$?
39722   grep -v '^ *+' conftest.er1 >conftest.err
39723   rm -f conftest.er1
39724   cat conftest.err >&5
39725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726   (exit $ac_status); } &&
39727          { ac_try='test -z "$ac_c_werror_flag"
39728                          || test ! -s conftest.err'
39729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730   (eval $ac_try) 2>&5
39731   ac_status=$?
39732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733   (exit $ac_status); }; } &&
39734          { ac_try='test -s conftest.$ac_objext'
39735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39736   (eval $ac_try) 2>&5
39737   ac_status=$?
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); }; }; then
39740   ac_cv_member_struct_stat_st_blksize=yes
39741 else
39742   echo "$as_me: failed program was:" >&5
39743 sed 's/^/| /' conftest.$ac_ext >&5
39744
39745 cat >conftest.$ac_ext <<_ACEOF
39746 /* confdefs.h.  */
39747 _ACEOF
39748 cat confdefs.h >>conftest.$ac_ext
39749 cat >>conftest.$ac_ext <<_ACEOF
39750 /* end confdefs.h.  */
39751 $ac_includes_default
39752 int
39753 main ()
39754 {
39755 static struct stat ac_aggr;
39756 if (sizeof ac_aggr.st_blksize)
39757 return 0;
39758   ;
39759   return 0;
39760 }
39761 _ACEOF
39762 rm -f conftest.$ac_objext
39763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39764   (eval $ac_compile) 2>conftest.er1
39765   ac_status=$?
39766   grep -v '^ *+' conftest.er1 >conftest.err
39767   rm -f conftest.er1
39768   cat conftest.err >&5
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); } &&
39771          { ac_try='test -z "$ac_c_werror_flag"
39772                          || test ! -s conftest.err'
39773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774   (eval $ac_try) 2>&5
39775   ac_status=$?
39776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777   (exit $ac_status); }; } &&
39778          { ac_try='test -s conftest.$ac_objext'
39779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780   (eval $ac_try) 2>&5
39781   ac_status=$?
39782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783   (exit $ac_status); }; }; then
39784   ac_cv_member_struct_stat_st_blksize=yes
39785 else
39786   echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39788
39789 ac_cv_member_struct_stat_st_blksize=no
39790 fi
39791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39792 fi
39793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39794 fi
39795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39796 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39797 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39798
39799 cat >>confdefs.h <<_ACEOF
39800 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39801 _ACEOF
39802
39803
39804 fi
39805
39806 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39807 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39808 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39809   echo $ECHO_N "(cached) $ECHO_C" >&6
39810 else
39811   cat >conftest.$ac_ext <<_ACEOF
39812 /* confdefs.h.  */
39813 _ACEOF
39814 cat confdefs.h >>conftest.$ac_ext
39815 cat >>conftest.$ac_ext <<_ACEOF
39816 /* end confdefs.h.  */
39817 $ac_includes_default
39818 #include <pwd.h>
39819
39820 int
39821 main ()
39822 {
39823 static struct passwd ac_aggr;
39824 if (ac_aggr.pw_gecos)
39825 return 0;
39826   ;
39827   return 0;
39828 }
39829 _ACEOF
39830 rm -f conftest.$ac_objext
39831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39832   (eval $ac_compile) 2>conftest.er1
39833   ac_status=$?
39834   grep -v '^ *+' conftest.er1 >conftest.err
39835   rm -f conftest.er1
39836   cat conftest.err >&5
39837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838   (exit $ac_status); } &&
39839          { ac_try='test -z "$ac_c_werror_flag"
39840                          || test ! -s conftest.err'
39841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842   (eval $ac_try) 2>&5
39843   ac_status=$?
39844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); }; } &&
39846          { ac_try='test -s conftest.$ac_objext'
39847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848   (eval $ac_try) 2>&5
39849   ac_status=$?
39850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851   (exit $ac_status); }; }; then
39852   ac_cv_member_struct_passwd_pw_gecos=yes
39853 else
39854   echo "$as_me: failed program was:" >&5
39855 sed 's/^/| /' conftest.$ac_ext >&5
39856
39857 cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h.  */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h.  */
39863 $ac_includes_default
39864 #include <pwd.h>
39865
39866 int
39867 main ()
39868 {
39869 static struct passwd ac_aggr;
39870 if (sizeof ac_aggr.pw_gecos)
39871 return 0;
39872   ;
39873   return 0;
39874 }
39875 _ACEOF
39876 rm -f conftest.$ac_objext
39877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39878   (eval $ac_compile) 2>conftest.er1
39879   ac_status=$?
39880   grep -v '^ *+' conftest.er1 >conftest.err
39881   rm -f conftest.er1
39882   cat conftest.err >&5
39883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39884   (exit $ac_status); } &&
39885          { ac_try='test -z "$ac_c_werror_flag"
39886                          || test ! -s conftest.err'
39887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888   (eval $ac_try) 2>&5
39889   ac_status=$?
39890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891   (exit $ac_status); }; } &&
39892          { ac_try='test -s conftest.$ac_objext'
39893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894   (eval $ac_try) 2>&5
39895   ac_status=$?
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); }; }; then
39898   ac_cv_member_struct_passwd_pw_gecos=yes
39899 else
39900   echo "$as_me: failed program was:" >&5
39901 sed 's/^/| /' conftest.$ac_ext >&5
39902
39903 ac_cv_member_struct_passwd_pw_gecos=no
39904 fi
39905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39906 fi
39907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39908 fi
39909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39910 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39911 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39912
39913 cat >>confdefs.h <<_ACEOF
39914 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39915 _ACEOF
39916
39917
39918 fi
39919
39920 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39921 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39922 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39923   echo $ECHO_N "(cached) $ECHO_C" >&6
39924 else
39925   cat >conftest.$ac_ext <<_ACEOF
39926 /* confdefs.h.  */
39927 _ACEOF
39928 cat confdefs.h >>conftest.$ac_ext
39929 cat >>conftest.$ac_ext <<_ACEOF
39930 /* end confdefs.h.  */
39931 $ac_includes_default
39932 #include <pwd.h>
39933
39934 int
39935 main ()
39936 {
39937 static struct passwd ac_aggr;
39938 if (ac_aggr.pw_passwd)
39939 return 0;
39940   ;
39941   return 0;
39942 }
39943 _ACEOF
39944 rm -f conftest.$ac_objext
39945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39946   (eval $ac_compile) 2>conftest.er1
39947   ac_status=$?
39948   grep -v '^ *+' conftest.er1 >conftest.err
39949   rm -f conftest.er1
39950   cat conftest.err >&5
39951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952   (exit $ac_status); } &&
39953          { ac_try='test -z "$ac_c_werror_flag"
39954                          || test ! -s conftest.err'
39955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39956   (eval $ac_try) 2>&5
39957   ac_status=$?
39958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39959   (exit $ac_status); }; } &&
39960          { ac_try='test -s conftest.$ac_objext'
39961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39962   (eval $ac_try) 2>&5
39963   ac_status=$?
39964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39965   (exit $ac_status); }; }; then
39966   ac_cv_member_struct_passwd_pw_passwd=yes
39967 else
39968   echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39970
39971 cat >conftest.$ac_ext <<_ACEOF
39972 /* confdefs.h.  */
39973 _ACEOF
39974 cat confdefs.h >>conftest.$ac_ext
39975 cat >>conftest.$ac_ext <<_ACEOF
39976 /* end confdefs.h.  */
39977 $ac_includes_default
39978 #include <pwd.h>
39979
39980 int
39981 main ()
39982 {
39983 static struct passwd ac_aggr;
39984 if (sizeof ac_aggr.pw_passwd)
39985 return 0;
39986   ;
39987   return 0;
39988 }
39989 _ACEOF
39990 rm -f conftest.$ac_objext
39991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39992   (eval $ac_compile) 2>conftest.er1
39993   ac_status=$?
39994   grep -v '^ *+' conftest.er1 >conftest.err
39995   rm -f conftest.er1
39996   cat conftest.err >&5
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); } &&
39999          { ac_try='test -z "$ac_c_werror_flag"
40000                          || test ! -s conftest.err'
40001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40002   (eval $ac_try) 2>&5
40003   ac_status=$?
40004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005   (exit $ac_status); }; } &&
40006          { ac_try='test -s conftest.$ac_objext'
40007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40008   (eval $ac_try) 2>&5
40009   ac_status=$?
40010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011   (exit $ac_status); }; }; then
40012   ac_cv_member_struct_passwd_pw_passwd=yes
40013 else
40014   echo "$as_me: failed program was:" >&5
40015 sed 's/^/| /' conftest.$ac_ext >&5
40016
40017 ac_cv_member_struct_passwd_pw_passwd=no
40018 fi
40019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40020 fi
40021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40022 fi
40023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
40024 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
40025 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
40026
40027 cat >>confdefs.h <<_ACEOF
40028 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
40029 _ACEOF
40030
40031
40032 fi
40033
40034
40035 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
40036 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
40037 if test "${ol_cv_c_upper_lower+set}" = set; then
40038   echo $ECHO_N "(cached) $ECHO_C" >&6
40039 else
40040
40041         if test "$cross_compiling" = yes; then
40042   ol_cv_c_upper_lower=safe
40043 else
40044   cat >conftest.$ac_ext <<_ACEOF
40045 /* confdefs.h.  */
40046 _ACEOF
40047 cat confdefs.h >>conftest.$ac_ext
40048 cat >>conftest.$ac_ext <<_ACEOF
40049 /* end confdefs.h.  */
40050
40051 #include <ctype.h>
40052 main()
40053 {
40054         if ('C' == toupper('C'))
40055                 exit(0);
40056         else
40057                 exit(1);
40058 }
40059 _ACEOF
40060 rm -f conftest$ac_exeext
40061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40062   (eval $ac_link) 2>&5
40063   ac_status=$?
40064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40067   (eval $ac_try) 2>&5
40068   ac_status=$?
40069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40070   (exit $ac_status); }; }; then
40071   ol_cv_c_upper_lower=no
40072 else
40073   echo "$as_me: program exited with status $ac_status" >&5
40074 echo "$as_me: failed program was:" >&5
40075 sed 's/^/| /' conftest.$ac_ext >&5
40076
40077 ( exit $ac_status )
40078 ol_cv_c_upper_lower=yes
40079 fi
40080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40081 fi
40082 fi
40083 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40084 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40085 if test $ol_cv_c_upper_lower != no ; then
40086
40087 cat >>confdefs.h <<\_ACEOF
40088 #define C_UPPER_LOWER 1
40089 _ACEOF
40090
40091 fi
40092
40093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40095 if test "${ac_cv_c_const+set}" = set; then
40096   echo $ECHO_N "(cached) $ECHO_C" >&6
40097 else
40098   cat >conftest.$ac_ext <<_ACEOF
40099 /* confdefs.h.  */
40100 _ACEOF
40101 cat confdefs.h >>conftest.$ac_ext
40102 cat >>conftest.$ac_ext <<_ACEOF
40103 /* end confdefs.h.  */
40104
40105 int
40106 main ()
40107 {
40108 /* FIXME: Include the comments suggested by Paul. */
40109 #ifndef __cplusplus
40110   /* Ultrix mips cc rejects this.  */
40111   typedef int charset[2];
40112   const charset x;
40113   /* SunOS 4.1.1 cc rejects this.  */
40114   char const *const *ccp;
40115   char **p;
40116   /* NEC SVR4.0.2 mips cc rejects this.  */
40117   struct point {int x, y;};
40118   static struct point const zero = {0,0};
40119   /* AIX XL C 1.02.0.0 rejects this.
40120      It does not let you subtract one const X* pointer from another in
40121      an arm of an if-expression whose if-part is not a constant
40122      expression */
40123   const char *g = "string";
40124   ccp = &g + (g ? g-g : 0);
40125   /* HPUX 7.0 cc rejects these. */
40126   ++ccp;
40127   p = (char**) ccp;
40128   ccp = (char const *const *) p;
40129   { /* SCO 3.2v4 cc rejects this.  */
40130     char *t;
40131     char const *s = 0 ? (char *) 0 : (char const *) 0;
40132
40133     *t++ = 0;
40134   }
40135   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40136     int x[] = {25, 17};
40137     const int *foo = &x[0];
40138     ++foo;
40139   }
40140   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40141     typedef const int *iptr;
40142     iptr p = 0;
40143     ++p;
40144   }
40145   { /* AIX XL C 1.02.0.0 rejects this saying
40146        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40147     struct s { int j; const int *ap[3]; };
40148     struct s *b; b->j = 5;
40149   }
40150   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40151     const int foo = 10;
40152   }
40153 #endif
40154
40155   ;
40156   return 0;
40157 }
40158 _ACEOF
40159 rm -f conftest.$ac_objext
40160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40161   (eval $ac_compile) 2>conftest.er1
40162   ac_status=$?
40163   grep -v '^ *+' conftest.er1 >conftest.err
40164   rm -f conftest.er1
40165   cat conftest.err >&5
40166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167   (exit $ac_status); } &&
40168          { ac_try='test -z "$ac_c_werror_flag"
40169                          || test ! -s conftest.err'
40170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40171   (eval $ac_try) 2>&5
40172   ac_status=$?
40173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174   (exit $ac_status); }; } &&
40175          { ac_try='test -s conftest.$ac_objext'
40176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177   (eval $ac_try) 2>&5
40178   ac_status=$?
40179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180   (exit $ac_status); }; }; then
40181   ac_cv_c_const=yes
40182 else
40183   echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40185
40186 ac_cv_c_const=no
40187 fi
40188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40189 fi
40190 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40191 echo "${ECHO_T}$ac_cv_c_const" >&6
40192 if test $ac_cv_c_const = no; then
40193
40194 cat >>confdefs.h <<\_ACEOF
40195 #define const
40196 _ACEOF
40197
40198 fi
40199
40200 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40201 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40202 if test "${ol_cv_c_volatile+set}" = set; then
40203   echo $ECHO_N "(cached) $ECHO_C" >&6
40204 else
40205   cat >conftest.$ac_ext <<_ACEOF
40206 /* confdefs.h.  */
40207 _ACEOF
40208 cat confdefs.h >>conftest.$ac_ext
40209 cat >>conftest.$ac_ext <<_ACEOF
40210 /* end confdefs.h.  */
40211 int x, y, z;
40212 int
40213 main ()
40214 {
40215 volatile int a; int * volatile b = x ? &y : &z;
40216       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40217       *b = 0;
40218   ;
40219   return 0;
40220 }
40221 _ACEOF
40222 rm -f conftest.$ac_objext
40223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40224   (eval $ac_compile) 2>conftest.er1
40225   ac_status=$?
40226   grep -v '^ *+' conftest.er1 >conftest.err
40227   rm -f conftest.er1
40228   cat conftest.err >&5
40229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230   (exit $ac_status); } &&
40231          { ac_try='test -z "$ac_c_werror_flag"
40232                          || test ! -s conftest.err'
40233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234   (eval $ac_try) 2>&5
40235   ac_status=$?
40236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237   (exit $ac_status); }; } &&
40238          { ac_try='test -s conftest.$ac_objext'
40239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40240   (eval $ac_try) 2>&5
40241   ac_status=$?
40242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40243   (exit $ac_status); }; }; then
40244   ol_cv_c_volatile=yes
40245 else
40246   echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.$ac_ext >&5
40248
40249 ol_cv_c_volatile=no
40250 fi
40251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40252 fi
40253 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40254 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40255   if test $ol_cv_c_volatile = yes; then
40256     :
40257   else
40258
40259 cat >>confdefs.h <<\_ACEOF
40260 #define volatile
40261 _ACEOF
40262
40263   fi
40264
40265
40266 if test $cross_compiling = yes ; then
40267         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40268 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40269
40270 cat >>confdefs.h <<\_ACEOF
40271 #define CROSS_COMPILING 1
40272 _ACEOF
40273
40274 else
40275         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40276 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40277 if test "${ac_cv_c_bigendian+set}" = set; then
40278   echo $ECHO_N "(cached) $ECHO_C" >&6
40279 else
40280   # See if sys/param.h defines the BYTE_ORDER macro.
40281 cat >conftest.$ac_ext <<_ACEOF
40282 /* confdefs.h.  */
40283 _ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h.  */
40287 #include <sys/types.h>
40288 #include <sys/param.h>
40289
40290 int
40291 main ()
40292 {
40293 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40294  bogus endian macros
40295 #endif
40296
40297   ;
40298   return 0;
40299 }
40300 _ACEOF
40301 rm -f conftest.$ac_objext
40302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40303   (eval $ac_compile) 2>conftest.er1
40304   ac_status=$?
40305   grep -v '^ *+' conftest.er1 >conftest.err
40306   rm -f conftest.er1
40307   cat conftest.err >&5
40308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309   (exit $ac_status); } &&
40310          { ac_try='test -z "$ac_c_werror_flag"
40311                          || test ! -s conftest.err'
40312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313   (eval $ac_try) 2>&5
40314   ac_status=$?
40315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316   (exit $ac_status); }; } &&
40317          { ac_try='test -s conftest.$ac_objext'
40318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319   (eval $ac_try) 2>&5
40320   ac_status=$?
40321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322   (exit $ac_status); }; }; then
40323   # It does; now see whether it defined to BIG_ENDIAN or not.
40324 cat >conftest.$ac_ext <<_ACEOF
40325 /* confdefs.h.  */
40326 _ACEOF
40327 cat confdefs.h >>conftest.$ac_ext
40328 cat >>conftest.$ac_ext <<_ACEOF
40329 /* end confdefs.h.  */
40330 #include <sys/types.h>
40331 #include <sys/param.h>
40332
40333 int
40334 main ()
40335 {
40336 #if BYTE_ORDER != BIG_ENDIAN
40337  not big endian
40338 #endif
40339
40340   ;
40341   return 0;
40342 }
40343 _ACEOF
40344 rm -f conftest.$ac_objext
40345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40346   (eval $ac_compile) 2>conftest.er1
40347   ac_status=$?
40348   grep -v '^ *+' conftest.er1 >conftest.err
40349   rm -f conftest.er1
40350   cat conftest.err >&5
40351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352   (exit $ac_status); } &&
40353          { ac_try='test -z "$ac_c_werror_flag"
40354                          || test ! -s conftest.err'
40355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40356   (eval $ac_try) 2>&5
40357   ac_status=$?
40358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40359   (exit $ac_status); }; } &&
40360          { ac_try='test -s conftest.$ac_objext'
40361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362   (eval $ac_try) 2>&5
40363   ac_status=$?
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); }; }; then
40366   ac_cv_c_bigendian=yes
40367 else
40368   echo "$as_me: failed program was:" >&5
40369 sed 's/^/| /' conftest.$ac_ext >&5
40370
40371 ac_cv_c_bigendian=no
40372 fi
40373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40374 else
40375   echo "$as_me: failed program was:" >&5
40376 sed 's/^/| /' conftest.$ac_ext >&5
40377
40378 # It does not; compile a test program.
40379 if test "$cross_compiling" = yes; then
40380   # try to guess the endianness by grepping values into an object file
40381   ac_cv_c_bigendian=unknown
40382   cat >conftest.$ac_ext <<_ACEOF
40383 /* confdefs.h.  */
40384 _ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h.  */
40388 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40389 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40390 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40391 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40392 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40393 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40394 int
40395 main ()
40396 {
40397  _ascii (); _ebcdic ();
40398   ;
40399   return 0;
40400 }
40401 _ACEOF
40402 rm -f conftest.$ac_objext
40403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40404   (eval $ac_compile) 2>conftest.er1
40405   ac_status=$?
40406   grep -v '^ *+' conftest.er1 >conftest.err
40407   rm -f conftest.er1
40408   cat conftest.err >&5
40409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40410   (exit $ac_status); } &&
40411          { ac_try='test -z "$ac_c_werror_flag"
40412                          || test ! -s conftest.err'
40413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414   (eval $ac_try) 2>&5
40415   ac_status=$?
40416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417   (exit $ac_status); }; } &&
40418          { ac_try='test -s conftest.$ac_objext'
40419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40420   (eval $ac_try) 2>&5
40421   ac_status=$?
40422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40423   (exit $ac_status); }; }; then
40424   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40425   ac_cv_c_bigendian=yes
40426 fi
40427 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40428   if test "$ac_cv_c_bigendian" = unknown; then
40429     ac_cv_c_bigendian=no
40430   else
40431     # finding both strings is unlikely to happen, but who knows?
40432     ac_cv_c_bigendian=unknown
40433   fi
40434 fi
40435 else
40436   echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40438
40439 fi
40440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40441 else
40442   cat >conftest.$ac_ext <<_ACEOF
40443 /* confdefs.h.  */
40444 _ACEOF
40445 cat confdefs.h >>conftest.$ac_ext
40446 cat >>conftest.$ac_ext <<_ACEOF
40447 /* end confdefs.h.  */
40448 int
40449 main ()
40450 {
40451   /* Are we little or big endian?  From Harbison&Steele.  */
40452   union
40453   {
40454     long l;
40455     char c[sizeof (long)];
40456   } u;
40457   u.l = 1;
40458   exit (u.c[sizeof (long) - 1] == 1);
40459 }
40460 _ACEOF
40461 rm -f conftest$ac_exeext
40462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40463   (eval $ac_link) 2>&5
40464   ac_status=$?
40465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40468   (eval $ac_try) 2>&5
40469   ac_status=$?
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); }; }; then
40472   ac_cv_c_bigendian=no
40473 else
40474   echo "$as_me: program exited with status $ac_status" >&5
40475 echo "$as_me: failed program was:" >&5
40476 sed 's/^/| /' conftest.$ac_ext >&5
40477
40478 ( exit $ac_status )
40479 ac_cv_c_bigendian=yes
40480 fi
40481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40482 fi
40483 fi
40484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40485 fi
40486 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40487 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40488 case $ac_cv_c_bigendian in
40489   yes)
40490
40491 cat >>confdefs.h <<\_ACEOF
40492 #define WORDS_BIGENDIAN 1
40493 _ACEOF
40494  ;;
40495   no)
40496      ;;
40497   *)
40498     { { echo "$as_me:$LINENO: error: unknown endianness
40499 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40500 echo "$as_me: error: unknown endianness
40501 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40502    { (exit 1); exit 1; }; } ;;
40503 esac
40504
40505 fi
40506
40507 echo "$as_me:$LINENO: checking for short" >&5
40508 echo $ECHO_N "checking for short... $ECHO_C" >&6
40509 if test "${ac_cv_type_short+set}" = set; then
40510   echo $ECHO_N "(cached) $ECHO_C" >&6
40511 else
40512   cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518 $ac_includes_default
40519 int
40520 main ()
40521 {
40522 if ((short *) 0)
40523   return 0;
40524 if (sizeof (short))
40525   return 0;
40526   ;
40527   return 0;
40528 }
40529 _ACEOF
40530 rm -f conftest.$ac_objext
40531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40532   (eval $ac_compile) 2>conftest.er1
40533   ac_status=$?
40534   grep -v '^ *+' conftest.er1 >conftest.err
40535   rm -f conftest.er1
40536   cat conftest.err >&5
40537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40538   (exit $ac_status); } &&
40539          { ac_try='test -z "$ac_c_werror_flag"
40540                          || test ! -s conftest.err'
40541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40542   (eval $ac_try) 2>&5
40543   ac_status=$?
40544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40545   (exit $ac_status); }; } &&
40546          { ac_try='test -s conftest.$ac_objext'
40547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40548   (eval $ac_try) 2>&5
40549   ac_status=$?
40550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551   (exit $ac_status); }; }; then
40552   ac_cv_type_short=yes
40553 else
40554   echo "$as_me: failed program was:" >&5
40555 sed 's/^/| /' conftest.$ac_ext >&5
40556
40557 ac_cv_type_short=no
40558 fi
40559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40560 fi
40561 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40562 echo "${ECHO_T}$ac_cv_type_short" >&6
40563
40564 echo "$as_me:$LINENO: checking size of short" >&5
40565 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40566 if test "${ac_cv_sizeof_short+set}" = set; then
40567   echo $ECHO_N "(cached) $ECHO_C" >&6
40568 else
40569   if test "$ac_cv_type_short" = yes; then
40570   # The cast to unsigned long works around a bug in the HP C Compiler
40571   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40572   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40573   # This bug is HP SR number 8606223364.
40574   if test "$cross_compiling" = yes; then
40575   # Depending upon the size, compute the lo and hi bounds.
40576 cat >conftest.$ac_ext <<_ACEOF
40577 /* confdefs.h.  */
40578 _ACEOF
40579 cat confdefs.h >>conftest.$ac_ext
40580 cat >>conftest.$ac_ext <<_ACEOF
40581 /* end confdefs.h.  */
40582 $ac_includes_default
40583 int
40584 main ()
40585 {
40586 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40587 test_array [0] = 0
40588
40589   ;
40590   return 0;
40591 }
40592 _ACEOF
40593 rm -f conftest.$ac_objext
40594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40595   (eval $ac_compile) 2>conftest.er1
40596   ac_status=$?
40597   grep -v '^ *+' conftest.er1 >conftest.err
40598   rm -f conftest.er1
40599   cat conftest.err >&5
40600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40601   (exit $ac_status); } &&
40602          { ac_try='test -z "$ac_c_werror_flag"
40603                          || test ! -s conftest.err'
40604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605   (eval $ac_try) 2>&5
40606   ac_status=$?
40607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608   (exit $ac_status); }; } &&
40609          { ac_try='test -s conftest.$ac_objext'
40610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40611   (eval $ac_try) 2>&5
40612   ac_status=$?
40613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40614   (exit $ac_status); }; }; then
40615   ac_lo=0 ac_mid=0
40616   while :; do
40617     cat >conftest.$ac_ext <<_ACEOF
40618 /* confdefs.h.  */
40619 _ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h.  */
40623 $ac_includes_default
40624 int
40625 main ()
40626 {
40627 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40628 test_array [0] = 0
40629
40630   ;
40631   return 0;
40632 }
40633 _ACEOF
40634 rm -f conftest.$ac_objext
40635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40636   (eval $ac_compile) 2>conftest.er1
40637   ac_status=$?
40638   grep -v '^ *+' conftest.er1 >conftest.err
40639   rm -f conftest.er1
40640   cat conftest.err >&5
40641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642   (exit $ac_status); } &&
40643          { ac_try='test -z "$ac_c_werror_flag"
40644                          || test ! -s conftest.err'
40645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646   (eval $ac_try) 2>&5
40647   ac_status=$?
40648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649   (exit $ac_status); }; } &&
40650          { ac_try='test -s conftest.$ac_objext'
40651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40652   (eval $ac_try) 2>&5
40653   ac_status=$?
40654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40655   (exit $ac_status); }; }; then
40656   ac_hi=$ac_mid; break
40657 else
40658   echo "$as_me: failed program was:" >&5
40659 sed 's/^/| /' conftest.$ac_ext >&5
40660
40661 ac_lo=`expr $ac_mid + 1`
40662                     if test $ac_lo -le $ac_mid; then
40663                       ac_lo= ac_hi=
40664                       break
40665                     fi
40666                     ac_mid=`expr 2 '*' $ac_mid + 1`
40667 fi
40668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40669   done
40670 else
40671   echo "$as_me: failed program was:" >&5
40672 sed 's/^/| /' conftest.$ac_ext >&5
40673
40674 cat >conftest.$ac_ext <<_ACEOF
40675 /* confdefs.h.  */
40676 _ACEOF
40677 cat confdefs.h >>conftest.$ac_ext
40678 cat >>conftest.$ac_ext <<_ACEOF
40679 /* end confdefs.h.  */
40680 $ac_includes_default
40681 int
40682 main ()
40683 {
40684 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40685 test_array [0] = 0
40686
40687   ;
40688   return 0;
40689 }
40690 _ACEOF
40691 rm -f conftest.$ac_objext
40692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40693   (eval $ac_compile) 2>conftest.er1
40694   ac_status=$?
40695   grep -v '^ *+' conftest.er1 >conftest.err
40696   rm -f conftest.er1
40697   cat conftest.err >&5
40698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699   (exit $ac_status); } &&
40700          { ac_try='test -z "$ac_c_werror_flag"
40701                          || test ! -s conftest.err'
40702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40703   (eval $ac_try) 2>&5
40704   ac_status=$?
40705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40706   (exit $ac_status); }; } &&
40707          { ac_try='test -s conftest.$ac_objext'
40708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40709   (eval $ac_try) 2>&5
40710   ac_status=$?
40711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40712   (exit $ac_status); }; }; then
40713   ac_hi=-1 ac_mid=-1
40714   while :; do
40715     cat >conftest.$ac_ext <<_ACEOF
40716 /* confdefs.h.  */
40717 _ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h.  */
40721 $ac_includes_default
40722 int
40723 main ()
40724 {
40725 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40726 test_array [0] = 0
40727
40728   ;
40729   return 0;
40730 }
40731 _ACEOF
40732 rm -f conftest.$ac_objext
40733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40734   (eval $ac_compile) 2>conftest.er1
40735   ac_status=$?
40736   grep -v '^ *+' conftest.er1 >conftest.err
40737   rm -f conftest.er1
40738   cat conftest.err >&5
40739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740   (exit $ac_status); } &&
40741          { ac_try='test -z "$ac_c_werror_flag"
40742                          || test ! -s conftest.err'
40743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40744   (eval $ac_try) 2>&5
40745   ac_status=$?
40746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); }; } &&
40748          { ac_try='test -s conftest.$ac_objext'
40749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40750   (eval $ac_try) 2>&5
40751   ac_status=$?
40752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753   (exit $ac_status); }; }; then
40754   ac_lo=$ac_mid; break
40755 else
40756   echo "$as_me: failed program was:" >&5
40757 sed 's/^/| /' conftest.$ac_ext >&5
40758
40759 ac_hi=`expr '(' $ac_mid ')' - 1`
40760                        if test $ac_mid -le $ac_hi; then
40761                          ac_lo= ac_hi=
40762                          break
40763                        fi
40764                        ac_mid=`expr 2 '*' $ac_mid`
40765 fi
40766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40767   done
40768 else
40769   echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40771
40772 ac_lo= ac_hi=
40773 fi
40774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40775 fi
40776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40777 # Binary search between lo and hi bounds.
40778 while test "x$ac_lo" != "x$ac_hi"; do
40779   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40780   cat >conftest.$ac_ext <<_ACEOF
40781 /* confdefs.h.  */
40782 _ACEOF
40783 cat confdefs.h >>conftest.$ac_ext
40784 cat >>conftest.$ac_ext <<_ACEOF
40785 /* end confdefs.h.  */
40786 $ac_includes_default
40787 int
40788 main ()
40789 {
40790 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40791 test_array [0] = 0
40792
40793   ;
40794   return 0;
40795 }
40796 _ACEOF
40797 rm -f conftest.$ac_objext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40799   (eval $ac_compile) 2>conftest.er1
40800   ac_status=$?
40801   grep -v '^ *+' conftest.er1 >conftest.err
40802   rm -f conftest.er1
40803   cat conftest.err >&5
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); } &&
40806          { ac_try='test -z "$ac_c_werror_flag"
40807                          || test ! -s conftest.err'
40808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809   (eval $ac_try) 2>&5
40810   ac_status=$?
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); }; } &&
40813          { ac_try='test -s conftest.$ac_objext'
40814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815   (eval $ac_try) 2>&5
40816   ac_status=$?
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); }; }; then
40819   ac_hi=$ac_mid
40820 else
40821   echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40823
40824 ac_lo=`expr '(' $ac_mid ')' + 1`
40825 fi
40826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40827 done
40828 case $ac_lo in
40829 ?*) ac_cv_sizeof_short=$ac_lo;;
40830 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40831 See \`config.log' for more details." >&5
40832 echo "$as_me: error: cannot compute sizeof (short), 77
40833 See \`config.log' for more details." >&2;}
40834    { (exit 1); exit 1; }; } ;;
40835 esac
40836 else
40837   if test "$cross_compiling" = yes; then
40838   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40839 See \`config.log' for more details." >&5
40840 echo "$as_me: error: cannot run test program while cross compiling
40841 See \`config.log' for more details." >&2;}
40842    { (exit 1); exit 1; }; }
40843 else
40844   cat >conftest.$ac_ext <<_ACEOF
40845 /* confdefs.h.  */
40846 _ACEOF
40847 cat confdefs.h >>conftest.$ac_ext
40848 cat >>conftest.$ac_ext <<_ACEOF
40849 /* end confdefs.h.  */
40850 $ac_includes_default
40851 long longval () { return (long) (sizeof (short)); }
40852 unsigned long ulongval () { return (long) (sizeof (short)); }
40853 #include <stdio.h>
40854 #include <stdlib.h>
40855 int
40856 main ()
40857 {
40858
40859   FILE *f = fopen ("conftest.val", "w");
40860   if (! f)
40861     exit (1);
40862   if (((long) (sizeof (short))) < 0)
40863     {
40864       long i = longval ();
40865       if (i != ((long) (sizeof (short))))
40866         exit (1);
40867       fprintf (f, "%ld\n", i);
40868     }
40869   else
40870     {
40871       unsigned long i = ulongval ();
40872       if (i != ((long) (sizeof (short))))
40873         exit (1);
40874       fprintf (f, "%lu\n", i);
40875     }
40876   exit (ferror (f) || fclose (f) != 0);
40877
40878   ;
40879   return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884   (eval $ac_link) 2>&5
40885   ac_status=$?
40886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40889   (eval $ac_try) 2>&5
40890   ac_status=$?
40891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40892   (exit $ac_status); }; }; then
40893   ac_cv_sizeof_short=`cat conftest.val`
40894 else
40895   echo "$as_me: program exited with status $ac_status" >&5
40896 echo "$as_me: failed program was:" >&5
40897 sed 's/^/| /' conftest.$ac_ext >&5
40898
40899 ( exit $ac_status )
40900 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40901 See \`config.log' for more details." >&5
40902 echo "$as_me: error: cannot compute sizeof (short), 77
40903 See \`config.log' for more details." >&2;}
40904    { (exit 1); exit 1; }; }
40905 fi
40906 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40907 fi
40908 fi
40909 rm -f conftest.val
40910 else
40911   ac_cv_sizeof_short=0
40912 fi
40913 fi
40914 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40915 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40916 cat >>confdefs.h <<_ACEOF
40917 #define SIZEOF_SHORT $ac_cv_sizeof_short
40918 _ACEOF
40919
40920
40921 echo "$as_me:$LINENO: checking for int" >&5
40922 echo $ECHO_N "checking for int... $ECHO_C" >&6
40923 if test "${ac_cv_type_int+set}" = set; then
40924   echo $ECHO_N "(cached) $ECHO_C" >&6
40925 else
40926   cat >conftest.$ac_ext <<_ACEOF
40927 /* confdefs.h.  */
40928 _ACEOF
40929 cat confdefs.h >>conftest.$ac_ext
40930 cat >>conftest.$ac_ext <<_ACEOF
40931 /* end confdefs.h.  */
40932 $ac_includes_default
40933 int
40934 main ()
40935 {
40936 if ((int *) 0)
40937   return 0;
40938 if (sizeof (int))
40939   return 0;
40940   ;
40941   return 0;
40942 }
40943 _ACEOF
40944 rm -f conftest.$ac_objext
40945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40946   (eval $ac_compile) 2>conftest.er1
40947   ac_status=$?
40948   grep -v '^ *+' conftest.er1 >conftest.err
40949   rm -f conftest.er1
40950   cat conftest.err >&5
40951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952   (exit $ac_status); } &&
40953          { ac_try='test -z "$ac_c_werror_flag"
40954                          || test ! -s conftest.err'
40955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40956   (eval $ac_try) 2>&5
40957   ac_status=$?
40958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959   (exit $ac_status); }; } &&
40960          { ac_try='test -s conftest.$ac_objext'
40961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962   (eval $ac_try) 2>&5
40963   ac_status=$?
40964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965   (exit $ac_status); }; }; then
40966   ac_cv_type_int=yes
40967 else
40968   echo "$as_me: failed program was:" >&5
40969 sed 's/^/| /' conftest.$ac_ext >&5
40970
40971 ac_cv_type_int=no
40972 fi
40973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40974 fi
40975 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40976 echo "${ECHO_T}$ac_cv_type_int" >&6
40977
40978 echo "$as_me:$LINENO: checking size of int" >&5
40979 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40980 if test "${ac_cv_sizeof_int+set}" = set; then
40981   echo $ECHO_N "(cached) $ECHO_C" >&6
40982 else
40983   if test "$ac_cv_type_int" = yes; then
40984   # The cast to unsigned long works around a bug in the HP C Compiler
40985   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40986   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40987   # This bug is HP SR number 8606223364.
40988   if test "$cross_compiling" = yes; then
40989   # Depending upon the size, compute the lo and hi bounds.
40990 cat >conftest.$ac_ext <<_ACEOF
40991 /* confdefs.h.  */
40992 _ACEOF
40993 cat confdefs.h >>conftest.$ac_ext
40994 cat >>conftest.$ac_ext <<_ACEOF
40995 /* end confdefs.h.  */
40996 $ac_includes_default
40997 int
40998 main ()
40999 {
41000 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
41001 test_array [0] = 0
41002
41003   ;
41004   return 0;
41005 }
41006 _ACEOF
41007 rm -f conftest.$ac_objext
41008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41009   (eval $ac_compile) 2>conftest.er1
41010   ac_status=$?
41011   grep -v '^ *+' conftest.er1 >conftest.err
41012   rm -f conftest.er1
41013   cat conftest.err >&5
41014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41015   (exit $ac_status); } &&
41016          { ac_try='test -z "$ac_c_werror_flag"
41017                          || test ! -s conftest.err'
41018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41019   (eval $ac_try) 2>&5
41020   ac_status=$?
41021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); }; } &&
41023          { ac_try='test -s conftest.$ac_objext'
41024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41025   (eval $ac_try) 2>&5
41026   ac_status=$?
41027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41028   (exit $ac_status); }; }; then
41029   ac_lo=0 ac_mid=0
41030   while :; do
41031     cat >conftest.$ac_ext <<_ACEOF
41032 /* confdefs.h.  */
41033 _ACEOF
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h.  */
41037 $ac_includes_default
41038 int
41039 main ()
41040 {
41041 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41042 test_array [0] = 0
41043
41044   ;
41045   return 0;
41046 }
41047 _ACEOF
41048 rm -f conftest.$ac_objext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050   (eval $ac_compile) 2>conftest.er1
41051   ac_status=$?
41052   grep -v '^ *+' conftest.er1 >conftest.err
41053   rm -f conftest.er1
41054   cat conftest.err >&5
41055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056   (exit $ac_status); } &&
41057          { ac_try='test -z "$ac_c_werror_flag"
41058                          || test ! -s conftest.err'
41059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060   (eval $ac_try) 2>&5
41061   ac_status=$?
41062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063   (exit $ac_status); }; } &&
41064          { ac_try='test -s conftest.$ac_objext'
41065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066   (eval $ac_try) 2>&5
41067   ac_status=$?
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); }; }; then
41070   ac_hi=$ac_mid; break
41071 else
41072   echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41074
41075 ac_lo=`expr $ac_mid + 1`
41076                     if test $ac_lo -le $ac_mid; then
41077                       ac_lo= ac_hi=
41078                       break
41079                     fi
41080                     ac_mid=`expr 2 '*' $ac_mid + 1`
41081 fi
41082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41083   done
41084 else
41085   echo "$as_me: failed program was:" >&5
41086 sed 's/^/| /' conftest.$ac_ext >&5
41087
41088 cat >conftest.$ac_ext <<_ACEOF
41089 /* confdefs.h.  */
41090 _ACEOF
41091 cat confdefs.h >>conftest.$ac_ext
41092 cat >>conftest.$ac_ext <<_ACEOF
41093 /* end confdefs.h.  */
41094 $ac_includes_default
41095 int
41096 main ()
41097 {
41098 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41099 test_array [0] = 0
41100
41101   ;
41102   return 0;
41103 }
41104 _ACEOF
41105 rm -f conftest.$ac_objext
41106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41107   (eval $ac_compile) 2>conftest.er1
41108   ac_status=$?
41109   grep -v '^ *+' conftest.er1 >conftest.err
41110   rm -f conftest.er1
41111   cat conftest.err >&5
41112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41113   (exit $ac_status); } &&
41114          { ac_try='test -z "$ac_c_werror_flag"
41115                          || test ! -s conftest.err'
41116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41117   (eval $ac_try) 2>&5
41118   ac_status=$?
41119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41120   (exit $ac_status); }; } &&
41121          { ac_try='test -s conftest.$ac_objext'
41122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41123   (eval $ac_try) 2>&5
41124   ac_status=$?
41125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126   (exit $ac_status); }; }; then
41127   ac_hi=-1 ac_mid=-1
41128   while :; do
41129     cat >conftest.$ac_ext <<_ACEOF
41130 /* confdefs.h.  */
41131 _ACEOF
41132 cat confdefs.h >>conftest.$ac_ext
41133 cat >>conftest.$ac_ext <<_ACEOF
41134 /* end confdefs.h.  */
41135 $ac_includes_default
41136 int
41137 main ()
41138 {
41139 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41140 test_array [0] = 0
41141
41142   ;
41143   return 0;
41144 }
41145 _ACEOF
41146 rm -f conftest.$ac_objext
41147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41148   (eval $ac_compile) 2>conftest.er1
41149   ac_status=$?
41150   grep -v '^ *+' conftest.er1 >conftest.err
41151   rm -f conftest.er1
41152   cat conftest.err >&5
41153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41154   (exit $ac_status); } &&
41155          { ac_try='test -z "$ac_c_werror_flag"
41156                          || test ! -s conftest.err'
41157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158   (eval $ac_try) 2>&5
41159   ac_status=$?
41160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); }; } &&
41162          { ac_try='test -s conftest.$ac_objext'
41163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41164   (eval $ac_try) 2>&5
41165   ac_status=$?
41166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167   (exit $ac_status); }; }; then
41168   ac_lo=$ac_mid; break
41169 else
41170   echo "$as_me: failed program was:" >&5
41171 sed 's/^/| /' conftest.$ac_ext >&5
41172
41173 ac_hi=`expr '(' $ac_mid ')' - 1`
41174                        if test $ac_mid -le $ac_hi; then
41175                          ac_lo= ac_hi=
41176                          break
41177                        fi
41178                        ac_mid=`expr 2 '*' $ac_mid`
41179 fi
41180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41181   done
41182 else
41183   echo "$as_me: failed program was:" >&5
41184 sed 's/^/| /' conftest.$ac_ext >&5
41185
41186 ac_lo= ac_hi=
41187 fi
41188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41189 fi
41190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41191 # Binary search between lo and hi bounds.
41192 while test "x$ac_lo" != "x$ac_hi"; do
41193   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41194   cat >conftest.$ac_ext <<_ACEOF
41195 /* confdefs.h.  */
41196 _ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h.  */
41200 $ac_includes_default
41201 int
41202 main ()
41203 {
41204 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41205 test_array [0] = 0
41206
41207   ;
41208   return 0;
41209 }
41210 _ACEOF
41211 rm -f conftest.$ac_objext
41212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41213   (eval $ac_compile) 2>conftest.er1
41214   ac_status=$?
41215   grep -v '^ *+' conftest.er1 >conftest.err
41216   rm -f conftest.er1
41217   cat conftest.err >&5
41218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41219   (exit $ac_status); } &&
41220          { ac_try='test -z "$ac_c_werror_flag"
41221                          || test ! -s conftest.err'
41222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41223   (eval $ac_try) 2>&5
41224   ac_status=$?
41225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41226   (exit $ac_status); }; } &&
41227          { ac_try='test -s conftest.$ac_objext'
41228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41229   (eval $ac_try) 2>&5
41230   ac_status=$?
41231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); }; }; then
41233   ac_hi=$ac_mid
41234 else
41235   echo "$as_me: failed program was:" >&5
41236 sed 's/^/| /' conftest.$ac_ext >&5
41237
41238 ac_lo=`expr '(' $ac_mid ')' + 1`
41239 fi
41240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41241 done
41242 case $ac_lo in
41243 ?*) ac_cv_sizeof_int=$ac_lo;;
41244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41245 See \`config.log' for more details." >&5
41246 echo "$as_me: error: cannot compute sizeof (int), 77
41247 See \`config.log' for more details." >&2;}
41248    { (exit 1); exit 1; }; } ;;
41249 esac
41250 else
41251   if test "$cross_compiling" = yes; then
41252   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41253 See \`config.log' for more details." >&5
41254 echo "$as_me: error: cannot run test program while cross compiling
41255 See \`config.log' for more details." >&2;}
41256    { (exit 1); exit 1; }; }
41257 else
41258   cat >conftest.$ac_ext <<_ACEOF
41259 /* confdefs.h.  */
41260 _ACEOF
41261 cat confdefs.h >>conftest.$ac_ext
41262 cat >>conftest.$ac_ext <<_ACEOF
41263 /* end confdefs.h.  */
41264 $ac_includes_default
41265 long longval () { return (long) (sizeof (int)); }
41266 unsigned long ulongval () { return (long) (sizeof (int)); }
41267 #include <stdio.h>
41268 #include <stdlib.h>
41269 int
41270 main ()
41271 {
41272
41273   FILE *f = fopen ("conftest.val", "w");
41274   if (! f)
41275     exit (1);
41276   if (((long) (sizeof (int))) < 0)
41277     {
41278       long i = longval ();
41279       if (i != ((long) (sizeof (int))))
41280         exit (1);
41281       fprintf (f, "%ld\n", i);
41282     }
41283   else
41284     {
41285       unsigned long i = ulongval ();
41286       if (i != ((long) (sizeof (int))))
41287         exit (1);
41288       fprintf (f, "%lu\n", i);
41289     }
41290   exit (ferror (f) || fclose (f) != 0);
41291
41292   ;
41293   return 0;
41294 }
41295 _ACEOF
41296 rm -f conftest$ac_exeext
41297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41298   (eval $ac_link) 2>&5
41299   ac_status=$?
41300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41303   (eval $ac_try) 2>&5
41304   ac_status=$?
41305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41306   (exit $ac_status); }; }; then
41307   ac_cv_sizeof_int=`cat conftest.val`
41308 else
41309   echo "$as_me: program exited with status $ac_status" >&5
41310 echo "$as_me: failed program was:" >&5
41311 sed 's/^/| /' conftest.$ac_ext >&5
41312
41313 ( exit $ac_status )
41314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41315 See \`config.log' for more details." >&5
41316 echo "$as_me: error: cannot compute sizeof (int), 77
41317 See \`config.log' for more details." >&2;}
41318    { (exit 1); exit 1; }; }
41319 fi
41320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41321 fi
41322 fi
41323 rm -f conftest.val
41324 else
41325   ac_cv_sizeof_int=0
41326 fi
41327 fi
41328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41329 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41330 cat >>confdefs.h <<_ACEOF
41331 #define SIZEOF_INT $ac_cv_sizeof_int
41332 _ACEOF
41333
41334
41335 echo "$as_me:$LINENO: checking for long" >&5
41336 echo $ECHO_N "checking for long... $ECHO_C" >&6
41337 if test "${ac_cv_type_long+set}" = set; then
41338   echo $ECHO_N "(cached) $ECHO_C" >&6
41339 else
41340   cat >conftest.$ac_ext <<_ACEOF
41341 /* confdefs.h.  */
41342 _ACEOF
41343 cat confdefs.h >>conftest.$ac_ext
41344 cat >>conftest.$ac_ext <<_ACEOF
41345 /* end confdefs.h.  */
41346 $ac_includes_default
41347 int
41348 main ()
41349 {
41350 if ((long *) 0)
41351   return 0;
41352 if (sizeof (long))
41353   return 0;
41354   ;
41355   return 0;
41356 }
41357 _ACEOF
41358 rm -f conftest.$ac_objext
41359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41360   (eval $ac_compile) 2>conftest.er1
41361   ac_status=$?
41362   grep -v '^ *+' conftest.er1 >conftest.err
41363   rm -f conftest.er1
41364   cat conftest.err >&5
41365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41366   (exit $ac_status); } &&
41367          { ac_try='test -z "$ac_c_werror_flag"
41368                          || test ! -s conftest.err'
41369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370   (eval $ac_try) 2>&5
41371   ac_status=$?
41372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373   (exit $ac_status); }; } &&
41374          { ac_try='test -s conftest.$ac_objext'
41375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41376   (eval $ac_try) 2>&5
41377   ac_status=$?
41378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41379   (exit $ac_status); }; }; then
41380   ac_cv_type_long=yes
41381 else
41382   echo "$as_me: failed program was:" >&5
41383 sed 's/^/| /' conftest.$ac_ext >&5
41384
41385 ac_cv_type_long=no
41386 fi
41387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41388 fi
41389 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41390 echo "${ECHO_T}$ac_cv_type_long" >&6
41391
41392 echo "$as_me:$LINENO: checking size of long" >&5
41393 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41394 if test "${ac_cv_sizeof_long+set}" = set; then
41395   echo $ECHO_N "(cached) $ECHO_C" >&6
41396 else
41397   if test "$ac_cv_type_long" = yes; then
41398   # The cast to unsigned long works around a bug in the HP C Compiler
41399   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41400   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41401   # This bug is HP SR number 8606223364.
41402   if test "$cross_compiling" = yes; then
41403   # Depending upon the size, compute the lo and hi bounds.
41404 cat >conftest.$ac_ext <<_ACEOF
41405 /* confdefs.h.  */
41406 _ACEOF
41407 cat confdefs.h >>conftest.$ac_ext
41408 cat >>conftest.$ac_ext <<_ACEOF
41409 /* end confdefs.h.  */
41410 $ac_includes_default
41411 int
41412 main ()
41413 {
41414 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41415 test_array [0] = 0
41416
41417   ;
41418   return 0;
41419 }
41420 _ACEOF
41421 rm -f conftest.$ac_objext
41422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41423   (eval $ac_compile) 2>conftest.er1
41424   ac_status=$?
41425   grep -v '^ *+' conftest.er1 >conftest.err
41426   rm -f conftest.er1
41427   cat conftest.err >&5
41428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41429   (exit $ac_status); } &&
41430          { ac_try='test -z "$ac_c_werror_flag"
41431                          || test ! -s conftest.err'
41432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41433   (eval $ac_try) 2>&5
41434   ac_status=$?
41435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436   (exit $ac_status); }; } &&
41437          { ac_try='test -s conftest.$ac_objext'
41438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439   (eval $ac_try) 2>&5
41440   ac_status=$?
41441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442   (exit $ac_status); }; }; then
41443   ac_lo=0 ac_mid=0
41444   while :; do
41445     cat >conftest.$ac_ext <<_ACEOF
41446 /* confdefs.h.  */
41447 _ACEOF
41448 cat confdefs.h >>conftest.$ac_ext
41449 cat >>conftest.$ac_ext <<_ACEOF
41450 /* end confdefs.h.  */
41451 $ac_includes_default
41452 int
41453 main ()
41454 {
41455 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41456 test_array [0] = 0
41457
41458   ;
41459   return 0;
41460 }
41461 _ACEOF
41462 rm -f conftest.$ac_objext
41463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41464   (eval $ac_compile) 2>conftest.er1
41465   ac_status=$?
41466   grep -v '^ *+' conftest.er1 >conftest.err
41467   rm -f conftest.er1
41468   cat conftest.err >&5
41469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470   (exit $ac_status); } &&
41471          { ac_try='test -z "$ac_c_werror_flag"
41472                          || test ! -s conftest.err'
41473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41474   (eval $ac_try) 2>&5
41475   ac_status=$?
41476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41477   (exit $ac_status); }; } &&
41478          { ac_try='test -s conftest.$ac_objext'
41479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41480   (eval $ac_try) 2>&5
41481   ac_status=$?
41482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41483   (exit $ac_status); }; }; then
41484   ac_hi=$ac_mid; break
41485 else
41486   echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41488
41489 ac_lo=`expr $ac_mid + 1`
41490                     if test $ac_lo -le $ac_mid; then
41491                       ac_lo= ac_hi=
41492                       break
41493                     fi
41494                     ac_mid=`expr 2 '*' $ac_mid + 1`
41495 fi
41496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41497   done
41498 else
41499   echo "$as_me: failed program was:" >&5
41500 sed 's/^/| /' conftest.$ac_ext >&5
41501
41502 cat >conftest.$ac_ext <<_ACEOF
41503 /* confdefs.h.  */
41504 _ACEOF
41505 cat confdefs.h >>conftest.$ac_ext
41506 cat >>conftest.$ac_ext <<_ACEOF
41507 /* end confdefs.h.  */
41508 $ac_includes_default
41509 int
41510 main ()
41511 {
41512 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41513 test_array [0] = 0
41514
41515   ;
41516   return 0;
41517 }
41518 _ACEOF
41519 rm -f conftest.$ac_objext
41520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41521   (eval $ac_compile) 2>conftest.er1
41522   ac_status=$?
41523   grep -v '^ *+' conftest.er1 >conftest.err
41524   rm -f conftest.er1
41525   cat conftest.err >&5
41526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527   (exit $ac_status); } &&
41528          { ac_try='test -z "$ac_c_werror_flag"
41529                          || test ! -s conftest.err'
41530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41531   (eval $ac_try) 2>&5
41532   ac_status=$?
41533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41534   (exit $ac_status); }; } &&
41535          { ac_try='test -s conftest.$ac_objext'
41536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41537   (eval $ac_try) 2>&5
41538   ac_status=$?
41539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540   (exit $ac_status); }; }; then
41541   ac_hi=-1 ac_mid=-1
41542   while :; do
41543     cat >conftest.$ac_ext <<_ACEOF
41544 /* confdefs.h.  */
41545 _ACEOF
41546 cat confdefs.h >>conftest.$ac_ext
41547 cat >>conftest.$ac_ext <<_ACEOF
41548 /* end confdefs.h.  */
41549 $ac_includes_default
41550 int
41551 main ()
41552 {
41553 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41554 test_array [0] = 0
41555
41556   ;
41557   return 0;
41558 }
41559 _ACEOF
41560 rm -f conftest.$ac_objext
41561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41562   (eval $ac_compile) 2>conftest.er1
41563   ac_status=$?
41564   grep -v '^ *+' conftest.er1 >conftest.err
41565   rm -f conftest.er1
41566   cat conftest.err >&5
41567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568   (exit $ac_status); } &&
41569          { ac_try='test -z "$ac_c_werror_flag"
41570                          || test ! -s conftest.err'
41571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572   (eval $ac_try) 2>&5
41573   ac_status=$?
41574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575   (exit $ac_status); }; } &&
41576          { ac_try='test -s conftest.$ac_objext'
41577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578   (eval $ac_try) 2>&5
41579   ac_status=$?
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); }; }; then
41582   ac_lo=$ac_mid; break
41583 else
41584   echo "$as_me: failed program was:" >&5
41585 sed 's/^/| /' conftest.$ac_ext >&5
41586
41587 ac_hi=`expr '(' $ac_mid ')' - 1`
41588                        if test $ac_mid -le $ac_hi; then
41589                          ac_lo= ac_hi=
41590                          break
41591                        fi
41592                        ac_mid=`expr 2 '*' $ac_mid`
41593 fi
41594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41595   done
41596 else
41597   echo "$as_me: failed program was:" >&5
41598 sed 's/^/| /' conftest.$ac_ext >&5
41599
41600 ac_lo= ac_hi=
41601 fi
41602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41603 fi
41604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41605 # Binary search between lo and hi bounds.
41606 while test "x$ac_lo" != "x$ac_hi"; do
41607   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41608   cat >conftest.$ac_ext <<_ACEOF
41609 /* confdefs.h.  */
41610 _ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h.  */
41614 $ac_includes_default
41615 int
41616 main ()
41617 {
41618 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41619 test_array [0] = 0
41620
41621   ;
41622   return 0;
41623 }
41624 _ACEOF
41625 rm -f conftest.$ac_objext
41626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41627   (eval $ac_compile) 2>conftest.er1
41628   ac_status=$?
41629   grep -v '^ *+' conftest.er1 >conftest.err
41630   rm -f conftest.er1
41631   cat conftest.err >&5
41632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633   (exit $ac_status); } &&
41634          { ac_try='test -z "$ac_c_werror_flag"
41635                          || test ! -s conftest.err'
41636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41637   (eval $ac_try) 2>&5
41638   ac_status=$?
41639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41640   (exit $ac_status); }; } &&
41641          { ac_try='test -s conftest.$ac_objext'
41642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41643   (eval $ac_try) 2>&5
41644   ac_status=$?
41645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646   (exit $ac_status); }; }; then
41647   ac_hi=$ac_mid
41648 else
41649   echo "$as_me: failed program was:" >&5
41650 sed 's/^/| /' conftest.$ac_ext >&5
41651
41652 ac_lo=`expr '(' $ac_mid ')' + 1`
41653 fi
41654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41655 done
41656 case $ac_lo in
41657 ?*) ac_cv_sizeof_long=$ac_lo;;
41658 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41659 See \`config.log' for more details." >&5
41660 echo "$as_me: error: cannot compute sizeof (long), 77
41661 See \`config.log' for more details." >&2;}
41662    { (exit 1); exit 1; }; } ;;
41663 esac
41664 else
41665   if test "$cross_compiling" = yes; then
41666   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41667 See \`config.log' for more details." >&5
41668 echo "$as_me: error: cannot run test program while cross compiling
41669 See \`config.log' for more details." >&2;}
41670    { (exit 1); exit 1; }; }
41671 else
41672   cat >conftest.$ac_ext <<_ACEOF
41673 /* confdefs.h.  */
41674 _ACEOF
41675 cat confdefs.h >>conftest.$ac_ext
41676 cat >>conftest.$ac_ext <<_ACEOF
41677 /* end confdefs.h.  */
41678 $ac_includes_default
41679 long longval () { return (long) (sizeof (long)); }
41680 unsigned long ulongval () { return (long) (sizeof (long)); }
41681 #include <stdio.h>
41682 #include <stdlib.h>
41683 int
41684 main ()
41685 {
41686
41687   FILE *f = fopen ("conftest.val", "w");
41688   if (! f)
41689     exit (1);
41690   if (((long) (sizeof (long))) < 0)
41691     {
41692       long i = longval ();
41693       if (i != ((long) (sizeof (long))))
41694         exit (1);
41695       fprintf (f, "%ld\n", i);
41696     }
41697   else
41698     {
41699       unsigned long i = ulongval ();
41700       if (i != ((long) (sizeof (long))))
41701         exit (1);
41702       fprintf (f, "%lu\n", i);
41703     }
41704   exit (ferror (f) || fclose (f) != 0);
41705
41706   ;
41707   return 0;
41708 }
41709 _ACEOF
41710 rm -f conftest$ac_exeext
41711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41712   (eval $ac_link) 2>&5
41713   ac_status=$?
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717   (eval $ac_try) 2>&5
41718   ac_status=$?
41719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720   (exit $ac_status); }; }; then
41721   ac_cv_sizeof_long=`cat conftest.val`
41722 else
41723   echo "$as_me: program exited with status $ac_status" >&5
41724 echo "$as_me: failed program was:" >&5
41725 sed 's/^/| /' conftest.$ac_ext >&5
41726
41727 ( exit $ac_status )
41728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41729 See \`config.log' for more details." >&5
41730 echo "$as_me: error: cannot compute sizeof (long), 77
41731 See \`config.log' for more details." >&2;}
41732    { (exit 1); exit 1; }; }
41733 fi
41734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41735 fi
41736 fi
41737 rm -f conftest.val
41738 else
41739   ac_cv_sizeof_long=0
41740 fi
41741 fi
41742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41743 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41744 cat >>confdefs.h <<_ACEOF
41745 #define SIZEOF_LONG $ac_cv_sizeof_long
41746 _ACEOF
41747
41748
41749 echo "$as_me:$LINENO: checking for wchar_t" >&5
41750 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41751 if test "${ac_cv_type_wchar_t+set}" = set; then
41752   echo $ECHO_N "(cached) $ECHO_C" >&6
41753 else
41754   cat >conftest.$ac_ext <<_ACEOF
41755 /* confdefs.h.  */
41756 _ACEOF
41757 cat confdefs.h >>conftest.$ac_ext
41758 cat >>conftest.$ac_ext <<_ACEOF
41759 /* end confdefs.h.  */
41760 $ac_includes_default
41761 int
41762 main ()
41763 {
41764 if ((wchar_t *) 0)
41765   return 0;
41766 if (sizeof (wchar_t))
41767   return 0;
41768   ;
41769   return 0;
41770 }
41771 _ACEOF
41772 rm -f conftest.$ac_objext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41774   (eval $ac_compile) 2>conftest.er1
41775   ac_status=$?
41776   grep -v '^ *+' conftest.er1 >conftest.err
41777   rm -f conftest.er1
41778   cat conftest.err >&5
41779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780   (exit $ac_status); } &&
41781          { ac_try='test -z "$ac_c_werror_flag"
41782                          || test ! -s conftest.err'
41783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41784   (eval $ac_try) 2>&5
41785   ac_status=$?
41786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787   (exit $ac_status); }; } &&
41788          { ac_try='test -s conftest.$ac_objext'
41789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790   (eval $ac_try) 2>&5
41791   ac_status=$?
41792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793   (exit $ac_status); }; }; then
41794   ac_cv_type_wchar_t=yes
41795 else
41796   echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41798
41799 ac_cv_type_wchar_t=no
41800 fi
41801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41802 fi
41803 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41804 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41805
41806 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41807 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41808 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41809   echo $ECHO_N "(cached) $ECHO_C" >&6
41810 else
41811   if test "$ac_cv_type_wchar_t" = yes; then
41812   # The cast to unsigned long works around a bug in the HP C Compiler
41813   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41814   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41815   # This bug is HP SR number 8606223364.
41816   if test "$cross_compiling" = yes; then
41817   # Depending upon the size, compute the lo and hi bounds.
41818 cat >conftest.$ac_ext <<_ACEOF
41819 /* confdefs.h.  */
41820 _ACEOF
41821 cat confdefs.h >>conftest.$ac_ext
41822 cat >>conftest.$ac_ext <<_ACEOF
41823 /* end confdefs.h.  */
41824 $ac_includes_default
41825 int
41826 main ()
41827 {
41828 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41829 test_array [0] = 0
41830
41831   ;
41832   return 0;
41833 }
41834 _ACEOF
41835 rm -f conftest.$ac_objext
41836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41837   (eval $ac_compile) 2>conftest.er1
41838   ac_status=$?
41839   grep -v '^ *+' conftest.er1 >conftest.err
41840   rm -f conftest.er1
41841   cat conftest.err >&5
41842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843   (exit $ac_status); } &&
41844          { ac_try='test -z "$ac_c_werror_flag"
41845                          || test ! -s conftest.err'
41846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41847   (eval $ac_try) 2>&5
41848   ac_status=$?
41849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41850   (exit $ac_status); }; } &&
41851          { ac_try='test -s conftest.$ac_objext'
41852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41853   (eval $ac_try) 2>&5
41854   ac_status=$?
41855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41856   (exit $ac_status); }; }; then
41857   ac_lo=0 ac_mid=0
41858   while :; do
41859     cat >conftest.$ac_ext <<_ACEOF
41860 /* confdefs.h.  */
41861 _ACEOF
41862 cat confdefs.h >>conftest.$ac_ext
41863 cat >>conftest.$ac_ext <<_ACEOF
41864 /* end confdefs.h.  */
41865 $ac_includes_default
41866 int
41867 main ()
41868 {
41869 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41870 test_array [0] = 0
41871
41872   ;
41873   return 0;
41874 }
41875 _ACEOF
41876 rm -f conftest.$ac_objext
41877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41878   (eval $ac_compile) 2>conftest.er1
41879   ac_status=$?
41880   grep -v '^ *+' conftest.er1 >conftest.err
41881   rm -f conftest.er1
41882   cat conftest.err >&5
41883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41884   (exit $ac_status); } &&
41885          { ac_try='test -z "$ac_c_werror_flag"
41886                          || test ! -s conftest.err'
41887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41888   (eval $ac_try) 2>&5
41889   ac_status=$?
41890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891   (exit $ac_status); }; } &&
41892          { ac_try='test -s conftest.$ac_objext'
41893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41894   (eval $ac_try) 2>&5
41895   ac_status=$?
41896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41897   (exit $ac_status); }; }; then
41898   ac_hi=$ac_mid; break
41899 else
41900   echo "$as_me: failed program was:" >&5
41901 sed 's/^/| /' conftest.$ac_ext >&5
41902
41903 ac_lo=`expr $ac_mid + 1`
41904                     if test $ac_lo -le $ac_mid; then
41905                       ac_lo= ac_hi=
41906                       break
41907                     fi
41908                     ac_mid=`expr 2 '*' $ac_mid + 1`
41909 fi
41910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41911   done
41912 else
41913   echo "$as_me: failed program was:" >&5
41914 sed 's/^/| /' conftest.$ac_ext >&5
41915
41916 cat >conftest.$ac_ext <<_ACEOF
41917 /* confdefs.h.  */
41918 _ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h.  */
41922 $ac_includes_default
41923 int
41924 main ()
41925 {
41926 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41927 test_array [0] = 0
41928
41929   ;
41930   return 0;
41931 }
41932 _ACEOF
41933 rm -f conftest.$ac_objext
41934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41935   (eval $ac_compile) 2>conftest.er1
41936   ac_status=$?
41937   grep -v '^ *+' conftest.er1 >conftest.err
41938   rm -f conftest.er1
41939   cat conftest.err >&5
41940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941   (exit $ac_status); } &&
41942          { ac_try='test -z "$ac_c_werror_flag"
41943                          || test ! -s conftest.err'
41944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41945   (eval $ac_try) 2>&5
41946   ac_status=$?
41947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41948   (exit $ac_status); }; } &&
41949          { ac_try='test -s conftest.$ac_objext'
41950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41951   (eval $ac_try) 2>&5
41952   ac_status=$?
41953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41954   (exit $ac_status); }; }; then
41955   ac_hi=-1 ac_mid=-1
41956   while :; do
41957     cat >conftest.$ac_ext <<_ACEOF
41958 /* confdefs.h.  */
41959 _ACEOF
41960 cat confdefs.h >>conftest.$ac_ext
41961 cat >>conftest.$ac_ext <<_ACEOF
41962 /* end confdefs.h.  */
41963 $ac_includes_default
41964 int
41965 main ()
41966 {
41967 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41968 test_array [0] = 0
41969
41970   ;
41971   return 0;
41972 }
41973 _ACEOF
41974 rm -f conftest.$ac_objext
41975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41976   (eval $ac_compile) 2>conftest.er1
41977   ac_status=$?
41978   grep -v '^ *+' conftest.er1 >conftest.err
41979   rm -f conftest.er1
41980   cat conftest.err >&5
41981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41982   (exit $ac_status); } &&
41983          { ac_try='test -z "$ac_c_werror_flag"
41984                          || test ! -s conftest.err'
41985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41986   (eval $ac_try) 2>&5
41987   ac_status=$?
41988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989   (exit $ac_status); }; } &&
41990          { ac_try='test -s conftest.$ac_objext'
41991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41992   (eval $ac_try) 2>&5
41993   ac_status=$?
41994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995   (exit $ac_status); }; }; then
41996   ac_lo=$ac_mid; break
41997 else
41998   echo "$as_me: failed program was:" >&5
41999 sed 's/^/| /' conftest.$ac_ext >&5
42000
42001 ac_hi=`expr '(' $ac_mid ')' - 1`
42002                        if test $ac_mid -le $ac_hi; then
42003                          ac_lo= ac_hi=
42004                          break
42005                        fi
42006                        ac_mid=`expr 2 '*' $ac_mid`
42007 fi
42008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42009   done
42010 else
42011   echo "$as_me: failed program was:" >&5
42012 sed 's/^/| /' conftest.$ac_ext >&5
42013
42014 ac_lo= ac_hi=
42015 fi
42016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42017 fi
42018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42019 # Binary search between lo and hi bounds.
42020 while test "x$ac_lo" != "x$ac_hi"; do
42021   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
42022   cat >conftest.$ac_ext <<_ACEOF
42023 /* confdefs.h.  */
42024 _ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h.  */
42028 $ac_includes_default
42029 int
42030 main ()
42031 {
42032 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
42033 test_array [0] = 0
42034
42035   ;
42036   return 0;
42037 }
42038 _ACEOF
42039 rm -f conftest.$ac_objext
42040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42041   (eval $ac_compile) 2>conftest.er1
42042   ac_status=$?
42043   grep -v '^ *+' conftest.er1 >conftest.err
42044   rm -f conftest.er1
42045   cat conftest.err >&5
42046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42047   (exit $ac_status); } &&
42048          { ac_try='test -z "$ac_c_werror_flag"
42049                          || test ! -s conftest.err'
42050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42051   (eval $ac_try) 2>&5
42052   ac_status=$?
42053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42054   (exit $ac_status); }; } &&
42055          { ac_try='test -s conftest.$ac_objext'
42056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42057   (eval $ac_try) 2>&5
42058   ac_status=$?
42059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060   (exit $ac_status); }; }; then
42061   ac_hi=$ac_mid
42062 else
42063   echo "$as_me: failed program was:" >&5
42064 sed 's/^/| /' conftest.$ac_ext >&5
42065
42066 ac_lo=`expr '(' $ac_mid ')' + 1`
42067 fi
42068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42069 done
42070 case $ac_lo in
42071 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42072 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42073 See \`config.log' for more details." >&5
42074 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42075 See \`config.log' for more details." >&2;}
42076    { (exit 1); exit 1; }; } ;;
42077 esac
42078 else
42079   if test "$cross_compiling" = yes; then
42080   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42081 See \`config.log' for more details." >&5
42082 echo "$as_me: error: cannot run test program while cross compiling
42083 See \`config.log' for more details." >&2;}
42084    { (exit 1); exit 1; }; }
42085 else
42086   cat >conftest.$ac_ext <<_ACEOF
42087 /* confdefs.h.  */
42088 _ACEOF
42089 cat confdefs.h >>conftest.$ac_ext
42090 cat >>conftest.$ac_ext <<_ACEOF
42091 /* end confdefs.h.  */
42092 $ac_includes_default
42093 long longval () { return (long) (sizeof (wchar_t)); }
42094 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42095 #include <stdio.h>
42096 #include <stdlib.h>
42097 int
42098 main ()
42099 {
42100
42101   FILE *f = fopen ("conftest.val", "w");
42102   if (! f)
42103     exit (1);
42104   if (((long) (sizeof (wchar_t))) < 0)
42105     {
42106       long i = longval ();
42107       if (i != ((long) (sizeof (wchar_t))))
42108         exit (1);
42109       fprintf (f, "%ld\n", i);
42110     }
42111   else
42112     {
42113       unsigned long i = ulongval ();
42114       if (i != ((long) (sizeof (wchar_t))))
42115         exit (1);
42116       fprintf (f, "%lu\n", i);
42117     }
42118   exit (ferror (f) || fclose (f) != 0);
42119
42120   ;
42121   return 0;
42122 }
42123 _ACEOF
42124 rm -f conftest$ac_exeext
42125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42126   (eval $ac_link) 2>&5
42127   ac_status=$?
42128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42131   (eval $ac_try) 2>&5
42132   ac_status=$?
42133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134   (exit $ac_status); }; }; then
42135   ac_cv_sizeof_wchar_t=`cat conftest.val`
42136 else
42137   echo "$as_me: program exited with status $ac_status" >&5
42138 echo "$as_me: failed program was:" >&5
42139 sed 's/^/| /' conftest.$ac_ext >&5
42140
42141 ( exit $ac_status )
42142 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42143 See \`config.log' for more details." >&5
42144 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42145 See \`config.log' for more details." >&2;}
42146    { (exit 1); exit 1; }; }
42147 fi
42148 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42149 fi
42150 fi
42151 rm -f conftest.val
42152 else
42153   ac_cv_sizeof_wchar_t=0
42154 fi
42155 fi
42156 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42157 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42158 cat >>confdefs.h <<_ACEOF
42159 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42160 _ACEOF
42161
42162
42163
42164 if test "$ac_cv_sizeof_int" -lt 4 ; then
42165         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42166 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42167
42168
42169 cat >>confdefs.h <<\_ACEOF
42170 #define LBER_INT_T long
42171 _ACEOF
42172
42173 else
42174
42175 cat >>confdefs.h <<\_ACEOF
42176 #define LBER_INT_T int
42177 _ACEOF
42178
42179 fi
42180
42181
42182 cat >>confdefs.h <<\_ACEOF
42183 #define LBER_LEN_T long
42184 _ACEOF
42185
42186
42187 cat >>confdefs.h <<\_ACEOF
42188 #define LBER_SOCKET_T int
42189 _ACEOF
42190
42191
42192 cat >>confdefs.h <<\_ACEOF
42193 #define LBER_TAG_T long
42194 _ACEOF
42195
42196
42197 echo "$as_me:$LINENO: checking for working memcmp" >&5
42198 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42199 if test "${ac_cv_func_memcmp_working+set}" = set; then
42200   echo $ECHO_N "(cached) $ECHO_C" >&6
42201 else
42202   if test "$cross_compiling" = yes; then
42203   ac_cv_func_memcmp_working=no
42204 else
42205   cat >conftest.$ac_ext <<_ACEOF
42206 /* confdefs.h.  */
42207 _ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h.  */
42211 $ac_includes_default
42212 int
42213 main ()
42214 {
42215
42216   /* Some versions of memcmp are not 8-bit clean.  */
42217   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42218   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42219     exit (1);
42220
42221   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42222      or more and with at least one buffer not starting on a 4-byte boundary.
42223      William Lewis provided this test program.   */
42224   {
42225     char foo[21];
42226     char bar[21];
42227     int i;
42228     for (i = 0; i < 4; i++)
42229       {
42230         char *a = foo + i;
42231         char *b = bar + i;
42232         strcpy (a, "--------01111111");
42233         strcpy (b, "--------10000000");
42234         if (memcmp (a, b, 16) >= 0)
42235           exit (1);
42236       }
42237     exit (0);
42238   }
42239
42240   ;
42241   return 0;
42242 }
42243 _ACEOF
42244 rm -f conftest$ac_exeext
42245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42246   (eval $ac_link) 2>&5
42247   ac_status=$?
42248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251   (eval $ac_try) 2>&5
42252   ac_status=$?
42253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254   (exit $ac_status); }; }; then
42255   ac_cv_func_memcmp_working=yes
42256 else
42257   echo "$as_me: program exited with status $ac_status" >&5
42258 echo "$as_me: failed program was:" >&5
42259 sed 's/^/| /' conftest.$ac_ext >&5
42260
42261 ( exit $ac_status )
42262 ac_cv_func_memcmp_working=no
42263 fi
42264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42265 fi
42266 fi
42267 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42268 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42269 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42270     "memcmp.$ac_objext"   | \
42271   *" memcmp.$ac_objext"   | \
42272     "memcmp.$ac_objext "* | \
42273   *" memcmp.$ac_objext "* ) ;;
42274   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42275 esac
42276
42277
42278
42279 if test $ac_cv_func_memcmp_working = no ; then
42280
42281 cat >>confdefs.h <<\_ACEOF
42282 #define NEED_MEMCMP_REPLACEMENT 1
42283 _ACEOF
42284
42285 fi
42286
42287
42288 for ac_func in strftime
42289 do
42290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42291 echo "$as_me:$LINENO: checking for $ac_func" >&5
42292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42293 if eval "test \"\${$as_ac_var+set}\" = set"; then
42294   echo $ECHO_N "(cached) $ECHO_C" >&6
42295 else
42296   cat >conftest.$ac_ext <<_ACEOF
42297 /* confdefs.h.  */
42298 _ACEOF
42299 cat confdefs.h >>conftest.$ac_ext
42300 cat >>conftest.$ac_ext <<_ACEOF
42301 /* end confdefs.h.  */
42302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42304 #define $ac_func innocuous_$ac_func
42305
42306 /* System header to define __stub macros and hopefully few prototypes,
42307     which can conflict with char $ac_func (); below.
42308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42309     <limits.h> exists even on freestanding compilers.  */
42310
42311 #ifdef __STDC__
42312 # include <limits.h>
42313 #else
42314 # include <assert.h>
42315 #endif
42316
42317 #undef $ac_func
42318
42319 /* Override any gcc2 internal prototype to avoid an error.  */
42320 #ifdef __cplusplus
42321 extern "C"
42322 {
42323 #endif
42324 /* We use char because int might match the return type of a gcc2
42325    builtin and then its argument prototype would still apply.  */
42326 char $ac_func ();
42327 /* The GNU C library defines this for functions which it implements
42328     to always fail with ENOSYS.  Some functions are actually named
42329     something starting with __ and the normal name is an alias.  */
42330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42331 choke me
42332 #else
42333 char (*f) () = $ac_func;
42334 #endif
42335 #ifdef __cplusplus
42336 }
42337 #endif
42338
42339 int
42340 main ()
42341 {
42342 return f != $ac_func;
42343   ;
42344   return 0;
42345 }
42346 _ACEOF
42347 rm -f conftest.$ac_objext conftest$ac_exeext
42348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42349   (eval $ac_link) 2>conftest.er1
42350   ac_status=$?
42351   grep -v '^ *+' conftest.er1 >conftest.err
42352   rm -f conftest.er1
42353   cat conftest.err >&5
42354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355   (exit $ac_status); } &&
42356          { ac_try='test -z "$ac_c_werror_flag"
42357                          || test ! -s conftest.err'
42358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42359   (eval $ac_try) 2>&5
42360   ac_status=$?
42361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42362   (exit $ac_status); }; } &&
42363          { ac_try='test -s conftest$ac_exeext'
42364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42365   (eval $ac_try) 2>&5
42366   ac_status=$?
42367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368   (exit $ac_status); }; }; then
42369   eval "$as_ac_var=yes"
42370 else
42371   echo "$as_me: failed program was:" >&5
42372 sed 's/^/| /' conftest.$ac_ext >&5
42373
42374 eval "$as_ac_var=no"
42375 fi
42376 rm -f conftest.err conftest.$ac_objext \
42377       conftest$ac_exeext conftest.$ac_ext
42378 fi
42379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42381 if test `eval echo '${'$as_ac_var'}'` = yes; then
42382   cat >>confdefs.h <<_ACEOF
42383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42384 _ACEOF
42385
42386 else
42387   # strftime is in -lintl on SCO UNIX.
42388 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42389 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42390 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42391   echo $ECHO_N "(cached) $ECHO_C" >&6
42392 else
42393   ac_check_lib_save_LIBS=$LIBS
42394 LIBS="-lintl  $LIBS"
42395 cat >conftest.$ac_ext <<_ACEOF
42396 /* confdefs.h.  */
42397 _ACEOF
42398 cat confdefs.h >>conftest.$ac_ext
42399 cat >>conftest.$ac_ext <<_ACEOF
42400 /* end confdefs.h.  */
42401
42402 /* Override any gcc2 internal prototype to avoid an error.  */
42403 #ifdef __cplusplus
42404 extern "C"
42405 #endif
42406 /* We use char because int might match the return type of a gcc2
42407    builtin and then its argument prototype would still apply.  */
42408 char strftime ();
42409 int
42410 main ()
42411 {
42412 strftime ();
42413   ;
42414   return 0;
42415 }
42416 _ACEOF
42417 rm -f conftest.$ac_objext conftest$ac_exeext
42418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42419   (eval $ac_link) 2>conftest.er1
42420   ac_status=$?
42421   grep -v '^ *+' conftest.er1 >conftest.err
42422   rm -f conftest.er1
42423   cat conftest.err >&5
42424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42425   (exit $ac_status); } &&
42426          { ac_try='test -z "$ac_c_werror_flag"
42427                          || test ! -s conftest.err'
42428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42429   (eval $ac_try) 2>&5
42430   ac_status=$?
42431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432   (exit $ac_status); }; } &&
42433          { ac_try='test -s conftest$ac_exeext'
42434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42435   (eval $ac_try) 2>&5
42436   ac_status=$?
42437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42438   (exit $ac_status); }; }; then
42439   ac_cv_lib_intl_strftime=yes
42440 else
42441   echo "$as_me: failed program was:" >&5
42442 sed 's/^/| /' conftest.$ac_ext >&5
42443
42444 ac_cv_lib_intl_strftime=no
42445 fi
42446 rm -f conftest.err conftest.$ac_objext \
42447       conftest$ac_exeext conftest.$ac_ext
42448 LIBS=$ac_check_lib_save_LIBS
42449 fi
42450 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42451 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42452 if test $ac_cv_lib_intl_strftime = yes; then
42453   cat >>confdefs.h <<\_ACEOF
42454 #define HAVE_STRFTIME 1
42455 _ACEOF
42456
42457 LIBS="-lintl $LIBS"
42458 fi
42459
42460 fi
42461 done
42462
42463
42464 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42465 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42466 if test "${ol_cv_func_inet_aton+set}" = set; then
42467   echo $ECHO_N "(cached) $ECHO_C" >&6
42468 else
42469   cat >conftest.$ac_ext <<_ACEOF
42470 /* confdefs.h.  */
42471 _ACEOF
42472 cat confdefs.h >>conftest.$ac_ext
42473 cat >>conftest.$ac_ext <<_ACEOF
42474 /* end confdefs.h.  */
42475
42476 #ifdef HAVE_SYS_TYPES_H
42477 #       include <sys/types.h>
42478 #endif
42479 #ifdef HAVE_SYS_SOCKET_H
42480 #       include <sys/socket.h>
42481 #       ifdef HAVE_SYS_SELECT_H
42482 #               include <sys/select.h>
42483 #       endif
42484 #       include <netinet/in.h>
42485 #       ifdef HAVE_ARPA_INET_H
42486 #               include <arpa/inet.h>
42487 #       endif
42488 #endif
42489
42490 int
42491 main ()
42492 {
42493 struct in_addr in;
42494 int rc = inet_aton( "255.255.255.255", &in );
42495   ;
42496   return 0;
42497 }
42498 _ACEOF
42499 rm -f conftest.$ac_objext conftest$ac_exeext
42500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42501   (eval $ac_link) 2>conftest.er1
42502   ac_status=$?
42503   grep -v '^ *+' conftest.er1 >conftest.err
42504   rm -f conftest.er1
42505   cat conftest.err >&5
42506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42507   (exit $ac_status); } &&
42508          { ac_try='test -z "$ac_c_werror_flag"
42509                          || test ! -s conftest.err'
42510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42511   (eval $ac_try) 2>&5
42512   ac_status=$?
42513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514   (exit $ac_status); }; } &&
42515          { ac_try='test -s conftest$ac_exeext'
42516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42517   (eval $ac_try) 2>&5
42518   ac_status=$?
42519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520   (exit $ac_status); }; }; then
42521   ol_cv_func_inet_aton=yes
42522 else
42523   echo "$as_me: failed program was:" >&5
42524 sed 's/^/| /' conftest.$ac_ext >&5
42525
42526 ol_cv_func_inet_aton=no
42527 fi
42528 rm -f conftest.err conftest.$ac_objext \
42529       conftest$ac_exeext conftest.$ac_ext
42530 fi
42531 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42532 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42533   if test $ol_cv_func_inet_aton != no; then
42534
42535 cat >>confdefs.h <<\_ACEOF
42536 #define HAVE_INET_ATON 1
42537 _ACEOF
42538
42539   fi
42540
42541
42542 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42543 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42544 if test "${ac_cv_func__spawnlp+set}" = set; then
42545   echo $ECHO_N "(cached) $ECHO_C" >&6
42546 else
42547   cat >conftest.$ac_ext <<_ACEOF
42548 /* confdefs.h.  */
42549 _ACEOF
42550 cat confdefs.h >>conftest.$ac_ext
42551 cat >>conftest.$ac_ext <<_ACEOF
42552 /* end confdefs.h.  */
42553 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42555 #define _spawnlp innocuous__spawnlp
42556
42557 /* System header to define __stub macros and hopefully few prototypes,
42558     which can conflict with char _spawnlp (); below.
42559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42560     <limits.h> exists even on freestanding compilers.  */
42561
42562 #ifdef __STDC__
42563 # include <limits.h>
42564 #else
42565 # include <assert.h>
42566 #endif
42567
42568 #undef _spawnlp
42569
42570 /* Override any gcc2 internal prototype to avoid an error.  */
42571 #ifdef __cplusplus
42572 extern "C"
42573 {
42574 #endif
42575 /* We use char because int might match the return type of a gcc2
42576    builtin and then its argument prototype would still apply.  */
42577 char _spawnlp ();
42578 /* The GNU C library defines this for functions which it implements
42579     to always fail with ENOSYS.  Some functions are actually named
42580     something starting with __ and the normal name is an alias.  */
42581 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42582 choke me
42583 #else
42584 char (*f) () = _spawnlp;
42585 #endif
42586 #ifdef __cplusplus
42587 }
42588 #endif
42589
42590 int
42591 main ()
42592 {
42593 return f != _spawnlp;
42594   ;
42595   return 0;
42596 }
42597 _ACEOF
42598 rm -f conftest.$ac_objext conftest$ac_exeext
42599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42600   (eval $ac_link) 2>conftest.er1
42601   ac_status=$?
42602   grep -v '^ *+' conftest.er1 >conftest.err
42603   rm -f conftest.er1
42604   cat conftest.err >&5
42605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606   (exit $ac_status); } &&
42607          { ac_try='test -z "$ac_c_werror_flag"
42608                          || test ! -s conftest.err'
42609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42610   (eval $ac_try) 2>&5
42611   ac_status=$?
42612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613   (exit $ac_status); }; } &&
42614          { ac_try='test -s conftest$ac_exeext'
42615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42616   (eval $ac_try) 2>&5
42617   ac_status=$?
42618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42619   (exit $ac_status); }; }; then
42620   ac_cv_func__spawnlp=yes
42621 else
42622   echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42624
42625 ac_cv_func__spawnlp=no
42626 fi
42627 rm -f conftest.err conftest.$ac_objext \
42628       conftest$ac_exeext conftest.$ac_ext
42629 fi
42630 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42631 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42632 if test $ac_cv_func__spawnlp = yes; then
42633
42634 cat >>confdefs.h <<\_ACEOF
42635 #define HAVE_SPAWNLP 1
42636 _ACEOF
42637
42638 fi
42639
42640
42641 echo "$as_me:$LINENO: checking for _snprintf" >&5
42642 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42643 if test "${ac_cv_func__snprintf+set}" = set; then
42644   echo $ECHO_N "(cached) $ECHO_C" >&6
42645 else
42646   cat >conftest.$ac_ext <<_ACEOF
42647 /* confdefs.h.  */
42648 _ACEOF
42649 cat confdefs.h >>conftest.$ac_ext
42650 cat >>conftest.$ac_ext <<_ACEOF
42651 /* end confdefs.h.  */
42652 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42654 #define _snprintf innocuous__snprintf
42655
42656 /* System header to define __stub macros and hopefully few prototypes,
42657     which can conflict with char _snprintf (); below.
42658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42659     <limits.h> exists even on freestanding compilers.  */
42660
42661 #ifdef __STDC__
42662 # include <limits.h>
42663 #else
42664 # include <assert.h>
42665 #endif
42666
42667 #undef _snprintf
42668
42669 /* Override any gcc2 internal prototype to avoid an error.  */
42670 #ifdef __cplusplus
42671 extern "C"
42672 {
42673 #endif
42674 /* We use char because int might match the return type of a gcc2
42675    builtin and then its argument prototype would still apply.  */
42676 char _snprintf ();
42677 /* The GNU C library defines this for functions which it implements
42678     to always fail with ENOSYS.  Some functions are actually named
42679     something starting with __ and the normal name is an alias.  */
42680 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42681 choke me
42682 #else
42683 char (*f) () = _snprintf;
42684 #endif
42685 #ifdef __cplusplus
42686 }
42687 #endif
42688
42689 int
42690 main ()
42691 {
42692 return f != _snprintf;
42693   ;
42694   return 0;
42695 }
42696 _ACEOF
42697 rm -f conftest.$ac_objext conftest$ac_exeext
42698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42699   (eval $ac_link) 2>conftest.er1
42700   ac_status=$?
42701   grep -v '^ *+' conftest.er1 >conftest.err
42702   rm -f conftest.er1
42703   cat conftest.err >&5
42704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705   (exit $ac_status); } &&
42706          { ac_try='test -z "$ac_c_werror_flag"
42707                          || test ! -s conftest.err'
42708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709   (eval $ac_try) 2>&5
42710   ac_status=$?
42711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712   (exit $ac_status); }; } &&
42713          { ac_try='test -s conftest$ac_exeext'
42714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42715   (eval $ac_try) 2>&5
42716   ac_status=$?
42717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718   (exit $ac_status); }; }; then
42719   ac_cv_func__snprintf=yes
42720 else
42721   echo "$as_me: failed program was:" >&5
42722 sed 's/^/| /' conftest.$ac_ext >&5
42723
42724 ac_cv_func__snprintf=no
42725 fi
42726 rm -f conftest.err conftest.$ac_objext \
42727       conftest$ac_exeext conftest.$ac_ext
42728 fi
42729 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42730 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42731 if test $ac_cv_func__snprintf = yes; then
42732   ac_cv_func_snprintf=yes
42733
42734 cat >>confdefs.h <<\_ACEOF
42735 #define snprintf _snprintf
42736 _ACEOF
42737
42738
42739 fi
42740
42741
42742 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42743 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42744 if test "${ac_cv_func__vsnprintf+set}" = set; then
42745   echo $ECHO_N "(cached) $ECHO_C" >&6
42746 else
42747   cat >conftest.$ac_ext <<_ACEOF
42748 /* confdefs.h.  */
42749 _ACEOF
42750 cat confdefs.h >>conftest.$ac_ext
42751 cat >>conftest.$ac_ext <<_ACEOF
42752 /* end confdefs.h.  */
42753 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42755 #define _vsnprintf innocuous__vsnprintf
42756
42757 /* System header to define __stub macros and hopefully few prototypes,
42758     which can conflict with char _vsnprintf (); below.
42759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42760     <limits.h> exists even on freestanding compilers.  */
42761
42762 #ifdef __STDC__
42763 # include <limits.h>
42764 #else
42765 # include <assert.h>
42766 #endif
42767
42768 #undef _vsnprintf
42769
42770 /* Override any gcc2 internal prototype to avoid an error.  */
42771 #ifdef __cplusplus
42772 extern "C"
42773 {
42774 #endif
42775 /* We use char because int might match the return type of a gcc2
42776    builtin and then its argument prototype would still apply.  */
42777 char _vsnprintf ();
42778 /* The GNU C library defines this for functions which it implements
42779     to always fail with ENOSYS.  Some functions are actually named
42780     something starting with __ and the normal name is an alias.  */
42781 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42782 choke me
42783 #else
42784 char (*f) () = _vsnprintf;
42785 #endif
42786 #ifdef __cplusplus
42787 }
42788 #endif
42789
42790 int
42791 main ()
42792 {
42793 return f != _vsnprintf;
42794   ;
42795   return 0;
42796 }
42797 _ACEOF
42798 rm -f conftest.$ac_objext conftest$ac_exeext
42799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42800   (eval $ac_link) 2>conftest.er1
42801   ac_status=$?
42802   grep -v '^ *+' conftest.er1 >conftest.err
42803   rm -f conftest.er1
42804   cat conftest.err >&5
42805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42806   (exit $ac_status); } &&
42807          { ac_try='test -z "$ac_c_werror_flag"
42808                          || test ! -s conftest.err'
42809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42810   (eval $ac_try) 2>&5
42811   ac_status=$?
42812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42813   (exit $ac_status); }; } &&
42814          { ac_try='test -s conftest$ac_exeext'
42815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42816   (eval $ac_try) 2>&5
42817   ac_status=$?
42818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); }; }; then
42820   ac_cv_func__vsnprintf=yes
42821 else
42822   echo "$as_me: failed program was:" >&5
42823 sed 's/^/| /' conftest.$ac_ext >&5
42824
42825 ac_cv_func__vsnprintf=no
42826 fi
42827 rm -f conftest.err conftest.$ac_objext \
42828       conftest$ac_exeext conftest.$ac_ext
42829 fi
42830 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42831 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42832 if test $ac_cv_func__vsnprintf = yes; then
42833   ac_cv_func_vsnprintf=yes
42834
42835 cat >>confdefs.h <<\_ACEOF
42836 #define vsnprintf _vsnprintf
42837 _ACEOF
42838
42839
42840 fi
42841
42842
42843
42844 for ac_func in vprintf
42845 do
42846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42847 echo "$as_me:$LINENO: checking for $ac_func" >&5
42848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42849 if eval "test \"\${$as_ac_var+set}\" = set"; then
42850   echo $ECHO_N "(cached) $ECHO_C" >&6
42851 else
42852   cat >conftest.$ac_ext <<_ACEOF
42853 /* confdefs.h.  */
42854 _ACEOF
42855 cat confdefs.h >>conftest.$ac_ext
42856 cat >>conftest.$ac_ext <<_ACEOF
42857 /* end confdefs.h.  */
42858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42860 #define $ac_func innocuous_$ac_func
42861
42862 /* System header to define __stub macros and hopefully few prototypes,
42863     which can conflict with char $ac_func (); below.
42864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42865     <limits.h> exists even on freestanding compilers.  */
42866
42867 #ifdef __STDC__
42868 # include <limits.h>
42869 #else
42870 # include <assert.h>
42871 #endif
42872
42873 #undef $ac_func
42874
42875 /* Override any gcc2 internal prototype to avoid an error.  */
42876 #ifdef __cplusplus
42877 extern "C"
42878 {
42879 #endif
42880 /* We use char because int might match the return type of a gcc2
42881    builtin and then its argument prototype would still apply.  */
42882 char $ac_func ();
42883 /* The GNU C library defines this for functions which it implements
42884     to always fail with ENOSYS.  Some functions are actually named
42885     something starting with __ and the normal name is an alias.  */
42886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42887 choke me
42888 #else
42889 char (*f) () = $ac_func;
42890 #endif
42891 #ifdef __cplusplus
42892 }
42893 #endif
42894
42895 int
42896 main ()
42897 {
42898 return f != $ac_func;
42899   ;
42900   return 0;
42901 }
42902 _ACEOF
42903 rm -f conftest.$ac_objext conftest$ac_exeext
42904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42905   (eval $ac_link) 2>conftest.er1
42906   ac_status=$?
42907   grep -v '^ *+' conftest.er1 >conftest.err
42908   rm -f conftest.er1
42909   cat conftest.err >&5
42910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42911   (exit $ac_status); } &&
42912          { ac_try='test -z "$ac_c_werror_flag"
42913                          || test ! -s conftest.err'
42914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42915   (eval $ac_try) 2>&5
42916   ac_status=$?
42917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42918   (exit $ac_status); }; } &&
42919          { ac_try='test -s conftest$ac_exeext'
42920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42921   (eval $ac_try) 2>&5
42922   ac_status=$?
42923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42924   (exit $ac_status); }; }; then
42925   eval "$as_ac_var=yes"
42926 else
42927   echo "$as_me: failed program was:" >&5
42928 sed 's/^/| /' conftest.$ac_ext >&5
42929
42930 eval "$as_ac_var=no"
42931 fi
42932 rm -f conftest.err conftest.$ac_objext \
42933       conftest$ac_exeext conftest.$ac_ext
42934 fi
42935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42937 if test `eval echo '${'$as_ac_var'}'` = yes; then
42938   cat >>confdefs.h <<_ACEOF
42939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42940 _ACEOF
42941
42942 echo "$as_me:$LINENO: checking for _doprnt" >&5
42943 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42944 if test "${ac_cv_func__doprnt+set}" = set; then
42945   echo $ECHO_N "(cached) $ECHO_C" >&6
42946 else
42947   cat >conftest.$ac_ext <<_ACEOF
42948 /* confdefs.h.  */
42949 _ACEOF
42950 cat confdefs.h >>conftest.$ac_ext
42951 cat >>conftest.$ac_ext <<_ACEOF
42952 /* end confdefs.h.  */
42953 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42955 #define _doprnt innocuous__doprnt
42956
42957 /* System header to define __stub macros and hopefully few prototypes,
42958     which can conflict with char _doprnt (); below.
42959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42960     <limits.h> exists even on freestanding compilers.  */
42961
42962 #ifdef __STDC__
42963 # include <limits.h>
42964 #else
42965 # include <assert.h>
42966 #endif
42967
42968 #undef _doprnt
42969
42970 /* Override any gcc2 internal prototype to avoid an error.  */
42971 #ifdef __cplusplus
42972 extern "C"
42973 {
42974 #endif
42975 /* We use char because int might match the return type of a gcc2
42976    builtin and then its argument prototype would still apply.  */
42977 char _doprnt ();
42978 /* The GNU C library defines this for functions which it implements
42979     to always fail with ENOSYS.  Some functions are actually named
42980     something starting with __ and the normal name is an alias.  */
42981 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42982 choke me
42983 #else
42984 char (*f) () = _doprnt;
42985 #endif
42986 #ifdef __cplusplus
42987 }
42988 #endif
42989
42990 int
42991 main ()
42992 {
42993 return f != _doprnt;
42994   ;
42995   return 0;
42996 }
42997 _ACEOF
42998 rm -f conftest.$ac_objext conftest$ac_exeext
42999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43000   (eval $ac_link) 2>conftest.er1
43001   ac_status=$?
43002   grep -v '^ *+' conftest.er1 >conftest.err
43003   rm -f conftest.er1
43004   cat conftest.err >&5
43005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43006   (exit $ac_status); } &&
43007          { ac_try='test -z "$ac_c_werror_flag"
43008                          || test ! -s conftest.err'
43009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010   (eval $ac_try) 2>&5
43011   ac_status=$?
43012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013   (exit $ac_status); }; } &&
43014          { ac_try='test -s conftest$ac_exeext'
43015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016   (eval $ac_try) 2>&5
43017   ac_status=$?
43018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019   (exit $ac_status); }; }; then
43020   ac_cv_func__doprnt=yes
43021 else
43022   echo "$as_me: failed program was:" >&5
43023 sed 's/^/| /' conftest.$ac_ext >&5
43024
43025 ac_cv_func__doprnt=no
43026 fi
43027 rm -f conftest.err conftest.$ac_objext \
43028       conftest$ac_exeext conftest.$ac_ext
43029 fi
43030 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
43031 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
43032 if test $ac_cv_func__doprnt = yes; then
43033
43034 cat >>confdefs.h <<\_ACEOF
43035 #define HAVE_DOPRNT 1
43036 _ACEOF
43037
43038 fi
43039
43040 fi
43041 done
43042
43043
43044
43045 if test $ac_cv_func_vprintf = yes ; then
43046
43047
43048 for ac_func in snprintf vsnprintf
43049 do
43050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43051 echo "$as_me:$LINENO: checking for $ac_func" >&5
43052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43053 if eval "test \"\${$as_ac_var+set}\" = set"; then
43054   echo $ECHO_N "(cached) $ECHO_C" >&6
43055 else
43056   cat >conftest.$ac_ext <<_ACEOF
43057 /* confdefs.h.  */
43058 _ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h.  */
43062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43064 #define $ac_func innocuous_$ac_func
43065
43066 /* System header to define __stub macros and hopefully few prototypes,
43067     which can conflict with char $ac_func (); below.
43068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43069     <limits.h> exists even on freestanding compilers.  */
43070
43071 #ifdef __STDC__
43072 # include <limits.h>
43073 #else
43074 # include <assert.h>
43075 #endif
43076
43077 #undef $ac_func
43078
43079 /* Override any gcc2 internal prototype to avoid an error.  */
43080 #ifdef __cplusplus
43081 extern "C"
43082 {
43083 #endif
43084 /* We use char because int might match the return type of a gcc2
43085    builtin and then its argument prototype would still apply.  */
43086 char $ac_func ();
43087 /* The GNU C library defines this for functions which it implements
43088     to always fail with ENOSYS.  Some functions are actually named
43089     something starting with __ and the normal name is an alias.  */
43090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43091 choke me
43092 #else
43093 char (*f) () = $ac_func;
43094 #endif
43095 #ifdef __cplusplus
43096 }
43097 #endif
43098
43099 int
43100 main ()
43101 {
43102 return f != $ac_func;
43103   ;
43104   return 0;
43105 }
43106 _ACEOF
43107 rm -f conftest.$ac_objext conftest$ac_exeext
43108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43109   (eval $ac_link) 2>conftest.er1
43110   ac_status=$?
43111   grep -v '^ *+' conftest.er1 >conftest.err
43112   rm -f conftest.er1
43113   cat conftest.err >&5
43114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43115   (exit $ac_status); } &&
43116          { ac_try='test -z "$ac_c_werror_flag"
43117                          || test ! -s conftest.err'
43118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43119   (eval $ac_try) 2>&5
43120   ac_status=$?
43121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43122   (exit $ac_status); }; } &&
43123          { ac_try='test -s conftest$ac_exeext'
43124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43125   (eval $ac_try) 2>&5
43126   ac_status=$?
43127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43128   (exit $ac_status); }; }; then
43129   eval "$as_ac_var=yes"
43130 else
43131   echo "$as_me: failed program was:" >&5
43132 sed 's/^/| /' conftest.$ac_ext >&5
43133
43134 eval "$as_ac_var=no"
43135 fi
43136 rm -f conftest.err conftest.$ac_objext \
43137       conftest$ac_exeext conftest.$ac_ext
43138 fi
43139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43141 if test `eval echo '${'$as_ac_var'}'` = yes; then
43142   cat >>confdefs.h <<_ACEOF
43143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43144 _ACEOF
43145
43146 fi
43147 done
43148
43149 fi
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
43179
43180
43181
43182
43183
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205 for ac_func in \
43206         bcopy                   \
43207         closesocket             \
43208         chroot                  \
43209         endgrent                \
43210         endpwent                \
43211         fcntl                   \
43212         flock                   \
43213         fstat                   \
43214         getdtablesize   \
43215         getgrgid                \
43216         gethostname             \
43217         getpass                 \
43218         getpassphrase   \
43219         getpwuid                \
43220         getpwnam                \
43221         getspnam                \
43222         gettimeofday    \
43223         initgroups              \
43224         inet_ntoa_b             \
43225         lockf                   \
43226         memcpy                  \
43227         memmove                 \
43228         memrchr                 \
43229         mkstemp                 \
43230         mktemp                  \
43231         pipe                    \
43232         read                    \
43233         recv                    \
43234         recvfrom                \
43235         setpwfile               \
43236         setgid                  \
43237         setegid                 \
43238         setsid                  \
43239         setuid                  \
43240         seteuid                 \
43241         signal                  \
43242         strdup                  \
43243         strpbrk                 \
43244         strrchr                 \
43245         strsep                  \
43246         strstr                  \
43247         strtol                  \
43248         strtoul                 \
43249         strtoq                  \
43250         strtouq                 \
43251         strtoll                 \
43252         strspn                  \
43253         sysconf                 \
43254         waitpid                 \
43255         wait4                   \
43256         write                   \
43257         send                    \
43258         sendmsg                 \
43259         sendto                  \
43260
43261 do
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265 if eval "test \"\${$as_ac_var+set}\" = set"; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268   cat >conftest.$ac_ext <<_ACEOF
43269 /* confdefs.h.  */
43270 _ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h.  */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43276 #define $ac_func innocuous_$ac_func
43277
43278 /* System header to define __stub macros and hopefully few prototypes,
43279     which can conflict with char $ac_func (); below.
43280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281     <limits.h> exists even on freestanding compilers.  */
43282
43283 #ifdef __STDC__
43284 # include <limits.h>
43285 #else
43286 # include <assert.h>
43287 #endif
43288
43289 #undef $ac_func
43290
43291 /* Override any gcc2 internal prototype to avoid an error.  */
43292 #ifdef __cplusplus
43293 extern "C"
43294 {
43295 #endif
43296 /* We use char because int might match the return type of a gcc2
43297    builtin and then its argument prototype would still apply.  */
43298 char $ac_func ();
43299 /* The GNU C library defines this for functions which it implements
43300     to always fail with ENOSYS.  Some functions are actually named
43301     something starting with __ and the normal name is an alias.  */
43302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43303 choke me
43304 #else
43305 char (*f) () = $ac_func;
43306 #endif
43307 #ifdef __cplusplus
43308 }
43309 #endif
43310
43311 int
43312 main ()
43313 {
43314 return f != $ac_func;
43315   ;
43316   return 0;
43317 }
43318 _ACEOF
43319 rm -f conftest.$ac_objext conftest$ac_exeext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43321   (eval $ac_link) 2>conftest.er1
43322   ac_status=$?
43323   grep -v '^ *+' conftest.er1 >conftest.err
43324   rm -f conftest.er1
43325   cat conftest.err >&5
43326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327   (exit $ac_status); } &&
43328          { ac_try='test -z "$ac_c_werror_flag"
43329                          || test ! -s conftest.err'
43330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331   (eval $ac_try) 2>&5
43332   ac_status=$?
43333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334   (exit $ac_status); }; } &&
43335          { ac_try='test -s conftest$ac_exeext'
43336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337   (eval $ac_try) 2>&5
43338   ac_status=$?
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); }; }; then
43341   eval "$as_ac_var=yes"
43342 else
43343   echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43345
43346 eval "$as_ac_var=no"
43347 fi
43348 rm -f conftest.err conftest.$ac_objext \
43349       conftest$ac_exeext conftest.$ac_ext
43350 fi
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43353 if test `eval echo '${'$as_ac_var'}'` = yes; then
43354   cat >>confdefs.h <<_ACEOF
43355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43356 _ACEOF
43357
43358 fi
43359 done
43360
43361
43362
43363
43364 for ac_func in getopt getpeereid
43365 do
43366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43367 echo "$as_me:$LINENO: checking for $ac_func" >&5
43368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43369 if eval "test \"\${$as_ac_var+set}\" = set"; then
43370   echo $ECHO_N "(cached) $ECHO_C" >&6
43371 else
43372   cat >conftest.$ac_ext <<_ACEOF
43373 /* confdefs.h.  */
43374 _ACEOF
43375 cat confdefs.h >>conftest.$ac_ext
43376 cat >>conftest.$ac_ext <<_ACEOF
43377 /* end confdefs.h.  */
43378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43380 #define $ac_func innocuous_$ac_func
43381
43382 /* System header to define __stub macros and hopefully few prototypes,
43383     which can conflict with char $ac_func (); below.
43384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43385     <limits.h> exists even on freestanding compilers.  */
43386
43387 #ifdef __STDC__
43388 # include <limits.h>
43389 #else
43390 # include <assert.h>
43391 #endif
43392
43393 #undef $ac_func
43394
43395 /* Override any gcc2 internal prototype to avoid an error.  */
43396 #ifdef __cplusplus
43397 extern "C"
43398 {
43399 #endif
43400 /* We use char because int might match the return type of a gcc2
43401    builtin and then its argument prototype would still apply.  */
43402 char $ac_func ();
43403 /* The GNU C library defines this for functions which it implements
43404     to always fail with ENOSYS.  Some functions are actually named
43405     something starting with __ and the normal name is an alias.  */
43406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43407 choke me
43408 #else
43409 char (*f) () = $ac_func;
43410 #endif
43411 #ifdef __cplusplus
43412 }
43413 #endif
43414
43415 int
43416 main ()
43417 {
43418 return f != $ac_func;
43419   ;
43420   return 0;
43421 }
43422 _ACEOF
43423 rm -f conftest.$ac_objext conftest$ac_exeext
43424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43425   (eval $ac_link) 2>conftest.er1
43426   ac_status=$?
43427   grep -v '^ *+' conftest.er1 >conftest.err
43428   rm -f conftest.er1
43429   cat conftest.err >&5
43430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43431   (exit $ac_status); } &&
43432          { ac_try='test -z "$ac_c_werror_flag"
43433                          || test ! -s conftest.err'
43434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43435   (eval $ac_try) 2>&5
43436   ac_status=$?
43437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43438   (exit $ac_status); }; } &&
43439          { ac_try='test -s conftest$ac_exeext'
43440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43441   (eval $ac_try) 2>&5
43442   ac_status=$?
43443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444   (exit $ac_status); }; }; then
43445   eval "$as_ac_var=yes"
43446 else
43447   echo "$as_me: failed program was:" >&5
43448 sed 's/^/| /' conftest.$ac_ext >&5
43449
43450 eval "$as_ac_var=no"
43451 fi
43452 rm -f conftest.err conftest.$ac_objext \
43453       conftest$ac_exeext conftest.$ac_ext
43454 fi
43455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43457 if test `eval echo '${'$as_ac_var'}'` = yes; then
43458   cat >>confdefs.h <<_ACEOF
43459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43460 _ACEOF
43461
43462 else
43463   case $LIBOBJS in
43464     "$ac_func.$ac_objext"   | \
43465   *" $ac_func.$ac_objext"   | \
43466     "$ac_func.$ac_objext "* | \
43467   *" $ac_func.$ac_objext "* ) ;;
43468   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43469 esac
43470
43471 fi
43472 done
43473
43474
43475
43476 if test "$ac_cv_func_getopt" != yes; then
43477         LIBSRCS="$LIBSRCS getopt.c"
43478 fi
43479
43480 if test "$ac_cv_func_getpeereid" != yes; then
43481
43482 for ac_func in getpeerucred
43483 do
43484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43485 echo "$as_me:$LINENO: checking for $ac_func" >&5
43486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43487 if eval "test \"\${$as_ac_var+set}\" = set"; then
43488   echo $ECHO_N "(cached) $ECHO_C" >&6
43489 else
43490   cat >conftest.$ac_ext <<_ACEOF
43491 /* confdefs.h.  */
43492 _ACEOF
43493 cat confdefs.h >>conftest.$ac_ext
43494 cat >>conftest.$ac_ext <<_ACEOF
43495 /* end confdefs.h.  */
43496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43498 #define $ac_func innocuous_$ac_func
43499
43500 /* System header to define __stub macros and hopefully few prototypes,
43501     which can conflict with char $ac_func (); below.
43502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43503     <limits.h> exists even on freestanding compilers.  */
43504
43505 #ifdef __STDC__
43506 # include <limits.h>
43507 #else
43508 # include <assert.h>
43509 #endif
43510
43511 #undef $ac_func
43512
43513 /* Override any gcc2 internal prototype to avoid an error.  */
43514 #ifdef __cplusplus
43515 extern "C"
43516 {
43517 #endif
43518 /* We use char because int might match the return type of a gcc2
43519    builtin and then its argument prototype would still apply.  */
43520 char $ac_func ();
43521 /* The GNU C library defines this for functions which it implements
43522     to always fail with ENOSYS.  Some functions are actually named
43523     something starting with __ and the normal name is an alias.  */
43524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43525 choke me
43526 #else
43527 char (*f) () = $ac_func;
43528 #endif
43529 #ifdef __cplusplus
43530 }
43531 #endif
43532
43533 int
43534 main ()
43535 {
43536 return f != $ac_func;
43537   ;
43538   return 0;
43539 }
43540 _ACEOF
43541 rm -f conftest.$ac_objext conftest$ac_exeext
43542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43543   (eval $ac_link) 2>conftest.er1
43544   ac_status=$?
43545   grep -v '^ *+' conftest.er1 >conftest.err
43546   rm -f conftest.er1
43547   cat conftest.err >&5
43548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43549   (exit $ac_status); } &&
43550          { ac_try='test -z "$ac_c_werror_flag"
43551                          || test ! -s conftest.err'
43552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43553   (eval $ac_try) 2>&5
43554   ac_status=$?
43555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43556   (exit $ac_status); }; } &&
43557          { ac_try='test -s conftest$ac_exeext'
43558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43559   (eval $ac_try) 2>&5
43560   ac_status=$?
43561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43562   (exit $ac_status); }; }; then
43563   eval "$as_ac_var=yes"
43564 else
43565   echo "$as_me: failed program was:" >&5
43566 sed 's/^/| /' conftest.$ac_ext >&5
43567
43568 eval "$as_ac_var=no"
43569 fi
43570 rm -f conftest.err conftest.$ac_objext \
43571       conftest$ac_exeext conftest.$ac_ext
43572 fi
43573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43575 if test `eval echo '${'$as_ac_var'}'` = yes; then
43576   cat >>confdefs.h <<_ACEOF
43577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43578 _ACEOF
43579
43580 fi
43581 done
43582
43583         if test "$ac_cv_func_getpeerucred" != yes ; then
43584                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43585 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43586 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43587   echo $ECHO_N "(cached) $ECHO_C" >&6
43588 else
43589   cat >conftest.$ac_ext <<_ACEOF
43590 /* confdefs.h.  */
43591 _ACEOF
43592 cat confdefs.h >>conftest.$ac_ext
43593 cat >>conftest.$ac_ext <<_ACEOF
43594 /* end confdefs.h.  */
43595 $ac_includes_default
43596 #ifdef HAVE_SYS_SOCKET_H
43597 #include <sys/socket.h>
43598 #endif
43599
43600 int
43601 main ()
43602 {
43603 static struct msghdr ac_aggr;
43604 if (ac_aggr.msg_accrightslen)
43605 return 0;
43606   ;
43607   return 0;
43608 }
43609 _ACEOF
43610 rm -f conftest.$ac_objext
43611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43612   (eval $ac_compile) 2>conftest.er1
43613   ac_status=$?
43614   grep -v '^ *+' conftest.er1 >conftest.err
43615   rm -f conftest.er1
43616   cat conftest.err >&5
43617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618   (exit $ac_status); } &&
43619          { ac_try='test -z "$ac_c_werror_flag"
43620                          || test ! -s conftest.err'
43621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43622   (eval $ac_try) 2>&5
43623   ac_status=$?
43624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625   (exit $ac_status); }; } &&
43626          { ac_try='test -s conftest.$ac_objext'
43627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43628   (eval $ac_try) 2>&5
43629   ac_status=$?
43630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43631   (exit $ac_status); }; }; then
43632   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43633 else
43634   echo "$as_me: failed program was:" >&5
43635 sed 's/^/| /' conftest.$ac_ext >&5
43636
43637 cat >conftest.$ac_ext <<_ACEOF
43638 /* confdefs.h.  */
43639 _ACEOF
43640 cat confdefs.h >>conftest.$ac_ext
43641 cat >>conftest.$ac_ext <<_ACEOF
43642 /* end confdefs.h.  */
43643 $ac_includes_default
43644 #ifdef HAVE_SYS_SOCKET_H
43645 #include <sys/socket.h>
43646 #endif
43647
43648 int
43649 main ()
43650 {
43651 static struct msghdr ac_aggr;
43652 if (sizeof ac_aggr.msg_accrightslen)
43653 return 0;
43654   ;
43655   return 0;
43656 }
43657 _ACEOF
43658 rm -f conftest.$ac_objext
43659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43660   (eval $ac_compile) 2>conftest.er1
43661   ac_status=$?
43662   grep -v '^ *+' conftest.er1 >conftest.err
43663   rm -f conftest.er1
43664   cat conftest.err >&5
43665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43666   (exit $ac_status); } &&
43667          { ac_try='test -z "$ac_c_werror_flag"
43668                          || test ! -s conftest.err'
43669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43670   (eval $ac_try) 2>&5
43671   ac_status=$?
43672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43673   (exit $ac_status); }; } &&
43674          { ac_try='test -s conftest.$ac_objext'
43675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43676   (eval $ac_try) 2>&5
43677   ac_status=$?
43678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43679   (exit $ac_status); }; }; then
43680   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43681 else
43682   echo "$as_me: failed program was:" >&5
43683 sed 's/^/| /' conftest.$ac_ext >&5
43684
43685 ac_cv_member_struct_msghdr_msg_accrightslen=no
43686 fi
43687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43688 fi
43689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43690 fi
43691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43692 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43693 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43694
43695 cat >>confdefs.h <<_ACEOF
43696 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43697 _ACEOF
43698
43699
43700 fi
43701
43702                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43703                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43704 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43705 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43706   echo $ECHO_N "(cached) $ECHO_C" >&6
43707 else
43708   cat >conftest.$ac_ext <<_ACEOF
43709 /* confdefs.h.  */
43710 _ACEOF
43711 cat confdefs.h >>conftest.$ac_ext
43712 cat >>conftest.$ac_ext <<_ACEOF
43713 /* end confdefs.h.  */
43714 $ac_includes_default
43715 #ifdef HAVE_SYS_SOCKET_H
43716 #include <sys/socket.h>
43717 #endif
43718
43719 int
43720 main ()
43721 {
43722 static struct msghdr ac_aggr;
43723 if (ac_aggr.msg_control)
43724 return 0;
43725   ;
43726   return 0;
43727 }
43728 _ACEOF
43729 rm -f conftest.$ac_objext
43730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43731   (eval $ac_compile) 2>conftest.er1
43732   ac_status=$?
43733   grep -v '^ *+' conftest.er1 >conftest.err
43734   rm -f conftest.er1
43735   cat conftest.err >&5
43736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43737   (exit $ac_status); } &&
43738          { ac_try='test -z "$ac_c_werror_flag"
43739                          || test ! -s conftest.err'
43740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43741   (eval $ac_try) 2>&5
43742   ac_status=$?
43743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43744   (exit $ac_status); }; } &&
43745          { ac_try='test -s conftest.$ac_objext'
43746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747   (eval $ac_try) 2>&5
43748   ac_status=$?
43749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750   (exit $ac_status); }; }; then
43751   ac_cv_member_struct_msghdr_msg_control=yes
43752 else
43753   echo "$as_me: failed program was:" >&5
43754 sed 's/^/| /' conftest.$ac_ext >&5
43755
43756 cat >conftest.$ac_ext <<_ACEOF
43757 /* confdefs.h.  */
43758 _ACEOF
43759 cat confdefs.h >>conftest.$ac_ext
43760 cat >>conftest.$ac_ext <<_ACEOF
43761 /* end confdefs.h.  */
43762 $ac_includes_default
43763 #ifdef HAVE_SYS_SOCKET_H
43764 #include <sys/socket.h>
43765 #endif
43766
43767 int
43768 main ()
43769 {
43770 static struct msghdr ac_aggr;
43771 if (sizeof ac_aggr.msg_control)
43772 return 0;
43773   ;
43774   return 0;
43775 }
43776 _ACEOF
43777 rm -f conftest.$ac_objext
43778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43779   (eval $ac_compile) 2>conftest.er1
43780   ac_status=$?
43781   grep -v '^ *+' conftest.er1 >conftest.err
43782   rm -f conftest.er1
43783   cat conftest.err >&5
43784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43785   (exit $ac_status); } &&
43786          { ac_try='test -z "$ac_c_werror_flag"
43787                          || test ! -s conftest.err'
43788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43789   (eval $ac_try) 2>&5
43790   ac_status=$?
43791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43792   (exit $ac_status); }; } &&
43793          { ac_try='test -s conftest.$ac_objext'
43794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43795   (eval $ac_try) 2>&5
43796   ac_status=$?
43797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43798   (exit $ac_status); }; }; then
43799   ac_cv_member_struct_msghdr_msg_control=yes
43800 else
43801   echo "$as_me: failed program was:" >&5
43802 sed 's/^/| /' conftest.$ac_ext >&5
43803
43804 ac_cv_member_struct_msghdr_msg_control=no
43805 fi
43806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43807 fi
43808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43809 fi
43810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43811 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43812 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43813
43814 cat >>confdefs.h <<_ACEOF
43815 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43816 _ACEOF
43817
43818
43819 fi
43820
43821                 fi
43822         fi
43823         LIBSRCS="$LIBSRCS getpeereid.c"
43824 fi
43825
43826 if test "$ac_cv_func_snprintf" != yes ||
43827    test "$ac_cv_func_vsnprintf" != yes; then
43828         if test "$ac_cv_func_snprintf" != yes; then
43829
43830 cat >>confdefs.h <<\_ACEOF
43831 #define snprintf ber_pvt_snprintf
43832 _ACEOF
43833
43834         fi
43835         if test "$ac_cv_func_vsnprintf" != yes; then
43836
43837 cat >>confdefs.h <<\_ACEOF
43838 #define vsnprintf ber_pvt_vsnprintf
43839 _ACEOF
43840
43841         fi
43842 fi
43843
43844
43845 if test "$ol_enable_slapi" != no ; then
43846
43847 for ac_header in ltdl.h
43848 do
43849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43851   echo "$as_me:$LINENO: checking for $ac_header" >&5
43852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43854   echo $ECHO_N "(cached) $ECHO_C" >&6
43855 fi
43856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43858 else
43859   # Is the header compilable?
43860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43862 cat >conftest.$ac_ext <<_ACEOF
43863 /* confdefs.h.  */
43864 _ACEOF
43865 cat confdefs.h >>conftest.$ac_ext
43866 cat >>conftest.$ac_ext <<_ACEOF
43867 /* end confdefs.h.  */
43868 $ac_includes_default
43869 #include <$ac_header>
43870 _ACEOF
43871 rm -f conftest.$ac_objext
43872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43873   (eval $ac_compile) 2>conftest.er1
43874   ac_status=$?
43875   grep -v '^ *+' conftest.er1 >conftest.err
43876   rm -f conftest.er1
43877   cat conftest.err >&5
43878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879   (exit $ac_status); } &&
43880          { ac_try='test -z "$ac_c_werror_flag"
43881                          || test ! -s conftest.err'
43882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43883   (eval $ac_try) 2>&5
43884   ac_status=$?
43885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43886   (exit $ac_status); }; } &&
43887          { ac_try='test -s conftest.$ac_objext'
43888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43889   (eval $ac_try) 2>&5
43890   ac_status=$?
43891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43892   (exit $ac_status); }; }; then
43893   ac_header_compiler=yes
43894 else
43895   echo "$as_me: failed program was:" >&5
43896 sed 's/^/| /' conftest.$ac_ext >&5
43897
43898 ac_header_compiler=no
43899 fi
43900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43902 echo "${ECHO_T}$ac_header_compiler" >&6
43903
43904 # Is the header present?
43905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43907 cat >conftest.$ac_ext <<_ACEOF
43908 /* confdefs.h.  */
43909 _ACEOF
43910 cat confdefs.h >>conftest.$ac_ext
43911 cat >>conftest.$ac_ext <<_ACEOF
43912 /* end confdefs.h.  */
43913 #include <$ac_header>
43914 _ACEOF
43915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43917   ac_status=$?
43918   grep -v '^ *+' conftest.er1 >conftest.err
43919   rm -f conftest.er1
43920   cat conftest.err >&5
43921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922   (exit $ac_status); } >/dev/null; then
43923   if test -s conftest.err; then
43924     ac_cpp_err=$ac_c_preproc_warn_flag
43925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43926   else
43927     ac_cpp_err=
43928   fi
43929 else
43930   ac_cpp_err=yes
43931 fi
43932 if test -z "$ac_cpp_err"; then
43933   ac_header_preproc=yes
43934 else
43935   echo "$as_me: failed program was:" >&5
43936 sed 's/^/| /' conftest.$ac_ext >&5
43937
43938   ac_header_preproc=no
43939 fi
43940 rm -f conftest.err conftest.$ac_ext
43941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43942 echo "${ECHO_T}$ac_header_preproc" >&6
43943
43944 # So?  What about this header?
43945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43946   yes:no: )
43947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43951     ac_header_preproc=yes
43952     ;;
43953   no:yes:* )
43954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43966     (
43967       cat <<\_ASBOX
43968 ## ------------------------------------------ ##
43969 ## Report this to the AC_PACKAGE_NAME lists.  ##
43970 ## ------------------------------------------ ##
43971 _ASBOX
43972     ) |
43973       sed "s/^/$as_me: WARNING:     /" >&2
43974     ;;
43975 esac
43976 echo "$as_me:$LINENO: checking for $ac_header" >&5
43977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43979   echo $ECHO_N "(cached) $ECHO_C" >&6
43980 else
43981   eval "$as_ac_Header=\$ac_header_preproc"
43982 fi
43983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43985
43986 fi
43987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43988   cat >>confdefs.h <<_ACEOF
43989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43990 _ACEOF
43991
43992 fi
43993
43994 done
43995
43996
43997         if test $ac_cv_header_ltdl_h != yes ; then
43998                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43999 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
44000    { (exit 1); exit 1; }; }
44001         fi
44002         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
44003 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
44004 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
44005   echo $ECHO_N "(cached) $ECHO_C" >&6
44006 else
44007   ac_check_lib_save_LIBS=$LIBS
44008 LIBS="-lltdl  $LIBS"
44009 cat >conftest.$ac_ext <<_ACEOF
44010 /* confdefs.h.  */
44011 _ACEOF
44012 cat confdefs.h >>conftest.$ac_ext
44013 cat >>conftest.$ac_ext <<_ACEOF
44014 /* end confdefs.h.  */
44015
44016 /* Override any gcc2 internal prototype to avoid an error.  */
44017 #ifdef __cplusplus
44018 extern "C"
44019 #endif
44020 /* We use char because int might match the return type of a gcc2
44021    builtin and then its argument prototype would still apply.  */
44022 char lt_dlinit ();
44023 int
44024 main ()
44025 {
44026 lt_dlinit ();
44027   ;
44028   return 0;
44029 }
44030 _ACEOF
44031 rm -f conftest.$ac_objext conftest$ac_exeext
44032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44033   (eval $ac_link) 2>conftest.er1
44034   ac_status=$?
44035   grep -v '^ *+' conftest.er1 >conftest.err
44036   rm -f conftest.er1
44037   cat conftest.err >&5
44038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039   (exit $ac_status); } &&
44040          { ac_try='test -z "$ac_c_werror_flag"
44041                          || test ! -s conftest.err'
44042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043   (eval $ac_try) 2>&5
44044   ac_status=$?
44045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046   (exit $ac_status); }; } &&
44047          { ac_try='test -s conftest$ac_exeext'
44048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44049   (eval $ac_try) 2>&5
44050   ac_status=$?
44051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44052   (exit $ac_status); }; }; then
44053   ac_cv_lib_ltdl_lt_dlinit=yes
44054 else
44055   echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44057
44058 ac_cv_lib_ltdl_lt_dlinit=no
44059 fi
44060 rm -f conftest.err conftest.$ac_objext \
44061       conftest$ac_exeext conftest.$ac_ext
44062 LIBS=$ac_check_lib_save_LIBS
44063 fi
44064 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44065 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44066 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44067
44068                 SLAPI_LIBS=-lltdl
44069                 LIBSLAPI=libslapi.a
44070                 LIBSLAPITOOLS=../libslapi.a
44071
44072 cat >>confdefs.h <<\_ACEOF
44073 #define HAVE_LIBLTDL 1
44074 _ACEOF
44075
44076
44077 else
44078   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44079 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44080    { (exit 1); exit 1; }; }
44081 fi
44082
44083
44084
44085 cat >>confdefs.h <<\_ACEOF
44086 #define LDAP_SLAPI 1
44087 _ACEOF
44088
44089 fi
44090
44091 if test "$ol_enable_debug" != no ; then
44092         if test "$ol_enable_debug" = traditional; then
44093
44094 cat >>confdefs.h <<\_ACEOF
44095 #define OLD_DEBUG 1
44096 _ACEOF
44097
44098         fi
44099
44100 cat >>confdefs.h <<\_ACEOF
44101 #define LDAP_DEBUG 1
44102 _ACEOF
44103
44104 fi
44105 if test "$ol_enable_syslog" = yes ; then
44106
44107 cat >>confdefs.h <<\_ACEOF
44108 #define LDAP_SYSLOG 1
44109 _ACEOF
44110
44111 fi
44112 if test "$ol_link_kbind" != no ; then
44113
44114 cat >>confdefs.h <<\_ACEOF
44115 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44116 _ACEOF
44117
44118 fi
44119 if test "$ol_enable_proctitle" != no ; then
44120
44121 cat >>confdefs.h <<\_ACEOF
44122 #define LDAP_PROCTITLE 1
44123 _ACEOF
44124
44125 fi
44126 if test "$ol_enable_referrals" != no ; then
44127
44128 cat >>confdefs.h <<\_ACEOF
44129 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44130 _ACEOF
44131
44132 fi
44133 if test "$ol_enable_local" != no; then
44134
44135 cat >>confdefs.h <<\_ACEOF
44136 #define LDAP_PF_LOCAL 1
44137 _ACEOF
44138
44139 fi
44140 if test "$ol_link_ipv6" != no; then
44141
44142 cat >>confdefs.h <<\_ACEOF
44143 #define LDAP_PF_INET6 1
44144 _ACEOF
44145
44146 fi
44147 if test "$ol_enable_cleartext" != no ; then
44148
44149 cat >>confdefs.h <<\_ACEOF
44150 #define SLAPD_CLEARTEXT 1
44151 _ACEOF
44152
44153 fi
44154 if test "$ol_enable_crypt" != no ; then
44155
44156 cat >>confdefs.h <<\_ACEOF
44157 #define SLAPD_CRYPT 1
44158 _ACEOF
44159
44160 fi
44161 if test "$ol_link_spasswd" != no ; then
44162
44163 cat >>confdefs.h <<\_ACEOF
44164 #define SLAPD_SPASSWD 1
44165 _ACEOF
44166
44167 fi
44168 if test "$ol_enable_multimaster" != no ; then
44169
44170 cat >>confdefs.h <<\_ACEOF
44171 #define SLAPD_MULTIMASTER 1
44172 _ACEOF
44173
44174 fi
44175 if test "$ol_enable_rlookups" != no ; then
44176
44177 cat >>confdefs.h <<\_ACEOF
44178 #define SLAPD_RLOOKUPS 1
44179 _ACEOF
44180
44181 fi
44182 if test "$ol_enable_aci" != no ; then
44183         if test $ol_enable_dynacl = no ; then
44184                 ol_enable_dynacl=yes
44185                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
44186 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
44187         fi
44188         if test "$ol_enable_aci" = mod ; then
44189                 MFLAG=SLAPD_MOD_DYNAMIC
44190                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
44191 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
44192    { (exit 1); exit 1; }; }
44193         else
44194                 MFLAG=SLAPD_MOD_STATIC
44195         fi
44196         WITH_ACI_ENABLED=$ol_enable_aci
44197
44198 cat >>confdefs.h <<_ACEOF
44199 #define SLAPD_ACI_ENABLED $MFLAG
44200 _ACEOF
44201
44202 else
44203         WITH_ACI_ENABLED=no
44204 fi
44205 if test "$ol_enable_dynacl" != no ; then
44206
44207 cat >>confdefs.h <<\_ACEOF
44208 #define SLAP_DYNACL 1
44209 _ACEOF
44210
44211 fi
44212
44213 if test "$ol_link_modules" != no ; then
44214
44215 cat >>confdefs.h <<\_ACEOF
44216 #define SLAPD_MODULES 1
44217 _ACEOF
44218
44219         BUILD_SLAPD=yes
44220         SLAPD_MODULES_LDFLAGS="-dlopen self"
44221 fi
44222
44223
44224 cat >>confdefs.h <<\_ACEOF
44225 #define SLAPD_MOD_STATIC 1
44226 _ACEOF
44227
44228
44229 cat >>confdefs.h <<\_ACEOF
44230 #define SLAPD_MOD_DYNAMIC 2
44231 _ACEOF
44232
44233
44234 if test "$ol_enable_bdb" != no ; then
44235         BUILD_SLAPD=yes
44236         BUILD_BDB=$ol_enable_bdb
44237         if test "$ol_enable_bdb" = mod ; then
44238                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44239                 MFLAG=SLAPD_MOD_DYNAMIC
44240         else
44241                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44242                 MFLAG=SLAPD_MOD_STATIC
44243         fi
44244
44245 cat >>confdefs.h <<_ACEOF
44246 #define SLAPD_BDB $MFLAG
44247 _ACEOF
44248
44249 fi
44250
44251 if test "$ol_enable_dnssrv" != no ; then
44252         BUILD_SLAPD=yes
44253         BUILD_DNSSRV=$ol_enable_dnssrv
44254         if test "$ol_enable_dnssrv" = mod ; then
44255                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44256                 MFLAG=SLAPD_MOD_DYNAMIC
44257         else
44258                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44259                 MFLAG=SLAPD_MOD_STATIC
44260         fi
44261
44262 cat >>confdefs.h <<_ACEOF
44263 #define SLAPD_DNSSRV $MFLAG
44264 _ACEOF
44265
44266 fi
44267
44268 if test "$ol_enable_hdb" != no ; then
44269         BUILD_SLAPD=yes
44270         BUILD_HDB=$ol_enable_hdb
44271         if test "$ol_enable_hdb" = mod ; then
44272                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44273                 MFLAG=SLAPD_MOD_DYNAMIC
44274         else
44275                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44276                 MFLAG=SLAPD_MOD_STATIC
44277         fi
44278
44279 cat >>confdefs.h <<_ACEOF
44280 #define SLAPD_HDB $MFLAG
44281 _ACEOF
44282
44283 fi
44284
44285 if test "$ol_enable_ldap" != no ; then
44286         BUILD_SLAPD=yes
44287         BUILD_LDAP=$ol_enable_ldap
44288         if test "$ol_enable_ldap" = mod ; then
44289                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44290                 MFLAG=SLAPD_MOD_DYNAMIC
44291         else
44292                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44293                 MFLAG=SLAPD_MOD_STATIC
44294         fi
44295
44296 cat >>confdefs.h <<_ACEOF
44297 #define SLAPD_LDAP $MFLAG
44298 _ACEOF
44299
44300 fi
44301
44302 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44303         BUILD_SLAPD=yes
44304         BUILD_LDBM=$ol_enable_ldbm
44305         if test "$ol_enable_ldbm" = mod ; then
44306                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44307                 MFLAG=SLAPD_MOD_DYNAMIC
44308         else
44309                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44310                 MFLAG=SLAPD_MOD_STATIC
44311         fi
44312
44313 cat >>confdefs.h <<_ACEOF
44314 #define SLAPD_LDBM $MFLAG
44315 _ACEOF
44316
44317 fi
44318
44319 if test "$ol_enable_meta" != no ; then
44320         BUILD_SLAPD=yes
44321         BUILD_META=$ol_enable_meta
44322         BUILD_REWRITE=yes
44323         if test "$ol_enable_meta" = mod ; then
44324                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44325                 MFLAG=SLAPD_MOD_DYNAMIC
44326         else
44327                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44328                 MFLAG=SLAPD_MOD_STATIC
44329         fi
44330
44331 cat >>confdefs.h <<_ACEOF
44332 #define SLAPD_META $MFLAG
44333 _ACEOF
44334
44335 fi
44336
44337 if test "$ol_enable_monitor" != no ; then
44338         BUILD_SLAPD=yes
44339         BUILD_MONITOR=$ol_enable_monitor
44340         if test "$ol_enable_monitor" = mod ; then
44341                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44342                 MFLAG=SLAPD_MOD_DYNAMIC
44343         else
44344                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44345                 MFLAG=SLAPD_MOD_STATIC
44346         fi
44347
44348 cat >>confdefs.h <<_ACEOF
44349 #define SLAPD_MONITOR $MFLAG
44350 _ACEOF
44351
44352 fi
44353
44354 if test "$ol_enable_null" != no ; then
44355         BUILD_SLAPD=yes
44356         BUILD_NULL=$ol_enable_null
44357         if test "$ol_enable_null" = mod ; then
44358                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44359                 MFLAG=SLAPD_MOD_DYNAMIC
44360         else
44361                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44362                 MFLAG=SLAPD_MOD_STATIC
44363         fi
44364
44365 cat >>confdefs.h <<_ACEOF
44366 #define SLAPD_NULL $MFLAG
44367 _ACEOF
44368
44369 fi
44370
44371 if test "$ol_enable_passwd" != no ; then
44372         BUILD_SLAPD=yes
44373         BUILD_PASSWD=$ol_enable_passwd
44374         if test "$ol_enable_passwd" = mod ; then
44375                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44376                 MFLAG=SLAPD_MOD_DYNAMIC
44377         else
44378                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44379                 MFLAG=SLAPD_MOD_STATIC
44380         fi
44381
44382 cat >>confdefs.h <<_ACEOF
44383 #define SLAPD_PASSWD $MFLAG
44384 _ACEOF
44385
44386 fi
44387
44388 if test "$ol_link_perl" != no ; then
44389         BUILD_SLAPD=yes
44390         BUILD_PERL=$ol_enable_perl
44391         if test "$ol_enable_perl" = mod ; then
44392                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44393                 MFLAG=SLAPD_MOD_DYNAMIC
44394         else
44395                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44396                 MFLAG=SLAPD_MOD_STATIC
44397         fi
44398
44399 cat >>confdefs.h <<_ACEOF
44400 #define SLAPD_PERL $MFLAG
44401 _ACEOF
44402
44403 fi
44404
44405 if test "$ol_enable_relay" != no ; then
44406         BUILD_SLAPD=yes
44407         BUILD_RELAY=$ol_enable_relay
44408         if test "$ol_enable_relay" = mod ; then
44409                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44410                 MFLAG=SLAPD_MOD_DYNAMIC
44411         else
44412                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44413                 MFLAG=SLAPD_MOD_STATIC
44414         fi
44415
44416 cat >>confdefs.h <<_ACEOF
44417 #define SLAPD_RELAY $MFLAG
44418 _ACEOF
44419
44420 fi
44421
44422 if test "$ol_enable_shell" != no ; then
44423         if test "$ol_link_threads" != no ; then
44424                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44425 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44426         fi
44427         BUILD_SLAPD=yes
44428         BUILD_SHELL=$ol_enable_shell
44429         if test "$ol_enable_shell" = mod ; then
44430                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44431                 MFLAG=SLAPD_MOD_DYNAMIC
44432         else
44433                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44434                 MFLAG=SLAPD_MOD_STATIC
44435         fi
44436
44437 cat >>confdefs.h <<_ACEOF
44438 #define SLAPD_SHELL $MFLAG
44439 _ACEOF
44440
44441 fi
44442
44443 if test "$ol_link_sql" != no ; then
44444         BUILD_SLAPD=yes
44445         BUILD_SQL=$ol_enable_sql
44446         if test "$ol_enable_sql" = mod; then
44447                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44448                 MFLAG=SLAPD_MOD_DYNAMIC
44449         else
44450                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44451                 MFLAG=SLAPD_MOD_STATIC
44452         fi
44453
44454 cat >>confdefs.h <<_ACEOF
44455 #define SLAPD_SQL $MFLAG
44456 _ACEOF
44457
44458 fi
44459
44460 if test "$ol_enable_accesslog" != no ; then
44461         BUILD_ACCESSLOG=$ol_enable_accesslog
44462         if test "$ol_enable_accesslog" = mod ; then
44463                 MFLAG=SLAPD_MOD_DYNAMIC
44464                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44465         else
44466                 MFLAG=SLAPD_MOD_STATIC
44467                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44468         fi
44469
44470 cat >>confdefs.h <<_ACEOF
44471 #define SLAPD_OVER_ACCESSLOG $MFLAG
44472 _ACEOF
44473
44474 fi
44475
44476 if test "$ol_enable_dds" != no ; then
44477         BUILD_DDS=$ol_enable_dds
44478         if test "$ol_enable_dds" = mod ; then
44479                 MFLAG=SLAPD_MOD_DYNAMIC
44480                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
44481         else
44482                 MFLAG=SLAPD_MOD_STATIC
44483                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
44484         fi
44485
44486 cat >>confdefs.h <<_ACEOF
44487 #define SLAPD_OVER_DDS $MFLAG
44488 _ACEOF
44489
44490 fi
44491
44492 if test "$ol_enable_denyop" != no ; then
44493         BUILD_DENYOP=$ol_enable_denyop
44494         if test "$ol_enable_denyop" = mod ; then
44495                 MFLAG=SLAPD_MOD_DYNAMIC
44496                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44497         else
44498                 MFLAG=SLAPD_MOD_STATIC
44499                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44500         fi
44501
44502 cat >>confdefs.h <<_ACEOF
44503 #define SLAPD_OVER_DENYOP $MFLAG
44504 _ACEOF
44505
44506 fi
44507
44508 if test "$ol_enable_dyngroup" != no ; then
44509         BUILD_DYNGROUP=$ol_enable_dyngroup
44510         if test "$ol_enable_dyngroup" = mod ; then
44511                 MFLAG=SLAPD_MOD_DYNAMIC
44512                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44513         else
44514                 MFLAG=SLAPD_MOD_STATIC
44515                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44516         fi
44517
44518 cat >>confdefs.h <<_ACEOF
44519 #define SLAPD_OVER_DYNGROUP $MFLAG
44520 _ACEOF
44521
44522 fi
44523
44524 if test "$ol_enable_dynlist" != no ; then
44525         BUILD_DYNLIST=$ol_enable_dynlist
44526         if test "$ol_enable_dynlist" = mod ; then
44527                 MFLAG=SLAPD_MOD_DYNAMIC
44528                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44529         else
44530                 MFLAG=SLAPD_MOD_STATIC
44531                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44532         fi
44533
44534 cat >>confdefs.h <<_ACEOF
44535 #define SLAPD_OVER_DYNLIST $MFLAG
44536 _ACEOF
44537
44538 fi
44539
44540 if test "$ol_enable_lastmod" != no ; then
44541         BUILD_LASTMOD=$ol_enable_lastmod
44542         if test "$ol_enable_lastmod" = mod ; then
44543                 MFLAG=SLAPD_MOD_DYNAMIC
44544                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44545         else
44546                 MFLAG=SLAPD_MOD_STATIC
44547                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44548         fi
44549
44550 cat >>confdefs.h <<_ACEOF
44551 #define SLAPD_OVER_LASTMOD $MFLAG
44552 _ACEOF
44553
44554 fi
44555
44556 if test "$ol_enable_ppolicy" != no ; then
44557         BUILD_PPOLICY=$ol_enable_ppolicy
44558         if test "$ol_enable_ppolicy" = mod ; then
44559                 MFLAG=SLAPD_MOD_DYNAMIC
44560                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44561         else
44562                 MFLAG=SLAPD_MOD_STATIC
44563                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44564         fi
44565
44566 cat >>confdefs.h <<_ACEOF
44567 #define SLAPD_OVER_PPOLICY $MFLAG
44568 _ACEOF
44569
44570 fi
44571
44572 if test "$ol_enable_proxycache" != no ; then
44573         BUILD_PROXYCACHE=$ol_enable_proxycache
44574         if test "$ol_enable_proxycache" = mod ; then
44575                 MFLAG=SLAPD_MOD_DYNAMIC
44576                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44577         else
44578                 MFLAG=SLAPD_MOD_STATIC
44579                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44580         fi
44581
44582 cat >>confdefs.h <<_ACEOF
44583 #define SLAPD_OVER_PROXYCACHE $MFLAG
44584 _ACEOF
44585
44586 fi
44587
44588 if test "$ol_enable_refint" != no ; then
44589         BUILD_REFINT=$ol_enable_refint
44590         if test "$ol_enable_refint" = mod ; then
44591                 MFLAG=SLAPD_MOD_DYNAMIC
44592                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44593         else
44594                 MFLAG=SLAPD_MOD_STATIC
44595                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44596         fi
44597
44598 cat >>confdefs.h <<_ACEOF
44599 #define SLAPD_OVER_REFINT $MFLAG
44600 _ACEOF
44601
44602 fi
44603
44604 if test "$ol_enable_retcode" != no ; then
44605         BUILD_RETCODE=$ol_enable_retcode
44606         if test "$ol_enable_retcode" = mod ; then
44607                 MFLAG=SLAPD_MOD_DYNAMIC
44608                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44609         else
44610                 MFLAG=SLAPD_MOD_STATIC
44611                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44612         fi
44613
44614 cat >>confdefs.h <<_ACEOF
44615 #define SLAPD_OVER_RETCODE $MFLAG
44616 _ACEOF
44617
44618 fi
44619
44620 if test "$ol_enable_rwm" != no ; then
44621         BUILD_REWRITE=yes
44622         BUILD_RWM=$ol_enable_rwm
44623         if test "$ol_enable_rwm" = mod ; then
44624                 MFLAG=SLAPD_MOD_DYNAMIC
44625                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44626         else
44627                 MFLAG=SLAPD_MOD_STATIC
44628                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44629         fi
44630
44631 cat >>confdefs.h <<_ACEOF
44632 #define SLAPD_OVER_RWM $MFLAG
44633 _ACEOF
44634
44635 fi
44636
44637 if test "$ol_enable_syncprov" != no ; then
44638         BUILD_SYNCPROV=$ol_enable_syncprov
44639         if test "$ol_enable_syncprov" = mod ; then
44640                 MFLAG=SLAPD_MOD_DYNAMIC
44641                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44642         else
44643                 MFLAG=SLAPD_MOD_STATIC
44644                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44645         fi
44646
44647 cat >>confdefs.h <<_ACEOF
44648 #define SLAPD_OVER_SYNCPROV $MFLAG
44649 _ACEOF
44650
44651 fi
44652
44653 if test "$ol_enable_translucent" != no ; then
44654         BUILD_TRANSLUCENT=$ol_enable_translucent
44655         if test "$ol_enable_translucent" = mod ; then
44656                 MFLAG=SLAPD_MOD_DYNAMIC
44657                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44658         else
44659                 MFLAG=SLAPD_MOD_STATIC
44660                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44661         fi
44662
44663 cat >>confdefs.h <<_ACEOF
44664 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44665 _ACEOF
44666
44667 fi
44668
44669 if test "$ol_enable_unique" != no ; then
44670         BUILD_UNIQUE=$ol_enable_unique
44671         if test "$ol_enable_unique" = mod ; then
44672                 MFLAG=SLAPD_MOD_DYNAMIC
44673                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44674         else
44675                 MFLAG=SLAPD_MOD_STATIC
44676                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44677         fi
44678
44679 cat >>confdefs.h <<_ACEOF
44680 #define SLAPD_OVER_UNIQUE $MFLAG
44681 _ACEOF
44682
44683 fi
44684
44685 if test "$ol_enable_valsort" != no ; then
44686         BUILD_VALSORT=$ol_enable_valsort
44687         if test "$ol_enable_valsort" = mod ; then
44688                 MFLAG=SLAPD_MOD_DYNAMIC
44689                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44690         else
44691                 MFLAG=SLAPD_MOD_STATIC
44692                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44693         fi
44694
44695 cat >>confdefs.h <<_ACEOF
44696 #define SLAPD_OVER_VALSORT $MFLAG
44697 _ACEOF
44698
44699 fi
44700
44701 if test "$ol_enable_slurpd" != no &&
44702    test "$ol_link_threads" != no &&
44703    test $BUILD_SLAPD = yes ; then
44704         BUILD_SLURPD=yes
44705 fi
44706
44707 if test "$ol_enable_rewrite" != no ; then
44708
44709 cat >>confdefs.h <<\_ACEOF
44710 #define ENABLE_REWRITE 1
44711 _ACEOF
44712
44713         BUILD_REWRITE=yes
44714 fi
44715
44716 if test "$ol_enable_slapi" != no ; then
44717
44718 cat >>confdefs.h <<\_ACEOF
44719 #define ENABLE_SLAPI 1
44720 _ACEOF
44721
44722         BUILD_SLAPI=yes
44723         SLAPD_SLAPI_DEPEND=libslapi.a
44724 fi
44725
44726
44727
44728 if test "$ac_cv_mingw32" = yes ; then
44729         PLAT=NT
44730         SLAPD_MODULES_LDFLAGS=
44731 else
44732         PLAT=UNIX
44733 fi
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
44774
44775
44776
44777
44778
44779
44780
44781
44782
44783
44784
44785
44786
44787
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817 # Check whether --with-xxinstall or --without-xxinstall was given.
44818 if test "${with_xxinstall+set}" = set; then
44819   withval="$with_xxinstall"
44820
44821 fi;
44822
44823
44824                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44825
44826
44827           ac_config_commands="$ac_config_commands default"
44828
44829
44830
44831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44832 # Let make expand exec_prefix.
44833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44834
44835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44837 # trailing colons and then remove the whole line if VPATH becomes empty
44838 # (actually we leave an empty line to preserve line numbers).
44839 if test "x$srcdir" = x.; then
44840   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44841 s/:*\$(srcdir):*/:/;
44842 s/:*\${srcdir}:*/:/;
44843 s/:*@srcdir@:*/:/;
44844 s/^\([^=]*=[     ]*\):*/\1/;
44845 s/:*$//;
44846 s/^[^=]*=[       ]*$//;
44847 }'
44848 fi
44849
44850 DEFS=-DHAVE_CONFIG_H
44851
44852 ac_libobjs=
44853 ac_ltlibobjs=
44854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44855   # 1. Remove the extension, and $U if already installed.
44856   ac_i=`echo "$ac_i" |
44857          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44858   # 2. Add them.
44859   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44860   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44861 done
44862 LIBOBJS=$ac_libobjs
44863
44864 LTLIBOBJS=$ac_ltlibobjs
44865
44866
44867 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44868   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44869 Usually this means the macro was only invoked conditionally." >&5
44870 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44871 Usually this means the macro was only invoked conditionally." >&2;}
44872    { (exit 1); exit 1; }; }
44873 fi
44874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44875   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44876 Usually this means the macro was only invoked conditionally." >&5
44877 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44878 Usually this means the macro was only invoked conditionally." >&2;}
44879    { (exit 1); exit 1; }; }
44880 fi
44881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44882   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44883 Usually this means the macro was only invoked conditionally." >&5
44884 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44885 Usually this means the macro was only invoked conditionally." >&2;}
44886    { (exit 1); exit 1; }; }
44887 fi
44888
44889 : ${CONFIG_STATUS=./config.status}
44890 ac_clean_files_save=$ac_clean_files
44891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44894 cat >$CONFIG_STATUS <<_ACEOF
44895 #! $SHELL
44896 # Generated by $as_me.
44897 # Run this file to recreate the current configuration.
44898 # Compiler output produced by configure, useful for debugging
44899 # configure, is in config.log if it exists.
44900
44901 debug=false
44902 ac_cs_recheck=false
44903 ac_cs_silent=false
44904 SHELL=\${CONFIG_SHELL-$SHELL}
44905 _ACEOF
44906
44907 cat >>$CONFIG_STATUS <<\_ACEOF
44908 ## --------------------- ##
44909 ## M4sh Initialization.  ##
44910 ## --------------------- ##
44911
44912 # Be Bourne compatible
44913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44914   emulate sh
44915   NULLCMD=:
44916   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44917   # is contrary to our usage.  Disable this feature.
44918   alias -g '${1+"$@"}'='"$@"'
44919 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44920   set -o posix
44921 fi
44922 DUALCASE=1; export DUALCASE # for MKS sh
44923
44924 # Support unset when possible.
44925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44926   as_unset=unset
44927 else
44928   as_unset=false
44929 fi
44930
44931
44932 # Work around bugs in pre-3.0 UWIN ksh.
44933 $as_unset ENV MAIL MAILPATH
44934 PS1='$ '
44935 PS2='> '
44936 PS4='+ '
44937
44938 # NLS nuisances.
44939 for as_var in \
44940   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44941   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44942   LC_TELEPHONE LC_TIME
44943 do
44944   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44945     eval $as_var=C; export $as_var
44946   else
44947     $as_unset $as_var
44948   fi
44949 done
44950
44951 # Required to use basename.
44952 if expr a : '\(a\)' >/dev/null 2>&1; then
44953   as_expr=expr
44954 else
44955   as_expr=false
44956 fi
44957
44958 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44959   as_basename=basename
44960 else
44961   as_basename=false
44962 fi
44963
44964
44965 # Name of the executable.
44966 as_me=`$as_basename "$0" ||
44967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44968          X"$0" : 'X\(//\)$' \| \
44969          X"$0" : 'X\(/\)$' \| \
44970          .     : '\(.\)' 2>/dev/null ||
44971 echo X/"$0" |
44972     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44973           /^X\/\(\/\/\)$/{ s//\1/; q; }
44974           /^X\/\(\/\).*/{ s//\1/; q; }
44975           s/.*/./; q'`
44976
44977
44978 # PATH needs CR, and LINENO needs CR and PATH.
44979 # Avoid depending upon Character Ranges.
44980 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44981 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44982 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44983 as_cr_digits='0123456789'
44984 as_cr_alnum=$as_cr_Letters$as_cr_digits
44985
44986 # The user is always right.
44987 if test "${PATH_SEPARATOR+set}" != set; then
44988   echo "#! /bin/sh" >conf$$.sh
44989   echo  "exit 0"   >>conf$$.sh
44990   chmod +x conf$$.sh
44991   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44992     PATH_SEPARATOR=';'
44993   else
44994     PATH_SEPARATOR=:
44995   fi
44996   rm -f conf$$.sh
44997 fi
44998
44999
45000   as_lineno_1=$LINENO
45001   as_lineno_2=$LINENO
45002   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45003   test "x$as_lineno_1" != "x$as_lineno_2" &&
45004   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
45005   # Find who we are.  Look in the path if we contain no path at all
45006   # relative or not.
45007   case $0 in
45008     *[\\/]* ) as_myself=$0 ;;
45009     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45010 for as_dir in $PATH
45011 do
45012   IFS=$as_save_IFS
45013   test -z "$as_dir" && as_dir=.
45014   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45015 done
45016
45017        ;;
45018   esac
45019   # We did not find ourselves, most probably we were run as `sh COMMAND'
45020   # in which case we are not to be found in the path.
45021   if test "x$as_myself" = x; then
45022     as_myself=$0
45023   fi
45024   if test ! -f "$as_myself"; then
45025     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45026 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45027    { (exit 1); exit 1; }; }
45028   fi
45029   case $CONFIG_SHELL in
45030   '')
45031     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45032 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45033 do
45034   IFS=$as_save_IFS
45035   test -z "$as_dir" && as_dir=.
45036   for as_base in sh bash ksh sh5; do
45037          case $as_dir in
45038          /*)
45039            if ("$as_dir/$as_base" -c '
45040   as_lineno_1=$LINENO
45041   as_lineno_2=$LINENO
45042   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45043   test "x$as_lineno_1" != "x$as_lineno_2" &&
45044   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
45045              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45046              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45047              CONFIG_SHELL=$as_dir/$as_base
45048              export CONFIG_SHELL
45049              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45050            fi;;
45051          esac
45052        done
45053 done
45054 ;;
45055   esac
45056
45057   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45058   # uniformly replaced by the line number.  The first 'sed' inserts a
45059   # line-number line before each line; the second 'sed' does the real
45060   # work.  The second script uses 'N' to pair each line-number line
45061   # with the numbered line, and appends trailing '-' during
45062   # substitution so that $LINENO is not a special case at line end.
45063   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45064   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
45065   sed '=' <$as_myself |
45066     sed '
45067       N
45068       s,$,-,
45069       : loop
45070       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45071       t loop
45072       s,-$,,
45073       s,^['$as_cr_digits']*\n,,
45074     ' >$as_me.lineno &&
45075   chmod +x $as_me.lineno ||
45076     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45077 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45078    { (exit 1); exit 1; }; }
45079
45080   # Don't try to exec as it changes $[0], causing all sort of problems
45081   # (the dirname of $[0] is not the place where we might find the
45082   # original and so on.  Autoconf is especially sensible to this).
45083   . ./$as_me.lineno
45084   # Exit status is that of the last command.
45085   exit
45086 }
45087
45088
45089 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45090   *c*,-n*) ECHO_N= ECHO_C='
45091 ' ECHO_T='      ' ;;
45092   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45093   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
45094 esac
45095
45096 if expr a : '\(a\)' >/dev/null 2>&1; then
45097   as_expr=expr
45098 else
45099   as_expr=false
45100 fi
45101
45102 rm -f conf$$ conf$$.exe conf$$.file
45103 echo >conf$$.file
45104 if ln -s conf$$.file conf$$ 2>/dev/null; then
45105   # We could just check for DJGPP; but this test a) works b) is more generic
45106   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45107   if test -f conf$$.exe; then
45108     # Don't use ln at all; we don't have any links
45109     as_ln_s='cp -p'
45110   else
45111     as_ln_s='ln -s'
45112   fi
45113 elif ln conf$$.file conf$$ 2>/dev/null; then
45114   as_ln_s=ln
45115 else
45116   as_ln_s='cp -p'
45117 fi
45118 rm -f conf$$ conf$$.exe conf$$.file
45119
45120 if mkdir -p . 2>/dev/null; then
45121   as_mkdir_p=:
45122 else
45123   test -d ./-p && rmdir ./-p
45124   as_mkdir_p=false
45125 fi
45126
45127 as_executable_p="test -f"
45128
45129 # Sed expression to map a string onto a valid CPP name.
45130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45131
45132 # Sed expression to map a string onto a valid variable name.
45133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45134
45135
45136 # IFS
45137 # We need space, tab and new line, in precisely that order.
45138 as_nl='
45139 '
45140 IFS="   $as_nl"
45141
45142 # CDPATH.
45143 $as_unset CDPATH
45144
45145 exec 6>&1
45146
45147 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45148 # report actual input values of CONFIG_FILES etc. instead of their
45149 # values after options handling.  Logging --version etc. is OK.
45150 exec 5>>config.log
45151 {
45152   echo
45153   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45154 ## Running $as_me. ##
45155 _ASBOX
45156 } >&5
45157 cat >&5 <<_CSEOF
45158
45159 This file was extended by $as_me, which was
45160 generated by GNU Autoconf 2.59.  Invocation command line was
45161
45162   CONFIG_FILES    = $CONFIG_FILES
45163   CONFIG_HEADERS  = $CONFIG_HEADERS
45164   CONFIG_LINKS    = $CONFIG_LINKS
45165   CONFIG_COMMANDS = $CONFIG_COMMANDS
45166   $ $0 $@
45167
45168 _CSEOF
45169 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45170 echo >&5
45171 _ACEOF
45172
45173 # Files that config.status was made for.
45174 if test -n "$ac_config_files"; then
45175   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45176 fi
45177
45178 if test -n "$ac_config_headers"; then
45179   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45180 fi
45181
45182 if test -n "$ac_config_links"; then
45183   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45184 fi
45185
45186 if test -n "$ac_config_commands"; then
45187   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45188 fi
45189
45190 cat >>$CONFIG_STATUS <<\_ACEOF
45191
45192 ac_cs_usage="\
45193 \`$as_me' instantiates files from templates according to the
45194 current configuration.
45195
45196 Usage: $0 [OPTIONS] [FILE]...
45197
45198   -h, --help       print this help, then exit
45199   -V, --version    print version number, then exit
45200   -q, --quiet      do not print progress messages
45201   -d, --debug      don't remove temporary files
45202       --recheck    update $as_me by reconfiguring in the same conditions
45203   --file=FILE[:TEMPLATE]
45204                    instantiate the configuration file FILE
45205   --header=FILE[:TEMPLATE]
45206                    instantiate the configuration header FILE
45207
45208 Configuration files:
45209 $config_files
45210
45211 Configuration headers:
45212 $config_headers
45213
45214 Configuration commands:
45215 $config_commands
45216
45217 Report bugs to <bug-autoconf@gnu.org>."
45218 _ACEOF
45219
45220 cat >>$CONFIG_STATUS <<_ACEOF
45221 ac_cs_version="\\
45222 config.status
45223 configured by $0, generated by GNU Autoconf 2.59,
45224   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45225
45226 Copyright (C) 2003 Free Software Foundation, Inc.
45227 This config.status script is free software; the Free Software Foundation
45228 gives unlimited permission to copy, distribute and modify it."
45229 srcdir=$srcdir
45230 INSTALL="$INSTALL"
45231 _ACEOF
45232
45233 cat >>$CONFIG_STATUS <<\_ACEOF
45234 # If no file are specified by the user, then we need to provide default
45235 # value.  By we need to know if files were specified by the user.
45236 ac_need_defaults=:
45237 while test $# != 0
45238 do
45239   case $1 in
45240   --*=*)
45241     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45242     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45243     ac_shift=:
45244     ;;
45245   -*)
45246     ac_option=$1
45247     ac_optarg=$2
45248     ac_shift=shift
45249     ;;
45250   *) # This is not an option, so the user has probably given explicit
45251      # arguments.
45252      ac_option=$1
45253      ac_need_defaults=false;;
45254   esac
45255
45256   case $ac_option in
45257   # Handling of the options.
45258 _ACEOF
45259 cat >>$CONFIG_STATUS <<\_ACEOF
45260   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45261     ac_cs_recheck=: ;;
45262   --version | --vers* | -V )
45263     echo "$ac_cs_version"; exit 0 ;;
45264   --he | --h)
45265     # Conflict between --help and --header
45266     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45267 Try \`$0 --help' for more information." >&5
45268 echo "$as_me: error: ambiguous option: $1
45269 Try \`$0 --help' for more information." >&2;}
45270    { (exit 1); exit 1; }; };;
45271   --help | --hel | -h )
45272     echo "$ac_cs_usage"; exit 0 ;;
45273   --debug | --d* | -d )
45274     debug=: ;;
45275   --file | --fil | --fi | --f )
45276     $ac_shift
45277     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45278     ac_need_defaults=false;;
45279   --header | --heade | --head | --hea )
45280     $ac_shift
45281     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45282     ac_need_defaults=false;;
45283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45284   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45285     ac_cs_silent=: ;;
45286
45287   # This is an error.
45288   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45289 Try \`$0 --help' for more information." >&5
45290 echo "$as_me: error: unrecognized option: $1
45291 Try \`$0 --help' for more information." >&2;}
45292    { (exit 1); exit 1; }; } ;;
45293
45294   *) ac_config_targets="$ac_config_targets $1" ;;
45295
45296   esac
45297   shift
45298 done
45299
45300 ac_configure_extra_args=
45301
45302 if $ac_cs_silent; then
45303   exec 6>/dev/null
45304   ac_configure_extra_args="$ac_configure_extra_args --silent"
45305 fi
45306
45307 _ACEOF
45308 cat >>$CONFIG_STATUS <<_ACEOF
45309 if \$ac_cs_recheck; then
45310   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45311   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45312 fi
45313
45314 _ACEOF
45315
45316 cat >>$CONFIG_STATUS <<_ACEOF
45317 #
45318 # INIT-COMMANDS section.
45319 #
45320
45321 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45322
45323 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45324 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45325
45326
45327 _ACEOF
45328
45329
45330
45331 cat >>$CONFIG_STATUS <<\_ACEOF
45332 for ac_config_target in $ac_config_targets
45333 do
45334   case "$ac_config_target" in
45335   # Handling of arguments.
45336   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45337   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45338   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45339   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45340   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45341   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45342   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45343   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45344   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45345   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45346   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45347   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45348   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45349   "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" ;;
45350   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45351   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45352   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45353   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45354   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45355   "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" ;;
45356   "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" ;;
45357   "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" ;;
45358   "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" ;;
45359   "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" ;;
45360   "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" ;;
45361   "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" ;;
45362   "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" ;;
45363   "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" ;;
45364   "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" ;;
45365   "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" ;;
45366   "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" ;;
45367   "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" ;;
45368   "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" ;;
45369   "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" ;;
45370   "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" ;;
45371   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45372   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45373   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45374   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45375   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45376   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45377   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45378   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45379   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45380   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45381   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45383    { (exit 1); exit 1; }; };;
45384   esac
45385 done
45386
45387 # If the user did not use the arguments to specify the items to instantiate,
45388 # then the envvar interface is used.  Set only those that are not.
45389 # We use the long form for the default assignment because of an extremely
45390 # bizarre bug on SunOS 4.1.3.
45391 if $ac_need_defaults; then
45392   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45393   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45394   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45395 fi
45396
45397 # Have a temporary directory for convenience.  Make it in the build tree
45398 # simply because there is no reason to put it here, and in addition,
45399 # creating and moving files from /tmp can sometimes cause problems.
45400 # Create a temporary directory, and hook for its removal unless debugging.
45401 $debug ||
45402 {
45403   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45404   trap '{ (exit 1); exit 1; }' 1 2 13 15
45405 }
45406
45407 # Create a (secure) tmp directory for tmp files.
45408
45409 {
45410   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45411   test -n "$tmp" && test -d "$tmp"
45412 }  ||
45413 {
45414   tmp=./confstat$$-$RANDOM
45415   (umask 077 && mkdir $tmp)
45416 } ||
45417 {
45418    echo "$me: cannot create a temporary directory in ." >&2
45419    { (exit 1); exit 1; }
45420 }
45421
45422 _ACEOF
45423
45424 cat >>$CONFIG_STATUS <<_ACEOF
45425
45426 #
45427 # CONFIG_FILES section.
45428 #
45429
45430 # No need to generate the scripts if there are no CONFIG_FILES.
45431 # This happens for instance when ./config.status config.h
45432 if test -n "\$CONFIG_FILES"; then
45433   # Protect against being on the right side of a sed subst in config.status.
45434   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45435    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45436 s,@SHELL@,$SHELL,;t t
45437 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45438 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45439 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45440 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45441 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45442 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45443 s,@exec_prefix@,$exec_prefix,;t t
45444 s,@prefix@,$prefix,;t t
45445 s,@program_transform_name@,$program_transform_name,;t t
45446 s,@bindir@,$bindir,;t t
45447 s,@sbindir@,$sbindir,;t t
45448 s,@libexecdir@,$libexecdir,;t t
45449 s,@datadir@,$datadir,;t t
45450 s,@sysconfdir@,$sysconfdir,;t t
45451 s,@sharedstatedir@,$sharedstatedir,;t t
45452 s,@localstatedir@,$localstatedir,;t t
45453 s,@libdir@,$libdir,;t t
45454 s,@includedir@,$includedir,;t t
45455 s,@oldincludedir@,$oldincludedir,;t t
45456 s,@infodir@,$infodir,;t t
45457 s,@mandir@,$mandir,;t t
45458 s,@build_alias@,$build_alias,;t t
45459 s,@host_alias@,$host_alias,;t t
45460 s,@target_alias@,$target_alias,;t t
45461 s,@DEFS@,$DEFS,;t t
45462 s,@ECHO_C@,$ECHO_C,;t t
45463 s,@ECHO_N@,$ECHO_N,;t t
45464 s,@ECHO_T@,$ECHO_T,;t t
45465 s,@LIBS@,$LIBS,;t t
45466 s,@build@,$build,;t t
45467 s,@build_cpu@,$build_cpu,;t t
45468 s,@build_vendor@,$build_vendor,;t t
45469 s,@build_os@,$build_os,;t t
45470 s,@host@,$host,;t t
45471 s,@host_cpu@,$host_cpu,;t t
45472 s,@host_vendor@,$host_vendor,;t t
45473 s,@host_os@,$host_os,;t t
45474 s,@target@,$target,;t t
45475 s,@target_cpu@,$target_cpu,;t t
45476 s,@target_vendor@,$target_vendor,;t t
45477 s,@target_os@,$target_os,;t t
45478 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45479 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45480 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45481 s,@CYGPATH_W@,$CYGPATH_W,;t t
45482 s,@PACKAGE@,$PACKAGE,;t t
45483 s,@VERSION@,$VERSION,;t t
45484 s,@ACLOCAL@,$ACLOCAL,;t t
45485 s,@AUTOCONF@,$AUTOCONF,;t t
45486 s,@AUTOMAKE@,$AUTOMAKE,;t t
45487 s,@AUTOHEADER@,$AUTOHEADER,;t t
45488 s,@MAKEINFO@,$MAKEINFO,;t t
45489 s,@install_sh@,$install_sh,;t t
45490 s,@STRIP@,$STRIP,;t t
45491 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45492 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45493 s,@mkdir_p@,$mkdir_p,;t t
45494 s,@AWK@,$AWK,;t t
45495 s,@SET_MAKE@,$SET_MAKE,;t t
45496 s,@am__leading_dot@,$am__leading_dot,;t t
45497 s,@AMTAR@,$AMTAR,;t t
45498 s,@am__tar@,$am__tar,;t t
45499 s,@am__untar@,$am__untar,;t t
45500 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45501 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45502 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45503 s,@top_builddir@,$top_builddir,;t t
45504 s,@ldap_subdir@,$ldap_subdir,;t t
45505 s,@CC@,$CC,;t t
45506 s,@AR@,$AR,;t t
45507 s,@CFLAGS@,$CFLAGS,;t t
45508 s,@LDFLAGS@,$LDFLAGS,;t t
45509 s,@CPPFLAGS@,$CPPFLAGS,;t t
45510 s,@ac_ct_CC@,$ac_ct_CC,;t t
45511 s,@EXEEXT@,$EXEEXT,;t t
45512 s,@OBJEXT@,$OBJEXT,;t t
45513 s,@DEPDIR@,$DEPDIR,;t t
45514 s,@am__include@,$am__include,;t t
45515 s,@am__quote@,$am__quote,;t t
45516 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45517 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45518 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45519 s,@CCDEPMODE@,$CCDEPMODE,;t t
45520 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45521 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45522 s,@EGREP@,$EGREP,;t t
45523 s,@LN_S@,$LN_S,;t t
45524 s,@ECHO@,$ECHO,;t t
45525 s,@ac_ct_AR@,$ac_ct_AR,;t t
45526 s,@RANLIB@,$RANLIB,;t t
45527 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45528 s,@DLLTOOL@,$DLLTOOL,;t t
45529 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45530 s,@AS@,$AS,;t t
45531 s,@ac_ct_AS@,$ac_ct_AS,;t t
45532 s,@OBJDUMP@,$OBJDUMP,;t t
45533 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45534 s,@CPP@,$CPP,;t t
45535 s,@LIBTOOL@,$LIBTOOL,;t t
45536 s,@PERLBIN@,$PERLBIN,;t t
45537 s,@OL_MKDEP@,$OL_MKDEP,;t t
45538 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45539 s,@LTSTATIC@,$LTSTATIC,;t t
45540 s,@LIBOBJS@,$LIBOBJS,;t t
45541 s,@LIBSRCS@,$LIBSRCS,;t t
45542 s,@PLAT@,$PLAT,;t t
45543 s,@WITH_SASL@,$WITH_SASL,;t t
45544 s,@WITH_TLS@,$WITH_TLS,;t t
45545 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45546 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45547 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45548 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45549 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45550 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45551 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45552 s,@BUILD_BDB@,$BUILD_BDB,;t t
45553 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45554 s,@BUILD_HDB@,$BUILD_HDB,;t t
45555 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45556 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45557 s,@BUILD_META@,$BUILD_META,;t t
45558 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45559 s,@BUILD_NULL@,$BUILD_NULL,;t t
45560 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45561 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45562 s,@BUILD_PERL@,$BUILD_PERL,;t t
45563 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45564 s,@BUILD_SQL@,$BUILD_SQL,;t t
45565 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45566 s,@BUILD_DDS@,$BUILD_DDS,;t t
45567 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45568 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45569 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45570 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45571 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45572 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45573 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45574 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45575 s,@BUILD_RWM@,$BUILD_RWM,;t t
45576 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45577 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45578 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45579 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45580 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45581 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45582 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45583 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45584 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45585 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45586 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45587 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45588 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45589 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45590 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45591 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45592 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45593 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45594 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45595 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45596 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45597 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45598 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45599 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45600 s,@SASL_LIBS@,$SASL_LIBS,;t t
45601 s,@TLS_LIBS@,$TLS_LIBS,;t t
45602 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45603 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45604 s,@LIBSLAPI@,$LIBSLAPI,;t t
45605 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45606 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45607 s,@ICU_LIBS@,$ICU_LIBS,;t t
45608 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45609 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45610 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45611 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45612 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45613 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45614 CEOF
45615
45616 _ACEOF
45617
45618   cat >>$CONFIG_STATUS <<\_ACEOF
45619   # Split the substitutions into bite-sized pieces for seds with
45620   # small command number limits, like on Digital OSF/1 and HP-UX.
45621   ac_max_sed_lines=48
45622   ac_sed_frag=1 # Number of current file.
45623   ac_beg=1 # First line for current file.
45624   ac_end=$ac_max_sed_lines # Line after last line for current file.
45625   ac_more_lines=:
45626   ac_sed_cmds=
45627   while $ac_more_lines; do
45628     if test $ac_beg -gt 1; then
45629       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45630     else
45631       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45632     fi
45633     if test ! -s $tmp/subs.frag; then
45634       ac_more_lines=false
45635     else
45636       # The purpose of the label and of the branching condition is to
45637       # speed up the sed processing (if there are no `@' at all, there
45638       # is no need to browse any of the substitutions).
45639       # These are the two extra sed commands mentioned above.
45640       (echo ':t
45641   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45642       if test -z "$ac_sed_cmds"; then
45643         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45644       else
45645         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45646       fi
45647       ac_sed_frag=`expr $ac_sed_frag + 1`
45648       ac_beg=$ac_end
45649       ac_end=`expr $ac_end + $ac_max_sed_lines`
45650     fi
45651   done
45652   if test -z "$ac_sed_cmds"; then
45653     ac_sed_cmds=cat
45654   fi
45655 fi # test -n "$CONFIG_FILES"
45656
45657 _ACEOF
45658 cat >>$CONFIG_STATUS <<\_ACEOF
45659 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45660   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45661   case $ac_file in
45662   - | *:- | *:-:* ) # input from stdin
45663         cat >$tmp/stdin
45664         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45666   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45668   * )   ac_file_in=$ac_file.in ;;
45669   esac
45670
45671   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45672   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45674          X"$ac_file" : 'X\(//\)[^/]' \| \
45675          X"$ac_file" : 'X\(//\)$' \| \
45676          X"$ac_file" : 'X\(/\)' \| \
45677          .     : '\(.\)' 2>/dev/null ||
45678 echo X"$ac_file" |
45679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45680           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45681           /^X\(\/\/\)$/{ s//\1/; q; }
45682           /^X\(\/\).*/{ s//\1/; q; }
45683           s/.*/./; q'`
45684   { if $as_mkdir_p; then
45685     mkdir -p "$ac_dir"
45686   else
45687     as_dir="$ac_dir"
45688     as_dirs=
45689     while test ! -d "$as_dir"; do
45690       as_dirs="$as_dir $as_dirs"
45691       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45693          X"$as_dir" : 'X\(//\)[^/]' \| \
45694          X"$as_dir" : 'X\(//\)$' \| \
45695          X"$as_dir" : 'X\(/\)' \| \
45696          .     : '\(.\)' 2>/dev/null ||
45697 echo X"$as_dir" |
45698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45699           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45700           /^X\(\/\/\)$/{ s//\1/; q; }
45701           /^X\(\/\).*/{ s//\1/; q; }
45702           s/.*/./; q'`
45703     done
45704     test ! -n "$as_dirs" || mkdir $as_dirs
45705   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45707    { (exit 1); exit 1; }; }; }
45708
45709   ac_builddir=.
45710
45711 if test "$ac_dir" != .; then
45712   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45713   # A "../" for each directory in $ac_dir_suffix.
45714   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45715 else
45716   ac_dir_suffix= ac_top_builddir=
45717 fi
45718
45719 case $srcdir in
45720   .)  # No --srcdir option.  We are building in place.
45721     ac_srcdir=.
45722     if test -z "$ac_top_builddir"; then
45723        ac_top_srcdir=.
45724     else
45725        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45726     fi ;;
45727   [\\/]* | ?:[\\/]* )  # Absolute path.
45728     ac_srcdir=$srcdir$ac_dir_suffix;
45729     ac_top_srcdir=$srcdir ;;
45730   *) # Relative path.
45731     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45732     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45733 esac
45734
45735 # Do not use `cd foo && pwd` to compute absolute paths, because
45736 # the directories may not exist.
45737 case `pwd` in
45738 .) ac_abs_builddir="$ac_dir";;
45739 *)
45740   case "$ac_dir" in
45741   .) ac_abs_builddir=`pwd`;;
45742   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45743   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45744   esac;;
45745 esac
45746 case $ac_abs_builddir in
45747 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45748 *)
45749   case ${ac_top_builddir}. in
45750   .) ac_abs_top_builddir=$ac_abs_builddir;;
45751   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45752   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45753   esac;;
45754 esac
45755 case $ac_abs_builddir in
45756 .) ac_abs_srcdir=$ac_srcdir;;
45757 *)
45758   case $ac_srcdir in
45759   .) ac_abs_srcdir=$ac_abs_builddir;;
45760   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45761   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45762   esac;;
45763 esac
45764 case $ac_abs_builddir in
45765 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45766 *)
45767   case $ac_top_srcdir in
45768   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45769   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45770   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45771   esac;;
45772 esac
45773
45774
45775   case $INSTALL in
45776   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45777   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45778   esac
45779
45780   if test x"$ac_file" != x-; then
45781     { echo "$as_me:$LINENO: creating $ac_file" >&5
45782 echo "$as_me: creating $ac_file" >&6;}
45783     rm -f "$ac_file"
45784   fi
45785   # Let's still pretend it is `configure' which instantiates (i.e., don't
45786   # use $as_me), people would be surprised to read:
45787   #    /* config.h.  Generated by config.status.  */
45788   if test x"$ac_file" = x-; then
45789     configure_input=
45790   else
45791     configure_input="$ac_file.  "
45792   fi
45793   configure_input=$configure_input"Generated from `echo $ac_file_in |
45794                                      sed 's,.*/,,'` by configure."
45795
45796   # First look for the input files in the build tree, otherwise in the
45797   # src tree.
45798   ac_file_inputs=`IFS=:
45799     for f in $ac_file_in; do
45800       case $f in
45801       -) echo $tmp/stdin ;;
45802       [\\/$]*)
45803          # Absolute (can't be DOS-style, as IFS=:)
45804          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45805 echo "$as_me: error: cannot find input file: $f" >&2;}
45806    { (exit 1); exit 1; }; }
45807          echo "$f";;
45808       *) # Relative
45809          if test -f "$f"; then
45810            # Build tree
45811            echo "$f"
45812          elif test -f "$srcdir/$f"; then
45813            # Source tree
45814            echo "$srcdir/$f"
45815          else
45816            # /dev/null tree
45817            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45818 echo "$as_me: error: cannot find input file: $f" >&2;}
45819    { (exit 1); exit 1; }; }
45820          fi;;
45821       esac
45822     done` || { (exit 1); exit 1; }
45823 _ACEOF
45824 cat >>$CONFIG_STATUS <<_ACEOF
45825   sed "$ac_vpsub
45826 $extrasub
45827 _ACEOF
45828 cat >>$CONFIG_STATUS <<\_ACEOF
45829 :t
45830 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45831 s,@configure_input@,$configure_input,;t t
45832 s,@srcdir@,$ac_srcdir,;t t
45833 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45834 s,@top_srcdir@,$ac_top_srcdir,;t t
45835 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45836 s,@builddir@,$ac_builddir,;t t
45837 s,@abs_builddir@,$ac_abs_builddir,;t t
45838 s,@top_builddir@,$ac_top_builddir,;t t
45839 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45840 s,@INSTALL@,$ac_INSTALL,;t t
45841 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45842   rm -f $tmp/stdin
45843   if test x"$ac_file" != x-; then
45844     mv $tmp/out $ac_file
45845   else
45846     cat $tmp/out
45847     rm -f $tmp/out
45848   fi
45849
45850 done
45851 _ACEOF
45852 cat >>$CONFIG_STATUS <<\_ACEOF
45853
45854 #
45855 # CONFIG_HEADER section.
45856 #
45857
45858 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45859 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45860 #
45861 # ac_d sets the value in "#define NAME VALUE" lines.
45862 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45863 ac_dB='[         ].*$,\1#\2'
45864 ac_dC=' '
45865 ac_dD=',;t'
45866 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45867 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45868 ac_uB='$,\1#\2define\3'
45869 ac_uC=' '
45870 ac_uD=',;t'
45871
45872 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45873   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45874   case $ac_file in
45875   - | *:- | *:-:* ) # input from stdin
45876         cat >$tmp/stdin
45877         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45878         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45879   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45880         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45881   * )   ac_file_in=$ac_file.in ;;
45882   esac
45883
45884   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45885 echo "$as_me: creating $ac_file" >&6;}
45886
45887   # First look for the input files in the build tree, otherwise in the
45888   # src tree.
45889   ac_file_inputs=`IFS=:
45890     for f in $ac_file_in; do
45891       case $f in
45892       -) echo $tmp/stdin ;;
45893       [\\/$]*)
45894          # Absolute (can't be DOS-style, as IFS=:)
45895          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45896 echo "$as_me: error: cannot find input file: $f" >&2;}
45897    { (exit 1); exit 1; }; }
45898          # Do quote $f, to prevent DOS paths from being IFS'd.
45899          echo "$f";;
45900       *) # Relative
45901          if test -f "$f"; then
45902            # Build tree
45903            echo "$f"
45904          elif test -f "$srcdir/$f"; then
45905            # Source tree
45906            echo "$srcdir/$f"
45907          else
45908            # /dev/null tree
45909            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45910 echo "$as_me: error: cannot find input file: $f" >&2;}
45911    { (exit 1); exit 1; }; }
45912          fi;;
45913       esac
45914     done` || { (exit 1); exit 1; }
45915   # Remove the trailing spaces.
45916   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45917
45918 _ACEOF
45919
45920 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45921 # `conftest.undefs', that substitutes the proper values into
45922 # config.h.in to produce config.h.  The first handles `#define'
45923 # templates, and the second `#undef' templates.
45924 # And first: Protect against being on the right side of a sed subst in
45925 # config.status.  Protect against being in an unquoted here document
45926 # in config.status.
45927 rm -f conftest.defines conftest.undefs
45928 # Using a here document instead of a string reduces the quoting nightmare.
45929 # Putting comments in sed scripts is not portable.
45930 #
45931 # `end' is used to avoid that the second main sed command (meant for
45932 # 0-ary CPP macros) applies to n-ary macro definitions.
45933 # See the Autoconf documentation for `clear'.
45934 cat >confdef2sed.sed <<\_ACEOF
45935 s/[\\&,]/\\&/g
45936 s,[\\$`],\\&,g
45937 t clear
45938 : clear
45939 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45940 t end
45941 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45942 : end
45943 _ACEOF
45944 # If some macros were called several times there might be several times
45945 # the same #defines, which is useless.  Nevertheless, we may not want to
45946 # sort them, since we want the *last* AC-DEFINE to be honored.
45947 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45948 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45949 rm -f confdef2sed.sed
45950
45951 # This sed command replaces #undef with comments.  This is necessary, for
45952 # example, in the case of _POSIX_SOURCE, which is predefined and required
45953 # on some systems where configure will not decide to define it.
45954 cat >>conftest.undefs <<\_ACEOF
45955 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45956 _ACEOF
45957
45958 # Break up conftest.defines because some shells have a limit on the size
45959 # of here documents, and old seds have small limits too (100 cmds).
45960 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45961 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45962 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45963 echo '  :' >>$CONFIG_STATUS
45964 rm -f conftest.tail
45965 while grep . conftest.defines >/dev/null
45966 do
45967   # Write a limited-size here document to $tmp/defines.sed.
45968   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45969   # Speed up: don't consider the non `#define' lines.
45970   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45971   # Work around the forget-to-reset-the-flag bug.
45972   echo 't clr' >>$CONFIG_STATUS
45973   echo ': clr' >>$CONFIG_STATUS
45974   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45975   echo 'CEOF
45976   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45977   rm -f $tmp/in
45978   mv $tmp/out $tmp/in
45979 ' >>$CONFIG_STATUS
45980   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45981   rm -f conftest.defines
45982   mv conftest.tail conftest.defines
45983 done
45984 rm -f conftest.defines
45985 echo '  fi # grep' >>$CONFIG_STATUS
45986 echo >>$CONFIG_STATUS
45987
45988 # Break up conftest.undefs because some shells have a limit on the size
45989 # of here documents, and old seds have small limits too (100 cmds).
45990 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45991 rm -f conftest.tail
45992 while grep . conftest.undefs >/dev/null
45993 do
45994   # Write a limited-size here document to $tmp/undefs.sed.
45995   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45996   # Speed up: don't consider the non `#undef'
45997   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
45998   # Work around the forget-to-reset-the-flag bug.
45999   echo 't clr' >>$CONFIG_STATUS
46000   echo ': clr' >>$CONFIG_STATUS
46001   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46002   echo 'CEOF
46003   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46004   rm -f $tmp/in
46005   mv $tmp/out $tmp/in
46006 ' >>$CONFIG_STATUS
46007   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46008   rm -f conftest.undefs
46009   mv conftest.tail conftest.undefs
46010 done
46011 rm -f conftest.undefs
46012
46013 cat >>$CONFIG_STATUS <<\_ACEOF
46014   # Let's still pretend it is `configure' which instantiates (i.e., don't
46015   # use $as_me), people would be surprised to read:
46016   #    /* config.h.  Generated by config.status.  */
46017   if test x"$ac_file" = x-; then
46018     echo "/* Generated by configure.  */" >$tmp/config.h
46019   else
46020     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
46021   fi
46022   cat $tmp/in >>$tmp/config.h
46023   rm -f $tmp/in
46024   if test x"$ac_file" != x-; then
46025     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46026       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46027 echo "$as_me: $ac_file is unchanged" >&6;}
46028     else
46029       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46031          X"$ac_file" : 'X\(//\)[^/]' \| \
46032          X"$ac_file" : 'X\(//\)$' \| \
46033          X"$ac_file" : 'X\(/\)' \| \
46034          .     : '\(.\)' 2>/dev/null ||
46035 echo X"$ac_file" |
46036     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46037           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46038           /^X\(\/\/\)$/{ s//\1/; q; }
46039           /^X\(\/\).*/{ s//\1/; q; }
46040           s/.*/./; q'`
46041       { if $as_mkdir_p; then
46042     mkdir -p "$ac_dir"
46043   else
46044     as_dir="$ac_dir"
46045     as_dirs=
46046     while test ! -d "$as_dir"; do
46047       as_dirs="$as_dir $as_dirs"
46048       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46050          X"$as_dir" : 'X\(//\)[^/]' \| \
46051          X"$as_dir" : 'X\(//\)$' \| \
46052          X"$as_dir" : 'X\(/\)' \| \
46053          .     : '\(.\)' 2>/dev/null ||
46054 echo X"$as_dir" |
46055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46057           /^X\(\/\/\)$/{ s//\1/; q; }
46058           /^X\(\/\).*/{ s//\1/; q; }
46059           s/.*/./; q'`
46060     done
46061     test ! -n "$as_dirs" || mkdir $as_dirs
46062   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46063 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46064    { (exit 1); exit 1; }; }; }
46065
46066       rm -f $ac_file
46067       mv $tmp/config.h $ac_file
46068     fi
46069   else
46070     cat $tmp/config.h
46071     rm -f $tmp/config.h
46072   fi
46073 # Compute $ac_file's index in $config_headers.
46074 _am_stamp_count=1
46075 for _am_header in $config_headers :; do
46076   case $_am_header in
46077     $ac_file | $ac_file:* )
46078       break ;;
46079     * )
46080       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46081   esac
46082 done
46083 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46084 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46085          X$ac_file : 'X\(//\)[^/]' \| \
46086          X$ac_file : 'X\(//\)$' \| \
46087          X$ac_file : 'X\(/\)' \| \
46088          .     : '\(.\)' 2>/dev/null ||
46089 echo X$ac_file |
46090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46091           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46092           /^X\(\/\/\)$/{ s//\1/; q; }
46093           /^X\(\/\).*/{ s//\1/; q; }
46094           s/.*/./; q'`/stamp-h$_am_stamp_count
46095 done
46096 _ACEOF
46097 cat >>$CONFIG_STATUS <<\_ACEOF
46098
46099 #
46100 # CONFIG_COMMANDS section.
46101 #
46102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46103   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46104   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46105   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46107          X"$ac_dest" : 'X\(//\)[^/]' \| \
46108          X"$ac_dest" : 'X\(//\)$' \| \
46109          X"$ac_dest" : 'X\(/\)' \| \
46110          .     : '\(.\)' 2>/dev/null ||
46111 echo X"$ac_dest" |
46112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46113           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46114           /^X\(\/\/\)$/{ s//\1/; q; }
46115           /^X\(\/\).*/{ s//\1/; q; }
46116           s/.*/./; q'`
46117   { if $as_mkdir_p; then
46118     mkdir -p "$ac_dir"
46119   else
46120     as_dir="$ac_dir"
46121     as_dirs=
46122     while test ! -d "$as_dir"; do
46123       as_dirs="$as_dir $as_dirs"
46124       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46126          X"$as_dir" : 'X\(//\)[^/]' \| \
46127          X"$as_dir" : 'X\(//\)$' \| \
46128          X"$as_dir" : 'X\(/\)' \| \
46129          .     : '\(.\)' 2>/dev/null ||
46130 echo X"$as_dir" |
46131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46133           /^X\(\/\/\)$/{ s//\1/; q; }
46134           /^X\(\/\).*/{ s//\1/; q; }
46135           s/.*/./; q'`
46136     done
46137     test ! -n "$as_dirs" || mkdir $as_dirs
46138   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46140    { (exit 1); exit 1; }; }; }
46141
46142   ac_builddir=.
46143
46144 if test "$ac_dir" != .; then
46145   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46146   # A "../" for each directory in $ac_dir_suffix.
46147   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46148 else
46149   ac_dir_suffix= ac_top_builddir=
46150 fi
46151
46152 case $srcdir in
46153   .)  # No --srcdir option.  We are building in place.
46154     ac_srcdir=.
46155     if test -z "$ac_top_builddir"; then
46156        ac_top_srcdir=.
46157     else
46158        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46159     fi ;;
46160   [\\/]* | ?:[\\/]* )  # Absolute path.
46161     ac_srcdir=$srcdir$ac_dir_suffix;
46162     ac_top_srcdir=$srcdir ;;
46163   *) # Relative path.
46164     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46165     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46166 esac
46167
46168 # Do not use `cd foo && pwd` to compute absolute paths, because
46169 # the directories may not exist.
46170 case `pwd` in
46171 .) ac_abs_builddir="$ac_dir";;
46172 *)
46173   case "$ac_dir" in
46174   .) ac_abs_builddir=`pwd`;;
46175   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46176   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46177   esac;;
46178 esac
46179 case $ac_abs_builddir in
46180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46181 *)
46182   case ${ac_top_builddir}. in
46183   .) ac_abs_top_builddir=$ac_abs_builddir;;
46184   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46185   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46186   esac;;
46187 esac
46188 case $ac_abs_builddir in
46189 .) ac_abs_srcdir=$ac_srcdir;;
46190 *)
46191   case $ac_srcdir in
46192   .) ac_abs_srcdir=$ac_abs_builddir;;
46193   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46194   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46195   esac;;
46196 esac
46197 case $ac_abs_builddir in
46198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46199 *)
46200   case $ac_top_srcdir in
46201   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46202   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46203   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46204   esac;;
46205 esac
46206
46207
46208   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46209 echo "$as_me: executing $ac_dest commands" >&6;}
46210   case $ac_dest in
46211     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46212   # Strip MF so we end up with the name of the file.
46213   mf=`echo "$mf" | sed -e 's/:.*$//'`
46214   # Check whether this is an Automake generated Makefile or not.
46215   # We used to match only the files named `Makefile.in', but
46216   # some people rename them; so instead we look at the file content.
46217   # Grep'ing the first line is not enough: some people post-process
46218   # each Makefile.in and add a new line on top of each file to say so.
46219   # So let's grep whole file.
46220   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46221     dirpart=`(dirname "$mf") 2>/dev/null ||
46222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46223          X"$mf" : 'X\(//\)[^/]' \| \
46224          X"$mf" : 'X\(//\)$' \| \
46225          X"$mf" : 'X\(/\)' \| \
46226          .     : '\(.\)' 2>/dev/null ||
46227 echo X"$mf" |
46228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46229           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46230           /^X\(\/\/\)$/{ s//\1/; q; }
46231           /^X\(\/\).*/{ s//\1/; q; }
46232           s/.*/./; q'`
46233   else
46234     continue
46235   fi
46236   # Extract the definition of DEPDIR, am__include, and am__quote
46237   # from the Makefile without running `make'.
46238   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46239   test -z "$DEPDIR" && continue
46240   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46241   test -z "am__include" && continue
46242   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46243   # When using ansi2knr, U may be empty or an underscore; expand it
46244   U=`sed -n 's/^U = //p' < "$mf"`
46245   # Find all dependency output files, they are included files with
46246   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46247   # simplest approach to changing $(DEPDIR) to its actual value in the
46248   # expansion.
46249   for file in `sed -n "
46250     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46251        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46252     # Make sure the directory exists.
46253     test -f "$dirpart/$file" && continue
46254     fdir=`(dirname "$file") 2>/dev/null ||
46255 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46256          X"$file" : 'X\(//\)[^/]' \| \
46257          X"$file" : 'X\(//\)$' \| \
46258          X"$file" : 'X\(/\)' \| \
46259          .     : '\(.\)' 2>/dev/null ||
46260 echo X"$file" |
46261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46262           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46263           /^X\(\/\/\)$/{ s//\1/; q; }
46264           /^X\(\/\).*/{ s//\1/; q; }
46265           s/.*/./; q'`
46266     { if $as_mkdir_p; then
46267     mkdir -p $dirpart/$fdir
46268   else
46269     as_dir=$dirpart/$fdir
46270     as_dirs=
46271     while test ! -d "$as_dir"; do
46272       as_dirs="$as_dir $as_dirs"
46273       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46275          X"$as_dir" : 'X\(//\)[^/]' \| \
46276          X"$as_dir" : 'X\(//\)$' \| \
46277          X"$as_dir" : 'X\(/\)' \| \
46278          .     : '\(.\)' 2>/dev/null ||
46279 echo X"$as_dir" |
46280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46281           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46282           /^X\(\/\/\)$/{ s//\1/; q; }
46283           /^X\(\/\).*/{ s//\1/; q; }
46284           s/.*/./; q'`
46285     done
46286     test ! -n "$as_dirs" || mkdir $as_dirs
46287   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46288 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46289    { (exit 1); exit 1; }; }; }
46290
46291     # echo "creating $dirpart/$file"
46292     echo '# dummy' > "$dirpart/$file"
46293   done
46294 done
46295  ;;
46296     default )
46297 chmod +x tests/run
46298 date > stamp-h
46299 BACKENDSC="servers/slapd/backends.c"
46300 echo "Making $BACKENDSC"
46301 rm -f $BACKENDSC
46302 cat > $BACKENDSC << ENDX
46303 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46304  *
46305  * Copyright 1998-2006 The OpenLDAP Foundation.
46306  * All rights reserved.
46307  *
46308  * Redistribution and use in source and binary forms, with or without
46309  * modification, are permitted only as authorized by the OpenLDAP
46310  * Public License.
46311  *
46312  * A copy of this license is available in the file LICENSE in the
46313  * top-level directory of the distribution or, alternatively, at
46314  * <http://www.OpenLDAP.org/license.html>.
46315  */
46316 /* This file is automatically generated by configure; please do not edit. */
46317
46318 #include "portable.h"
46319 #include "slap.h"
46320
46321 ENDX
46322 if test "${STATIC_BACKENDS}"; then
46323         for b in config ${STATIC_BACKENDS}; do
46324                 bb=`echo "${b}" | sed -e 's/back-//'`
46325                 cat >> $BACKENDSC << ENDX
46326 extern BI_init ${bb}_back_initialize;
46327 ENDX
46328         done
46329
46330         cat >> $BACKENDSC << ENDX
46331
46332 BackendInfo slap_binfo[] = {
46333 ENDX
46334
46335         for b in config ${STATIC_BACKENDS}; do
46336                 bb=`echo "${b}" | sed -e 's/back-//'`
46337                 echo "    Add ${bb} ..."
46338                 cat >> $BACKENDSC << ENDX
46339         { "${bb}", ${bb}_back_initialize },
46340 ENDX
46341         done
46342
46343         cat >> $BACKENDSC << ENDX
46344         { NULL, NULL },
46345 };
46346
46347 /* end of generated file */
46348 ENDX
46349 fi
46350 OVERLAYSC="servers/slapd/overlays/statover.c"
46351 echo "Making $OVERLAYSC"
46352 rm -f $OVERLAYSC
46353 cat > $OVERLAYSC << ENDX
46354 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46355  *
46356  * Copyright 1998-2006 The OpenLDAP Foundation.
46357  * All rights reserved.
46358  *
46359  * Redistribution and use in source and binary forms, with or without
46360  * modification, are permitted only as authorized by the OpenLDAP
46361  * Public License.
46362  *
46363  * A copy of this license is available in the file LICENSE in the
46364  * top-level directory of the distribution or, alternatively, at
46365  * <http://www.OpenLDAP.org/license.html>.
46366  */
46367 /* This file is automatically generated by configure; please do not edit. */
46368
46369 #include "portable.h"
46370 #include "slap.h"
46371
46372 ENDX
46373 if test "${STATIC_OVERLAYS}"; then
46374         for o in ${STATIC_OVERLAYS}; do
46375                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46376                 cat >> $OVERLAYSC << ENDX
46377 extern OV_init ${oo}_initialize;
46378 ENDX
46379         done
46380 fi
46381
46382 cat >> $OVERLAYSC << ENDX
46383
46384 OverlayInit slap_oinfo[] = {
46385 ENDX
46386
46387 if test "${STATIC_OVERLAYS}"; then
46388         for o in ${STATIC_OVERLAYS}; do
46389                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46390                 echo "    Add ${oo} ..."
46391                 cat >> $OVERLAYSC << ENDX
46392         { "${oo}", ${oo}_initialize },
46393 ENDX
46394         done
46395 fi
46396
46397         cat >> $OVERLAYSC << ENDX
46398         { NULL, NULL },
46399 };
46400
46401 /* end of generated file */
46402 ENDX
46403
46404 echo Please run \"make depend\" to build dependencies
46405  ;;
46406   esac
46407 done
46408 _ACEOF
46409
46410 cat >>$CONFIG_STATUS <<\_ACEOF
46411
46412 { (exit 0); exit 0; }
46413 _ACEOF
46414 chmod +x $CONFIG_STATUS
46415 ac_clean_files=$ac_clean_files_save
46416
46417
46418 # configure is writing to config.log, and then calls config.status.
46419 # config.status does its own redirection, appending to config.log.
46420 # Unfortunately, on DOS this fails, as config.log is still kept open
46421 # by configure, so config.status won't be able to write to it; its
46422 # output is simply discarded.  So we exec the FD to /dev/null,
46423 # effectively closing config.log, so it can be properly (re)opened and
46424 # appended to by config.status.  When coming back to configure, we
46425 # need to make the FD available again.
46426 if test "$no_create" != yes; then
46427   ac_cs_success=:
46428   ac_config_status_args=
46429   test "$silent" = yes &&
46430     ac_config_status_args="$ac_config_status_args --quiet"
46431   exec 5>/dev/null
46432   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46433   exec 5>>config.log
46434   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46435   # would make configure fail if this is the last instruction.
46436   $ac_cs_success || { (exit 1); exit 1; }
46437 fi
46438