]> git.sur5r.net Git - openldap/blob - configure
26696d6ff678716e98c449b21d15d12a5083edef
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.610 2005/12/16 15:52:59 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS 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-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1055     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1056     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1057     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1058     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1059     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-multiple-precision
1089                           multiple precision support for statistics
1090                           auto|bignum|gmp [auto]
1091
1092   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093   --with-pic              try to use only PIC/non-PIC objects [default=use
1094                           both]
1095   --with-tags[=TAGS]
1096                           include additional configurations [automatic]
1097
1098 See INSTALL file for further details.
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CPP         C preprocessor
1108
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1111
1112 _ACEOF
1113 fi
1114
1115 if test "$ac_init_help" = "recursive"; then
1116   # If there are subdirs, report their specific --help.
1117   ac_popdir=`pwd`
1118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119     test -d $ac_dir || continue
1120     ac_builddir=.
1121
1122 if test "$ac_dir" != .; then
1123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124   # A "../" for each directory in $ac_dir_suffix.
1125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $srcdir in
1131   .)  # No --srcdir option.  We are building in place.
1132     ac_srcdir=.
1133     if test -z "$ac_top_builddir"; then
1134        ac_top_srcdir=.
1135     else
1136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137     fi ;;
1138   [\\/]* | ?:[\\/]* )  # Absolute path.
1139     ac_srcdir=$srcdir$ac_dir_suffix;
1140     ac_top_srcdir=$srcdir ;;
1141   *) # Relative path.
1142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1150 *)
1151   case "$ac_dir" in
1152   .) ac_abs_builddir=`pwd`;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *)
1160   case ${ac_top_builddir}. in
1161   .) ac_abs_top_builddir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1168 *)
1169   case $ac_srcdir in
1170   .) ac_abs_srcdir=$ac_abs_builddir;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *)
1178   case $ac_top_srcdir in
1179   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182   esac;;
1183 esac
1184
1185     cd $ac_dir
1186     # Check for guested configure; otherwise get Cygnus style configure.
1187     if test -f $ac_srcdir/configure.gnu; then
1188       echo
1189       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190     elif test -f $ac_srcdir/configure; then
1191       echo
1192       $SHELL $ac_srcdir/configure  --help=recursive
1193     elif test -f $ac_srcdir/configure.ac ||
1194            test -f $ac_srcdir/configure.in; then
1195       echo
1196       $ac_configure --help
1197     else
1198       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199     fi
1200     cd $ac_popdir
1201   done
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 _ACEOF
1215   exit 0
1216 fi
1217 exec 5>config.log
1218 cat >&5 <<_ACEOF
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1221
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225   $ $0 $@
1226
1227 _ACEOF
1228 {
1229 cat <<_ASUNAME
1230 ## --------- ##
1231 ## Platform. ##
1232 ## --------- ##
1233
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251 _ASUNAME
1252
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   echo "PATH: $as_dir"
1259 done
1260
1261 } >&5
1262
1263 cat >&5 <<_ACEOF
1264
1265
1266 ## ----------- ##
1267 ## Core tests. ##
1268 ## ----------- ##
1269
1270 _ACEOF
1271
1272
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_configure_args=
1279 ac_configure_args0=
1280 ac_configure_args1=
1281 ac_sep=
1282 ac_must_keep_next=false
1283 for ac_pass in 1 2
1284 do
1285   for ac_arg
1286   do
1287     case $ac_arg in
1288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290     | -silent | --silent | --silen | --sile | --sil)
1291       continue ;;
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     esac
1295     case $ac_pass in
1296     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297     2)
1298       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299       if test $ac_must_keep_next = true; then
1300         ac_must_keep_next=false # Got value, back to normal.
1301       else
1302         case $ac_arg in
1303           *=* | --config-cache | -C | -disable-* | --disable-* \
1304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306           | -with-* | --with-* | -without-* | --without-* | --x)
1307             case "$ac_configure_args0 " in
1308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309             esac
1310             ;;
1311           -* ) ac_must_keep_next=true ;;
1312         esac
1313       fi
1314       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315       # Get rid of the leading space.
1316       ac_sep=" "
1317       ;;
1318     esac
1319   done
1320 done
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log.  We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330   # Save into config.log some information that might help in debugging.
1331   {
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1338 _ASBOX
1339     echo
1340     # The following way of writing the cache mishandles newlines in values,
1341 {
1342   (set) 2>&1 |
1343     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344     *ac_space=\ *)
1345       sed -n \
1346         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348       ;;
1349     *)
1350       sed -n \
1351         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352       ;;
1353     esac;
1354 }
1355     echo
1356
1357     cat <<\_ASBOX
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1361 _ASBOX
1362     echo
1363     for ac_var in $ac_subst_vars
1364     do
1365       eval ac_val=$`echo $ac_var`
1366       echo "$ac_var='"'"'$ac_val'"'"'"
1367     done | sort
1368     echo
1369
1370     if test -n "$ac_subst_files"; then
1371       cat <<\_ASBOX
1372 ## ------------- ##
1373 ## Output files. ##
1374 ## ------------- ##
1375 _ASBOX
1376       echo
1377       for ac_var in $ac_subst_files
1378       do
1379         eval ac_val=$`echo $ac_var`
1380         echo "$ac_var='"'"'$ac_val'"'"'"
1381       done | sort
1382       echo
1383     fi
1384
1385     if test -s confdefs.h; then
1386       cat <<\_ASBOX
1387 ## ----------- ##
1388 ## confdefs.h. ##
1389 ## ----------- ##
1390 _ASBOX
1391       echo
1392       sed "/^$/d" confdefs.h | sort
1393       echo
1394     fi
1395     test "$ac_signal" != 0 &&
1396       echo "$as_me: caught signal $ac_signal"
1397     echo "$as_me: exit $exit_status"
1398   } >&5
1399   rm -f core *.core &&
1400   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401     exit $exit_status
1402      ' 0
1403 for ac_signal in 1 2 13 15; do
1404   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 done
1406 ac_signal=0
1407
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 echo >confdefs.h
1412
1413 # Predefined preprocessor variables.
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 _ACEOF
1438
1439
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443   if test "x$prefix" != xNONE; then
1444     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445   else
1446     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447   fi
1448 fi
1449 for ac_site_file in $CONFIG_SITE; do
1450   if test -r "$ac_site_file"; then
1451     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453     sed 's/^/| /' "$ac_site_file" >&5
1454     . "$ac_site_file"
1455   fi
1456 done
1457
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465   eval ac_new_set=\$ac_env_${ac_var}_set
1466   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467   eval ac_new_val="\$ac_env_${ac_var}_value"
1468   case $ac_old_set,$ac_new_set in
1469     set,)
1470       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472       ac_cache_corrupted=: ;;
1473     ,set)
1474       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476       ac_cache_corrupted=: ;;
1477     ,);;
1478     *)
1479       if test "x$ac_old_val" != "x$ac_new_val"; then
1480         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483 echo "$as_me:   former value:  $ac_old_val" >&2;}
1484         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485 echo "$as_me:   current value: $ac_new_val" >&2;}
1486         ac_cache_corrupted=:
1487       fi;;
1488   esac
1489   # Pass precious variables to config.status.
1490   if test "$ac_new_set" = set; then
1491     case $ac_new_val in
1492     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     *) ac_arg=$ac_var=$ac_new_val ;;
1495     esac
1496     case " $ac_configure_args " in
1497       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499     esac
1500   fi
1501 done
1502 if $ac_cache_corrupted; then
1503   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/install.sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install.sh -c"
1566     break
1567   elif test -f $ac_dir/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in no yes traditional ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-multiple_precision
2430
2431 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2432 if test "${with_multiple_precision+set}" = set; then
2433   withval="$with_multiple_precision"
2434
2435         ol_arg=invalid
2436         for ol_val in auto bignum gmp yes no  ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2443 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_multiple_precision="$ol_arg"
2447
2448 else
2449         ol_with_multiple_precision="auto"
2450 fi; # end --with-multiple_precision
2451
2452
2453
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456   enableval="$enable_xxslapdoptions"
2457
2458 fi;
2459 # OpenLDAP --enable-slapd
2460
2461         # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463   enableval="$enable_slapd"
2464
2465         ol_arg=invalid
2466         for ol_val in auto yes no ; do
2467                 if test "$enableval" = "$ol_val" ; then
2468                         ol_arg="$ol_val"
2469                 fi
2470         done
2471         if test "$ol_arg" = "invalid" ; then
2472                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474    { (exit 1); exit 1; }; }
2475         fi
2476         ol_enable_slapd="$ol_arg"
2477
2478 else
2479         ol_enable_slapd=yes
2480 fi;
2481 # end --enable-slapd
2482 # OpenLDAP --enable-aci
2483
2484         # Check whether --enable-aci or --disable-aci was given.
2485 if test "${enable_aci+set}" = set; then
2486   enableval="$enable_aci"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_aci="$ol_arg"
2500
2501 else
2502         ol_enable_aci=no
2503 fi;
2504 # end --enable-aci
2505 # OpenLDAP --enable-cleartext
2506
2507         # Check whether --enable-cleartext or --disable-cleartext was given.
2508 if test "${enable_cleartext+set}" = set; then
2509   enableval="$enable_cleartext"
2510
2511         ol_arg=invalid
2512         for ol_val in auto yes no ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_cleartext="$ol_arg"
2523
2524 else
2525         ol_enable_cleartext=yes
2526 fi;
2527 # end --enable-cleartext
2528 # OpenLDAP --enable-crypt
2529
2530         # Check whether --enable-crypt or --disable-crypt was given.
2531 if test "${enable_crypt+set}" = set; then
2532   enableval="$enable_crypt"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_crypt="$ol_arg"
2546
2547 else
2548         ol_enable_crypt=no
2549 fi;
2550 # end --enable-crypt
2551 # OpenLDAP --enable-lmpasswd
2552
2553         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2554 if test "${enable_lmpasswd+set}" = set; then
2555   enableval="$enable_lmpasswd"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_lmpasswd="$ol_arg"
2569
2570 else
2571         ol_enable_lmpasswd=no
2572 fi;
2573 # end --enable-lmpasswd
2574 # OpenLDAP --enable-spasswd
2575
2576         # Check whether --enable-spasswd or --disable-spasswd was given.
2577 if test "${enable_spasswd+set}" = set; then
2578   enableval="$enable_spasswd"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_spasswd="$ol_arg"
2592
2593 else
2594         ol_enable_spasswd=no
2595 fi;
2596 # end --enable-spasswd
2597 # OpenLDAP --enable-modules
2598
2599         # Check whether --enable-modules or --disable-modules was given.
2600 if test "${enable_modules+set}" = set; then
2601   enableval="$enable_modules"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_modules="$ol_arg"
2615
2616 else
2617         ol_enable_modules=no
2618 fi;
2619 # end --enable-modules
2620 ol_enable_multimaster=${ol_enable_multimaster-no}
2621 # OpenLDAP --enable-rewrite
2622
2623         # Check whether --enable-rewrite or --disable-rewrite was given.
2624 if test "${enable_rewrite+set}" = set; then
2625   enableval="$enable_rewrite"
2626
2627         ol_arg=invalid
2628         for ol_val in auto yes no ; do
2629                 if test "$enableval" = "$ol_val" ; then
2630                         ol_arg="$ol_val"
2631                 fi
2632         done
2633         if test "$ol_arg" = "invalid" ; then
2634                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2635 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2636    { (exit 1); exit 1; }; }
2637         fi
2638         ol_enable_rewrite="$ol_arg"
2639
2640 else
2641         ol_enable_rewrite=auto
2642 fi;
2643 # end --enable-rewrite
2644 # OpenLDAP --enable-rlookups
2645
2646         # Check whether --enable-rlookups or --disable-rlookups was given.
2647 if test "${enable_rlookups+set}" = set; then
2648   enableval="$enable_rlookups"
2649
2650         ol_arg=invalid
2651         for ol_val in auto yes no ; do
2652                 if test "$enableval" = "$ol_val" ; then
2653                         ol_arg="$ol_val"
2654                 fi
2655         done
2656         if test "$ol_arg" = "invalid" ; then
2657                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2658 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2659    { (exit 1); exit 1; }; }
2660         fi
2661         ol_enable_rlookups="$ol_arg"
2662
2663 else
2664         ol_enable_rlookups=no
2665 fi;
2666 # end --enable-rlookups
2667 # OpenLDAP --enable-slapi
2668
2669         # Check whether --enable-slapi or --disable-slapi was given.
2670 if test "${enable_slapi+set}" = set; then
2671   enableval="$enable_slapi"
2672
2673         ol_arg=invalid
2674         for ol_val in auto yes no ; do
2675                 if test "$enableval" = "$ol_val" ; then
2676                         ol_arg="$ol_val"
2677                 fi
2678         done
2679         if test "$ol_arg" = "invalid" ; then
2680                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2681 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2682    { (exit 1); exit 1; }; }
2683         fi
2684         ol_enable_slapi="$ol_arg"
2685
2686 else
2687         ol_enable_slapi=no
2688 fi;
2689 # end --enable-slapi
2690 # OpenLDAP --enable-slp
2691
2692         # Check whether --enable-slp or --disable-slp was given.
2693 if test "${enable_slp+set}" = set; then
2694   enableval="$enable_slp"
2695
2696         ol_arg=invalid
2697         for ol_val in auto yes no ; do
2698                 if test "$enableval" = "$ol_val" ; then
2699                         ol_arg="$ol_val"
2700                 fi
2701         done
2702         if test "$ol_arg" = "invalid" ; then
2703                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2704 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2705    { (exit 1); exit 1; }; }
2706         fi
2707         ol_enable_slp="$ol_arg"
2708
2709 else
2710         ol_enable_slp=no
2711 fi;
2712 # end --enable-slp
2713 # OpenLDAP --enable-wrappers
2714
2715         # Check whether --enable-wrappers or --disable-wrappers was given.
2716 if test "${enable_wrappers+set}" = set; then
2717   enableval="$enable_wrappers"
2718
2719         ol_arg=invalid
2720         for ol_val in auto yes no ; do
2721                 if test "$enableval" = "$ol_val" ; then
2722                         ol_arg="$ol_val"
2723                 fi
2724         done
2725         if test "$ol_arg" = "invalid" ; then
2726                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2727 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2728    { (exit 1); exit 1; }; }
2729         fi
2730         ol_enable_wrappers="$ol_arg"
2731
2732 else
2733         ol_enable_wrappers=no
2734 fi;
2735 # end --enable-wrappers
2736
2737 Backends="bdb \
2738         dnssrv \
2739         hdb \
2740         ldap \
2741         ldbm \
2742         meta \
2743         monitor \
2744         null \
2745         passwd \
2746         perl \
2747         relay \
2748         shell \
2749         sql"
2750
2751 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2752 if test "${enable_xxslapbackends+set}" = set; then
2753   enableval="$enable_xxslapbackends"
2754
2755 fi;
2756
2757 # OpenLDAP --enable-backends
2758
2759         # Check whether --enable-backends or --disable-backends was given.
2760 if test "${enable_backends+set}" = set; then
2761   enableval="$enable_backends"
2762
2763         ol_arg=invalid
2764         for ol_val in no yes mod ; do
2765                 if test "$enableval" = "$ol_val" ; then
2766                         ol_arg="$ol_val"
2767                 fi
2768         done
2769         if test "$ol_arg" = "invalid" ; then
2770                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2772    { (exit 1); exit 1; }; }
2773         fi
2774         ol_enable_backends="$ol_arg"
2775
2776 fi;
2777 # end --enable-backends
2778 # OpenLDAP --enable-bdb
2779
2780         # Check whether --enable-bdb or --disable-bdb was given.
2781 if test "${enable_bdb+set}" = set; then
2782   enableval="$enable_bdb"
2783
2784         ol_arg=invalid
2785         for ol_val in no yes mod ; do
2786                 if test "$enableval" = "$ol_val" ; then
2787                         ol_arg="$ol_val"
2788                 fi
2789         done
2790         if test "$ol_arg" = "invalid" ; then
2791                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2793    { (exit 1); exit 1; }; }
2794         fi
2795         ol_enable_bdb="$ol_arg"
2796
2797 else
2798         ol_enable_bdb=${ol_enable_backends:-yes}
2799 fi;
2800 # end --enable-bdb
2801 # OpenLDAP --enable-dnssrv
2802
2803         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2804 if test "${enable_dnssrv+set}" = set; then
2805   enableval="$enable_dnssrv"
2806
2807         ol_arg=invalid
2808         for ol_val in no yes mod ; do
2809                 if test "$enableval" = "$ol_val" ; then
2810                         ol_arg="$ol_val"
2811                 fi
2812         done
2813         if test "$ol_arg" = "invalid" ; then
2814                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2815 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2816    { (exit 1); exit 1; }; }
2817         fi
2818         ol_enable_dnssrv="$ol_arg"
2819
2820 else
2821         ol_enable_dnssrv=${ol_enable_backends:-no}
2822 fi;
2823 # end --enable-dnssrv
2824 # OpenLDAP --enable-hdb
2825
2826         # Check whether --enable-hdb or --disable-hdb was given.
2827 if test "${enable_hdb+set}" = set; then
2828   enableval="$enable_hdb"
2829
2830         ol_arg=invalid
2831         for ol_val in no yes mod ; do
2832                 if test "$enableval" = "$ol_val" ; then
2833                         ol_arg="$ol_val"
2834                 fi
2835         done
2836         if test "$ol_arg" = "invalid" ; then
2837                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2838 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2839    { (exit 1); exit 1; }; }
2840         fi
2841         ol_enable_hdb="$ol_arg"
2842
2843 else
2844         ol_enable_hdb=${ol_enable_backends:-yes}
2845 fi;
2846 # end --enable-hdb
2847 # OpenLDAP --enable-ldap
2848
2849         # Check whether --enable-ldap or --disable-ldap was given.
2850 if test "${enable_ldap+set}" = set; then
2851   enableval="$enable_ldap"
2852
2853         ol_arg=invalid
2854         for ol_val in no yes mod ; do
2855                 if test "$enableval" = "$ol_val" ; then
2856                         ol_arg="$ol_val"
2857                 fi
2858         done
2859         if test "$ol_arg" = "invalid" ; then
2860                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2861 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2862    { (exit 1); exit 1; }; }
2863         fi
2864         ol_enable_ldap="$ol_arg"
2865
2866 else
2867         ol_enable_ldap=${ol_enable_backends:-no}
2868 fi;
2869 # end --enable-ldap
2870 # OpenLDAP --enable-ldbm
2871
2872         # Check whether --enable-ldbm or --disable-ldbm was given.
2873 if test "${enable_ldbm+set}" = set; then
2874   enableval="$enable_ldbm"
2875
2876         ol_arg=invalid
2877         for ol_val in no yes mod ; do
2878                 if test "$enableval" = "$ol_val" ; then
2879                         ol_arg="$ol_val"
2880                 fi
2881         done
2882         if test "$ol_arg" = "invalid" ; then
2883                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2884 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2885    { (exit 1); exit 1; }; }
2886         fi
2887         ol_enable_ldbm="$ol_arg"
2888
2889 else
2890         ol_enable_ldbm=${ol_enable_backends:-no}
2891 fi;
2892 # end --enable-ldbm
2893
2894 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2895 if test "${with_ldbm_api+set}" = set; then
2896   withval="$with_ldbm_api"
2897
2898         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2899 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2900         enable_ldbm_api="$with_ldbm_api"
2901 fi;
2902 # OpenLDAP --enable-ldbm_api
2903
2904         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2905 if test "${enable_ldbm_api+set}" = set; then
2906   enableval="$enable_ldbm_api"
2907
2908         ol_arg=invalid
2909         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2910                 if test "$enableval" = "$ol_val" ; then
2911                         ol_arg="$ol_val"
2912                 fi
2913         done
2914         if test "$ol_arg" = "invalid" ; then
2915                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2916 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2917    { (exit 1); exit 1; }; }
2918         fi
2919         ol_enable_ldbm_api="$ol_arg"
2920
2921 else
2922         ol_enable_ldbm_api=auto
2923 fi;
2924 # end --enable-ldbm_api
2925
2926
2927 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2928 if test "${with_ldbm_type+set}" = set; then
2929   withval="$with_ldbm_type"
2930
2931         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2932 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2933         enable_ldbm_type="$with_ldbm_type"
2934 fi;
2935 # OpenLDAP --enable-ldbm_type
2936
2937         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2938 if test "${enable_ldbm_type+set}" = set; then
2939   enableval="$enable_ldbm_type"
2940
2941         ol_arg=invalid
2942         for ol_val in auto btree hash ; do
2943                 if test "$enableval" = "$ol_val" ; then
2944                         ol_arg="$ol_val"
2945                 fi
2946         done
2947         if test "$ol_arg" = "invalid" ; then
2948                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_type" >&5
2949 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2950    { (exit 1); exit 1; }; }
2951         fi
2952         ol_enable_ldbm_type="$ol_arg"
2953
2954 else
2955         ol_enable_ldbm_type=auto
2956 fi;
2957 # end --enable-ldbm_type
2958
2959 # OpenLDAP --enable-meta
2960
2961         # Check whether --enable-meta or --disable-meta was given.
2962 if test "${enable_meta+set}" = set; then
2963   enableval="$enable_meta"
2964
2965         ol_arg=invalid
2966         for ol_val in no yes mod ; do
2967                 if test "$enableval" = "$ol_val" ; then
2968                         ol_arg="$ol_val"
2969                 fi
2970         done
2971         if test "$ol_arg" = "invalid" ; then
2972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2974    { (exit 1); exit 1; }; }
2975         fi
2976         ol_enable_meta="$ol_arg"
2977
2978 else
2979         ol_enable_meta=${ol_enable_backends:-no}
2980 fi;
2981 # end --enable-meta
2982 # OpenLDAP --enable-monitor
2983
2984         # Check whether --enable-monitor or --disable-monitor was given.
2985 if test "${enable_monitor+set}" = set; then
2986   enableval="$enable_monitor"
2987
2988         ol_arg=invalid
2989         for ol_val in no yes mod ; do
2990                 if test "$enableval" = "$ol_val" ; then
2991                         ol_arg="$ol_val"
2992                 fi
2993         done
2994         if test "$ol_arg" = "invalid" ; then
2995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2997    { (exit 1); exit 1; }; }
2998         fi
2999         ol_enable_monitor="$ol_arg"
3000
3001 else
3002         ol_enable_monitor=${ol_enable_backends:-yes}
3003 fi;
3004 # end --enable-monitor
3005 # OpenLDAP --enable-null
3006
3007         # Check whether --enable-null or --disable-null was given.
3008 if test "${enable_null+set}" = set; then
3009   enableval="$enable_null"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_null="$ol_arg"
3023
3024 else
3025         ol_enable_null=${ol_enable_backends:-no}
3026 fi;
3027 # end --enable-null
3028 # OpenLDAP --enable-passwd
3029
3030         # Check whether --enable-passwd or --disable-passwd was given.
3031 if test "${enable_passwd+set}" = set; then
3032   enableval="$enable_passwd"
3033
3034         ol_arg=invalid
3035         for ol_val in no yes mod ; do
3036                 if test "$enableval" = "$ol_val" ; then
3037                         ol_arg="$ol_val"
3038                 fi
3039         done
3040         if test "$ol_arg" = "invalid" ; then
3041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3043    { (exit 1); exit 1; }; }
3044         fi
3045         ol_enable_passwd="$ol_arg"
3046
3047 else
3048         ol_enable_passwd=${ol_enable_backends:-no}
3049 fi;
3050 # end --enable-passwd
3051 # OpenLDAP --enable-perl
3052
3053         # Check whether --enable-perl or --disable-perl was given.
3054 if test "${enable_perl+set}" = set; then
3055   enableval="$enable_perl"
3056
3057         ol_arg=invalid
3058         for ol_val in no yes mod ; do
3059                 if test "$enableval" = "$ol_val" ; then
3060                         ol_arg="$ol_val"
3061                 fi
3062         done
3063         if test "$ol_arg" = "invalid" ; then
3064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3066    { (exit 1); exit 1; }; }
3067         fi
3068         ol_enable_perl="$ol_arg"
3069
3070 else
3071         ol_enable_perl=${ol_enable_backends:-no}
3072 fi;
3073 # end --enable-perl
3074 # OpenLDAP --enable-relay
3075
3076         # Check whether --enable-relay or --disable-relay was given.
3077 if test "${enable_relay+set}" = set; then
3078   enableval="$enable_relay"
3079
3080         ol_arg=invalid
3081         for ol_val in no yes mod ; do
3082                 if test "$enableval" = "$ol_val" ; then
3083                         ol_arg="$ol_val"
3084                 fi
3085         done
3086         if test "$ol_arg" = "invalid" ; then
3087                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3089    { (exit 1); exit 1; }; }
3090         fi
3091         ol_enable_relay="$ol_arg"
3092
3093 else
3094         ol_enable_relay=${ol_enable_backends:-yes}
3095 fi;
3096 # end --enable-relay
3097 # OpenLDAP --enable-shell
3098
3099         # Check whether --enable-shell or --disable-shell was given.
3100 if test "${enable_shell+set}" = set; then
3101   enableval="$enable_shell"
3102
3103         ol_arg=invalid
3104         for ol_val in no yes mod ; do
3105                 if test "$enableval" = "$ol_val" ; then
3106                         ol_arg="$ol_val"
3107                 fi
3108         done
3109         if test "$ol_arg" = "invalid" ; then
3110                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3111 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3112    { (exit 1); exit 1; }; }
3113         fi
3114         ol_enable_shell="$ol_arg"
3115
3116 else
3117         ol_enable_shell=${ol_enable_backends:-no}
3118 fi;
3119 # end --enable-shell
3120 # OpenLDAP --enable-sql
3121
3122         # Check whether --enable-sql or --disable-sql was given.
3123 if test "${enable_sql+set}" = set; then
3124   enableval="$enable_sql"
3125
3126         ol_arg=invalid
3127         for ol_val in no yes mod ; do
3128                 if test "$enableval" = "$ol_val" ; then
3129                         ol_arg="$ol_val"
3130                 fi
3131         done
3132         if test "$ol_arg" = "invalid" ; then
3133                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3134 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3135    { (exit 1); exit 1; }; }
3136         fi
3137         ol_enable_sql="$ol_arg"
3138
3139 else
3140         ol_enable_sql=${ol_enable_backends:-no}
3141 fi;
3142 # end --enable-sql
3143
3144 Overlays="accesslog \
3145         denyop \
3146         dyngroup \
3147         dynlist \
3148         lastmod \
3149         ppolicy \
3150         proxycache \
3151         refint \
3152         retcode \
3153         rwm \
3154         syncprov \
3155         translucent \
3156         unique \
3157         valsort"
3158
3159 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3160 if test "${enable_xxslapoverlays+set}" = set; then
3161   enableval="$enable_xxslapoverlays"
3162
3163 fi;
3164
3165 # OpenLDAP --enable-overlays
3166
3167         # Check whether --enable-overlays or --disable-overlays was given.
3168 if test "${enable_overlays+set}" = set; then
3169   enableval="$enable_overlays"
3170
3171         ol_arg=invalid
3172         for ol_val in no yes mod ; do
3173                 if test "$enableval" = "$ol_val" ; then
3174                         ol_arg="$ol_val"
3175                 fi
3176         done
3177         if test "$ol_arg" = "invalid" ; then
3178                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3179 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3180    { (exit 1); exit 1; }; }
3181         fi
3182         ol_enable_overlays="$ol_arg"
3183
3184 fi;
3185 # end --enable-overlays
3186 # OpenLDAP --enable-accesslog
3187
3188         # Check whether --enable-accesslog or --disable-accesslog was given.
3189 if test "${enable_accesslog+set}" = set; then
3190   enableval="$enable_accesslog"
3191
3192         ol_arg=invalid
3193         for ol_val in no yes mod ; do
3194                 if test "$enableval" = "$ol_val" ; then
3195                         ol_arg="$ol_val"
3196                 fi
3197         done
3198         if test "$ol_arg" = "invalid" ; then
3199                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3200 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3201    { (exit 1); exit 1; }; }
3202         fi
3203         ol_enable_accesslog="$ol_arg"
3204
3205 else
3206         ol_enable_accesslog=${ol_enable_overlays:-no}
3207 fi;
3208 # end --enable-accesslog
3209
3210 # OpenLDAP --enable-denyop
3211
3212         # Check whether --enable-denyop or --disable-denyop was given.
3213 if test "${enable_denyop+set}" = set; then
3214   enableval="$enable_denyop"
3215
3216         ol_arg=invalid
3217         for ol_val in no yes mod ; do
3218                 if test "$enableval" = "$ol_val" ; then
3219                         ol_arg="$ol_val"
3220                 fi
3221         done
3222         if test "$ol_arg" = "invalid" ; then
3223                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3224 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3225    { (exit 1); exit 1; }; }
3226         fi
3227         ol_enable_denyop="$ol_arg"
3228
3229 else
3230         ol_enable_denyop=${ol_enable_overlays:-no}
3231 fi;
3232 # end --enable-denyop
3233
3234 # OpenLDAP --enable-dyngroup
3235
3236         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3237 if test "${enable_dyngroup+set}" = set; then
3238   enableval="$enable_dyngroup"
3239
3240         ol_arg=invalid
3241         for ol_val in no yes mod ; do
3242                 if test "$enableval" = "$ol_val" ; then
3243                         ol_arg="$ol_val"
3244                 fi
3245         done
3246         if test "$ol_arg" = "invalid" ; then
3247                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3248 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3249    { (exit 1); exit 1; }; }
3250         fi
3251         ol_enable_dyngroup="$ol_arg"
3252
3253 else
3254         ol_enable_dyngroup=${ol_enable_overlays:-no}
3255 fi;
3256 # end --enable-dyngroup
3257
3258 # OpenLDAP --enable-dynlist
3259
3260         # Check whether --enable-dynlist or --disable-dynlist was given.
3261 if test "${enable_dynlist+set}" = set; then
3262   enableval="$enable_dynlist"
3263
3264         ol_arg=invalid
3265         for ol_val in no yes mod ; do
3266                 if test "$enableval" = "$ol_val" ; then
3267                         ol_arg="$ol_val"
3268                 fi
3269         done
3270         if test "$ol_arg" = "invalid" ; then
3271                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3272 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3273    { (exit 1); exit 1; }; }
3274         fi
3275         ol_enable_dynlist="$ol_arg"
3276
3277 else
3278         ol_enable_dynlist=${ol_enable_overlays:-no}
3279 fi;
3280 # end --enable-dynlist
3281
3282 # OpenLDAP --enable-lastmod
3283
3284         # Check whether --enable-lastmod or --disable-lastmod was given.
3285 if test "${enable_lastmod+set}" = set; then
3286   enableval="$enable_lastmod"
3287
3288         ol_arg=invalid
3289         for ol_val in no yes mod ; do
3290                 if test "$enableval" = "$ol_val" ; then
3291                         ol_arg="$ol_val"
3292                 fi
3293         done
3294         if test "$ol_arg" = "invalid" ; then
3295                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3297    { (exit 1); exit 1; }; }
3298         fi
3299         ol_enable_lastmod="$ol_arg"
3300
3301 else
3302         ol_enable_lastmod=${ol_enable_overlays:-no}
3303 fi;
3304 # end --enable-lastmod
3305
3306 # OpenLDAP --enable-ppolicy
3307
3308         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3309 if test "${enable_ppolicy+set}" = set; then
3310   enableval="$enable_ppolicy"
3311
3312         ol_arg=invalid
3313         for ol_val in no yes mod ; do
3314                 if test "$enableval" = "$ol_val" ; then
3315                         ol_arg="$ol_val"
3316                 fi
3317         done
3318         if test "$ol_arg" = "invalid" ; then
3319                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3320 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3321    { (exit 1); exit 1; }; }
3322         fi
3323         ol_enable_ppolicy="$ol_arg"
3324
3325 else
3326         ol_enable_ppolicy=${ol_enable_overlays:-no}
3327 fi;
3328 # end --enable-ppolicy
3329
3330 # OpenLDAP --enable-proxycache
3331
3332         # Check whether --enable-proxycache or --disable-proxycache was given.
3333 if test "${enable_proxycache+set}" = set; then
3334   enableval="$enable_proxycache"
3335
3336         ol_arg=invalid
3337         for ol_val in no yes mod ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_proxycache="$ol_arg"
3348
3349 else
3350         ol_enable_proxycache=${ol_enable_overlays:-no}
3351 fi;
3352 # end --enable-proxycache
3353
3354 # OpenLDAP --enable-refint
3355
3356         # Check whether --enable-refint or --disable-refint was given.
3357 if test "${enable_refint+set}" = set; then
3358   enableval="$enable_refint"
3359
3360         ol_arg=invalid
3361         for ol_val in no yes mod ; do
3362                 if test "$enableval" = "$ol_val" ; then
3363                         ol_arg="$ol_val"
3364                 fi
3365         done
3366         if test "$ol_arg" = "invalid" ; then
3367                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3369    { (exit 1); exit 1; }; }
3370         fi
3371         ol_enable_refint="$ol_arg"
3372
3373 else
3374         ol_enable_refint=${ol_enable_overlays:-no}
3375 fi;
3376 # end --enable-refint
3377
3378 # OpenLDAP --enable-retcode
3379
3380         # Check whether --enable-retcode or --disable-retcode was given.
3381 if test "${enable_retcode+set}" = set; then
3382   enableval="$enable_retcode"
3383
3384         ol_arg=invalid
3385         for ol_val in no yes mod ; do
3386                 if test "$enableval" = "$ol_val" ; then
3387                         ol_arg="$ol_val"
3388                 fi
3389         done
3390         if test "$ol_arg" = "invalid" ; then
3391                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3392 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3393    { (exit 1); exit 1; }; }
3394         fi
3395         ol_enable_retcode="$ol_arg"
3396
3397 else
3398         ol_enable_retcode=${ol_enable_overlays:-no}
3399 fi;
3400 # end --enable-retcode
3401
3402 # OpenLDAP --enable-rwm
3403
3404         # Check whether --enable-rwm or --disable-rwm was given.
3405 if test "${enable_rwm+set}" = set; then
3406   enableval="$enable_rwm"
3407
3408         ol_arg=invalid
3409         for ol_val in no yes mod ; do
3410                 if test "$enableval" = "$ol_val" ; then
3411                         ol_arg="$ol_val"
3412                 fi
3413         done
3414         if test "$ol_arg" = "invalid" ; then
3415                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3416 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3417    { (exit 1); exit 1; }; }
3418         fi
3419         ol_enable_rwm="$ol_arg"
3420
3421 else
3422         ol_enable_rwm=${ol_enable_overlays:-no}
3423 fi;
3424 # end --enable-rwm
3425
3426 # OpenLDAP --enable-syncprov
3427
3428         # Check whether --enable-syncprov or --disable-syncprov was given.
3429 if test "${enable_syncprov+set}" = set; then
3430   enableval="$enable_syncprov"
3431
3432         ol_arg=invalid
3433         for ol_val in no yes mod ; do
3434                 if test "$enableval" = "$ol_val" ; then
3435                         ol_arg="$ol_val"
3436                 fi
3437         done
3438         if test "$ol_arg" = "invalid" ; then
3439                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3440 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3441    { (exit 1); exit 1; }; }
3442         fi
3443         ol_enable_syncprov="$ol_arg"
3444
3445 else
3446         ol_enable_syncprov=${ol_enable_overlays:-yes}
3447 fi;
3448 # end --enable-syncprov
3449
3450 # OpenLDAP --enable-translucent
3451
3452         # Check whether --enable-translucent or --disable-translucent was given.
3453 if test "${enable_translucent+set}" = set; then
3454   enableval="$enable_translucent"
3455
3456         ol_arg=invalid
3457         for ol_val in no yes mod ; do
3458                 if test "$enableval" = "$ol_val" ; then
3459                         ol_arg="$ol_val"
3460                 fi
3461         done
3462         if test "$ol_arg" = "invalid" ; then
3463                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3464 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3465    { (exit 1); exit 1; }; }
3466         fi
3467         ol_enable_translucent="$ol_arg"
3468
3469 else
3470         ol_enable_translucent=${ol_enable_overlays:-no}
3471 fi;
3472 # end --enable-translucent
3473
3474 # OpenLDAP --enable-unique
3475
3476         # Check whether --enable-unique or --disable-unique was given.
3477 if test "${enable_unique+set}" = set; then
3478   enableval="$enable_unique"
3479
3480         ol_arg=invalid
3481         for ol_val in no yes mod ; do
3482                 if test "$enableval" = "$ol_val" ; then
3483                         ol_arg="$ol_val"
3484                 fi
3485         done
3486         if test "$ol_arg" = "invalid" ; then
3487                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3488 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3489    { (exit 1); exit 1; }; }
3490         fi
3491         ol_enable_unique="$ol_arg"
3492
3493 else
3494         ol_enable_unique=${ol_enable_overlays:-no}
3495 fi;
3496 # end --enable-unique
3497
3498 # OpenLDAP --enable-valsort
3499
3500         # Check whether --enable-valsort or --disable-valsort was given.
3501 if test "${enable_valsort+set}" = set; then
3502   enableval="$enable_valsort"
3503
3504         ol_arg=invalid
3505         for ol_val in no yes mod ; do
3506                 if test "$enableval" = "$ol_val" ; then
3507                         ol_arg="$ol_val"
3508                 fi
3509         done
3510         if test "$ol_arg" = "invalid" ; then
3511                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3512 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3513    { (exit 1); exit 1; }; }
3514         fi
3515         ol_enable_valsort="$ol_arg"
3516
3517 else
3518         ol_enable_valsort=${ol_enable_overlays:-no}
3519 fi;
3520 # end --enable-valsort
3521
3522
3523 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3524 if test "${enable_xxslurpdoptions+set}" = set; then
3525   enableval="$enable_xxslurpdoptions"
3526
3527 fi;
3528 # OpenLDAP --enable-slurpd
3529
3530         # Check whether --enable-slurpd or --disable-slurpd was given.
3531 if test "${enable_slurpd+set}" = set; then
3532   enableval="$enable_slurpd"
3533
3534         ol_arg=invalid
3535         for ol_val in auto yes no ; do
3536                 if test "$enableval" = "$ol_val" ; then
3537                         ol_arg="$ol_val"
3538                 fi
3539         done
3540         if test "$ol_arg" = "invalid" ; then
3541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3542 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3543    { (exit 1); exit 1; }; }
3544         fi
3545         ol_enable_slurpd="$ol_arg"
3546
3547 else
3548         ol_enable_slurpd=auto
3549 fi;
3550 # end --enable-slurpd
3551
3552 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3553 if test "${enable_xxliboptions+set}" = set; then
3554   enableval="$enable_xxliboptions"
3555
3556 fi;
3557 # Check whether --enable-static or --disable-static was given.
3558 if test "${enable_static+set}" = set; then
3559   enableval="$enable_static"
3560   p=${PACKAGE-default}
3561     case $enableval in
3562     yes) enable_static=yes ;;
3563     no) enable_static=no ;;
3564     *)
3565      enable_static=no
3566       # Look at the argument we got.  We use all the common list separators.
3567       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3568       for pkg in $enableval; do
3569         IFS="$lt_save_ifs"
3570         if test "X$pkg" = "X$p"; then
3571           enable_static=yes
3572         fi
3573       done
3574       IFS="$lt_save_ifs"
3575       ;;
3576     esac
3577 else
3578   enable_static=yes
3579 fi;
3580
3581 # Check whether --enable-shared or --disable-shared was given.
3582 if test "${enable_shared+set}" = set; then
3583   enableval="$enable_shared"
3584   p=${PACKAGE-default}
3585     case $enableval in
3586     yes) enable_shared=yes ;;
3587     no) enable_shared=no ;;
3588     *)
3589       enable_shared=no
3590       # Look at the argument we got.  We use all the common list separators.
3591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592       for pkg in $enableval; do
3593         IFS="$lt_save_ifs"
3594         if test "X$pkg" = "X$p"; then
3595           enable_shared=yes
3596         fi
3597       done
3598       IFS="$lt_save_ifs"
3599       ;;
3600     esac
3601 else
3602   enable_shared=yes
3603 fi;
3604
3605
3606
3607 # validate options
3608 if test $ol_enable_slapd = no ; then
3609                 if test $ol_enable_slapi = yes ; then
3610                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3611 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3612         fi
3613         case "$ol_enable_backends" in yes | mod)
3614                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3616         esac
3617         for i in $Backends; do
3618                 eval "ol_tmp=\$ol_enable_$i"
3619                 if test $ol_tmp != no ; then
3620                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3621 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3622                         eval "ol_enable_$i=no"
3623                 fi
3624         done
3625         if test $ol_enable_modules = yes ; then
3626                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3627 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3628         fi
3629         if test $ol_enable_multimaster = yes ; then
3630                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3632         fi
3633         if test $ol_enable_wrappers = yes ; then
3634                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636         fi
3637         if test $ol_enable_rlookups = yes ; then
3638                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640         fi
3641         if test $ol_enable_aci = yes ; then
3642                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3644         fi
3645         if test $ol_enable_ldbm_api != auto ; then
3646                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3648         fi
3649         if test $ol_enable_ldbm_type != auto ; then
3650                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3651 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3652         fi
3653         if test $ol_enable_slurpd = yes ; then
3654                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3655 echo "$as_me: error: slurpd requires slapd" >&2;}
3656    { (exit 1); exit 1; }; }
3657         fi
3658         if test $ol_enable_rewrite = yes ; then
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3661         fi
3662                 case "$ol_enable_overlays" in yes | mod)
3663                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3665         esac
3666         for i in $Overlays; do
3667                 eval "ol_tmp=\$ol_enable_$i"
3668                 if test $ol_tmp != no ; then
3669                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3670 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3671                         eval "ol_enable_$i=no"
3672                 fi
3673         done
3674
3675         # force settings to no
3676         ol_enable_slapi=no
3677
3678         ol_enable_backends=
3679         ol_enable_overlays=
3680         ol_enable_modules=no
3681         ol_enable_multimaster=no
3682         ol_enable_rlookups=no
3683         ol_enable_aci=no
3684         ol_enable_wrappers=no
3685
3686         ol_enable_ldbm_api=no
3687         ol_enable_ldbm_type=no
3688
3689         ol_enable_slurpd=no
3690
3691         ol_enable_rewrite=no
3692
3693 elif test $ol_enable_ldbm = no ; then
3694
3695         if test $ol_enable_ldbm_api != auto ; then
3696                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3697 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3698         fi
3699
3700         if test $ol_enable_ldbm_type != auto ; then
3701                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3702 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3703         fi
3704
3705         if test $ol_enable_modules != yes &&
3706            test $ol_enable_bdb = no &&
3707            test $ol_enable_dnssrv = no &&
3708            test $ol_enable_hdb = no &&
3709            test $ol_enable_ldap = no &&
3710            test $ol_enable_meta = no &&
3711            test $ol_enable_monitor = no &&
3712            test $ol_enable_null = no &&
3713            test $ol_enable_passwd = no &&
3714            test $ol_enable_perl = no &&
3715            test $ol_enable_relay = no &&
3716            test $ol_enable_shell = no &&
3717            test $ol_enable_sql = no ; then
3718
3719                 if test $ol_enable_slapd = yes ; then
3720                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3721 echo "$as_me: error: slapd requires a backend" >&2;}
3722    { (exit 1); exit 1; }; }
3723                 else
3724                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3725 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3726                         ol_enable_slapd=no
3727                 fi
3728         fi
3729
3730         ol_enable_ldbm_api=no
3731         ol_enable_ldbm_type=no
3732
3733         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3734                 ol_enable_ldbm_api=berkeley
3735         fi
3736
3737 else
3738                 if test $ol_enable_ldbm_api = gdbm &&
3739            test $ol_enable_ldbm_type = btree ; then
3740                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3741 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3742    { (exit 1); exit 1; }; }
3743         fi
3744         if test $ol_enable_ldbm_api = mdbm &&
3745            test $ol_enable_ldbm_type = btree ; then
3746                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3747 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3748    { (exit 1); exit 1; }; }
3749         fi
3750         if test $ol_enable_ldbm_api = ndbm &&
3751            test $ol_enable_ldbm_type = btree ; then
3752                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3753 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3754    { (exit 1); exit 1; }; }
3755         fi
3756
3757         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3758                 if test $ol_enable_ldbm_api = auto ; then
3759                         ol_enable_ldbm_api=berkeley
3760                 elif test $ol_enable_ldbm_api != berkeley ; then
3761                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3762 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3763    { (exit 1); exit 1; }; }
3764                 fi
3765         fi
3766 fi
3767
3768 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3769         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3770 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3771    { (exit 1); exit 1; }; }
3772 fi
3773
3774 if test $ol_enable_slurpd = yes ; then
3775                 if test $ol_with_threads = no ; then
3776                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3777 echo "$as_me: error: slurpd requires threads" >&2;}
3778    { (exit 1); exit 1; }; }
3779         fi
3780 fi
3781
3782 if test $ol_enable_lmpasswd = yes ; then
3783         if test $ol_with_tls = no ; then
3784                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3785 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3786    { (exit 1); exit 1; }; }
3787         fi
3788 fi
3789
3790 if test $ol_enable_kbind = yes ; then
3791         if test $ol_with_kerberos = no ; then
3792                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3793 echo "$as_me: error: options require --with-kerberos" >&2;}
3794    { (exit 1); exit 1; }; }
3795         elif test $ol_with_kerberos = auto ; then
3796                 ol_with_kerberos=yes
3797         fi
3798
3799 elif test $ol_enable_kbind = no ; then
3800         if test $ol_with_kerberos = auto ; then
3801                 ol_with_kerberos=no
3802         elif test $ol_with_kerberos != no ; then
3803                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3804 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3805                 ol_with_kerberos=no
3806         fi
3807 fi
3808
3809 if test $ol_enable_spasswd = yes ; then
3810         if test $ol_with_cyrus_sasl = no ; then
3811                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3812 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3813    { (exit 1); exit 1; }; }
3814         fi
3815         ol_with_cyrus_sasl=yes
3816 fi
3817
3818 echo "$as_me:$LINENO: result: done" >&5
3819 echo "${ECHO_T}done" >&6
3820
3821 LDAP_LIBS=
3822 LDBM_LIBS=
3823 LTHREAD_LIBS=
3824 LUTIL_LIBS=
3825
3826 SLAPD_LIBS=
3827 SLURPD_LIBS=
3828
3829 BUILD_SLAPD=no
3830 BUILD_SLURPD=no
3831
3832 BUILD_THREAD=no
3833
3834 BUILD_SLAPI=no
3835 SLAPD_SLAPI_DEPEND=
3836
3837 BUILD_BDB=no
3838 BUILD_DNSSRV=no
3839 BUILD_HDB=no
3840 BUILD_LDAP=no
3841 BUILD_LDBM=no
3842 BUILD_META=no
3843 BUILD_MONITOR=no
3844 BUILD_NULL=no
3845 BUILD_PASSWD=no
3846 BUILD_PERL=no
3847 BUILD_RELAY=no
3848 BUILD_SHELL=no
3849 BUILD_SQL=no
3850
3851 BUILD_ACCESSLOG=no
3852 BUILD_DENYOP=no
3853 BUILD_DYNGROUP=no
3854 BUILD_DYNLIST=no
3855 BUILD_LASTMOD=no
3856 BUILD_PPOLICY=no
3857 BUILD_PROXYCACHE=no
3858 BUILD_REFINT=no
3859 BUILD_RETCODE=no
3860 BUILD_RWM=no
3861 BUILD_SYNCPROV=no
3862 BUILD_TRANSLUCENT=no
3863 BUILD_UNIQUE=no
3864 BUILD_VALSORT=no
3865
3866 SLAPD_STATIC_OVERLAYS=
3867 SLAPD_DYNAMIC_OVERLAYS=
3868
3869 SLAPD_MODULES_LDFLAGS=
3870 SLAPD_MODULES_CPPFLAGS=
3871
3872 SLAPD_STATIC_BACKENDS=back-ldif
3873 SLAPD_DYNAMIC_BACKENDS=
3874
3875 SLAPD_PERL_LDFLAGS=
3876 MOD_PERL_LDFLAGS=
3877 PERL_CPPFLAGS=
3878
3879 SLAPD_SQL_LDFLAGS=
3880 SLAPD_SQL_LIBS=
3881 SLAPD_SQL_INCLUDES=
3882
3883 KRB4_LIBS=
3884 KRB5_LIBS=
3885 SASL_LIBS=
3886 TLS_LIBS=
3887 MODULES_LIBS=
3888 SLAPI_LIBS=
3889 LIBSLAPI=
3890 LIBSLAPITOOLS=
3891 AUTH_LIBS=
3892 ICU_LIBS=
3893
3894 SLAPD_SLP_LIBS=
3895 SLAPD_GMP_LIBS=
3896
3897
3898
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_MKVERSION 1
3901 _ACEOF
3902
3903
3904
3905
3906 ol_aix_threads=no
3907 case "$target" in
3908 *-*-aix*)       if test -z "$CC" ; then
3909                 case "$ol_with_threads" in
3910                 auto | yes |  posix) ol_aix_threads=yes ;;
3911                 esac
3912         fi
3913 ;;
3914 esac
3915
3916 if test $ol_aix_threads = yes ; then
3917         if test -z "${CC}" ; then
3918                 for ac_prog in cc_r xlc_r cc
3919 do
3920   # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_CC+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$CC"; then
3928   ac_cv_prog_CC="$CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_CC="$ac_prog"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 CC=$ac_cv_prog_CC
3947 if test -n "$CC"; then
3948   echo "$as_me:$LINENO: result: $CC" >&5
3949 echo "${ECHO_T}$CC" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955   test -n "$CC" && break
3956 done
3957
3958
3959                 if test "$CC" = cc ; then
3960                                                 if test $ol_with_threads != auto ; then
3961                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3962 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3963    { (exit 1); exit 1; }; }
3964                         else
3965                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3966 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3967                         fi
3968                         ol_with_threads=no
3969                 fi
3970         fi
3971
3972         case ${CC} in cc_r | xlc_r)
3973                 ol_with_threads=posix
3974                 ol_cv_pthread_create=yes
3975                 ;;
3976         esac
3977 fi
3978
3979 if test -z "${CC}"; then
3980         for ac_prog in cc gcc
3981 do
3982   # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if test -n "$CC"; then
3990   ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999     ac_cv_prog_CC="$ac_prog"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005
4006 fi
4007 fi
4008 CC=$ac_cv_prog_CC
4009 if test -n "$CC"; then
4010   echo "$as_me:$LINENO: result: $CC" >&5
4011 echo "${ECHO_T}$CC" >&6
4012 else
4013   echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4015 fi
4016
4017   test -n "$CC" && break
4018 done
4019 test -n "$CC" || CC="missing"
4020
4021
4022         if test "${CC}" = "missing" ; then
4023                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4024 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4025    { (exit 1); exit 1; }; }
4026         fi
4027 fi
4028
4029 if test -z "${AR}"; then
4030         for ac_prog in ar gar
4031 do
4032   # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_prog_AR+set}" = set; then
4037   echo $ECHO_N "(cached) $ECHO_C" >&6
4038 else
4039   if test -n "$AR"; then
4040   ac_cv_prog_AR="$AR" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_prog_AR="$ac_prog"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055
4056 fi
4057 fi
4058 AR=$ac_cv_prog_AR
4059 if test -n "$AR"; then
4060   echo "$as_me:$LINENO: result: $AR" >&5
4061 echo "${ECHO_T}$AR" >&6
4062 else
4063   echo "$as_me:$LINENO: result: no" >&5
4064 echo "${ECHO_T}no" >&6
4065 fi
4066
4067   test -n "$AR" && break
4068 done
4069 test -n "$AR" || AR="missing"
4070
4071
4072         if test "${AR}" = "missing" ; then
4073                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4074 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4075    { (exit 1); exit 1; }; }
4076         fi
4077 fi
4078
4079
4080
4081
4082
4083 # Check whether --enable-fast-install or --disable-fast-install was given.
4084 if test "${enable_fast_install+set}" = set; then
4085   enableval="$enable_fast_install"
4086   p=${PACKAGE-default}
4087     case $enableval in
4088     yes) enable_fast_install=yes ;;
4089     no) enable_fast_install=no ;;
4090     *)
4091       enable_fast_install=no
4092       # Look at the argument we got.  We use all the common list separators.
4093       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4094       for pkg in $enableval; do
4095         IFS="$lt_save_ifs"
4096         if test "X$pkg" = "X$p"; then
4097           enable_fast_install=yes
4098         fi
4099       done
4100       IFS="$lt_save_ifs"
4101       ;;
4102     esac
4103 else
4104   enable_fast_install=yes
4105 fi;
4106
4107 DEPDIR="${am__leading_dot}deps"
4108
4109           ac_config_commands="$ac_config_commands depfiles"
4110
4111
4112 am_make=${MAKE-make}
4113 cat > confinc << 'END'
4114 am__doit:
4115         @echo done
4116 .PHONY: am__doit
4117 END
4118 # If we don't find an include directive, just comment out the code.
4119 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4120 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4121 am__include="#"
4122 am__quote=
4123 _am_result=none
4124 # First try GNU make style include.
4125 echo "include confinc" > confmf
4126 # We grep out `Entering directory' and `Leaving directory'
4127 # messages which can occur if `w' ends up in MAKEFLAGS.
4128 # In particular we don't look at `^make:' because GNU make might
4129 # be invoked under some other name (usually "gmake"), in which
4130 # case it prints its new name instead of `make'.
4131 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4132    am__include=include
4133    am__quote=
4134    _am_result=GNU
4135 fi
4136 # Now try BSD make style include.
4137 if test "$am__include" = "#"; then
4138    echo '.include "confinc"' > confmf
4139    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4140       am__include=.include
4141       am__quote="\""
4142       _am_result=BSD
4143    fi
4144 fi
4145
4146
4147 echo "$as_me:$LINENO: result: $_am_result" >&5
4148 echo "${ECHO_T}$_am_result" >&6
4149 rm -f confinc confmf
4150
4151 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4152 if test "${enable_dependency_tracking+set}" = set; then
4153   enableval="$enable_dependency_tracking"
4154
4155 fi;
4156 if test "x$enable_dependency_tracking" != xno; then
4157   am_depcomp="$ac_aux_dir/depcomp"
4158   AMDEPBACKSLASH='\'
4159 fi
4160
4161
4162 if test "x$enable_dependency_tracking" != xno; then
4163   AMDEP_TRUE=
4164   AMDEP_FALSE='#'
4165 else
4166   AMDEP_TRUE='#'
4167   AMDEP_FALSE=
4168 fi
4169
4170
4171
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_prog_CC+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   if test -n "$CC"; then
4186   ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191   IFS=$as_save_IFS
4192   test -z "$as_dir" && as_dir=.
4193   for ac_exec_ext in '' $ac_executable_extensions; do
4194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197     break 2
4198   fi
4199 done
4200 done
4201
4202 fi
4203 fi
4204 CC=$ac_cv_prog_CC
4205 if test -n "$CC"; then
4206   echo "$as_me:$LINENO: result: $CC" >&5
4207 echo "${ECHO_T}$CC" >&6
4208 else
4209   echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4211 fi
4212
4213 fi
4214 if test -z "$ac_cv_prog_CC"; then
4215   ac_ct_CC=$CC
4216   # Extract the first word of "gcc", so it can be a program name with args.
4217 set dummy gcc; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4221   echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223   if test -n "$ac_ct_CC"; then
4224   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231   for ac_exec_ext in '' $ac_executable_extensions; do
4232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233     ac_cv_prog_ac_ct_CC="gcc"
4234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238 done
4239
4240 fi
4241 fi
4242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4245 echo "${ECHO_T}$ac_ct_CC" >&6
4246 else
4247   echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4249 fi
4250
4251   CC=$ac_ct_CC
4252 else
4253   CC="$ac_cv_prog_CC"
4254 fi
4255
4256 if test -z "$CC"; then
4257   if test -n "$ac_tool_prefix"; then
4258   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}cc; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_CC+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$CC"; then
4266   ac_cv_prog_CC="$CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275     ac_cv_prog_CC="${ac_tool_prefix}cc"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281
4282 fi
4283 fi
4284 CC=$ac_cv_prog_CC
4285 if test -n "$CC"; then
4286   echo "$as_me:$LINENO: result: $CC" >&5
4287 echo "${ECHO_T}$CC" >&6
4288 else
4289   echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6
4291 fi
4292
4293 fi
4294 if test -z "$ac_cv_prog_CC"; then
4295   ac_ct_CC=$CC
4296   # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test -n "$ac_ct_CC"; then
4304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4313     ac_cv_prog_ac_ct_CC="cc"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319
4320 fi
4321 fi
4322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4323 if test -n "$ac_ct_CC"; then
4324   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4325 echo "${ECHO_T}$ac_ct_CC" >&6
4326 else
4327   echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330
4331   CC=$ac_ct_CC
4332 else
4333   CC="$ac_cv_prog_CC"
4334 fi
4335
4336 fi
4337 if test -z "$CC"; then
4338   # Extract the first word of "cc", so it can be a program name with args.
4339 set dummy cc; ac_word=$2
4340 echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4342 if test "${ac_cv_prog_CC+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   if test -n "$CC"; then
4346   ac_cv_prog_CC="$CC" # Let the user override the test.
4347 else
4348   ac_prog_rejected=no
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352   IFS=$as_save_IFS
4353   test -z "$as_dir" && as_dir=.
4354   for ac_exec_ext in '' $ac_executable_extensions; do
4355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4357        ac_prog_rejected=yes
4358        continue
4359      fi
4360     ac_cv_prog_CC="cc"
4361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365 done
4366
4367 if test $ac_prog_rejected = yes; then
4368   # We found a bogon in the path, so make sure we never use it.
4369   set dummy $ac_cv_prog_CC
4370   shift
4371   if test $# != 0; then
4372     # We chose a different compiler from the bogus one.
4373     # However, it has the same basename, so the bogon will be chosen
4374     # first if we set CC to just the basename; use the full file name.
4375     shift
4376     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4377   fi
4378 fi
4379 fi
4380 fi
4381 CC=$ac_cv_prog_CC
4382 if test -n "$CC"; then
4383   echo "$as_me:$LINENO: result: $CC" >&5
4384 echo "${ECHO_T}$CC" >&6
4385 else
4386   echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390 fi
4391 if test -z "$CC"; then
4392   if test -n "$ac_tool_prefix"; then
4393   for ac_prog in cl
4394   do
4395     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$CC"; then
4403   ac_cv_prog_CC="$CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
4420 fi
4421 CC=$ac_cv_prog_CC
4422 if test -n "$CC"; then
4423   echo "$as_me:$LINENO: result: $CC" >&5
4424 echo "${ECHO_T}$CC" >&6
4425 else
4426   echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430     test -n "$CC" && break
4431   done
4432 fi
4433 if test -z "$CC"; then
4434   ac_ct_CC=$CC
4435   for ac_prog in cl
4436 do
4437   # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy $ac_prog; ac_word=$2
4439 echo "$as_me:$LINENO: checking for $ac_word" >&5
4440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   if test -n "$ac_ct_CC"; then
4445   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4454     ac_cv_prog_ac_ct_CC="$ac_prog"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460
4461 fi
4462 fi
4463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4464 if test -n "$ac_ct_CC"; then
4465   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4466 echo "${ECHO_T}$ac_ct_CC" >&6
4467 else
4468   echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4470 fi
4471
4472   test -n "$ac_ct_CC" && break
4473 done
4474
4475   CC=$ac_ct_CC
4476 fi
4477
4478 fi
4479
4480
4481 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&5
4483 echo "$as_me: error: no acceptable C compiler found in \$PATH
4484 See \`config.log' for more details." >&2;}
4485    { (exit 1); exit 1; }; }
4486
4487 # Provide some information about the compiler.
4488 echo "$as_me:$LINENO:" \
4489      "checking for C compiler version" >&5
4490 ac_compiler=`set X $ac_compile; echo $2`
4491 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4492   (eval $ac_compiler --version </dev/null >&5) 2>&5
4493   ac_status=$?
4494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); }
4496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4497   (eval $ac_compiler -v </dev/null >&5) 2>&5
4498   ac_status=$?
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); }
4501 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4502   (eval $ac_compiler -V </dev/null >&5) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }
4506
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h.  */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h.  */
4513
4514 int
4515 main ()
4516 {
4517
4518   ;
4519   return 0;
4520 }
4521 _ACEOF
4522 ac_clean_files_save=$ac_clean_files
4523 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4524 # Try to create an executable without -o first, disregard a.out.
4525 # It will help us diagnose broken compilers, and finding out an intuition
4526 # of exeext.
4527 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4528 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4529 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4530 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4531   (eval $ac_link_default) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; then
4535   # Find the output, starting from the most likely.  This scheme is
4536 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4537 # resort.
4538
4539 # Be careful to initialize this variable, since it used to be cached.
4540 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4541 ac_cv_exeext=
4542 # b.out is created by i960 compilers.
4543 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4544 do
4545   test -f "$ac_file" || continue
4546   case $ac_file in
4547     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4548         ;;
4549     conftest.$ac_ext )
4550         # This is the source file.
4551         ;;
4552     [ab].out )
4553         # We found the default executable, but exeext='' is most
4554         # certainly right.
4555         break;;
4556     *.* )
4557         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4558         # FIXME: I believe we export ac_cv_exeext for Libtool,
4559         # but it would be cool to find out if it's true.  Does anybody
4560         # maintain Libtool? --akim.
4561         export ac_cv_exeext
4562         break;;
4563     * )
4564         break;;
4565   esac
4566 done
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&5
4573 echo "$as_me: error: C compiler cannot create executables
4574 See \`config.log' for more details." >&2;}
4575    { (exit 77); exit 77; }; }
4576 fi
4577
4578 ac_exeext=$ac_cv_exeext
4579 echo "$as_me:$LINENO: result: $ac_file" >&5
4580 echo "${ECHO_T}$ac_file" >&6
4581
4582 # Check the compiler produces executables we can run.  If not, either
4583 # the compiler is broken, or we cross compile.
4584 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4587 # If not cross compiling, check that we can run a simple program.
4588 if test "$cross_compiling" != yes; then
4589   if { ac_try='./$ac_file'
4590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591   (eval $ac_try) 2>&5
4592   ac_status=$?
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); }; }; then
4595     cross_compiling=no
4596   else
4597     if test "$cross_compiling" = maybe; then
4598         cross_compiling=yes
4599     else
4600         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4601 If you meant to cross compile, use \`--host'.
4602 See \`config.log' for more details." >&5
4603 echo "$as_me: error: cannot run C compiled programs.
4604 If you meant to cross compile, use \`--host'.
4605 See \`config.log' for more details." >&2;}
4606    { (exit 1); exit 1; }; }
4607     fi
4608   fi
4609 fi
4610 echo "$as_me:$LINENO: result: yes" >&5
4611 echo "${ECHO_T}yes" >&6
4612
4613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4614 ac_clean_files=$ac_clean_files_save
4615 # Check the compiler produces executables we can run.  If not, either
4616 # the compiler is broken, or we cross compile.
4617 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4619 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4620 echo "${ECHO_T}$cross_compiling" >&6
4621
4622 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4625   (eval $ac_link) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; then
4629   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4630 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4631 # work properly (i.e., refer to `conftest.exe'), while it won't with
4632 # `rm'.
4633 for ac_file in conftest.exe conftest conftest.*; do
4634   test -f "$ac_file" || continue
4635   case $ac_file in
4636     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4637     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4638           export ac_cv_exeext
4639           break;;
4640     * ) break;;
4641   esac
4642 done
4643 else
4644   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4647 See \`config.log' for more details." >&2;}
4648    { (exit 1); exit 1; }; }
4649 fi
4650
4651 rm -f conftest$ac_cv_exeext
4652 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4653 echo "${ECHO_T}$ac_cv_exeext" >&6
4654
4655 rm -f conftest.$ac_ext
4656 EXEEXT=$ac_cv_exeext
4657 ac_exeext=$EXEEXT
4658 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4659 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4660 if test "${ac_cv_objext+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669
4670 int
4671 main ()
4672 {
4673
4674   ;
4675   return 0;
4676 }
4677 _ACEOF
4678 rm -f conftest.o conftest.obj
4679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4680   (eval $ac_compile) 2>&5
4681   ac_status=$?
4682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); }; then
4684   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4685   case $ac_file in
4686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4687     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4688        break;;
4689   esac
4690 done
4691 else
4692   echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&5
4697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4698 See \`config.log' for more details." >&2;}
4699    { (exit 1); exit 1; }; }
4700 fi
4701
4702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4703 fi
4704 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4705 echo "${ECHO_T}$ac_cv_objext" >&6
4706 OBJEXT=$ac_cv_objext
4707 ac_objext=$OBJEXT
4708 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h.  */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h.  */
4719
4720 int
4721 main ()
4722 {
4723 #ifndef __GNUC__
4724        choke me
4725 #endif
4726
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733   (eval $ac_compile) 2>conftest.er1
4734   ac_status=$?
4735   grep -v '^ *+' conftest.er1 >conftest.err
4736   rm -f conftest.er1
4737   cat conftest.err >&5
4738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739   (exit $ac_status); } &&
4740          { ac_try='test -z "$ac_c_werror_flag"
4741                          || test ! -s conftest.err'
4742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743   (eval $ac_try) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }; } &&
4747          { ac_try='test -s conftest.$ac_objext'
4748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749   (eval $ac_try) 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; }; then
4753   ac_compiler_gnu=yes
4754 else
4755   echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 ac_compiler_gnu=no
4759 fi
4760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4762
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4766 GCC=`test $ac_compiler_gnu = yes && echo yes`
4767 ac_test_CFLAGS=${CFLAGS+set}
4768 ac_save_CFLAGS=$CFLAGS
4769 CFLAGS="-g"
4770 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4772 if test "${ac_cv_prog_cc_g+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781
4782 int
4783 main ()
4784 {
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792   (eval $ac_compile) 2>conftest.er1
4793   ac_status=$?
4794   grep -v '^ *+' conftest.er1 >conftest.err
4795   rm -f conftest.er1
4796   cat conftest.err >&5
4797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798   (exit $ac_status); } &&
4799          { ac_try='test -z "$ac_c_werror_flag"
4800                          || test ! -s conftest.err'
4801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802   (eval $ac_try) 2>&5
4803   ac_status=$?
4804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805   (exit $ac_status); }; } &&
4806          { ac_try='test -s conftest.$ac_objext'
4807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808   (eval $ac_try) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; }; then
4812   ac_cv_prog_cc_g=yes
4813 else
4814   echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4816
4817 ac_cv_prog_cc_g=no
4818 fi
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 fi
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823 if test "$ac_test_CFLAGS" = set; then
4824   CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826   if test "$GCC" = yes; then
4827     CFLAGS="-g -O2"
4828   else
4829     CFLAGS="-g"
4830   fi
4831 else
4832   if test "$GCC" = yes; then
4833     CFLAGS="-O2"
4834   else
4835     CFLAGS=
4836   fi
4837 fi
4838 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   ac_cv_prog_cc_stdc=no
4844 ac_save_CC=$CC
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #include <stdarg.h>
4852 #include <stdio.h>
4853 #include <sys/types.h>
4854 #include <sys/stat.h>
4855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4856 struct buf { int x; };
4857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858 static char *e (p, i)
4859      char **p;
4860      int i;
4861 {
4862   return p[i];
4863 }
4864 static char *f (char * (*g) (char **, int), char **p, ...)
4865 {
4866   char *s;
4867   va_list v;
4868   va_start (v,p);
4869   s = g (p, va_arg (v,int));
4870   va_end (v);
4871   return s;
4872 }
4873
4874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4875    function prototypes and stuff, but not '\xHH' hex character constants.
4876    These don't provoke an error unfortunately, instead are silently treated
4877    as 'x'.  The following induces an error, until -std1 is added to get
4878    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4879    array size at least.  It's necessary to write '\x00'==0 to get something
4880    that's true only with -std1.  */
4881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887 int argc;
4888 char **argv;
4889 int
4890 main ()
4891 {
4892 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 # Don't try gcc -ansi; that turns off useful extensions and
4898 # breaks some systems' header files.
4899 # AIX                   -qlanglvl=ansi
4900 # Ultrix and OSF/1      -std1
4901 # HP-UX 10.20 and later -Ae
4902 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4903 # SVR4                  -Xc -D__EXTENSIONS__
4904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905 do
4906   CC="$ac_save_CC $ac_arg"
4907   rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909   (eval $ac_compile) 2>conftest.er1
4910   ac_status=$?
4911   grep -v '^ *+' conftest.er1 >conftest.err
4912   rm -f conftest.er1
4913   cat conftest.err >&5
4914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915   (exit $ac_status); } &&
4916          { ac_try='test -z "$ac_c_werror_flag"
4917                          || test ! -s conftest.err'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; } &&
4923          { ac_try='test -s conftest.$ac_objext'
4924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925   (eval $ac_try) 2>&5
4926   ac_status=$?
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); }; }; then
4929   ac_cv_prog_cc_stdc=$ac_arg
4930 break
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 fi
4936 rm -f conftest.err conftest.$ac_objext
4937 done
4938 rm -f conftest.$ac_ext conftest.$ac_objext
4939 CC=$ac_save_CC
4940
4941 fi
4942
4943 case "x$ac_cv_prog_cc_stdc" in
4944   x|xno)
4945     echo "$as_me:$LINENO: result: none needed" >&5
4946 echo "${ECHO_T}none needed" >&6 ;;
4947   *)
4948     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4949 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4950     CC="$CC $ac_cv_prog_cc_stdc" ;;
4951 esac
4952
4953 # Some people use a C++ compiler to compile C.  Since we use `exit',
4954 # in C++ we need to declare it.  In case someone uses the same compiler
4955 # for both compiling C and C++ we need to have the C++ compiler decide
4956 # the declaration of exit, since it's the most demanding environment.
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #ifndef __cplusplus
4959   choke me
4960 #endif
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4964   (eval $ac_compile) 2>conftest.er1
4965   ac_status=$?
4966   grep -v '^ *+' conftest.er1 >conftest.err
4967   rm -f conftest.er1
4968   cat conftest.err >&5
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); } &&
4971          { ac_try='test -z "$ac_c_werror_flag"
4972                          || test ! -s conftest.err'
4973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974   (eval $ac_try) 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); }; } &&
4978          { ac_try='test -s conftest.$ac_objext'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; }; then
4984   for ac_declaration in \
4985    '' \
4986    'extern "C" void std::exit (int) throw (); using std::exit;' \
4987    'extern "C" void std::exit (int); using std::exit;' \
4988    'extern "C" void exit (int) throw ();' \
4989    'extern "C" void exit (int);' \
4990    'void exit (int);'
4991 do
4992   cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h.  */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h.  */
4998 $ac_declaration
4999 #include <stdlib.h>
5000 int
5001 main ()
5002 {
5003 exit (42);
5004   ;
5005   return 0;
5006 }
5007 _ACEOF
5008 rm -f conftest.$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010   (eval $ac_compile) 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } &&
5017          { ac_try='test -z "$ac_c_werror_flag"
5018                          || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5030   :
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 continue
5036 fi
5037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 $ac_declaration
5045 int
5046 main ()
5047 {
5048 exit (42);
5049   ;
5050   return 0;
5051 }
5052 _ACEOF
5053 rm -f conftest.$ac_objext
5054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5055   (eval $ac_compile) 2>conftest.er1
5056   ac_status=$?
5057   grep -v '^ *+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } &&
5062          { ac_try='test -z "$ac_c_werror_flag"
5063                          || test ! -s conftest.err'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; } &&
5069          { ac_try='test -s conftest.$ac_objext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   break
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 fi
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 done
5083 rm -f conftest*
5084 if test -n "$ac_declaration"; then
5085   echo '#ifdef __cplusplus' >>confdefs.h
5086   echo $ac_declaration      >>confdefs.h
5087   echo '#endif'             >>confdefs.h
5088 fi
5089
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094 fi
5095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101
5102 depcc="$CC"   am_compiler_list=
5103
5104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5110   # We make a subdir and do the tests there.  Otherwise we can end up
5111   # making bogus files that we don't know about and never remove.  For
5112   # instance it was reported that on HP-UX the gcc test will end up
5113   # making a dummy file named `D' -- because `-MD' means `put the output
5114   # in D'.
5115   mkdir conftest.dir
5116   # Copy depcomp to subdir because otherwise we won't find it if we're
5117   # using a relative directory.
5118   cp "$am_depcomp" conftest.dir
5119   cd conftest.dir
5120   # We will build objects and dependencies in a subdirectory because
5121   # it helps to detect inapplicable dependency modes.  For instance
5122   # both Tru64's cc and ICC support -MD to output dependencies as a
5123   # side effect of compilation, but ICC will put the dependencies in
5124   # the current directory while Tru64 will put them in the object
5125   # directory.
5126   mkdir sub
5127
5128   am_cv_CC_dependencies_compiler_type=none
5129   if test "$am_compiler_list" = ""; then
5130      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5131   fi
5132   for depmode in $am_compiler_list; do
5133     # Setup a source with many dependencies, because some compilers
5134     # like to wrap large dependency lists on column 80 (with \), and
5135     # we should not choose a depcomp mode which is confused by this.
5136     #
5137     # We need to recreate these files for each test, as the compiler may
5138     # overwrite some of them when testing with obscure command lines.
5139     # This happens at least with the AIX C compiler.
5140     : > sub/conftest.c
5141     for i in 1 2 3 4 5 6; do
5142       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144       # Solaris 8's {/usr,}/bin/sh.
5145       touch sub/conftst$i.h
5146     done
5147     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5148
5149     case $depmode in
5150     nosideeffect)
5151       # after this tag, mechanisms are not by side-effect, so they'll
5152       # only be used when explicitly requested
5153       if test "x$enable_dependency_tracking" = xyes; then
5154         continue
5155       else
5156         break
5157       fi
5158       ;;
5159     none) break ;;
5160     esac
5161     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162     # mode.  It turns out that the SunPro C++ compiler does not properly
5163     # handle `-M -o', and we need to detect this.
5164     if depmode=$depmode \
5165        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5166        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5167        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5168          >/dev/null 2>conftest.err &&
5169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172       # icc doesn't choke on unknown options, it will just issue warnings
5173       # or remarks (even with -Werror).  So we grep stderr for any message
5174       # that says an option was ignored or not supported.
5175       # When given -MP, icc 7.0 and 7.1 complain thusly:
5176       #   icc: Command line warning: ignoring option '-M'; no argument required
5177       # The diagnosis changed in icc 8.0:
5178       #   icc: Command line remark: option '-MP' not supported
5179       if (grep 'ignoring option' conftest.err ||
5180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181         am_cv_CC_dependencies_compiler_type=$depmode
5182         break
5183       fi
5184     fi
5185   done
5186
5187   cd ..
5188   rm -rf conftest.dir
5189 else
5190   am_cv_CC_dependencies_compiler_type=none
5191 fi
5192
5193 fi
5194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198
5199
5200 if
5201   test "x$enable_dependency_tracking" != xno \
5202   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5203   am__fastdepCC_TRUE=
5204   am__fastdepCC_FALSE='#'
5205 else
5206   am__fastdepCC_TRUE='#'
5207   am__fastdepCC_FALSE=
5208 fi
5209
5210
5211 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5212 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5213 if test "${lt_cv_path_SED+set}" = set; then
5214   echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216   # Loop through the user's path and test for sed and gsed.
5217 # Then use that list of sed's as ones to test for truncation.
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223   for lt_ac_prog in sed gsed; do
5224     for ac_exec_ext in '' $ac_executable_extensions; do
5225       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5226         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5227       fi
5228     done
5229   done
5230 done
5231 lt_ac_max=0
5232 lt_ac_count=0
5233 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5234 # along with /bin/sed that truncates output.
5235 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5236   test ! -f $lt_ac_sed && continue
5237   cat /dev/null > conftest.in
5238   lt_ac_count=0
5239   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5240   # Check for GNU sed and select it if it is found.
5241   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5242     lt_cv_path_SED=$lt_ac_sed
5243     break
5244   fi
5245   while true; do
5246     cat conftest.in conftest.in >conftest.tmp
5247     mv conftest.tmp conftest.in
5248     cp conftest.in conftest.nl
5249     echo >>conftest.nl
5250     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5251     cmp -s conftest.out conftest.nl || break
5252     # 10000 chars as input seems more than enough
5253     test $lt_ac_count -gt 10 && break
5254     lt_ac_count=`expr $lt_ac_count + 1`
5255     if test $lt_ac_count -gt $lt_ac_max; then
5256       lt_ac_max=$lt_ac_count
5257       lt_cv_path_SED=$lt_ac_sed
5258     fi
5259   done
5260 done
5261
5262 fi
5263
5264 SED=$lt_cv_path_SED
5265 echo "$as_me:$LINENO: result: $SED" >&5
5266 echo "${ECHO_T}$SED" >&6
5267
5268 echo "$as_me:$LINENO: checking for egrep" >&5
5269 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5270 if test "${ac_cv_prog_egrep+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5274     then ac_cv_prog_egrep='grep -E'
5275     else ac_cv_prog_egrep='egrep'
5276     fi
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5279 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5280  EGREP=$ac_cv_prog_egrep
5281
5282
5283
5284 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5285 if test "${with_gnu_ld+set}" = set; then
5286   withval="$with_gnu_ld"
5287   test "$withval" = no || with_gnu_ld=yes
5288 else
5289   with_gnu_ld=no
5290 fi;
5291 ac_prog=ld
5292 if test "$GCC" = yes; then
5293   # Check if gcc -print-prog-name=ld gives a path.
5294   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5295 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5296   case $host in
5297   *-*-mingw*)
5298     # gcc leaves a trailing carriage return which upsets mingw
5299     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5300   *)
5301     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302   esac
5303   case $ac_prog in
5304     # Accept absolute paths.
5305     [\\/]* | ?:[\\/]*)
5306       re_direlt='/[^/][^/]*/\.\./'
5307       # Canonicalize the pathname of ld
5308       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5309       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5310         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5311       done
5312       test -z "$LD" && LD="$ac_prog"
5313       ;;
5314   "")
5315     # If it fails, then pretend we aren't using GCC.
5316     ac_prog=ld
5317     ;;
5318   *)
5319     # If it is relative, then search for the first ld in PATH.
5320     with_gnu_ld=unknown
5321     ;;
5322   esac
5323 elif test "$with_gnu_ld" = yes; then
5324   echo "$as_me:$LINENO: checking for GNU ld" >&5
5325 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5326 else
5327   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5328 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5329 fi
5330 if test "${lt_cv_path_LD+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   if test -z "$LD"; then
5334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5335   for ac_dir in $PATH; do
5336     IFS="$lt_save_ifs"
5337     test -z "$ac_dir" && ac_dir=.
5338     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5339       lt_cv_path_LD="$ac_dir/$ac_prog"
5340       # Check to see if the program is GNU ld.  I'd rather use --version,
5341       # but apparently some variants of GNU ld only accept -v.
5342       # Break only if it was the GNU/non-GNU ld that we prefer.
5343       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5344       *GNU* | *'with BFD'*)
5345         test "$with_gnu_ld" != no && break
5346         ;;
5347       *)
5348         test "$with_gnu_ld" != yes && break
5349         ;;
5350       esac
5351     fi
5352   done
5353   IFS="$lt_save_ifs"
5354 else
5355   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5356 fi
5357 fi
5358
5359 LD="$lt_cv_path_LD"
5360 if test -n "$LD"; then
5361   echo "$as_me:$LINENO: result: $LD" >&5
5362 echo "${ECHO_T}$LD" >&6
5363 else
5364   echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5366 fi
5367 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5368 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5369    { (exit 1); exit 1; }; }
5370 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5371 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5372 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5376 case `$LD -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378   lt_cv_prog_gnu_ld=yes
5379   ;;
5380 *)
5381   lt_cv_prog_gnu_ld=no
5382   ;;
5383 esac
5384 fi
5385 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5386 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5387 with_gnu_ld=$lt_cv_prog_gnu_ld
5388
5389
5390 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5391 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5392 if test "${lt_cv_ld_reload_flag+set}" = set; then
5393   echo $ECHO_N "(cached) $ECHO_C" >&6
5394 else
5395   lt_cv_ld_reload_flag='-r'
5396 fi
5397 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5398 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5399 reload_flag=$lt_cv_ld_reload_flag
5400 case $reload_flag in
5401 "" | " "*) ;;
5402 *) reload_flag=" $reload_flag" ;;
5403 esac
5404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5405 case $host_os in
5406   darwin*)
5407     if test "$GCC" = yes; then
5408       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5409     else
5410       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5411     fi
5412     ;;
5413 esac
5414
5415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5417 if test "${lt_cv_path_NM+set}" = set; then
5418   echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420   if test -n "$NM"; then
5421   # Let the user override the test.
5422   lt_cv_path_NM="$NM"
5423 else
5424   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5426     IFS="$lt_save_ifs"
5427     test -z "$ac_dir" && ac_dir=.
5428     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5429     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5430       # Check to see if the nm accepts a BSD-compat flag.
5431       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5432       #   nm: unknown option "B" ignored
5433       # Tru64's nm complains that /dev/null is an invalid object file
5434       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5435       */dev/null* | *'Invalid file or object type'*)
5436         lt_cv_path_NM="$tmp_nm -B"
5437         break
5438         ;;
5439       *)
5440         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5441         */dev/null*)
5442           lt_cv_path_NM="$tmp_nm -p"
5443           break
5444           ;;
5445         *)
5446           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5447           continue # so that we can try to find one that supports BSD flags
5448           ;;
5449         esac
5450       esac
5451     fi
5452   done
5453   IFS="$lt_save_ifs"
5454   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5455 fi
5456 fi
5457 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5458 echo "${ECHO_T}$lt_cv_path_NM" >&6
5459 NM="$lt_cv_path_NM"
5460
5461 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5462 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5463 LN_S=$as_ln_s
5464 if test "$LN_S" = "ln -s"; then
5465   echo "$as_me:$LINENO: result: yes" >&5
5466 echo "${ECHO_T}yes" >&6
5467 else
5468   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5469 echo "${ECHO_T}no, using $LN_S" >&6
5470 fi
5471
5472 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5473 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5474 if test "${lt_cv_deplibs_check_method+set}" = set; then
5475   echo $ECHO_N "(cached) $ECHO_C" >&6
5476 else
5477   lt_cv_file_magic_cmd='$MAGIC_CMD'
5478 lt_cv_file_magic_test_file=
5479 lt_cv_deplibs_check_method='unknown'
5480 # Need to set the preceding variable on all platforms that support
5481 # interlibrary dependencies.
5482 # 'none' -- dependencies not supported.
5483 # `unknown' -- same as none, but documents that we really don't know.
5484 # 'pass_all' -- all dependencies passed with no checks.
5485 # 'test_compile' -- check by making test program.
5486 # 'file_magic [[regex]]' -- check by looking for files in library path
5487 # which responds to the $file_magic_cmd with a given extended regex.
5488 # If you have `file' or equivalent on your system and you're not sure
5489 # whether `pass_all' will *always* work, you probably want this one.
5490
5491 case $host_os in
5492 aix4* | aix5*)
5493   lt_cv_deplibs_check_method=pass_all
5494   ;;
5495
5496 beos*)
5497   lt_cv_deplibs_check_method=pass_all
5498   ;;
5499
5500 bsdi[45]*)
5501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5502   lt_cv_file_magic_cmd='/usr/bin/file -L'
5503   lt_cv_file_magic_test_file=/shlib/libc.so
5504   ;;
5505
5506 cygwin*)
5507   # func_win32_libid is a shell function defined in ltmain.sh
5508   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5509   lt_cv_file_magic_cmd='func_win32_libid'
5510   ;;
5511
5512 mingw* | pw32*)
5513   # Base MSYS/MinGW do not provide the 'file' command needed by
5514   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5515   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5516   lt_cv_file_magic_cmd='$OBJDUMP -f'
5517   ;;
5518
5519 darwin* | rhapsody*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 freebsd* | kfreebsd*-gnu | dragonfly*)
5524   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5525     case $host_cpu in
5526     i*86 )
5527       # Not sure whether the presence of OpenBSD here was a mistake.
5528       # Let's accept both of them until this is cleared up.
5529       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5530       lt_cv_file_magic_cmd=/usr/bin/file
5531       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5532       ;;
5533     esac
5534   else
5535     lt_cv_deplibs_check_method=pass_all
5536   fi
5537   ;;
5538
5539 gnu*)
5540   lt_cv_deplibs_check_method=pass_all
5541   ;;
5542
5543 hpux10.20* | hpux11*)
5544   lt_cv_file_magic_cmd=/usr/bin/file
5545   case $host_cpu in
5546   ia64*)
5547     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5548     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5549     ;;
5550   hppa*64*)
5551     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]'
5552     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5553     ;;
5554   *)
5555     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5556     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5557     ;;
5558   esac
5559   ;;
5560
5561 irix5* | irix6* | nonstopux*)
5562   case $LD in
5563   *-32|*"-32 ") libmagic=32-bit;;
5564   *-n32|*"-n32 ") libmagic=N32;;
5565   *-64|*"-64 ") libmagic=64-bit;;
5566   *) libmagic=never-match;;
5567   esac
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 # This must be Linux ELF.
5572 linux*)
5573   lt_cv_deplibs_check_method=pass_all
5574   ;;
5575
5576 netbsd*)
5577   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5579   else
5580     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5581   fi
5582   ;;
5583
5584 newos6*)
5585   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5586   lt_cv_file_magic_cmd=/usr/bin/file
5587   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5588   ;;
5589
5590 nto-qnx*)
5591   lt_cv_deplibs_check_method=unknown
5592   ;;
5593
5594 openbsd*)
5595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5597   else
5598     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5599   fi
5600   ;;
5601
5602 osf3* | osf4* | osf5*)
5603   lt_cv_deplibs_check_method=pass_all
5604   ;;
5605
5606 sco3.2v5*)
5607   lt_cv_deplibs_check_method=pass_all
5608   ;;
5609
5610 solaris*)
5611   lt_cv_deplibs_check_method=pass_all
5612   ;;
5613
5614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5615   case $host_vendor in
5616   motorola)
5617     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]'
5618     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5619     ;;
5620   ncr)
5621     lt_cv_deplibs_check_method=pass_all
5622     ;;
5623   sequent)
5624     lt_cv_file_magic_cmd='/bin/file'
5625     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5626     ;;
5627   sni)
5628     lt_cv_file_magic_cmd='/bin/file'
5629     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5630     lt_cv_file_magic_test_file=/lib/libc.so
5631     ;;
5632   siemens)
5633     lt_cv_deplibs_check_method=pass_all
5634     ;;
5635   esac
5636   ;;
5637
5638 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5639   lt_cv_deplibs_check_method=pass_all
5640   ;;
5641 esac
5642
5643 fi
5644 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5645 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5646 file_magic_cmd=$lt_cv_file_magic_cmd
5647 deplibs_check_method=$lt_cv_deplibs_check_method
5648 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5649
5650
5651
5652
5653 # If no C compiler was specified, use CC.
5654 LTCC=${LTCC-"$CC"}
5655
5656 # Allow CC to be a program name with arguments.
5657 compiler=$CC
5658
5659
5660 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5661 if test "${enable_libtool_lock+set}" = set; then
5662   enableval="$enable_libtool_lock"
5663
5664 fi;
5665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5666
5667 # Some flags need to be propagated to the compiler or linker for good
5668 # libtool support.
5669 case $host in
5670 ia64-*-hpux*)
5671   # Find out which ABI we are using.
5672   echo 'int i;' > conftest.$ac_ext
5673   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674   (eval $ac_compile) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; then
5678     case `/usr/bin/file conftest.$ac_objext` in
5679     *ELF-32*)
5680       HPUX_IA64_MODE="32"
5681       ;;
5682     *ELF-64*)
5683       HPUX_IA64_MODE="64"
5684       ;;
5685     esac
5686   fi
5687   rm -rf conftest*
5688   ;;
5689 *-*-irix6*)
5690   # Find out which ABI we are using.
5691   echo '#line 5691 "configure"' > conftest.$ac_ext
5692   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693   (eval $ac_compile) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; then
5697    if test "$lt_cv_prog_gnu_ld" = yes; then
5698     case `/usr/bin/file conftest.$ac_objext` in
5699     *32-bit*)
5700       LD="${LD-ld} -melf32bsmip"
5701       ;;
5702     *N32*)
5703       LD="${LD-ld} -melf32bmipn32"
5704       ;;
5705     *64-bit*)
5706       LD="${LD-ld} -melf64bmip"
5707       ;;
5708     esac
5709    else
5710     case `/usr/bin/file conftest.$ac_objext` in
5711     *32-bit*)
5712       LD="${LD-ld} -32"
5713       ;;
5714     *N32*)
5715       LD="${LD-ld} -n32"
5716       ;;
5717     *64-bit*)
5718       LD="${LD-ld} -64"
5719       ;;
5720     esac
5721    fi
5722   fi
5723   rm -rf conftest*
5724   ;;
5725
5726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5727   # Find out which ABI we are using.
5728   echo 'int i;' > conftest.$ac_ext
5729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730   (eval $ac_compile) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; then
5734     case `/usr/bin/file conftest.o` in
5735     *32-bit*)
5736       case $host in
5737         x86_64-*linux*)
5738           LD="${LD-ld} -m elf_i386"
5739           ;;
5740         ppc64-*linux*|powerpc64-*linux*)
5741           LD="${LD-ld} -m elf32ppclinux"
5742           ;;
5743         s390x-*linux*)
5744           LD="${LD-ld} -m elf_s390"
5745           ;;
5746         sparc64-*linux*)
5747           LD="${LD-ld} -m elf32_sparc"
5748           ;;
5749       esac
5750       ;;
5751     *64-bit*)
5752       case $host in
5753         x86_64-*linux*)
5754           LD="${LD-ld} -m elf_x86_64"
5755           ;;
5756         ppc*-*linux*|powerpc*-*linux*)
5757           LD="${LD-ld} -m elf64ppc"
5758           ;;
5759         s390*-*linux*)
5760           LD="${LD-ld} -m elf64_s390"
5761           ;;
5762         sparc*-*linux*)
5763           LD="${LD-ld} -m elf64_sparc"
5764           ;;
5765       esac
5766       ;;
5767     esac
5768   fi
5769   rm -rf conftest*
5770   ;;
5771
5772 *-*-sco3.2v5*)
5773   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5774   SAVE_CFLAGS="$CFLAGS"
5775   CFLAGS="$CFLAGS -belf"
5776   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5778 if test "${lt_cv_cc_needs_belf+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787      cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793
5794 int
5795 main ()
5796 {
5797
5798   ;
5799   return 0;
5800 }
5801 _ACEOF
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5804   (eval $ac_link) 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } &&
5811          { ac_try='test -z "$ac_c_werror_flag"
5812                          || test ! -s conftest.err'
5813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814   (eval $ac_try) 2>&5
5815   ac_status=$?
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); }; } &&
5818          { ac_try='test -s conftest$ac_exeext'
5819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820   (eval $ac_try) 2>&5
5821   ac_status=$?
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); }; }; then
5824   lt_cv_cc_needs_belf=yes
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 lt_cv_cc_needs_belf=no
5830 fi
5831 rm -f conftest.err conftest.$ac_objext \
5832       conftest$ac_exeext conftest.$ac_ext
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 fi
5840 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5841 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5842   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5843     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5844     CFLAGS="$SAVE_CFLAGS"
5845   fi
5846   ;;
5847 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5848   if test -n "$ac_tool_prefix"; then
5849   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$DLLTOOL"; then
5857   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872
5873 fi
5874 fi
5875 DLLTOOL=$ac_cv_prog_DLLTOOL
5876 if test -n "$DLLTOOL"; then
5877   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5878 echo "${ECHO_T}$DLLTOOL" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884 fi
5885 if test -z "$ac_cv_prog_DLLTOOL"; then
5886   ac_ct_DLLTOOL=$DLLTOOL
5887   # Extract the first word of "dlltool", so it can be a program name with args.
5888 set dummy dlltool; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5892   echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894   if test -n "$ac_ct_DLLTOOL"; then
5895   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910
5911   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5912 fi
5913 fi
5914 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5915 if test -n "$ac_ct_DLLTOOL"; then
5916   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5917 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923   DLLTOOL=$ac_ct_DLLTOOL
5924 else
5925   DLLTOOL="$ac_cv_prog_DLLTOOL"
5926 fi
5927
5928   if test -n "$ac_tool_prefix"; then
5929   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}as; ac_word=$2
5931 echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933 if test "${ac_cv_prog_AS+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   if test -n "$AS"; then
5937   ac_cv_prog_AS="$AS" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946     ac_cv_prog_AS="${ac_tool_prefix}as"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952
5953 fi
5954 fi
5955 AS=$ac_cv_prog_AS
5956 if test -n "$AS"; then
5957   echo "$as_me:$LINENO: result: $AS" >&5
5958 echo "${ECHO_T}$AS" >&6
5959 else
5960   echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5962 fi
5963
5964 fi
5965 if test -z "$ac_cv_prog_AS"; then
5966   ac_ct_AS=$AS
5967   # Extract the first word of "as", so it can be a program name with args.
5968 set dummy as; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974   if test -n "$ac_ct_AS"; then
5975   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982   for ac_exec_ext in '' $ac_executable_extensions; do
5983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984     ac_cv_prog_ac_ct_AS="as"
5985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989 done
5990
5991   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5992 fi
5993 fi
5994 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5995 if test -n "$ac_ct_AS"; then
5996   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5997 echo "${ECHO_T}$ac_ct_AS" >&6
5998 else
5999   echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6001 fi
6002
6003   AS=$ac_ct_AS
6004 else
6005   AS="$ac_cv_prog_AS"
6006 fi
6007
6008   if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6014   echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016   if test -n "$OBJDUMP"; then
6017   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024   for ac_exec_ext in '' $ac_executable_extensions; do
6025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031 done
6032
6033 fi
6034 fi
6035 OBJDUMP=$ac_cv_prog_OBJDUMP
6036 if test -n "$OBJDUMP"; then
6037   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6038 echo "${ECHO_T}$OBJDUMP" >&6
6039 else
6040   echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6042 fi
6043
6044 fi
6045 if test -z "$ac_cv_prog_OBJDUMP"; then
6046   ac_ct_OBJDUMP=$OBJDUMP
6047   # Extract the first word of "objdump", so it can be a program name with args.
6048 set dummy objdump; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   if test -n "$ac_ct_OBJDUMP"; then
6055   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060   IFS=$as_save_IFS
6061   test -z "$as_dir" && as_dir=.
6062   for ac_exec_ext in '' $ac_executable_extensions; do
6063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066     break 2
6067   fi
6068 done
6069 done
6070
6071   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6072 fi
6073 fi
6074 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6075 if test -n "$ac_ct_OBJDUMP"; then
6076   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6077 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6078 else
6079   echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6081 fi
6082
6083   OBJDUMP=$ac_ct_OBJDUMP
6084 else
6085   OBJDUMP="$ac_cv_prog_OBJDUMP"
6086 fi
6087
6088   ;;
6089
6090 esac
6091
6092 need_locks="$enable_libtool_lock"
6093
6094
6095 ac_ext=c
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6102 # On Suns, sometimes $CPP names a directory.
6103 if test -n "$CPP" && test -d "$CPP"; then
6104   CPP=
6105 fi
6106 if test -z "$CPP"; then
6107   if test "${ac_cv_prog_CPP+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110       # Double quotes because CPP needs to be expanded
6111     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6112     do
6113       ac_preproc_ok=false
6114 for ac_c_preproc_warn_flag in '' yes
6115 do
6116   # Use a header file that comes with gcc, so configuring glibc
6117   # with a fresh cross-compiler works.
6118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119   # <limits.h> exists even on freestanding compilers.
6120   # On the NeXT, cc -E runs the code through the compiler's parser,
6121   # not just through cpp. "Syntax error" is here to catch this case.
6122   cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128 #ifdef __STDC__
6129 # include <limits.h>
6130 #else
6131 # include <assert.h>
6132 #endif
6133                      Syntax error
6134 _ACEOF
6135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137   ac_status=$?
6138   grep -v '^ *+' conftest.er1 >conftest.err
6139   rm -f conftest.er1
6140   cat conftest.err >&5
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); } >/dev/null; then
6143   if test -s conftest.err; then
6144     ac_cpp_err=$ac_c_preproc_warn_flag
6145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6146   else
6147     ac_cpp_err=
6148   fi
6149 else
6150   ac_cpp_err=yes
6151 fi
6152 if test -z "$ac_cpp_err"; then
6153   :
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158   # Broken: fails on valid input.
6159 continue
6160 fi
6161 rm -f conftest.err conftest.$ac_ext
6162
6163   # OK, works on sane cases.  Now check whether non-existent headers
6164   # can be detected and how.
6165   cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171 #include <ac_nonexistent.h>
6172 _ACEOF
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } >/dev/null; then
6181   if test -s conftest.err; then
6182     ac_cpp_err=$ac_c_preproc_warn_flag
6183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184   else
6185     ac_cpp_err=
6186   fi
6187 else
6188   ac_cpp_err=yes
6189 fi
6190 if test -z "$ac_cpp_err"; then
6191   # Broken: success on invalid input.
6192 continue
6193 else
6194   echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197   # Passes both tests.
6198 ac_preproc_ok=:
6199 break
6200 fi
6201 rm -f conftest.err conftest.$ac_ext
6202
6203 done
6204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205 rm -f conftest.err conftest.$ac_ext
6206 if $ac_preproc_ok; then
6207   break
6208 fi
6209
6210     done
6211     ac_cv_prog_CPP=$CPP
6212
6213 fi
6214   CPP=$ac_cv_prog_CPP
6215 else
6216   ac_cv_prog_CPP=$CPP
6217 fi
6218 echo "$as_me:$LINENO: result: $CPP" >&5
6219 echo "${ECHO_T}$CPP" >&6
6220 ac_preproc_ok=false
6221 for ac_c_preproc_warn_flag in '' yes
6222 do
6223   # Use a header file that comes with gcc, so configuring glibc
6224   # with a fresh cross-compiler works.
6225   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226   # <limits.h> exists even on freestanding compilers.
6227   # On the NeXT, cc -E runs the code through the compiler's parser,
6228   # not just through cpp. "Syntax error" is here to catch this case.
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #ifdef __STDC__
6236 # include <limits.h>
6237 #else
6238 # include <assert.h>
6239 #endif
6240                      Syntax error
6241 _ACEOF
6242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } >/dev/null; then
6250   if test -s conftest.err; then
6251     ac_cpp_err=$ac_c_preproc_warn_flag
6252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6253   else
6254     ac_cpp_err=
6255   fi
6256 else
6257   ac_cpp_err=yes
6258 fi
6259 if test -z "$ac_cpp_err"; then
6260   :
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265   # Broken: fails on valid input.
6266 continue
6267 fi
6268 rm -f conftest.err conftest.$ac_ext
6269
6270   # OK, works on sane cases.  Now check whether non-existent headers
6271   # can be detected and how.
6272   cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h.  */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h.  */
6278 #include <ac_nonexistent.h>
6279 _ACEOF
6280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } >/dev/null; then
6288   if test -s conftest.err; then
6289     ac_cpp_err=$ac_c_preproc_warn_flag
6290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6291   else
6292     ac_cpp_err=
6293   fi
6294 else
6295   ac_cpp_err=yes
6296 fi
6297 if test -z "$ac_cpp_err"; then
6298   # Broken: success on invalid input.
6299 continue
6300 else
6301   echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304   # Passes both tests.
6305 ac_preproc_ok=:
6306 break
6307 fi
6308 rm -f conftest.err conftest.$ac_ext
6309
6310 done
6311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312 rm -f conftest.err conftest.$ac_ext
6313 if $ac_preproc_ok; then
6314   :
6315 else
6316   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&5
6318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6319 See \`config.log' for more details." >&2;}
6320    { (exit 1); exit 1; }; }
6321 fi
6322
6323 ac_ext=c
6324 ac_cpp='$CPP $CPPFLAGS'
6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328
6329
6330 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6331 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6332 if test "${ac_cv_header_stdc+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #include <stdlib.h>
6342 #include <stdarg.h>
6343 #include <string.h>
6344 #include <float.h>
6345
6346 int
6347 main ()
6348 {
6349
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356   (eval $ac_compile) 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } &&
6363          { ac_try='test -z "$ac_c_werror_flag"
6364                          || test ! -s conftest.err'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; } &&
6370          { ac_try='test -s conftest.$ac_objext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   ac_cv_header_stdc=yes
6377 else
6378   echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6380
6381 ac_cv_header_stdc=no
6382 fi
6383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6384
6385 if test $ac_cv_header_stdc = yes; then
6386   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
6394
6395 _ACEOF
6396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6397   $EGREP "memchr" >/dev/null 2>&1; then
6398   :
6399 else
6400   ac_cv_header_stdc=no
6401 fi
6402 rm -f conftest*
6403
6404 fi
6405
6406 if test $ac_cv_header_stdc = yes; then
6407   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6408   cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414 #include <stdlib.h>
6415
6416 _ACEOF
6417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6418   $EGREP "free" >/dev/null 2>&1; then
6419   :
6420 else
6421   ac_cv_header_stdc=no
6422 fi
6423 rm -f conftest*
6424
6425 fi
6426
6427 if test $ac_cv_header_stdc = yes; then
6428   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6429   if test "$cross_compiling" = yes; then
6430   :
6431 else
6432   cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 #include <ctype.h>
6439 #if ((' ' & 0x0FF) == 0x020)
6440 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6441 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6442 #else
6443 # define ISLOWER(c) \
6444                    (('a' <= (c) && (c) <= 'i') \
6445                      || ('j' <= (c) && (c) <= 'r') \
6446                      || ('s' <= (c) && (c) <= 'z'))
6447 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6448 #endif
6449
6450 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6451 int
6452 main ()
6453 {
6454   int i;
6455   for (i = 0; i < 256; i++)
6456     if (XOR (islower (i), ISLOWER (i))
6457         || toupper (i) != TOUPPER (i))
6458       exit(2);
6459   exit (0);
6460 }
6461 _ACEOF
6462 rm -f conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464   (eval $ac_link) 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; }; then
6473   :
6474 else
6475   echo "$as_me: program exited with status $ac_status" >&5
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 ( exit $ac_status )
6480 ac_cv_header_stdc=no
6481 fi
6482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6483 fi
6484 fi
6485 fi
6486 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6487 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6488 if test $ac_cv_header_stdc = yes; then
6489
6490 cat >>confdefs.h <<\_ACEOF
6491 #define STDC_HEADERS 1
6492 _ACEOF
6493
6494 fi
6495
6496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6507                   inttypes.h stdint.h unistd.h
6508 do
6509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6510 echo "$as_me:$LINENO: checking for $ac_header" >&5
6511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 $ac_includes_default
6522
6523 #include <$ac_header>
6524 _ACEOF
6525 rm -f conftest.$ac_objext
6526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527   (eval $ac_compile) 2>conftest.er1
6528   ac_status=$?
6529   grep -v '^ *+' conftest.er1 >conftest.err
6530   rm -f conftest.er1
6531   cat conftest.err >&5
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -z "$ac_c_werror_flag"
6535                          || test ! -s conftest.err'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; } &&
6541          { ac_try='test -s conftest.$ac_objext'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; }; then
6547   eval "$as_ac_Header=yes"
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 eval "$as_ac_Header=no"
6553 fi
6554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6555 fi
6556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559   cat >>confdefs.h <<_ACEOF
6560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6561 _ACEOF
6562
6563 fi
6564
6565 done
6566
6567
6568
6569 for ac_header in dlfcn.h
6570 do
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573   echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 fi
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 else
6581   # Is the header compilable?
6582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 $ac_includes_default
6591 #include <$ac_header>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"
6603                          || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest.$ac_objext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   ac_header_compiler=yes
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_header_compiler=no
6621 fi
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624 echo "${ECHO_T}$ac_header_compiler" >&6
6625
6626 # Is the header present?
6627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 #include <$ac_header>
6636 _ACEOF
6637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639   ac_status=$?
6640   grep -v '^ *+' conftest.er1 >conftest.err
6641   rm -f conftest.er1
6642   cat conftest.err >&5
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } >/dev/null; then
6645   if test -s conftest.err; then
6646     ac_cpp_err=$ac_c_preproc_warn_flag
6647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6648   else
6649     ac_cpp_err=
6650   fi
6651 else
6652   ac_cpp_err=yes
6653 fi
6654 if test -z "$ac_cpp_err"; then
6655   ac_header_preproc=yes
6656 else
6657   echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660   ac_header_preproc=no
6661 fi
6662 rm -f conftest.err conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664 echo "${ECHO_T}$ac_header_preproc" >&6
6665
6666 # So?  What about this header?
6667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668   yes:no: )
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673     ac_header_preproc=yes
6674     ;;
6675   no:yes:* )
6676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688     (
6689       cat <<\_ASBOX
6690 ## ------------------------------------------ ##
6691 ## Report this to the AC_PACKAGE_NAME lists.  ##
6692 ## ------------------------------------------ ##
6693 _ASBOX
6694     ) |
6695       sed "s/^/$as_me: WARNING:     /" >&2
6696     ;;
6697 esac
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   eval "$as_ac_Header=\$ac_header_preproc"
6704 fi
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707
6708 fi
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6713
6714 fi
6715
6716 done
6717
6718
6719 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6720
6721 # find the maximum length of command line arguments
6722 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6723 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6724 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727     i=0
6728   teststring="ABCD"
6729
6730   case $build_os in
6731   msdosdjgpp*)
6732     # On DJGPP, this test can blow up pretty badly due to problems in libc
6733     # (any single argument exceeding 2000 bytes causes a buffer overrun
6734     # during glob expansion).  Even if it were fixed, the result of this
6735     # check would be larger than it should be.
6736     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6737     ;;
6738
6739   gnu*)
6740     # Under GNU Hurd, this test is not required because there is
6741     # no limit to the length of command line arguments.
6742     # Libtool will interpret -1 as no limit whatsoever
6743     lt_cv_sys_max_cmd_len=-1;
6744     ;;
6745
6746   cygwin* | mingw*)
6747     # On Win9x/ME, this test blows up -- it succeeds, but takes
6748     # about 5 minutes as the teststring grows exponentially.
6749     # Worse, since 9x/ME are not pre-emptively multitasking,
6750     # you end up with a "frozen" computer, even though with patience
6751     # the test eventually succeeds (with a max line length of 256k).
6752     # Instead, let's just punt: use the minimum linelength reported by
6753     # all of the supported platforms: 8192 (on NT/2K/XP).
6754     lt_cv_sys_max_cmd_len=8192;
6755     ;;
6756
6757   amigaos*)
6758     # On AmigaOS with pdksh, this test takes hours, literally.
6759     # So we just punt and use a minimum line length of 8192.
6760     lt_cv_sys_max_cmd_len=8192;
6761     ;;
6762
6763   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6764     # This has been around since 386BSD, at least.  Likely further.
6765     if test -x /sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6767     elif test -x /usr/sbin/sysctl; then
6768       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6769     else
6770       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6771     fi
6772     # And add a safety zone
6773     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6774     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6775     ;;
6776   osf*)
6777     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6778     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6779     # nice to cause kernel panics so lets avoid the loop below.
6780     # First set a reasonable default.
6781     lt_cv_sys_max_cmd_len=16384
6782     #
6783     if test -x /sbin/sysconfig; then
6784       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6785         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6786       esac
6787     fi
6788     ;;
6789   *)
6790     # If test is not a shell built-in, we'll probably end up computing a
6791     # maximum length that is only half of the actual maximum length, but
6792     # we can't tell.
6793     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6794     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6795                = "XX$teststring") >/dev/null 2>&1 &&
6796             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6797             lt_cv_sys_max_cmd_len=$new_result &&
6798             test $i != 17 # 1/2 MB should be enough
6799     do
6800       i=`expr $i + 1`
6801       teststring=$teststring$teststring
6802     done
6803     teststring=
6804     # Add a significant safety factor because C++ compilers can tack on massive
6805     # amounts of additional arguments before passing them to the linker.
6806     # It appears as though 1/2 is a usable value.
6807     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6808     ;;
6809   esac
6810
6811 fi
6812
6813 if test -n $lt_cv_sys_max_cmd_len ; then
6814   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6816 else
6817   echo "$as_me:$LINENO: result: none" >&5
6818 echo "${ECHO_T}none" >&6
6819 fi
6820
6821
6822
6823
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6826 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6827 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830
6831 # These are sane defaults that work on at least a few old systems.
6832 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6833
6834 # Character class describing NM global symbol codes.
6835 symcode='[BCDEGRST]'
6836
6837 # Regexp to match symbols that can be accessed directly from C.
6838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6839
6840 # Transform an extracted symbol line into a proper C declaration
6841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6842
6843 # Transform an extracted symbol line into symbol name and symbol address
6844 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'"
6845
6846 # Define system-specific variables.
6847 case $host_os in
6848 aix*)
6849   symcode='[BCDT]'
6850   ;;
6851 cygwin* | mingw* | pw32*)
6852   symcode='[ABCDGISTW]'
6853   ;;
6854 hpux*) # Its linker distinguishes data from code symbols
6855   if test "$host_cpu" = ia64; then
6856     symcode='[ABCDEGRST]'
6857   fi
6858   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6859   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'"
6860   ;;
6861 linux*)
6862   if test "$host_cpu" = ia64; then
6863     symcode='[ABCDGIRSTW]'
6864     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6865     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'"
6866   fi
6867   ;;
6868 irix* | nonstopux*)
6869   symcode='[BCDEGRST]'
6870   ;;
6871 osf*)
6872   symcode='[BCDEGQRST]'
6873   ;;
6874 solaris* | sysv5*)
6875   symcode='[BDRT]'
6876   ;;
6877 sysv4)
6878   symcode='[DFNSTU]'
6879   ;;
6880 esac
6881
6882 # Handle CRLF in mingw tool chain
6883 opt_cr=
6884 case $build_os in
6885 mingw*)
6886   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6887   ;;
6888 esac
6889
6890 # If we're using GNU nm, then use its standard symbol codes.
6891 case `$NM -V 2>&1` in
6892 *GNU* | *'with BFD'*)
6893   symcode='[ABCDGIRSTW]' ;;
6894 esac
6895
6896 # Try without a prefix undercore, then with it.
6897 for ac_symprfx in "" "_"; do
6898
6899   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6900   symxfrm="\\1 $ac_symprfx\\2 \\2"
6901
6902   # Write the raw and C identifiers.
6903   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6904
6905   # Check to see that the pipe works correctly.
6906   pipe_works=no
6907
6908   rm -f conftest*
6909   cat > conftest.$ac_ext <<EOF
6910 #ifdef __cplusplus
6911 extern "C" {
6912 #endif
6913 char nm_test_var;
6914 void nm_test_func(){}
6915 #ifdef __cplusplus
6916 }
6917 #endif
6918 int main(){nm_test_var='a';nm_test_func();return(0);}
6919 EOF
6920
6921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922   (eval $ac_compile) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; then
6926     # Now try to grab the symbols.
6927     nlist=conftest.nm
6928     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6929   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6930   ac_status=$?
6931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932   (exit $ac_status); } && test -s "$nlist"; then
6933       # Try sorting and uniquifying the output.
6934       if sort "$nlist" | uniq > "$nlist"T; then
6935         mv -f "$nlist"T "$nlist"
6936       else
6937         rm -f "$nlist"T
6938       fi
6939
6940       # Make sure that we snagged all the symbols we need.
6941       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6942         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6943           cat <<EOF > conftest.$ac_ext
6944 #ifdef __cplusplus
6945 extern "C" {
6946 #endif
6947
6948 EOF
6949           # Now generate the symbol file.
6950           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6951
6952           cat <<EOF >> conftest.$ac_ext
6953 #if defined (__STDC__) && __STDC__
6954 # define lt_ptr_t void *
6955 #else
6956 # define lt_ptr_t char *
6957 # define const
6958 #endif
6959
6960 /* The mapping between symbol names and symbols. */
6961 const struct {
6962   const char *name;
6963   lt_ptr_t address;
6964 }
6965 lt_preloaded_symbols[] =
6966 {
6967 EOF
6968           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6969           cat <<\EOF >> conftest.$ac_ext
6970   {0, (lt_ptr_t) 0}
6971 };
6972
6973 #ifdef __cplusplus
6974 }
6975 #endif
6976 EOF
6977           # Now try linking the two files.
6978           mv conftest.$ac_objext conftstm.$ac_objext
6979           lt_save_LIBS="$LIBS"
6980           lt_save_CFLAGS="$CFLAGS"
6981           LIBS="conftstm.$ac_objext"
6982           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6983           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6984   (eval $ac_link) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6988             pipe_works=yes
6989           fi
6990           LIBS="$lt_save_LIBS"
6991           CFLAGS="$lt_save_CFLAGS"
6992         else
6993           echo "cannot find nm_test_func in $nlist" >&5
6994         fi
6995       else
6996         echo "cannot find nm_test_var in $nlist" >&5
6997       fi
6998     else
6999       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7000     fi
7001   else
7002     echo "$progname: failed program was:" >&5
7003     cat conftest.$ac_ext >&5
7004   fi
7005   rm -f conftest* conftst*
7006
7007   # Do not use the global_symbol_pipe unless it works.
7008   if test "$pipe_works" = yes; then
7009     break
7010   else
7011     lt_cv_sys_global_symbol_pipe=
7012   fi
7013 done
7014
7015 fi
7016
7017 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7018   lt_cv_sys_global_symbol_to_cdecl=
7019 fi
7020 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7021   echo "$as_me:$LINENO: result: failed" >&5
7022 echo "${ECHO_T}failed" >&6
7023 else
7024   echo "$as_me:$LINENO: result: ok" >&5
7025 echo "${ECHO_T}ok" >&6
7026 fi
7027
7028 echo "$as_me:$LINENO: checking for objdir" >&5
7029 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7030 if test "${lt_cv_objdir+set}" = set; then
7031   echo $ECHO_N "(cached) $ECHO_C" >&6
7032 else
7033   rm -f .libs 2>/dev/null
7034 mkdir .libs 2>/dev/null
7035 if test -d .libs; then
7036   lt_cv_objdir=.libs
7037 else
7038   # MS-DOS does not allow filenames that begin with a dot.
7039   lt_cv_objdir=_libs
7040 fi
7041 rmdir .libs 2>/dev/null
7042 fi
7043 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7044 echo "${ECHO_T}$lt_cv_objdir" >&6
7045 objdir=$lt_cv_objdir
7046
7047
7048
7049
7050
7051 case $host_os in
7052 aix3*)
7053   # AIX sometimes has problems with the GCC collect2 program.  For some
7054   # reason, if we set the COLLECT_NAMES environment variable, the problems
7055   # vanish in a puff of smoke.
7056   if test "X${COLLECT_NAMES+set}" != Xset; then
7057     COLLECT_NAMES=
7058     export COLLECT_NAMES
7059   fi
7060   ;;
7061 esac
7062
7063 # Sed substitution that helps us do robust quoting.  It backslashifies
7064 # metacharacters that are still active within double-quoted strings.
7065 Xsed='sed -e 1s/^X//'
7066 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7067
7068 # Same as above, but do not quote variable references.
7069 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7070
7071 # Sed substitution to delay expansion of an escaped shell variable in a
7072 # double_quote_subst'ed string.
7073 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7074
7075 # Sed substitution to avoid accidental globbing in evaled expressions
7076 no_glob_subst='s/\*/\\\*/g'
7077
7078 # Constants:
7079 rm="rm -f"
7080
7081 # Global variables:
7082 default_ofile=libtool
7083 can_build_shared=yes
7084
7085 # All known linkers require a `.a' archive for static linking (except MSVC,
7086 # which needs '.lib').
7087 libext=a
7088 ltmain="$ac_aux_dir/ltmain.sh"
7089 ofile="$default_ofile"
7090 with_gnu_ld="$lt_cv_prog_gnu_ld"
7091
7092 if test -n "$ac_tool_prefix"; then
7093   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}ar; ac_word=$2
7095 echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7097 if test "${ac_cv_prog_AR+set}" = set; then
7098   echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100   if test -n "$AR"; then
7101   ac_cv_prog_AR="$AR" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110     ac_cv_prog_AR="${ac_tool_prefix}ar"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116
7117 fi
7118 fi
7119 AR=$ac_cv_prog_AR
7120 if test -n "$AR"; then
7121   echo "$as_me:$LINENO: result: $AR" >&5
7122 echo "${ECHO_T}$AR" >&6
7123 else
7124   echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6
7126 fi
7127
7128 fi
7129 if test -z "$ac_cv_prog_AR"; then
7130   ac_ct_AR=$AR
7131   # Extract the first word of "ar", so it can be a program name with args.
7132 set dummy ar; ac_word=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   if test -n "$ac_ct_AR"; then
7139   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144   IFS=$as_save_IFS
7145   test -z "$as_dir" && as_dir=.
7146   for ac_exec_ext in '' $ac_executable_extensions; do
7147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_ac_ct_AR="ar"
7149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151   fi
7152 done
7153 done
7154
7155   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7156 fi
7157 fi
7158 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7159 if test -n "$ac_ct_AR"; then
7160   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7161 echo "${ECHO_T}$ac_ct_AR" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167   AR=$ac_ct_AR
7168 else
7169   AR="$ac_cv_prog_AR"
7170 fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_RANLIB+set}" = set; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   if test -n "$RANLIB"; then
7181   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196
7197 fi
7198 fi
7199 RANLIB=$ac_cv_prog_RANLIB
7200 if test -n "$RANLIB"; then
7201   echo "$as_me:$LINENO: result: $RANLIB" >&5
7202 echo "${ECHO_T}$RANLIB" >&6
7203 else
7204   echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7206 fi
7207
7208 fi
7209 if test -z "$ac_cv_prog_RANLIB"; then
7210   ac_ct_RANLIB=$RANLIB
7211   # Extract the first word of "ranlib", so it can be a program name with args.
7212 set dummy ranlib; ac_word=$2
7213 echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   if test -n "$ac_ct_RANLIB"; then
7219   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226   for ac_exec_ext in '' $ac_executable_extensions; do
7227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228     ac_cv_prog_ac_ct_RANLIB="ranlib"
7229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233 done
7234
7235   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7236 fi
7237 fi
7238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7239 if test -n "$ac_ct_RANLIB"; then
7240   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7241 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7242 else
7243   echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6
7245 fi
7246
7247   RANLIB=$ac_ct_RANLIB
7248 else
7249   RANLIB="$ac_cv_prog_RANLIB"
7250 fi
7251
7252 if test -n "$ac_tool_prefix"; then
7253   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}strip; ac_word=$2
7255 echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7257 if test "${ac_cv_prog_STRIP+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   if test -n "$STRIP"; then
7261   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266   IFS=$as_save_IFS
7267   test -z "$as_dir" && as_dir=.
7268   for ac_exec_ext in '' $ac_executable_extensions; do
7269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272     break 2
7273   fi
7274 done
7275 done
7276
7277 fi
7278 fi
7279 STRIP=$ac_cv_prog_STRIP
7280 if test -n "$STRIP"; then
7281   echo "$as_me:$LINENO: result: $STRIP" >&5
7282 echo "${ECHO_T}$STRIP" >&6
7283 else
7284   echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7286 fi
7287
7288 fi
7289 if test -z "$ac_cv_prog_STRIP"; then
7290   ac_ct_STRIP=$STRIP
7291   # Extract the first word of "strip", so it can be a program name with args.
7292 set dummy strip; ac_word=$2
7293 echo "$as_me:$LINENO: checking for $ac_word" >&5
7294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7295 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   if test -n "$ac_ct_STRIP"; then
7299   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306   for ac_exec_ext in '' $ac_executable_extensions; do
7307   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308     ac_cv_prog_ac_ct_STRIP="strip"
7309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313 done
7314
7315   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7316 fi
7317 fi
7318 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7319 if test -n "$ac_ct_STRIP"; then
7320   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7321 echo "${ECHO_T}$ac_ct_STRIP" >&6
7322 else
7323   echo "$as_me:$LINENO: result: no" >&5
7324 echo "${ECHO_T}no" >&6
7325 fi
7326
7327   STRIP=$ac_ct_STRIP
7328 else
7329   STRIP="$ac_cv_prog_STRIP"
7330 fi
7331
7332
7333 old_CC="$CC"
7334 old_CFLAGS="$CFLAGS"
7335
7336 # Set sane defaults for various variables
7337 test -z "$AR" && AR=ar
7338 test -z "$AR_FLAGS" && AR_FLAGS=cru
7339 test -z "$AS" && AS=as
7340 test -z "$CC" && CC=cc
7341 test -z "$LTCC" && LTCC=$CC
7342 test -z "$DLLTOOL" && DLLTOOL=dlltool
7343 test -z "$LD" && LD=ld
7344 test -z "$LN_S" && LN_S="ln -s"
7345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7346 test -z "$NM" && NM=nm
7347 test -z "$SED" && SED=sed
7348 test -z "$OBJDUMP" && OBJDUMP=objdump
7349 test -z "$RANLIB" && RANLIB=:
7350 test -z "$STRIP" && STRIP=:
7351 test -z "$ac_objext" && ac_objext=o
7352
7353 # Determine commands to create old-style static archives.
7354 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7355 old_postinstall_cmds='chmod 644 $oldlib'
7356 old_postuninstall_cmds=
7357
7358 if test -n "$RANLIB"; then
7359   case $host_os in
7360   openbsd*)
7361     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7362     ;;
7363   *)
7364     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7365     ;;
7366   esac
7367   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7368 fi
7369
7370 for cc_temp in $compiler""; do
7371   case $cc_temp in
7372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7374     \-*) ;;
7375     *) break;;
7376   esac
7377 done
7378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7379
7380
7381 # Only perform the check for file, if the check method requires it
7382 case $deplibs_check_method in
7383 file_magic*)
7384   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7385     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7386 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7387 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7388   echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390   case $MAGIC_CMD in
7391 [\\/*] |  ?:[\\/]*)
7392   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7393   ;;
7394 *)
7395   lt_save_MAGIC_CMD="$MAGIC_CMD"
7396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7397   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7398   for ac_dir in $ac_dummy; do
7399     IFS="$lt_save_ifs"
7400     test -z "$ac_dir" && ac_dir=.
7401     if test -f $ac_dir/${ac_tool_prefix}file; then
7402       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7403       if test -n "$file_magic_test_file"; then
7404         case $deplibs_check_method in
7405         "file_magic "*)
7406           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7407           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7409             $EGREP "$file_magic_regex" > /dev/null; then
7410             :
7411           else
7412             cat <<EOF 1>&2
7413
7414 *** Warning: the command libtool uses to detect shared libraries,
7415 *** $file_magic_cmd, produces output that libtool cannot recognize.
7416 *** The result is that libtool may fail to recognize shared libraries
7417 *** as such.  This will affect the creation of libtool libraries that
7418 *** depend on shared libraries, but programs linked with such libtool
7419 *** libraries will work regardless of this problem.  Nevertheless, you
7420 *** may want to report the problem to your system manager and/or to
7421 *** bug-libtool@gnu.org
7422
7423 EOF
7424           fi ;;
7425         esac
7426       fi
7427       break
7428     fi
7429   done
7430   IFS="$lt_save_ifs"
7431   MAGIC_CMD="$lt_save_MAGIC_CMD"
7432   ;;
7433 esac
7434 fi
7435
7436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7437 if test -n "$MAGIC_CMD"; then
7438   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7439 echo "${ECHO_T}$MAGIC_CMD" >&6
7440 else
7441   echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443 fi
7444
7445 if test -z "$lt_cv_path_MAGIC_CMD"; then
7446   if test -n "$ac_tool_prefix"; then
7447     echo "$as_me:$LINENO: checking for file" >&5
7448 echo $ECHO_N "checking for file... $ECHO_C" >&6
7449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   case $MAGIC_CMD in
7453 [\\/*] |  ?:[\\/]*)
7454   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7455   ;;
7456 *)
7457   lt_save_MAGIC_CMD="$MAGIC_CMD"
7458   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7459   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7460   for ac_dir in $ac_dummy; do
7461     IFS="$lt_save_ifs"
7462     test -z "$ac_dir" && ac_dir=.
7463     if test -f $ac_dir/file; then
7464       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7465       if test -n "$file_magic_test_file"; then
7466         case $deplibs_check_method in
7467         "file_magic "*)
7468           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7469           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7470           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7471             $EGREP "$file_magic_regex" > /dev/null; then
7472             :
7473           else
7474             cat <<EOF 1>&2
7475
7476 *** Warning: the command libtool uses to detect shared libraries,
7477 *** $file_magic_cmd, produces output that libtool cannot recognize.
7478 *** The result is that libtool may fail to recognize shared libraries
7479 *** as such.  This will affect the creation of libtool libraries that
7480 *** depend on shared libraries, but programs linked with such libtool
7481 *** libraries will work regardless of this problem.  Nevertheless, you
7482 *** may want to report the problem to your system manager and/or to
7483 *** bug-libtool@gnu.org
7484
7485 EOF
7486           fi ;;
7487         esac
7488       fi
7489       break
7490     fi
7491   done
7492   IFS="$lt_save_ifs"
7493   MAGIC_CMD="$lt_save_MAGIC_CMD"
7494   ;;
7495 esac
7496 fi
7497
7498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7499 if test -n "$MAGIC_CMD"; then
7500   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7501 echo "${ECHO_T}$MAGIC_CMD" >&6
7502 else
7503   echo "$as_me:$LINENO: result: no" >&5
7504 echo "${ECHO_T}no" >&6
7505 fi
7506
7507   else
7508     MAGIC_CMD=:
7509   fi
7510 fi
7511
7512   fi
7513   ;;
7514 esac
7515
7516 enable_dlopen=yes
7517 enable_win32_dll=yes
7518
7519 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7520 if test "${enable_libtool_lock+set}" = set; then
7521   enableval="$enable_libtool_lock"
7522
7523 fi;
7524 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7525
7526
7527 # Check whether --with-pic or --without-pic was given.
7528 if test "${with_pic+set}" = set; then
7529   withval="$with_pic"
7530   pic_mode="$withval"
7531 else
7532   pic_mode=default
7533 fi;
7534 test -z "$pic_mode" && pic_mode=default
7535
7536 # Use C for the default configuration in the libtool script
7537 tagname=
7538 lt_save_CC="$CC"
7539 ac_ext=c
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544
7545
7546 # Source file extension for C test sources.
7547 ac_ext=c
7548
7549 # Object file extension for compiled C test sources.
7550 objext=o
7551 objext=$objext
7552
7553 # Code to be used in simple compile tests
7554 lt_simple_compile_test_code="int some_variable = 0;\n"
7555
7556 # Code to be used in simple link tests
7557 lt_simple_link_test_code='int main(){return(0);}\n'
7558
7559
7560 # If no C compiler was specified, use CC.
7561 LTCC=${LTCC-"$CC"}
7562
7563 # Allow CC to be a program name with arguments.
7564 compiler=$CC
7565
7566
7567 # save warnings/boilerplate of simple test code
7568 ac_outfile=conftest.$ac_objext
7569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7571 _lt_compiler_boilerplate=`cat conftest.err`
7572 $rm conftest*
7573
7574 ac_outfile=conftest.$ac_objext
7575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7577 _lt_linker_boilerplate=`cat conftest.err`
7578 $rm conftest*
7579
7580
7581 #
7582 # Check for any special shared library compilation flags.
7583 #
7584 lt_prog_cc_shlib=
7585 if test "$GCC" = no; then
7586   case $host_os in
7587   sco3.2v5*)
7588     lt_prog_cc_shlib='-belf'
7589     ;;
7590   esac
7591 fi
7592 if test -n "$lt_prog_cc_shlib"; then
7593   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7594 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7595   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7596   else
7597     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7598 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7599     lt_cv_prog_cc_can_build_shared=no
7600   fi
7601 fi
7602
7603
7604 #
7605 # Check to make sure the static flag actually works.
7606 #
7607 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7608 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7609 if test "${lt_prog_compiler_static_works+set}" = set; then
7610   echo $ECHO_N "(cached) $ECHO_C" >&6
7611 else
7612   lt_prog_compiler_static_works=no
7613    save_LDFLAGS="$LDFLAGS"
7614    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7615    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7616    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7617      # The linker can only warn and ignore the option if not recognized
7618      # So say no if there are warnings
7619      if test -s conftest.err; then
7620        # Append any errors to the config.log.
7621        cat conftest.err 1>&5
7622        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7623        $SED '/^$/d' conftest.err >conftest.er2
7624        if diff conftest.exp conftest.er2 >/dev/null; then
7625          lt_prog_compiler_static_works=yes
7626        fi
7627      else
7628        lt_prog_compiler_static_works=yes
7629      fi
7630    fi
7631    $rm conftest*
7632    LDFLAGS="$save_LDFLAGS"
7633
7634 fi
7635 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7636 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7637
7638 if test x"$lt_prog_compiler_static_works" = xyes; then
7639     :
7640 else
7641     lt_prog_compiler_static=
7642 fi
7643
7644
7645
7646
7647 lt_prog_compiler_no_builtin_flag=
7648
7649 if test "$GCC" = yes; then
7650   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7651
7652
7653 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7654 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7655 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   lt_cv_prog_compiler_rtti_exceptions=no
7659   ac_outfile=conftest.$ac_objext
7660    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7661    lt_compiler_flag="-fno-rtti -fno-exceptions"
7662    # Insert the option either (1) after the last *FLAGS variable, or
7663    # (2) before a word containing "conftest.", or (3) at the end.
7664    # Note that $ac_compile itself does not contain backslashes and begins
7665    # with a dollar sign (not a hyphen), so the echo should work correctly.
7666    # The option is referenced via a variable to avoid confusing sed.
7667    lt_compile=`echo "$ac_compile" | $SED \
7668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7670    -e 's:$: $lt_compiler_flag:'`
7671    (eval echo "\"\$as_me:7671: $lt_compile\"" >&5)
7672    (eval "$lt_compile" 2>conftest.err)
7673    ac_status=$?
7674    cat conftest.err >&5
7675    echo "$as_me:7675: \$? = $ac_status" >&5
7676    if (exit $ac_status) && test -s "$ac_outfile"; then
7677      # The compiler can only warn and ignore the option if not recognized
7678      # So say no if there are warnings other than the usual output.
7679      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7680      $SED '/^$/d' conftest.err >conftest.er2
7681      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7682        lt_cv_prog_compiler_rtti_exceptions=yes
7683      fi
7684    fi
7685    $rm conftest*
7686
7687 fi
7688 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7689 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7690
7691 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7692     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7693 else
7694     :
7695 fi
7696
7697 fi
7698
7699 lt_prog_compiler_wl=
7700 lt_prog_compiler_pic=
7701 lt_prog_compiler_static=
7702
7703 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7704 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7705
7706   if test "$GCC" = yes; then
7707     lt_prog_compiler_wl='-Wl,'
7708     lt_prog_compiler_static='-static'
7709
7710     case $host_os in
7711       aix*)
7712       # All AIX code is PIC.
7713       if test "$host_cpu" = ia64; then
7714         # AIX 5 now supports IA64 processor
7715         lt_prog_compiler_static='-Bstatic'
7716       fi
7717       ;;
7718
7719     amigaos*)
7720       # FIXME: we need at least 68020 code to build shared libraries, but
7721       # adding the `-m68020' flag to GCC prevents building anything better,
7722       # like `-m68040'.
7723       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7724       ;;
7725
7726     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7727       # PIC is the default for these OSes.
7728       ;;
7729
7730     mingw* | pw32* | os2*)
7731       # This hack is so that the source file can tell whether it is being
7732       # built for inclusion in a dll (and should export symbols for example).
7733       lt_prog_compiler_pic='-DDLL_EXPORT'
7734       ;;
7735
7736     darwin* | rhapsody*)
7737       # PIC is the default on this platform
7738       # Common symbols not allowed in MH_DYLIB files
7739       lt_prog_compiler_pic='-fno-common'
7740       ;;
7741
7742     msdosdjgpp*)
7743       # Just because we use GCC doesn't mean we suddenly get shared libraries
7744       # on systems that don't support them.
7745       lt_prog_compiler_can_build_shared=no
7746       enable_shared=no
7747       ;;
7748
7749     sysv4*MP*)
7750       if test -d /usr/nec; then
7751         lt_prog_compiler_pic=-Kconform_pic
7752       fi
7753       ;;
7754
7755     hpux*)
7756       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7757       # not for PA HP-UX.
7758       case $host_cpu in
7759       hppa*64*|ia64*)
7760         # +Z the default
7761         ;;
7762       *)
7763         lt_prog_compiler_pic='-fPIC'
7764         ;;
7765       esac
7766       ;;
7767
7768     *)
7769       lt_prog_compiler_pic='-fPIC'
7770       ;;
7771     esac
7772   else
7773     # PORTME Check for flag to pass linker flags through the system compiler.
7774     case $host_os in
7775     aix*)
7776       lt_prog_compiler_wl='-Wl,'
7777       if test "$host_cpu" = ia64; then
7778         # AIX 5 now supports IA64 processor
7779         lt_prog_compiler_static='-Bstatic'
7780       else
7781         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7782       fi
7783       ;;
7784       darwin*)
7785         # PIC is the default on this platform
7786         # Common symbols not allowed in MH_DYLIB files
7787        case $cc_basename in
7788          xlc*)
7789          lt_prog_compiler_pic='-qnocommon'
7790          lt_prog_compiler_wl='-Wl,'
7791          ;;
7792        esac
7793        ;;
7794
7795     mingw* | pw32* | os2*)
7796       # This hack is so that the source file can tell whether it is being
7797       # built for inclusion in a dll (and should export symbols for example).
7798       lt_prog_compiler_pic='-DDLL_EXPORT'
7799       ;;
7800
7801     hpux9* | hpux10* | hpux11*)
7802       lt_prog_compiler_wl='-Wl,'
7803       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7804       # not for PA HP-UX.
7805       case $host_cpu in
7806       hppa*64*|ia64*)
7807         # +Z the default
7808         ;;
7809       *)
7810         lt_prog_compiler_pic='+Z'
7811         ;;
7812       esac
7813       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7814       lt_prog_compiler_static='${wl}-a ${wl}archive'
7815       ;;
7816
7817     irix5* | irix6* | nonstopux*)
7818       lt_prog_compiler_wl='-Wl,'
7819       # PIC (with -KPIC) is the default.
7820       lt_prog_compiler_static='-non_shared'
7821       ;;
7822
7823     newsos6)
7824       lt_prog_compiler_pic='-KPIC'
7825       lt_prog_compiler_static='-Bstatic'
7826       ;;
7827
7828     linux*)
7829       case $cc_basename in
7830       icc* | ecc*)
7831         lt_prog_compiler_wl='-Wl,'
7832         lt_prog_compiler_pic='-KPIC'
7833         lt_prog_compiler_static='-static'
7834         ;;
7835       pgcc* | pgf77* | pgf90* | pgf95*)
7836         # Portland Group compilers (*not* the Pentium gcc compiler,
7837         # which looks to be a dead project)
7838         lt_prog_compiler_wl='-Wl,'
7839         lt_prog_compiler_pic='-fpic'
7840         lt_prog_compiler_static='-Bstatic'
7841         ;;
7842       ccc*)
7843         lt_prog_compiler_wl='-Wl,'
7844         # All Alpha code is PIC.
7845         lt_prog_compiler_static='-non_shared'
7846         ;;
7847       esac
7848       ;;
7849
7850     osf3* | osf4* | osf5*)
7851       lt_prog_compiler_wl='-Wl,'
7852       # All OSF/1 code is PIC.
7853       lt_prog_compiler_static='-non_shared'
7854       ;;
7855
7856     sco3.2v5*)
7857       lt_prog_compiler_pic='-Kpic'
7858       lt_prog_compiler_static='-dn'
7859       ;;
7860
7861     solaris*)
7862       lt_prog_compiler_pic='-KPIC'
7863       lt_prog_compiler_static='-Bstatic'
7864       case $cc_basename in
7865       f77* | f90* | f95*)
7866         lt_prog_compiler_wl='-Qoption ld ';;
7867       *)
7868         lt_prog_compiler_wl='-Wl,';;
7869       esac
7870       ;;
7871
7872     sunos4*)
7873       lt_prog_compiler_wl='-Qoption ld '
7874       lt_prog_compiler_pic='-PIC'
7875       lt_prog_compiler_static='-Bstatic'
7876       ;;
7877
7878     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7879       lt_prog_compiler_wl='-Wl,'
7880       lt_prog_compiler_pic='-KPIC'
7881       lt_prog_compiler_static='-Bstatic'
7882       ;;
7883
7884     sysv4*MP*)
7885       if test -d /usr/nec ;then
7886         lt_prog_compiler_pic='-Kconform_pic'
7887         lt_prog_compiler_static='-Bstatic'
7888       fi
7889       ;;
7890
7891     unicos*)
7892       lt_prog_compiler_wl='-Wl,'
7893       lt_prog_compiler_can_build_shared=no
7894       ;;
7895
7896     uts4*)
7897       lt_prog_compiler_pic='-pic'
7898       lt_prog_compiler_static='-Bstatic'
7899       ;;
7900
7901     *)
7902       lt_prog_compiler_can_build_shared=no
7903       ;;
7904     esac
7905   fi
7906
7907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7908 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7909
7910 #
7911 # Check to make sure the PIC flag actually works.
7912 #
7913 if test -n "$lt_prog_compiler_pic"; then
7914
7915 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7916 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7917 if test "${lt_prog_compiler_pic_works+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   lt_prog_compiler_pic_works=no
7921   ac_outfile=conftest.$ac_objext
7922    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7923    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7924    # Insert the option either (1) after the last *FLAGS variable, or
7925    # (2) before a word containing "conftest.", or (3) at the end.
7926    # Note that $ac_compile itself does not contain backslashes and begins
7927    # with a dollar sign (not a hyphen), so the echo should work correctly.
7928    # The option is referenced via a variable to avoid confusing sed.
7929    lt_compile=`echo "$ac_compile" | $SED \
7930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7932    -e 's:$: $lt_compiler_flag:'`
7933    (eval echo "\"\$as_me:7933: $lt_compile\"" >&5)
7934    (eval "$lt_compile" 2>conftest.err)
7935    ac_status=$?
7936    cat conftest.err >&5
7937    echo "$as_me:7937: \$? = $ac_status" >&5
7938    if (exit $ac_status) && test -s "$ac_outfile"; then
7939      # The compiler can only warn and ignore the option if not recognized
7940      # So say no if there are warnings other than the usual output.
7941      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7942      $SED '/^$/d' conftest.err >conftest.er2
7943      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7944        lt_prog_compiler_pic_works=yes
7945      fi
7946    fi
7947    $rm conftest*
7948
7949 fi
7950 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7951 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7952
7953 if test x"$lt_prog_compiler_pic_works" = xyes; then
7954     case $lt_prog_compiler_pic in
7955      "" | " "*) ;;
7956      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7957      esac
7958 else
7959     lt_prog_compiler_pic=
7960      lt_prog_compiler_can_build_shared=no
7961 fi
7962
7963 fi
7964 case $host_os in
7965   # For platforms which do not support PIC, -DPIC is meaningless:
7966   *djgpp*)
7967     lt_prog_compiler_pic=
7968     ;;
7969   *)
7970     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7971     ;;
7972 esac
7973
7974 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7975 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7976 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   lt_cv_prog_compiler_c_o=no
7980    $rm -r conftest 2>/dev/null
7981    mkdir conftest
7982    cd conftest
7983    mkdir out
7984    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7985
7986    lt_compiler_flag="-o out/conftest2.$ac_objext"
7987    # Insert the option either (1) after the last *FLAGS variable, or
7988    # (2) before a word containing "conftest.", or (3) at the end.
7989    # Note that $ac_compile itself does not contain backslashes and begins
7990    # with a dollar sign (not a hyphen), so the echo should work correctly.
7991    lt_compile=`echo "$ac_compile" | $SED \
7992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7994    -e 's:$: $lt_compiler_flag:'`
7995    (eval echo "\"\$as_me:7995: $lt_compile\"" >&5)
7996    (eval "$lt_compile" 2>out/conftest.err)
7997    ac_status=$?
7998    cat out/conftest.err >&5
7999    echo "$as_me:7999: \$? = $ac_status" >&5
8000    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8001    then
8002      # The compiler can only warn and ignore the option if not recognized
8003      # So say no if there are warnings
8004      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8005      $SED '/^$/d' out/conftest.err >out/conftest.er2
8006      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8007        lt_cv_prog_compiler_c_o=yes
8008      fi
8009    fi
8010    chmod u+w . 2>&5
8011    $rm conftest*
8012    # SGI C++ compiler will create directory out/ii_files/ for
8013    # template instantiation
8014    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8015    $rm out/* && rmdir out
8016    cd ..
8017    rmdir conftest
8018    $rm conftest*
8019
8020 fi
8021 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8022 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8023
8024
8025 hard_links="nottested"
8026 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8027   # do not overwrite the value of need_locks provided by the user
8028   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8029 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8030   hard_links=yes
8031   $rm conftest*
8032   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8033   touch conftest.a
8034   ln conftest.a conftest.b 2>&5 || hard_links=no
8035   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8036   echo "$as_me:$LINENO: result: $hard_links" >&5
8037 echo "${ECHO_T}$hard_links" >&6
8038   if test "$hard_links" = no; then
8039     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8040 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8041     need_locks=warn
8042   fi
8043 else
8044   need_locks=no
8045 fi
8046
8047 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8048 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8049
8050   runpath_var=
8051   allow_undefined_flag=
8052   enable_shared_with_static_runtimes=no
8053   archive_cmds=
8054   archive_expsym_cmds=
8055   old_archive_From_new_cmds=
8056   old_archive_from_expsyms_cmds=
8057   export_dynamic_flag_spec=
8058   whole_archive_flag_spec=
8059   thread_safe_flag_spec=
8060   hardcode_libdir_flag_spec=
8061   hardcode_libdir_flag_spec_ld=
8062   hardcode_libdir_separator=
8063   hardcode_direct=no
8064   hardcode_minus_L=no
8065   hardcode_shlibpath_var=unsupported
8066   link_all_deplibs=unknown
8067   hardcode_automatic=no
8068   module_cmds=
8069   module_expsym_cmds=
8070   always_export_symbols=no
8071   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8072   # include_expsyms should be a list of space-separated symbols to be *always*
8073   # included in the symbol list
8074   include_expsyms=
8075   # exclude_expsyms can be an extended regexp of symbols to exclude
8076   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8077   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8078   # as well as any symbol that contains `d'.
8079   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8080   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8081   # platforms (ab)use it in PIC code, but their linkers get confused if
8082   # the symbol is explicitly referenced.  Since portable code cannot
8083   # rely on this symbol name, it's probably fine to never include it in
8084   # preloaded symbol tables.
8085   extract_expsyms_cmds=
8086   # Just being paranoid about ensuring that cc_basename is set.
8087   for cc_temp in $compiler""; do
8088   case $cc_temp in
8089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8091     \-*) ;;
8092     *) break;;
8093   esac
8094 done
8095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8096
8097   case $host_os in
8098   cygwin* | mingw* | pw32*)
8099     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8100     # When not using gcc, we currently assume that we are using
8101     # Microsoft Visual C++.
8102     if test "$GCC" != yes; then
8103       with_gnu_ld=no
8104     fi
8105     ;;
8106   openbsd*)
8107     with_gnu_ld=no
8108     ;;
8109   esac
8110
8111   ld_shlibs=yes
8112   if test "$with_gnu_ld" = yes; then
8113     # If archive_cmds runs LD, not CC, wlarc should be empty
8114     wlarc='${wl}'
8115
8116     # Set some defaults for GNU ld with shared library support. These
8117     # are reset later if shared libraries are not supported. Putting them
8118     # here allows them to be overridden if necessary.
8119     runpath_var=LD_RUN_PATH
8120     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8121     export_dynamic_flag_spec='${wl}--export-dynamic'
8122     # ancient GNU ld didn't support --whole-archive et. al.
8123     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8124         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8125       else
8126         whole_archive_flag_spec=
8127     fi
8128     supports_anon_versioning=no
8129     case `$LD -v 2>/dev/null` in
8130       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8131       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8132       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8133       *\ 2.11.*) ;; # other 2.11 versions
8134       *) supports_anon_versioning=yes ;;
8135     esac
8136
8137     # See if GNU ld supports shared libraries.
8138     case $host_os in
8139     aix3* | aix4* | aix5*)
8140       # On AIX/PPC, the GNU linker is very broken
8141       if test "$host_cpu" != ia64; then
8142         ld_shlibs=no
8143         cat <<EOF 1>&2
8144
8145 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8146 *** to be unable to reliably create shared libraries on AIX.
8147 *** Therefore, libtool is disabling shared libraries support.  If you
8148 *** really care for shared libraries, you may want to modify your PATH
8149 *** so that a non-GNU linker is found, and then restart.
8150
8151 EOF
8152       fi
8153       ;;
8154
8155     amigaos*)
8156       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)'
8157       hardcode_libdir_flag_spec='-L$libdir'
8158       hardcode_minus_L=yes
8159
8160       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8161       # that the semantics of dynamic libraries on AmigaOS, at least up
8162       # to version 4, is to share data among multiple programs linked
8163       # with the same dynamic library.  Since this doesn't match the
8164       # behavior of shared libraries on other platforms, we can't use
8165       # them.
8166       ld_shlibs=no
8167       ;;
8168
8169     beos*)
8170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8171         allow_undefined_flag=unsupported
8172         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8173         # support --undefined.  This deserves some investigation.  FIXME
8174         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175       else
8176         ld_shlibs=no
8177       fi
8178       ;;
8179
8180     cygwin* | mingw* | pw32*)
8181       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8182       # as there is no search path for DLLs.
8183       hardcode_libdir_flag_spec='-L$libdir'
8184       allow_undefined_flag=unsupported
8185       always_export_symbols=no
8186       enable_shared_with_static_runtimes=yes
8187       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8188
8189       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8190         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8191         # If the export-symbols file already is a .def file (1st line
8192         # is EXPORTS), use it as is; otherwise, prepend...
8193         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8194           cp $export_symbols $output_objdir/$soname.def;
8195         else
8196           echo EXPORTS > $output_objdir/$soname.def;
8197           cat $export_symbols >> $output_objdir/$soname.def;
8198         fi~
8199         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8200       else
8201         ld_shlibs=no
8202       fi
8203       ;;
8204
8205     linux*)
8206       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8207         tmp_addflag=
8208         case $cc_basename,$host_cpu in
8209         pgcc*)                          # Portland Group C compiler
8210           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'
8211           tmp_addflag=' $pic_flag'
8212           ;;
8213         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8214           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'
8215           tmp_addflag=' $pic_flag -Mnomain' ;;
8216         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8217           tmp_addflag=' -i_dynamic' ;;
8218         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8219           tmp_addflag=' -i_dynamic -nofor_main' ;;
8220         ifc* | ifort*)                  # Intel Fortran compiler
8221           tmp_addflag=' -nofor_main' ;;
8222         esac
8223         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8224
8225         if test $supports_anon_versioning = yes; then
8226           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8227   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8228   $echo "local: *; };" >> $output_objdir/$libname.ver~
8229           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8230         fi
8231       else
8232         ld_shlibs=no
8233       fi
8234       ;;
8235
8236     netbsd*)
8237       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8238         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8239         wlarc=
8240       else
8241         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243       fi
8244       ;;
8245
8246     solaris* | sysv5*)
8247       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8248         ld_shlibs=no
8249         cat <<EOF 1>&2
8250
8251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8252 *** create shared libraries on Solaris systems.  Therefore, libtool
8253 *** is disabling shared libraries support.  We urge you to upgrade GNU
8254 *** binutils to release 2.9.1 or newer.  Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8257
8258 EOF
8259       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8262       else
8263         ld_shlibs=no
8264       fi
8265       ;;
8266
8267     sunos4*)
8268       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8269       wlarc=
8270       hardcode_direct=yes
8271       hardcode_shlibpath_var=no
8272       ;;
8273
8274     *)
8275       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8278       else
8279         ld_shlibs=no
8280       fi
8281       ;;
8282     esac
8283
8284     if test "$ld_shlibs" = no; then
8285       runpath_var=
8286       hardcode_libdir_flag_spec=
8287       export_dynamic_flag_spec=
8288       whole_archive_flag_spec=
8289     fi
8290   else
8291     # PORTME fill in a description of your system's linker (not GNU ld)
8292     case $host_os in
8293     aix3*)
8294       allow_undefined_flag=unsupported
8295       always_export_symbols=yes
8296       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'
8297       # Note: this linker hardcodes the directories in LIBPATH if there
8298       # are no directories specified by -L.
8299       hardcode_minus_L=yes
8300       if test "$GCC" = yes && test -z "$link_static_flag"; then
8301         # Neither direct hardcoding nor static linking is supported with a
8302         # broken collect2.
8303         hardcode_direct=unsupported
8304       fi
8305       ;;
8306
8307     aix4* | aix5*)
8308       if test "$host_cpu" = ia64; then
8309         # On IA64, the linker does run time linking by default, so we don't
8310         # have to do anything special.
8311         aix_use_runtimelinking=no
8312         exp_sym_flag='-Bexport'
8313         no_entry_flag=""
8314       else
8315         # If we're using GNU nm, then we don't want the "-C" option.
8316         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8317         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8318           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'
8319         else
8320           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'
8321         fi
8322         aix_use_runtimelinking=no
8323
8324         # Test if we are trying to use run time linking or normal
8325         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8326         # need to do runtime linking.
8327         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8328           for ld_flag in $LDFLAGS; do
8329           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8330             aix_use_runtimelinking=yes
8331             break
8332           fi
8333           done
8334         esac
8335
8336         exp_sym_flag='-bexport'
8337         no_entry_flag='-bnoentry'
8338       fi
8339
8340       # When large executables or shared objects are built, AIX ld can
8341       # have problems creating the table of contents.  If linking a library
8342       # or program results in "error TOC overflow" add -mminimal-toc to
8343       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8344       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8345
8346       archive_cmds=''
8347       hardcode_direct=yes
8348       hardcode_libdir_separator=':'
8349       link_all_deplibs=yes
8350
8351       if test "$GCC" = yes; then
8352         case $host_os in aix4.[012]|aix4.[012].*)
8353         # We only want to do this on AIX 4.2 and lower, the check
8354         # below for broken collect2 doesn't work under 4.3+
8355           collect2name=`${CC} -print-prog-name=collect2`
8356           if test -f "$collect2name" && \
8357            strings "$collect2name" | grep resolve_lib_name >/dev/null
8358           then
8359           # We have reworked collect2
8360           hardcode_direct=yes
8361           else
8362           # We have old collect2
8363           hardcode_direct=unsupported
8364           # It fails to find uninstalled libraries when the uninstalled
8365           # path is not listed in the libpath.  Setting hardcode_minus_L
8366           # to unsupported forces relinking
8367           hardcode_minus_L=yes
8368           hardcode_libdir_flag_spec='-L$libdir'
8369           hardcode_libdir_separator=
8370           fi
8371         esac
8372         shared_flag='-shared'
8373         if test "$aix_use_runtimelinking" = yes; then
8374           shared_flag="$shared_flag "'${wl}-G'
8375         fi
8376       else
8377         # not using gcc
8378         if test "$host_cpu" = ia64; then
8379         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8380         # chokes on -Wl,-G. The following line is correct:
8381           shared_flag='-G'
8382         else
8383         if test "$aix_use_runtimelinking" = yes; then
8384             shared_flag='${wl}-G'
8385           else
8386             shared_flag='${wl}-bM:SRE'
8387         fi
8388         fi
8389       fi
8390
8391       # It seems that -bexpall does not export symbols beginning with
8392       # underscore (_), so it is better to generate a list of symbols to export.
8393       always_export_symbols=yes
8394       if test "$aix_use_runtimelinking" = yes; then
8395         # Warning - without using the other runtime loading flags (-brtl),
8396         # -berok will link without error, but may produce a broken library.
8397         allow_undefined_flag='-berok'
8398        # Determine the default libpath from the value encoded in an empty executable.
8399        cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405
8406 int
8407 main ()
8408 {
8409
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416   (eval $ac_link) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"
8424                          || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8438 }'`
8439 # Check for a 64-bit object if we didn't find anything.
8440 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; }
8441 }'`; fi
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 fi
8447 rm -f conftest.err conftest.$ac_objext \
8448       conftest$ac_exeext conftest.$ac_ext
8449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8450
8451        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8452         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"
8453        else
8454         if test "$host_cpu" = ia64; then
8455           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8456           allow_undefined_flag="-z nodefs"
8457           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"
8458         else
8459          # Determine the default libpath from the value encoded in an empty executable.
8460          cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466
8467 int
8468 main ()
8469 {
8470
8471   ;
8472   return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext conftest$ac_exeext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8477   (eval $ac_link) 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -z "$ac_c_werror_flag"
8485                          || test ! -s conftest.err'
8486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487   (eval $ac_try) 2>&5
8488   ac_status=$?
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); }; } &&
8491          { ac_try='test -s conftest$ac_exeext'
8492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493   (eval $ac_try) 2>&5
8494   ac_status=$?
8495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496   (exit $ac_status); }; }; then
8497
8498 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8499 }'`
8500 # Check for a 64-bit object if we didn't find anything.
8501 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; }
8502 }'`; fi
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 fi
8508 rm -f conftest.err conftest.$ac_objext \
8509       conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8511
8512          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513           # Warning - without using the other run time loading flags,
8514           # -berok will link without error, but may produce a broken library.
8515           no_undefined_flag=' ${wl}-bernotok'
8516           allow_undefined_flag=' ${wl}-berok'
8517           # -bexpall does not export symbols beginning with underscore (_)
8518           always_export_symbols=yes
8519           # Exported symbols can be pulled into shared objects from archives
8520           whole_archive_flag_spec=' '
8521           archive_cmds_need_lc=yes
8522           # This is similar to how AIX traditionally builds its shared libraries.
8523           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'
8524         fi
8525       fi
8526       ;;
8527
8528     amigaos*)
8529       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)'
8530       hardcode_libdir_flag_spec='-L$libdir'
8531       hardcode_minus_L=yes
8532       # see comment about different semantics on the GNU ld section
8533       ld_shlibs=no
8534       ;;
8535
8536     bsdi[45]*)
8537       export_dynamic_flag_spec=-rdynamic
8538       ;;
8539
8540     cygwin* | mingw* | pw32*)
8541       # When not using gcc, we currently assume that we are using
8542       # Microsoft Visual C++.
8543       # hardcode_libdir_flag_spec is actually meaningless, as there is
8544       # no search path for DLLs.
8545       hardcode_libdir_flag_spec=' '
8546       allow_undefined_flag=unsupported
8547       # Tell ltmain to make .lib files, not .a files.
8548       libext=lib
8549       # Tell ltmain to make .dll files, not .so files.
8550       shrext_cmds=".dll"
8551       # FIXME: Setting linknames here is a bad hack.
8552       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8553       # The linker will automatically build a .lib file if we build a DLL.
8554       old_archive_From_new_cmds='true'
8555       # FIXME: Should let the user specify the lib program.
8556       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8557       fix_srcfile_path='`cygpath -w "$srcfile"`'
8558       enable_shared_with_static_runtimes=yes
8559       ;;
8560
8561     darwin* | rhapsody*)
8562       case $host_os in
8563         rhapsody* | darwin1.[012])
8564          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8565          ;;
8566        *) # Darwin 1.3 on
8567          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8568            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8569          else
8570            case ${MACOSX_DEPLOYMENT_TARGET} in
8571              10.[012])
8572                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8573                ;;
8574              10.*)
8575                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8576                ;;
8577            esac
8578          fi
8579          ;;
8580       esac
8581       archive_cmds_need_lc=no
8582       hardcode_direct=no
8583       hardcode_automatic=yes
8584       hardcode_shlibpath_var=unsupported
8585       whole_archive_flag_spec=''
8586       link_all_deplibs=yes
8587     if test "$GCC" = yes ; then
8588         output_verbose_link_cmd='echo'
8589         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8590       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8591       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8592       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}'
8593       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}'
8594     else
8595       case $cc_basename in
8596         xlc*)
8597          output_verbose_link_cmd='echo'
8598          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8599          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8600           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8601          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}'
8602           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}'
8603           ;;
8604        *)
8605          ld_shlibs=no
8606           ;;
8607       esac
8608     fi
8609       ;;
8610
8611     dgux*)
8612       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8613       hardcode_libdir_flag_spec='-L$libdir'
8614       hardcode_shlibpath_var=no
8615       ;;
8616
8617     freebsd1*)
8618       ld_shlibs=no
8619       ;;
8620
8621     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8622     # support.  Future versions do this automatically, but an explicit c++rt0.o
8623     # does not break anything, and helps significantly (at the cost of a little
8624     # extra space).
8625     freebsd2.2*)
8626       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8627       hardcode_libdir_flag_spec='-R$libdir'
8628       hardcode_direct=yes
8629       hardcode_shlibpath_var=no
8630       ;;
8631
8632     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8633     freebsd2*)
8634       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8635       hardcode_direct=yes
8636       hardcode_minus_L=yes
8637       hardcode_shlibpath_var=no
8638       ;;
8639
8640     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8641     freebsd* | kfreebsd*-gnu | dragonfly*)
8642       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8643       hardcode_libdir_flag_spec='-R$libdir'
8644       hardcode_direct=yes
8645       hardcode_shlibpath_var=no
8646       ;;
8647
8648     hpux9*)
8649       if test "$GCC" = yes; then
8650         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'
8651       else
8652         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'
8653       fi
8654       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8655       hardcode_libdir_separator=:
8656       hardcode_direct=yes
8657
8658       # hardcode_minus_L: Not really in the search PATH,
8659       # but as the default location of the library.
8660       hardcode_minus_L=yes
8661       export_dynamic_flag_spec='${wl}-E'
8662       ;;
8663
8664     hpux10* | hpux11*)
8665       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8666         case $host_cpu in
8667         hppa*64*|ia64*)
8668           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669           ;;
8670         *)
8671           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8672           ;;
8673         esac
8674       else
8675         case $host_cpu in
8676         hppa*64*|ia64*)
8677           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8678           ;;
8679         *)
8680           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8681           ;;
8682         esac
8683       fi
8684       if test "$with_gnu_ld" = no; then
8685         case $host_cpu in
8686         hppa*64*)
8687           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688           hardcode_libdir_flag_spec_ld='+b $libdir'
8689           hardcode_libdir_separator=:
8690           hardcode_direct=no
8691           hardcode_shlibpath_var=no
8692           ;;
8693         ia64*)
8694           hardcode_libdir_flag_spec='-L$libdir'
8695           hardcode_direct=no
8696           hardcode_shlibpath_var=no
8697
8698           # hardcode_minus_L: Not really in the search PATH,
8699           # but as the default location of the library.
8700           hardcode_minus_L=yes
8701           ;;
8702         *)
8703           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8704           hardcode_libdir_separator=:
8705           hardcode_direct=yes
8706           export_dynamic_flag_spec='${wl}-E'
8707
8708           # hardcode_minus_L: Not really in the search PATH,
8709           # but as the default location of the library.
8710           hardcode_minus_L=yes
8711           ;;
8712         esac
8713       fi
8714       ;;
8715
8716     irix5* | irix6* | nonstopux*)
8717       if test "$GCC" = yes; then
8718         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'
8719       else
8720         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'
8721         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8722       fi
8723       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724       hardcode_libdir_separator=:
8725       link_all_deplibs=yes
8726       ;;
8727
8728     netbsd*)
8729       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8730         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8731       else
8732         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8733       fi
8734       hardcode_libdir_flag_spec='-R$libdir'
8735       hardcode_direct=yes
8736       hardcode_shlibpath_var=no
8737       ;;
8738
8739     newsos6)
8740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741       hardcode_direct=yes
8742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743       hardcode_libdir_separator=:
8744       hardcode_shlibpath_var=no
8745       ;;
8746
8747     openbsd*)
8748       hardcode_direct=yes
8749       hardcode_shlibpath_var=no
8750       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8751         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8752         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8753         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754         export_dynamic_flag_spec='${wl}-E'
8755       else
8756        case $host_os in
8757          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8758            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8759            hardcode_libdir_flag_spec='-R$libdir'
8760            ;;
8761          *)
8762            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8763            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8764            ;;
8765        esac
8766       fi
8767       ;;
8768
8769     os2*)
8770       hardcode_libdir_flag_spec='-L$libdir'
8771       hardcode_minus_L=yes
8772       allow_undefined_flag=unsupported
8773       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'
8774       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8775       ;;
8776
8777     osf3*)
8778       if test "$GCC" = yes; then
8779         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8780         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'
8781       else
8782         allow_undefined_flag=' -expect_unresolved \*'
8783         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'
8784       fi
8785       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786       hardcode_libdir_separator=:
8787       ;;
8788
8789     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8790       if test "$GCC" = yes; then
8791         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8792         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'
8793         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794       else
8795         allow_undefined_flag=' -expect_unresolved \*'
8796         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'
8797         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8798         $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'
8799
8800         # Both c and cxx compiler support -rpath directly
8801         hardcode_libdir_flag_spec='-rpath $libdir'
8802       fi
8803       hardcode_libdir_separator=:
8804       ;;
8805
8806     sco3.2v5*)
8807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808       hardcode_shlibpath_var=no
8809       export_dynamic_flag_spec='${wl}-Bexport'
8810       runpath_var=LD_RUN_PATH
8811       hardcode_runpath_var=yes
8812       ;;
8813
8814     solaris*)
8815       no_undefined_flag=' -z text'
8816       if test "$GCC" = yes; then
8817         wlarc='${wl}'
8818         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8819         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8820           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8821       else
8822         wlarc=''
8823         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8824         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8825         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8826       fi
8827       hardcode_libdir_flag_spec='-R$libdir'
8828       hardcode_shlibpath_var=no
8829       case $host_os in
8830       solaris2.[0-5] | solaris2.[0-5].*) ;;
8831       *)
8832         # The compiler driver will combine linker options so we
8833         # cannot just pass the convience library names through
8834         # without $wl, iff we do not link with $LD.
8835         # Luckily, gcc supports the same syntax we need for Sun Studio.
8836         # Supported since Solaris 2.6 (maybe 2.5.1?)
8837         case $wlarc in
8838         '')
8839           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8840         *)
8841           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' ;;
8842         esac ;;
8843       esac
8844       link_all_deplibs=yes
8845       ;;
8846
8847     sunos4*)
8848       if test "x$host_vendor" = xsequent; then
8849         # Use $CC to link under sequent, because it throws in some extra .o
8850         # files that make .init and .fini sections work.
8851         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8852       else
8853         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8854       fi
8855       hardcode_libdir_flag_spec='-L$libdir'
8856       hardcode_direct=yes
8857       hardcode_minus_L=yes
8858       hardcode_shlibpath_var=no
8859       ;;
8860
8861     sysv4)
8862       case $host_vendor in
8863         sni)
8864           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865           hardcode_direct=yes # is this really true???
8866         ;;
8867         siemens)
8868           ## LD is ld it makes a PLAMLIB
8869           ## CC just makes a GrossModule.
8870           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8871           reload_cmds='$CC -r -o $output$reload_objs'
8872           hardcode_direct=no
8873         ;;
8874         motorola)
8875           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8876           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8877         ;;
8878       esac
8879       runpath_var='LD_RUN_PATH'
8880       hardcode_shlibpath_var=no
8881       ;;
8882
8883     sysv4.3*)
8884       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8885       hardcode_shlibpath_var=no
8886       export_dynamic_flag_spec='-Bexport'
8887       ;;
8888
8889     sysv4*MP*)
8890       if test -d /usr/nec; then
8891         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892         hardcode_shlibpath_var=no
8893         runpath_var=LD_RUN_PATH
8894         hardcode_runpath_var=yes
8895         ld_shlibs=yes
8896       fi
8897       ;;
8898
8899     sysv4.2uw2*)
8900       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901       hardcode_direct=yes
8902       hardcode_minus_L=no
8903       hardcode_shlibpath_var=no
8904       hardcode_runpath_var=yes
8905       runpath_var=LD_RUN_PATH
8906       ;;
8907
8908    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8909       no_undefined_flag='${wl}-z ${wl}text'
8910       if test "$GCC" = yes; then
8911         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912       else
8913         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8914       fi
8915       runpath_var='LD_RUN_PATH'
8916       hardcode_shlibpath_var=no
8917       ;;
8918
8919     sysv5*)
8920       no_undefined_flag=' -z text'
8921       # $CC -shared without GNU ld will not create a library from C++
8922       # object files and a static libstdc++, better avoid it by now
8923       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8924       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8925                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8926       hardcode_libdir_flag_spec=
8927       hardcode_shlibpath_var=no
8928       runpath_var='LD_RUN_PATH'
8929       ;;
8930
8931     uts4*)
8932       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933       hardcode_libdir_flag_spec='-L$libdir'
8934       hardcode_shlibpath_var=no
8935       ;;
8936
8937     *)
8938       ld_shlibs=no
8939       ;;
8940     esac
8941   fi
8942
8943 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8944 echo "${ECHO_T}$ld_shlibs" >&6
8945 test "$ld_shlibs" = no && can_build_shared=no
8946
8947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8948 if test "$GCC" = yes; then
8949   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8950 fi
8951
8952 #
8953 # Do we need to explicitly link libc?
8954 #
8955 case "x$archive_cmds_need_lc" in
8956 x|xyes)
8957   # Assume -lc should be added
8958   archive_cmds_need_lc=yes
8959
8960   if test "$enable_shared" = yes && test "$GCC" = yes; then
8961     case $archive_cmds in
8962     *'~'*)
8963       # FIXME: we may have to deal with multi-command sequences.
8964       ;;
8965     '$CC '*)
8966       # Test whether the compiler implicitly links with -lc since on some
8967       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8968       # to ld, don't add -lc before -lgcc.
8969       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8970 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8971       $rm conftest*
8972       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8973
8974       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975   (eval $ac_compile) 2>&5
8976   ac_status=$?
8977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978   (exit $ac_status); } 2>conftest.err; then
8979         soname=conftest
8980         lib=conftest
8981         libobjs=conftest.$ac_objext
8982         deplibs=
8983         wl=$lt_prog_compiler_wl
8984         compiler_flags=-v
8985         linker_flags=-v
8986         verstring=
8987         output_objdir=.
8988         libname=conftest
8989         lt_save_allow_undefined_flag=$allow_undefined_flag
8990         allow_undefined_flag=
8991         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8992   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }
8996         then
8997           archive_cmds_need_lc=no
8998         else
8999           archive_cmds_need_lc=yes
9000         fi
9001         allow_undefined_flag=$lt_save_allow_undefined_flag
9002       else
9003         cat conftest.err 1>&5
9004       fi
9005       $rm conftest*
9006       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9007 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9008       ;;
9009     esac
9010   fi
9011   ;;
9012 esac
9013
9014 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9015 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9016 library_names_spec=
9017 libname_spec='lib$name'
9018 soname_spec=
9019 shrext_cmds=".so"
9020 postinstall_cmds=
9021 postuninstall_cmds=
9022 finish_cmds=
9023 finish_eval=
9024 shlibpath_var=
9025 shlibpath_overrides_runpath=unknown
9026 version_type=none
9027 dynamic_linker="$host_os ld.so"
9028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9029 if test "$GCC" = yes; then
9030   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9031   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9032     # if the path contains ";" then we assume it to be the separator
9033     # otherwise default to the standard path separator (i.e. ":") - it is
9034     # assumed that no part of a normal pathname contains ";" but that should
9035     # okay in the real world where ";" in dirpaths is itself problematic.
9036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9037   else
9038     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9039   fi
9040 else
9041   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9042 fi
9043 need_lib_prefix=unknown
9044 hardcode_into_libs=no
9045
9046 # when you set need_version to no, make sure it does not cause -set_version
9047 # flags to be left without arguments
9048 need_version=unknown
9049
9050 case $host_os in
9051 aix3*)
9052   version_type=linux
9053   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9054   shlibpath_var=LIBPATH
9055
9056   # AIX 3 has no versioning support, so we append a major version to the name.
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   ;;
9059
9060 aix4* | aix5*)
9061   version_type=linux
9062   need_lib_prefix=no
9063   need_version=no
9064   hardcode_into_libs=yes
9065   if test "$host_cpu" = ia64; then
9066     # AIX 5 supports IA64
9067     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9068     shlibpath_var=LD_LIBRARY_PATH
9069   else
9070     # With GCC up to 2.95.x, collect2 would create an import file
9071     # for dependence libraries.  The import file would start with
9072     # the line `#! .'.  This would cause the generated library to
9073     # depend on `.', always an invalid library.  This was fixed in
9074     # development snapshots of GCC prior to 3.0.
9075     case $host_os in
9076       aix4 | aix4.[01] | aix4.[01].*)
9077       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9078            echo ' yes '
9079            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9080         :
9081       else
9082         can_build_shared=no
9083       fi
9084       ;;
9085     esac
9086     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9087     # soname into executable. Probably we can add versioning support to
9088     # collect2, so additional links can be useful in future.
9089     if test "$aix_use_runtimelinking" = yes; then
9090       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9091       # instead of lib<name>.a to let people know that these are not
9092       # typical AIX shared libraries.
9093       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094     else
9095       # We preserve .a as extension for shared libraries through AIX4.2
9096       # and later when we are not doing run time linking.
9097       library_names_spec='${libname}${release}.a $libname.a'
9098       soname_spec='${libname}${release}${shared_ext}$major'
9099     fi
9100     shlibpath_var=LIBPATH
9101   fi
9102   ;;
9103
9104 amigaos*)
9105   library_names_spec='$libname.ixlibrary $libname.a'
9106   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9107   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'
9108   ;;
9109
9110 beos*)
9111   library_names_spec='${libname}${shared_ext}'
9112   dynamic_linker="$host_os ld.so"
9113   shlibpath_var=LIBRARY_PATH
9114   ;;
9115
9116 bsdi[45]*)
9117   version_type=linux
9118   need_version=no
9119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9122   shlibpath_var=LD_LIBRARY_PATH
9123   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9124   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9125   # the default ld.so.conf also contains /usr/contrib/lib and
9126   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9127   # libtool to hard-code these into programs
9128   ;;
9129
9130 cygwin* | mingw* | pw32*)
9131   version_type=windows
9132   shrext_cmds=".dll"
9133   need_version=no
9134   need_lib_prefix=no
9135
9136   case $GCC,$host_os in
9137   yes,cygwin* | yes,mingw* | yes,pw32*)
9138     library_names_spec='$libname.dll.a'
9139     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9140     postinstall_cmds='base_file=`basename \${file}`~
9141       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9142       dldir=$destdir/`dirname \$dlpath`~
9143       test -d \$dldir || mkdir -p \$dldir~
9144       $install_prog $dir/$dlname \$dldir/$dlname~
9145       chmod a+x \$dldir/$dlname'
9146     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9147       dlpath=$dir/\$dldll~
9148        $rm \$dlpath'
9149     shlibpath_overrides_runpath=yes
9150
9151     case $host_os in
9152     cygwin*)
9153       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9154       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9155       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9156       ;;
9157     mingw*)
9158       # MinGW DLLs use traditional 'lib' prefix
9159       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9160       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9161       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9162         # It is most probably a Windows format PATH printed by
9163         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9164         # path with ; separators, and with drive letters. We can handle the
9165         # drive letters (cygwin fileutils understands them), so leave them,
9166         # especially as we might pass files found there to a mingw objdump,
9167         # which wouldn't understand a cygwinified path. Ahh.
9168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9169       else
9170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9171       fi
9172       ;;
9173     pw32*)
9174       # pw32 DLLs use 'pw' prefix rather than 'lib'
9175       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9176       ;;
9177     esac
9178     ;;
9179
9180   *)
9181     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9182     ;;
9183   esac
9184   dynamic_linker='Win32 ld.exe'
9185   # FIXME: first we should search . and the directory the executable is in
9186   shlibpath_var=PATH
9187   ;;
9188
9189 darwin* | rhapsody*)
9190   dynamic_linker="$host_os dyld"
9191   version_type=darwin
9192   need_lib_prefix=no
9193   need_version=no
9194   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9195   soname_spec='${libname}${release}${major}$shared_ext'
9196   shlibpath_overrides_runpath=yes
9197   shlibpath_var=DYLD_LIBRARY_PATH
9198   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9199   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9200   if test "$GCC" = yes; then
9201     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"`
9202   else
9203     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9204   fi
9205   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9206   ;;
9207
9208 dgux*)
9209   version_type=linux
9210   need_lib_prefix=no
9211   need_version=no
9212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9213   soname_spec='${libname}${release}${shared_ext}$major'
9214   shlibpath_var=LD_LIBRARY_PATH
9215   ;;
9216
9217 freebsd1*)
9218   dynamic_linker=no
9219   ;;
9220
9221 kfreebsd*-gnu)
9222   version_type=linux
9223   need_lib_prefix=no
9224   need_version=no
9225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9226   soname_spec='${libname}${release}${shared_ext}$major'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   shlibpath_overrides_runpath=no
9229   hardcode_into_libs=yes
9230   dynamic_linker='GNU ld.so'
9231   ;;
9232
9233 freebsd* | dragonfly*)
9234   # DragonFly does not have aout.  When/if they implement a new
9235   # versioning mechanism, adjust this.
9236   if test -x /usr/bin/objformat; then
9237     objformat=`/usr/bin/objformat`
9238   else
9239     case $host_os in
9240     freebsd[123]*) objformat=aout ;;
9241     *) objformat=elf ;;
9242     esac
9243   fi
9244   version_type=freebsd-$objformat
9245   case $version_type in
9246     freebsd-elf*)
9247       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9248       need_version=no
9249       need_lib_prefix=no
9250       ;;
9251     freebsd-*)
9252       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9253       need_version=yes
9254       ;;
9255   esac
9256   shlibpath_var=LD_LIBRARY_PATH
9257   case $host_os in
9258   freebsd2*)
9259     shlibpath_overrides_runpath=yes
9260     ;;
9261   freebsd3.[01]* | freebsdelf3.[01]*)
9262     shlibpath_overrides_runpath=yes
9263     hardcode_into_libs=yes
9264     ;;
9265   *) # from 3.2 on
9266     shlibpath_overrides_runpath=no
9267     hardcode_into_libs=yes
9268     ;;
9269   esac
9270   ;;
9271
9272 gnu*)
9273   version_type=linux
9274   need_lib_prefix=no
9275   need_version=no
9276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   hardcode_into_libs=yes
9280   ;;
9281
9282 hpux9* | hpux10* | hpux11*)
9283   # Give a soname corresponding to the major version so that dld.sl refuses to
9284   # link against other versions.
9285   version_type=sunos
9286   need_lib_prefix=no
9287   need_version=no
9288   case $host_cpu in
9289   ia64*)
9290     shrext_cmds='.so'
9291     hardcode_into_libs=yes
9292     dynamic_linker="$host_os dld.so"
9293     shlibpath_var=LD_LIBRARY_PATH
9294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296     soname_spec='${libname}${release}${shared_ext}$major'
9297     if test "X$HPUX_IA64_MODE" = X32; then
9298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9299     else
9300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9301     fi
9302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9303     ;;
9304    hppa*64*)
9305      shrext_cmds='.sl'
9306      hardcode_into_libs=yes
9307      dynamic_linker="$host_os dld.sl"
9308      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9309      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311      soname_spec='${libname}${release}${shared_ext}$major'
9312      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9313      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9314      ;;
9315    *)
9316     shrext_cmds='.sl'
9317     dynamic_linker="$host_os dld.sl"
9318     shlibpath_var=SHLIB_PATH
9319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321     soname_spec='${libname}${release}${shared_ext}$major'
9322     ;;
9323   esac
9324   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9325   postinstall_cmds='chmod 555 $lib'
9326   ;;
9327
9328 irix5* | irix6* | nonstopux*)
9329   case $host_os in
9330     nonstopux*) version_type=nonstopux ;;
9331     *)
9332         if test "$lt_cv_prog_gnu_ld" = yes; then
9333                 version_type=linux
9334         else
9335                 version_type=irix
9336         fi ;;
9337   esac
9338   need_lib_prefix=no
9339   need_version=no
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9342   case $host_os in
9343   irix5* | nonstopux*)
9344     libsuff= shlibsuff=
9345     ;;
9346   *)
9347     case $LD in # libtool.m4 will add one of these switches to LD
9348     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9349       libsuff= shlibsuff= libmagic=32-bit;;
9350     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9351       libsuff=32 shlibsuff=N32 libmagic=N32;;
9352     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9353       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9354     *) libsuff= shlibsuff= libmagic=never-match;;
9355     esac
9356     ;;
9357   esac
9358   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9359   shlibpath_overrides_runpath=no
9360   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9361   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9362   hardcode_into_libs=yes
9363   ;;
9364
9365 # No shared lib support for Linux oldld, aout, or coff.
9366 linux*oldld* | linux*aout* | linux*coff*)
9367   dynamic_linker=no
9368   ;;
9369
9370 # This must be Linux ELF.
9371 linux*)
9372   version_type=linux
9373   need_lib_prefix=no
9374   need_version=no
9375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376   soname_spec='${libname}${release}${shared_ext}$major'
9377   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9378   shlibpath_var=LD_LIBRARY_PATH
9379   shlibpath_overrides_runpath=no
9380   # This implies no fast_install, which is unacceptable.
9381   # Some rework will be needed to allow for fast_install
9382   # before this can be enabled.
9383   hardcode_into_libs=yes
9384
9385   # Append ld.so.conf contents to the search path
9386   if test -f /etc/ld.so.conf; then
9387     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' ' '`
9388     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9389   fi
9390
9391   # We used to test for /lib/ld.so.1 and disable shared libraries on
9392   # powerpc, because MkLinux only supported shared libraries with the
9393   # GNU dynamic linker.  Since this was broken with cross compilers,
9394   # most powerpc-linux boxes support dynamic linking these days and
9395   # people can always --disable-shared, the test was removed, and we
9396   # assume the GNU/Linux dynamic linker is in use.
9397   dynamic_linker='GNU/Linux ld.so'
9398   ;;
9399
9400 knetbsd*-gnu)
9401   version_type=linux
9402   need_lib_prefix=no
9403   need_version=no
9404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   shlibpath_var=LD_LIBRARY_PATH
9407   shlibpath_overrides_runpath=no
9408   hardcode_into_libs=yes
9409   dynamic_linker='GNU ld.so'
9410   ;;
9411
9412 netbsd*)
9413   version_type=sunos
9414   need_lib_prefix=no
9415   need_version=no
9416   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9418     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9419     dynamic_linker='NetBSD (a.out) ld.so'
9420   else
9421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9422     soname_spec='${libname}${release}${shared_ext}$major'
9423     dynamic_linker='NetBSD ld.elf_so'
9424   fi
9425   shlibpath_var=LD_LIBRARY_PATH
9426   shlibpath_overrides_runpath=yes
9427   hardcode_into_libs=yes
9428   ;;
9429
9430 newsos6)
9431   version_type=linux
9432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   shlibpath_overrides_runpath=yes
9435   ;;
9436
9437 nto-qnx*)
9438   version_type=linux
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442   soname_spec='${libname}${release}${shared_ext}$major'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   shlibpath_overrides_runpath=yes
9445   ;;
9446
9447 openbsd*)
9448   version_type=sunos
9449   need_lib_prefix=no
9450   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9451   case $host_os in
9452     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9453     *)                         need_version=no  ;;
9454   esac
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9457   shlibpath_var=LD_LIBRARY_PATH
9458   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9459     case $host_os in
9460       openbsd2.[89] | openbsd2.[89].*)
9461         shlibpath_overrides_runpath=no
9462         ;;
9463       *)
9464         shlibpath_overrides_runpath=yes
9465         ;;
9466       esac
9467   else
9468     shlibpath_overrides_runpath=yes
9469   fi
9470   ;;
9471
9472 os2*)
9473   libname_spec='$name'
9474   shrext_cmds=".dll"
9475   need_lib_prefix=no
9476   library_names_spec='$libname${shared_ext} $libname.a'
9477   dynamic_linker='OS/2 ld.exe'
9478   shlibpath_var=LIBPATH
9479   ;;
9480
9481 osf3* | osf4* | osf5*)
9482   version_type=osf
9483   need_lib_prefix=no
9484   need_version=no
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9489   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9490   ;;
9491
9492 sco3.2v5*)
9493   version_type=osf
9494   soname_spec='${libname}${release}${shared_ext}$major'
9495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496   shlibpath_var=LD_LIBRARY_PATH
9497   ;;
9498
9499 solaris*)
9500   version_type=linux
9501   need_lib_prefix=no
9502   need_version=no
9503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504   soname_spec='${libname}${release}${shared_ext}$major'
9505   shlibpath_var=LD_LIBRARY_PATH
9506   shlibpath_overrides_runpath=yes
9507   hardcode_into_libs=yes
9508   # ldd complains unless libraries are executable
9509   postinstall_cmds='chmod +x $lib'
9510   ;;
9511
9512 sunos4*)
9513   version_type=sunos
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9515   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   shlibpath_overrides_runpath=yes
9518   if test "$with_gnu_ld" = yes; then
9519     need_lib_prefix=no
9520   fi
9521   need_version=yes
9522   ;;
9523
9524 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9525   version_type=linux
9526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9527   soname_spec='${libname}${release}${shared_ext}$major'
9528   shlibpath_var=LD_LIBRARY_PATH
9529   case $host_vendor in
9530     sni)
9531       shlibpath_overrides_runpath=no
9532       need_lib_prefix=no
9533       export_dynamic_flag_spec='${wl}-Blargedynsym'
9534       runpath_var=LD_RUN_PATH
9535       ;;
9536     siemens)
9537       need_lib_prefix=no
9538       ;;
9539     motorola)
9540       need_lib_prefix=no
9541       need_version=no
9542       shlibpath_overrides_runpath=no
9543       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9544       ;;
9545   esac
9546   ;;
9547
9548 sysv4*MP*)
9549   if test -d /usr/nec ;then
9550     version_type=linux
9551     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9552     soname_spec='$libname${shared_ext}.$major'
9553     shlibpath_var=LD_LIBRARY_PATH
9554   fi
9555   ;;
9556
9557 uts4*)
9558   version_type=linux
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   shlibpath_var=LD_LIBRARY_PATH
9562   ;;
9563
9564 *)
9565   dynamic_linker=no
9566   ;;
9567 esac
9568 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9569 echo "${ECHO_T}$dynamic_linker" >&6
9570 test "$dynamic_linker" = no && can_build_shared=no
9571
9572 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9574 hardcode_action=
9575 if test -n "$hardcode_libdir_flag_spec" || \
9576    test -n "$runpath_var" || \
9577    test "X$hardcode_automatic" = "Xyes" ; then
9578
9579   # We can hardcode non-existant directories.
9580   if test "$hardcode_direct" != no &&
9581      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9582      # have to relink, otherwise we might link with an installed library
9583      # when we should be linking with a yet-to-be-installed one
9584      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9585      test "$hardcode_minus_L" != no; then
9586     # Linking always hardcodes the temporary library directory.
9587     hardcode_action=relink
9588   else
9589     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9590     hardcode_action=immediate
9591   fi
9592 else
9593   # We cannot hardcode anything, or else we can only hardcode existing
9594   # directories.
9595   hardcode_action=unsupported
9596 fi
9597 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9598 echo "${ECHO_T}$hardcode_action" >&6
9599
9600 if test "$hardcode_action" = relink; then
9601   # Fast installation is not supported
9602   enable_fast_install=no
9603 elif test "$shlibpath_overrides_runpath" = yes ||
9604      test "$enable_shared" = no; then
9605   # Fast installation is not necessary
9606   enable_fast_install=needless
9607 fi
9608
9609 striplib=
9610 old_striplib=
9611 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9612 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9613 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9616   echo "$as_me:$LINENO: result: yes" >&5
9617 echo "${ECHO_T}yes" >&6
9618 else
9619 # FIXME - insert some real tests, host_os isn't really good enough
9620   case $host_os in
9621    darwin*)
9622        if test -n "$STRIP" ; then
9623          striplib="$STRIP -x"
9624          echo "$as_me:$LINENO: result: yes" >&5
9625 echo "${ECHO_T}yes" >&6
9626        else
9627   echo "$as_me:$LINENO: result: no" >&5
9628 echo "${ECHO_T}no" >&6
9629 fi
9630        ;;
9631    *)
9632   echo "$as_me:$LINENO: result: no" >&5
9633 echo "${ECHO_T}no" >&6
9634     ;;
9635   esac
9636 fi
9637
9638 if test "x$enable_dlopen" != xyes; then
9639   enable_dlopen=unknown
9640   enable_dlopen_self=unknown
9641   enable_dlopen_self_static=unknown
9642 else
9643   lt_cv_dlopen=no
9644   lt_cv_dlopen_libs=
9645
9646   case $host_os in
9647   beos*)
9648     lt_cv_dlopen="load_add_on"
9649     lt_cv_dlopen_libs=
9650     lt_cv_dlopen_self=yes
9651     ;;
9652
9653   mingw* | pw32*)
9654     lt_cv_dlopen="LoadLibrary"
9655     lt_cv_dlopen_libs=
9656    ;;
9657
9658   cygwin*)
9659     lt_cv_dlopen="dlopen"
9660     lt_cv_dlopen_libs=
9661    ;;
9662
9663   darwin*)
9664   # if libdl is installed we need to link against it
9665     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9666 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9667 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   ac_check_lib_save_LIBS=$LIBS
9671 LIBS="-ldl  $LIBS"
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678
9679 /* Override any gcc2 internal prototype to avoid an error.  */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 /* We use char because int might match the return type of a gcc2
9684    builtin and then its argument prototype would still apply.  */
9685 char dlopen ();
9686 int
9687 main ()
9688 {
9689 dlopen ();
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696   (eval $ac_link) 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } &&
9703          { ac_try='test -z "$ac_c_werror_flag"
9704                          || test ! -s conftest.err'
9705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706   (eval $ac_try) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; } &&
9710          { ac_try='test -s conftest$ac_exeext'
9711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712   (eval $ac_try) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); }; }; then
9716   ac_cv_lib_dl_dlopen=yes
9717 else
9718   echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_cv_lib_dl_dlopen=no
9722 fi
9723 rm -f conftest.err conftest.$ac_objext \
9724       conftest$ac_exeext conftest.$ac_ext
9725 LIBS=$ac_check_lib_save_LIBS
9726 fi
9727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9729 if test $ac_cv_lib_dl_dlopen = yes; then
9730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9731 else
9732
9733     lt_cv_dlopen="dyld"
9734     lt_cv_dlopen_libs=
9735     lt_cv_dlopen_self=yes
9736
9737 fi
9738
9739    ;;
9740
9741   *)
9742     echo "$as_me:$LINENO: checking for shl_load" >&5
9743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9744 if test "${ac_cv_func_shl_load+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9755 #define shl_load innocuous_shl_load
9756
9757 /* System header to define __stub macros and hopefully few prototypes,
9758     which can conflict with char shl_load (); below.
9759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9760     <limits.h> exists even on freestanding compilers.  */
9761
9762 #ifdef __STDC__
9763 # include <limits.h>
9764 #else
9765 # include <assert.h>
9766 #endif
9767
9768 #undef shl_load
9769
9770 /* Override any gcc2 internal prototype to avoid an error.  */
9771 #ifdef __cplusplus
9772 extern "C"
9773 {
9774 #endif
9775 /* We use char because int might match the return type of a gcc2
9776    builtin and then its argument prototype would still apply.  */
9777 char shl_load ();
9778 /* The GNU C library defines this for functions which it implements
9779     to always fail with ENOSYS.  Some functions are actually named
9780     something starting with __ and the normal name is an alias.  */
9781 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9782 choke me
9783 #else
9784 char (*f) () = shl_load;
9785 #endif
9786 #ifdef __cplusplus
9787 }
9788 #endif
9789
9790 int
9791 main ()
9792 {
9793 return f != shl_load;
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800   (eval $ac_link) 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } &&
9807          { ac_try='test -z "$ac_c_werror_flag"
9808                          || test ! -s conftest.err'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820   ac_cv_func_shl_load=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_cv_func_shl_load=no
9826 fi
9827 rm -f conftest.err conftest.$ac_objext \
9828       conftest$ac_exeext conftest.$ac_ext
9829 fi
9830 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9831 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9832 if test $ac_cv_func_shl_load = yes; then
9833   lt_cv_dlopen="shl_load"
9834 else
9835   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9836 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9838   echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840   ac_check_lib_save_LIBS=$LIBS
9841 LIBS="-ldld  $LIBS"
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h.  */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h.  */
9848
9849 /* Override any gcc2 internal prototype to avoid an error.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854    builtin and then its argument prototype would still apply.  */
9855 char shl_load ();
9856 int
9857 main ()
9858 {
9859 shl_load ();
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext conftest$ac_exeext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9866   (eval $ac_link) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"
9874                          || test ! -s conftest.err'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; } &&
9880          { ac_try='test -s conftest$ac_exeext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_cv_lib_dld_shl_load=yes
9887 else
9888   echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_cv_lib_dld_shl_load=no
9892 fi
9893 rm -f conftest.err conftest.$ac_objext \
9894       conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9896 fi
9897 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9898 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9899 if test $ac_cv_lib_dld_shl_load = yes; then
9900   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9901 else
9902   echo "$as_me:$LINENO: checking for dlopen" >&5
9903 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9904 if test "${ac_cv_func_dlopen+set}" = set; then
9905   echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907   cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h.  */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h.  */
9913 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9915 #define dlopen innocuous_dlopen
9916
9917 /* System header to define __stub macros and hopefully few prototypes,
9918     which can conflict with char dlopen (); below.
9919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9920     <limits.h> exists even on freestanding compilers.  */
9921
9922 #ifdef __STDC__
9923 # include <limits.h>
9924 #else
9925 # include <assert.h>
9926 #endif
9927
9928 #undef dlopen
9929
9930 /* Override any gcc2 internal prototype to avoid an error.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 {
9934 #endif
9935 /* We use char because int might match the return type of a gcc2
9936    builtin and then its argument prototype would still apply.  */
9937 char dlopen ();
9938 /* The GNU C library defines this for functions which it implements
9939     to always fail with ENOSYS.  Some functions are actually named
9940     something starting with __ and the normal name is an alias.  */
9941 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9942 choke me
9943 #else
9944 char (*f) () = dlopen;
9945 #endif
9946 #ifdef __cplusplus
9947 }
9948 #endif
9949
9950 int
9951 main ()
9952 {
9953 return f != dlopen;
9954   ;
9955   return 0;
9956 }
9957 _ACEOF
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960   (eval $ac_link) 2>conftest.er1
9961   ac_status=$?
9962   grep -v '^ *+' conftest.er1 >conftest.err
9963   rm -f conftest.er1
9964   cat conftest.err >&5
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); } &&
9967          { ac_try='test -z "$ac_c_werror_flag"
9968                          || test ! -s conftest.err'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; } &&
9974          { ac_try='test -s conftest$ac_exeext'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; }; then
9980   ac_cv_func_dlopen=yes
9981 else
9982   echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_cv_func_dlopen=no
9986 fi
9987 rm -f conftest.err conftest.$ac_objext \
9988       conftest$ac_exeext conftest.$ac_ext
9989 fi
9990 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9992 if test $ac_cv_func_dlopen = yes; then
9993   lt_cv_dlopen="dlopen"
9994 else
9995   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   ac_check_lib_save_LIBS=$LIBS
10001 LIBS="-ldl  $LIBS"
10002 cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008
10009 /* Override any gcc2 internal prototype to avoid an error.  */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 /* We use char because int might match the return type of a gcc2
10014    builtin and then its argument prototype would still apply.  */
10015 char dlopen ();
10016 int
10017 main ()
10018 {
10019 dlopen ();
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10026   (eval $ac_link) 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } &&
10033          { ac_try='test -z "$ac_c_werror_flag"
10034                          || test ! -s conftest.err'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; } &&
10040          { ac_try='test -s conftest$ac_exeext'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; }; then
10046   ac_cv_lib_dl_dlopen=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051 ac_cv_lib_dl_dlopen=no
10052 fi
10053 rm -f conftest.err conftest.$ac_objext \
10054       conftest$ac_exeext conftest.$ac_ext
10055 LIBS=$ac_check_lib_save_LIBS
10056 fi
10057 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10058 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10059 if test $ac_cv_lib_dl_dlopen = yes; then
10060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10061 else
10062   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10063 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10064 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   ac_check_lib_save_LIBS=$LIBS
10068 LIBS="-lsvld  $LIBS"
10069 cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075
10076 /* Override any gcc2 internal prototype to avoid an error.  */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 /* We use char because int might match the return type of a gcc2
10081    builtin and then its argument prototype would still apply.  */
10082 char dlopen ();
10083 int
10084 main ()
10085 {
10086 dlopen ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10093   (eval $ac_link) 2>conftest.er1
10094   ac_status=$?
10095   grep -v '^ *+' conftest.er1 >conftest.err
10096   rm -f conftest.er1
10097   cat conftest.err >&5
10098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099   (exit $ac_status); } &&
10100          { ac_try='test -z "$ac_c_werror_flag"
10101                          || test ! -s conftest.err'
10102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103   (eval $ac_try) 2>&5
10104   ac_status=$?
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); }; } &&
10107          { ac_try='test -s conftest$ac_exeext'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; }; then
10113   ac_cv_lib_svld_dlopen=yes
10114 else
10115   echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_cv_lib_svld_dlopen=no
10119 fi
10120 rm -f conftest.err conftest.$ac_objext \
10121       conftest$ac_exeext conftest.$ac_ext
10122 LIBS=$ac_check_lib_save_LIBS
10123 fi
10124 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10125 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10126 if test $ac_cv_lib_svld_dlopen = yes; then
10127   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10128 else
10129   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10130 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10131 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-ldld  $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142
10143 /* Override any gcc2 internal prototype to avoid an error.  */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 /* We use char because int might match the return type of a gcc2
10148    builtin and then its argument prototype would still apply.  */
10149 char dld_link ();
10150 int
10151 main ()
10152 {
10153 dld_link ();
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160   (eval $ac_link) 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } &&
10167          { ac_try='test -z "$ac_c_werror_flag"
10168                          || test ! -s conftest.err'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_lib_dld_dld_link=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_lib_dld_dld_link=no
10186 fi
10187 rm -f conftest.err conftest.$ac_objext \
10188       conftest$ac_exeext conftest.$ac_ext
10189 LIBS=$ac_check_lib_save_LIBS
10190 fi
10191 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10192 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10193 if test $ac_cv_lib_dld_dld_link = yes; then
10194   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10195 fi
10196
10197
10198 fi
10199
10200
10201 fi
10202
10203
10204 fi
10205
10206
10207 fi
10208
10209
10210 fi
10211
10212     ;;
10213   esac
10214
10215   if test "x$lt_cv_dlopen" != xno; then
10216     enable_dlopen=yes
10217   else
10218     enable_dlopen=no
10219   fi
10220
10221   case $lt_cv_dlopen in
10222   dlopen)
10223     save_CPPFLAGS="$CPPFLAGS"
10224     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10225
10226     save_LDFLAGS="$LDFLAGS"
10227     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10228
10229     save_LIBS="$LIBS"
10230     LIBS="$lt_cv_dlopen_libs $LIBS"
10231
10232     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10233 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10234 if test "${lt_cv_dlopen_self+set}" = set; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237           if test "$cross_compiling" = yes; then :
10238   lt_cv_dlopen_self=cross
10239 else
10240   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10241   lt_status=$lt_dlunknown
10242   cat > conftest.$ac_ext <<EOF
10243 #line 10243 "configure"
10244 #include "confdefs.h"
10245
10246 #if HAVE_DLFCN_H
10247 #include <dlfcn.h>
10248 #endif
10249
10250 #include <stdio.h>
10251
10252 #ifdef RTLD_GLOBAL
10253 #  define LT_DLGLOBAL           RTLD_GLOBAL
10254 #else
10255 #  ifdef DL_GLOBAL
10256 #    define LT_DLGLOBAL         DL_GLOBAL
10257 #  else
10258 #    define LT_DLGLOBAL         0
10259 #  endif
10260 #endif
10261
10262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10263    find out it does not work in some platform. */
10264 #ifndef LT_DLLAZY_OR_NOW
10265 #  ifdef RTLD_LAZY
10266 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10267 #  else
10268 #    ifdef DL_LAZY
10269 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10270 #    else
10271 #      ifdef RTLD_NOW
10272 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10273 #      else
10274 #        ifdef DL_NOW
10275 #          define LT_DLLAZY_OR_NOW      DL_NOW
10276 #        else
10277 #          define LT_DLLAZY_OR_NOW      0
10278 #        endif
10279 #      endif
10280 #    endif
10281 #  endif
10282 #endif
10283
10284 #ifdef __cplusplus
10285 extern "C" void exit (int);
10286 #endif
10287
10288 void fnord() { int i=42;}
10289 int main ()
10290 {
10291   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10292   int status = $lt_dlunknown;
10293
10294   if (self)
10295     {
10296       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10297       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10298       /* dlclose (self); */
10299     }
10300
10301     exit (status);
10302 }
10303 EOF
10304   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10305   (eval $ac_link) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10309     (./conftest; exit; ) >&5 2>/dev/null
10310     lt_status=$?
10311     case x$lt_status in
10312       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10313       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10314       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10315     esac
10316   else :
10317     # compilation failed
10318     lt_cv_dlopen_self=no
10319   fi
10320 fi
10321 rm -fr conftest*
10322
10323
10324 fi
10325 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10326 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10327
10328     if test "x$lt_cv_dlopen_self" = xyes; then
10329       LDFLAGS="$LDFLAGS $link_static_flag"
10330       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10331 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10332 if test "${lt_cv_dlopen_self_static+set}" = set; then
10333   echo $ECHO_N "(cached) $ECHO_C" >&6
10334 else
10335           if test "$cross_compiling" = yes; then :
10336   lt_cv_dlopen_self_static=cross
10337 else
10338   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10339   lt_status=$lt_dlunknown
10340   cat > conftest.$ac_ext <<EOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10343
10344 #if HAVE_DLFCN_H
10345 #include <dlfcn.h>
10346 #endif
10347
10348 #include <stdio.h>
10349
10350 #ifdef RTLD_GLOBAL
10351 #  define LT_DLGLOBAL           RTLD_GLOBAL
10352 #else
10353 #  ifdef DL_GLOBAL
10354 #    define LT_DLGLOBAL         DL_GLOBAL
10355 #  else
10356 #    define LT_DLGLOBAL         0
10357 #  endif
10358 #endif
10359
10360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10361    find out it does not work in some platform. */
10362 #ifndef LT_DLLAZY_OR_NOW
10363 #  ifdef RTLD_LAZY
10364 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10365 #  else
10366 #    ifdef DL_LAZY
10367 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10368 #    else
10369 #      ifdef RTLD_NOW
10370 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10371 #      else
10372 #        ifdef DL_NOW
10373 #          define LT_DLLAZY_OR_NOW      DL_NOW
10374 #        else
10375 #          define LT_DLLAZY_OR_NOW      0
10376 #        endif
10377 #      endif
10378 #    endif
10379 #  endif
10380 #endif
10381
10382 #ifdef __cplusplus
10383 extern "C" void exit (int);
10384 #endif
10385
10386 void fnord() { int i=42;}
10387 int main ()
10388 {
10389   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10390   int status = $lt_dlunknown;
10391
10392   if (self)
10393     {
10394       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10395       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10396       /* dlclose (self); */
10397     }
10398
10399     exit (status);
10400 }
10401 EOF
10402   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403   (eval $ac_link) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10407     (./conftest; exit; ) >&5 2>/dev/null
10408     lt_status=$?
10409     case x$lt_status in
10410       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10411       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10412       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10413     esac
10414   else :
10415     # compilation failed
10416     lt_cv_dlopen_self_static=no
10417   fi
10418 fi
10419 rm -fr conftest*
10420
10421
10422 fi
10423 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10424 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10425     fi
10426
10427     CPPFLAGS="$save_CPPFLAGS"
10428     LDFLAGS="$save_LDFLAGS"
10429     LIBS="$save_LIBS"
10430     ;;
10431   esac
10432
10433   case $lt_cv_dlopen_self in
10434   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10435   *) enable_dlopen_self=unknown ;;
10436   esac
10437
10438   case $lt_cv_dlopen_self_static in
10439   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10440   *) enable_dlopen_self_static=unknown ;;
10441   esac
10442 fi
10443
10444
10445 # Report which librarie types wil actually be built
10446 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10447 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10448 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10449 echo "${ECHO_T}$can_build_shared" >&6
10450
10451 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10452 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10453 test "$can_build_shared" = "no" && enable_shared=no
10454
10455 # On AIX, shared libraries and static libraries use the same namespace, and
10456 # are all built from PIC.
10457 case $host_os in
10458 aix3*)
10459   test "$enable_shared" = yes && enable_static=no
10460   if test -n "$RANLIB"; then
10461     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10462     postinstall_cmds='$RANLIB $lib'
10463   fi
10464   ;;
10465
10466 aix4* | aix5*)
10467   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10468     test "$enable_shared" = yes && enable_static=no
10469   fi
10470     ;;
10471 esac
10472 echo "$as_me:$LINENO: result: $enable_shared" >&5
10473 echo "${ECHO_T}$enable_shared" >&6
10474
10475 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10476 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10477 # Make sure either enable_shared or enable_static is yes.
10478 test "$enable_shared" = yes || enable_static=yes
10479 echo "$as_me:$LINENO: result: $enable_static" >&5
10480 echo "${ECHO_T}$enable_static" >&6
10481
10482 # The else clause should only fire when bootstrapping the
10483 # libtool distribution, otherwise you forgot to ship ltmain.sh
10484 # with your package, and you will get complaints that there are
10485 # no rules to generate ltmain.sh.
10486 if test -f "$ltmain"; then
10487   # See if we are running on zsh, and set the options which allow our commands through
10488   # without removal of \ escapes.
10489   if test -n "${ZSH_VERSION+set}" ; then
10490     setopt NO_GLOB_SUBST
10491   fi
10492   # Now quote all the things that may contain metacharacters while being
10493   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10494   # variables and quote the copies for generation of the libtool script.
10495   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10496     SED SHELL STRIP \
10497     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10498     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10499     deplibs_check_method reload_flag reload_cmds need_locks \
10500     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10501     lt_cv_sys_global_symbol_to_c_name_address \
10502     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10503     old_postinstall_cmds old_postuninstall_cmds \
10504     compiler \
10505     CC \
10506     LD \
10507     lt_prog_compiler_wl \
10508     lt_prog_compiler_pic \
10509     lt_prog_compiler_static \
10510     lt_prog_compiler_no_builtin_flag \
10511     export_dynamic_flag_spec \
10512     thread_safe_flag_spec \
10513     whole_archive_flag_spec \
10514     enable_shared_with_static_runtimes \
10515     old_archive_cmds \
10516     old_archive_from_new_cmds \
10517     predep_objects \
10518     postdep_objects \
10519     predeps \
10520     postdeps \
10521     compiler_lib_search_path \
10522     archive_cmds \
10523     archive_expsym_cmds \
10524     postinstall_cmds \
10525     postuninstall_cmds \
10526     old_archive_from_expsyms_cmds \
10527     allow_undefined_flag \
10528     no_undefined_flag \
10529     export_symbols_cmds \
10530     hardcode_libdir_flag_spec \
10531     hardcode_libdir_flag_spec_ld \
10532     hardcode_libdir_separator \
10533     hardcode_automatic \
10534     module_cmds \
10535     module_expsym_cmds \
10536     lt_cv_prog_compiler_c_o \
10537     exclude_expsyms \
10538     include_expsyms; do
10539
10540     case $var in
10541     old_archive_cmds | \
10542     old_archive_from_new_cmds | \
10543     archive_cmds | \
10544     archive_expsym_cmds | \
10545     module_cmds | \
10546     module_expsym_cmds | \
10547     old_archive_from_expsyms_cmds | \
10548     export_symbols_cmds | \
10549     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10550     postinstall_cmds | postuninstall_cmds | \
10551     old_postinstall_cmds | old_postuninstall_cmds | \
10552     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10553       # Double-quote double-evaled strings.
10554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10555       ;;
10556     *)
10557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10558       ;;
10559     esac
10560   done
10561
10562   case $lt_echo in
10563   *'\$0 --fallback-echo"')
10564     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10565     ;;
10566   esac
10567
10568 cfgfile="${ofile}T"
10569   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10570   $rm -f "$cfgfile"
10571   { echo "$as_me:$LINENO: creating $ofile" >&5
10572 echo "$as_me: creating $ofile" >&6;}
10573
10574   cat <<__EOF__ >> "$cfgfile"
10575 #! $SHELL
10576
10577 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10578 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10580 #
10581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10582 # Free Software Foundation, Inc.
10583 #
10584 # This file is part of GNU Libtool:
10585 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10586 #
10587 # This program is free software; you can redistribute it and/or modify
10588 # it under the terms of the GNU General Public License as published by
10589 # the Free Software Foundation; either version 2 of the License, or
10590 # (at your option) any later version.
10591 #
10592 # This program is distributed in the hope that it will be useful, but
10593 # WITHOUT ANY WARRANTY; without even the implied warranty of
10594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10595 # General Public License for more details.
10596 #
10597 # You should have received a copy of the GNU General Public License
10598 # along with this program; if not, write to the Free Software
10599 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10600 #
10601 # As a special exception to the GNU General Public License, if you
10602 # distribute this file as part of a program that contains a
10603 # configuration script generated by Autoconf, you may include it under
10604 # the same distribution terms that you use for the rest of that program.
10605
10606 # A sed program that does not truncate output.
10607 SED=$lt_SED
10608
10609 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10610 Xsed="$SED -e 1s/^X//"
10611
10612 # The HP-UX ksh and POSIX shell print the target directory to stdout
10613 # if CDPATH is set.
10614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10615
10616 # The names of the tagged configurations supported by this script.
10617 available_tags=
10618
10619 # ### BEGIN LIBTOOL CONFIG
10620
10621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10622
10623 # Shell to use when invoking shell scripts.
10624 SHELL=$lt_SHELL
10625
10626 # Whether or not to build shared libraries.
10627 build_libtool_libs=$enable_shared
10628
10629 # Whether or not to build static libraries.
10630 build_old_libs=$enable_static
10631
10632 # Whether or not to add -lc for building shared libraries.
10633 build_libtool_need_lc=$archive_cmds_need_lc
10634
10635 # Whether or not to disallow shared libs when runtime libs are static
10636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10637
10638 # Whether or not to optimize for fast installation.
10639 fast_install=$enable_fast_install
10640
10641 # The host system.
10642 host_alias=$host_alias
10643 host=$host
10644 host_os=$host_os
10645
10646 # The build system.
10647 build_alias=$build_alias
10648 build=$build
10649 build_os=$build_os
10650
10651 # An echo program that does not interpret backslashes.
10652 echo=$lt_echo
10653
10654 # The archiver.
10655 AR=$lt_AR
10656 AR_FLAGS=$lt_AR_FLAGS
10657
10658 # A C compiler.
10659 LTCC=$lt_LTCC
10660
10661 # A language-specific compiler.
10662 CC=$lt_compiler
10663
10664 # Is the compiler the GNU C compiler?
10665 with_gcc=$GCC
10666
10667 # An ERE matcher.
10668 EGREP=$lt_EGREP
10669
10670 # The linker used to build libraries.
10671 LD=$lt_LD
10672
10673 # Whether we need hard or soft links.
10674 LN_S=$lt_LN_S
10675
10676 # A BSD-compatible nm program.
10677 NM=$lt_NM
10678
10679 # A symbol stripping program
10680 STRIP=$lt_STRIP
10681
10682 # Used to examine libraries when file_magic_cmd begins "file"
10683 MAGIC_CMD=$MAGIC_CMD
10684
10685 # Used on cygwin: DLL creation program.
10686 DLLTOOL="$DLLTOOL"
10687
10688 # Used on cygwin: object dumper.
10689 OBJDUMP="$OBJDUMP"
10690
10691 # Used on cygwin: assembler.
10692 AS="$AS"
10693
10694 # The name of the directory that contains temporary libtool files.
10695 objdir=$objdir
10696
10697 # How to create reloadable object files.
10698 reload_flag=$lt_reload_flag
10699 reload_cmds=$lt_reload_cmds
10700
10701 # How to pass a linker flag through the compiler.
10702 wl=$lt_lt_prog_compiler_wl
10703
10704 # Object file suffix (normally "o").
10705 objext="$ac_objext"
10706
10707 # Old archive suffix (normally "a").
10708 libext="$libext"
10709
10710 # Shared library suffix (normally ".so").
10711 shrext_cmds='$shrext_cmds'
10712
10713 # Executable file suffix (normally "").
10714 exeext="$exeext"
10715
10716 # Additional compiler flags for building library objects.
10717 pic_flag=$lt_lt_prog_compiler_pic
10718 pic_mode=$pic_mode
10719
10720 # What is the maximum length of a command?
10721 max_cmd_len=$lt_cv_sys_max_cmd_len
10722
10723 # Does compiler simultaneously support -c and -o options?
10724 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10725
10726 # Must we lock files when doing compilation?
10727 need_locks=$lt_need_locks
10728
10729 # Do we need the lib prefix for modules?
10730 need_lib_prefix=$need_lib_prefix
10731
10732 # Do we need a version for libraries?
10733 need_version=$need_version
10734
10735 # Whether dlopen is supported.
10736 dlopen_support=$enable_dlopen
10737
10738 # Whether dlopen of programs is supported.
10739 dlopen_self=$enable_dlopen_self
10740
10741 # Whether dlopen of statically linked programs is supported.
10742 dlopen_self_static=$enable_dlopen_self_static
10743
10744 # Compiler flag to prevent dynamic linking.
10745 link_static_flag=$lt_lt_prog_compiler_static
10746
10747 # Compiler flag to turn off builtin functions.
10748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10749
10750 # Compiler flag to allow reflexive dlopens.
10751 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10752
10753 # Compiler flag to generate shared objects directly from archives.
10754 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10755
10756 # Compiler flag to generate thread-safe objects.
10757 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10758
10759 # Library versioning type.
10760 version_type=$version_type
10761
10762 # Format of library name prefix.
10763 libname_spec=$lt_libname_spec
10764
10765 # List of archive names.  First name is the real one, the rest are links.
10766 # The last name is the one that the linker finds with -lNAME.
10767 library_names_spec=$lt_library_names_spec
10768
10769 # The coded name of the library, if different from the real name.
10770 soname_spec=$lt_soname_spec
10771
10772 # Commands used to build and install an old-style archive.
10773 RANLIB=$lt_RANLIB
10774 old_archive_cmds=$lt_old_archive_cmds
10775 old_postinstall_cmds=$lt_old_postinstall_cmds
10776 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10777
10778 # Create an old-style archive from a shared archive.
10779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10780
10781 # Create a temporary old-style archive to link instead of a shared archive.
10782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10783
10784 # Commands used to build and install a shared archive.
10785 archive_cmds=$lt_archive_cmds
10786 archive_expsym_cmds=$lt_archive_expsym_cmds
10787 postinstall_cmds=$lt_postinstall_cmds
10788 postuninstall_cmds=$lt_postuninstall_cmds
10789
10790 # Commands used to build a loadable module (assumed same as above if empty)
10791 module_cmds=$lt_module_cmds
10792 module_expsym_cmds=$lt_module_expsym_cmds
10793
10794 # Commands to strip libraries.
10795 old_striplib=$lt_old_striplib
10796 striplib=$lt_striplib
10797
10798 # Dependencies to place before the objects being linked to create a
10799 # shared library.
10800 predep_objects=$lt_predep_objects
10801
10802 # Dependencies to place after the objects being linked to create a
10803 # shared library.
10804 postdep_objects=$lt_postdep_objects
10805
10806 # Dependencies to place before the objects being linked to create a
10807 # shared library.
10808 predeps=$lt_predeps
10809
10810 # Dependencies to place after the objects being linked to create a
10811 # shared library.
10812 postdeps=$lt_postdeps
10813
10814 # The library search path used internally by the compiler when linking
10815 # a shared library.
10816 compiler_lib_search_path=$lt_compiler_lib_search_path
10817
10818 # Method to check whether dependent libraries are shared objects.
10819 deplibs_check_method=$lt_deplibs_check_method
10820
10821 # Command to use when deplibs_check_method == file_magic.
10822 file_magic_cmd=$lt_file_magic_cmd
10823
10824 # Flag that allows shared libraries with undefined symbols to be built.
10825 allow_undefined_flag=$lt_allow_undefined_flag
10826
10827 # Flag that forces no undefined symbols.
10828 no_undefined_flag=$lt_no_undefined_flag
10829
10830 # Commands used to finish a libtool library installation in a directory.
10831 finish_cmds=$lt_finish_cmds
10832
10833 # Same as above, but a single script fragment to be evaled but not shown.
10834 finish_eval=$lt_finish_eval
10835
10836 # Take the output of nm and produce a listing of raw symbols and C names.
10837 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10838
10839 # Transform the output of nm in a proper C declaration
10840 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10841
10842 # Transform the output of nm in a C name address pair
10843 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10844
10845 # This is the shared library runtime path variable.
10846 runpath_var=$runpath_var
10847
10848 # This is the shared library path variable.
10849 shlibpath_var=$shlibpath_var
10850
10851 # Is shlibpath searched before the hard-coded library search path?
10852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10853
10854 # How to hardcode a shared library path into an executable.
10855 hardcode_action=$hardcode_action
10856
10857 # Whether we should hardcode library paths into libraries.
10858 hardcode_into_libs=$hardcode_into_libs
10859
10860 # Flag to hardcode \$libdir into a binary during linking.
10861 # This must work even if \$libdir does not exist.
10862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10863
10864 # If ld is used when linking, flag to hardcode \$libdir into
10865 # a binary during linking. This must work even if \$libdir does
10866 # not exist.
10867 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10868
10869 # Whether we need a single -rpath flag with a separated argument.
10870 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10871
10872 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10873 # resulting binary.
10874 hardcode_direct=$hardcode_direct
10875
10876 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10877 # resulting binary.
10878 hardcode_minus_L=$hardcode_minus_L
10879
10880 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10881 # the resulting binary.
10882 hardcode_shlibpath_var=$hardcode_shlibpath_var
10883
10884 # Set to yes if building a shared library automatically hardcodes DIR into the library
10885 # and all subsequent libraries and executables linked against it.
10886 hardcode_automatic=$hardcode_automatic
10887
10888 # Variables whose values should be saved in libtool wrapper scripts and
10889 # restored at relink time.
10890 variables_saved_for_relink="$variables_saved_for_relink"
10891
10892 # Whether libtool must link a program against all its dependency libraries.
10893 link_all_deplibs=$link_all_deplibs
10894
10895 # Compile-time system search path for libraries
10896 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10897
10898 # Run-time system search path for libraries
10899 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10900
10901 # Fix the shell variable \$srcfile for the compiler.
10902 fix_srcfile_path="$fix_srcfile_path"
10903
10904 # Set to yes if exported symbols are required.
10905 always_export_symbols=$always_export_symbols
10906
10907 # The commands to list exported symbols.
10908 export_symbols_cmds=$lt_export_symbols_cmds
10909
10910 # The commands to extract the exported symbol list from a shared archive.
10911 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10912
10913 # Symbols that should not be listed in the preloaded symbols.
10914 exclude_expsyms=$lt_exclude_expsyms
10915
10916 # Symbols that must always be exported.
10917 include_expsyms=$lt_include_expsyms
10918
10919 # ### END LIBTOOL CONFIG
10920
10921 __EOF__
10922
10923
10924   case $host_os in
10925   aix3*)
10926     cat <<\EOF >> "$cfgfile"
10927
10928 # AIX sometimes has problems with the GCC collect2 program.  For some
10929 # reason, if we set the COLLECT_NAMES environment variable, the problems
10930 # vanish in a puff of smoke.
10931 if test "X${COLLECT_NAMES+set}" != Xset; then
10932   COLLECT_NAMES=
10933   export COLLECT_NAMES
10934 fi
10935 EOF
10936     ;;
10937   esac
10938
10939   # We use sed instead of cat because bash on DJGPP gets confused if
10940   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10941   # text mode, it properly converts lines to CR/LF.  This bash problem
10942   # is reportedly fixed, but why not run on old versions too?
10943   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10944
10945   mv -f "$cfgfile" "$ofile" || \
10946     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10947   chmod +x "$ofile"
10948
10949 else
10950   # If there is no Makefile yet, we rely on a make rule to execute
10951   # `config.status --recheck' to rerun these tests and create the
10952   # libtool script then.
10953   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10954   if test -f "$ltmain_in"; then
10955     test -f Makefile && make "$ltmain"
10956   fi
10957 fi
10958
10959
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965
10966 CC="$lt_save_CC"
10967
10968
10969 # Check whether --with-tags or --without-tags was given.
10970 if test "${with_tags+set}" = set; then
10971   withval="$with_tags"
10972   tagnames="$withval"
10973 fi;
10974
10975 if test -f "$ltmain" && test -n "$tagnames"; then
10976   if test ! -f "${ofile}"; then
10977     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10978 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10979   fi
10980
10981   if test -z "$LTCC"; then
10982     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10983     if test -z "$LTCC"; then
10984       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10985 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10986     else
10987       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10988 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10989     fi
10990   fi
10991
10992   # Extract list of available tagged configurations in $ofile.
10993   # Note that this assumes the entire list is on one line.
10994   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10995
10996   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10997   for tagname in $tagnames; do
10998     IFS="$lt_save_ifs"
10999     # Check whether tagname contains only valid characters
11000     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11001     "") ;;
11002     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11003 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11004    { (exit 1); exit 1; }; }
11005         ;;
11006     esac
11007
11008     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11009     then
11010       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11011 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11012    { (exit 1); exit 1; }; }
11013     fi
11014
11015     # Update the list of available tags.
11016     if test -n "$tagname"; then
11017       echo appending configuration tag \"$tagname\" to $ofile
11018
11019       case $tagname in
11020       CXX)
11021         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11022             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11023             (test "X$CXX" != "Xg++"))) ; then
11024           :
11025         else
11026           tagname=""
11027         fi
11028         ;;
11029
11030       F77)
11031         if test -n "$F77" && test "X$F77" != "Xno"; then
11032           :
11033         else
11034           tagname=""
11035         fi
11036         ;;
11037
11038       GCJ)
11039         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11040           :
11041         else
11042           tagname=""
11043         fi
11044         ;;
11045
11046       RC)
11047
11048
11049
11050 # Source file extension for RC test sources.
11051 ac_ext=rc
11052
11053 # Object file extension for compiled RC test sources.
11054 objext=o
11055 objext_RC=$objext
11056
11057 # Code to be used in simple compile tests
11058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11059
11060 # Code to be used in simple link tests
11061 lt_simple_link_test_code="$lt_simple_compile_test_code"
11062
11063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11064
11065 # If no C compiler was specified, use CC.
11066 LTCC=${LTCC-"$CC"}
11067
11068 # Allow CC to be a program name with arguments.
11069 compiler=$CC
11070
11071
11072 # save warnings/boilerplate of simple test code
11073 ac_outfile=conftest.$ac_objext
11074 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11075 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11076 _lt_compiler_boilerplate=`cat conftest.err`
11077 $rm conftest*
11078
11079 ac_outfile=conftest.$ac_objext
11080 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11081 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11082 _lt_linker_boilerplate=`cat conftest.err`
11083 $rm conftest*
11084
11085
11086 # Allow CC to be a program name with arguments.
11087 lt_save_CC="$CC"
11088 CC=${RC-"windres"}
11089 compiler=$CC
11090 compiler_RC=$CC
11091 for cc_temp in $compiler""; do
11092   case $cc_temp in
11093     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11094     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11095     \-*) ;;
11096     *) break;;
11097   esac
11098 done
11099 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11100
11101 lt_cv_prog_compiler_c_o_RC=yes
11102
11103 # The else clause should only fire when bootstrapping the
11104 # libtool distribution, otherwise you forgot to ship ltmain.sh
11105 # with your package, and you will get complaints that there are
11106 # no rules to generate ltmain.sh.
11107 if test -f "$ltmain"; then
11108   # See if we are running on zsh, and set the options which allow our commands through
11109   # without removal of \ escapes.
11110   if test -n "${ZSH_VERSION+set}" ; then
11111     setopt NO_GLOB_SUBST
11112   fi
11113   # Now quote all the things that may contain metacharacters while being
11114   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11115   # variables and quote the copies for generation of the libtool script.
11116   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11117     SED SHELL STRIP \
11118     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11119     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11120     deplibs_check_method reload_flag reload_cmds need_locks \
11121     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11122     lt_cv_sys_global_symbol_to_c_name_address \
11123     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11124     old_postinstall_cmds old_postuninstall_cmds \
11125     compiler_RC \
11126     CC_RC \
11127     LD_RC \
11128     lt_prog_compiler_wl_RC \
11129     lt_prog_compiler_pic_RC \
11130     lt_prog_compiler_static_RC \
11131     lt_prog_compiler_no_builtin_flag_RC \
11132     export_dynamic_flag_spec_RC \
11133     thread_safe_flag_spec_RC \
11134     whole_archive_flag_spec_RC \
11135     enable_shared_with_static_runtimes_RC \
11136     old_archive_cmds_RC \
11137     old_archive_from_new_cmds_RC \
11138     predep_objects_RC \
11139     postdep_objects_RC \
11140     predeps_RC \
11141     postdeps_RC \
11142     compiler_lib_search_path_RC \
11143     archive_cmds_RC \
11144     archive_expsym_cmds_RC \
11145     postinstall_cmds_RC \
11146     postuninstall_cmds_RC \
11147     old_archive_from_expsyms_cmds_RC \
11148     allow_undefined_flag_RC \
11149     no_undefined_flag_RC \
11150     export_symbols_cmds_RC \
11151     hardcode_libdir_flag_spec_RC \
11152     hardcode_libdir_flag_spec_ld_RC \
11153     hardcode_libdir_separator_RC \
11154     hardcode_automatic_RC \
11155     module_cmds_RC \
11156     module_expsym_cmds_RC \
11157     lt_cv_prog_compiler_c_o_RC \
11158     exclude_expsyms_RC \
11159     include_expsyms_RC; do
11160
11161     case $var in
11162     old_archive_cmds_RC | \
11163     old_archive_from_new_cmds_RC | \
11164     archive_cmds_RC | \
11165     archive_expsym_cmds_RC | \
11166     module_cmds_RC | \
11167     module_expsym_cmds_RC | \
11168     old_archive_from_expsyms_cmds_RC | \
11169     export_symbols_cmds_RC | \
11170     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11171     postinstall_cmds | postuninstall_cmds | \
11172     old_postinstall_cmds | old_postuninstall_cmds | \
11173     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11174       # Double-quote double-evaled strings.
11175       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11176       ;;
11177     *)
11178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11179       ;;
11180     esac
11181   done
11182
11183   case $lt_echo in
11184   *'\$0 --fallback-echo"')
11185     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11186     ;;
11187   esac
11188
11189 cfgfile="$ofile"
11190
11191   cat <<__EOF__ >> "$cfgfile"
11192 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11193
11194 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11195
11196 # Shell to use when invoking shell scripts.
11197 SHELL=$lt_SHELL
11198
11199 # Whether or not to build shared libraries.
11200 build_libtool_libs=$enable_shared
11201
11202 # Whether or not to build static libraries.
11203 build_old_libs=$enable_static
11204
11205 # Whether or not to add -lc for building shared libraries.
11206 build_libtool_need_lc=$archive_cmds_need_lc_RC
11207
11208 # Whether or not to disallow shared libs when runtime libs are static
11209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11210
11211 # Whether or not to optimize for fast installation.
11212 fast_install=$enable_fast_install
11213
11214 # The host system.
11215 host_alias=$host_alias
11216 host=$host
11217 host_os=$host_os
11218
11219 # The build system.
11220 build_alias=$build_alias
11221 build=$build
11222 build_os=$build_os
11223
11224 # An echo program that does not interpret backslashes.
11225 echo=$lt_echo
11226
11227 # The archiver.
11228 AR=$lt_AR
11229 AR_FLAGS=$lt_AR_FLAGS
11230
11231 # A C compiler.
11232 LTCC=$lt_LTCC
11233
11234 # A language-specific compiler.
11235 CC=$lt_compiler_RC
11236
11237 # Is the compiler the GNU C compiler?
11238 with_gcc=$GCC_RC
11239
11240 # An ERE matcher.
11241 EGREP=$lt_EGREP
11242
11243 # The linker used to build libraries.
11244 LD=$lt_LD_RC
11245
11246 # Whether we need hard or soft links.
11247 LN_S=$lt_LN_S
11248
11249 # A BSD-compatible nm program.
11250 NM=$lt_NM
11251
11252 # A symbol stripping program
11253 STRIP=$lt_STRIP
11254
11255 # Used to examine libraries when file_magic_cmd begins "file"
11256 MAGIC_CMD=$MAGIC_CMD
11257
11258 # Used on cygwin: DLL creation program.
11259 DLLTOOL="$DLLTOOL"
11260
11261 # Used on cygwin: object dumper.
11262 OBJDUMP="$OBJDUMP"
11263
11264 # Used on cygwin: assembler.
11265 AS="$AS"
11266
11267 # The name of the directory that contains temporary libtool files.
11268 objdir=$objdir
11269
11270 # How to create reloadable object files.
11271 reload_flag=$lt_reload_flag
11272 reload_cmds=$lt_reload_cmds
11273
11274 # How to pass a linker flag through the compiler.
11275 wl=$lt_lt_prog_compiler_wl_RC
11276
11277 # Object file suffix (normally "o").
11278 objext="$ac_objext"
11279
11280 # Old archive suffix (normally "a").
11281 libext="$libext"
11282
11283 # Shared library suffix (normally ".so").
11284 shrext_cmds='$shrext_cmds'
11285
11286 # Executable file suffix (normally "").
11287 exeext="$exeext"
11288
11289 # Additional compiler flags for building library objects.
11290 pic_flag=$lt_lt_prog_compiler_pic_RC
11291 pic_mode=$pic_mode
11292
11293 # What is the maximum length of a command?
11294 max_cmd_len=$lt_cv_sys_max_cmd_len
11295
11296 # Does compiler simultaneously support -c and -o options?
11297 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11298
11299 # Must we lock files when doing compilation?
11300 need_locks=$lt_need_locks
11301
11302 # Do we need the lib prefix for modules?
11303 need_lib_prefix=$need_lib_prefix
11304
11305 # Do we need a version for libraries?
11306 need_version=$need_version
11307
11308 # Whether dlopen is supported.
11309 dlopen_support=$enable_dlopen
11310
11311 # Whether dlopen of programs is supported.
11312 dlopen_self=$enable_dlopen_self
11313
11314 # Whether dlopen of statically linked programs is supported.
11315 dlopen_self_static=$enable_dlopen_self_static
11316
11317 # Compiler flag to prevent dynamic linking.
11318 link_static_flag=$lt_lt_prog_compiler_static_RC
11319
11320 # Compiler flag to turn off builtin functions.
11321 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11322
11323 # Compiler flag to allow reflexive dlopens.
11324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11325
11326 # Compiler flag to generate shared objects directly from archives.
11327 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11328
11329 # Compiler flag to generate thread-safe objects.
11330 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11331
11332 # Library versioning type.
11333 version_type=$version_type
11334
11335 # Format of library name prefix.
11336 libname_spec=$lt_libname_spec
11337
11338 # List of archive names.  First name is the real one, the rest are links.
11339 # The last name is the one that the linker finds with -lNAME.
11340 library_names_spec=$lt_library_names_spec
11341
11342 # The coded name of the library, if different from the real name.
11343 soname_spec=$lt_soname_spec
11344
11345 # Commands used to build and install an old-style archive.
11346 RANLIB=$lt_RANLIB
11347 old_archive_cmds=$lt_old_archive_cmds_RC
11348 old_postinstall_cmds=$lt_old_postinstall_cmds
11349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11350
11351 # Create an old-style archive from a shared archive.
11352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11353
11354 # Create a temporary old-style archive to link instead of a shared archive.
11355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11356
11357 # Commands used to build and install a shared archive.
11358 archive_cmds=$lt_archive_cmds_RC
11359 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11360 postinstall_cmds=$lt_postinstall_cmds
11361 postuninstall_cmds=$lt_postuninstall_cmds
11362
11363 # Commands used to build a loadable module (assumed same as above if empty)
11364 module_cmds=$lt_module_cmds_RC
11365 module_expsym_cmds=$lt_module_expsym_cmds_RC
11366
11367 # Commands to strip libraries.
11368 old_striplib=$lt_old_striplib
11369 striplib=$lt_striplib
11370
11371 # Dependencies to place before the objects being linked to create a
11372 # shared library.
11373 predep_objects=$lt_predep_objects_RC
11374
11375 # Dependencies to place after the objects being linked to create a
11376 # shared library.
11377 postdep_objects=$lt_postdep_objects_RC
11378
11379 # Dependencies to place before the objects being linked to create a
11380 # shared library.
11381 predeps=$lt_predeps_RC
11382
11383 # Dependencies to place after the objects being linked to create a
11384 # shared library.
11385 postdeps=$lt_postdeps_RC
11386
11387 # The library search path used internally by the compiler when linking
11388 # a shared library.
11389 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11390
11391 # Method to check whether dependent libraries are shared objects.
11392 deplibs_check_method=$lt_deplibs_check_method
11393
11394 # Command to use when deplibs_check_method == file_magic.
11395 file_magic_cmd=$lt_file_magic_cmd
11396
11397 # Flag that allows shared libraries with undefined symbols to be built.
11398 allow_undefined_flag=$lt_allow_undefined_flag_RC
11399
11400 # Flag that forces no undefined symbols.
11401 no_undefined_flag=$lt_no_undefined_flag_RC
11402
11403 # Commands used to finish a libtool library installation in a directory.
11404 finish_cmds=$lt_finish_cmds
11405
11406 # Same as above, but a single script fragment to be evaled but not shown.
11407 finish_eval=$lt_finish_eval
11408
11409 # Take the output of nm and produce a listing of raw symbols and C names.
11410 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11411
11412 # Transform the output of nm in a proper C declaration
11413 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11414
11415 # Transform the output of nm in a C name address pair
11416 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11417
11418 # This is the shared library runtime path variable.
11419 runpath_var=$runpath_var
11420
11421 # This is the shared library path variable.
11422 shlibpath_var=$shlibpath_var
11423
11424 # Is shlibpath searched before the hard-coded library search path?
11425 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11426
11427 # How to hardcode a shared library path into an executable.
11428 hardcode_action=$hardcode_action_RC
11429
11430 # Whether we should hardcode library paths into libraries.
11431 hardcode_into_libs=$hardcode_into_libs
11432
11433 # Flag to hardcode \$libdir into a binary during linking.
11434 # This must work even if \$libdir does not exist.
11435 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11436
11437 # If ld is used when linking, flag to hardcode \$libdir into
11438 # a binary during linking. This must work even if \$libdir does
11439 # not exist.
11440 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11441
11442 # Whether we need a single -rpath flag with a separated argument.
11443 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11444
11445 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11446 # resulting binary.
11447 hardcode_direct=$hardcode_direct_RC
11448
11449 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11450 # resulting binary.
11451 hardcode_minus_L=$hardcode_minus_L_RC
11452
11453 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11454 # the resulting binary.
11455 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11456
11457 # Set to yes if building a shared library automatically hardcodes DIR into the library
11458 # and all subsequent libraries and executables linked against it.
11459 hardcode_automatic=$hardcode_automatic_RC
11460
11461 # Variables whose values should be saved in libtool wrapper scripts and
11462 # restored at relink time.
11463 variables_saved_for_relink="$variables_saved_for_relink"
11464
11465 # Whether libtool must link a program against all its dependency libraries.
11466 link_all_deplibs=$link_all_deplibs_RC
11467
11468 # Compile-time system search path for libraries
11469 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11470
11471 # Run-time system search path for libraries
11472 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11473
11474 # Fix the shell variable \$srcfile for the compiler.
11475 fix_srcfile_path="$fix_srcfile_path_RC"
11476
11477 # Set to yes if exported symbols are required.
11478 always_export_symbols=$always_export_symbols_RC
11479
11480 # The commands to list exported symbols.
11481 export_symbols_cmds=$lt_export_symbols_cmds_RC
11482
11483 # The commands to extract the exported symbol list from a shared archive.
11484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11485
11486 # Symbols that should not be listed in the preloaded symbols.
11487 exclude_expsyms=$lt_exclude_expsyms_RC
11488
11489 # Symbols that must always be exported.
11490 include_expsyms=$lt_include_expsyms_RC
11491
11492 # ### END LIBTOOL TAG CONFIG: $tagname
11493
11494 __EOF__
11495
11496
11497 else
11498   # If there is no Makefile yet, we rely on a make rule to execute
11499   # `config.status --recheck' to rerun these tests and create the
11500   # libtool script then.
11501   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11502   if test -f "$ltmain_in"; then
11503     test -f Makefile && make "$ltmain"
11504   fi
11505 fi
11506
11507
11508 ac_ext=c
11509 ac_cpp='$CPP $CPPFLAGS'
11510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11513
11514 CC="$lt_save_CC"
11515
11516         ;;
11517
11518       *)
11519         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11520 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11521    { (exit 1); exit 1; }; }
11522         ;;
11523       esac
11524
11525       # Append the new tag name to the list of available tags.
11526       if test -n "$tagname" ; then
11527       available_tags="$available_tags $tagname"
11528     fi
11529     fi
11530   done
11531   IFS="$lt_save_ifs"
11532
11533   # Now substitute the updated list of available tags.
11534   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11535     mv "${ofile}T" "$ofile"
11536     chmod +x "$ofile"
11537   else
11538     rm -f "${ofile}T"
11539     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11540 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11541    { (exit 1); exit 1; }; }
11542   fi
11543 fi
11544
11545
11546
11547 # This can be used to rebuild libtool when needed
11548 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11549
11550 # Always use our own libtool.
11551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11552
11553 # Prevent multiple expansion
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564 ol_link_perl=no
11565 if test $ol_enable_perl != no ; then
11566         # Extract the first word of "perl", so it can be a program name with args.
11567 set dummy perl; ac_word=$2
11568 echo "$as_me:$LINENO: checking for $ac_word" >&5
11569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11570 if test "${ac_cv_path_PERLBIN+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   case $PERLBIN in
11574   [\\/]* | ?:[\\/]*)
11575   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11576   ;;
11577   *)
11578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583   for ac_exec_ext in '' $ac_executable_extensions; do
11584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11587     break 2
11588   fi
11589 done
11590 done
11591
11592   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11593   ;;
11594 esac
11595 fi
11596 PERLBIN=$ac_cv_path_PERLBIN
11597
11598 if test -n "$PERLBIN"; then
11599   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11600 echo "${ECHO_T}$PERLBIN" >&6
11601 else
11602   echo "$as_me:$LINENO: result: no" >&5
11603 echo "${ECHO_T}no" >&6
11604 fi
11605
11606
11607         if test "no$PERLBIN" = "no" ; then
11608                 if test $ol_enable_perl = yes ; then
11609                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11610 echo "$as_me: error: could not locate perl" >&2;}
11611    { (exit 1); exit 1; }; }
11612                 fi
11613
11614         else
11615                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11616                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11617
11618                 if test x"$ol_enable_perl" = "xyes" ; then
11619                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11620                 else
11621                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11622                 fi
11623                                 ol_link_perl=yes
11624         fi
11625 fi
11626
11627 ac_ext=c
11628 ac_cpp='$CPP $CPPFLAGS'
11629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11632 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11633 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11634 # On Suns, sometimes $CPP names a directory.
11635 if test -n "$CPP" && test -d "$CPP"; then
11636   CPP=
11637 fi
11638 if test -z "$CPP"; then
11639   if test "${ac_cv_prog_CPP+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642       # Double quotes because CPP needs to be expanded
11643     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11644     do
11645       ac_preproc_ok=false
11646 for ac_c_preproc_warn_flag in '' yes
11647 do
11648   # Use a header file that comes with gcc, so configuring glibc
11649   # with a fresh cross-compiler works.
11650   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11651   # <limits.h> exists even on freestanding compilers.
11652   # On the NeXT, cc -E runs the code through the compiler's parser,
11653   # not just through cpp. "Syntax error" is here to catch this case.
11654   cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h.  */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h.  */
11660 #ifdef __STDC__
11661 # include <limits.h>
11662 #else
11663 # include <assert.h>
11664 #endif
11665                      Syntax error
11666 _ACEOF
11667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } >/dev/null; then
11675   if test -s conftest.err; then
11676     ac_cpp_err=$ac_c_preproc_warn_flag
11677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11678   else
11679     ac_cpp_err=
11680   fi
11681 else
11682   ac_cpp_err=yes
11683 fi
11684 if test -z "$ac_cpp_err"; then
11685   :
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690   # Broken: fails on valid input.
11691 continue
11692 fi
11693 rm -f conftest.err conftest.$ac_ext
11694
11695   # OK, works on sane cases.  Now check whether non-existent headers
11696   # can be detected and how.
11697   cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h.  */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h.  */
11703 #include <ac_nonexistent.h>
11704 _ACEOF
11705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } >/dev/null; then
11713   if test -s conftest.err; then
11714     ac_cpp_err=$ac_c_preproc_warn_flag
11715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11716   else
11717     ac_cpp_err=
11718   fi
11719 else
11720   ac_cpp_err=yes
11721 fi
11722 if test -z "$ac_cpp_err"; then
11723   # Broken: success on invalid input.
11724 continue
11725 else
11726   echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729   # Passes both tests.
11730 ac_preproc_ok=:
11731 break
11732 fi
11733 rm -f conftest.err conftest.$ac_ext
11734
11735 done
11736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11737 rm -f conftest.err conftest.$ac_ext
11738 if $ac_preproc_ok; then
11739   break
11740 fi
11741
11742     done
11743     ac_cv_prog_CPP=$CPP
11744
11745 fi
11746   CPP=$ac_cv_prog_CPP
11747 else
11748   ac_cv_prog_CPP=$CPP
11749 fi
11750 echo "$as_me:$LINENO: result: $CPP" >&5
11751 echo "${ECHO_T}$CPP" >&6
11752 ac_preproc_ok=false
11753 for ac_c_preproc_warn_flag in '' yes
11754 do
11755   # Use a header file that comes with gcc, so configuring glibc
11756   # with a fresh cross-compiler works.
11757   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758   # <limits.h> exists even on freestanding compilers.
11759   # On the NeXT, cc -E runs the code through the compiler's parser,
11760   # not just through cpp. "Syntax error" is here to catch this case.
11761   cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772                      Syntax error
11773 _ACEOF
11774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11775   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } >/dev/null; then
11782   if test -s conftest.err; then
11783     ac_cpp_err=$ac_c_preproc_warn_flag
11784     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11785   else
11786     ac_cpp_err=
11787   fi
11788 else
11789   ac_cpp_err=yes
11790 fi
11791 if test -z "$ac_cpp_err"; then
11792   :
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797   # Broken: fails on valid input.
11798 continue
11799 fi
11800 rm -f conftest.err conftest.$ac_ext
11801
11802   # OK, works on sane cases.  Now check whether non-existent headers
11803   # can be detected and how.
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <ac_nonexistent.h>
11811 _ACEOF
11812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11814   ac_status=$?
11815   grep -v '^ *+' conftest.er1 >conftest.err
11816   rm -f conftest.er1
11817   cat conftest.err >&5
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); } >/dev/null; then
11820   if test -s conftest.err; then
11821     ac_cpp_err=$ac_c_preproc_warn_flag
11822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11823   else
11824     ac_cpp_err=
11825   fi
11826 else
11827   ac_cpp_err=yes
11828 fi
11829 if test -z "$ac_cpp_err"; then
11830   # Broken: success on invalid input.
11831 continue
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836   # Passes both tests.
11837 ac_preproc_ok=:
11838 break
11839 fi
11840 rm -f conftest.err conftest.$ac_ext
11841
11842 done
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then
11846   :
11847 else
11848   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11849 See \`config.log' for more details." >&5
11850 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11851 See \`config.log' for more details." >&2;}
11852    { (exit 1); exit 1; }; }
11853 fi
11854
11855 ac_ext=c
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860
11861
11862 case $host_os in
11863   *mingw32* ) ac_cv_mingw32=yes ;;
11864   *cygwin* ) ac_cv_cygwin=yes ;;
11865 esac
11866
11867
11868
11869
11870 cat >>confdefs.h <<_ACEOF
11871 #define EXEEXT "${EXEEXT}"
11872 _ACEOF
11873
11874
11875 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11876 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11877 if test "${ac_cv_lib_be_be_app+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-lbe -lroot -lnet $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888
11889 /* Override any gcc2 internal prototype to avoid an error.  */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 /* We use char because int might match the return type of a gcc2
11894    builtin and then its argument prototype would still apply.  */
11895 char be_app ();
11896 int
11897 main ()
11898 {
11899 be_app ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906   (eval $ac_link) 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag"
11914                          || test ! -s conftest.err'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; } &&
11920          { ac_try='test -s conftest$ac_exeext'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; }; then
11926   ac_cv_lib_be_be_app=yes
11927 else
11928   echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 ac_cv_lib_be_be_app=no
11932 fi
11933 rm -f conftest.err conftest.$ac_objext \
11934       conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11936 fi
11937 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11938 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11939 if test $ac_cv_lib_be_be_app = yes; then
11940   LIBS="$LIBS -lbe -lroot -lnet"
11941 else
11942   :
11943 fi
11944
11945
11946 ac_ext=c
11947 ac_cpp='$CPP $CPPFLAGS'
11948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951 if test -n "$ac_tool_prefix"; then
11952   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11954 echo "$as_me:$LINENO: checking for $ac_word" >&5
11955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11956 if test "${ac_cv_prog_CC+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959   if test -n "$CC"; then
11960   ac_cv_prog_CC="$CC" # Let the user override the test.
11961 else
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11964 do
11965   IFS=$as_save_IFS
11966   test -z "$as_dir" && as_dir=.
11967   for ac_exec_ext in '' $ac_executable_extensions; do
11968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11969     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11971     break 2
11972   fi
11973 done
11974 done
11975
11976 fi
11977 fi
11978 CC=$ac_cv_prog_CC
11979 if test -n "$CC"; then
11980   echo "$as_me:$LINENO: result: $CC" >&5
11981 echo "${ECHO_T}$CC" >&6
11982 else
11983   echo "$as_me:$LINENO: result: no" >&5
11984 echo "${ECHO_T}no" >&6
11985 fi
11986
11987 fi
11988 if test -z "$ac_cv_prog_CC"; then
11989   ac_ct_CC=$CC
11990   # Extract the first word of "gcc", so it can be a program name with args.
11991 set dummy gcc; ac_word=$2
11992 echo "$as_me:$LINENO: checking for $ac_word" >&5
11993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   if test -n "$ac_ct_CC"; then
11998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11999 else
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001 for as_dir in $PATH
12002 do
12003   IFS=$as_save_IFS
12004   test -z "$as_dir" && as_dir=.
12005   for ac_exec_ext in '' $ac_executable_extensions; do
12006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12007     ac_cv_prog_ac_ct_CC="gcc"
12008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12009     break 2
12010   fi
12011 done
12012 done
12013
12014 fi
12015 fi
12016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12017 if test -n "$ac_ct_CC"; then
12018   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12019 echo "${ECHO_T}$ac_ct_CC" >&6
12020 else
12021   echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6
12023 fi
12024
12025   CC=$ac_ct_CC
12026 else
12027   CC="$ac_cv_prog_CC"
12028 fi
12029
12030 if test -z "$CC"; then
12031   if test -n "$ac_tool_prefix"; then
12032   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12033 set dummy ${ac_tool_prefix}cc; ac_word=$2
12034 echo "$as_me:$LINENO: checking for $ac_word" >&5
12035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12036 if test "${ac_cv_prog_CC+set}" = set; then
12037   echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039   if test -n "$CC"; then
12040   ac_cv_prog_CC="$CC" # Let the user override the test.
12041 else
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12044 do
12045   IFS=$as_save_IFS
12046   test -z "$as_dir" && as_dir=.
12047   for ac_exec_ext in '' $ac_executable_extensions; do
12048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049     ac_cv_prog_CC="${ac_tool_prefix}cc"
12050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12051     break 2
12052   fi
12053 done
12054 done
12055
12056 fi
12057 fi
12058 CC=$ac_cv_prog_CC
12059 if test -n "$CC"; then
12060   echo "$as_me:$LINENO: result: $CC" >&5
12061 echo "${ECHO_T}$CC" >&6
12062 else
12063   echo "$as_me:$LINENO: result: no" >&5
12064 echo "${ECHO_T}no" >&6
12065 fi
12066
12067 fi
12068 if test -z "$ac_cv_prog_CC"; then
12069   ac_ct_CC=$CC
12070   # Extract the first word of "cc", so it can be a program name with args.
12071 set dummy cc; ac_word=$2
12072 echo "$as_me:$LINENO: checking for $ac_word" >&5
12073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12074 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   if test -n "$ac_ct_CC"; then
12078   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12079 else
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085   for ac_exec_ext in '' $ac_executable_extensions; do
12086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087     ac_cv_prog_ac_ct_CC="cc"
12088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12089     break 2
12090   fi
12091 done
12092 done
12093
12094 fi
12095 fi
12096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12097 if test -n "$ac_ct_CC"; then
12098   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12099 echo "${ECHO_T}$ac_ct_CC" >&6
12100 else
12101   echo "$as_me:$LINENO: result: no" >&5
12102 echo "${ECHO_T}no" >&6
12103 fi
12104
12105   CC=$ac_ct_CC
12106 else
12107   CC="$ac_cv_prog_CC"
12108 fi
12109
12110 fi
12111 if test -z "$CC"; then
12112   # Extract the first word of "cc", so it can be a program name with args.
12113 set dummy cc; ac_word=$2
12114 echo "$as_me:$LINENO: checking for $ac_word" >&5
12115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12116 if test "${ac_cv_prog_CC+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   if test -n "$CC"; then
12120   ac_cv_prog_CC="$CC" # Let the user override the test.
12121 else
12122   ac_prog_rejected=no
12123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124 for as_dir in $PATH
12125 do
12126   IFS=$as_save_IFS
12127   test -z "$as_dir" && as_dir=.
12128   for ac_exec_ext in '' $ac_executable_extensions; do
12129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12130     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12131        ac_prog_rejected=yes
12132        continue
12133      fi
12134     ac_cv_prog_CC="cc"
12135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12136     break 2
12137   fi
12138 done
12139 done
12140
12141 if test $ac_prog_rejected = yes; then
12142   # We found a bogon in the path, so make sure we never use it.
12143   set dummy $ac_cv_prog_CC
12144   shift
12145   if test $# != 0; then
12146     # We chose a different compiler from the bogus one.
12147     # However, it has the same basename, so the bogon will be chosen
12148     # first if we set CC to just the basename; use the full file name.
12149     shift
12150     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12151   fi
12152 fi
12153 fi
12154 fi
12155 CC=$ac_cv_prog_CC
12156 if test -n "$CC"; then
12157   echo "$as_me:$LINENO: result: $CC" >&5
12158 echo "${ECHO_T}$CC" >&6
12159 else
12160   echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12162 fi
12163
12164 fi
12165 if test -z "$CC"; then
12166   if test -n "$ac_tool_prefix"; then
12167   for ac_prog in cl
12168   do
12169     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12171 echo "$as_me:$LINENO: checking for $ac_word" >&5
12172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12173 if test "${ac_cv_prog_CC+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   if test -n "$CC"; then
12177   ac_cv_prog_CC="$CC" # Let the user override the test.
12178 else
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184   for ac_exec_ext in '' $ac_executable_extensions; do
12185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
12194 fi
12195 CC=$ac_cv_prog_CC
12196 if test -n "$CC"; then
12197   echo "$as_me:$LINENO: result: $CC" >&5
12198 echo "${ECHO_T}$CC" >&6
12199 else
12200   echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6
12202 fi
12203
12204     test -n "$CC" && break
12205   done
12206 fi
12207 if test -z "$CC"; then
12208   ac_ct_CC=$CC
12209   for ac_prog in cl
12210 do
12211   # Extract the first word of "$ac_prog", so it can be a program name with args.
12212 set dummy $ac_prog; ac_word=$2
12213 echo "$as_me:$LINENO: checking for $ac_word" >&5
12214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   if test -n "$ac_ct_CC"; then
12219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12220 else
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12223 do
12224   IFS=$as_save_IFS
12225   test -z "$as_dir" && as_dir=.
12226   for ac_exec_ext in '' $ac_executable_extensions; do
12227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228     ac_cv_prog_ac_ct_CC="$ac_prog"
12229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12230     break 2
12231   fi
12232 done
12233 done
12234
12235 fi
12236 fi
12237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12238 if test -n "$ac_ct_CC"; then
12239   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12240 echo "${ECHO_T}$ac_ct_CC" >&6
12241 else
12242   echo "$as_me:$LINENO: result: no" >&5
12243 echo "${ECHO_T}no" >&6
12244 fi
12245
12246   test -n "$ac_ct_CC" && break
12247 done
12248
12249   CC=$ac_ct_CC
12250 fi
12251
12252 fi
12253
12254
12255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12256 See \`config.log' for more details." >&5
12257 echo "$as_me: error: no acceptable C compiler found in \$PATH
12258 See \`config.log' for more details." >&2;}
12259    { (exit 1); exit 1; }; }
12260
12261 # Provide some information about the compiler.
12262 echo "$as_me:$LINENO:" \
12263      "checking for C compiler version" >&5
12264 ac_compiler=`set X $ac_compile; echo $2`
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12266   (eval $ac_compiler --version </dev/null >&5) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }
12270 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12271   (eval $ac_compiler -v </dev/null >&5) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }
12275 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12276   (eval $ac_compiler -V </dev/null >&5) 2>&5
12277   ac_status=$?
12278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279   (exit $ac_status); }
12280
12281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292
12293 int
12294 main ()
12295 {
12296 #ifndef __GNUC__
12297        choke me
12298 #endif
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -z "$ac_c_werror_flag"
12314                          || test ! -s conftest.err'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_compiler_gnu=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_compiler_gnu=no
12332 fi
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12335
12336 fi
12337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12339 GCC=`test $ac_compiler_gnu = yes && echo yes`
12340 ac_test_CFLAGS=${CFLAGS+set}
12341 ac_save_CFLAGS=$CFLAGS
12342 CFLAGS="-g"
12343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12345 if test "${ac_cv_prog_cc_g+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   cat >conftest.$ac_ext <<_ACEOF
12349 /* confdefs.h.  */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h.  */
12354
12355 int
12356 main ()
12357 {
12358
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12365   (eval $ac_compile) 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_c_werror_flag"
12373                          || test ! -s conftest.err'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   ac_cv_prog_cc_g=yes
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 ac_cv_prog_cc_g=no
12391 fi
12392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 fi
12394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12396 if test "$ac_test_CFLAGS" = set; then
12397   CFLAGS=$ac_save_CFLAGS
12398 elif test $ac_cv_prog_cc_g = yes; then
12399   if test "$GCC" = yes; then
12400     CFLAGS="-g -O2"
12401   else
12402     CFLAGS="-g"
12403   fi
12404 else
12405   if test "$GCC" = yes; then
12406     CFLAGS="-O2"
12407   else
12408     CFLAGS=
12409   fi
12410 fi
12411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   ac_cv_prog_cc_stdc=no
12417 ac_save_CC=$CC
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h.  */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h.  */
12424 #include <stdarg.h>
12425 #include <stdio.h>
12426 #include <sys/types.h>
12427 #include <sys/stat.h>
12428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12429 struct buf { int x; };
12430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12431 static char *e (p, i)
12432      char **p;
12433      int i;
12434 {
12435   return p[i];
12436 }
12437 static char *f (char * (*g) (char **, int), char **p, ...)
12438 {
12439   char *s;
12440   va_list v;
12441   va_start (v,p);
12442   s = g (p, va_arg (v,int));
12443   va_end (v);
12444   return s;
12445 }
12446
12447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12448    function prototypes and stuff, but not '\xHH' hex character constants.
12449    These don't provoke an error unfortunately, instead are silently treated
12450    as 'x'.  The following induces an error, until -std1 is added to get
12451    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12452    array size at least.  It's necessary to write '\x00'==0 to get something
12453    that's true only with -std1.  */
12454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12455
12456 int test (int i, double x);
12457 struct s1 {int (*f) (int a);};
12458 struct s2 {int (*f) (double a);};
12459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12460 int argc;
12461 char **argv;
12462 int
12463 main ()
12464 {
12465 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 # Don't try gcc -ansi; that turns off useful extensions and
12471 # breaks some systems' header files.
12472 # AIX                   -qlanglvl=ansi
12473 # Ultrix and OSF/1      -std1
12474 # HP-UX 10.20 and later -Ae
12475 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12476 # SVR4                  -Xc -D__EXTENSIONS__
12477 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12478 do
12479   CC="$ac_save_CC $ac_arg"
12480   rm -f conftest.$ac_objext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12482   (eval $ac_compile) 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag"
12490                          || test ! -s conftest.err'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; } &&
12496          { ac_try='test -s conftest.$ac_objext'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502   ac_cv_prog_cc_stdc=$ac_arg
12503 break
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 fi
12509 rm -f conftest.err conftest.$ac_objext
12510 done
12511 rm -f conftest.$ac_ext conftest.$ac_objext
12512 CC=$ac_save_CC
12513
12514 fi
12515
12516 case "x$ac_cv_prog_cc_stdc" in
12517   x|xno)
12518     echo "$as_me:$LINENO: result: none needed" >&5
12519 echo "${ECHO_T}none needed" >&6 ;;
12520   *)
12521     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12523     CC="$CC $ac_cv_prog_cc_stdc" ;;
12524 esac
12525
12526 # Some people use a C++ compiler to compile C.  Since we use `exit',
12527 # in C++ we need to declare it.  In case someone uses the same compiler
12528 # for both compiling C and C++ we need to have the C++ compiler decide
12529 # the declaration of exit, since it's the most demanding environment.
12530 cat >conftest.$ac_ext <<_ACEOF
12531 #ifndef __cplusplus
12532   choke me
12533 #endif
12534 _ACEOF
12535 rm -f conftest.$ac_objext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537   (eval $ac_compile) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"
12545                          || test ! -s conftest.err'
12546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547   (eval $ac_try) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest.$ac_objext'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   for ac_declaration in \
12558    '' \
12559    'extern "C" void std::exit (int) throw (); using std::exit;' \
12560    'extern "C" void std::exit (int); using std::exit;' \
12561    'extern "C" void exit (int) throw ();' \
12562    'extern "C" void exit (int);' \
12563    'void exit (int);'
12564 do
12565   cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 $ac_declaration
12572 #include <stdlib.h>
12573 int
12574 main ()
12575 {
12576 exit (42);
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583   (eval $ac_compile) 2>conftest.er1
12584   ac_status=$?
12585   grep -v '^ *+' conftest.er1 >conftest.err
12586   rm -f conftest.er1
12587   cat conftest.err >&5
12588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589   (exit $ac_status); } &&
12590          { ac_try='test -z "$ac_c_werror_flag"
12591                          || test ! -s conftest.err'
12592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593   (eval $ac_try) 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; } &&
12597          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12603   :
12604 else
12605   echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 continue
12609 fi
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611   cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 $ac_declaration
12618 int
12619 main ()
12620 {
12621 exit (42);
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628   (eval $ac_compile) 2>conftest.er1
12629   ac_status=$?
12630   grep -v '^ *+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } &&
12635          { ac_try='test -z "$ac_c_werror_flag"
12636                          || test ! -s conftest.err'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; } &&
12642          { ac_try='test -s conftest.$ac_objext'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   break
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 fi
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 done
12656 rm -f conftest*
12657 if test -n "$ac_declaration"; then
12658   echo '#ifdef __cplusplus' >>confdefs.h
12659   echo $ac_declaration      >>confdefs.h
12660   echo '#endif'             >>confdefs.h
12661 fi
12662
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 fi
12668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12669 ac_ext=c
12670 ac_cpp='$CPP $CPPFLAGS'
12671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12674
12675 depcc="$CC"   am_compiler_list=
12676
12677 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12678 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12683   # We make a subdir and do the tests there.  Otherwise we can end up
12684   # making bogus files that we don't know about and never remove.  For
12685   # instance it was reported that on HP-UX the gcc test will end up
12686   # making a dummy file named `D' -- because `-MD' means `put the output
12687   # in D'.
12688   mkdir conftest.dir
12689   # Copy depcomp to subdir because otherwise we won't find it if we're
12690   # using a relative directory.
12691   cp "$am_depcomp" conftest.dir
12692   cd conftest.dir
12693   # We will build objects and dependencies in a subdirectory because
12694   # it helps to detect inapplicable dependency modes.  For instance
12695   # both Tru64's cc and ICC support -MD to output dependencies as a
12696   # side effect of compilation, but ICC will put the dependencies in
12697   # the current directory while Tru64 will put them in the object
12698   # directory.
12699   mkdir sub
12700
12701   am_cv_CC_dependencies_compiler_type=none
12702   if test "$am_compiler_list" = ""; then
12703      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12704   fi
12705   for depmode in $am_compiler_list; do
12706     # Setup a source with many dependencies, because some compilers
12707     # like to wrap large dependency lists on column 80 (with \), and
12708     # we should not choose a depcomp mode which is confused by this.
12709     #
12710     # We need to recreate these files for each test, as the compiler may
12711     # overwrite some of them when testing with obscure command lines.
12712     # This happens at least with the AIX C compiler.
12713     : > sub/conftest.c
12714     for i in 1 2 3 4 5 6; do
12715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12716       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12717       # Solaris 8's {/usr,}/bin/sh.
12718       touch sub/conftst$i.h
12719     done
12720     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12721
12722     case $depmode in
12723     nosideeffect)
12724       # after this tag, mechanisms are not by side-effect, so they'll
12725       # only be used when explicitly requested
12726       if test "x$enable_dependency_tracking" = xyes; then
12727         continue
12728       else
12729         break
12730       fi
12731       ;;
12732     none) break ;;
12733     esac
12734     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12735     # mode.  It turns out that the SunPro C++ compiler does not properly
12736     # handle `-M -o', and we need to detect this.
12737     if depmode=$depmode \
12738        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12739        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12740        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12741          >/dev/null 2>conftest.err &&
12742        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12743        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12744        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12745       # icc doesn't choke on unknown options, it will just issue warnings
12746       # or remarks (even with -Werror).  So we grep stderr for any message
12747       # that says an option was ignored or not supported.
12748       # When given -MP, icc 7.0 and 7.1 complain thusly:
12749       #   icc: Command line warning: ignoring option '-M'; no argument required
12750       # The diagnosis changed in icc 8.0:
12751       #   icc: Command line remark: option '-MP' not supported
12752       if (grep 'ignoring option' conftest.err ||
12753           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12754         am_cv_CC_dependencies_compiler_type=$depmode
12755         break
12756       fi
12757     fi
12758   done
12759
12760   cd ..
12761   rm -rf conftest.dir
12762 else
12763   am_cv_CC_dependencies_compiler_type=none
12764 fi
12765
12766 fi
12767 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12768 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12770
12771
12772
12773 if
12774   test "x$enable_dependency_tracking" != xno \
12775   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12776   am__fastdepCC_TRUE=
12777   am__fastdepCC_FALSE='#'
12778 else
12779   am__fastdepCC_TRUE='#'
12780   am__fastdepCC_FALSE=
12781 fi
12782
12783
12784 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12785         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12786 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12787    { (exit 1); exit 1; }; }
12788 fi
12789
12790 # test for make depend flag
12791 OL_MKDEP=
12792 OL_MKDEP_FLAGS=
12793 if test -z "${MKDEP}"; then
12794         OL_MKDEP="${CC-cc}"
12795         if test -z "${MKDEP_FLAGS}"; then
12796                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12797 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12798 if test "${ol_cv_mkdep+set}" = set; then
12799   echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801
12802                         ol_cv_mkdep=no
12803                         for flag in "-M" "-xM"; do
12804                                 cat > conftest.c <<EOF
12805  noCode;
12806 EOF
12807                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809   (eval $ac_try) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; } \
12813                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12814                                 then
12815                                         if test ! -f conftest."${ac_object}" ; then
12816                                                 ol_cv_mkdep=$flag
12817                                                 OL_MKDEP_FLAGS="$flag"
12818                                                 break
12819                                         fi
12820                                 fi
12821                         done
12822                         rm -f conftest*
12823
12824 fi
12825 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12826 echo "${ECHO_T}$ol_cv_mkdep" >&6
12827         else
12828                 cc_cv_mkdep=yes
12829                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12830         fi
12831 else
12832         cc_cv_mkdep=yes
12833         OL_MKDEP="${MKDEP}"
12834         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12835 fi
12836
12837
12838
12839 if test "${ol_cv_mkdep}" = no ; then
12840         # this will soon become an error
12841         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12842 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12843 fi
12844
12845 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12846 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12847 if test "${ac_cv_lib_s_afopen+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   ac_check_lib_save_LIBS=$LIBS
12851 LIBS="-ls  $LIBS"
12852 cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858
12859 /* Override any gcc2 internal prototype to avoid an error.  */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 /* We use char because int might match the return type of a gcc2
12864    builtin and then its argument prototype would still apply.  */
12865 char afopen ();
12866 int
12867 main ()
12868 {
12869 afopen ();
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 rm -f conftest.$ac_objext conftest$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876   (eval $ac_link) 2>conftest.er1
12877   ac_status=$?
12878   grep -v '^ *+' conftest.er1 >conftest.err
12879   rm -f conftest.er1
12880   cat conftest.err >&5
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); } &&
12883          { ac_try='test -z "$ac_c_werror_flag"
12884                          || test ! -s conftest.err'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; } &&
12890          { ac_try='test -s conftest$ac_exeext'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; }; then
12896   ac_cv_lib_s_afopen=yes
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_cv_lib_s_afopen=no
12902 fi
12903 rm -f conftest.err conftest.$ac_objext \
12904       conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12908 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12909 if test $ac_cv_lib_s_afopen = yes; then
12910
12911         AUTH_LIBS=-ls
12912
12913 cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_AIX_SECURITY 1
12915 _ACEOF
12916
12917
12918 fi
12919
12920
12921 case "$target" in
12922 *-ibm-openedition)
12923         ac_cv_func_getopt=no
12924
12925 cat >>confdefs.h <<\_ACEOF
12926 #define BOTH_STRINGS_H 1
12927 _ACEOF
12928
12929         ;;
12930 esac
12931
12932 ol_link_modules=no
12933 WITH_MODULES_ENABLED=no
12934 if test $ol_enable_modules != no ; then
12935
12936 for ac_header in ltdl.h
12937 do
12938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12940   echo "$as_me:$LINENO: checking for $ac_header" >&5
12941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12943   echo $ECHO_N "(cached) $ECHO_C" >&6
12944 fi
12945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12947 else
12948   # Is the header compilable?
12949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 $ac_includes_default
12958 #include <$ac_header>
12959 _ACEOF
12960 rm -f conftest.$ac_objext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962   (eval $ac_compile) 2>conftest.er1
12963   ac_status=$?
12964   grep -v '^ *+' conftest.er1 >conftest.err
12965   rm -f conftest.er1
12966   cat conftest.err >&5
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); } &&
12969          { ac_try='test -z "$ac_c_werror_flag"
12970                          || test ! -s conftest.err'
12971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972   (eval $ac_try) 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); }; } &&
12976          { ac_try='test -s conftest.$ac_objext'
12977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978   (eval $ac_try) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); }; }; then
12982   ac_header_compiler=yes
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 ac_header_compiler=no
12988 fi
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12991 echo "${ECHO_T}$ac_header_compiler" >&6
12992
12993 # Is the header present?
12994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12996 cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002 #include <$ac_header>
13003 _ACEOF
13004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13006   ac_status=$?
13007   grep -v '^ *+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } >/dev/null; then
13012   if test -s conftest.err; then
13013     ac_cpp_err=$ac_c_preproc_warn_flag
13014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13015   else
13016     ac_cpp_err=
13017   fi
13018 else
13019   ac_cpp_err=yes
13020 fi
13021 if test -z "$ac_cpp_err"; then
13022   ac_header_preproc=yes
13023 else
13024   echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027   ac_header_preproc=no
13028 fi
13029 rm -f conftest.err conftest.$ac_ext
13030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13031 echo "${ECHO_T}$ac_header_preproc" >&6
13032
13033 # So?  What about this header?
13034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13035   yes:no: )
13036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13040     ac_header_preproc=yes
13041     ;;
13042   no:yes:* )
13043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13055     (
13056       cat <<\_ASBOX
13057 ## ------------------------------------------ ##
13058 ## Report this to the AC_PACKAGE_NAME lists.  ##
13059 ## ------------------------------------------ ##
13060 _ASBOX
13061     ) |
13062       sed "s/^/$as_me: WARNING:     /" >&2
13063     ;;
13064 esac
13065 echo "$as_me:$LINENO: checking for $ac_header" >&5
13066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   eval "$as_ac_Header=\$ac_header_preproc"
13071 fi
13072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13074
13075 fi
13076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13077   cat >>confdefs.h <<_ACEOF
13078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13079 _ACEOF
13080
13081 fi
13082
13083 done
13084
13085
13086         if test $ac_cv_header_ltdl_h = no ; then
13087                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13088 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13089    { (exit 1); exit 1; }; }
13090         fi
13091
13092         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13093 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13094 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13095   echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097   ac_check_lib_save_LIBS=$LIBS
13098 LIBS="-lltdl  $LIBS"
13099 cat >conftest.$ac_ext <<_ACEOF
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105
13106 /* Override any gcc2 internal prototype to avoid an error.  */
13107 #ifdef __cplusplus
13108 extern "C"
13109 #endif
13110 /* We use char because int might match the return type of a gcc2
13111    builtin and then its argument prototype would still apply.  */
13112 char lt_dlinit ();
13113 int
13114 main ()
13115 {
13116 lt_dlinit ();
13117   ;
13118   return 0;
13119 }
13120 _ACEOF
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13123   (eval $ac_link) 2>conftest.er1
13124   ac_status=$?
13125   grep -v '^ *+' conftest.er1 >conftest.err
13126   rm -f conftest.er1
13127   cat conftest.err >&5
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } &&
13130          { ac_try='test -z "$ac_c_werror_flag"
13131                          || test ! -s conftest.err'
13132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133   (eval $ac_try) 2>&5
13134   ac_status=$?
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); }; } &&
13137          { ac_try='test -s conftest$ac_exeext'
13138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139   (eval $ac_try) 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); }; }; then
13143   ac_cv_lib_ltdl_lt_dlinit=yes
13144 else
13145   echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_cv_lib_ltdl_lt_dlinit=no
13149 fi
13150 rm -f conftest.err conftest.$ac_objext \
13151       conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13153 fi
13154 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13155 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13156 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13157
13158                 MODULES_LIBS=-lltdl
13159
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_LIBLTDL 1
13162 _ACEOF
13163
13164
13165 fi
13166
13167
13168         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13169                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13170 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13171    { (exit 1); exit 1; }; }
13172         fi
13173         ol_link_modules=yes
13174         WITH_MODULES_ENABLED=yes
13175
13176 else
13177         for i in $Backends; do
13178                 eval "ol_tmp=\$ol_enable_$i"
13179                 if test $ol_tmp = mod ; then
13180                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13181 echo "$as_me: WARNING: building static $i backend" >&2;}
13182                         eval "ol_enable_$i=yes"
13183                 fi
13184         done
13185         for i in $Overlays; do
13186                 eval "ol_tmp=\$ol_enable_$i"
13187                 if test $ol_tmp = mod ; then
13188                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13189 echo "$as_me: WARNING: building static $i overlay" >&2;}
13190                         eval "ol_enable_$i=yes"
13191                 fi
13192         done
13193 fi
13194
13195 # test for EBCDIC
13196 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13197 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13198 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201
13202         cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208
13209 #if !('M' == 0xd4)
13210 #include <__ASCII__/generate_error.h>
13211 #endif
13212
13213 _ACEOF
13214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13215   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13216   ac_status=$?
13217   grep -v '^ *+' conftest.er1 >conftest.err
13218   rm -f conftest.er1
13219   cat conftest.err >&5
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } >/dev/null; then
13222   if test -s conftest.err; then
13223     ac_cpp_err=$ac_c_preproc_warn_flag
13224     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13225   else
13226     ac_cpp_err=
13227   fi
13228 else
13229   ac_cpp_err=yes
13230 fi
13231 if test -z "$ac_cpp_err"; then
13232   ol_cv_cpp_ebcdic=yes
13233 else
13234   echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237   ol_cv_cpp_ebcdic=no
13238 fi
13239 rm -f conftest.err conftest.$ac_ext
13240 fi
13241 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13242 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13243 if test $ol_cv_cpp_ebcdic = yes ; then
13244
13245 cat >>confdefs.h <<\_ACEOF
13246 #define HAVE_EBCDIC 1
13247 _ACEOF
13248
13249 fi
13250
13251 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13252 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13253 if test "${ol_cv_header_stdc+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262 #include <stdlib.h>
13263 #include <stdarg.h>
13264 #include <string.h>
13265 #include <float.h>
13266 _ACEOF
13267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13268   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13269   ac_status=$?
13270   grep -v '^ *+' conftest.er1 >conftest.err
13271   rm -f conftest.er1
13272   cat conftest.err >&5
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } >/dev/null; then
13275   if test -s conftest.err; then
13276     ac_cpp_err=$ac_c_preproc_warn_flag
13277     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13278   else
13279     ac_cpp_err=
13280   fi
13281 else
13282   ac_cpp_err=yes
13283 fi
13284 if test -z "$ac_cpp_err"; then
13285   ol_cv_header_stdc=yes
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290   ol_cv_header_stdc=no
13291 fi
13292 rm -f conftest.err conftest.$ac_ext
13293
13294 if test $ol_cv_header_stdc = yes; then
13295   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 #include <string.h>
13303
13304 _ACEOF
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306   $EGREP "memchr" >/dev/null 2>&1; then
13307   :
13308 else
13309   ol_cv_header_stdc=no
13310 fi
13311 rm -f conftest*
13312
13313 fi
13314
13315 if test $ol_cv_header_stdc = yes; then
13316   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13317 cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 #include <stdlib.h>
13324
13325 _ACEOF
13326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13327   $EGREP "free" >/dev/null 2>&1; then
13328   :
13329 else
13330   ol_cv_header_stdc=no
13331 fi
13332 rm -f conftest*
13333
13334 fi
13335
13336 if test $ol_cv_header_stdc = yes; then
13337   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13338 if test "$cross_compiling" = yes; then
13339   :
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #include <ctype.h>
13348 #ifndef HAVE_EBCDIC
13349 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13350 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13351 #else
13352 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13353                 || ('j' <= (c) && (c) <= 'r') \
13354                 || ('s' <= (c) && (c) <= 'z'))
13355 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13356 #endif
13357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13358 int main () { int i; for (i = 0; i < 256; i++)
13359 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13360 exit (0); }
13361
13362 _ACEOF
13363 rm -f conftest$ac_exeext
13364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13365   (eval $ac_link) 2>&5
13366   ac_status=$?
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; }; then
13374   :
13375 else
13376   echo "$as_me: program exited with status $ac_status" >&5
13377 echo "$as_me: failed program was:" >&5
13378 sed 's/^/| /' conftest.$ac_ext >&5
13379
13380 ( exit $ac_status )
13381 ol_cv_header_stdc=no
13382 fi
13383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13384 fi
13385 fi
13386 fi
13387 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13388 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13389 if test $ol_cv_header_stdc = yes; then
13390   cat >>confdefs.h <<\_ACEOF
13391 #define STDC_HEADERS 1
13392 _ACEOF
13393
13394 fi
13395 ac_cv_header_stdc=disable
13396
13397
13398 if test $ol_cv_header_stdc != yes; then
13399         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13400 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13401 fi
13402
13403
13404
13405
13406
13407
13408 ac_header_dirent=no
13409 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13410   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13411 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13412 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13414   echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416   cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h.  */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h.  */
13422 #include <sys/types.h>
13423 #include <$ac_hdr>
13424
13425 int
13426 main ()
13427 {
13428 if ((DIR *) 0)
13429 return 0;
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436   (eval $ac_compile) 2>conftest.er1
13437   ac_status=$?
13438   grep -v '^ *+' conftest.er1 >conftest.err
13439   rm -f conftest.er1
13440   cat conftest.err >&5
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } &&
13443          { ac_try='test -z "$ac_c_werror_flag"
13444                          || test ! -s conftest.err'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; } &&
13450          { ac_try='test -s conftest.$ac_objext'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; }; then
13456   eval "$as_ac_Header=yes"
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 eval "$as_ac_Header=no"
13462 fi
13463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13464 fi
13465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13468   cat >>confdefs.h <<_ACEOF
13469 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13470 _ACEOF
13471
13472 ac_header_dirent=$ac_hdr; break
13473 fi
13474
13475 done
13476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13477 if test $ac_header_dirent = dirent.h; then
13478   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13479 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13480 if test "${ac_cv_search_opendir+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483   ac_func_search_save_LIBS=$LIBS
13484 ac_cv_search_opendir=no
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491
13492 /* Override any gcc2 internal prototype to avoid an error.  */
13493 #ifdef __cplusplus
13494 extern "C"
13495 #endif
13496 /* We use char because int might match the return type of a gcc2
13497    builtin and then its argument prototype would still apply.  */
13498 char opendir ();
13499 int
13500 main ()
13501 {
13502 opendir ();
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509   (eval $ac_link) 2>conftest.er1
13510   ac_status=$?
13511   grep -v '^ *+' conftest.er1 >conftest.err
13512   rm -f conftest.er1
13513   cat conftest.err >&5
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); } &&
13516          { ac_try='test -z "$ac_c_werror_flag"
13517                          || test ! -s conftest.err'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; } &&
13523          { ac_try='test -s conftest$ac_exeext'
13524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525   (eval $ac_try) 2>&5
13526   ac_status=$?
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); }; }; then
13529   ac_cv_search_opendir="none required"
13530 else
13531   echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 fi
13535 rm -f conftest.err conftest.$ac_objext \
13536       conftest$ac_exeext conftest.$ac_ext
13537 if test "$ac_cv_search_opendir" = no; then
13538   for ac_lib in dir; do
13539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13540     cat >conftest.$ac_ext <<_ACEOF
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546
13547 /* Override any gcc2 internal prototype to avoid an error.  */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 /* We use char because int might match the return type of a gcc2
13552    builtin and then its argument prototype would still apply.  */
13553 char opendir ();
13554 int
13555 main ()
13556 {
13557 opendir ();
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13564   (eval $ac_link) 2>conftest.er1
13565   ac_status=$?
13566   grep -v '^ *+' conftest.er1 >conftest.err
13567   rm -f conftest.er1
13568   cat conftest.err >&5
13569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570   (exit $ac_status); } &&
13571          { ac_try='test -z "$ac_c_werror_flag"
13572                          || test ! -s conftest.err'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; } &&
13578          { ac_try='test -s conftest$ac_exeext'
13579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580   (eval $ac_try) 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; }; then
13584   ac_cv_search_opendir="-l$ac_lib"
13585 break
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 fi
13591 rm -f conftest.err conftest.$ac_objext \
13592       conftest$ac_exeext conftest.$ac_ext
13593   done
13594 fi
13595 LIBS=$ac_func_search_save_LIBS
13596 fi
13597 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13598 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13599 if test "$ac_cv_search_opendir" != no; then
13600   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13601
13602 fi
13603
13604 else
13605   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13606 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13607 if test "${ac_cv_search_opendir+set}" = set; then
13608   echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610   ac_func_search_save_LIBS=$LIBS
13611 ac_cv_search_opendir=no
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h.  */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h.  */
13618
13619 /* Override any gcc2 internal prototype to avoid an error.  */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 /* We use char because int might match the return type of a gcc2
13624    builtin and then its argument prototype would still apply.  */
13625 char opendir ();
13626 int
13627 main ()
13628 {
13629 opendir ();
13630   ;
13631   return 0;
13632 }
13633 _ACEOF
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13636   (eval $ac_link) 2>conftest.er1
13637   ac_status=$?
13638   grep -v '^ *+' conftest.er1 >conftest.err
13639   rm -f conftest.er1
13640   cat conftest.err >&5
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); } &&
13643          { ac_try='test -z "$ac_c_werror_flag"
13644                          || test ! -s conftest.err'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; } &&
13650          { ac_try='test -s conftest$ac_exeext'
13651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652   (eval $ac_try) 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; }; then
13656   ac_cv_search_opendir="none required"
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661 fi
13662 rm -f conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext conftest.$ac_ext
13664 if test "$ac_cv_search_opendir" = no; then
13665   for ac_lib in x; do
13666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13667     cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673
13674 /* Override any gcc2 internal prototype to avoid an error.  */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 /* We use char because int might match the return type of a gcc2
13679    builtin and then its argument prototype would still apply.  */
13680 char opendir ();
13681 int
13682 main ()
13683 {
13684 opendir ();
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691   (eval $ac_link) 2>conftest.er1
13692   ac_status=$?
13693   grep -v '^ *+' conftest.er1 >conftest.err
13694   rm -f conftest.er1
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); } &&
13698          { ac_try='test -z "$ac_c_werror_flag"
13699                          || test ! -s conftest.err'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; } &&
13705          { ac_try='test -s conftest$ac_exeext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711   ac_cv_search_opendir="-l$ac_lib"
13712 break
13713 else
13714   echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 fi
13718 rm -f conftest.err conftest.$ac_objext \
13719       conftest$ac_exeext conftest.$ac_ext
13720   done
13721 fi
13722 LIBS=$ac_func_search_save_LIBS
13723 fi
13724 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13725 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13726 if test "$ac_cv_search_opendir" != no; then
13727   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13728
13729 fi
13730
13731 fi
13732
13733 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13734 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13735 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744 #include <sys/types.h>
13745 #include <sys/wait.h>
13746 #ifndef WEXITSTATUS
13747 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13748 #endif
13749 #ifndef WIFEXITED
13750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13751 #endif
13752
13753 int
13754 main ()
13755 {
13756   int s;
13757   wait (&s);
13758   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13759   ;
13760   return 0;
13761 }
13762 _ACEOF
13763 rm -f conftest.$ac_objext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13765   (eval $ac_compile) 2>conftest.er1
13766   ac_status=$?
13767   grep -v '^ *+' conftest.er1 >conftest.err
13768   rm -f conftest.er1
13769   cat conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -z "$ac_c_werror_flag"
13773                          || test ! -s conftest.err'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; } &&
13779          { ac_try='test -s conftest.$ac_objext'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }; then
13785   ac_cv_header_sys_wait_h=yes
13786 else
13787   echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 ac_cv_header_sys_wait_h=no
13791 fi
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13796 if test $ac_cv_header_sys_wait_h = yes; then
13797
13798 cat >>confdefs.h <<\_ACEOF
13799 #define HAVE_SYS_WAIT_H 1
13800 _ACEOF
13801
13802 fi
13803
13804 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13805 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13806 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13807   echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809   cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 #include <sys/types.h>
13816 #include <termios.h>
13817 #ifdef TIOCGWINSZ
13818   yes
13819 #endif
13820
13821 _ACEOF
13822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13823   $EGREP "yes" >/dev/null 2>&1; then
13824   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13825 else
13826   ac_cv_sys_tiocgwinsz_in_termios_h=no
13827 fi
13828 rm -f conftest*
13829
13830 fi
13831 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13832 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13833
13834 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13835   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13836 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13837 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 #include <sys/types.h>
13847 #include <sys/ioctl.h>
13848 #ifdef TIOCGWINSZ
13849   yes
13850 #endif
13851
13852 _ACEOF
13853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13854   $EGREP "yes" >/dev/null 2>&1; then
13855   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13856 else
13857   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13858 fi
13859 rm -f conftest*
13860
13861 fi
13862 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13863 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13864
13865   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13866
13867 cat >>confdefs.h <<\_ACEOF
13868 #define GWINSZ_IN_SYS_IOCTL 1
13869 _ACEOF
13870
13871   fi
13872 fi
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922 for ac_header in \
13923         arpa/inet.h             \
13924         arpa/nameser.h          \
13925         assert.h                \
13926         bits/types.h            \
13927         conio.h                 \
13928         crypt.h                 \
13929         direct.h                \
13930         errno.h                 \
13931         fcntl.h                 \
13932         filio.h                 \
13933         getopt.h                \
13934         grp.h                   \
13935         io.h                    \
13936         libutil.h               \
13937         limits.h                \
13938         locale.h                \
13939         netinet/tcp.h           \
13940         malloc.h                \
13941         memory.h                \
13942         psap.h                  \
13943         pwd.h                   \
13944         process.h               \
13945         sgtty.h                 \
13946         shadow.h                \
13947         stddef.h                \
13948         string.h                \
13949         strings.h               \
13950         sysexits.h              \
13951         sys/file.h              \
13952         sys/filio.h             \
13953         sys/errno.h             \
13954         sys/ioctl.h             \
13955         sys/param.h             \
13956         sys/resource.h          \
13957         sys/select.h            \
13958         sys/socket.h            \
13959         sys/stat.h              \
13960         sys/syslog.h            \
13961         sys/time.h              \
13962         sys/types.h             \
13963         sys/uio.h               \
13964         syslog.h                \
13965         termios.h               \
13966         unistd.h                \
13967         utime.h                 \
13968         winsock.h               \
13969         winsock2.h              \
13970
13971 do
13972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974   echo "$as_me:$LINENO: checking for $ac_header" >&5
13975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 fi
13979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13980 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13981 else
13982   # Is the header compilable?
13983 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h.  */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h.  */
13991 $ac_includes_default
13992 #include <$ac_header>
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13996   (eval $ac_compile) 2>conftest.er1
13997   ac_status=$?
13998   grep -v '^ *+' conftest.er1 >conftest.err
13999   rm -f conftest.er1
14000   cat conftest.err >&5
14001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002   (exit $ac_status); } &&
14003          { ac_try='test -z "$ac_c_werror_flag"
14004                          || test ! -s conftest.err'
14005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006   (eval $ac_try) 2>&5
14007   ac_status=$?
14008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009   (exit $ac_status); }; } &&
14010          { ac_try='test -s conftest.$ac_objext'
14011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012   (eval $ac_try) 2>&5
14013   ac_status=$?
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); }; }; then
14016   ac_header_compiler=yes
14017 else
14018   echo "$as_me: failed program was:" >&5
14019 sed 's/^/| /' conftest.$ac_ext >&5
14020
14021 ac_header_compiler=no
14022 fi
14023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14025 echo "${ECHO_T}$ac_header_compiler" >&6
14026
14027 # Is the header present?
14028 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036 #include <$ac_header>
14037 _ACEOF
14038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } >/dev/null; then
14046   if test -s conftest.err; then
14047     ac_cpp_err=$ac_c_preproc_warn_flag
14048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14049   else
14050     ac_cpp_err=
14051   fi
14052 else
14053   ac_cpp_err=yes
14054 fi
14055 if test -z "$ac_cpp_err"; then
14056   ac_header_preproc=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061   ac_header_preproc=no
14062 fi
14063 rm -f conftest.err conftest.$ac_ext
14064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14065 echo "${ECHO_T}$ac_header_preproc" >&6
14066
14067 # So?  What about this header?
14068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14069   yes:no: )
14070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14074     ac_header_preproc=yes
14075     ;;
14076   no:yes:* )
14077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14089     (
14090       cat <<\_ASBOX
14091 ## ------------------------------------------ ##
14092 ## Report this to the AC_PACKAGE_NAME lists.  ##
14093 ## ------------------------------------------ ##
14094 _ASBOX
14095     ) |
14096       sed "s/^/$as_me: WARNING:     /" >&2
14097     ;;
14098 esac
14099 echo "$as_me:$LINENO: checking for $ac_header" >&5
14100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   eval "$as_ac_Header=\$ac_header_preproc"
14105 fi
14106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14108
14109 fi
14110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14111   cat >>confdefs.h <<_ACEOF
14112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14113 _ACEOF
14114
14115 fi
14116
14117 done
14118
14119
14120
14121 for ac_header in resolv.h
14122 do
14123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14124 echo "$as_me:$LINENO: checking for $ac_header" >&5
14125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14127   echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129   cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h.  */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h.  */
14135 $ac_includes_default
14136 #include <netinet/in.h>
14137
14138
14139 #include <$ac_header>
14140 _ACEOF
14141 rm -f conftest.$ac_objext
14142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14143   (eval $ac_compile) 2>conftest.er1
14144   ac_status=$?
14145   grep -v '^ *+' conftest.er1 >conftest.err
14146   rm -f conftest.er1
14147   cat conftest.err >&5
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); } &&
14150          { ac_try='test -z "$ac_c_werror_flag"
14151                          || test ! -s conftest.err'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; } &&
14157          { ac_try='test -s conftest.$ac_objext'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163   eval "$as_ac_Header=yes"
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 eval "$as_ac_Header=no"
14169 fi
14170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14175   cat >>confdefs.h <<_ACEOF
14176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14177 _ACEOF
14178
14179 fi
14180
14181 done
14182
14183
14184
14185 for ac_header in sys/ucred.h
14186 do
14187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191   echo $ECHO_N "(cached) $ECHO_C" >&6
14192 else
14193   cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 $ac_includes_default
14200 #ifdef HAVE_SYS_PARAM_H
14201 #include <sys/param.h>
14202 #endif
14203
14204
14205 #include <$ac_header>
14206 _ACEOF
14207 rm -f conftest.$ac_objext
14208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14209   (eval $ac_compile) 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } &&
14216          { ac_try='test -z "$ac_c_werror_flag"
14217                          || test ! -s conftest.err'
14218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219   (eval $ac_try) 2>&5
14220   ac_status=$?
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); }; } &&
14223          { ac_try='test -s conftest.$ac_objext'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   eval "$as_ac_Header=yes"
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 eval "$as_ac_Header=no"
14235 fi
14236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14237 fi
14238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14241   cat >>confdefs.h <<_ACEOF
14242 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14243 _ACEOF
14244
14245 fi
14246
14247 done
14248
14249
14250
14251
14252
14253 for ac_func in sigaction sigset
14254 do
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14258 if eval "test \"\${$as_ac_var+set}\" = set"; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14269 #define $ac_func innocuous_$ac_func
14270
14271 /* System header to define __stub macros and hopefully few prototypes,
14272     which can conflict with char $ac_func (); below.
14273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274     <limits.h> exists even on freestanding compilers.  */
14275
14276 #ifdef __STDC__
14277 # include <limits.h>
14278 #else
14279 # include <assert.h>
14280 #endif
14281
14282 #undef $ac_func
14283
14284 /* Override any gcc2 internal prototype to avoid an error.  */
14285 #ifdef __cplusplus
14286 extern "C"
14287 {
14288 #endif
14289 /* We use char because int might match the return type of a gcc2
14290    builtin and then its argument prototype would still apply.  */
14291 char $ac_func ();
14292 /* The GNU C library defines this for functions which it implements
14293     to always fail with ENOSYS.  Some functions are actually named
14294     something starting with __ and the normal name is an alias.  */
14295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14296 choke me
14297 #else
14298 char (*f) () = $ac_func;
14299 #endif
14300 #ifdef __cplusplus
14301 }
14302 #endif
14303
14304 int
14305 main ()
14306 {
14307 return f != $ac_func;
14308   ;
14309   return 0;
14310 }
14311 _ACEOF
14312 rm -f conftest.$ac_objext conftest$ac_exeext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14314   (eval $ac_link) 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -z "$ac_c_werror_flag"
14322                          || test ! -s conftest.err'
14323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324   (eval $ac_try) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; } &&
14328          { ac_try='test -s conftest$ac_exeext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334   eval "$as_ac_var=yes"
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 eval "$as_ac_var=no"
14340 fi
14341 rm -f conftest.err conftest.$ac_objext \
14342       conftest$ac_exeext conftest.$ac_ext
14343 fi
14344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14346 if test `eval echo '${'$as_ac_var'}'` = yes; then
14347   cat >>confdefs.h <<_ACEOF
14348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14349 _ACEOF
14350
14351 fi
14352 done
14353
14354
14355 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14356
14357 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14358 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14359 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   ac_check_lib_save_LIBS=$LIBS
14363 LIBS="-lV3  $LIBS"
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370
14371 /* Override any gcc2 internal prototype to avoid an error.  */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 /* We use char because int might match the return type of a gcc2
14376    builtin and then its argument prototype would still apply.  */
14377 char sigset ();
14378 int
14379 main ()
14380 {
14381 sigset ();
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14388   (eval $ac_link) 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_c_werror_flag"
14396                          || test ! -s conftest.err'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; } &&
14402          { ac_try='test -s conftest$ac_exeext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   ac_cv_lib_V3_sigset=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 ac_cv_lib_V3_sigset=no
14414 fi
14415 rm -f conftest.err conftest.$ac_objext \
14416       conftest$ac_exeext conftest.$ac_ext
14417 LIBS=$ac_check_lib_save_LIBS
14418 fi
14419 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14420 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14421 if test $ac_cv_lib_V3_sigset = yes; then
14422   cat >>confdefs.h <<_ACEOF
14423 #define HAVE_LIBV3 1
14424 _ACEOF
14425
14426   LIBS="-lV3 $LIBS"
14427
14428 fi
14429
14430 fi
14431
14432 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14433 echo "$as_me:$LINENO: checking for winsock" >&5
14434 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14435 if test "${ol_cv_winsock+set}" = set; then
14436   echo $ECHO_N "(cached) $ECHO_C" >&6
14437 else
14438   save_LIBS="$LIBS"
14439 for curlib in ws2_32 wsock32; do
14440         LIBS="$LIBS -l$curlib"
14441         cat >conftest.$ac_ext <<_ACEOF
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 #include <winsock.h>
14448
14449 int
14450 main ()
14451 {
14452
14453                         socket(0,0,0);
14454                         select(0,NULL,NULL,NULL,NULL);
14455                         closesocket(0);
14456                         gethostname(NULL,0);
14457
14458   ;
14459   return 0;
14460 }
14461 _ACEOF
14462 rm -f conftest.$ac_objext conftest$ac_exeext
14463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14464   (eval $ac_link) 2>conftest.er1
14465   ac_status=$?
14466   grep -v '^ *+' conftest.er1 >conftest.err
14467   rm -f conftest.er1
14468   cat conftest.err >&5
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); } &&
14471          { ac_try='test -z "$ac_c_werror_flag"
14472                          || test ! -s conftest.err'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; } &&
14478          { ac_try='test -s conftest$ac_exeext'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; }; then
14484   ol_cv_winsock=yes
14485 else
14486   echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14488
14489 ol_cv_winsock=no
14490 fi
14491 rm -f conftest.err conftest.$ac_objext \
14492       conftest$ac_exeext conftest.$ac_ext
14493
14494         if test $ol_cv_winsock = yes; then
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_WINSOCK 1
14498 _ACEOF
14499
14500                 ac_cv_func_socket=yes
14501                 ac_cv_func_select=yes
14502                 ac_cv_func_closesocket=yes
14503                 ac_cv_func_gethostname=yes
14504                 if test $curlib = ws2_32; then
14505                         ol_cv_winsock=winsock2
14506
14507 cat >>confdefs.h <<\_ACEOF
14508 #define HAVE_WINSOCK2 1
14509 _ACEOF
14510
14511                 fi
14512                 break
14513         fi
14514         LIBS="$save_LIBS"
14515 done
14516 fi
14517 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14518 echo "${ECHO_T}$ol_cv_winsock" >&6
14519 fi
14520
14521
14522 echo "$as_me:$LINENO: checking for socket" >&5
14523 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14524 if test "${ac_cv_func_socket+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14535 #define socket innocuous_socket
14536
14537 /* System header to define __stub macros and hopefully few prototypes,
14538     which can conflict with char socket (); below.
14539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14540     <limits.h> exists even on freestanding compilers.  */
14541
14542 #ifdef __STDC__
14543 # include <limits.h>
14544 #else
14545 # include <assert.h>
14546 #endif
14547
14548 #undef socket
14549
14550 /* Override any gcc2 internal prototype to avoid an error.  */
14551 #ifdef __cplusplus
14552 extern "C"
14553 {
14554 #endif
14555 /* We use char because int might match the return type of a gcc2
14556    builtin and then its argument prototype would still apply.  */
14557 char socket ();
14558 /* The GNU C library defines this for functions which it implements
14559     to always fail with ENOSYS.  Some functions are actually named
14560     something starting with __ and the normal name is an alias.  */
14561 #if defined (__stub_socket) || defined (__stub___socket)
14562 choke me
14563 #else
14564 char (*f) () = socket;
14565 #endif
14566 #ifdef __cplusplus
14567 }
14568 #endif
14569
14570 int
14571 main ()
14572 {
14573 return f != socket;
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580   (eval $ac_link) 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -z "$ac_c_werror_flag"
14588                          || test ! -s conftest.err'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; } &&
14594          { ac_try='test -s conftest$ac_exeext'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; }; then
14600   ac_cv_func_socket=yes
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_cv_func_socket=no
14606 fi
14607 rm -f conftest.err conftest.$ac_objext \
14608       conftest$ac_exeext conftest.$ac_ext
14609 fi
14610 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14611 echo "${ECHO_T}$ac_cv_func_socket" >&6
14612 if test $ac_cv_func_socket = yes; then
14613   :
14614 else
14615
14616
14617 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14618 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14619 if test "${ac_cv_lib_socket_main+set}" = set; then
14620   echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622   ac_check_lib_save_LIBS=$LIBS
14623 LIBS="-lsocket  $LIBS"
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630
14631
14632 int
14633 main ()
14634 {
14635 main ();
14636   ;
14637   return 0;
14638 }
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642   (eval $ac_link) 2>conftest.er1
14643   ac_status=$?
14644   grep -v '^ *+' conftest.er1 >conftest.err
14645   rm -f conftest.er1
14646   cat conftest.err >&5
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); } &&
14649          { ac_try='test -z "$ac_c_werror_flag"
14650                          || test ! -s conftest.err'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; } &&
14656          { ac_try='test -s conftest$ac_exeext'
14657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658   (eval $ac_try) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); }; }; then
14662   ac_cv_lib_socket_main=yes
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 ac_cv_lib_socket_main=no
14668 fi
14669 rm -f conftest.err conftest.$ac_objext \
14670       conftest$ac_exeext conftest.$ac_ext
14671 LIBS=$ac_check_lib_save_LIBS
14672 fi
14673 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14674 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14675 if test $ac_cv_lib_socket_main = yes; then
14676   cat >>confdefs.h <<_ACEOF
14677 #define HAVE_LIBSOCKET 1
14678 _ACEOF
14679
14680   LIBS="-lsocket $LIBS"
14681
14682 fi
14683
14684
14685 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14686 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14687 if test "${ac_cv_lib_net_main+set}" = set; then
14688   echo $ECHO_N "(cached) $ECHO_C" >&6
14689 else
14690   ac_check_lib_save_LIBS=$LIBS
14691 LIBS="-lnet  $LIBS"
14692 cat >conftest.$ac_ext <<_ACEOF
14693 /* confdefs.h.  */
14694 _ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h.  */
14698
14699
14700 int
14701 main ()
14702 {
14703 main ();
14704   ;
14705   return 0;
14706 }
14707 _ACEOF
14708 rm -f conftest.$ac_objext conftest$ac_exeext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14710   (eval $ac_link) 2>conftest.er1
14711   ac_status=$?
14712   grep -v '^ *+' conftest.er1 >conftest.err
14713   rm -f conftest.er1
14714   cat conftest.err >&5
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); } &&
14717          { ac_try='test -z "$ac_c_werror_flag"
14718                          || test ! -s conftest.err'
14719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720   (eval $ac_try) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); }; } &&
14724          { ac_try='test -s conftest$ac_exeext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   ac_cv_lib_net_main=yes
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 ac_cv_lib_net_main=no
14736 fi
14737 rm -f conftest.err conftest.$ac_objext \
14738       conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14740 fi
14741 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14742 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14743 if test $ac_cv_lib_net_main = yes; then
14744   cat >>confdefs.h <<_ACEOF
14745 #define HAVE_LIBNET 1
14746 _ACEOF
14747
14748   LIBS="-lnet $LIBS"
14749
14750 fi
14751
14752
14753 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14754 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14755 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14756   echo $ECHO_N "(cached) $ECHO_C" >&6
14757 else
14758   ac_check_lib_save_LIBS=$LIBS
14759 LIBS="-lnsl_s  $LIBS"
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766
14767
14768 int
14769 main ()
14770 {
14771 main ();
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14778   (eval $ac_link) 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } &&
14785          { ac_try='test -z "$ac_c_werror_flag"
14786                          || test ! -s conftest.err'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; } &&
14792          { ac_try='test -s conftest$ac_exeext'
14793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794   (eval $ac_try) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   ac_cv_lib_nsl_s_main=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 ac_cv_lib_nsl_s_main=no
14804 fi
14805 rm -f conftest.err conftest.$ac_objext \
14806       conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14808 fi
14809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14810 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14811 if test $ac_cv_lib_nsl_s_main = yes; then
14812   cat >>confdefs.h <<_ACEOF
14813 #define HAVE_LIBNSL_S 1
14814 _ACEOF
14815
14816   LIBS="-lnsl_s $LIBS"
14817
14818 fi
14819
14820
14821 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14822 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14823 if test "${ac_cv_lib_nsl_main+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   ac_check_lib_save_LIBS=$LIBS
14827 LIBS="-lnsl  $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834
14835
14836 int
14837 main ()
14838 {
14839 main ();
14840   ;
14841   return 0;
14842 }
14843 _ACEOF
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14846   (eval $ac_link) 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -z "$ac_c_werror_flag"
14854                          || test ! -s conftest.err'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; } &&
14860          { ac_try='test -s conftest$ac_exeext'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; }; then
14866   ac_cv_lib_nsl_main=yes
14867 else
14868   echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14870
14871 ac_cv_lib_nsl_main=no
14872 fi
14873 rm -f conftest.err conftest.$ac_objext \
14874       conftest$ac_exeext conftest.$ac_ext
14875 LIBS=$ac_check_lib_save_LIBS
14876 fi
14877 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14878 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14879 if test $ac_cv_lib_nsl_main = yes; then
14880   cat >>confdefs.h <<_ACEOF
14881 #define HAVE_LIBNSL 1
14882 _ACEOF
14883
14884   LIBS="-lnsl $LIBS"
14885
14886 fi
14887
14888
14889 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14890 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14891 if test "${ac_cv_lib_inet_socket+set}" = set; then
14892   echo $ECHO_N "(cached) $ECHO_C" >&6
14893 else
14894   ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-linet  $LIBS"
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h.  */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h.  */
14902
14903 /* Override any gcc2 internal prototype to avoid an error.  */
14904 #ifdef __cplusplus
14905 extern "C"
14906 #endif
14907 /* We use char because int might match the return type of a gcc2
14908    builtin and then its argument prototype would still apply.  */
14909 char socket ();
14910 int
14911 main ()
14912 {
14913 socket ();
14914   ;
14915   return 0;
14916 }
14917 _ACEOF
14918 rm -f conftest.$ac_objext conftest$ac_exeext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14920   (eval $ac_link) 2>conftest.er1
14921   ac_status=$?
14922   grep -v '^ *+' conftest.er1 >conftest.err
14923   rm -f conftest.er1
14924   cat conftest.err >&5
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); } &&
14927          { ac_try='test -z "$ac_c_werror_flag"
14928                          || test ! -s conftest.err'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; } &&
14934          { ac_try='test -s conftest$ac_exeext'
14935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936   (eval $ac_try) 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940   ac_cv_lib_inet_socket=yes
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_cv_lib_inet_socket=no
14946 fi
14947 rm -f conftest.err conftest.$ac_objext \
14948       conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14950 fi
14951 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14952 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14953 if test $ac_cv_lib_inet_socket = yes; then
14954   cat >>confdefs.h <<_ACEOF
14955 #define HAVE_LIBINET 1
14956 _ACEOF
14957
14958   LIBS="-linet $LIBS"
14959
14960 fi
14961
14962
14963 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14964 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14965 if test "${ac_cv_lib_gen_main+set}" = set; then
14966   echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968   ac_check_lib_save_LIBS=$LIBS
14969 LIBS="-lgen  $LIBS"
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976
14977
14978 int
14979 main ()
14980 {
14981 main ();
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988   (eval $ac_link) 2>conftest.er1
14989   ac_status=$?
14990   grep -v '^ *+' conftest.er1 >conftest.err
14991   rm -f conftest.er1
14992   cat conftest.err >&5
14993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994   (exit $ac_status); } &&
14995          { ac_try='test -z "$ac_c_werror_flag"
14996                          || test ! -s conftest.err'
14997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998   (eval $ac_try) 2>&5
14999   ac_status=$?
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); }; } &&
15002          { ac_try='test -s conftest$ac_exeext'
15003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004   (eval $ac_try) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   ac_cv_lib_gen_main=yes
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_cv_lib_gen_main=no
15014 fi
15015 rm -f conftest.err conftest.$ac_objext \
15016       conftest$ac_exeext conftest.$ac_ext
15017 LIBS=$ac_check_lib_save_LIBS
15018 fi
15019 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15020 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15021 if test $ac_cv_lib_gen_main = yes; then
15022   cat >>confdefs.h <<_ACEOF
15023 #define HAVE_LIBGEN 1
15024 _ACEOF
15025
15026   LIBS="-lgen $LIBS"
15027
15028 fi
15029
15030
15031 fi
15032
15033
15034 echo "$as_me:$LINENO: checking for select" >&5
15035 echo $ECHO_N "checking for select... $ECHO_C" >&6
15036 if test "${ac_cv_func_select+set}" = set; then
15037   echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039   cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045 /* Define select to an innocuous variant, in case <limits.h> declares select.
15046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15047 #define select innocuous_select
15048
15049 /* System header to define __stub macros and hopefully few prototypes,
15050     which can conflict with char select (); below.
15051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15052     <limits.h> exists even on freestanding compilers.  */
15053
15054 #ifdef __STDC__
15055 # include <limits.h>
15056 #else
15057 # include <assert.h>
15058 #endif
15059
15060 #undef select
15061
15062 /* Override any gcc2 internal prototype to avoid an error.  */
15063 #ifdef __cplusplus
15064 extern "C"
15065 {
15066 #endif
15067 /* We use char because int might match the return type of a gcc2
15068    builtin and then its argument prototype would still apply.  */
15069 char select ();
15070 /* The GNU C library defines this for functions which it implements
15071     to always fail with ENOSYS.  Some functions are actually named
15072     something starting with __ and the normal name is an alias.  */
15073 #if defined (__stub_select) || defined (__stub___select)
15074 choke me
15075 #else
15076 char (*f) () = select;
15077 #endif
15078 #ifdef __cplusplus
15079 }
15080 #endif
15081
15082 int
15083 main ()
15084 {
15085 return f != select;
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15092   (eval $ac_link) 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -z "$ac_c_werror_flag"
15100                          || test ! -s conftest.err'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_cv_func_select=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_cv_func_select=no
15118 fi
15119 rm -f conftest.err conftest.$ac_objext \
15120       conftest$ac_exeext conftest.$ac_ext
15121 fi
15122 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15123 echo "${ECHO_T}$ac_cv_func_select" >&6
15124 if test $ac_cv_func_select = yes; then
15125   :
15126 else
15127   { { echo "$as_me:$LINENO: error: select() required." >&5
15128 echo "$as_me: error: select() required." >&2;}
15129    { (exit 1); exit 1; }; }
15130 fi
15131
15132
15133 if test "${ac_cv_header_winsock_h}" != yes; then
15134
15135
15136 for ac_header in sys/select.h sys/socket.h
15137 do
15138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15140   echo "$as_me:$LINENO: checking for $ac_header" >&5
15141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15143   echo $ECHO_N "(cached) $ECHO_C" >&6
15144 fi
15145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15147 else
15148   # Is the header compilable?
15149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157 $ac_includes_default
15158 #include <$ac_header>
15159 _ACEOF
15160 rm -f conftest.$ac_objext
15161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15162   (eval $ac_compile) 2>conftest.er1
15163   ac_status=$?
15164   grep -v '^ *+' conftest.er1 >conftest.err
15165   rm -f conftest.er1
15166   cat conftest.err >&5
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -z "$ac_c_werror_flag"
15170                          || test ! -s conftest.err'
15171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172   (eval $ac_try) 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; } &&
15176          { ac_try='test -s conftest.$ac_objext'
15177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178   (eval $ac_try) 2>&5
15179   ac_status=$?
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); }; }; then
15182   ac_header_compiler=yes
15183 else
15184   echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15186
15187 ac_header_compiler=no
15188 fi
15189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15191 echo "${ECHO_T}$ac_header_compiler" >&6
15192
15193 # Is the header present?
15194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15197 /* confdefs.h.  */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h.  */
15202 #include <$ac_header>
15203 _ACEOF
15204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15206   ac_status=$?
15207   grep -v '^ *+' conftest.er1 >conftest.err
15208   rm -f conftest.er1
15209   cat conftest.err >&5
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } >/dev/null; then
15212   if test -s conftest.err; then
15213     ac_cpp_err=$ac_c_preproc_warn_flag
15214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15215   else
15216     ac_cpp_err=
15217   fi
15218 else
15219   ac_cpp_err=yes
15220 fi
15221 if test -z "$ac_cpp_err"; then
15222   ac_header_preproc=yes
15223 else
15224   echo "$as_me: failed program was:" >&5
15225 sed 's/^/| /' conftest.$ac_ext >&5
15226
15227   ac_header_preproc=no
15228 fi
15229 rm -f conftest.err conftest.$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15231 echo "${ECHO_T}$ac_header_preproc" >&6
15232
15233 # So?  What about this header?
15234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15235   yes:no: )
15236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15240     ac_header_preproc=yes
15241     ;;
15242   no:yes:* )
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15255     (
15256       cat <<\_ASBOX
15257 ## ------------------------------------------ ##
15258 ## Report this to the AC_PACKAGE_NAME lists.  ##
15259 ## ------------------------------------------ ##
15260 _ASBOX
15261     ) |
15262       sed "s/^/$as_me: WARNING:     /" >&2
15263     ;;
15264 esac
15265 echo "$as_me:$LINENO: checking for $ac_header" >&5
15266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   eval "$as_ac_Header=\$ac_header_preproc"
15271 fi
15272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15274
15275 fi
15276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15277   cat >>confdefs.h <<_ACEOF
15278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15279 _ACEOF
15280
15281 fi
15282
15283 done
15284
15285 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15286 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15287 if test "${ac_cv_func_select_args+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15291  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15292   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15293    cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299 $ac_includes_default
15300 #if HAVE_SYS_SELECT_H
15301 # include <sys/select.h>
15302 #endif
15303 #if HAVE_SYS_SOCKET_H
15304 # include <sys/socket.h>
15305 #endif
15306
15307 int
15308 main ()
15309 {
15310 extern int select ($ac_arg1,
15311                                             $ac_arg234, $ac_arg234, $ac_arg234,
15312                                             $ac_arg5);
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319   (eval $ac_compile) 2>conftest.er1
15320   ac_status=$?
15321   grep -v '^ *+' conftest.er1 >conftest.err
15322   rm -f conftest.er1
15323   cat conftest.err >&5
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -z "$ac_c_werror_flag"
15327                          || test ! -s conftest.err'
15328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329   (eval $ac_try) 2>&5
15330   ac_status=$?
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); }; } &&
15333          { ac_try='test -s conftest.$ac_objext'
15334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335   (eval $ac_try) 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; }; then
15339   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344 fi
15345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15346   done
15347  done
15348 done
15349 # Provide a safe default value.
15350 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15351
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15354 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15355 ac_save_IFS=$IFS; IFS=','
15356 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15357 IFS=$ac_save_IFS
15358 shift
15359
15360 cat >>confdefs.h <<_ACEOF
15361 #define SELECT_TYPE_ARG1 $1
15362 _ACEOF
15363
15364
15365 cat >>confdefs.h <<_ACEOF
15366 #define SELECT_TYPE_ARG234 ($2)
15367 _ACEOF
15368
15369
15370 cat >>confdefs.h <<_ACEOF
15371 #define SELECT_TYPE_ARG5 ($3)
15372 _ACEOF
15373
15374 rm -f conftest*
15375
15376 fi
15377
15378
15379
15380 for ac_func in poll
15381 do
15382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15383 echo "$as_me:$LINENO: checking for $ac_func" >&5
15384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_var+set}\" = set"; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388   cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h.  */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h.  */
15394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15396 #define $ac_func innocuous_$ac_func
15397
15398 /* System header to define __stub macros and hopefully few prototypes,
15399     which can conflict with char $ac_func (); below.
15400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15401     <limits.h> exists even on freestanding compilers.  */
15402
15403 #ifdef __STDC__
15404 # include <limits.h>
15405 #else
15406 # include <assert.h>
15407 #endif
15408
15409 #undef $ac_func
15410
15411 /* Override any gcc2 internal prototype to avoid an error.  */
15412 #ifdef __cplusplus
15413 extern "C"
15414 {
15415 #endif
15416 /* We use char because int might match the return type of a gcc2
15417    builtin and then its argument prototype would still apply.  */
15418 char $ac_func ();
15419 /* The GNU C library defines this for functions which it implements
15420     to always fail with ENOSYS.  Some functions are actually named
15421     something starting with __ and the normal name is an alias.  */
15422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15423 choke me
15424 #else
15425 char (*f) () = $ac_func;
15426 #endif
15427 #ifdef __cplusplus
15428 }
15429 #endif
15430
15431 int
15432 main ()
15433 {
15434 return f != $ac_func;
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15441   (eval $ac_link) 2>conftest.er1
15442   ac_status=$?
15443   grep -v '^ *+' conftest.er1 >conftest.err
15444   rm -f conftest.er1
15445   cat conftest.err >&5
15446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); } &&
15448          { ac_try='test -z "$ac_c_werror_flag"
15449                          || test ! -s conftest.err'
15450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451   (eval $ac_try) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); }; } &&
15455          { ac_try='test -s conftest$ac_exeext'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   eval "$as_ac_var=yes"
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 eval "$as_ac_var=no"
15467 fi
15468 rm -f conftest.err conftest.$ac_objext \
15469       conftest$ac_exeext conftest.$ac_ext
15470 fi
15471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474   cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15476 _ACEOF
15477
15478 fi
15479 done
15480
15481
15482 for ac_header in poll.h
15483 do
15484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15486   echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 fi
15491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15493 else
15494   # Is the header compilable?
15495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503 $ac_includes_default
15504 #include <$ac_header>
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15508   (eval $ac_compile) 2>conftest.er1
15509   ac_status=$?
15510   grep -v '^ *+' conftest.er1 >conftest.err
15511   rm -f conftest.er1
15512   cat conftest.err >&5
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); } &&
15515          { ac_try='test -z "$ac_c_werror_flag"
15516                          || test ! -s conftest.err'
15517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518   (eval $ac_try) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; } &&
15522          { ac_try='test -s conftest.$ac_objext'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; }; then
15528   ac_header_compiler=yes
15529 else
15530   echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 ac_header_compiler=no
15534 fi
15535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15537 echo "${ECHO_T}$ac_header_compiler" >&6
15538
15539 # Is the header present?
15540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15542 cat >conftest.$ac_ext <<_ACEOF
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 #include <$ac_header>
15549 _ACEOF
15550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } >/dev/null; then
15558   if test -s conftest.err; then
15559     ac_cpp_err=$ac_c_preproc_warn_flag
15560     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15561   else
15562     ac_cpp_err=
15563   fi
15564 else
15565   ac_cpp_err=yes
15566 fi
15567 if test -z "$ac_cpp_err"; then
15568   ac_header_preproc=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573   ac_header_preproc=no
15574 fi
15575 rm -f conftest.err conftest.$ac_ext
15576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15577 echo "${ECHO_T}$ac_header_preproc" >&6
15578
15579 # So?  What about this header?
15580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581   yes:no: )
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15586     ac_header_preproc=yes
15587     ;;
15588   no:yes:* )
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15591     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15592 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15593     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15596 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15599     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601     (
15602       cat <<\_ASBOX
15603 ## ------------------------------------------ ##
15604 ## Report this to the AC_PACKAGE_NAME lists.  ##
15605 ## ------------------------------------------ ##
15606 _ASBOX
15607     ) |
15608       sed "s/^/$as_me: WARNING:     /" >&2
15609     ;;
15610 esac
15611 echo "$as_me:$LINENO: checking for $ac_header" >&5
15612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   eval "$as_ac_Header=\$ac_header_preproc"
15617 fi
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15620
15621 fi
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623   cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628
15629 done
15630
15631
15632
15633 for ac_header in sys/epoll.h
15634 do
15635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15637   echo "$as_me:$LINENO: checking for $ac_header" >&5
15638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 fi
15642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15644 else
15645   # Is the header compilable?
15646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15649 /* confdefs.h.  */
15650 _ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h.  */
15654 $ac_includes_default
15655 #include <$ac_header>
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659   (eval $ac_compile) 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -z "$ac_c_werror_flag"
15667                          || test ! -s conftest.err'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest.$ac_objext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_header_compiler=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_header_compiler=no
15685 fi
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688 echo "${ECHO_T}$ac_header_compiler" >&6
15689
15690 # Is the header present?
15691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15693 cat >conftest.$ac_ext <<_ACEOF
15694 /* confdefs.h.  */
15695 _ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h.  */
15699 #include <$ac_header>
15700 _ACEOF
15701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15703   ac_status=$?
15704   grep -v '^ *+' conftest.er1 >conftest.err
15705   rm -f conftest.er1
15706   cat conftest.err >&5
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } >/dev/null; then
15709   if test -s conftest.err; then
15710     ac_cpp_err=$ac_c_preproc_warn_flag
15711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15712   else
15713     ac_cpp_err=
15714   fi
15715 else
15716   ac_cpp_err=yes
15717 fi
15718 if test -z "$ac_cpp_err"; then
15719   ac_header_preproc=yes
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724   ac_header_preproc=no
15725 fi
15726 rm -f conftest.err conftest.$ac_ext
15727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6
15729
15730 # So?  What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15732   yes:no: )
15733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737     ac_header_preproc=yes
15738     ;;
15739   no:yes:* )
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15752     (
15753       cat <<\_ASBOX
15754 ## ------------------------------------------ ##
15755 ## Report this to the AC_PACKAGE_NAME lists.  ##
15756 ## ------------------------------------------ ##
15757 _ASBOX
15758     ) |
15759       sed "s/^/$as_me: WARNING:     /" >&2
15760     ;;
15761 esac
15762 echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767   eval "$as_ac_Header=\$ac_header_preproc"
15768 fi
15769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15771
15772 fi
15773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15774   cat >>confdefs.h <<_ACEOF
15775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15776 _ACEOF
15777
15778 fi
15779
15780 done
15781
15782 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15783 echo "$as_me:$LINENO: checking for epoll system call" >&5
15784 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15785 if test "$cross_compiling" = yes; then
15786   echo "$as_me:$LINENO: result: no" >&5
15787 echo "${ECHO_T}no" >&6
15788 else
15789   cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 int main(int argc, char *argv)
15796 {
15797         int epfd = epoll_create(256);
15798         exit (epfd == -1 ? 1 : 0);
15799 }
15800 _ACEOF
15801 rm -f conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803   (eval $ac_link) 2>&5
15804   ac_status=$?
15805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808   (eval $ac_try) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); }; }; then
15812   echo "$as_me:$LINENO: result: yes" >&5
15813 echo "${ECHO_T}yes" >&6
15814
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_EPOLL 1
15817 _ACEOF
15818
15819 else
15820   echo "$as_me: program exited with status $ac_status" >&5
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ( exit $ac_status )
15825 echo "$as_me:$LINENO: result: no" >&5
15826 echo "${ECHO_T}no" >&6
15827 fi
15828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15829 fi
15830 fi
15831
15832 # strerror checks
15833 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15834 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15835 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838
15839         cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h.  */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h.  */
15845
15846 #include <stdio.h>
15847 #include <sys/types.h>
15848 #include <errno.h>
15849 #ifdef WINNT
15850 #include <stdlib.h>
15851 #endif
15852 int
15853 main ()
15854 {
15855 char *c = (char *) *sys_errlist
15856   ;
15857   return 0;
15858 }
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15862   (eval $ac_compile) 2>conftest.er1
15863   ac_status=$?
15864   grep -v '^ *+' conftest.er1 >conftest.err
15865   rm -f conftest.er1
15866   cat conftest.err >&5
15867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868   (exit $ac_status); } &&
15869          { ac_try='test -z "$ac_c_werror_flag"
15870                          || test ! -s conftest.err'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; } &&
15876          { ac_try='test -s conftest.$ac_objext'
15877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878   (eval $ac_try) 2>&5
15879   ac_status=$?
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); }; }; then
15882   ol_cv_dcl_sys_errlist=yes
15883         ol_cv_have_sys_errlist=yes
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ol_cv_dcl_sys_errlist=no
15889 fi
15890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15891 fi
15892 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15893 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15894 #
15895 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15896 if test $ol_cv_dcl_sys_errlist = no ; then
15897
15898 cat >>confdefs.h <<\_ACEOF
15899 #define DECL_SYS_ERRLIST 1
15900 _ACEOF
15901
15902
15903         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15904 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15905 if test "${ol_cv_have_sys_errlist+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908
15909                 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915 #include <errno.h>
15916 int
15917 main ()
15918 {
15919 char *c = (char *) *sys_errlist
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15926   (eval $ac_link) 2>conftest.er1
15927   ac_status=$?
15928   grep -v '^ *+' conftest.er1 >conftest.err
15929   rm -f conftest.er1
15930   cat conftest.err >&5
15931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932   (exit $ac_status); } &&
15933          { ac_try='test -z "$ac_c_werror_flag"
15934                          || test ! -s conftest.err'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; } &&
15940          { ac_try='test -s conftest$ac_exeext'
15941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942   (eval $ac_try) 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; }; then
15946   ol_cv_have_sys_errlist=yes
15947 else
15948   echo "$as_me: failed program was:" >&5
15949 sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 ol_cv_have_sys_errlist=no
15952 fi
15953 rm -f conftest.err conftest.$ac_objext \
15954       conftest$ac_exeext conftest.$ac_ext
15955 fi
15956 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15957 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15958 fi
15959 if test $ol_cv_have_sys_errlist = yes ; then
15960
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_SYS_ERRLIST 1
15963 _ACEOF
15964
15965 fi
15966
15967
15968 for ac_func in strerror strerror_r
15969 do
15970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15971 echo "$as_me:$LINENO: checking for $ac_func" >&5
15972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15973 if eval "test \"\${$as_ac_var+set}\" = set"; then
15974   echo $ECHO_N "(cached) $ECHO_C" >&6
15975 else
15976   cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15984 #define $ac_func innocuous_$ac_func
15985
15986 /* System header to define __stub macros and hopefully few prototypes,
15987     which can conflict with char $ac_func (); below.
15988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989     <limits.h> exists even on freestanding compilers.  */
15990
15991 #ifdef __STDC__
15992 # include <limits.h>
15993 #else
15994 # include <assert.h>
15995 #endif
15996
15997 #undef $ac_func
15998
15999 /* Override any gcc2 internal prototype to avoid an error.  */
16000 #ifdef __cplusplus
16001 extern "C"
16002 {
16003 #endif
16004 /* We use char because int might match the return type of a gcc2
16005    builtin and then its argument prototype would still apply.  */
16006 char $ac_func ();
16007 /* The GNU C library defines this for functions which it implements
16008     to always fail with ENOSYS.  Some functions are actually named
16009     something starting with __ and the normal name is an alias.  */
16010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16011 choke me
16012 #else
16013 char (*f) () = $ac_func;
16014 #endif
16015 #ifdef __cplusplus
16016 }
16017 #endif
16018
16019 int
16020 main ()
16021 {
16022 return f != $ac_func;
16023   ;
16024   return 0;
16025 }
16026 _ACEOF
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029   (eval $ac_link) 2>conftest.er1
16030   ac_status=$?
16031   grep -v '^ *+' conftest.er1 >conftest.err
16032   rm -f conftest.er1
16033   cat conftest.err >&5
16034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035   (exit $ac_status); } &&
16036          { ac_try='test -z "$ac_c_werror_flag"
16037                          || test ! -s conftest.err'
16038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039   (eval $ac_try) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); }; } &&
16043          { ac_try='test -s conftest$ac_exeext'
16044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045   (eval $ac_try) 2>&5
16046   ac_status=$?
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); }; }; then
16049   eval "$as_ac_var=yes"
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 eval "$as_ac_var=no"
16055 fi
16056 rm -f conftest.err conftest.$ac_objext \
16057       conftest$ac_exeext conftest.$ac_ext
16058 fi
16059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16061 if test `eval echo '${'$as_ac_var'}'` = yes; then
16062   cat >>confdefs.h <<_ACEOF
16063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16064 _ACEOF
16065
16066 fi
16067 done
16068
16069 ol_cv_func_strerror_r=no
16070 if test "${ac_cv_func_strerror_r}" = yes ; then
16071         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16072 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16073 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16074   echo $ECHO_N "(cached) $ECHO_C" >&6
16075 else
16076
16077         cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083 #include <string.h>
16084 _ACEOF
16085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16086   $EGREP "strerror_r" >/dev/null 2>&1; then
16087   ol_decl_strerror_r=yes
16088 else
16089   ol_decl_strerror_r=no
16090 fi
16091 rm -f conftest*
16092
16093         if test $ol_decl_strerror_r = yes ; then
16094                 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 #include <string.h>
16101 int
16102 main ()
16103 {
16104    /* from autoconf 2.59 */
16105                                 char buf[100];
16106                                 char x = *strerror_r (0, buf, sizeof buf);
16107                                 char *p = strerror_r (0, buf, sizeof buf);
16108
16109   ;
16110   return 0;
16111 }
16112 _ACEOF
16113 rm -f conftest.$ac_objext
16114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16115   (eval $ac_compile) 2>conftest.er1
16116   ac_status=$?
16117   grep -v '^ *+' conftest.er1 >conftest.err
16118   rm -f conftest.er1
16119   cat conftest.err >&5
16120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); } &&
16122          { ac_try='test -z "$ac_c_werror_flag"
16123                          || test ! -s conftest.err'
16124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125   (eval $ac_try) 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); }; } &&
16129          { ac_try='test -s conftest.$ac_objext'
16130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131   (eval $ac_try) 2>&5
16132   ac_status=$?
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); }; }; then
16135   ol_cv_nonposix_strerror_r=yes
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 ol_cv_nonposix_strerror_r=no
16141 fi
16142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16143         else
16144                 if test "$cross_compiling" = yes; then
16145   ol_cv_nonposix_strerror=no
16146 else
16147   cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153
16154                         main() {
16155                                 char buf[100];
16156                                 buf[0] = 0;
16157                                 strerror_r( 1, buf, sizeof buf );
16158                                 exit( buf[0] == 0 );
16159                         }
16160
16161 _ACEOF
16162 rm -f conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164   (eval $ac_link) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; }; then
16173   ol_cv_nonposix_strerror_r=yes
16174 else
16175   echo "$as_me: program exited with status $ac_status" >&5
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 ( exit $ac_status )
16180 ol_cv_nonposix_strerror=no
16181 fi
16182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16183 fi
16184         fi
16185
16186 fi
16187 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16188 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16189 if test $ol_cv_nonposix_strerror_r = yes ; then
16190
16191 cat >>confdefs.h <<\_ACEOF
16192 #define HAVE_NONPOSIX_STRERROR_R 1
16193 _ACEOF
16194
16195 fi
16196
16197 elif test "${ac_cv_func_strerror}" = no ; then
16198         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16199 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16200 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203
16204         cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210
16211 #include <stdio.h>
16212 #include <sys/types.h>
16213 #include <errno.h>
16214 #ifdef WINNT
16215 #include <stdlib.h>
16216 #endif
16217 int
16218 main ()
16219 {
16220 char *c = (char *) *sys_errlist
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 rm -f conftest.$ac_objext
16226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16227   (eval $ac_compile) 2>conftest.er1
16228   ac_status=$?
16229   grep -v '^ *+' conftest.er1 >conftest.err
16230   rm -f conftest.er1
16231   cat conftest.err >&5
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); } &&
16234          { ac_try='test -z "$ac_c_werror_flag"
16235                          || test ! -s conftest.err'
16236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237   (eval $ac_try) 2>&5
16238   ac_status=$?
16239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240   (exit $ac_status); }; } &&
16241          { ac_try='test -s conftest.$ac_objext'
16242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243   (eval $ac_try) 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247   ol_cv_dcl_sys_errlist=yes
16248         ol_cv_have_sys_errlist=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 ol_cv_dcl_sys_errlist=no
16254 fi
16255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16258 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16259 #
16260 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16261 if test $ol_cv_dcl_sys_errlist = no ; then
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define DECL_SYS_ERRLIST 1
16265 _ACEOF
16266
16267
16268         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16269 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16270 if test "${ol_cv_have_sys_errlist+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273
16274                 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 #include <errno.h>
16281 int
16282 main ()
16283 {
16284 char *c = (char *) *sys_errlist
16285   ;
16286   return 0;
16287 }
16288 _ACEOF
16289 rm -f conftest.$ac_objext conftest$ac_exeext
16290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16291   (eval $ac_link) 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } &&
16298          { ac_try='test -z "$ac_c_werror_flag"
16299                          || test ! -s conftest.err'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; } &&
16305          { ac_try='test -s conftest$ac_exeext'
16306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16307   (eval $ac_try) 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }; }; then
16311   ol_cv_have_sys_errlist=yes
16312 else
16313   echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16315
16316 ol_cv_have_sys_errlist=no
16317 fi
16318 rm -f conftest.err conftest.$ac_objext \
16319       conftest$ac_exeext conftest.$ac_ext
16320 fi
16321 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16322 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16323 fi
16324 if test $ol_cv_have_sys_errlist = yes ; then
16325
16326 cat >>confdefs.h <<\_ACEOF
16327 #define HAVE_SYS_ERRLIST 1
16328 _ACEOF
16329
16330 fi
16331
16332 fi
16333
16334
16335
16336 for ac_header in regex.h
16337 do
16338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16340   echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 fi
16345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16347 else
16348   # Is the header compilable?
16349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 $ac_includes_default
16358 #include <$ac_header>
16359 _ACEOF
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362   (eval $ac_compile) 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } &&
16369          { ac_try='test -z "$ac_c_werror_flag"
16370                          || test ! -s conftest.err'
16371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372   (eval $ac_try) 2>&5
16373   ac_status=$?
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); }; } &&
16376          { ac_try='test -s conftest.$ac_objext'
16377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378   (eval $ac_try) 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); }; }; then
16382   ac_header_compiler=yes
16383 else
16384   echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16386
16387 ac_header_compiler=no
16388 fi
16389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16391 echo "${ECHO_T}$ac_header_compiler" >&6
16392
16393 # Is the header present?
16394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16396 cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402 #include <$ac_header>
16403 _ACEOF
16404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } >/dev/null; then
16412   if test -s conftest.err; then
16413     ac_cpp_err=$ac_c_preproc_warn_flag
16414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16415   else
16416     ac_cpp_err=
16417   fi
16418 else
16419   ac_cpp_err=yes
16420 fi
16421 if test -z "$ac_cpp_err"; then
16422   ac_header_preproc=yes
16423 else
16424   echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16426
16427   ac_header_preproc=no
16428 fi
16429 rm -f conftest.err conftest.$ac_ext
16430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16431 echo "${ECHO_T}$ac_header_preproc" >&6
16432
16433 # So?  What about this header?
16434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16435   yes:no: )
16436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16440     ac_header_preproc=yes
16441     ;;
16442   no:yes:* )
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16455     (
16456       cat <<\_ASBOX
16457 ## ------------------------------------------ ##
16458 ## Report this to the AC_PACKAGE_NAME lists.  ##
16459 ## ------------------------------------------ ##
16460 _ASBOX
16461     ) |
16462       sed "s/^/$as_me: WARNING:     /" >&2
16463     ;;
16464 esac
16465 echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16468   echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470   eval "$as_ac_Header=\$ac_header_preproc"
16471 fi
16472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16474
16475 fi
16476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16477   cat >>confdefs.h <<_ACEOF
16478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479 _ACEOF
16480
16481 fi
16482
16483 done
16484
16485 if test "$ac_cv_header_regex_h" != yes ; then
16486         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16487 echo "$as_me: error: POSIX regex.h required." >&2;}
16488    { (exit 1); exit 1; }; }
16489 fi
16490 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16491 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16492 if test "${ac_cv_search_regfree+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   ac_func_search_save_LIBS=$LIBS
16496 ac_cv_search_regfree=no
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503
16504 /* Override any gcc2 internal prototype to avoid an error.  */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 /* We use char because int might match the return type of a gcc2
16509    builtin and then its argument prototype would still apply.  */
16510 char regfree ();
16511 int
16512 main ()
16513 {
16514 regfree ();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521   (eval $ac_link) 2>conftest.er1
16522   ac_status=$?
16523   grep -v '^ *+' conftest.er1 >conftest.err
16524   rm -f conftest.er1
16525   cat conftest.err >&5
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } &&
16528          { ac_try='test -z "$ac_c_werror_flag"
16529                          || test ! -s conftest.err'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest$ac_exeext'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_cv_search_regfree="none required"
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 fi
16547 rm -f conftest.err conftest.$ac_objext \
16548       conftest$ac_exeext conftest.$ac_ext
16549 if test "$ac_cv_search_regfree" = no; then
16550   for ac_lib in regex gnuregex; do
16551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16552     cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558
16559 /* Override any gcc2 internal prototype to avoid an error.  */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 /* We use char because int might match the return type of a gcc2
16564    builtin and then its argument prototype would still apply.  */
16565 char regfree ();
16566 int
16567 main ()
16568 {
16569 regfree ();
16570   ;
16571   return 0;
16572 }
16573 _ACEOF
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576   (eval $ac_link) 2>conftest.er1
16577   ac_status=$?
16578   grep -v '^ *+' conftest.er1 >conftest.err
16579   rm -f conftest.er1
16580   cat conftest.err >&5
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -z "$ac_c_werror_flag"
16584                          || test ! -s conftest.err'
16585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586   (eval $ac_try) 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; } &&
16590          { ac_try='test -s conftest$ac_exeext'
16591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592   (eval $ac_try) 2>&5
16593   ac_status=$?
16594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); }; }; then
16596   ac_cv_search_regfree="-l$ac_lib"
16597 break
16598 else
16599   echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16601
16602 fi
16603 rm -f conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext conftest.$ac_ext
16605   done
16606 fi
16607 LIBS=$ac_func_search_save_LIBS
16608 fi
16609 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16610 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16611 if test "$ac_cv_search_regfree" != no; then
16612   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16613   :
16614 else
16615   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16616 echo "$as_me: error: POSIX regex required." >&2;}
16617    { (exit 1); exit 1; }; }
16618 fi
16619
16620
16621
16622 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16623 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16624 if test "${ol_cv_c_posix_regex+set}" = set; then
16625   echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627
16628         if test "$cross_compiling" = yes; then
16629   ol_cv_c_posix_regex=cross
16630 else
16631   cat >conftest.$ac_ext <<_ACEOF
16632 /* confdefs.h.  */
16633 _ACEOF
16634 cat confdefs.h >>conftest.$ac_ext
16635 cat >>conftest.$ac_ext <<_ACEOF
16636 /* end confdefs.h.  */
16637
16638 #include <sys/types.h>
16639 #include <regex.h>
16640 static char *pattern, *string;
16641 main()
16642 {
16643         int rc;
16644         regex_t re;
16645
16646         pattern = "^A";
16647
16648         if(regcomp(&re, pattern, 0)) {
16649                 return -1;
16650         }
16651
16652         string = "ALL MATCH";
16653
16654         rc = regexec(&re, string, 0, (void*)0, 0);
16655
16656         regfree(&re);
16657
16658         return rc;
16659 }
16660 _ACEOF
16661 rm -f conftest$ac_exeext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16663   (eval $ac_link) 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668   (eval $ac_try) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; }; then
16672   ol_cv_c_posix_regex=yes
16673 else
16674   echo "$as_me: program exited with status $ac_status" >&5
16675 echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 ( exit $ac_status )
16679 ol_cv_c_posix_regex=no
16680 fi
16681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16682 fi
16683 fi
16684 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16685 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16686
16687 if test "$ol_cv_c_posix_regex" = no ; then
16688         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16689 echo "$as_me: error: broken POSIX regex!" >&2;}
16690    { (exit 1); exit 1; }; }
16691 fi
16692
16693
16694 have_uuid=no
16695
16696 for ac_header in sys/uuid.h
16697 do
16698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16700   echo "$as_me:$LINENO: checking for $ac_header" >&5
16701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 fi
16705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16707 else
16708   # Is the header compilable?
16709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16712 /* confdefs.h.  */
16713 _ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h.  */
16717 $ac_includes_default
16718 #include <$ac_header>
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722   (eval $ac_compile) 2>conftest.er1
16723   ac_status=$?
16724   grep -v '^ *+' conftest.er1 >conftest.err
16725   rm -f conftest.er1
16726   cat conftest.err >&5
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); } &&
16729          { ac_try='test -z "$ac_c_werror_flag"
16730                          || test ! -s conftest.err'
16731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732   (eval $ac_try) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; } &&
16736          { ac_try='test -s conftest.$ac_objext'
16737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738   (eval $ac_try) 2>&5
16739   ac_status=$?
16740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741   (exit $ac_status); }; }; then
16742   ac_header_compiler=yes
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747 ac_header_compiler=no
16748 fi
16749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16750 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16751 echo "${ECHO_T}$ac_header_compiler" >&6
16752
16753 # Is the header present?
16754 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h.  */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h.  */
16762 #include <$ac_header>
16763 _ACEOF
16764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } >/dev/null; then
16772   if test -s conftest.err; then
16773     ac_cpp_err=$ac_c_preproc_warn_flag
16774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16775   else
16776     ac_cpp_err=
16777   fi
16778 else
16779   ac_cpp_err=yes
16780 fi
16781 if test -z "$ac_cpp_err"; then
16782   ac_header_preproc=yes
16783 else
16784   echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16786
16787   ac_header_preproc=no
16788 fi
16789 rm -f conftest.err conftest.$ac_ext
16790 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16791 echo "${ECHO_T}$ac_header_preproc" >&6
16792
16793 # So?  What about this header?
16794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16795   yes:no: )
16796     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16800     ac_header_preproc=yes
16801     ;;
16802   no:yes:* )
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16805     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16806 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16810 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16815     (
16816       cat <<\_ASBOX
16817 ## ------------------------------------------ ##
16818 ## Report this to the AC_PACKAGE_NAME lists.  ##
16819 ## ------------------------------------------ ##
16820 _ASBOX
16821     ) |
16822       sed "s/^/$as_me: WARNING:     /" >&2
16823     ;;
16824 esac
16825 echo "$as_me:$LINENO: checking for $ac_header" >&5
16826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   eval "$as_ac_Header=\$ac_header_preproc"
16831 fi
16832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16834
16835 fi
16836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16837   cat >>confdefs.h <<_ACEOF
16838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16839 _ACEOF
16840
16841 fi
16842
16843 done
16844
16845 if test $ac_cv_header_sys_uuid_h = yes ; then
16846         save_LIBS="$LIBS"
16847         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16848 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16849 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   ac_func_search_save_LIBS=$LIBS
16853 ac_cv_search_uuid_to_str=no
16854 cat >conftest.$ac_ext <<_ACEOF
16855 /* confdefs.h.  */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h.  */
16860
16861 /* Override any gcc2 internal prototype to avoid an error.  */
16862 #ifdef __cplusplus
16863 extern "C"
16864 #endif
16865 /* We use char because int might match the return type of a gcc2
16866    builtin and then its argument prototype would still apply.  */
16867 char uuid_to_str ();
16868 int
16869 main ()
16870 {
16871 uuid_to_str ();
16872   ;
16873   return 0;
16874 }
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16878   (eval $ac_link) 2>conftest.er1
16879   ac_status=$?
16880   grep -v '^ *+' conftest.er1 >conftest.err
16881   rm -f conftest.er1
16882   cat conftest.err >&5
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } &&
16885          { ac_try='test -z "$ac_c_werror_flag"
16886                          || test ! -s conftest.err'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; } &&
16892          { ac_try='test -s conftest$ac_exeext'
16893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894   (eval $ac_try) 2>&5
16895   ac_status=$?
16896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897   (exit $ac_status); }; }; then
16898   ac_cv_search_uuid_to_str="none required"
16899 else
16900   echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 fi
16904 rm -f conftest.err conftest.$ac_objext \
16905       conftest$ac_exeext conftest.$ac_ext
16906 if test "$ac_cv_search_uuid_to_str" = no; then
16907   for ac_lib in uuid; do
16908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16909     cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h.  */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h.  */
16915
16916 /* Override any gcc2 internal prototype to avoid an error.  */
16917 #ifdef __cplusplus
16918 extern "C"
16919 #endif
16920 /* We use char because int might match the return type of a gcc2
16921    builtin and then its argument prototype would still apply.  */
16922 char uuid_to_str ();
16923 int
16924 main ()
16925 {
16926 uuid_to_str ();
16927   ;
16928   return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933   (eval $ac_link) 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag"
16941                          || test ! -s conftest.err'
16942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943   (eval $ac_try) 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; } &&
16947          { ac_try='test -s conftest$ac_exeext'
16948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949   (eval $ac_try) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); }; }; then
16953   ac_cv_search_uuid_to_str="-l$ac_lib"
16954 break
16955 else
16956   echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959 fi
16960 rm -f conftest.err conftest.$ac_objext \
16961       conftest$ac_exeext conftest.$ac_ext
16962   done
16963 fi
16964 LIBS=$ac_func_search_save_LIBS
16965 fi
16966 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16967 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16968 if test "$ac_cv_search_uuid_to_str" != no; then
16969   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16970   have_uuid=yes
16971 else
16972   :
16973 fi
16974
16975         LIBS="$save_LIBS"
16976
16977         if test have_uuid = yes ; then
16978
16979 cat >>confdefs.h <<\_ACEOF
16980 #define HAVE_UUID_TO_STR 1
16981 _ACEOF
16982
16983
16984                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16985                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16986         fi
16987 fi
16988
16989 if test $have_uuid = no ; then
16990         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16991 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16992         save_LIBS="$LIBS"
16993         LIBS="$LIBS -lrpcrt4"
16994         cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h.  */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h.  */
17000
17001                 int __stdcall UuidCreate(void *);
17002                 int __stdcall UuidToStringA(void *,void **);
17003
17004 int
17005 main ()
17006 {
17007
17008                 UuidCreate(0);
17009                 UuidToStringA(0,0);
17010
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17017   (eval $ac_link) 2>conftest.er1
17018   ac_status=$?
17019   grep -v '^ *+' conftest.er1 >conftest.err
17020   rm -f conftest.er1
17021   cat conftest.err >&5
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); } &&
17024          { ac_try='test -z "$ac_c_werror_flag"
17025                          || test ! -s conftest.err'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; } &&
17031          { ac_try='test -s conftest$ac_exeext'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; }; then
17037   need_rpcrt=yes
17038 else
17039   echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042 need_rpcrt=no
17043 fi
17044 rm -f conftest.err conftest.$ac_objext \
17045       conftest$ac_exeext conftest.$ac_ext
17046         if test $need_rpcrt = yes; then
17047                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17048         fi
17049         LIBS="$save_LIBS"
17050         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17051 echo "${ECHO_T}$need_rpcrt" >&6
17052 fi
17053
17054 ol_cv_lib_resolver=no
17055 if test $ol_cv_lib_resolver = no ; then
17056         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17057 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17058 if test "${ol_cv_resolver_none+set}" = set; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061
17062         ol_RESOLVER_LIB=
17063         ol_LIBS=$LIBS
17064         LIBS="$ol_RESOLVER_LIB $LIBS"
17065
17066         cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072
17073 #ifdef HAVE_SYS_TYPES_H
17074 #       include <sys/types.h>
17075 #endif
17076 #include <netinet/in.h>
17077 #ifdef HAVE_ARPA_NAMESER_H
17078 #       include <arpa/nameser.h>
17079 #endif
17080 #ifdef HAVE_RESOLV_H
17081 #       include <resolv.h>
17082 #endif
17083
17084 int
17085 main ()
17086 {
17087 {
17088         int len, status;
17089         char *request = NULL;
17090         unsigned char reply[64*1024];
17091         unsigned char host[64*1024];
17092         unsigned char *p;
17093
17094 #ifdef NS_HFIXEDSZ
17095         /* Bind 8/9 interface */
17096         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17097 #else
17098         /* Bind 4 interface */
17099 # ifndef T_SRV
17100 #  define T_SRV 33
17101 # endif
17102         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17103 #endif
17104         p = reply;
17105 #ifdef NS_HFIXEDSZ
17106         /* Bind 8/9 interface */
17107         p += NS_HFIXEDSZ;
17108 #elif defined(HFIXEDSZ)
17109         /* Bind 4 interface w/ HFIXEDSZ */
17110         p += HFIXEDSZ;
17111 #else
17112         /* Bind 4 interface w/o HFIXEDSZ */
17113         p += sizeof(HEADER);
17114 #endif
17115         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17116 }
17117   ;
17118   return 0;
17119 }
17120 _ACEOF
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17123   (eval $ac_link) 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } &&
17130          { ac_try='test -z "$ac_c_werror_flag"
17131                          || test ! -s conftest.err'
17132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133   (eval $ac_try) 2>&5
17134   ac_status=$?
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); }; } &&
17137          { ac_try='test -s conftest$ac_exeext'
17138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139   (eval $ac_try) 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); }; }; then
17143   ol_cv_resolver_none=yes
17144 else
17145   echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ol_cv_resolver_none=no
17149 fi
17150 rm -f conftest.err conftest.$ac_objext \
17151       conftest$ac_exeext conftest.$ac_ext
17152
17153         LIBS="$ol_LIBS"
17154
17155 fi
17156 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17157 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17158
17159         if test $ol_cv_resolver_none = yes ; then
17160                 ol_cv_lib_resolver=yes
17161         fi
17162 fi
17163
17164 if test $ol_cv_lib_resolver = no ; then
17165         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17166 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17167 if test "${ol_cv_resolver_resolv+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170
17171         ol_RESOLVER_LIB=-lresolv
17172         ol_LIBS=$LIBS
17173         LIBS="$ol_RESOLVER_LIB $LIBS"
17174
17175         cat >conftest.$ac_ext <<_ACEOF
17176 /* confdefs.h.  */
17177 _ACEOF
17178 cat confdefs.h >>conftest.$ac_ext
17179 cat >>conftest.$ac_ext <<_ACEOF
17180 /* end confdefs.h.  */
17181
17182 #ifdef HAVE_SYS_TYPES_H
17183 #       include <sys/types.h>
17184 #endif
17185 #include <netinet/in.h>
17186 #ifdef HAVE_ARPA_NAMESER_H
17187 #       include <arpa/nameser.h>
17188 #endif
17189 #ifdef HAVE_RESOLV_H
17190 #       include <resolv.h>
17191 #endif
17192
17193 int
17194 main ()
17195 {
17196 {
17197         int len, status;
17198         char *request = NULL;
17199         unsigned char reply[64*1024];
17200         unsigned char host[64*1024];
17201         unsigned char *p;
17202
17203 #ifdef NS_HFIXEDSZ
17204         /* Bind 8/9 interface */
17205         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17206 #else
17207         /* Bind 4 interface */
17208 # ifndef T_SRV
17209 #  define T_SRV 33
17210 # endif
17211         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17212 #endif
17213         p = reply;
17214 #ifdef NS_HFIXEDSZ
17215         /* Bind 8/9 interface */
17216         p += NS_HFIXEDSZ;
17217 #elif defined(HFIXEDSZ)
17218         /* Bind 4 interface w/ HFIXEDSZ */
17219         p += HFIXEDSZ;
17220 #else
17221         /* Bind 4 interface w/o HFIXEDSZ */
17222         p += sizeof(HEADER);
17223 #endif
17224         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17225 }
17226   ;
17227   return 0;
17228 }
17229 _ACEOF
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232   (eval $ac_link) 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -z "$ac_c_werror_flag"
17240                          || test ! -s conftest.err'
17241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242   (eval $ac_try) 2>&5
17243   ac_status=$?
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); }; } &&
17246          { ac_try='test -s conftest$ac_exeext'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; }; then
17252   ol_cv_resolver_resolv=yes
17253 else
17254   echo "$as_me: failed program was:" >&5
17255 sed 's/^/| /' conftest.$ac_ext >&5
17256
17257 ol_cv_resolver_resolv=no
17258 fi
17259 rm -f conftest.err conftest.$ac_objext \
17260       conftest$ac_exeext conftest.$ac_ext
17261
17262         LIBS="$ol_LIBS"
17263
17264 fi
17265 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17266 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17267
17268         if test $ol_cv_resolver_resolv = yes ; then
17269                 ol_cv_lib_resolver=-lresolv
17270         fi
17271 fi
17272
17273 if test $ol_cv_lib_resolver = no ; then
17274         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17275 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17276 if test "${ol_cv_resolver_bind+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279
17280         ol_RESOLVER_LIB=-lbind
17281         ol_LIBS=$LIBS
17282         LIBS="$ol_RESOLVER_LIB $LIBS"
17283
17284         cat >conftest.$ac_ext <<_ACEOF
17285 /* confdefs.h.  */
17286 _ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h.  */
17290
17291 #ifdef HAVE_SYS_TYPES_H
17292 #       include <sys/types.h>
17293 #endif
17294 #include <netinet/in.h>
17295 #ifdef HAVE_ARPA_NAMESER_H
17296 #       include <arpa/nameser.h>
17297 #endif
17298 #ifdef HAVE_RESOLV_H
17299 #       include <resolv.h>
17300 #endif
17301
17302 int
17303 main ()
17304 {
17305 {
17306         int len, status;
17307         char *request = NULL;
17308         unsigned char reply[64*1024];
17309         unsigned char host[64*1024];
17310         unsigned char *p;
17311
17312 #ifdef NS_HFIXEDSZ
17313         /* Bind 8/9 interface */
17314         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17315 #else
17316         /* Bind 4 interface */
17317 # ifndef T_SRV
17318 #  define T_SRV 33
17319 # endif
17320         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17321 #endif
17322         p = reply;
17323 #ifdef NS_HFIXEDSZ
17324         /* Bind 8/9 interface */
17325         p += NS_HFIXEDSZ;
17326 #elif defined(HFIXEDSZ)
17327         /* Bind 4 interface w/ HFIXEDSZ */
17328         p += HFIXEDSZ;
17329 #else
17330         /* Bind 4 interface w/o HFIXEDSZ */
17331         p += sizeof(HEADER);
17332 #endif
17333         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17334 }
17335   ;
17336   return 0;
17337 }
17338 _ACEOF
17339 rm -f conftest.$ac_objext conftest$ac_exeext
17340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17341   (eval $ac_link) 2>conftest.er1
17342   ac_status=$?
17343   grep -v '^ *+' conftest.er1 >conftest.err
17344   rm -f conftest.er1
17345   cat conftest.err >&5
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); } &&
17348          { ac_try='test -z "$ac_c_werror_flag"
17349                          || test ! -s conftest.err'
17350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351   (eval $ac_try) 2>&5
17352   ac_status=$?
17353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354   (exit $ac_status); }; } &&
17355          { ac_try='test -s conftest$ac_exeext'
17356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357   (eval $ac_try) 2>&5
17358   ac_status=$?
17359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); }; }; then
17361   ol_cv_resolver_bind=yes
17362 else
17363   echo "$as_me: failed program was:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17365
17366 ol_cv_resolver_bind=no
17367 fi
17368 rm -f conftest.err conftest.$ac_objext \
17369       conftest$ac_exeext conftest.$ac_ext
17370
17371         LIBS="$ol_LIBS"
17372
17373 fi
17374 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17375 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17376
17377         if test $ol_cv_resolver_bind = yes ; then
17378                 ol_cv_lib_resolver=-lbind
17379         fi
17380 fi
17381
17382
17383
17384 ol_link_dnssrv=no
17385 if test "$ol_cv_lib_resolver" != no ; then
17386
17387 cat >>confdefs.h <<\_ACEOF
17388 #define HAVE_RES_QUERY 1
17389 _ACEOF
17390
17391
17392         if test "$ol_enable_dnssrv" != no ; then
17393                 ol_link_dnssrv=yes
17394         fi
17395
17396         if test "$ol_cv_lib_resolver" != yes ; then
17397                 LIBS="$ol_cv_lib_resolver $LIBS"
17398         fi
17399 fi
17400
17401 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17402         if test "$ol_link_dnssrv" = no ; then
17403                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17404 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17405    { (exit 1); exit 1; }; }
17406         fi
17407 else
17408         ol_enable_dnssrv=no
17409 fi
17410
17411
17412 for ac_func in hstrerror
17413 do
17414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17415 echo "$as_me:$LINENO: checking for $ac_func" >&5
17416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17417 if eval "test \"\${$as_ac_var+set}\" = set"; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17428 #define $ac_func innocuous_$ac_func
17429
17430 /* System header to define __stub macros and hopefully few prototypes,
17431     which can conflict with char $ac_func (); below.
17432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17433     <limits.h> exists even on freestanding compilers.  */
17434
17435 #ifdef __STDC__
17436 # include <limits.h>
17437 #else
17438 # include <assert.h>
17439 #endif
17440
17441 #undef $ac_func
17442
17443 /* Override any gcc2 internal prototype to avoid an error.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 {
17447 #endif
17448 /* We use char because int might match the return type of a gcc2
17449    builtin and then its argument prototype would still apply.  */
17450 char $ac_func ();
17451 /* The GNU C library defines this for functions which it implements
17452     to always fail with ENOSYS.  Some functions are actually named
17453     something starting with __ and the normal name is an alias.  */
17454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17455 choke me
17456 #else
17457 char (*f) () = $ac_func;
17458 #endif
17459 #ifdef __cplusplus
17460 }
17461 #endif
17462
17463 int
17464 main ()
17465 {
17466 return f != $ac_func;
17467   ;
17468   return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext conftest$ac_exeext
17472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17473   (eval $ac_link) 2>conftest.er1
17474   ac_status=$?
17475   grep -v '^ *+' conftest.er1 >conftest.err
17476   rm -f conftest.er1
17477   cat conftest.err >&5
17478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479   (exit $ac_status); } &&
17480          { ac_try='test -z "$ac_c_werror_flag"
17481                          || test ! -s conftest.err'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489   (eval $ac_try) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; }; then
17493   eval "$as_ac_var=yes"
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 eval "$as_ac_var=no"
17499 fi
17500 rm -f conftest.err conftest.$ac_objext \
17501       conftest$ac_exeext conftest.$ac_ext
17502 fi
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF
17509
17510 fi
17511 done
17512
17513
17514
17515
17516
17517
17518 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17519 do
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17523 if eval "test \"\${$as_ac_var+set}\" = set"; then
17524   echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526   cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h.  */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h.  */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17534 #define $ac_func innocuous_$ac_func
17535
17536 /* System header to define __stub macros and hopefully few prototypes,
17537     which can conflict with char $ac_func (); below.
17538     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539     <limits.h> exists even on freestanding compilers.  */
17540
17541 #ifdef __STDC__
17542 # include <limits.h>
17543 #else
17544 # include <assert.h>
17545 #endif
17546
17547 #undef $ac_func
17548
17549 /* Override any gcc2 internal prototype to avoid an error.  */
17550 #ifdef __cplusplus
17551 extern "C"
17552 {
17553 #endif
17554 /* We use char because int might match the return type of a gcc2
17555    builtin and then its argument prototype would still apply.  */
17556 char $ac_func ();
17557 /* The GNU C library defines this for functions which it implements
17558     to always fail with ENOSYS.  Some functions are actually named
17559     something starting with __ and the normal name is an alias.  */
17560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17561 choke me
17562 #else
17563 char (*f) () = $ac_func;
17564 #endif
17565 #ifdef __cplusplus
17566 }
17567 #endif
17568
17569 int
17570 main ()
17571 {
17572 return f != $ac_func;
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17579   (eval $ac_link) 2>conftest.er1
17580   ac_status=$?
17581   grep -v '^ *+' conftest.er1 >conftest.err
17582   rm -f conftest.er1
17583   cat conftest.err >&5
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); } &&
17586          { ac_try='test -z "$ac_c_werror_flag"
17587                          || test ! -s conftest.err'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; } &&
17593          { ac_try='test -s conftest$ac_exeext'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; }; then
17599   eval "$as_ac_var=yes"
17600 else
17601   echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 eval "$as_ac_var=no"
17605 fi
17606 rm -f conftest.err conftest.$ac_objext \
17607       conftest$ac_exeext conftest.$ac_ext
17608 fi
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17611 if test `eval echo '${'$as_ac_var'}'` = yes; then
17612   cat >>confdefs.h <<_ACEOF
17613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17614 _ACEOF
17615
17616 fi
17617 done
17618
17619
17620 ol_link_ipv6=no
17621 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17622         if test $ol_enable_ipv6 = yes ; then
17623                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17624 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17625    { (exit 1); exit 1; }; }
17626         fi
17627 elif test $ol_enable_ipv6 != no ; then
17628         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17629 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17630 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17631   echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633
17634                 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640
17641 #                       include <netinet/in.h>
17642 #                       ifdef INET6_ADDRSTRLEN
17643                                 __has_inet6_addrstrlen__;
17644 #                       endif
17645
17646 _ACEOF
17647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17648   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17649   ol_cv_inet6_addrstrlen=yes
17650 else
17651   ol_cv_inet6_addrstrlen=no
17652 fi
17653 rm -f conftest*
17654
17655 fi
17656 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17657 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17658
17659
17660         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17661 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17662 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17663   echo $ECHO_N "(cached) $ECHO_C" >&6
17664 else
17665
17666                 cat >conftest.$ac_ext <<_ACEOF
17667 /* confdefs.h.  */
17668 _ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h.  */
17672
17673 #include <sys/types.h>
17674 #include <sys/socket.h>
17675
17676 int
17677 main ()
17678 {
17679
17680                         struct sockaddr_storage ss;
17681
17682   ;
17683   return 0;
17684 }
17685 _ACEOF
17686 rm -f conftest.$ac_objext
17687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17688   (eval $ac_compile) 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } &&
17695          { ac_try='test -z "$ac_c_werror_flag"
17696                          || test ! -s conftest.err'
17697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698   (eval $ac_try) 2>&5
17699   ac_status=$?
17700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701   (exit $ac_status); }; } &&
17702          { ac_try='test -s conftest.$ac_objext'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; }; then
17708   ol_cv_struct_sockaddr_storage=yes
17709 else
17710   echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ol_cv_struct_sockaddr_storage=no
17714 fi
17715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17718 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17719
17720         if test $ol_cv_inet6_addrstrlen = yes &&
17721            test $ol_cv_struct_sockaddr_storage = yes ; then
17722                 ol_link_ipv6=yes
17723         elif test $ol_enable_ipv6 = yes &&
17724              test $ol_cv_inet6_addrstrlen = no ; then
17725                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17726 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17727    { (exit 1); exit 1; }; }
17728         elif test $ol_enable_ipv6 = yes &&
17729              test $ol_cv_struct_sockaddr_storage = no ; then
17730                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17731 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17732    { (exit 1); exit 1; }; }
17733         fi
17734 fi
17735
17736 if test $ol_enable_local != no ; then
17737
17738 for ac_header in sys/un.h
17739 do
17740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17742   echo "$as_me:$LINENO: checking for $ac_header" >&5
17743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 fi
17747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17749 else
17750   # Is the header compilable?
17751 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759 $ac_includes_default
17760 #include <$ac_header>
17761 _ACEOF
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764   (eval $ac_compile) 2>conftest.er1
17765   ac_status=$?
17766   grep -v '^ *+' conftest.er1 >conftest.err
17767   rm -f conftest.er1
17768   cat conftest.err >&5
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); } &&
17771          { ac_try='test -z "$ac_c_werror_flag"
17772                          || test ! -s conftest.err'
17773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774   (eval $ac_try) 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; } &&
17778          { ac_try='test -s conftest.$ac_objext'
17779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780   (eval $ac_try) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; }; then
17784   ac_header_compiler=yes
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ac_header_compiler=no
17790 fi
17791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17793 echo "${ECHO_T}$ac_header_compiler" >&6
17794
17795 # Is the header present?
17796 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h.  */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h.  */
17804 #include <$ac_header>
17805 _ACEOF
17806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17808   ac_status=$?
17809   grep -v '^ *+' conftest.er1 >conftest.err
17810   rm -f conftest.er1
17811   cat conftest.err >&5
17812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813   (exit $ac_status); } >/dev/null; then
17814   if test -s conftest.err; then
17815     ac_cpp_err=$ac_c_preproc_warn_flag
17816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17817   else
17818     ac_cpp_err=
17819   fi
17820 else
17821   ac_cpp_err=yes
17822 fi
17823 if test -z "$ac_cpp_err"; then
17824   ac_header_preproc=yes
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829   ac_header_preproc=no
17830 fi
17831 rm -f conftest.err conftest.$ac_ext
17832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17833 echo "${ECHO_T}$ac_header_preproc" >&6
17834
17835 # So?  What about this header?
17836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17837   yes:no: )
17838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17842     ac_header_preproc=yes
17843     ;;
17844   no:yes:* )
17845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17847     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17848 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17849     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17851     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17852 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17855     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17857     (
17858       cat <<\_ASBOX
17859 ## ------------------------------------------ ##
17860 ## Report this to the AC_PACKAGE_NAME lists.  ##
17861 ## ------------------------------------------ ##
17862 _ASBOX
17863     ) |
17864       sed "s/^/$as_me: WARNING:     /" >&2
17865     ;;
17866 esac
17867 echo "$as_me:$LINENO: checking for $ac_header" >&5
17868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17870   echo $ECHO_N "(cached) $ECHO_C" >&6
17871 else
17872   eval "$as_ac_Header=\$ac_header_preproc"
17873 fi
17874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17876
17877 fi
17878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17879   cat >>confdefs.h <<_ACEOF
17880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17881 _ACEOF
17882
17883 fi
17884
17885 done
17886
17887
17888         if test $ol_enable_local = auto ; then
17889                 ol_enable_local=$ac_cv_header_sys_un_h
17890         elif test $ac_cv_header_sys_un_h = no ; then
17891                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17892 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17893    { (exit 1); exit 1; }; }
17894         fi
17895 fi
17896
17897 ol_link_kbind=no
17898 ol_link_krb5=no
17899 ol_link_krb4=no
17900
17901 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17902
17903
17904 for ac_header in krb5.h
17905 do
17906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17908   echo "$as_me:$LINENO: checking for $ac_header" >&5
17909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17911   echo $ECHO_N "(cached) $ECHO_C" >&6
17912 fi
17913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17915 else
17916   # Is the header compilable?
17917 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925 $ac_includes_default
17926 #include <$ac_header>
17927 _ACEOF
17928 rm -f conftest.$ac_objext
17929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17930   (eval $ac_compile) 2>conftest.er1
17931   ac_status=$?
17932   grep -v '^ *+' conftest.er1 >conftest.err
17933   rm -f conftest.er1
17934   cat conftest.err >&5
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } &&
17937          { ac_try='test -z "$ac_c_werror_flag"
17938                          || test ! -s conftest.err'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; } &&
17944          { ac_try='test -s conftest.$ac_objext'
17945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17946   (eval $ac_try) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; }; then
17950   ac_header_compiler=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 ac_header_compiler=no
17956 fi
17957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17959 echo "${ECHO_T}$ac_header_compiler" >&6
17960
17961 # Is the header present?
17962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17964 cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 #include <$ac_header>
17971 _ACEOF
17972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17974   ac_status=$?
17975   grep -v '^ *+' conftest.er1 >conftest.err
17976   rm -f conftest.er1
17977   cat conftest.err >&5
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } >/dev/null; then
17980   if test -s conftest.err; then
17981     ac_cpp_err=$ac_c_preproc_warn_flag
17982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17983   else
17984     ac_cpp_err=
17985   fi
17986 else
17987   ac_cpp_err=yes
17988 fi
17989 if test -z "$ac_cpp_err"; then
17990   ac_header_preproc=yes
17991 else
17992   echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17994
17995   ac_header_preproc=no
17996 fi
17997 rm -f conftest.err conftest.$ac_ext
17998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17999 echo "${ECHO_T}$ac_header_preproc" >&6
18000
18001 # So?  What about this header?
18002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18003   yes:no: )
18004     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18008     ac_header_preproc=yes
18009     ;;
18010   no:yes:* )
18011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18013     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18014 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18015     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18017     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18018 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18021     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18023     (
18024       cat <<\_ASBOX
18025 ## ------------------------------------------ ##
18026 ## Report this to the AC_PACKAGE_NAME lists.  ##
18027 ## ------------------------------------------ ##
18028 _ASBOX
18029     ) |
18030       sed "s/^/$as_me: WARNING:     /" >&2
18031     ;;
18032 esac
18033 echo "$as_me:$LINENO: checking for $ac_header" >&5
18034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   eval "$as_ac_Header=\$ac_header_preproc"
18039 fi
18040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18042
18043 fi
18044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18045   cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18047 _ACEOF
18048
18049 fi
18050
18051 done
18052
18053
18054         if test $ac_cv_header_krb5_h = yes ; then
18055
18056 for ac_header in heim_err.h
18057 do
18058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18060   echo "$as_me:$LINENO: checking for $ac_header" >&5
18061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18063   echo $ECHO_N "(cached) $ECHO_C" >&6
18064 fi
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18067 else
18068   # Is the header compilable?
18069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18071 cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h.  */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h.  */
18077 $ac_includes_default
18078 #include <$ac_header>
18079 _ACEOF
18080 rm -f conftest.$ac_objext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18082   (eval $ac_compile) 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } &&
18089          { ac_try='test -z "$ac_c_werror_flag"
18090                          || test ! -s conftest.err'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest.$ac_objext'
18097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098   (eval $ac_try) 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102   ac_header_compiler=yes
18103 else
18104   echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 ac_header_compiler=no
18108 fi
18109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18111 echo "${ECHO_T}$ac_header_compiler" >&6
18112
18113 # Is the header present?
18114 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h.  */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h.  */
18122 #include <$ac_header>
18123 _ACEOF
18124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18125   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18126   ac_status=$?
18127   grep -v '^ *+' conftest.er1 >conftest.err
18128   rm -f conftest.er1
18129   cat conftest.err >&5
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); } >/dev/null; then
18132   if test -s conftest.err; then
18133     ac_cpp_err=$ac_c_preproc_warn_flag
18134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18135   else
18136     ac_cpp_err=
18137   fi
18138 else
18139   ac_cpp_err=yes
18140 fi
18141 if test -z "$ac_cpp_err"; then
18142   ac_header_preproc=yes
18143 else
18144   echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147   ac_header_preproc=no
18148 fi
18149 rm -f conftest.err conftest.$ac_ext
18150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18151 echo "${ECHO_T}$ac_header_preproc" >&6
18152
18153 # So?  What about this header?
18154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18155   yes:no: )
18156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18160     ac_header_preproc=yes
18161     ;;
18162   no:yes:* )
18163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18175     (
18176       cat <<\_ASBOX
18177 ## ------------------------------------------ ##
18178 ## Report this to the AC_PACKAGE_NAME lists.  ##
18179 ## ------------------------------------------ ##
18180 _ASBOX
18181     ) |
18182       sed "s/^/$as_me: WARNING:     /" >&2
18183     ;;
18184 esac
18185 echo "$as_me:$LINENO: checking for $ac_header" >&5
18186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18188   echo $ECHO_N "(cached) $ECHO_C" >&6
18189 else
18190   eval "$as_ac_Header=\$ac_header_preproc"
18191 fi
18192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18194
18195 fi
18196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18197   cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18199 _ACEOF
18200
18201 fi
18202
18203 done
18204
18205                 if test $ac_cv_header_heim_err_h = yes ; then
18206                         krb5_impl=heimdal
18207                 else
18208                         krb5_impl=mit
18209                 fi
18210
18211                 if test $krb5_impl = mit; then
18212                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18213 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18214 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18215   echo $ECHO_N "(cached) $ECHO_C" >&6
18216 else
18217   ac_check_lib_save_LIBS=$LIBS
18218 LIBS="-lk5crypto  $LIBS"
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h.  */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h.  */
18225
18226
18227 int
18228 main ()
18229 {
18230 main ();
18231   ;
18232   return 0;
18233 }
18234 _ACEOF
18235 rm -f conftest.$ac_objext conftest$ac_exeext
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237   (eval $ac_link) 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } &&
18244          { ac_try='test -z "$ac_c_werror_flag"
18245                          || test ! -s conftest.err'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; } &&
18251          { ac_try='test -s conftest$ac_exeext'
18252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253   (eval $ac_try) 2>&5
18254   ac_status=$?
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); }; }; then
18257   ac_cv_lib_k5crypto_main=yes
18258 else
18259   echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18261
18262 ac_cv_lib_k5crypto_main=no
18263 fi
18264 rm -f conftest.err conftest.$ac_objext \
18265       conftest$ac_exeext conftest.$ac_ext
18266 LIBS=$ac_check_lib_save_LIBS
18267 fi
18268 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18269 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18270 if test $ac_cv_lib_k5crypto_main = yes; then
18271   krb5crypto=k5crypto
18272 else
18273   krb5crypto=crypto
18274 fi
18275
18276
18277                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18278 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18279 if test "${ac_cv_lib_krb5_main+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290
18291
18292 int
18293 main ()
18294 {
18295 main ();
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 rm -f conftest.$ac_objext conftest$ac_exeext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302   (eval $ac_link) 2>conftest.er1
18303   ac_status=$?
18304   grep -v '^ *+' conftest.er1 >conftest.err
18305   rm -f conftest.er1
18306   cat conftest.err >&5
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); } &&
18309          { ac_try='test -z "$ac_c_werror_flag"
18310                          || test ! -s conftest.err'
18311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312   (eval $ac_try) 2>&5
18313   ac_status=$?
18314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; } &&
18316          { ac_try='test -s conftest$ac_exeext'
18317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318   (eval $ac_try) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   ac_cv_lib_krb5_main=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327 ac_cv_lib_krb5_main=no
18328 fi
18329 rm -f conftest.err conftest.$ac_objext \
18330       conftest$ac_exeext conftest.$ac_ext
18331 LIBS=$ac_check_lib_save_LIBS
18332 fi
18333 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18334 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18335 if test $ac_cv_lib_krb5_main = yes; then
18336   have_krb5=yes
18337                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18338 else
18339   have_krb5=no
18340 fi
18341
18342
18343                 elif test $krb5_impl = heimdal; then
18344                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18345 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18346 if test "${ac_cv_lib_des_main+set}" = set; then
18347   echo $ECHO_N "(cached) $ECHO_C" >&6
18348 else
18349   ac_check_lib_save_LIBS=$LIBS
18350 LIBS="-ldes  $LIBS"
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h.  */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h.  */
18357
18358
18359 int
18360 main ()
18361 {
18362 main ();
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18369   (eval $ac_link) 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } &&
18376          { ac_try='test -z "$ac_c_werror_flag"
18377                          || test ! -s conftest.err'
18378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379   (eval $ac_try) 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; } &&
18383          { ac_try='test -s conftest$ac_exeext'
18384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385   (eval $ac_try) 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; }; then
18389   ac_cv_lib_des_main=yes
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_cv_lib_des_main=no
18395 fi
18396 rm -f conftest.err conftest.$ac_objext \
18397       conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18399 fi
18400 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18401 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18402 if test $ac_cv_lib_des_main = yes; then
18403   krb5crypto=des
18404 else
18405   krb5crypto=crypto
18406 fi
18407
18408
18409                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18410 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18411 if test "${ac_cv_lib_krb5_main+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   ac_check_lib_save_LIBS=$LIBS
18415 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423
18424 int
18425 main ()
18426 {
18427 main ();
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434   (eval $ac_link) 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag"
18442                          || test ! -s conftest.err'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; } &&
18448          { ac_try='test -s conftest$ac_exeext'
18449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450   (eval $ac_try) 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); }; }; then
18454   ac_cv_lib_krb5_main=yes
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_cv_lib_krb5_main=no
18460 fi
18461 rm -f conftest.err conftest.$ac_objext \
18462       conftest$ac_exeext conftest.$ac_ext
18463 LIBS=$ac_check_lib_save_LIBS
18464 fi
18465 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18466 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18467 if test $ac_cv_lib_krb5_main = yes; then
18468   have_krb5=yes
18469                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18470 else
18471   have_krb5=no
18472 fi
18473
18474
18475
18476 cat >>confdefs.h <<\_ACEOF
18477 #define HAVE_HEIMDAL_KERBEROS 1
18478 _ACEOF
18479
18480
18481                 else
18482                         have_krb5=no
18483                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18484 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18485                 fi
18486
18487                 if test $have_krb5 = yes ; then
18488                         ol_link_krb5=yes
18489
18490
18491 cat >>confdefs.h <<\_ACEOF
18492 #define HAVE_KRB5 1
18493 _ACEOF
18494
18495
18496                         if test $ol_with_kerberos = k5only ; then
18497                                 ol_with_kerberos=found
18498                         fi
18499
18500                 elif test $ol_with_kerberos != auto ; then
18501                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18502 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18503    { (exit 1); exit 1; }; }
18504                 fi
18505
18506         fi
18507         ;;
18508 esac
18509
18510 if test $ol_link_krb5 = yes &&
18511    { test $ol_with_kerberos = yes ||
18512      test $ol_with_kerberos = auto ||
18513      test $ol_with_kerberos = k425; }; then
18514
18515
18516
18517 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18518 do
18519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18521   echo "$as_me:$LINENO: checking for $ac_header" >&5
18522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18524   echo $ECHO_N "(cached) $ECHO_C" >&6
18525 fi
18526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18528 else
18529   # Is the header compilable?
18530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h.  */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h.  */
18538 $ac_includes_default
18539 #include <$ac_header>
18540 _ACEOF
18541 rm -f conftest.$ac_objext
18542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18543   (eval $ac_compile) 2>conftest.er1
18544   ac_status=$?
18545   grep -v '^ *+' conftest.er1 >conftest.err
18546   rm -f conftest.er1
18547   cat conftest.err >&5
18548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549   (exit $ac_status); } &&
18550          { ac_try='test -z "$ac_c_werror_flag"
18551                          || test ! -s conftest.err'
18552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553   (eval $ac_try) 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; } &&
18557          { ac_try='test -s conftest.$ac_objext'
18558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559   (eval $ac_try) 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }; }; then
18563   ac_header_compiler=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 ac_header_compiler=no
18569 fi
18570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18572 echo "${ECHO_T}$ac_header_compiler" >&6
18573
18574 # Is the header present?
18575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583 #include <$ac_header>
18584 _ACEOF
18585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18586   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } >/dev/null; then
18593   if test -s conftest.err; then
18594     ac_cpp_err=$ac_c_preproc_warn_flag
18595     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18596   else
18597     ac_cpp_err=
18598   fi
18599 else
18600   ac_cpp_err=yes
18601 fi
18602 if test -z "$ac_cpp_err"; then
18603   ac_header_preproc=yes
18604 else
18605   echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608   ac_header_preproc=no
18609 fi
18610 rm -f conftest.err conftest.$ac_ext
18611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18612 echo "${ECHO_T}$ac_header_preproc" >&6
18613
18614 # So?  What about this header?
18615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18616   yes:no: )
18617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18621     ac_header_preproc=yes
18622     ;;
18623   no:yes:* )
18624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18636     (
18637       cat <<\_ASBOX
18638 ## ------------------------------------------ ##
18639 ## Report this to the AC_PACKAGE_NAME lists.  ##
18640 ## ------------------------------------------ ##
18641 _ASBOX
18642     ) |
18643       sed "s/^/$as_me: WARNING:     /" >&2
18644     ;;
18645 esac
18646 echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   eval "$as_ac_Header=\$ac_header_preproc"
18652 fi
18653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18655
18656 fi
18657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18658   cat >>confdefs.h <<_ACEOF
18659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18660 _ACEOF
18661
18662 fi
18663
18664 done
18665
18666
18667         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18668                 if test $krb5_impl = mit; then
18669                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18670 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18671 if test "${ac_cv_lib_krb4_main+set}" = set; then
18672   echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674   ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682
18683
18684 int
18685 main ()
18686 {
18687 main ();
18688   ;
18689   return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18694   (eval $ac_link) 2>conftest.er1
18695   ac_status=$?
18696   grep -v '^ *+' conftest.er1 >conftest.err
18697   rm -f conftest.er1
18698   cat conftest.err >&5
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -z "$ac_c_werror_flag"
18702                          || test ! -s conftest.err'
18703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704   (eval $ac_try) 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; } &&
18708          { ac_try='test -s conftest$ac_exeext'
18709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710   (eval $ac_try) 2>&5
18711   ac_status=$?
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); }; }; then
18714   ac_cv_lib_krb4_main=yes
18715 else
18716   echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 ac_cv_lib_krb4_main=no
18720 fi
18721 rm -f conftest.err conftest.$ac_objext \
18722       conftest$ac_exeext conftest.$ac_ext
18723 LIBS=$ac_check_lib_save_LIBS
18724 fi
18725 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18726 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18727 if test $ac_cv_lib_krb4_main = yes; then
18728   have_k425=yes
18729                                 KRB4_LIBS="-lkrb4 -ldes425"
18730 else
18731   have_k425=no
18732 fi
18733
18734
18735                 elif test $krb5_impl = heimdal; then
18736                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18737 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18738 if test "${ac_cv_lib_krb4_main+set}" = set; then
18739   echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741   ac_check_lib_save_LIBS=$LIBS
18742 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18743 cat >conftest.$ac_ext <<_ACEOF
18744 /* confdefs.h.  */
18745 _ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h.  */
18749
18750
18751 int
18752 main ()
18753 {
18754 main ();
18755   ;
18756   return 0;
18757 }
18758 _ACEOF
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18761   (eval $ac_link) 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } &&
18768          { ac_try='test -z "$ac_c_werror_flag"
18769                          || test ! -s conftest.err'
18770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771   (eval $ac_try) 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); }; } &&
18775          { ac_try='test -s conftest$ac_exeext'
18776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777   (eval $ac_try) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); }; }; then
18781   ac_cv_lib_krb4_main=yes
18782 else
18783   echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 ac_cv_lib_krb4_main=no
18787 fi
18788 rm -f conftest.err conftest.$ac_objext \
18789       conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18791 fi
18792 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18793 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18794 if test $ac_cv_lib_krb4_main = yes; then
18795   have_k425=yes
18796                                 KRB4_LIBS="-lkrb4"
18797 else
18798   have_k425=no
18799 fi
18800
18801
18802                 else
18803                         have_425=no
18804                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18805 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18806                 fi
18807
18808                 if test $have_k425 = yes ; then
18809                         ol_with_kerberos=found
18810                         ol_link_krb4=yes
18811
18812
18813 cat >>confdefs.h <<\_ACEOF
18814 #define HAVE_KRB425 1
18815 _ACEOF
18816
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE_KRB4 1
18820 _ACEOF
18821
18822
18823                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18824 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18825 if test "${ol_cv_var_des_debug+set}" = set; then
18826   echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828
18829                                                                 save_LIBS="$LIBS"
18830                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18831                                 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837
18838 #include <kerberosIV/krb.h>
18839 #include <kerberosIV/des.h>
18840 extern int des_debug;
18841
18842 int
18843 main ()
18844 {
18845
18846 des_debug = 1;
18847
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18854   (eval $ac_link) 2>conftest.er1
18855   ac_status=$?
18856   grep -v '^ *+' conftest.er1 >conftest.err
18857   rm -f conftest.er1
18858   cat conftest.err >&5
18859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860   (exit $ac_status); } &&
18861          { ac_try='test -z "$ac_c_werror_flag"
18862                          || test ! -s conftest.err'
18863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864   (eval $ac_try) 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; } &&
18868          { ac_try='test -s conftest$ac_exeext'
18869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870   (eval $ac_try) 2>&5
18871   ac_status=$?
18872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873   (exit $ac_status); }; }; then
18874   ol_cv_var_des_debug=yes
18875 else
18876   echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879 ol_cv_var_des_debug=no
18880 fi
18881 rm -f conftest.err conftest.$ac_objext \
18882       conftest$ac_exeext conftest.$ac_ext
18883                                                                 LIBS="$save_LIBS"
18884
18885 fi
18886 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18887 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18888
18889                         if test $ol_cv_var_des_debug = yes ; then
18890
18891 cat >>confdefs.h <<\_ACEOF
18892 #define HAVE_DES_DEBUG 1
18893 _ACEOF
18894
18895                         fi
18896
18897                         LIBS="$save_LIBS"
18898                 fi
18899         fi
18900 fi
18901
18902 if test $ol_link_krb5 = yes ; then
18903         ol_with_kerberos=found
18904 fi
18905
18906 case $ol_with_kerberos in yes | auto | k4 | kth)
18907
18908
18909
18910
18911 for ac_header in krb.h des.h krb-archaeology.h
18912 do
18913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18915   echo "$as_me:$LINENO: checking for $ac_header" >&5
18916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18918   echo $ECHO_N "(cached) $ECHO_C" >&6
18919 fi
18920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18922 else
18923   # Is the header compilable?
18924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18927 /* confdefs.h.  */
18928 _ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h.  */
18932 $ac_includes_default
18933 #include <$ac_header>
18934 _ACEOF
18935 rm -f conftest.$ac_objext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937   (eval $ac_compile) 2>conftest.er1
18938   ac_status=$?
18939   grep -v '^ *+' conftest.er1 >conftest.err
18940   rm -f conftest.er1
18941   cat conftest.err >&5
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); } &&
18944          { ac_try='test -z "$ac_c_werror_flag"
18945                          || test ! -s conftest.err'
18946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947   (eval $ac_try) 2>&5
18948   ac_status=$?
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); }; } &&
18951          { ac_try='test -s conftest.$ac_objext'
18952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953   (eval $ac_try) 2>&5
18954   ac_status=$?
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); }; }; then
18957   ac_header_compiler=yes
18958 else
18959   echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_header_compiler=no
18963 fi
18964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968 # Is the header present?
18969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18972 /* confdefs.h.  */
18973 _ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h.  */
18977 #include <$ac_header>
18978 _ACEOF
18979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } >/dev/null; then
18987   if test -s conftest.err; then
18988     ac_cpp_err=$ac_c_preproc_warn_flag
18989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18990   else
18991     ac_cpp_err=
18992   fi
18993 else
18994   ac_cpp_err=yes
18995 fi
18996 if test -z "$ac_cpp_err"; then
18997   ac_header_preproc=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19001
19002   ac_header_preproc=no
19003 fi
19004 rm -f conftest.err conftest.$ac_ext
19005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006 echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008 # So?  What about this header?
19009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010   yes:no: )
19011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19015     ac_header_preproc=yes
19016     ;;
19017   no:yes:* )
19018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19030     (
19031       cat <<\_ASBOX
19032 ## ------------------------------------------ ##
19033 ## Report this to the AC_PACKAGE_NAME lists.  ##
19034 ## ------------------------------------------ ##
19035 _ASBOX
19036     ) |
19037       sed "s/^/$as_me: WARNING:     /" >&2
19038     ;;
19039 esac
19040 echo "$as_me:$LINENO: checking for $ac_header" >&5
19041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   eval "$as_ac_Header=\$ac_header_preproc"
19046 fi
19047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19049
19050 fi
19051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19052   cat >>confdefs.h <<_ACEOF
19053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19054 _ACEOF
19055
19056 fi
19057
19058 done
19059
19060
19061         if test $ac_cv_header_krb_h = yes ; then
19062                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19063 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19064 if test "${ac_cv_lib_krb_main+set}" = set; then
19065   echo $ECHO_N "(cached) $ECHO_C" >&6
19066 else
19067   ac_check_lib_save_LIBS=$LIBS
19068 LIBS="-lkrb -ldes $LIBS"
19069 cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h.  */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h.  */
19075
19076
19077 int
19078 main ()
19079 {
19080 main ();
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19087   (eval $ac_link) 2>conftest.er1
19088   ac_status=$?
19089   grep -v '^ *+' conftest.er1 >conftest.err
19090   rm -f conftest.er1
19091   cat conftest.err >&5
19092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093   (exit $ac_status); } &&
19094          { ac_try='test -z "$ac_c_werror_flag"
19095                          || test ! -s conftest.err'
19096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097   (eval $ac_try) 2>&5
19098   ac_status=$?
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); }; } &&
19101          { ac_try='test -s conftest$ac_exeext'
19102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103   (eval $ac_try) 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); }; }; then
19107   ac_cv_lib_krb_main=yes
19108 else
19109   echo "$as_me: failed program was:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19111
19112 ac_cv_lib_krb_main=no
19113 fi
19114 rm -f conftest.err conftest.$ac_objext \
19115       conftest$ac_exeext conftest.$ac_ext
19116 LIBS=$ac_check_lib_save_LIBS
19117 fi
19118 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19119 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19120 if test $ac_cv_lib_krb_main = yes; then
19121   have_k4=yes
19122 else
19123   have_k4=no
19124 fi
19125
19126
19127                 if test $have_k4 = yes ; then
19128                         ol_with_kerberos=found
19129                         ol_link_krb4=yes
19130
19131
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_KRB4 1
19134 _ACEOF
19135
19136
19137                         KRB4_LIBS="-lkrb -ldes"
19138
19139                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19140
19141 cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_KTH_KERBEROS 1
19143 _ACEOF
19144
19145                         fi
19146                 fi
19147         fi
19148         ;;
19149 esac
19150
19151 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19152         ol_link_kbind=yes
19153
19154 elif test $ol_enable_kbind = yes ; then
19155         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19156 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19157    { (exit 1); exit 1; }; }
19158 fi
19159
19160 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19161
19162 cat >>confdefs.h <<\_ACEOF
19163 #define HAVE_KERBEROS 1
19164 _ACEOF
19165
19166
19167 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19168         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19169 echo "$as_me: error: Kerberos detection failed" >&2;}
19170    { (exit 1); exit 1; }; }
19171 fi
19172
19173
19174 ol_link_tls=no
19175 if test $ol_with_tls != no ; then
19176
19177 for ac_header in openssl/ssl.h
19178 do
19179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19181   echo "$as_me:$LINENO: checking for $ac_header" >&5
19182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 fi
19186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19188 else
19189   # Is the header compilable?
19190 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 $ac_includes_default
19199 #include <$ac_header>
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203   (eval $ac_compile) 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -z "$ac_c_werror_flag"
19211                          || test ! -s conftest.err'
19212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213   (eval $ac_try) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest.$ac_objext'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; }; then
19223   ac_header_compiler=yes
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228 ac_header_compiler=no
19229 fi
19230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19232 echo "${ECHO_T}$ac_header_compiler" >&6
19233
19234 # Is the header present?
19235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 #include <$ac_header>
19244 _ACEOF
19245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } >/dev/null; then
19253   if test -s conftest.err; then
19254     ac_cpp_err=$ac_c_preproc_warn_flag
19255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19256   else
19257     ac_cpp_err=
19258   fi
19259 else
19260   ac_cpp_err=yes
19261 fi
19262 if test -z "$ac_cpp_err"; then
19263   ac_header_preproc=yes
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268   ac_header_preproc=no
19269 fi
19270 rm -f conftest.err conftest.$ac_ext
19271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19272 echo "${ECHO_T}$ac_header_preproc" >&6
19273
19274 # So?  What about this header?
19275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19276   yes:no: )
19277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19281     ac_header_preproc=yes
19282     ;;
19283   no:yes:* )
19284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19296     (
19297       cat <<\_ASBOX
19298 ## ------------------------------------------ ##
19299 ## Report this to the AC_PACKAGE_NAME lists.  ##
19300 ## ------------------------------------------ ##
19301 _ASBOX
19302     ) |
19303       sed "s/^/$as_me: WARNING:     /" >&2
19304     ;;
19305 esac
19306 echo "$as_me:$LINENO: checking for $ac_header" >&5
19307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311   eval "$as_ac_Header=\$ac_header_preproc"
19312 fi
19313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19315
19316 fi
19317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19318   cat >>confdefs.h <<_ACEOF
19319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19320 _ACEOF
19321
19322 fi
19323
19324 done
19325
19326
19327         if test $ac_cv_header_openssl_ssl_h = yes ; then
19328                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19329 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19330 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   ac_check_lib_save_LIBS=$LIBS
19334 LIBS="-lssl -lcrypto $LIBS"
19335 cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341
19342 /* Override any gcc2 internal prototype to avoid an error.  */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 /* We use char because int might match the return type of a gcc2
19347    builtin and then its argument prototype would still apply.  */
19348 char SSL_library_init ();
19349 int
19350 main ()
19351 {
19352 SSL_library_init ();
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19359   (eval $ac_link) 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } &&
19366          { ac_try='test -z "$ac_c_werror_flag"
19367                          || test ! -s conftest.err'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; } &&
19373          { ac_try='test -s conftest$ac_exeext'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379   ac_cv_lib_ssl_SSL_library_init=yes
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384 ac_cv_lib_ssl_SSL_library_init=no
19385 fi
19386 rm -f conftest.err conftest.$ac_objext \
19387       conftest$ac_exeext conftest.$ac_ext
19388 LIBS=$ac_check_lib_save_LIBS
19389 fi
19390 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19391 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19392 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19393   have_openssl=yes
19394                         need_rsaref=no
19395 else
19396   have_openssl=no
19397 fi
19398
19399
19400                 if test $have_openssl = no ; then
19401                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19402 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19403 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19404   echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406   ac_check_lib_save_LIBS=$LIBS
19407 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414
19415 /* Override any gcc2 internal prototype to avoid an error.  */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 /* We use char because int might match the return type of a gcc2
19420    builtin and then its argument prototype would still apply.  */
19421 char ssl3_accept ();
19422 int
19423 main ()
19424 {
19425 ssl3_accept ();
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19432   (eval $ac_link) 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } &&
19439          { ac_try='test -z "$ac_c_werror_flag"
19440                          || test ! -s conftest.err'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; } &&
19446          { ac_try='test -s conftest$ac_exeext'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452   ac_cv_lib_ssl_ssl3_accept=yes
19453 else
19454   echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457 ac_cv_lib_ssl_ssl3_accept=no
19458 fi
19459 rm -f conftest.err conftest.$ac_objext \
19460       conftest$ac_exeext conftest.$ac_ext
19461 LIBS=$ac_check_lib_save_LIBS
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19464 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19465 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19466   have_openssl=yes
19467                                 need_rsaref=yes
19468 else
19469   have_openssl=no
19470 fi
19471
19472                 fi
19473
19474                 if test $have_openssl = yes ; then
19475                         ol_with_tls=found
19476                         ol_link_tls=yes
19477
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_OPENSSL 1
19481 _ACEOF
19482
19483
19484                         if test $need_rsaref = yes; then
19485
19486 cat >>confdefs.h <<\_ACEOF
19487 #define HAVE_RSAREF 1
19488 _ACEOF
19489
19490
19491                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19492                         else
19493                                 TLS_LIBS="-lssl -lcrypto"
19494                         fi
19495                 fi
19496                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19497 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19498 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19499   echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501
19502         cat >conftest.$ac_ext <<_ACEOF
19503 /* confdefs.h.  */
19504 _ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h.  */
19508
19509 #ifdef HAVE_OPENSSL_SSL_H
19510 #include <openssl/ssl.h>
19511 #else
19512 #include <ssl.h>
19513 #endif
19514
19515 /* Require 0.9.7d+ */
19516 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19517         char *__ssl_compat = "0.9.7d";
19518 #endif
19519
19520 _ACEOF
19521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19522   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19523   ol_cv_ssl_crl_compat=yes
19524 else
19525   ol_cv_ssl_crl_compat=no
19526 fi
19527 rm -f conftest*
19528
19529 fi
19530 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19531 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19532
19533                 if test $ol_cv_ssl_crl_compat = no ; then
19534                         ol_link_ssl=no
19535                 else
19536
19537 cat >>confdefs.h <<\_ACEOF
19538 #define HAVE_OPENSSL_CRL 1
19539 _ACEOF
19540
19541                 fi
19542         fi
19543
19544 else
19545         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19546 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19547 fi
19548
19549 WITH_TLS=no
19550 if test $ol_link_tls = yes ; then
19551
19552 cat >>confdefs.h <<\_ACEOF
19553 #define HAVE_TLS 1
19554 _ACEOF
19555
19556         WITH_TLS=yes
19557
19558 elif test $ol_with_tls = auto ; then
19559         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19560 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19561         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19562 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19563
19564 elif test $ol_with_tls != no ; then
19565         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19566 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19567    { (exit 1); exit 1; }; }
19568 fi
19569
19570 if test $ol_enable_lmpasswd != no; then
19571         if test $ol_link_tls != yes ; then
19572                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19573 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19574    { (exit 1); exit 1; }; }
19575         fi
19576
19577
19578 cat >>confdefs.h <<\_ACEOF
19579 #define SLAPD_LMHASH 1
19580 _ACEOF
19581
19582 fi
19583
19584 ol_link_threads=no
19585
19586 case $ol_with_threads in auto | yes | nt)
19587
19588
19589         echo "$as_me:$LINENO: checking for _beginthread" >&5
19590 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19591 if test "${ac_cv_func__beginthread+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19602 #define _beginthread innocuous__beginthread
19603
19604 /* System header to define __stub macros and hopefully few prototypes,
19605     which can conflict with char _beginthread (); below.
19606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19607     <limits.h> exists even on freestanding compilers.  */
19608
19609 #ifdef __STDC__
19610 # include <limits.h>
19611 #else
19612 # include <assert.h>
19613 #endif
19614
19615 #undef _beginthread
19616
19617 /* Override any gcc2 internal prototype to avoid an error.  */
19618 #ifdef __cplusplus
19619 extern "C"
19620 {
19621 #endif
19622 /* We use char because int might match the return type of a gcc2
19623    builtin and then its argument prototype would still apply.  */
19624 char _beginthread ();
19625 /* The GNU C library defines this for functions which it implements
19626     to always fail with ENOSYS.  Some functions are actually named
19627     something starting with __ and the normal name is an alias.  */
19628 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19629 choke me
19630 #else
19631 char (*f) () = _beginthread;
19632 #endif
19633 #ifdef __cplusplus
19634 }
19635 #endif
19636
19637 int
19638 main ()
19639 {
19640 return f != _beginthread;
19641   ;
19642   return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647   (eval $ac_link) 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } &&
19654          { ac_try='test -z "$ac_c_werror_flag"
19655                          || test ! -s conftest.err'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; } &&
19661          { ac_try='test -s conftest$ac_exeext'
19662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663   (eval $ac_try) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   ac_cv_func__beginthread=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 ac_cv_func__beginthread=no
19673 fi
19674 rm -f conftest.err conftest.$ac_objext \
19675       conftest$ac_exeext conftest.$ac_ext
19676 fi
19677 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19678 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19679
19680
19681         if test $ac_cv_func__beginthread = yes ; then
19682
19683 cat >>confdefs.h <<\_ACEOF
19684 #define HAVE_NT_THREADS 1
19685 _ACEOF
19686
19687                 ol_cv_nt_threads=yes
19688         fi
19689
19690
19691         if test "$ol_cv_nt_threads" = yes ; then
19692                 ol_link_threads=nt
19693                 ol_with_threads=found
19694                 ol_with_yielding_select=yes
19695
19696
19697 cat >>confdefs.h <<\_ACEOF
19698 #define HAVE_NT_SERVICE_MANAGER 1
19699 _ACEOF
19700
19701
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_NT_EVENT_LOG 1
19704 _ACEOF
19705
19706         fi
19707
19708         if test $ol_with_threads = nt ; then
19709                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19710 echo "$as_me: error: could not locate NT Threads" >&2;}
19711    { (exit 1); exit 1; }; }
19712         fi
19713         ;;
19714 esac
19715
19716 case $ol_with_threads in auto | yes | posix)
19717
19718
19719 for ac_header in pthread.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723   echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19730 else
19731   # Is the header compilable?
19732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19734 cat >conftest.$ac_ext <<_ACEOF
19735 /* confdefs.h.  */
19736 _ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h.  */
19740 $ac_includes_default
19741 #include <$ac_header>
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19745   (eval $ac_compile) 2>conftest.er1
19746   ac_status=$?
19747   grep -v '^ *+' conftest.er1 >conftest.err
19748   rm -f conftest.er1
19749   cat conftest.err >&5
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); } &&
19752          { ac_try='test -z "$ac_c_werror_flag"
19753                          || test ! -s conftest.err'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; } &&
19759          { ac_try='test -s conftest.$ac_objext'
19760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761   (eval $ac_try) 2>&5
19762   ac_status=$?
19763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764   (exit $ac_status); }; }; then
19765   ac_header_compiler=yes
19766 else
19767   echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19769
19770 ac_header_compiler=no
19771 fi
19772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774 echo "${ECHO_T}$ac_header_compiler" >&6
19775
19776 # Is the header present?
19777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h.  */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h.  */
19785 #include <$ac_header>
19786 _ACEOF
19787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } >/dev/null; then
19795   if test -s conftest.err; then
19796     ac_cpp_err=$ac_c_preproc_warn_flag
19797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19798   else
19799     ac_cpp_err=
19800   fi
19801 else
19802   ac_cpp_err=yes
19803 fi
19804 if test -z "$ac_cpp_err"; then
19805   ac_header_preproc=yes
19806 else
19807   echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19809
19810   ac_header_preproc=no
19811 fi
19812 rm -f conftest.err conftest.$ac_ext
19813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19814 echo "${ECHO_T}$ac_header_preproc" >&6
19815
19816 # So?  What about this header?
19817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19818   yes:no: )
19819     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19821     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19823     ac_header_preproc=yes
19824     ;;
19825   no:yes:* )
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19829 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19833 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19836     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19838     (
19839       cat <<\_ASBOX
19840 ## ------------------------------------------ ##
19841 ## Report this to the AC_PACKAGE_NAME lists.  ##
19842 ## ------------------------------------------ ##
19843 _ASBOX
19844     ) |
19845       sed "s/^/$as_me: WARNING:     /" >&2
19846     ;;
19847 esac
19848 echo "$as_me:$LINENO: checking for $ac_header" >&5
19849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19851   echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853   eval "$as_ac_Header=\$ac_header_preproc"
19854 fi
19855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19857
19858 fi
19859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19860   cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865
19866 done
19867
19868
19869         if test $ac_cv_header_pthread_h = yes ; then
19870                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19871 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19872 if test "${ol_cv_pthread_version+set}" = set; then
19873   echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875
19876         cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882
19883 #               include <pthread.h>
19884
19885 int
19886 main ()
19887 {
19888
19889                 int i = PTHREAD_CREATE_JOINABLE;
19890
19891   ;
19892   return 0;
19893 }
19894 _ACEOF
19895 rm -f conftest.$ac_objext
19896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19897   (eval $ac_compile) 2>conftest.er1
19898   ac_status=$?
19899   grep -v '^ *+' conftest.er1 >conftest.err
19900   rm -f conftest.er1
19901   cat conftest.err >&5
19902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903   (exit $ac_status); } &&
19904          { ac_try='test -z "$ac_c_werror_flag"
19905                          || test ! -s conftest.err'
19906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907   (eval $ac_try) 2>&5
19908   ac_status=$?
19909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910   (exit $ac_status); }; } &&
19911          { ac_try='test -s conftest.$ac_objext'
19912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913   (eval $ac_try) 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917
19918         cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 #include <pthread.h>
19925
19926 _ACEOF
19927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19928   $EGREP "pthread_detach" >/dev/null 2>&1; then
19929   ol_cv_pthread_version=10
19930 else
19931   ol_cv_pthread_version=8
19932 fi
19933 rm -f conftest*
19934
19935 else
19936   echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19938
19939
19940         cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946
19947 #               include <pthread.h>
19948 #               ifdef PTHREAD_CREATE_UNDETACHED
19949                 draft7
19950 #               endif
19951
19952 _ACEOF
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954   $EGREP "draft7" >/dev/null 2>&1; then
19955   ol_cv_pthread_version=7
19956 else
19957
19958         cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 #include <pthread.h>
19965
19966 _ACEOF
19967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19968   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19969   ol_cv_pthread_version=6
19970 else
19971
19972         cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978
19979 #               include <pthread.h>
19980 #ifdef          PTHREAD_MUTEX_INITIALIZER
19981                 draft5
19982 #endif
19983
19984 _ACEOF
19985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19986   $EGREP "draft5" >/dev/null 2>&1; then
19987   ol_cv_pthread_version=5
19988 else
19989   ol_cv_pthread_version=4
19990 fi
19991 rm -f conftest*
19992
19993 fi
19994 rm -f conftest*
19995
19996 fi
19997 rm -f conftest*
19998
19999 fi
20000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001
20002 fi
20003 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20004 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20005
20006
20007                 if test $ol_cv_pthread_version != 0 ; then
20008
20009 cat >>confdefs.h <<_ACEOF
20010 #define HAVE_PTHREADS $ol_cv_pthread_version
20011 _ACEOF
20012
20013                 else
20014                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20015 echo "$as_me: error: unknown pthread version" >&2;}
20016    { (exit 1); exit 1; }; }
20017                 fi
20018
20019                 # consider threads found
20020                 ol_with_threads=found
20021
20022
20023         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20024 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20025 if test "${ol_cv_header_linux_threads+set}" = set; then
20026   echo $ECHO_N "(cached) $ECHO_C" >&6
20027 else
20028   cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h.  */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h.  */
20034 #include <pthread.h>
20035 _ACEOF
20036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20037   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20038   ol_cv_header_linux_threads=yes
20039 else
20040   ol_cv_header_linux_threads=no
20041 fi
20042 rm -f conftest*
20043
20044
20045 fi
20046 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20047 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20048         if test $ol_cv_header_linux_threads = yes; then
20049
20050 cat >>confdefs.h <<\_ACEOF
20051 #define HAVE_LINUX_THREADS 1
20052 _ACEOF
20053
20054         fi
20055
20056
20057         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20058 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20059 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <pthread.h>
20069 #ifdef _POSIX_THREAD_IS_GNU_PTH
20070         __gnu_pth__;
20071 #endif
20072
20073 _ACEOF
20074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20075   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20076   ol_cv_header_gnu_pth_pthread_h=yes
20077 else
20078   ol_cv_header_gnu_pth_pthread_h=no
20079 fi
20080 rm -f conftest*
20081
20082
20083 fi
20084 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20085 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20086
20087
20088                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20089
20090 for ac_header in sched.h
20091 do
20092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20094   echo "$as_me:$LINENO: checking for $ac_header" >&5
20095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 fi
20099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20101 else
20102   # Is the header compilable?
20103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111 $ac_includes_default
20112 #include <$ac_header>
20113 _ACEOF
20114 rm -f conftest.$ac_objext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20116   (eval $ac_compile) 2>conftest.er1
20117   ac_status=$?
20118   grep -v '^ *+' conftest.er1 >conftest.err
20119   rm -f conftest.er1
20120   cat conftest.err >&5
20121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122   (exit $ac_status); } &&
20123          { ac_try='test -z "$ac_c_werror_flag"
20124                          || test ! -s conftest.err'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; } &&
20130          { ac_try='test -s conftest.$ac_objext'
20131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132   (eval $ac_try) 2>&5
20133   ac_status=$?
20134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135   (exit $ac_status); }; }; then
20136   ac_header_compiler=yes
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 ac_header_compiler=no
20142 fi
20143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20145 echo "${ECHO_T}$ac_header_compiler" >&6
20146
20147 # Is the header present?
20148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h.  */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h.  */
20156 #include <$ac_header>
20157 _ACEOF
20158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20160   ac_status=$?
20161   grep -v '^ *+' conftest.er1 >conftest.err
20162   rm -f conftest.er1
20163   cat conftest.err >&5
20164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165   (exit $ac_status); } >/dev/null; then
20166   if test -s conftest.err; then
20167     ac_cpp_err=$ac_c_preproc_warn_flag
20168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20169   else
20170     ac_cpp_err=
20171   fi
20172 else
20173   ac_cpp_err=yes
20174 fi
20175 if test -z "$ac_cpp_err"; then
20176   ac_header_preproc=yes
20177 else
20178   echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20180
20181   ac_header_preproc=no
20182 fi
20183 rm -f conftest.err conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20185 echo "${ECHO_T}$ac_header_preproc" >&6
20186
20187 # So?  What about this header?
20188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20189   yes:no: )
20190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20194     ac_header_preproc=yes
20195     ;;
20196   no:yes:* )
20197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20209     (
20210       cat <<\_ASBOX
20211 ## ------------------------------------------ ##
20212 ## Report this to the AC_PACKAGE_NAME lists.  ##
20213 ## ------------------------------------------ ##
20214 _ASBOX
20215     ) |
20216       sed "s/^/$as_me: WARNING:     /" >&2
20217     ;;
20218 esac
20219 echo "$as_me:$LINENO: checking for $ac_header" >&5
20220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224   eval "$as_ac_Header=\$ac_header_preproc"
20225 fi
20226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20228
20229 fi
20230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20231   cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20233 _ACEOF
20234
20235 fi
20236
20237 done
20238
20239                 fi
20240
20241
20242                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20243 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20244 if test "${ol_cv_pthread_create+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247
20248                         if test "$cross_compiling" = yes; then
20249   cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255
20256 /* pthread test headers */
20257 #include <pthread.h>
20258 #if HAVE_PTHREADS < 7
20259 #include <errno.h>
20260 #endif
20261 #ifndef NULL
20262 #define NULL (void*)0
20263 #endif
20264
20265 static void *task(p)
20266         void *p;
20267 {
20268         return (void *) (p == NULL);
20269 }
20270
20271 int
20272 main ()
20273 {
20274
20275         /* pthread test function */
20276 #ifndef PTHREAD_CREATE_DETACHED
20277 #define PTHREAD_CREATE_DETACHED 1
20278 #endif
20279         pthread_t t;
20280         int status;
20281         int detach = PTHREAD_CREATE_DETACHED;
20282
20283 #if HAVE_PTHREADS > 4
20284         /* Final pthreads */
20285         pthread_attr_t attr;
20286
20287         status = pthread_attr_init(&attr);
20288         if( status ) return status;
20289
20290 #if HAVE_PTHREADS < 7
20291         status = pthread_attr_setdetachstate(&attr, &detach);
20292         if( status < 0 ) status = errno;
20293 #else
20294         status = pthread_attr_setdetachstate(&attr, detach);
20295 #endif
20296         if( status ) return status;
20297         status = pthread_create( &t, &attr, task, NULL );
20298 #if HAVE_PTHREADS < 7
20299         if( status < 0 ) status = errno;
20300 #endif
20301         if( status ) return status;
20302 #else
20303         /* Draft 4 pthreads */
20304         status = pthread_create( &t, pthread_attr_default, task, NULL );
20305         if( status ) return errno;
20306
20307         /* give thread a chance to complete */
20308         /* it should remain joinable and hence detachable */
20309         sleep( 1 );
20310
20311         status = pthread_detach( &t );
20312         if( status ) return errno;
20313 #endif
20314
20315 #ifdef HAVE_LINUX_THREADS
20316         pthread_kill_other_threads_np();
20317 #endif
20318
20319         return 0;
20320
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext conftest$ac_exeext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20327   (eval $ac_link) 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } &&
20334          { ac_try='test -z "$ac_c_werror_flag"
20335                          || test ! -s conftest.err'
20336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337   (eval $ac_try) 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; } &&
20341          { ac_try='test -s conftest$ac_exeext'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; }; then
20347   ol_cv_pthread_create=yes
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 ol_cv_pthread_create=no
20353 fi
20354 rm -f conftest.err conftest.$ac_objext \
20355       conftest$ac_exeext conftest.$ac_ext
20356 else
20357   cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363
20364 /* pthread test headers */
20365 #include <pthread.h>
20366 #if HAVE_PTHREADS < 7
20367 #include <errno.h>
20368 #endif
20369 #ifndef NULL
20370 #define NULL (void*)0
20371 #endif
20372
20373 static void *task(p)
20374         void *p;
20375 {
20376         return (void *) (p == NULL);
20377 }
20378
20379
20380 int main(argc, argv)
20381         int argc;
20382         char **argv;
20383 {
20384
20385         /* pthread test function */
20386 #ifndef PTHREAD_CREATE_DETACHED
20387 #define PTHREAD_CREATE_DETACHED 1
20388 #endif
20389         pthread_t t;
20390         int status;
20391         int detach = PTHREAD_CREATE_DETACHED;
20392
20393 #if HAVE_PTHREADS > 4
20394         /* Final pthreads */
20395         pthread_attr_t attr;
20396
20397         status = pthread_attr_init(&attr);
20398         if( status ) return status;
20399
20400 #if HAVE_PTHREADS < 7
20401         status = pthread_attr_setdetachstate(&attr, &detach);
20402         if( status < 0 ) status = errno;
20403 #else
20404         status = pthread_attr_setdetachstate(&attr, detach);
20405 #endif
20406         if( status ) return status;
20407         status = pthread_create( &t, &attr, task, NULL );
20408 #if HAVE_PTHREADS < 7
20409         if( status < 0 ) status = errno;
20410 #endif
20411         if( status ) return status;
20412 #else
20413         /* Draft 4 pthreads */
20414         status = pthread_create( &t, pthread_attr_default, task, NULL );
20415         if( status ) return errno;
20416
20417         /* give thread a chance to complete */
20418         /* it should remain joinable and hence detachable */
20419         sleep( 1 );
20420
20421         status = pthread_detach( &t );
20422         if( status ) return errno;
20423 #endif
20424
20425 #ifdef HAVE_LINUX_THREADS
20426         pthread_kill_other_threads_np();
20427 #endif
20428
20429         return 0;
20430
20431 }
20432
20433 _ACEOF
20434 rm -f conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436   (eval $ac_link) 2>&5
20437   ac_status=$?
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441   (eval $ac_try) 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   ol_cv_pthread_create=yes
20446 else
20447   echo "$as_me: program exited with status $ac_status" >&5
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 ( exit $ac_status )
20452 ol_cv_pthread_create=no
20453 fi
20454 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20455 fi
20456 fi
20457 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20458 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20459
20460                 if test $ol_cv_pthread_create != no ; then
20461                         ol_link_threads=posix
20462                         ol_link_pthreads=""
20463                 fi
20464
20465                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20466 if test "$ol_link_threads" = no ; then
20467         # try -kthread
20468         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20469 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20470 if test "${ol_cv_pthread_kthread+set}" = set; then
20471   echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473
20474                 # save the flags
20475                 ol_LIBS="$LIBS"
20476                 LIBS="-kthread $LIBS"
20477
20478                 if test "$cross_compiling" = yes; then
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485
20486 /* pthread test headers */
20487 #include <pthread.h>
20488 #if HAVE_PTHREADS < 7
20489 #include <errno.h>
20490 #endif
20491 #ifndef NULL
20492 #define NULL (void*)0
20493 #endif
20494
20495 static void *task(p)
20496         void *p;
20497 {
20498         return (void *) (p == NULL);
20499 }
20500
20501 int
20502 main ()
20503 {
20504
20505         /* pthread test function */
20506 #ifndef PTHREAD_CREATE_DETACHED
20507 #define PTHREAD_CREATE_DETACHED 1
20508 #endif
20509         pthread_t t;
20510         int status;
20511         int detach = PTHREAD_CREATE_DETACHED;
20512
20513 #if HAVE_PTHREADS > 4
20514         /* Final pthreads */
20515         pthread_attr_t attr;
20516
20517         status = pthread_attr_init(&attr);
20518         if( status ) return status;
20519
20520 #if HAVE_PTHREADS < 7
20521         status = pthread_attr_setdetachstate(&attr, &detach);
20522         if( status < 0 ) status = errno;
20523 #else
20524         status = pthread_attr_setdetachstate(&attr, detach);
20525 #endif
20526         if( status ) return status;
20527         status = pthread_create( &t, &attr, task, NULL );
20528 #if HAVE_PTHREADS < 7
20529         if( status < 0 ) status = errno;
20530 #endif
20531         if( status ) return status;
20532 #else
20533         /* Draft 4 pthreads */
20534         status = pthread_create( &t, pthread_attr_default, task, NULL );
20535         if( status ) return errno;
20536
20537         /* give thread a chance to complete */
20538         /* it should remain joinable and hence detachable */
20539         sleep( 1 );
20540
20541         status = pthread_detach( &t );
20542         if( status ) return errno;
20543 #endif
20544
20545 #ifdef HAVE_LINUX_THREADS
20546         pthread_kill_other_threads_np();
20547 #endif
20548
20549         return 0;
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557   (eval $ac_link) 2>conftest.er1
20558   ac_status=$?
20559   grep -v '^ *+' conftest.er1 >conftest.err
20560   rm -f conftest.er1
20561   cat conftest.err >&5
20562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563   (exit $ac_status); } &&
20564          { ac_try='test -z "$ac_c_werror_flag"
20565                          || test ! -s conftest.err'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; } &&
20571          { ac_try='test -s conftest$ac_exeext'
20572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573   (eval $ac_try) 2>&5
20574   ac_status=$?
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); }; }; then
20577   ol_cv_pthread_kthread=yes
20578 else
20579   echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 ol_cv_pthread_kthread=no
20583 fi
20584 rm -f conftest.err conftest.$ac_objext \
20585       conftest$ac_exeext conftest.$ac_ext
20586 else
20587   cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593
20594 /* pthread test headers */
20595 #include <pthread.h>
20596 #if HAVE_PTHREADS < 7
20597 #include <errno.h>
20598 #endif
20599 #ifndef NULL
20600 #define NULL (void*)0
20601 #endif
20602
20603 static void *task(p)
20604         void *p;
20605 {
20606         return (void *) (p == NULL);
20607 }
20608
20609
20610 int main(argc, argv)
20611         int argc;
20612         char **argv;
20613 {
20614
20615         /* pthread test function */
20616 #ifndef PTHREAD_CREATE_DETACHED
20617 #define PTHREAD_CREATE_DETACHED 1
20618 #endif
20619         pthread_t t;
20620         int status;
20621         int detach = PTHREAD_CREATE_DETACHED;
20622
20623 #if HAVE_PTHREADS > 4
20624         /* Final pthreads */
20625         pthread_attr_t attr;
20626
20627         status = pthread_attr_init(&attr);
20628         if( status ) return status;
20629
20630 #if HAVE_PTHREADS < 7
20631         status = pthread_attr_setdetachstate(&attr, &detach);
20632         if( status < 0 ) status = errno;
20633 #else
20634         status = pthread_attr_setdetachstate(&attr, detach);
20635 #endif
20636         if( status ) return status;
20637         status = pthread_create( &t, &attr, task, NULL );
20638 #if HAVE_PTHREADS < 7
20639         if( status < 0 ) status = errno;
20640 #endif
20641         if( status ) return status;
20642 #else
20643         /* Draft 4 pthreads */
20644         status = pthread_create( &t, pthread_attr_default, task, NULL );
20645         if( status ) return errno;
20646
20647         /* give thread a chance to complete */
20648         /* it should remain joinable and hence detachable */
20649         sleep( 1 );
20650
20651         status = pthread_detach( &t );
20652         if( status ) return errno;
20653 #endif
20654
20655 #ifdef HAVE_LINUX_THREADS
20656         pthread_kill_other_threads_np();
20657 #endif
20658
20659         return 0;
20660
20661 }
20662
20663 _ACEOF
20664 rm -f conftest$ac_exeext
20665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20666   (eval $ac_link) 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; }; then
20675   ol_cv_pthread_kthread=yes
20676 else
20677   echo "$as_me: program exited with status $ac_status" >&5
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ( exit $ac_status )
20682 ol_cv_pthread_kthread=no
20683 fi
20684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20685 fi
20686
20687                 # restore the LIBS
20688                 LIBS="$ol_LIBS"
20689
20690 fi
20691 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20692 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20693
20694         if test $ol_cv_pthread_kthread = yes ; then
20695                 ol_link_pthreads="-kthread"
20696                 ol_link_threads=posix
20697         fi
20698 fi
20699
20700                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20701 if test "$ol_link_threads" = no ; then
20702         # try -pthread
20703         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20704 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20705 if test "${ol_cv_pthread_pthread+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708
20709                 # save the flags
20710                 ol_LIBS="$LIBS"
20711                 LIBS="-pthread $LIBS"
20712
20713                 if test "$cross_compiling" = yes; then
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721 /* pthread test headers */
20722 #include <pthread.h>
20723 #if HAVE_PTHREADS < 7
20724 #include <errno.h>
20725 #endif
20726 #ifndef NULL
20727 #define NULL (void*)0
20728 #endif
20729
20730 static void *task(p)
20731         void *p;
20732 {
20733         return (void *) (p == NULL);
20734 }
20735
20736 int
20737 main ()
20738 {
20739
20740         /* pthread test function */
20741 #ifndef PTHREAD_CREATE_DETACHED
20742 #define PTHREAD_CREATE_DETACHED 1
20743 #endif
20744         pthread_t t;
20745         int status;
20746         int detach = PTHREAD_CREATE_DETACHED;
20747
20748 #if HAVE_PTHREADS > 4
20749         /* Final pthreads */
20750         pthread_attr_t attr;
20751
20752         status = pthread_attr_init(&attr);
20753         if( status ) return status;
20754
20755 #if HAVE_PTHREADS < 7
20756         status = pthread_attr_setdetachstate(&attr, &detach);
20757         if( status < 0 ) status = errno;
20758 #else
20759         status = pthread_attr_setdetachstate(&attr, detach);
20760 #endif
20761         if( status ) return status;
20762         status = pthread_create( &t, &attr, task, NULL );
20763 #if HAVE_PTHREADS < 7
20764         if( status < 0 ) status = errno;
20765 #endif
20766         if( status ) return status;
20767 #else
20768         /* Draft 4 pthreads */
20769         status = pthread_create( &t, pthread_attr_default, task, NULL );
20770         if( status ) return errno;
20771
20772         /* give thread a chance to complete */
20773         /* it should remain joinable and hence detachable */
20774         sleep( 1 );
20775
20776         status = pthread_detach( &t );
20777         if( status ) return errno;
20778 #endif
20779
20780 #ifdef HAVE_LINUX_THREADS
20781         pthread_kill_other_threads_np();
20782 #endif
20783
20784         return 0;
20785
20786   ;
20787   return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20792   (eval $ac_link) 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } &&
20799          { ac_try='test -z "$ac_c_werror_flag"
20800                          || test ! -s conftest.err'
20801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802   (eval $ac_try) 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); }; } &&
20806          { ac_try='test -s conftest$ac_exeext'
20807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808   (eval $ac_try) 2>&5
20809   ac_status=$?
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); }; }; then
20812   ol_cv_pthread_pthread=yes
20813 else
20814   echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 ol_cv_pthread_pthread=no
20818 fi
20819 rm -f conftest.err conftest.$ac_objext \
20820       conftest$ac_exeext conftest.$ac_ext
20821 else
20822   cat >conftest.$ac_ext <<_ACEOF
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828
20829 /* pthread test headers */
20830 #include <pthread.h>
20831 #if HAVE_PTHREADS < 7
20832 #include <errno.h>
20833 #endif
20834 #ifndef NULL
20835 #define NULL (void*)0
20836 #endif
20837
20838 static void *task(p)
20839         void *p;
20840 {
20841         return (void *) (p == NULL);
20842 }
20843
20844
20845 int main(argc, argv)
20846         int argc;
20847         char **argv;
20848 {
20849
20850         /* pthread test function */
20851 #ifndef PTHREAD_CREATE_DETACHED
20852 #define PTHREAD_CREATE_DETACHED 1
20853 #endif
20854         pthread_t t;
20855         int status;
20856         int detach = PTHREAD_CREATE_DETACHED;
20857
20858 #if HAVE_PTHREADS > 4
20859         /* Final pthreads */
20860         pthread_attr_t attr;
20861
20862         status = pthread_attr_init(&attr);
20863         if( status ) return status;
20864
20865 #if HAVE_PTHREADS < 7
20866         status = pthread_attr_setdetachstate(&attr, &detach);
20867         if( status < 0 ) status = errno;
20868 #else
20869         status = pthread_attr_setdetachstate(&attr, detach);
20870 #endif
20871         if( status ) return status;
20872         status = pthread_create( &t, &attr, task, NULL );
20873 #if HAVE_PTHREADS < 7
20874         if( status < 0 ) status = errno;
20875 #endif
20876         if( status ) return status;
20877 #else
20878         /* Draft 4 pthreads */
20879         status = pthread_create( &t, pthread_attr_default, task, NULL );
20880         if( status ) return errno;
20881
20882         /* give thread a chance to complete */
20883         /* it should remain joinable and hence detachable */
20884         sleep( 1 );
20885
20886         status = pthread_detach( &t );
20887         if( status ) return errno;
20888 #endif
20889
20890 #ifdef HAVE_LINUX_THREADS
20891         pthread_kill_other_threads_np();
20892 #endif
20893
20894         return 0;
20895
20896 }
20897
20898 _ACEOF
20899 rm -f conftest$ac_exeext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901   (eval $ac_link) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ol_cv_pthread_pthread=yes
20911 else
20912   echo "$as_me: program exited with status $ac_status" >&5
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 ( exit $ac_status )
20917 ol_cv_pthread_pthread=no
20918 fi
20919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 fi
20921
20922                 # restore the LIBS
20923                 LIBS="$ol_LIBS"
20924
20925 fi
20926 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20927 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20928
20929         if test $ol_cv_pthread_pthread = yes ; then
20930                 ol_link_pthreads="-pthread"
20931                 ol_link_threads=posix
20932         fi
20933 fi
20934
20935                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20936 if test "$ol_link_threads" = no ; then
20937         # try -pthreads
20938         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20939 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20940 if test "${ol_cv_pthread_pthreads+set}" = set; then
20941   echo $ECHO_N "(cached) $ECHO_C" >&6
20942 else
20943
20944                 # save the flags
20945                 ol_LIBS="$LIBS"
20946                 LIBS="-pthreads $LIBS"
20947
20948                 if test "$cross_compiling" = yes; then
20949   cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h.  */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h.  */
20955
20956 /* pthread test headers */
20957 #include <pthread.h>
20958 #if HAVE_PTHREADS < 7
20959 #include <errno.h>
20960 #endif
20961 #ifndef NULL
20962 #define NULL (void*)0
20963 #endif
20964
20965 static void *task(p)
20966         void *p;
20967 {
20968         return (void *) (p == NULL);
20969 }
20970
20971 int
20972 main ()
20973 {
20974
20975         /* pthread test function */
20976 #ifndef PTHREAD_CREATE_DETACHED
20977 #define PTHREAD_CREATE_DETACHED 1
20978 #endif
20979         pthread_t t;
20980         int status;
20981         int detach = PTHREAD_CREATE_DETACHED;
20982
20983 #if HAVE_PTHREADS > 4
20984         /* Final pthreads */
20985         pthread_attr_t attr;
20986
20987         status = pthread_attr_init(&attr);
20988         if( status ) return status;
20989
20990 #if HAVE_PTHREADS < 7
20991         status = pthread_attr_setdetachstate(&attr, &detach);
20992         if( status < 0 ) status = errno;
20993 #else
20994         status = pthread_attr_setdetachstate(&attr, detach);
20995 #endif
20996         if( status ) return status;
20997         status = pthread_create( &t, &attr, task, NULL );
20998 #if HAVE_PTHREADS < 7
20999         if( status < 0 ) status = errno;
21000 #endif
21001         if( status ) return status;
21002 #else
21003         /* Draft 4 pthreads */
21004         status = pthread_create( &t, pthread_attr_default, task, NULL );
21005         if( status ) return errno;
21006
21007         /* give thread a chance to complete */
21008         /* it should remain joinable and hence detachable */
21009         sleep( 1 );
21010
21011         status = pthread_detach( &t );
21012         if( status ) return errno;
21013 #endif
21014
21015 #ifdef HAVE_LINUX_THREADS
21016         pthread_kill_other_threads_np();
21017 #endif
21018
21019         return 0;
21020
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext conftest$ac_exeext
21026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21027   (eval $ac_link) 2>conftest.er1
21028   ac_status=$?
21029   grep -v '^ *+' conftest.er1 >conftest.err
21030   rm -f conftest.er1
21031   cat conftest.err >&5
21032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033   (exit $ac_status); } &&
21034          { ac_try='test -z "$ac_c_werror_flag"
21035                          || test ! -s conftest.err'
21036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037   (eval $ac_try) 2>&5
21038   ac_status=$?
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); }; } &&
21041          { ac_try='test -s conftest$ac_exeext'
21042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   ol_cv_pthread_pthreads=yes
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 ol_cv_pthread_pthreads=no
21053 fi
21054 rm -f conftest.err conftest.$ac_objext \
21055       conftest$ac_exeext conftest.$ac_ext
21056 else
21057   cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063
21064 /* pthread test headers */
21065 #include <pthread.h>
21066 #if HAVE_PTHREADS < 7
21067 #include <errno.h>
21068 #endif
21069 #ifndef NULL
21070 #define NULL (void*)0
21071 #endif
21072
21073 static void *task(p)
21074         void *p;
21075 {
21076         return (void *) (p == NULL);
21077 }
21078
21079
21080 int main(argc, argv)
21081         int argc;
21082         char **argv;
21083 {
21084
21085         /* pthread test function */
21086 #ifndef PTHREAD_CREATE_DETACHED
21087 #define PTHREAD_CREATE_DETACHED 1
21088 #endif
21089         pthread_t t;
21090         int status;
21091         int detach = PTHREAD_CREATE_DETACHED;
21092
21093 #if HAVE_PTHREADS > 4
21094         /* Final pthreads */
21095         pthread_attr_t attr;
21096
21097         status = pthread_attr_init(&attr);
21098         if( status ) return status;
21099
21100 #if HAVE_PTHREADS < 7
21101         status = pthread_attr_setdetachstate(&attr, &detach);
21102         if( status < 0 ) status = errno;
21103 #else
21104         status = pthread_attr_setdetachstate(&attr, detach);
21105 #endif
21106         if( status ) return status;
21107         status = pthread_create( &t, &attr, task, NULL );
21108 #if HAVE_PTHREADS < 7
21109         if( status < 0 ) status = errno;
21110 #endif
21111         if( status ) return status;
21112 #else
21113         /* Draft 4 pthreads */
21114         status = pthread_create( &t, pthread_attr_default, task, NULL );
21115         if( status ) return errno;
21116
21117         /* give thread a chance to complete */
21118         /* it should remain joinable and hence detachable */
21119         sleep( 1 );
21120
21121         status = pthread_detach( &t );
21122         if( status ) return errno;
21123 #endif
21124
21125 #ifdef HAVE_LINUX_THREADS
21126         pthread_kill_other_threads_np();
21127 #endif
21128
21129         return 0;
21130
21131 }
21132
21133 _ACEOF
21134 rm -f conftest$ac_exeext
21135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21136   (eval $ac_link) 2>&5
21137   ac_status=$?
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141   (eval $ac_try) 2>&5
21142   ac_status=$?
21143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144   (exit $ac_status); }; }; then
21145   ol_cv_pthread_pthreads=yes
21146 else
21147   echo "$as_me: program exited with status $ac_status" >&5
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21150
21151 ( exit $ac_status )
21152 ol_cv_pthread_pthreads=no
21153 fi
21154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21155 fi
21156
21157                 # restore the LIBS
21158                 LIBS="$ol_LIBS"
21159
21160 fi
21161 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21162 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21163
21164         if test $ol_cv_pthread_pthreads = yes ; then
21165                 ol_link_pthreads="-pthreads"
21166                 ol_link_threads=posix
21167         fi
21168 fi
21169
21170                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21171 if test "$ol_link_threads" = no ; then
21172         # try -mthreads
21173         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21174 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21175 if test "${ol_cv_pthread_mthreads+set}" = set; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178
21179                 # save the flags
21180                 ol_LIBS="$LIBS"
21181                 LIBS="-mthreads $LIBS"
21182
21183                 if test "$cross_compiling" = yes; then
21184   cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190
21191 /* pthread test headers */
21192 #include <pthread.h>
21193 #if HAVE_PTHREADS < 7
21194 #include <errno.h>
21195 #endif
21196 #ifndef NULL
21197 #define NULL (void*)0
21198 #endif
21199
21200 static void *task(p)
21201         void *p;
21202 {
21203         return (void *) (p == NULL);
21204 }
21205
21206 int
21207 main ()
21208 {
21209
21210         /* pthread test function */
21211 #ifndef PTHREAD_CREATE_DETACHED
21212 #define PTHREAD_CREATE_DETACHED 1
21213 #endif
21214         pthread_t t;
21215         int status;
21216         int detach = PTHREAD_CREATE_DETACHED;
21217
21218 #if HAVE_PTHREADS > 4
21219         /* Final pthreads */
21220         pthread_attr_t attr;
21221
21222         status = pthread_attr_init(&attr);
21223         if( status ) return status;
21224
21225 #if HAVE_PTHREADS < 7
21226         status = pthread_attr_setdetachstate(&attr, &detach);
21227         if( status < 0 ) status = errno;
21228 #else
21229         status = pthread_attr_setdetachstate(&attr, detach);
21230 #endif
21231         if( status ) return status;
21232         status = pthread_create( &t, &attr, task, NULL );
21233 #if HAVE_PTHREADS < 7
21234         if( status < 0 ) status = errno;
21235 #endif
21236         if( status ) return status;
21237 #else
21238         /* Draft 4 pthreads */
21239         status = pthread_create( &t, pthread_attr_default, task, NULL );
21240         if( status ) return errno;
21241
21242         /* give thread a chance to complete */
21243         /* it should remain joinable and hence detachable */
21244         sleep( 1 );
21245
21246         status = pthread_detach( &t );
21247         if( status ) return errno;
21248 #endif
21249
21250 #ifdef HAVE_LINUX_THREADS
21251         pthread_kill_other_threads_np();
21252 #endif
21253
21254         return 0;
21255
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21262   (eval $ac_link) 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } &&
21269          { ac_try='test -z "$ac_c_werror_flag"
21270                          || test ! -s conftest.err'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; } &&
21276          { ac_try='test -s conftest$ac_exeext'
21277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21278   (eval $ac_try) 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); }; }; then
21282   ol_cv_pthread_mthreads=yes
21283 else
21284   echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ol_cv_pthread_mthreads=no
21288 fi
21289 rm -f conftest.err conftest.$ac_objext \
21290       conftest$ac_exeext conftest.$ac_ext
21291 else
21292   cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298
21299 /* pthread test headers */
21300 #include <pthread.h>
21301 #if HAVE_PTHREADS < 7
21302 #include <errno.h>
21303 #endif
21304 #ifndef NULL
21305 #define NULL (void*)0
21306 #endif
21307
21308 static void *task(p)
21309         void *p;
21310 {
21311         return (void *) (p == NULL);
21312 }
21313
21314
21315 int main(argc, argv)
21316         int argc;
21317         char **argv;
21318 {
21319
21320         /* pthread test function */
21321 #ifndef PTHREAD_CREATE_DETACHED
21322 #define PTHREAD_CREATE_DETACHED 1
21323 #endif
21324         pthread_t t;
21325         int status;
21326         int detach = PTHREAD_CREATE_DETACHED;
21327
21328 #if HAVE_PTHREADS > 4
21329         /* Final pthreads */
21330         pthread_attr_t attr;
21331
21332         status = pthread_attr_init(&attr);
21333         if( status ) return status;
21334
21335 #if HAVE_PTHREADS < 7
21336         status = pthread_attr_setdetachstate(&attr, &detach);
21337         if( status < 0 ) status = errno;
21338 #else
21339         status = pthread_attr_setdetachstate(&attr, detach);
21340 #endif
21341         if( status ) return status;
21342         status = pthread_create( &t, &attr, task, NULL );
21343 #if HAVE_PTHREADS < 7
21344         if( status < 0 ) status = errno;
21345 #endif
21346         if( status ) return status;
21347 #else
21348         /* Draft 4 pthreads */
21349         status = pthread_create( &t, pthread_attr_default, task, NULL );
21350         if( status ) return errno;
21351
21352         /* give thread a chance to complete */
21353         /* it should remain joinable and hence detachable */
21354         sleep( 1 );
21355
21356         status = pthread_detach( &t );
21357         if( status ) return errno;
21358 #endif
21359
21360 #ifdef HAVE_LINUX_THREADS
21361         pthread_kill_other_threads_np();
21362 #endif
21363
21364         return 0;
21365
21366 }
21367
21368 _ACEOF
21369 rm -f conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371   (eval $ac_link) 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   ol_cv_pthread_mthreads=yes
21381 else
21382   echo "$as_me: program exited with status $ac_status" >&5
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386 ( exit $ac_status )
21387 ol_cv_pthread_mthreads=no
21388 fi
21389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21390 fi
21391
21392                 # restore the LIBS
21393                 LIBS="$ol_LIBS"
21394
21395 fi
21396 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21397 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21398
21399         if test $ol_cv_pthread_mthreads = yes ; then
21400                 ol_link_pthreads="-mthreads"
21401                 ol_link_threads=posix
21402         fi
21403 fi
21404
21405                 # Pthread try link: -thread (ol_cv_pthread_thread)
21406 if test "$ol_link_threads" = no ; then
21407         # try -thread
21408         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21409 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21410 if test "${ol_cv_pthread_thread+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413
21414                 # save the flags
21415                 ol_LIBS="$LIBS"
21416                 LIBS="-thread $LIBS"
21417
21418                 if test "$cross_compiling" = yes; then
21419   cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425
21426 /* pthread test headers */
21427 #include <pthread.h>
21428 #if HAVE_PTHREADS < 7
21429 #include <errno.h>
21430 #endif
21431 #ifndef NULL
21432 #define NULL (void*)0
21433 #endif
21434
21435 static void *task(p)
21436         void *p;
21437 {
21438         return (void *) (p == NULL);
21439 }
21440
21441 int
21442 main ()
21443 {
21444
21445         /* pthread test function */
21446 #ifndef PTHREAD_CREATE_DETACHED
21447 #define PTHREAD_CREATE_DETACHED 1
21448 #endif
21449         pthread_t t;
21450         int status;
21451         int detach = PTHREAD_CREATE_DETACHED;
21452
21453 #if HAVE_PTHREADS > 4
21454         /* Final pthreads */
21455         pthread_attr_t attr;
21456
21457         status = pthread_attr_init(&attr);
21458         if( status ) return status;
21459
21460 #if HAVE_PTHREADS < 7
21461         status = pthread_attr_setdetachstate(&attr, &detach);
21462         if( status < 0 ) status = errno;
21463 #else
21464         status = pthread_attr_setdetachstate(&attr, detach);
21465 #endif
21466         if( status ) return status;
21467         status = pthread_create( &t, &attr, task, NULL );
21468 #if HAVE_PTHREADS < 7
21469         if( status < 0 ) status = errno;
21470 #endif
21471         if( status ) return status;
21472 #else
21473         /* Draft 4 pthreads */
21474         status = pthread_create( &t, pthread_attr_default, task, NULL );
21475         if( status ) return errno;
21476
21477         /* give thread a chance to complete */
21478         /* it should remain joinable and hence detachable */
21479         sleep( 1 );
21480
21481         status = pthread_detach( &t );
21482         if( status ) return errno;
21483 #endif
21484
21485 #ifdef HAVE_LINUX_THREADS
21486         pthread_kill_other_threads_np();
21487 #endif
21488
21489         return 0;
21490
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497   (eval $ac_link) 2>conftest.er1
21498   ac_status=$?
21499   grep -v '^ *+' conftest.er1 >conftest.err
21500   rm -f conftest.er1
21501   cat conftest.err >&5
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -z "$ac_c_werror_flag"
21505                          || test ! -s conftest.err'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; } &&
21511          { ac_try='test -s conftest$ac_exeext'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; }; then
21517   ol_cv_pthread_thread=yes
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 ol_cv_pthread_thread=no
21523 fi
21524 rm -f conftest.err conftest.$ac_objext \
21525       conftest$ac_exeext conftest.$ac_ext
21526 else
21527   cat >conftest.$ac_ext <<_ACEOF
21528 /* confdefs.h.  */
21529 _ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h.  */
21533
21534 /* pthread test headers */
21535 #include <pthread.h>
21536 #if HAVE_PTHREADS < 7
21537 #include <errno.h>
21538 #endif
21539 #ifndef NULL
21540 #define NULL (void*)0
21541 #endif
21542
21543 static void *task(p)
21544         void *p;
21545 {
21546         return (void *) (p == NULL);
21547 }
21548
21549
21550 int main(argc, argv)
21551         int argc;
21552         char **argv;
21553 {
21554
21555         /* pthread test function */
21556 #ifndef PTHREAD_CREATE_DETACHED
21557 #define PTHREAD_CREATE_DETACHED 1
21558 #endif
21559         pthread_t t;
21560         int status;
21561         int detach = PTHREAD_CREATE_DETACHED;
21562
21563 #if HAVE_PTHREADS > 4
21564         /* Final pthreads */
21565         pthread_attr_t attr;
21566
21567         status = pthread_attr_init(&attr);
21568         if( status ) return status;
21569
21570 #if HAVE_PTHREADS < 7
21571         status = pthread_attr_setdetachstate(&attr, &detach);
21572         if( status < 0 ) status = errno;
21573 #else
21574         status = pthread_attr_setdetachstate(&attr, detach);
21575 #endif
21576         if( status ) return status;
21577         status = pthread_create( &t, &attr, task, NULL );
21578 #if HAVE_PTHREADS < 7
21579         if( status < 0 ) status = errno;
21580 #endif
21581         if( status ) return status;
21582 #else
21583         /* Draft 4 pthreads */
21584         status = pthread_create( &t, pthread_attr_default, task, NULL );
21585         if( status ) return errno;
21586
21587         /* give thread a chance to complete */
21588         /* it should remain joinable and hence detachable */
21589         sleep( 1 );
21590
21591         status = pthread_detach( &t );
21592         if( status ) return errno;
21593 #endif
21594
21595 #ifdef HAVE_LINUX_THREADS
21596         pthread_kill_other_threads_np();
21597 #endif
21598
21599         return 0;
21600
21601 }
21602
21603 _ACEOF
21604 rm -f conftest$ac_exeext
21605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21606   (eval $ac_link) 2>&5
21607   ac_status=$?
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611   (eval $ac_try) 2>&5
21612   ac_status=$?
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); }; }; then
21615   ol_cv_pthread_thread=yes
21616 else
21617   echo "$as_me: program exited with status $ac_status" >&5
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621 ( exit $ac_status )
21622 ol_cv_pthread_thread=no
21623 fi
21624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21625 fi
21626
21627                 # restore the LIBS
21628                 LIBS="$ol_LIBS"
21629
21630 fi
21631 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21632 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21633
21634         if test $ol_cv_pthread_thread = yes ; then
21635                 ol_link_pthreads="-thread"
21636                 ol_link_threads=posix
21637         fi
21638 fi
21639
21640
21641                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21642 if test "$ol_link_threads" = no ; then
21643         # try -lpthread -lmach -lexc -lc_r
21644         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21645 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21646 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21647   echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649
21650                 # save the flags
21651                 ol_LIBS="$LIBS"
21652                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21653
21654                 if test "$cross_compiling" = yes; then
21655   cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661
21662 /* pthread test headers */
21663 #include <pthread.h>
21664 #if HAVE_PTHREADS < 7
21665 #include <errno.h>
21666 #endif
21667 #ifndef NULL
21668 #define NULL (void*)0
21669 #endif
21670
21671 static void *task(p)
21672         void *p;
21673 {
21674         return (void *) (p == NULL);
21675 }
21676
21677 int
21678 main ()
21679 {
21680
21681         /* pthread test function */
21682 #ifndef PTHREAD_CREATE_DETACHED
21683 #define PTHREAD_CREATE_DETACHED 1
21684 #endif
21685         pthread_t t;
21686         int status;
21687         int detach = PTHREAD_CREATE_DETACHED;
21688
21689 #if HAVE_PTHREADS > 4
21690         /* Final pthreads */
21691         pthread_attr_t attr;
21692
21693         status = pthread_attr_init(&attr);
21694         if( status ) return status;
21695
21696 #if HAVE_PTHREADS < 7
21697         status = pthread_attr_setdetachstate(&attr, &detach);
21698         if( status < 0 ) status = errno;
21699 #else
21700         status = pthread_attr_setdetachstate(&attr, detach);
21701 #endif
21702         if( status ) return status;
21703         status = pthread_create( &t, &attr, task, NULL );
21704 #if HAVE_PTHREADS < 7
21705         if( status < 0 ) status = errno;
21706 #endif
21707         if( status ) return status;
21708 #else
21709         /* Draft 4 pthreads */
21710         status = pthread_create( &t, pthread_attr_default, task, NULL );
21711         if( status ) return errno;
21712
21713         /* give thread a chance to complete */
21714         /* it should remain joinable and hence detachable */
21715         sleep( 1 );
21716
21717         status = pthread_detach( &t );
21718         if( status ) return errno;
21719 #endif
21720
21721 #ifdef HAVE_LINUX_THREADS
21722         pthread_kill_other_threads_np();
21723 #endif
21724
21725         return 0;
21726
21727   ;
21728   return 0;
21729 }
21730 _ACEOF
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21733   (eval $ac_link) 2>conftest.er1
21734   ac_status=$?
21735   grep -v '^ *+' conftest.er1 >conftest.err
21736   rm -f conftest.er1
21737   cat conftest.err >&5
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); } &&
21740          { ac_try='test -z "$ac_c_werror_flag"
21741                          || test ! -s conftest.err'
21742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21743   (eval $ac_try) 2>&5
21744   ac_status=$?
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); }; } &&
21747          { ac_try='test -s conftest$ac_exeext'
21748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749   (eval $ac_try) 2>&5
21750   ac_status=$?
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); }; }; then
21753   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21759 fi
21760 rm -f conftest.err conftest.$ac_objext \
21761       conftest$ac_exeext conftest.$ac_ext
21762 else
21763   cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h.  */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h.  */
21769
21770 /* pthread test headers */
21771 #include <pthread.h>
21772 #if HAVE_PTHREADS < 7
21773 #include <errno.h>
21774 #endif
21775 #ifndef NULL
21776 #define NULL (void*)0
21777 #endif
21778
21779 static void *task(p)
21780         void *p;
21781 {
21782         return (void *) (p == NULL);
21783 }
21784
21785
21786 int main(argc, argv)
21787         int argc;
21788         char **argv;
21789 {
21790
21791         /* pthread test function */
21792 #ifndef PTHREAD_CREATE_DETACHED
21793 #define PTHREAD_CREATE_DETACHED 1
21794 #endif
21795         pthread_t t;
21796         int status;
21797         int detach = PTHREAD_CREATE_DETACHED;
21798
21799 #if HAVE_PTHREADS > 4
21800         /* Final pthreads */
21801         pthread_attr_t attr;
21802
21803         status = pthread_attr_init(&attr);
21804         if( status ) return status;
21805
21806 #if HAVE_PTHREADS < 7
21807         status = pthread_attr_setdetachstate(&attr, &detach);
21808         if( status < 0 ) status = errno;
21809 #else
21810         status = pthread_attr_setdetachstate(&attr, detach);
21811 #endif
21812         if( status ) return status;
21813         status = pthread_create( &t, &attr, task, NULL );
21814 #if HAVE_PTHREADS < 7
21815         if( status < 0 ) status = errno;
21816 #endif
21817         if( status ) return status;
21818 #else
21819         /* Draft 4 pthreads */
21820         status = pthread_create( &t, pthread_attr_default, task, NULL );
21821         if( status ) return errno;
21822
21823         /* give thread a chance to complete */
21824         /* it should remain joinable and hence detachable */
21825         sleep( 1 );
21826
21827         status = pthread_detach( &t );
21828         if( status ) return errno;
21829 #endif
21830
21831 #ifdef HAVE_LINUX_THREADS
21832         pthread_kill_other_threads_np();
21833 #endif
21834
21835         return 0;
21836
21837 }
21838
21839 _ACEOF
21840 rm -f conftest$ac_exeext
21841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21842   (eval $ac_link) 2>&5
21843   ac_status=$?
21844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21852 else
21853   echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ( exit $ac_status )
21858 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21859 fi
21860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21861 fi
21862
21863                 # restore the LIBS
21864                 LIBS="$ol_LIBS"
21865
21866 fi
21867 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21868 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21869
21870         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21871                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21872                 ol_link_threads=posix
21873         fi
21874 fi
21875
21876                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21877 if test "$ol_link_threads" = no ; then
21878         # try -lpthread -lmach -lexc
21879         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21880 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21881 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884
21885                 # save the flags
21886                 ol_LIBS="$LIBS"
21887                 LIBS="-lpthread -lmach -lexc $LIBS"
21888
21889                 if test "$cross_compiling" = yes; then
21890   cat >conftest.$ac_ext <<_ACEOF
21891 /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896
21897 /* pthread test headers */
21898 #include <pthread.h>
21899 #if HAVE_PTHREADS < 7
21900 #include <errno.h>
21901 #endif
21902 #ifndef NULL
21903 #define NULL (void*)0
21904 #endif
21905
21906 static void *task(p)
21907         void *p;
21908 {
21909         return (void *) (p == NULL);
21910 }
21911
21912 int
21913 main ()
21914 {
21915
21916         /* pthread test function */
21917 #ifndef PTHREAD_CREATE_DETACHED
21918 #define PTHREAD_CREATE_DETACHED 1
21919 #endif
21920         pthread_t t;
21921         int status;
21922         int detach = PTHREAD_CREATE_DETACHED;
21923
21924 #if HAVE_PTHREADS > 4
21925         /* Final pthreads */
21926         pthread_attr_t attr;
21927
21928         status = pthread_attr_init(&attr);
21929         if( status ) return status;
21930
21931 #if HAVE_PTHREADS < 7
21932         status = pthread_attr_setdetachstate(&attr, &detach);
21933         if( status < 0 ) status = errno;
21934 #else
21935         status = pthread_attr_setdetachstate(&attr, detach);
21936 #endif
21937         if( status ) return status;
21938         status = pthread_create( &t, &attr, task, NULL );
21939 #if HAVE_PTHREADS < 7
21940         if( status < 0 ) status = errno;
21941 #endif
21942         if( status ) return status;
21943 #else
21944         /* Draft 4 pthreads */
21945         status = pthread_create( &t, pthread_attr_default, task, NULL );
21946         if( status ) return errno;
21947
21948         /* give thread a chance to complete */
21949         /* it should remain joinable and hence detachable */
21950         sleep( 1 );
21951
21952         status = pthread_detach( &t );
21953         if( status ) return errno;
21954 #endif
21955
21956 #ifdef HAVE_LINUX_THREADS
21957         pthread_kill_other_threads_np();
21958 #endif
21959
21960         return 0;
21961
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968   (eval $ac_link) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag"
21976                          || test ! -s conftest.err'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; } &&
21982          { ac_try='test -s conftest$ac_exeext'
21983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984   (eval $ac_try) 2>&5
21985   ac_status=$?
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); }; }; then
21988   ol_cv_pthread_lpthread_lmach_lexc=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ol_cv_pthread_lpthread_lmach_lexc=no
21994 fi
21995 rm -f conftest.err conftest.$ac_objext \
21996       conftest$ac_exeext conftest.$ac_ext
21997 else
21998   cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004
22005 /* pthread test headers */
22006 #include <pthread.h>
22007 #if HAVE_PTHREADS < 7
22008 #include <errno.h>
22009 #endif
22010 #ifndef NULL
22011 #define NULL (void*)0
22012 #endif
22013
22014 static void *task(p)
22015         void *p;
22016 {
22017         return (void *) (p == NULL);
22018 }
22019
22020
22021 int main(argc, argv)
22022         int argc;
22023         char **argv;
22024 {
22025
22026         /* pthread test function */
22027 #ifndef PTHREAD_CREATE_DETACHED
22028 #define PTHREAD_CREATE_DETACHED 1
22029 #endif
22030         pthread_t t;
22031         int status;
22032         int detach = PTHREAD_CREATE_DETACHED;
22033
22034 #if HAVE_PTHREADS > 4
22035         /* Final pthreads */
22036         pthread_attr_t attr;
22037
22038         status = pthread_attr_init(&attr);
22039         if( status ) return status;
22040
22041 #if HAVE_PTHREADS < 7
22042         status = pthread_attr_setdetachstate(&attr, &detach);
22043         if( status < 0 ) status = errno;
22044 #else
22045         status = pthread_attr_setdetachstate(&attr, detach);
22046 #endif
22047         if( status ) return status;
22048         status = pthread_create( &t, &attr, task, NULL );
22049 #if HAVE_PTHREADS < 7
22050         if( status < 0 ) status = errno;
22051 #endif
22052         if( status ) return status;
22053 #else
22054         /* Draft 4 pthreads */
22055         status = pthread_create( &t, pthread_attr_default, task, NULL );
22056         if( status ) return errno;
22057
22058         /* give thread a chance to complete */
22059         /* it should remain joinable and hence detachable */
22060         sleep( 1 );
22061
22062         status = pthread_detach( &t );
22063         if( status ) return errno;
22064 #endif
22065
22066 #ifdef HAVE_LINUX_THREADS
22067         pthread_kill_other_threads_np();
22068 #endif
22069
22070         return 0;
22071
22072 }
22073
22074 _ACEOF
22075 rm -f conftest$ac_exeext
22076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22077   (eval $ac_link) 2>&5
22078   ac_status=$?
22079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   ol_cv_pthread_lpthread_lmach_lexc=yes
22087 else
22088   echo "$as_me: program exited with status $ac_status" >&5
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ( exit $ac_status )
22093 ol_cv_pthread_lpthread_lmach_lexc=no
22094 fi
22095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22096 fi
22097
22098                 # restore the LIBS
22099                 LIBS="$ol_LIBS"
22100
22101 fi
22102 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22103 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22104
22105         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22106                 ol_link_pthreads="-lpthread -lmach -lexc"
22107                 ol_link_threads=posix
22108         fi
22109 fi
22110
22111
22112                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22113 if test "$ol_link_threads" = no ; then
22114         # try -lpthread -Wl,-woff,85
22115         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22116 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22117 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22118   echo $ECHO_N "(cached) $ECHO_C" >&6
22119 else
22120
22121                 # save the flags
22122                 ol_LIBS="$LIBS"
22123                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22124
22125                 if test "$cross_compiling" = yes; then
22126   cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h.  */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h.  */
22132
22133 /* pthread test headers */
22134 #include <pthread.h>
22135 #if HAVE_PTHREADS < 7
22136 #include <errno.h>
22137 #endif
22138 #ifndef NULL
22139 #define NULL (void*)0
22140 #endif
22141
22142 static void *task(p)
22143         void *p;
22144 {
22145         return (void *) (p == NULL);
22146 }
22147
22148 int
22149 main ()
22150 {
22151
22152         /* pthread test function */
22153 #ifndef PTHREAD_CREATE_DETACHED
22154 #define PTHREAD_CREATE_DETACHED 1
22155 #endif
22156         pthread_t t;
22157         int status;
22158         int detach = PTHREAD_CREATE_DETACHED;
22159
22160 #if HAVE_PTHREADS > 4
22161         /* Final pthreads */
22162         pthread_attr_t attr;
22163
22164         status = pthread_attr_init(&attr);
22165         if( status ) return status;
22166
22167 #if HAVE_PTHREADS < 7
22168         status = pthread_attr_setdetachstate(&attr, &detach);
22169         if( status < 0 ) status = errno;
22170 #else
22171         status = pthread_attr_setdetachstate(&attr, detach);
22172 #endif
22173         if( status ) return status;
22174         status = pthread_create( &t, &attr, task, NULL );
22175 #if HAVE_PTHREADS < 7
22176         if( status < 0 ) status = errno;
22177 #endif
22178         if( status ) return status;
22179 #else
22180         /* Draft 4 pthreads */
22181         status = pthread_create( &t, pthread_attr_default, task, NULL );
22182         if( status ) return errno;
22183
22184         /* give thread a chance to complete */
22185         /* it should remain joinable and hence detachable */
22186         sleep( 1 );
22187
22188         status = pthread_detach( &t );
22189         if( status ) return errno;
22190 #endif
22191
22192 #ifdef HAVE_LINUX_THREADS
22193         pthread_kill_other_threads_np();
22194 #endif
22195
22196         return 0;
22197
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest.$ac_objext conftest$ac_exeext
22203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22204   (eval $ac_link) 2>conftest.er1
22205   ac_status=$?
22206   grep -v '^ *+' conftest.er1 >conftest.err
22207   rm -f conftest.er1
22208   cat conftest.err >&5
22209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210   (exit $ac_status); } &&
22211          { ac_try='test -z "$ac_c_werror_flag"
22212                          || test ! -s conftest.err'
22213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214   (eval $ac_try) 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; } &&
22218          { ac_try='test -s conftest$ac_exeext'
22219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220   (eval $ac_try) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); }; }; then
22224   ol_cv_pthread_lib_lpthread_woff=yes
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 ol_cv_pthread_lib_lpthread_woff=no
22230 fi
22231 rm -f conftest.err conftest.$ac_objext \
22232       conftest$ac_exeext conftest.$ac_ext
22233 else
22234   cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240
22241 /* pthread test headers */
22242 #include <pthread.h>
22243 #if HAVE_PTHREADS < 7
22244 #include <errno.h>
22245 #endif
22246 #ifndef NULL
22247 #define NULL (void*)0
22248 #endif
22249
22250 static void *task(p)
22251         void *p;
22252 {
22253         return (void *) (p == NULL);
22254 }
22255
22256
22257 int main(argc, argv)
22258         int argc;
22259         char **argv;
22260 {
22261
22262         /* pthread test function */
22263 #ifndef PTHREAD_CREATE_DETACHED
22264 #define PTHREAD_CREATE_DETACHED 1
22265 #endif
22266         pthread_t t;
22267         int status;
22268         int detach = PTHREAD_CREATE_DETACHED;
22269
22270 #if HAVE_PTHREADS > 4
22271         /* Final pthreads */
22272         pthread_attr_t attr;
22273
22274         status = pthread_attr_init(&attr);
22275         if( status ) return status;
22276
22277 #if HAVE_PTHREADS < 7
22278         status = pthread_attr_setdetachstate(&attr, &detach);
22279         if( status < 0 ) status = errno;
22280 #else
22281         status = pthread_attr_setdetachstate(&attr, detach);
22282 #endif
22283         if( status ) return status;
22284         status = pthread_create( &t, &attr, task, NULL );
22285 #if HAVE_PTHREADS < 7
22286         if( status < 0 ) status = errno;
22287 #endif
22288         if( status ) return status;
22289 #else
22290         /* Draft 4 pthreads */
22291         status = pthread_create( &t, pthread_attr_default, task, NULL );
22292         if( status ) return errno;
22293
22294         /* give thread a chance to complete */
22295         /* it should remain joinable and hence detachable */
22296         sleep( 1 );
22297
22298         status = pthread_detach( &t );
22299         if( status ) return errno;
22300 #endif
22301
22302 #ifdef HAVE_LINUX_THREADS
22303         pthread_kill_other_threads_np();
22304 #endif
22305
22306         return 0;
22307
22308 }
22309
22310 _ACEOF
22311 rm -f conftest$ac_exeext
22312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22313   (eval $ac_link) 2>&5
22314   ac_status=$?
22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ol_cv_pthread_lib_lpthread_woff=yes
22323 else
22324   echo "$as_me: program exited with status $ac_status" >&5
22325 echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 ( exit $ac_status )
22329 ol_cv_pthread_lib_lpthread_woff=no
22330 fi
22331 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22332 fi
22333
22334                 # restore the LIBS
22335                 LIBS="$ol_LIBS"
22336
22337 fi
22338 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22339 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22340
22341         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22342                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22343                 ol_link_threads=posix
22344         fi
22345 fi
22346
22347
22348                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22349 if test "$ol_link_threads" = no ; then
22350         # try -lpthread
22351         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22352 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22353 if test "${ol_cv_pthread_lpthread+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356
22357                 # save the flags
22358                 ol_LIBS="$LIBS"
22359                 LIBS="-lpthread $LIBS"
22360
22361                 if test "$cross_compiling" = yes; then
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368
22369 /* pthread test headers */
22370 #include <pthread.h>
22371 #if HAVE_PTHREADS < 7
22372 #include <errno.h>
22373 #endif
22374 #ifndef NULL
22375 #define NULL (void*)0
22376 #endif
22377
22378 static void *task(p)
22379         void *p;
22380 {
22381         return (void *) (p == NULL);
22382 }
22383
22384 int
22385 main ()
22386 {
22387
22388         /* pthread test function */
22389 #ifndef PTHREAD_CREATE_DETACHED
22390 #define PTHREAD_CREATE_DETACHED 1
22391 #endif
22392         pthread_t t;
22393         int status;
22394         int detach = PTHREAD_CREATE_DETACHED;
22395
22396 #if HAVE_PTHREADS > 4
22397         /* Final pthreads */
22398         pthread_attr_t attr;
22399
22400         status = pthread_attr_init(&attr);
22401         if( status ) return status;
22402
22403 #if HAVE_PTHREADS < 7
22404         status = pthread_attr_setdetachstate(&attr, &detach);
22405         if( status < 0 ) status = errno;
22406 #else
22407         status = pthread_attr_setdetachstate(&attr, detach);
22408 #endif
22409         if( status ) return status;
22410         status = pthread_create( &t, &attr, task, NULL );
22411 #if HAVE_PTHREADS < 7
22412         if( status < 0 ) status = errno;
22413 #endif
22414         if( status ) return status;
22415 #else
22416         /* Draft 4 pthreads */
22417         status = pthread_create( &t, pthread_attr_default, task, NULL );
22418         if( status ) return errno;
22419
22420         /* give thread a chance to complete */
22421         /* it should remain joinable and hence detachable */
22422         sleep( 1 );
22423
22424         status = pthread_detach( &t );
22425         if( status ) return errno;
22426 #endif
22427
22428 #ifdef HAVE_LINUX_THREADS
22429         pthread_kill_other_threads_np();
22430 #endif
22431
22432         return 0;
22433
22434   ;
22435   return 0;
22436 }
22437 _ACEOF
22438 rm -f conftest.$ac_objext conftest$ac_exeext
22439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22440   (eval $ac_link) 2>conftest.er1
22441   ac_status=$?
22442   grep -v '^ *+' conftest.er1 >conftest.err
22443   rm -f conftest.er1
22444   cat conftest.err >&5
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); } &&
22447          { ac_try='test -z "$ac_c_werror_flag"
22448                          || test ! -s conftest.err'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; } &&
22454          { ac_try='test -s conftest$ac_exeext'
22455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22456   (eval $ac_try) 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; }; then
22460   ol_cv_pthread_lpthread=yes
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465 ol_cv_pthread_lpthread=no
22466 fi
22467 rm -f conftest.err conftest.$ac_objext \
22468       conftest$ac_exeext conftest.$ac_ext
22469 else
22470   cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h.  */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h.  */
22476
22477 /* pthread test headers */
22478 #include <pthread.h>
22479 #if HAVE_PTHREADS < 7
22480 #include <errno.h>
22481 #endif
22482 #ifndef NULL
22483 #define NULL (void*)0
22484 #endif
22485
22486 static void *task(p)
22487         void *p;
22488 {
22489         return (void *) (p == NULL);
22490 }
22491
22492
22493 int main(argc, argv)
22494         int argc;
22495         char **argv;
22496 {
22497
22498         /* pthread test function */
22499 #ifndef PTHREAD_CREATE_DETACHED
22500 #define PTHREAD_CREATE_DETACHED 1
22501 #endif
22502         pthread_t t;
22503         int status;
22504         int detach = PTHREAD_CREATE_DETACHED;
22505
22506 #if HAVE_PTHREADS > 4
22507         /* Final pthreads */
22508         pthread_attr_t attr;
22509
22510         status = pthread_attr_init(&attr);
22511         if( status ) return status;
22512
22513 #if HAVE_PTHREADS < 7
22514         status = pthread_attr_setdetachstate(&attr, &detach);
22515         if( status < 0 ) status = errno;
22516 #else
22517         status = pthread_attr_setdetachstate(&attr, detach);
22518 #endif
22519         if( status ) return status;
22520         status = pthread_create( &t, &attr, task, NULL );
22521 #if HAVE_PTHREADS < 7
22522         if( status < 0 ) status = errno;
22523 #endif
22524         if( status ) return status;
22525 #else
22526         /* Draft 4 pthreads */
22527         status = pthread_create( &t, pthread_attr_default, task, NULL );
22528         if( status ) return errno;
22529
22530         /* give thread a chance to complete */
22531         /* it should remain joinable and hence detachable */
22532         sleep( 1 );
22533
22534         status = pthread_detach( &t );
22535         if( status ) return errno;
22536 #endif
22537
22538 #ifdef HAVE_LINUX_THREADS
22539         pthread_kill_other_threads_np();
22540 #endif
22541
22542         return 0;
22543
22544 }
22545
22546 _ACEOF
22547 rm -f conftest$ac_exeext
22548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22549   (eval $ac_link) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22554   (eval $ac_try) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); }; }; then
22558   ol_cv_pthread_lpthread=yes
22559 else
22560   echo "$as_me: program exited with status $ac_status" >&5
22561 echo "$as_me: failed program was:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22563
22564 ( exit $ac_status )
22565 ol_cv_pthread_lpthread=no
22566 fi
22567 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22568 fi
22569
22570                 # restore the LIBS
22571                 LIBS="$ol_LIBS"
22572
22573 fi
22574 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22575 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22576
22577         if test $ol_cv_pthread_lpthread = yes ; then
22578                 ol_link_pthreads="-lpthread"
22579                 ol_link_threads=posix
22580         fi
22581 fi
22582
22583                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22584 if test "$ol_link_threads" = no ; then
22585         # try -lc_r
22586         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22587 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22588 if test "${ol_cv_pthread_lc_r+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591
22592                 # save the flags
22593                 ol_LIBS="$LIBS"
22594                 LIBS="-lc_r $LIBS"
22595
22596                 if test "$cross_compiling" = yes; then
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603
22604 /* pthread test headers */
22605 #include <pthread.h>
22606 #if HAVE_PTHREADS < 7
22607 #include <errno.h>
22608 #endif
22609 #ifndef NULL
22610 #define NULL (void*)0
22611 #endif
22612
22613 static void *task(p)
22614         void *p;
22615 {
22616         return (void *) (p == NULL);
22617 }
22618
22619 int
22620 main ()
22621 {
22622
22623         /* pthread test function */
22624 #ifndef PTHREAD_CREATE_DETACHED
22625 #define PTHREAD_CREATE_DETACHED 1
22626 #endif
22627         pthread_t t;
22628         int status;
22629         int detach = PTHREAD_CREATE_DETACHED;
22630
22631 #if HAVE_PTHREADS > 4
22632         /* Final pthreads */
22633         pthread_attr_t attr;
22634
22635         status = pthread_attr_init(&attr);
22636         if( status ) return status;
22637
22638 #if HAVE_PTHREADS < 7
22639         status = pthread_attr_setdetachstate(&attr, &detach);
22640         if( status < 0 ) status = errno;
22641 #else
22642         status = pthread_attr_setdetachstate(&attr, detach);
22643 #endif
22644         if( status ) return status;
22645         status = pthread_create( &t, &attr, task, NULL );
22646 #if HAVE_PTHREADS < 7
22647         if( status < 0 ) status = errno;
22648 #endif
22649         if( status ) return status;
22650 #else
22651         /* Draft 4 pthreads */
22652         status = pthread_create( &t, pthread_attr_default, task, NULL );
22653         if( status ) return errno;
22654
22655         /* give thread a chance to complete */
22656         /* it should remain joinable and hence detachable */
22657         sleep( 1 );
22658
22659         status = pthread_detach( &t );
22660         if( status ) return errno;
22661 #endif
22662
22663 #ifdef HAVE_LINUX_THREADS
22664         pthread_kill_other_threads_np();
22665 #endif
22666
22667         return 0;
22668
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22675   (eval $ac_link) 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } &&
22682          { ac_try='test -z "$ac_c_werror_flag"
22683                          || test ! -s conftest.err'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest$ac_exeext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   ol_cv_pthread_lc_r=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 ol_cv_pthread_lc_r=no
22701 fi
22702 rm -f conftest.err conftest.$ac_objext \
22703       conftest$ac_exeext conftest.$ac_ext
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711
22712 /* pthread test headers */
22713 #include <pthread.h>
22714 #if HAVE_PTHREADS < 7
22715 #include <errno.h>
22716 #endif
22717 #ifndef NULL
22718 #define NULL (void*)0
22719 #endif
22720
22721 static void *task(p)
22722         void *p;
22723 {
22724         return (void *) (p == NULL);
22725 }
22726
22727
22728 int main(argc, argv)
22729         int argc;
22730         char **argv;
22731 {
22732
22733         /* pthread test function */
22734 #ifndef PTHREAD_CREATE_DETACHED
22735 #define PTHREAD_CREATE_DETACHED 1
22736 #endif
22737         pthread_t t;
22738         int status;
22739         int detach = PTHREAD_CREATE_DETACHED;
22740
22741 #if HAVE_PTHREADS > 4
22742         /* Final pthreads */
22743         pthread_attr_t attr;
22744
22745         status = pthread_attr_init(&attr);
22746         if( status ) return status;
22747
22748 #if HAVE_PTHREADS < 7
22749         status = pthread_attr_setdetachstate(&attr, &detach);
22750         if( status < 0 ) status = errno;
22751 #else
22752         status = pthread_attr_setdetachstate(&attr, detach);
22753 #endif
22754         if( status ) return status;
22755         status = pthread_create( &t, &attr, task, NULL );
22756 #if HAVE_PTHREADS < 7
22757         if( status < 0 ) status = errno;
22758 #endif
22759         if( status ) return status;
22760 #else
22761         /* Draft 4 pthreads */
22762         status = pthread_create( &t, pthread_attr_default, task, NULL );
22763         if( status ) return errno;
22764
22765         /* give thread a chance to complete */
22766         /* it should remain joinable and hence detachable */
22767         sleep( 1 );
22768
22769         status = pthread_detach( &t );
22770         if( status ) return errno;
22771 #endif
22772
22773 #ifdef HAVE_LINUX_THREADS
22774         pthread_kill_other_threads_np();
22775 #endif
22776
22777         return 0;
22778
22779 }
22780
22781 _ACEOF
22782 rm -f conftest$ac_exeext
22783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22784   (eval $ac_link) 2>&5
22785   ac_status=$?
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789   (eval $ac_try) 2>&5
22790   ac_status=$?
22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792   (exit $ac_status); }; }; then
22793   ol_cv_pthread_lc_r=yes
22794 else
22795   echo "$as_me: program exited with status $ac_status" >&5
22796 echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ( exit $ac_status )
22800 ol_cv_pthread_lc_r=no
22801 fi
22802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22803 fi
22804
22805                 # restore the LIBS
22806                 LIBS="$ol_LIBS"
22807
22808 fi
22809 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22810 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22811
22812         if test $ol_cv_pthread_lc_r = yes ; then
22813                 ol_link_pthreads="-lc_r"
22814                 ol_link_threads=posix
22815         fi
22816 fi
22817
22818
22819                 # Pthread try link: -threads (ol_cv_pthread_threads)
22820 if test "$ol_link_threads" = no ; then
22821         # try -threads
22822         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22823 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22824 if test "${ol_cv_pthread_threads+set}" = set; then
22825   echo $ECHO_N "(cached) $ECHO_C" >&6
22826 else
22827
22828                 # save the flags
22829                 ol_LIBS="$LIBS"
22830                 LIBS="-threads $LIBS"
22831
22832                 if test "$cross_compiling" = yes; then
22833   cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h.  */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h.  */
22839
22840 /* pthread test headers */
22841 #include <pthread.h>
22842 #if HAVE_PTHREADS < 7
22843 #include <errno.h>
22844 #endif
22845 #ifndef NULL
22846 #define NULL (void*)0
22847 #endif
22848
22849 static void *task(p)
22850         void *p;
22851 {
22852         return (void *) (p == NULL);
22853 }
22854
22855 int
22856 main ()
22857 {
22858
22859         /* pthread test function */
22860 #ifndef PTHREAD_CREATE_DETACHED
22861 #define PTHREAD_CREATE_DETACHED 1
22862 #endif
22863         pthread_t t;
22864         int status;
22865         int detach = PTHREAD_CREATE_DETACHED;
22866
22867 #if HAVE_PTHREADS > 4
22868         /* Final pthreads */
22869         pthread_attr_t attr;
22870
22871         status = pthread_attr_init(&attr);
22872         if( status ) return status;
22873
22874 #if HAVE_PTHREADS < 7
22875         status = pthread_attr_setdetachstate(&attr, &detach);
22876         if( status < 0 ) status = errno;
22877 #else
22878         status = pthread_attr_setdetachstate(&attr, detach);
22879 #endif
22880         if( status ) return status;
22881         status = pthread_create( &t, &attr, task, NULL );
22882 #if HAVE_PTHREADS < 7
22883         if( status < 0 ) status = errno;
22884 #endif
22885         if( status ) return status;
22886 #else
22887         /* Draft 4 pthreads */
22888         status = pthread_create( &t, pthread_attr_default, task, NULL );
22889         if( status ) return errno;
22890
22891         /* give thread a chance to complete */
22892         /* it should remain joinable and hence detachable */
22893         sleep( 1 );
22894
22895         status = pthread_detach( &t );
22896         if( status ) return errno;
22897 #endif
22898
22899 #ifdef HAVE_LINUX_THREADS
22900         pthread_kill_other_threads_np();
22901 #endif
22902
22903         return 0;
22904
22905   ;
22906   return 0;
22907 }
22908 _ACEOF
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22911   (eval $ac_link) 2>conftest.er1
22912   ac_status=$?
22913   grep -v '^ *+' conftest.er1 >conftest.err
22914   rm -f conftest.er1
22915   cat conftest.err >&5
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); } &&
22918          { ac_try='test -z "$ac_c_werror_flag"
22919                          || test ! -s conftest.err'
22920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921   (eval $ac_try) 2>&5
22922   ac_status=$?
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); }; } &&
22925          { ac_try='test -s conftest$ac_exeext'
22926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22927   (eval $ac_try) 2>&5
22928   ac_status=$?
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); }; }; then
22931   ol_cv_pthread_threads=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936 ol_cv_pthread_threads=no
22937 fi
22938 rm -f conftest.err conftest.$ac_objext \
22939       conftest$ac_exeext conftest.$ac_ext
22940 else
22941   cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h.  */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h.  */
22947
22948 /* pthread test headers */
22949 #include <pthread.h>
22950 #if HAVE_PTHREADS < 7
22951 #include <errno.h>
22952 #endif
22953 #ifndef NULL
22954 #define NULL (void*)0
22955 #endif
22956
22957 static void *task(p)
22958         void *p;
22959 {
22960         return (void *) (p == NULL);
22961 }
22962
22963
22964 int main(argc, argv)
22965         int argc;
22966         char **argv;
22967 {
22968
22969         /* pthread test function */
22970 #ifndef PTHREAD_CREATE_DETACHED
22971 #define PTHREAD_CREATE_DETACHED 1
22972 #endif
22973         pthread_t t;
22974         int status;
22975         int detach = PTHREAD_CREATE_DETACHED;
22976
22977 #if HAVE_PTHREADS > 4
22978         /* Final pthreads */
22979         pthread_attr_t attr;
22980
22981         status = pthread_attr_init(&attr);
22982         if( status ) return status;
22983
22984 #if HAVE_PTHREADS < 7
22985         status = pthread_attr_setdetachstate(&attr, &detach);
22986         if( status < 0 ) status = errno;
22987 #else
22988         status = pthread_attr_setdetachstate(&attr, detach);
22989 #endif
22990         if( status ) return status;
22991         status = pthread_create( &t, &attr, task, NULL );
22992 #if HAVE_PTHREADS < 7
22993         if( status < 0 ) status = errno;
22994 #endif
22995         if( status ) return status;
22996 #else
22997         /* Draft 4 pthreads */
22998         status = pthread_create( &t, pthread_attr_default, task, NULL );
22999         if( status ) return errno;
23000
23001         /* give thread a chance to complete */
23002         /* it should remain joinable and hence detachable */
23003         sleep( 1 );
23004
23005         status = pthread_detach( &t );
23006         if( status ) return errno;
23007 #endif
23008
23009 #ifdef HAVE_LINUX_THREADS
23010         pthread_kill_other_threads_np();
23011 #endif
23012
23013         return 0;
23014
23015 }
23016
23017 _ACEOF
23018 rm -f conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020   (eval $ac_link) 2>&5
23021   ac_status=$?
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23025   (eval $ac_try) 2>&5
23026   ac_status=$?
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); }; }; then
23029   ol_cv_pthread_threads=yes
23030 else
23031   echo "$as_me: program exited with status $ac_status" >&5
23032 echo "$as_me: failed program was:" >&5
23033 sed 's/^/| /' conftest.$ac_ext >&5
23034
23035 ( exit $ac_status )
23036 ol_cv_pthread_threads=no
23037 fi
23038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23039 fi
23040
23041                 # restore the LIBS
23042                 LIBS="$ol_LIBS"
23043
23044 fi
23045 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23046 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23047
23048         if test $ol_cv_pthread_threads = yes ; then
23049                 ol_link_pthreads="-threads"
23050                 ol_link_threads=posix
23051         fi
23052 fi
23053
23054
23055                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23056 if test "$ol_link_threads" = no ; then
23057         # try -lpthreads -lmach -lexc -lc_r
23058         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23059 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23060 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23061   echo $ECHO_N "(cached) $ECHO_C" >&6
23062 else
23063
23064                 # save the flags
23065                 ol_LIBS="$LIBS"
23066                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23067
23068                 if test "$cross_compiling" = yes; then
23069   cat >conftest.$ac_ext <<_ACEOF
23070 /* confdefs.h.  */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h.  */
23075
23076 /* pthread test headers */
23077 #include <pthread.h>
23078 #if HAVE_PTHREADS < 7
23079 #include <errno.h>
23080 #endif
23081 #ifndef NULL
23082 #define NULL (void*)0
23083 #endif
23084
23085 static void *task(p)
23086         void *p;
23087 {
23088         return (void *) (p == NULL);
23089 }
23090
23091 int
23092 main ()
23093 {
23094
23095         /* pthread test function */
23096 #ifndef PTHREAD_CREATE_DETACHED
23097 #define PTHREAD_CREATE_DETACHED 1
23098 #endif
23099         pthread_t t;
23100         int status;
23101         int detach = PTHREAD_CREATE_DETACHED;
23102
23103 #if HAVE_PTHREADS > 4
23104         /* Final pthreads */
23105         pthread_attr_t attr;
23106
23107         status = pthread_attr_init(&attr);
23108         if( status ) return status;
23109
23110 #if HAVE_PTHREADS < 7
23111         status = pthread_attr_setdetachstate(&attr, &detach);
23112         if( status < 0 ) status = errno;
23113 #else
23114         status = pthread_attr_setdetachstate(&attr, detach);
23115 #endif
23116         if( status ) return status;
23117         status = pthread_create( &t, &attr, task, NULL );
23118 #if HAVE_PTHREADS < 7
23119         if( status < 0 ) status = errno;
23120 #endif
23121         if( status ) return status;
23122 #else
23123         /* Draft 4 pthreads */
23124         status = pthread_create( &t, pthread_attr_default, task, NULL );
23125         if( status ) return errno;
23126
23127         /* give thread a chance to complete */
23128         /* it should remain joinable and hence detachable */
23129         sleep( 1 );
23130
23131         status = pthread_detach( &t );
23132         if( status ) return errno;
23133 #endif
23134
23135 #ifdef HAVE_LINUX_THREADS
23136         pthread_kill_other_threads_np();
23137 #endif
23138
23139         return 0;
23140
23141   ;
23142   return 0;
23143 }
23144 _ACEOF
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147   (eval $ac_link) 2>conftest.er1
23148   ac_status=$?
23149   grep -v '^ *+' conftest.er1 >conftest.err
23150   rm -f conftest.er1
23151   cat conftest.err >&5
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } &&
23154          { ac_try='test -z "$ac_c_werror_flag"
23155                          || test ! -s conftest.err'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; } &&
23161          { ac_try='test -s conftest$ac_exeext'
23162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163   (eval $ac_try) 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); }; }; then
23167   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23168 else
23169   echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23173 fi
23174 rm -f conftest.err conftest.$ac_objext \
23175       conftest$ac_exeext conftest.$ac_ext
23176 else
23177   cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183
23184 /* pthread test headers */
23185 #include <pthread.h>
23186 #if HAVE_PTHREADS < 7
23187 #include <errno.h>
23188 #endif
23189 #ifndef NULL
23190 #define NULL (void*)0
23191 #endif
23192
23193 static void *task(p)
23194         void *p;
23195 {
23196         return (void *) (p == NULL);
23197 }
23198
23199
23200 int main(argc, argv)
23201         int argc;
23202         char **argv;
23203 {
23204
23205         /* pthread test function */
23206 #ifndef PTHREAD_CREATE_DETACHED
23207 #define PTHREAD_CREATE_DETACHED 1
23208 #endif
23209         pthread_t t;
23210         int status;
23211         int detach = PTHREAD_CREATE_DETACHED;
23212
23213 #if HAVE_PTHREADS > 4
23214         /* Final pthreads */
23215         pthread_attr_t attr;
23216
23217         status = pthread_attr_init(&attr);
23218         if( status ) return status;
23219
23220 #if HAVE_PTHREADS < 7
23221         status = pthread_attr_setdetachstate(&attr, &detach);
23222         if( status < 0 ) status = errno;
23223 #else
23224         status = pthread_attr_setdetachstate(&attr, detach);
23225 #endif
23226         if( status ) return status;
23227         status = pthread_create( &t, &attr, task, NULL );
23228 #if HAVE_PTHREADS < 7
23229         if( status < 0 ) status = errno;
23230 #endif
23231         if( status ) return status;
23232 #else
23233         /* Draft 4 pthreads */
23234         status = pthread_create( &t, pthread_attr_default, task, NULL );
23235         if( status ) return errno;
23236
23237         /* give thread a chance to complete */
23238         /* it should remain joinable and hence detachable */
23239         sleep( 1 );
23240
23241         status = pthread_detach( &t );
23242         if( status ) return errno;
23243 #endif
23244
23245 #ifdef HAVE_LINUX_THREADS
23246         pthread_kill_other_threads_np();
23247 #endif
23248
23249         return 0;
23250
23251 }
23252
23253 _ACEOF
23254 rm -f conftest$ac_exeext
23255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23256   (eval $ac_link) 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; }; then
23265   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23266 else
23267   echo "$as_me: program exited with status $ac_status" >&5
23268 echo "$as_me: failed program was:" >&5
23269 sed 's/^/| /' conftest.$ac_ext >&5
23270
23271 ( exit $ac_status )
23272 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23273 fi
23274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23275 fi
23276
23277                 # restore the LIBS
23278                 LIBS="$ol_LIBS"
23279
23280 fi
23281 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23282 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23283
23284         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23285                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23286                 ol_link_threads=posix
23287         fi
23288 fi
23289
23290                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23291 if test "$ol_link_threads" = no ; then
23292         # try -lpthreads -lmach -lexc
23293         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23294 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23295 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23296   echo $ECHO_N "(cached) $ECHO_C" >&6
23297 else
23298
23299                 # save the flags
23300                 ol_LIBS="$LIBS"
23301                 LIBS="-lpthreads -lmach -lexc $LIBS"
23302
23303                 if test "$cross_compiling" = yes; then
23304   cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310
23311 /* pthread test headers */
23312 #include <pthread.h>
23313 #if HAVE_PTHREADS < 7
23314 #include <errno.h>
23315 #endif
23316 #ifndef NULL
23317 #define NULL (void*)0
23318 #endif
23319
23320 static void *task(p)
23321         void *p;
23322 {
23323         return (void *) (p == NULL);
23324 }
23325
23326 int
23327 main ()
23328 {
23329
23330         /* pthread test function */
23331 #ifndef PTHREAD_CREATE_DETACHED
23332 #define PTHREAD_CREATE_DETACHED 1
23333 #endif
23334         pthread_t t;
23335         int status;
23336         int detach = PTHREAD_CREATE_DETACHED;
23337
23338 #if HAVE_PTHREADS > 4
23339         /* Final pthreads */
23340         pthread_attr_t attr;
23341
23342         status = pthread_attr_init(&attr);
23343         if( status ) return status;
23344
23345 #if HAVE_PTHREADS < 7
23346         status = pthread_attr_setdetachstate(&attr, &detach);
23347         if( status < 0 ) status = errno;
23348 #else
23349         status = pthread_attr_setdetachstate(&attr, detach);
23350 #endif
23351         if( status ) return status;
23352         status = pthread_create( &t, &attr, task, NULL );
23353 #if HAVE_PTHREADS < 7
23354         if( status < 0 ) status = errno;
23355 #endif
23356         if( status ) return status;
23357 #else
23358         /* Draft 4 pthreads */
23359         status = pthread_create( &t, pthread_attr_default, task, NULL );
23360         if( status ) return errno;
23361
23362         /* give thread a chance to complete */
23363         /* it should remain joinable and hence detachable */
23364         sleep( 1 );
23365
23366         status = pthread_detach( &t );
23367         if( status ) return errno;
23368 #endif
23369
23370 #ifdef HAVE_LINUX_THREADS
23371         pthread_kill_other_threads_np();
23372 #endif
23373
23374         return 0;
23375
23376   ;
23377   return 0;
23378 }
23379 _ACEOF
23380 rm -f conftest.$ac_objext conftest$ac_exeext
23381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23382   (eval $ac_link) 2>conftest.er1
23383   ac_status=$?
23384   grep -v '^ *+' conftest.er1 >conftest.err
23385   rm -f conftest.er1
23386   cat conftest.err >&5
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); } &&
23389          { ac_try='test -z "$ac_c_werror_flag"
23390                          || test ! -s conftest.err'
23391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392   (eval $ac_try) 2>&5
23393   ac_status=$?
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); }; } &&
23396          { ac_try='test -s conftest$ac_exeext'
23397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398   (eval $ac_try) 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); }; }; then
23402   ol_cv_pthread_lpthreads_lmach_lexc=yes
23403 else
23404   echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407 ol_cv_pthread_lpthreads_lmach_lexc=no
23408 fi
23409 rm -f conftest.err conftest.$ac_objext \
23410       conftest$ac_exeext conftest.$ac_ext
23411 else
23412   cat >conftest.$ac_ext <<_ACEOF
23413 /* confdefs.h.  */
23414 _ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h.  */
23418
23419 /* pthread test headers */
23420 #include <pthread.h>
23421 #if HAVE_PTHREADS < 7
23422 #include <errno.h>
23423 #endif
23424 #ifndef NULL
23425 #define NULL (void*)0
23426 #endif
23427
23428 static void *task(p)
23429         void *p;
23430 {
23431         return (void *) (p == NULL);
23432 }
23433
23434
23435 int main(argc, argv)
23436         int argc;
23437         char **argv;
23438 {
23439
23440         /* pthread test function */
23441 #ifndef PTHREAD_CREATE_DETACHED
23442 #define PTHREAD_CREATE_DETACHED 1
23443 #endif
23444         pthread_t t;
23445         int status;
23446         int detach = PTHREAD_CREATE_DETACHED;
23447
23448 #if HAVE_PTHREADS > 4
23449         /* Final pthreads */
23450         pthread_attr_t attr;
23451
23452         status = pthread_attr_init(&attr);
23453         if( status ) return status;
23454
23455 #if HAVE_PTHREADS < 7
23456         status = pthread_attr_setdetachstate(&attr, &detach);
23457         if( status < 0 ) status = errno;
23458 #else
23459         status = pthread_attr_setdetachstate(&attr, detach);
23460 #endif
23461         if( status ) return status;
23462         status = pthread_create( &t, &attr, task, NULL );
23463 #if HAVE_PTHREADS < 7
23464         if( status < 0 ) status = errno;
23465 #endif
23466         if( status ) return status;
23467 #else
23468         /* Draft 4 pthreads */
23469         status = pthread_create( &t, pthread_attr_default, task, NULL );
23470         if( status ) return errno;
23471
23472         /* give thread a chance to complete */
23473         /* it should remain joinable and hence detachable */
23474         sleep( 1 );
23475
23476         status = pthread_detach( &t );
23477         if( status ) return errno;
23478 #endif
23479
23480 #ifdef HAVE_LINUX_THREADS
23481         pthread_kill_other_threads_np();
23482 #endif
23483
23484         return 0;
23485
23486 }
23487
23488 _ACEOF
23489 rm -f conftest$ac_exeext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23491   (eval $ac_link) 2>&5
23492   ac_status=$?
23493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496   (eval $ac_try) 2>&5
23497   ac_status=$?
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); }; }; then
23500   ol_cv_pthread_lpthreads_lmach_lexc=yes
23501 else
23502   echo "$as_me: program exited with status $ac_status" >&5
23503 echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506 ( exit $ac_status )
23507 ol_cv_pthread_lpthreads_lmach_lexc=no
23508 fi
23509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23510 fi
23511
23512                 # restore the LIBS
23513                 LIBS="$ol_LIBS"
23514
23515 fi
23516 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23517 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23518
23519         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23520                 ol_link_pthreads="-lpthreads -lmach -lexc"
23521                 ol_link_threads=posix
23522         fi
23523 fi
23524
23525                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23526 if test "$ol_link_threads" = no ; then
23527         # try -lpthreads -lexc
23528         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23529 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23530 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23531   echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533
23534                 # save the flags
23535                 ol_LIBS="$LIBS"
23536                 LIBS="-lpthreads -lexc $LIBS"
23537
23538                 if test "$cross_compiling" = yes; then
23539   cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h.  */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h.  */
23545
23546 /* pthread test headers */
23547 #include <pthread.h>
23548 #if HAVE_PTHREADS < 7
23549 #include <errno.h>
23550 #endif
23551 #ifndef NULL
23552 #define NULL (void*)0
23553 #endif
23554
23555 static void *task(p)
23556         void *p;
23557 {
23558         return (void *) (p == NULL);
23559 }
23560
23561 int
23562 main ()
23563 {
23564
23565         /* pthread test function */
23566 #ifndef PTHREAD_CREATE_DETACHED
23567 #define PTHREAD_CREATE_DETACHED 1
23568 #endif
23569         pthread_t t;
23570         int status;
23571         int detach = PTHREAD_CREATE_DETACHED;
23572
23573 #if HAVE_PTHREADS > 4
23574         /* Final pthreads */
23575         pthread_attr_t attr;
23576
23577         status = pthread_attr_init(&attr);
23578         if( status ) return status;
23579
23580 #if HAVE_PTHREADS < 7
23581         status = pthread_attr_setdetachstate(&attr, &detach);
23582         if( status < 0 ) status = errno;
23583 #else
23584         status = pthread_attr_setdetachstate(&attr, detach);
23585 #endif
23586         if( status ) return status;
23587         status = pthread_create( &t, &attr, task, NULL );
23588 #if HAVE_PTHREADS < 7
23589         if( status < 0 ) status = errno;
23590 #endif
23591         if( status ) return status;
23592 #else
23593         /* Draft 4 pthreads */
23594         status = pthread_create( &t, pthread_attr_default, task, NULL );
23595         if( status ) return errno;
23596
23597         /* give thread a chance to complete */
23598         /* it should remain joinable and hence detachable */
23599         sleep( 1 );
23600
23601         status = pthread_detach( &t );
23602         if( status ) return errno;
23603 #endif
23604
23605 #ifdef HAVE_LINUX_THREADS
23606         pthread_kill_other_threads_np();
23607 #endif
23608
23609         return 0;
23610
23611   ;
23612   return 0;
23613 }
23614 _ACEOF
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617   (eval $ac_link) 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } &&
23624          { ac_try='test -z "$ac_c_werror_flag"
23625                          || test ! -s conftest.err'
23626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); }; } &&
23631          { ac_try='test -s conftest$ac_exeext'
23632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); }; }; then
23637   ol_cv_pthread_lpthreads_lexc=yes
23638 else
23639   echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 ol_cv_pthread_lpthreads_lexc=no
23643 fi
23644 rm -f conftest.err conftest.$ac_objext \
23645       conftest$ac_exeext conftest.$ac_ext
23646 else
23647   cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653
23654 /* pthread test headers */
23655 #include <pthread.h>
23656 #if HAVE_PTHREADS < 7
23657 #include <errno.h>
23658 #endif
23659 #ifndef NULL
23660 #define NULL (void*)0
23661 #endif
23662
23663 static void *task(p)
23664         void *p;
23665 {
23666         return (void *) (p == NULL);
23667 }
23668
23669
23670 int main(argc, argv)
23671         int argc;
23672         char **argv;
23673 {
23674
23675         /* pthread test function */
23676 #ifndef PTHREAD_CREATE_DETACHED
23677 #define PTHREAD_CREATE_DETACHED 1
23678 #endif
23679         pthread_t t;
23680         int status;
23681         int detach = PTHREAD_CREATE_DETACHED;
23682
23683 #if HAVE_PTHREADS > 4
23684         /* Final pthreads */
23685         pthread_attr_t attr;
23686
23687         status = pthread_attr_init(&attr);
23688         if( status ) return status;
23689
23690 #if HAVE_PTHREADS < 7
23691         status = pthread_attr_setdetachstate(&attr, &detach);
23692         if( status < 0 ) status = errno;
23693 #else
23694         status = pthread_attr_setdetachstate(&attr, detach);
23695 #endif
23696         if( status ) return status;
23697         status = pthread_create( &t, &attr, task, NULL );
23698 #if HAVE_PTHREADS < 7
23699         if( status < 0 ) status = errno;
23700 #endif
23701         if( status ) return status;
23702 #else
23703         /* Draft 4 pthreads */
23704         status = pthread_create( &t, pthread_attr_default, task, NULL );
23705         if( status ) return errno;
23706
23707         /* give thread a chance to complete */
23708         /* it should remain joinable and hence detachable */
23709         sleep( 1 );
23710
23711         status = pthread_detach( &t );
23712         if( status ) return errno;
23713 #endif
23714
23715 #ifdef HAVE_LINUX_THREADS
23716         pthread_kill_other_threads_np();
23717 #endif
23718
23719         return 0;
23720
23721 }
23722
23723 _ACEOF
23724 rm -f conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726   (eval $ac_link) 2>&5
23727   ac_status=$?
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731   (eval $ac_try) 2>&5
23732   ac_status=$?
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); }; }; then
23735   ol_cv_pthread_lpthreads_lexc=yes
23736 else
23737   echo "$as_me: program exited with status $ac_status" >&5
23738 echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741 ( exit $ac_status )
23742 ol_cv_pthread_lpthreads_lexc=no
23743 fi
23744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23745 fi
23746
23747                 # restore the LIBS
23748                 LIBS="$ol_LIBS"
23749
23750 fi
23751 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23752 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23753
23754         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23755                 ol_link_pthreads="-lpthreads -lexc"
23756                 ol_link_threads=posix
23757         fi
23758 fi
23759
23760
23761                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23762 if test "$ol_link_threads" = no ; then
23763         # try -lpthreads
23764         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23765 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23766 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23767   echo $ECHO_N "(cached) $ECHO_C" >&6
23768 else
23769
23770                 # save the flags
23771                 ol_LIBS="$LIBS"
23772                 LIBS="-lpthreads $LIBS"
23773
23774                 if test "$cross_compiling" = yes; then
23775   cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h.  */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h.  */
23781
23782 /* pthread test headers */
23783 #include <pthread.h>
23784 #if HAVE_PTHREADS < 7
23785 #include <errno.h>
23786 #endif
23787 #ifndef NULL
23788 #define NULL (void*)0
23789 #endif
23790
23791 static void *task(p)
23792         void *p;
23793 {
23794         return (void *) (p == NULL);
23795 }
23796
23797 int
23798 main ()
23799 {
23800
23801         /* pthread test function */
23802 #ifndef PTHREAD_CREATE_DETACHED
23803 #define PTHREAD_CREATE_DETACHED 1
23804 #endif
23805         pthread_t t;
23806         int status;
23807         int detach = PTHREAD_CREATE_DETACHED;
23808
23809 #if HAVE_PTHREADS > 4
23810         /* Final pthreads */
23811         pthread_attr_t attr;
23812
23813         status = pthread_attr_init(&attr);
23814         if( status ) return status;
23815
23816 #if HAVE_PTHREADS < 7
23817         status = pthread_attr_setdetachstate(&attr, &detach);
23818         if( status < 0 ) status = errno;
23819 #else
23820         status = pthread_attr_setdetachstate(&attr, detach);
23821 #endif
23822         if( status ) return status;
23823         status = pthread_create( &t, &attr, task, NULL );
23824 #if HAVE_PTHREADS < 7
23825         if( status < 0 ) status = errno;
23826 #endif
23827         if( status ) return status;
23828 #else
23829         /* Draft 4 pthreads */
23830         status = pthread_create( &t, pthread_attr_default, task, NULL );
23831         if( status ) return errno;
23832
23833         /* give thread a chance to complete */
23834         /* it should remain joinable and hence detachable */
23835         sleep( 1 );
23836
23837         status = pthread_detach( &t );
23838         if( status ) return errno;
23839 #endif
23840
23841 #ifdef HAVE_LINUX_THREADS
23842         pthread_kill_other_threads_np();
23843 #endif
23844
23845         return 0;
23846
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23853   (eval $ac_link) 2>conftest.er1
23854   ac_status=$?
23855   grep -v '^ *+' conftest.er1 >conftest.err
23856   rm -f conftest.er1
23857   cat conftest.err >&5
23858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859   (exit $ac_status); } &&
23860          { ac_try='test -z "$ac_c_werror_flag"
23861                          || test ! -s conftest.err'
23862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863   (eval $ac_try) 2>&5
23864   ac_status=$?
23865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866   (exit $ac_status); }; } &&
23867          { ac_try='test -s conftest$ac_exeext'
23868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23869   (eval $ac_try) 2>&5
23870   ac_status=$?
23871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872   (exit $ac_status); }; }; then
23873   ol_cv_pthread_lib_lpthreads=yes
23874 else
23875   echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23877
23878 ol_cv_pthread_lib_lpthreads=no
23879 fi
23880 rm -f conftest.err conftest.$ac_objext \
23881       conftest$ac_exeext conftest.$ac_ext
23882 else
23883   cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889
23890 /* pthread test headers */
23891 #include <pthread.h>
23892 #if HAVE_PTHREADS < 7
23893 #include <errno.h>
23894 #endif
23895 #ifndef NULL
23896 #define NULL (void*)0
23897 #endif
23898
23899 static void *task(p)
23900         void *p;
23901 {
23902         return (void *) (p == NULL);
23903 }
23904
23905
23906 int main(argc, argv)
23907         int argc;
23908         char **argv;
23909 {
23910
23911         /* pthread test function */
23912 #ifndef PTHREAD_CREATE_DETACHED
23913 #define PTHREAD_CREATE_DETACHED 1
23914 #endif
23915         pthread_t t;
23916         int status;
23917         int detach = PTHREAD_CREATE_DETACHED;
23918
23919 #if HAVE_PTHREADS > 4
23920         /* Final pthreads */
23921         pthread_attr_t attr;
23922
23923         status = pthread_attr_init(&attr);
23924         if( status ) return status;
23925
23926 #if HAVE_PTHREADS < 7
23927         status = pthread_attr_setdetachstate(&attr, &detach);
23928         if( status < 0 ) status = errno;
23929 #else
23930         status = pthread_attr_setdetachstate(&attr, detach);
23931 #endif
23932         if( status ) return status;
23933         status = pthread_create( &t, &attr, task, NULL );
23934 #if HAVE_PTHREADS < 7
23935         if( status < 0 ) status = errno;
23936 #endif
23937         if( status ) return status;
23938 #else
23939         /* Draft 4 pthreads */
23940         status = pthread_create( &t, pthread_attr_default, task, NULL );
23941         if( status ) return errno;
23942
23943         /* give thread a chance to complete */
23944         /* it should remain joinable and hence detachable */
23945         sleep( 1 );
23946
23947         status = pthread_detach( &t );
23948         if( status ) return errno;
23949 #endif
23950
23951 #ifdef HAVE_LINUX_THREADS
23952         pthread_kill_other_threads_np();
23953 #endif
23954
23955         return 0;
23956
23957 }
23958
23959 _ACEOF
23960 rm -f conftest$ac_exeext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23962   (eval $ac_link) 2>&5
23963   ac_status=$?
23964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967   (eval $ac_try) 2>&5
23968   ac_status=$?
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); }; }; then
23971   ol_cv_pthread_lib_lpthreads=yes
23972 else
23973   echo "$as_me: program exited with status $ac_status" >&5
23974 echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23976
23977 ( exit $ac_status )
23978 ol_cv_pthread_lib_lpthreads=no
23979 fi
23980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23981 fi
23982
23983                 # restore the LIBS
23984                 LIBS="$ol_LIBS"
23985
23986 fi
23987 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23988 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23989
23990         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23991                 ol_link_pthreads="-lpthreads"
23992                 ol_link_threads=posix
23993         fi
23994 fi
23995
23996
23997                 if test $ol_link_threads != no ; then
23998                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23999
24000                                                 save_CPPFLAGS="$CPPFLAGS"
24001                         save_LIBS="$LIBS"
24002                         LIBS="$LTHREAD_LIBS $LIBS"
24003
24004
24005
24006
24007 for ac_func in sched_yield pthread_yield thr_yield
24008 do
24009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24010 echo "$as_me:$LINENO: checking for $ac_func" >&5
24011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24012 if eval "test \"\${$as_ac_var+set}\" = set"; then
24013   echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24015   cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24023 #define $ac_func innocuous_$ac_func
24024
24025 /* System header to define __stub macros and hopefully few prototypes,
24026     which can conflict with char $ac_func (); below.
24027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24028     <limits.h> exists even on freestanding compilers.  */
24029
24030 #ifdef __STDC__
24031 # include <limits.h>
24032 #else
24033 # include <assert.h>
24034 #endif
24035
24036 #undef $ac_func
24037
24038 /* Override any gcc2 internal prototype to avoid an error.  */
24039 #ifdef __cplusplus
24040 extern "C"
24041 {
24042 #endif
24043 /* We use char because int might match the return type of a gcc2
24044    builtin and then its argument prototype would still apply.  */
24045 char $ac_func ();
24046 /* The GNU C library defines this for functions which it implements
24047     to always fail with ENOSYS.  Some functions are actually named
24048     something starting with __ and the normal name is an alias.  */
24049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24050 choke me
24051 #else
24052 char (*f) () = $ac_func;
24053 #endif
24054 #ifdef __cplusplus
24055 }
24056 #endif
24057
24058 int
24059 main ()
24060 {
24061 return f != $ac_func;
24062   ;
24063   return 0;
24064 }
24065 _ACEOF
24066 rm -f conftest.$ac_objext conftest$ac_exeext
24067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24068   (eval $ac_link) 2>conftest.er1
24069   ac_status=$?
24070   grep -v '^ *+' conftest.er1 >conftest.err
24071   rm -f conftest.er1
24072   cat conftest.err >&5
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); } &&
24075          { ac_try='test -z "$ac_c_werror_flag"
24076                          || test ! -s conftest.err'
24077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24078   (eval $ac_try) 2>&5
24079   ac_status=$?
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); }; } &&
24082          { ac_try='test -s conftest$ac_exeext'
24083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084   (eval $ac_try) 2>&5
24085   ac_status=$?
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); }; }; then
24088   eval "$as_ac_var=yes"
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093 eval "$as_ac_var=no"
24094 fi
24095 rm -f conftest.err conftest.$ac_objext \
24096       conftest$ac_exeext conftest.$ac_ext
24097 fi
24098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24100 if test `eval echo '${'$as_ac_var'}'` = yes; then
24101   cat >>confdefs.h <<_ACEOF
24102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24103 _ACEOF
24104
24105 fi
24106 done
24107
24108
24109                         if test $ac_cv_func_sched_yield = no &&
24110                            test $ac_cv_func_pthread_yield = no &&
24111                            test $ac_cv_func_thr_yield = no ; then
24112                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24113 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24114 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24115   echo $ECHO_N "(cached) $ECHO_C" >&6
24116 else
24117   ac_check_lib_save_LIBS=$LIBS
24118 LIBS="-lrt  $LIBS"
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125
24126 /* Override any gcc2 internal prototype to avoid an error.  */
24127 #ifdef __cplusplus
24128 extern "C"
24129 #endif
24130 /* We use char because int might match the return type of a gcc2
24131    builtin and then its argument prototype would still apply.  */
24132 char sched_yield ();
24133 int
24134 main ()
24135 {
24136 sched_yield ();
24137   ;
24138   return 0;
24139 }
24140 _ACEOF
24141 rm -f conftest.$ac_objext conftest$ac_exeext
24142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24143   (eval $ac_link) 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } &&
24150          { ac_try='test -z "$ac_c_werror_flag"
24151                          || test ! -s conftest.err'
24152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153   (eval $ac_try) 2>&5
24154   ac_status=$?
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; } &&
24157          { ac_try='test -s conftest$ac_exeext'
24158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159   (eval $ac_try) 2>&5
24160   ac_status=$?
24161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162   (exit $ac_status); }; }; then
24163   ac_cv_lib_rt_sched_yield=yes
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168 ac_cv_lib_rt_sched_yield=no
24169 fi
24170 rm -f conftest.err conftest.$ac_objext \
24171       conftest$ac_exeext conftest.$ac_ext
24172 LIBS=$ac_check_lib_save_LIBS
24173 fi
24174 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24175 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24176 if test $ac_cv_lib_rt_sched_yield = yes; then
24177   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24178
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_SCHED_YIELD 1
24181 _ACEOF
24182
24183                                         ac_cv_func_sched_yield=yes
24184 else
24185   ac_cv_func_sched_yield=no
24186 fi
24187
24188                         fi
24189                         if test $ac_cv_func_sched_yield = no &&
24190                            test $ac_cv_func_pthread_yield = no &&
24191                            test "$ac_cv_func_thr_yield" = no ; then
24192                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24193 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24194                         fi
24195
24196
24197
24198 for ac_func in pthread_kill pthread_rwlock_destroy
24199 do
24200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24201 echo "$as_me:$LINENO: checking for $ac_func" >&5
24202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24203 if eval "test \"\${$as_ac_var+set}\" = set"; then
24204   echo $ECHO_N "(cached) $ECHO_C" >&6
24205 else
24206   cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24214 #define $ac_func innocuous_$ac_func
24215
24216 /* System header to define __stub macros and hopefully few prototypes,
24217     which can conflict with char $ac_func (); below.
24218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24219     <limits.h> exists even on freestanding compilers.  */
24220
24221 #ifdef __STDC__
24222 # include <limits.h>
24223 #else
24224 # include <assert.h>
24225 #endif
24226
24227 #undef $ac_func
24228
24229 /* Override any gcc2 internal prototype to avoid an error.  */
24230 #ifdef __cplusplus
24231 extern "C"
24232 {
24233 #endif
24234 /* We use char because int might match the return type of a gcc2
24235    builtin and then its argument prototype would still apply.  */
24236 char $ac_func ();
24237 /* The GNU C library defines this for functions which it implements
24238     to always fail with ENOSYS.  Some functions are actually named
24239     something starting with __ and the normal name is an alias.  */
24240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24241 choke me
24242 #else
24243 char (*f) () = $ac_func;
24244 #endif
24245 #ifdef __cplusplus
24246 }
24247 #endif
24248
24249 int
24250 main ()
24251 {
24252 return f != $ac_func;
24253   ;
24254   return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext conftest$ac_exeext
24258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24259   (eval $ac_link) 2>conftest.er1
24260   ac_status=$?
24261   grep -v '^ *+' conftest.er1 >conftest.err
24262   rm -f conftest.er1
24263   cat conftest.err >&5
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); } &&
24266          { ac_try='test -z "$ac_c_werror_flag"
24267                          || test ! -s conftest.err'
24268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269   (eval $ac_try) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); }; } &&
24273          { ac_try='test -s conftest$ac_exeext'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279   eval "$as_ac_var=yes"
24280 else
24281   echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24283
24284 eval "$as_ac_var=no"
24285 fi
24286 rm -f conftest.err conftest.$ac_objext \
24287       conftest$ac_exeext conftest.$ac_ext
24288 fi
24289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24291 if test `eval echo '${'$as_ac_var'}'` = yes; then
24292   cat >>confdefs.h <<_ACEOF
24293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24294 _ACEOF
24295
24296 fi
24297 done
24298
24299
24300                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24301 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24302 if test "${ol_cv_func_pthread_detach+set}" = set; then
24303   echo $ECHO_N "(cached) $ECHO_C" >&6
24304 else
24305
24306                                                                 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312
24313 #include <pthread.h>
24314 #ifndef NULL
24315 #define NULL (void*)0
24316 #endif
24317
24318 int
24319 main ()
24320 {
24321 pthread_detach(NULL);
24322   ;
24323   return 0;
24324 }
24325 _ACEOF
24326 rm -f conftest.$ac_objext conftest$ac_exeext
24327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24328   (eval $ac_link) 2>conftest.er1
24329   ac_status=$?
24330   grep -v '^ *+' conftest.er1 >conftest.err
24331   rm -f conftest.er1
24332   cat conftest.err >&5
24333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); } &&
24335          { ac_try='test -z "$ac_c_werror_flag"
24336                          || test ! -s conftest.err'
24337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24338   (eval $ac_try) 2>&5
24339   ac_status=$?
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); }; } &&
24342          { ac_try='test -s conftest$ac_exeext'
24343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344   (eval $ac_try) 2>&5
24345   ac_status=$?
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); }; }; then
24348   ol_cv_func_pthread_detach=yes
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353 ol_cv_func_pthread_detach=no
24354 fi
24355 rm -f conftest.err conftest.$ac_objext \
24356       conftest$ac_exeext conftest.$ac_ext
24357
24358 fi
24359 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24360 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24361
24362                         if test $ol_cv_func_pthread_detach = no ; then
24363                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24364 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24365    { (exit 1); exit 1; }; }
24366                         fi
24367
24368
24369 cat >>confdefs.h <<\_ACEOF
24370 #define HAVE_PTHREAD_DETACH 1
24371 _ACEOF
24372
24373
24374
24375
24376
24377
24378 for ac_func in \
24379                                 pthread_setconcurrency \
24380                                 pthread_getconcurrency \
24381                                 thr_setconcurrency \
24382                                 thr_getconcurrency \
24383
24384 do
24385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24386 echo "$as_me:$LINENO: checking for $ac_func" >&5
24387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24388 if eval "test \"\${$as_ac_var+set}\" = set"; then
24389   echo $ECHO_N "(cached) $ECHO_C" >&6
24390 else
24391   cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h.  */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h.  */
24397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24399 #define $ac_func innocuous_$ac_func
24400
24401 /* System header to define __stub macros and hopefully few prototypes,
24402     which can conflict with char $ac_func (); below.
24403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24404     <limits.h> exists even on freestanding compilers.  */
24405
24406 #ifdef __STDC__
24407 # include <limits.h>
24408 #else
24409 # include <assert.h>
24410 #endif
24411
24412 #undef $ac_func
24413
24414 /* Override any gcc2 internal prototype to avoid an error.  */
24415 #ifdef __cplusplus
24416 extern "C"
24417 {
24418 #endif
24419 /* We use char because int might match the return type of a gcc2
24420    builtin and then its argument prototype would still apply.  */
24421 char $ac_func ();
24422 /* The GNU C library defines this for functions which it implements
24423     to always fail with ENOSYS.  Some functions are actually named
24424     something starting with __ and the normal name is an alias.  */
24425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24426 choke me
24427 #else
24428 char (*f) () = $ac_func;
24429 #endif
24430 #ifdef __cplusplus
24431 }
24432 #endif
24433
24434 int
24435 main ()
24436 {
24437 return f != $ac_func;
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24444   (eval $ac_link) 2>conftest.er1
24445   ac_status=$?
24446   grep -v '^ *+' conftest.er1 >conftest.err
24447   rm -f conftest.er1
24448   cat conftest.err >&5
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); } &&
24451          { ac_try='test -z "$ac_c_werror_flag"
24452                          || test ! -s conftest.err'
24453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24454   (eval $ac_try) 2>&5
24455   ac_status=$?
24456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457   (exit $ac_status); }; } &&
24458          { ac_try='test -s conftest$ac_exeext'
24459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460   (eval $ac_try) 2>&5
24461   ac_status=$?
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); }; }; then
24464   eval "$as_ac_var=yes"
24465 else
24466   echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24468
24469 eval "$as_ac_var=no"
24470 fi
24471 rm -f conftest.err conftest.$ac_objext \
24472       conftest$ac_exeext conftest.$ac_ext
24473 fi
24474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24476 if test `eval echo '${'$as_ac_var'}'` = yes; then
24477   cat >>confdefs.h <<_ACEOF
24478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24479 _ACEOF
24480
24481 fi
24482 done
24483
24484
24485
24486
24487 for ac_func in pthread_kill_other_threads_np
24488 do
24489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24490 echo "$as_me:$LINENO: checking for $ac_func" >&5
24491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24492 if eval "test \"\${$as_ac_var+set}\" = set"; then
24493   echo $ECHO_N "(cached) $ECHO_C" >&6
24494 else
24495   cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24503 #define $ac_func innocuous_$ac_func
24504
24505 /* System header to define __stub macros and hopefully few prototypes,
24506     which can conflict with char $ac_func (); below.
24507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24508     <limits.h> exists even on freestanding compilers.  */
24509
24510 #ifdef __STDC__
24511 # include <limits.h>
24512 #else
24513 # include <assert.h>
24514 #endif
24515
24516 #undef $ac_func
24517
24518 /* Override any gcc2 internal prototype to avoid an error.  */
24519 #ifdef __cplusplus
24520 extern "C"
24521 {
24522 #endif
24523 /* We use char because int might match the return type of a gcc2
24524    builtin and then its argument prototype would still apply.  */
24525 char $ac_func ();
24526 /* The GNU C library defines this for functions which it implements
24527     to always fail with ENOSYS.  Some functions are actually named
24528     something starting with __ and the normal name is an alias.  */
24529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24530 choke me
24531 #else
24532 char (*f) () = $ac_func;
24533 #endif
24534 #ifdef __cplusplus
24535 }
24536 #endif
24537
24538 int
24539 main ()
24540 {
24541 return f != $ac_func;
24542   ;
24543   return 0;
24544 }
24545 _ACEOF
24546 rm -f conftest.$ac_objext conftest$ac_exeext
24547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24548   (eval $ac_link) 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } &&
24555          { ac_try='test -z "$ac_c_werror_flag"
24556                          || test ! -s conftest.err'
24557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24558   (eval $ac_try) 2>&5
24559   ac_status=$?
24560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); }; } &&
24562          { ac_try='test -s conftest$ac_exeext'
24563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564   (eval $ac_try) 2>&5
24565   ac_status=$?
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); }; }; then
24568   eval "$as_ac_var=yes"
24569 else
24570   echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 eval "$as_ac_var=no"
24574 fi
24575 rm -f conftest.err conftest.$ac_objext \
24576       conftest$ac_exeext conftest.$ac_ext
24577 fi
24578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24580 if test `eval echo '${'$as_ac_var'}'` = yes; then
24581   cat >>confdefs.h <<_ACEOF
24582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24583 _ACEOF
24584
24585 fi
24586 done
24587
24588         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24589 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24590 if test "${ol_cv_sys_linux_threads+set}" = set; then
24591   echo $ECHO_N "(cached) $ECHO_C" >&6
24592 else
24593   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24594 fi
24595 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24596 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24597
24598
24599
24600
24601         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24602 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24603 if test "${ol_cv_linux_threads+set}" = set; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606
24607                 if test $ol_cv_header_linux_threads = yes &&
24608                    test $ol_cv_sys_linux_threads = yes; then
24609                         ol_cv_linux_threads=yes
24610                 elif test $ol_cv_header_linux_threads = no &&
24611                      test $ol_cv_sys_linux_threads = no; then
24612                         ol_cv_linux_threads=no
24613                 else
24614                         ol_cv_linux_threads=error
24615                 fi
24616
24617 fi
24618 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24619 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24620
24621
24622                         if test $ol_cv_linux_threads = error; then
24623                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24624 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24625    { (exit 1); exit 1; }; };
24626                         fi
24627
24628                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24629 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24630 if test "${ol_cv_pthread_create_works+set}" = set; then
24631   echo $ECHO_N "(cached) $ECHO_C" >&6
24632 else
24633
24634                         if test "$cross_compiling" = yes; then
24635                                 ol_cv_pthread_create_works=yes
24636 else
24637   cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643
24644 /* pthread test headers */
24645 #include <pthread.h>
24646 #if HAVE_PTHREADS < 7
24647 #include <errno.h>
24648 #endif
24649 #ifndef NULL
24650 #define NULL (void*)0
24651 #endif
24652
24653 static void *task(p)
24654         void *p;
24655 {
24656         return (void *) (p == NULL);
24657 }
24658
24659
24660 int main(argc, argv)
24661         int argc;
24662         char **argv;
24663 {
24664
24665         /* pthread test function */
24666 #ifndef PTHREAD_CREATE_DETACHED
24667 #define PTHREAD_CREATE_DETACHED 1
24668 #endif
24669         pthread_t t;
24670         int status;
24671         int detach = PTHREAD_CREATE_DETACHED;
24672
24673 #if HAVE_PTHREADS > 4
24674         /* Final pthreads */
24675         pthread_attr_t attr;
24676
24677         status = pthread_attr_init(&attr);
24678         if( status ) return status;
24679
24680 #if HAVE_PTHREADS < 7
24681         status = pthread_attr_setdetachstate(&attr, &detach);
24682         if( status < 0 ) status = errno;
24683 #else
24684         status = pthread_attr_setdetachstate(&attr, detach);
24685 #endif
24686         if( status ) return status;
24687         status = pthread_create( &t, &attr, task, NULL );
24688 #if HAVE_PTHREADS < 7
24689         if( status < 0 ) status = errno;
24690 #endif
24691         if( status ) return status;
24692 #else
24693         /* Draft 4 pthreads */
24694         status = pthread_create( &t, pthread_attr_default, task, NULL );
24695         if( status ) return errno;
24696
24697         /* give thread a chance to complete */
24698         /* it should remain joinable and hence detachable */
24699         sleep( 1 );
24700
24701         status = pthread_detach( &t );
24702         if( status ) return errno;
24703 #endif
24704
24705 #ifdef HAVE_LINUX_THREADS
24706         pthread_kill_other_threads_np();
24707 #endif
24708
24709         return 0;
24710
24711 }
24712
24713 _ACEOF
24714 rm -f conftest$ac_exeext
24715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716   (eval $ac_link) 2>&5
24717   ac_status=$?
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721   (eval $ac_try) 2>&5
24722   ac_status=$?
24723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724   (exit $ac_status); }; }; then
24725   ol_cv_pthread_create_works=yes
24726 else
24727   echo "$as_me: program exited with status $ac_status" >&5
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731 ( exit $ac_status )
24732 ol_cv_pthread_create_works=no
24733 fi
24734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24735 fi
24736 fi
24737 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24738 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24739
24740                         if test $ol_cv_pthread_create_works = no ; then
24741                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24742 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24743    { (exit 1); exit 1; }; }
24744                         fi
24745
24746                                                 if test $ol_with_yielding_select = auto ; then
24747                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24748 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24749 if test "${ol_cv_pthread_select_yields+set}" = set; then
24750   echo $ECHO_N "(cached) $ECHO_C" >&6
24751 else
24752
24753                                 if test "$cross_compiling" = yes; then
24754   ol_cv_pthread_select_yields=cross
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762
24763 #include <sys/types.h>
24764 #include <sys/time.h>
24765 #include <unistd.h>
24766 #include <pthread.h>
24767 #ifndef NULL
24768 #define NULL (void*) 0
24769 #endif
24770
24771 static int fildes[2];
24772
24773 static void *task(p)
24774         void *p;
24775 {
24776         int i;
24777         struct timeval tv;
24778
24779         fd_set rfds;
24780
24781         tv.tv_sec=10;
24782         tv.tv_usec=0;
24783
24784         FD_ZERO(&rfds);
24785         FD_SET(fildes[0], &rfds);
24786
24787         /* we're not interested in any fds */
24788         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24789
24790         if(i < 0) {
24791                 perror("select");
24792                 exit(10);
24793         }
24794
24795         exit(0); /* if we exit here, the select blocked the whole process */
24796 }
24797
24798 int main(argc, argv)
24799         int argc;
24800         char **argv;
24801 {
24802         pthread_t t;
24803
24804         /* create a pipe to select */
24805         if(pipe(&fildes[0])) {
24806                 perror("select");
24807                 exit(1);
24808         }
24809
24810 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24811         (void) pthread_setconcurrency(2);
24812 #else
24813 #ifdef HAVE_THR_SETCONCURRENCY
24814         /* Set Solaris LWP concurrency to 2 */
24815         thr_setconcurrency(2);
24816 #endif
24817 #endif
24818
24819 #if HAVE_PTHREADS < 6
24820         pthread_create(&t, pthread_attr_default, task, NULL);
24821 #else
24822         pthread_create(&t, NULL, task, NULL);
24823 #endif
24824
24825         /* make sure task runs first */
24826 #if HAVE_THR_YIELD
24827         thr_yield();
24828 #elif defined( HAVE_SCHED_YIELD )
24829         sched_yield();
24830 #elif defined( HAVE_PTHREAD_YIELD )
24831         pthread_yield();
24832 #endif
24833
24834         exit(2);
24835 }
24836 _ACEOF
24837 rm -f conftest$ac_exeext
24838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24839   (eval $ac_link) 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844   (eval $ac_try) 2>&5
24845   ac_status=$?
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); }; }; then
24848   ol_cv_pthread_select_yields=no
24849 else
24850   echo "$as_me: program exited with status $ac_status" >&5
24851 echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 ( exit $ac_status )
24855 ol_cv_pthread_select_yields=yes
24856 fi
24857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24858 fi
24859 fi
24860 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24861 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24862
24863                                 if test $ol_cv_pthread_select_yields = cross ; then
24864                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24865 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24866    { (exit 1); exit 1; }; }
24867                                 fi
24868
24869                                 if test $ol_cv_pthread_select_yields = yes ; then
24870                                         ol_with_yielding_select=yes
24871                                 fi
24872                         fi
24873
24874                                                 CPPFLAGS="$save_CPPFLAGS"
24875                         LIBS="$save_LIBS"
24876                 else
24877                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24878 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24879    { (exit 1); exit 1; }; }
24880                 fi
24881         fi
24882
24883         if test $ol_with_threads = posix ; then
24884                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24885 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24886    { (exit 1); exit 1; }; }
24887         fi
24888         ;;
24889 esac
24890
24891 case $ol_with_threads in auto | yes | mach)
24892
24893
24894
24895 for ac_header in mach/cthreads.h cthreads.h
24896 do
24897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24899   echo "$as_me:$LINENO: checking for $ac_header" >&5
24900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24902   echo $ECHO_N "(cached) $ECHO_C" >&6
24903 fi
24904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24906 else
24907   # Is the header compilable?
24908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h.  */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h.  */
24916 $ac_includes_default
24917 #include <$ac_header>
24918 _ACEOF
24919 rm -f conftest.$ac_objext
24920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24921   (eval $ac_compile) 2>conftest.er1
24922   ac_status=$?
24923   grep -v '^ *+' conftest.er1 >conftest.err
24924   rm -f conftest.er1
24925   cat conftest.err >&5
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } &&
24928          { ac_try='test -z "$ac_c_werror_flag"
24929                          || test ! -s conftest.err'
24930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931   (eval $ac_try) 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; } &&
24935          { ac_try='test -s conftest.$ac_objext'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; }; then
24941   ac_header_compiler=yes
24942 else
24943   echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946 ac_header_compiler=no
24947 fi
24948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24950 echo "${ECHO_T}$ac_header_compiler" >&6
24951
24952 # Is the header present?
24953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24955 cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h.  */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h.  */
24961 #include <$ac_header>
24962 _ACEOF
24963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24964   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } >/dev/null; then
24971   if test -s conftest.err; then
24972     ac_cpp_err=$ac_c_preproc_warn_flag
24973     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24974   else
24975     ac_cpp_err=
24976   fi
24977 else
24978   ac_cpp_err=yes
24979 fi
24980 if test -z "$ac_cpp_err"; then
24981   ac_header_preproc=yes
24982 else
24983   echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24985
24986   ac_header_preproc=no
24987 fi
24988 rm -f conftest.err conftest.$ac_ext
24989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24990 echo "${ECHO_T}$ac_header_preproc" >&6
24991
24992 # So?  What about this header?
24993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24994   yes:no: )
24995     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24999     ac_header_preproc=yes
25000     ;;
25001   no:yes:* )
25002     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25004     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25005 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25006     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25008     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25009 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25012     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25014     (
25015       cat <<\_ASBOX
25016 ## ------------------------------------------ ##
25017 ## Report this to the AC_PACKAGE_NAME lists.  ##
25018 ## ------------------------------------------ ##
25019 _ASBOX
25020     ) |
25021       sed "s/^/$as_me: WARNING:     /" >&2
25022     ;;
25023 esac
25024 echo "$as_me:$LINENO: checking for $ac_header" >&5
25025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25027   echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029   eval "$as_ac_Header=\$ac_header_preproc"
25030 fi
25031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25033
25034 fi
25035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25036   cat >>confdefs.h <<_ACEOF
25037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25038 _ACEOF
25039
25040 fi
25041
25042 done
25043
25044         if test $ac_cv_header_mach_cthreads_h = yes ; then
25045                 ol_with_threads=found
25046
25047                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25048 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25049 if test "${ac_cv_func_cthread_fork+set}" = set; then
25050   echo $ECHO_N "(cached) $ECHO_C" >&6
25051 else
25052   cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25060 #define cthread_fork innocuous_cthread_fork
25061
25062 /* System header to define __stub macros and hopefully few prototypes,
25063     which can conflict with char cthread_fork (); below.
25064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25065     <limits.h> exists even on freestanding compilers.  */
25066
25067 #ifdef __STDC__
25068 # include <limits.h>
25069 #else
25070 # include <assert.h>
25071 #endif
25072
25073 #undef cthread_fork
25074
25075 /* Override any gcc2 internal prototype to avoid an error.  */
25076 #ifdef __cplusplus
25077 extern "C"
25078 {
25079 #endif
25080 /* We use char because int might match the return type of a gcc2
25081    builtin and then its argument prototype would still apply.  */
25082 char cthread_fork ();
25083 /* The GNU C library defines this for functions which it implements
25084     to always fail with ENOSYS.  Some functions are actually named
25085     something starting with __ and the normal name is an alias.  */
25086 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25087 choke me
25088 #else
25089 char (*f) () = cthread_fork;
25090 #endif
25091 #ifdef __cplusplus
25092 }
25093 #endif
25094
25095 int
25096 main ()
25097 {
25098 return f != cthread_fork;
25099   ;
25100   return 0;
25101 }
25102 _ACEOF
25103 rm -f conftest.$ac_objext conftest$ac_exeext
25104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25105   (eval $ac_link) 2>conftest.er1
25106   ac_status=$?
25107   grep -v '^ *+' conftest.er1 >conftest.err
25108   rm -f conftest.er1
25109   cat conftest.err >&5
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); } &&
25112          { ac_try='test -z "$ac_c_werror_flag"
25113                          || test ! -s conftest.err'
25114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115   (eval $ac_try) 2>&5
25116   ac_status=$?
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); }; } &&
25119          { ac_try='test -s conftest$ac_exeext'
25120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121   (eval $ac_try) 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); }; }; then
25125   ac_cv_func_cthread_fork=yes
25126 else
25127   echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25129
25130 ac_cv_func_cthread_fork=no
25131 fi
25132 rm -f conftest.err conftest.$ac_objext \
25133       conftest$ac_exeext conftest.$ac_ext
25134 fi
25135 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25136 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25137 if test $ac_cv_func_cthread_fork = yes; then
25138   ol_link_threads=yes
25139 fi
25140
25141
25142                 if test $ol_link_threads = no ; then
25143                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25144 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25145 if test "${ol_cv_cthread_all_load+set}" = set; then
25146   echo $ECHO_N "(cached) $ECHO_C" >&6
25147 else
25148
25149                                                                 save_LIBS="$LIBS"
25150                                 LIBS="-all_load $LIBS"
25151                                 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h.  */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h.  */
25157 #include <mach/cthreads.h>
25158 int
25159 main ()
25160 {
25161
25162                                         cthread_fork((void *)0, (void *)0);
25163
25164   ;
25165   return 0;
25166 }
25167 _ACEOF
25168 rm -f conftest.$ac_objext conftest$ac_exeext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25170   (eval $ac_link) 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } &&
25177          { ac_try='test -z "$ac_c_werror_flag"
25178                          || test ! -s conftest.err'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; } &&
25184          { ac_try='test -s conftest$ac_exeext'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; }; then
25190   ol_cv_cthread_all_load=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195 ol_cv_cthread_all_load=no
25196 fi
25197 rm -f conftest.err conftest.$ac_objext \
25198       conftest$ac_exeext conftest.$ac_ext
25199                                                                 LIBS="$save_LIBS"
25200
25201 fi
25202 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25203 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25204
25205                         if test $ol_cv_cthread_all_load = yes ; then
25206                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25207                                 ol_link_threads=mach
25208                                 ol_with_threads=found
25209                         fi
25210                 fi
25211
25212         elif test $ac_cv_header_cthreads_h = yes ; then
25213
25214                 ol_with_threads=found
25215
25216                                 save_LIBS="$LIBS"
25217                 LIBS="$LIBS -lthreads"
25218                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25219 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25220 if test "${ac_cv_func_cthread_fork+set}" = set; then
25221   echo $ECHO_N "(cached) $ECHO_C" >&6
25222 else
25223   cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25231 #define cthread_fork innocuous_cthread_fork
25232
25233 /* System header to define __stub macros and hopefully few prototypes,
25234     which can conflict with char cthread_fork (); below.
25235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25236     <limits.h> exists even on freestanding compilers.  */
25237
25238 #ifdef __STDC__
25239 # include <limits.h>
25240 #else
25241 # include <assert.h>
25242 #endif
25243
25244 #undef cthread_fork
25245
25246 /* Override any gcc2 internal prototype to avoid an error.  */
25247 #ifdef __cplusplus
25248 extern "C"
25249 {
25250 #endif
25251 /* We use char because int might match the return type of a gcc2
25252    builtin and then its argument prototype would still apply.  */
25253 char cthread_fork ();
25254 /* The GNU C library defines this for functions which it implements
25255     to always fail with ENOSYS.  Some functions are actually named
25256     something starting with __ and the normal name is an alias.  */
25257 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25258 choke me
25259 #else
25260 char (*f) () = cthread_fork;
25261 #endif
25262 #ifdef __cplusplus
25263 }
25264 #endif
25265
25266 int
25267 main ()
25268 {
25269 return f != cthread_fork;
25270   ;
25271   return 0;
25272 }
25273 _ACEOF
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25276   (eval $ac_link) 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } &&
25283          { ac_try='test -z "$ac_c_werror_flag"
25284                          || test ! -s conftest.err'
25285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286   (eval $ac_try) 2>&5
25287   ac_status=$?
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; } &&
25290          { ac_try='test -s conftest$ac_exeext'
25291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292   (eval $ac_try) 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; }; then
25296   ac_cv_func_cthread_fork=yes
25297 else
25298   echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301 ac_cv_func_cthread_fork=no
25302 fi
25303 rm -f conftest.err conftest.$ac_objext \
25304       conftest$ac_exeext conftest.$ac_ext
25305 fi
25306 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25307 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25308 if test $ac_cv_func_cthread_fork = yes; then
25309   ol_link_threads=yes
25310 fi
25311
25312                 LIBS="$save_LIBS"
25313
25314                 if test $ol_link_threads = yes ; then
25315                         LTHREAD_LIBS="-lthreads"
25316                         ol_link_threads=mach
25317                         ol_with_threads=found
25318                 else
25319                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25320 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25321    { (exit 1); exit 1; }; }
25322                 fi
25323
25324         elif test $ol_with_threads = mach ; then
25325                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25326 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25327    { (exit 1); exit 1; }; }
25328         fi
25329
25330         if test $ol_link_threads = mach ; then
25331
25332 cat >>confdefs.h <<\_ACEOF
25333 #define HAVE_MACH_CTHREADS 1
25334 _ACEOF
25335
25336         elif test $ol_with_threads = found ; then
25337                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25338 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25339    { (exit 1); exit 1; }; }
25340         fi
25341         ;;
25342 esac
25343
25344 case $ol_with_threads in auto | yes | pth)
25345
25346
25347 for ac_header in pth.h
25348 do
25349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25351   echo "$as_me:$LINENO: checking for $ac_header" >&5
25352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25354   echo $ECHO_N "(cached) $ECHO_C" >&6
25355 fi
25356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25358 else
25359   # Is the header compilable?
25360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25362 cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 $ac_includes_default
25369 #include <$ac_header>
25370 _ACEOF
25371 rm -f conftest.$ac_objext
25372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25373   (eval $ac_compile) 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } &&
25380          { ac_try='test -z "$ac_c_werror_flag"
25381                          || test ! -s conftest.err'
25382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25383   (eval $ac_try) 2>&5
25384   ac_status=$?
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); }; } &&
25387          { ac_try='test -s conftest.$ac_objext'
25388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389   (eval $ac_try) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); }; }; then
25393   ac_header_compiler=yes
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398 ac_header_compiler=no
25399 fi
25400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25402 echo "${ECHO_T}$ac_header_compiler" >&6
25403
25404 # Is the header present?
25405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25407 cat >conftest.$ac_ext <<_ACEOF
25408 /* confdefs.h.  */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h.  */
25413 #include <$ac_header>
25414 _ACEOF
25415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25417   ac_status=$?
25418   grep -v '^ *+' conftest.er1 >conftest.err
25419   rm -f conftest.er1
25420   cat conftest.err >&5
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); } >/dev/null; then
25423   if test -s conftest.err; then
25424     ac_cpp_err=$ac_c_preproc_warn_flag
25425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25426   else
25427     ac_cpp_err=
25428   fi
25429 else
25430   ac_cpp_err=yes
25431 fi
25432 if test -z "$ac_cpp_err"; then
25433   ac_header_preproc=yes
25434 else
25435   echo "$as_me: failed program was:" >&5
25436 sed 's/^/| /' conftest.$ac_ext >&5
25437
25438   ac_header_preproc=no
25439 fi
25440 rm -f conftest.err conftest.$ac_ext
25441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25442 echo "${ECHO_T}$ac_header_preproc" >&6
25443
25444 # So?  What about this header?
25445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25446   yes:no: )
25447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25451     ac_header_preproc=yes
25452     ;;
25453   no:yes:* )
25454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25466     (
25467       cat <<\_ASBOX
25468 ## ------------------------------------------ ##
25469 ## Report this to the AC_PACKAGE_NAME lists.  ##
25470 ## ------------------------------------------ ##
25471 _ASBOX
25472     ) |
25473       sed "s/^/$as_me: WARNING:     /" >&2
25474     ;;
25475 esac
25476 echo "$as_me:$LINENO: checking for $ac_header" >&5
25477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25479   echo $ECHO_N "(cached) $ECHO_C" >&6
25480 else
25481   eval "$as_ac_Header=\$ac_header_preproc"
25482 fi
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25485
25486 fi
25487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25488   cat >>confdefs.h <<_ACEOF
25489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25490 _ACEOF
25491
25492 fi
25493
25494 done
25495
25496
25497         if test $ac_cv_header_pth_h = yes ; then
25498                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25499 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25500 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 else
25503   ac_check_lib_save_LIBS=$LIBS
25504 LIBS="-lpth  $LIBS"
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511
25512 /* Override any gcc2 internal prototype to avoid an error.  */
25513 #ifdef __cplusplus
25514 extern "C"
25515 #endif
25516 /* We use char because int might match the return type of a gcc2
25517    builtin and then its argument prototype would still apply.  */
25518 char pth_version ();
25519 int
25520 main ()
25521 {
25522 pth_version ();
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 rm -f conftest.$ac_objext conftest$ac_exeext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25529   (eval $ac_link) 2>conftest.er1
25530   ac_status=$?
25531   grep -v '^ *+' conftest.er1 >conftest.err
25532   rm -f conftest.er1
25533   cat conftest.err >&5
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); } &&
25536          { ac_try='test -z "$ac_c_werror_flag"
25537                          || test ! -s conftest.err'
25538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539   (eval $ac_try) 2>&5
25540   ac_status=$?
25541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542   (exit $ac_status); }; } &&
25543          { ac_try='test -s conftest$ac_exeext'
25544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545   (eval $ac_try) 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; }; then
25549   ac_cv_lib_pth_pth_version=yes
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554 ac_cv_lib_pth_pth_version=no
25555 fi
25556 rm -f conftest.err conftest.$ac_objext \
25557       conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25559 fi
25560 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25561 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25562 if test $ac_cv_lib_pth_pth_version = yes; then
25563   have_pth=yes
25564 else
25565   have_pth=no
25566 fi
25567
25568
25569                 if test $have_pth = yes ; then
25570
25571 cat >>confdefs.h <<\_ACEOF
25572 #define HAVE_GNU_PTH 1
25573 _ACEOF
25574
25575                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25576                         ol_link_threads=pth
25577                         ol_with_threads=found
25578
25579                         if test $ol_with_yielding_select = auto ; then
25580                                 ol_with_yielding_select=yes
25581                         fi
25582                 fi
25583         fi
25584         ;;
25585 esac
25586
25587 case $ol_with_threads in auto | yes | lwp)
25588
25589
25590
25591 for ac_header in thread.h synch.h
25592 do
25593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25595   echo "$as_me:$LINENO: checking for $ac_header" >&5
25596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25598   echo $ECHO_N "(cached) $ECHO_C" >&6
25599 fi
25600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25602 else
25603   # Is the header compilable?
25604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25606 cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 $ac_includes_default
25613 #include <$ac_header>
25614 _ACEOF
25615 rm -f conftest.$ac_objext
25616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25617   (eval $ac_compile) 2>conftest.er1
25618   ac_status=$?
25619   grep -v '^ *+' conftest.er1 >conftest.err
25620   rm -f conftest.er1
25621   cat conftest.err >&5
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); } &&
25624          { ac_try='test -z "$ac_c_werror_flag"
25625                          || test ! -s conftest.err'
25626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25627   (eval $ac_try) 2>&5
25628   ac_status=$?
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); }; } &&
25631          { ac_try='test -s conftest.$ac_objext'
25632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633   (eval $ac_try) 2>&5
25634   ac_status=$?
25635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636   (exit $ac_status); }; }; then
25637   ac_header_compiler=yes
25638 else
25639   echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642 ac_header_compiler=no
25643 fi
25644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25646 echo "${ECHO_T}$ac_header_compiler" >&6
25647
25648 # Is the header present?
25649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25651 cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657 #include <$ac_header>
25658 _ACEOF
25659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } >/dev/null; then
25667   if test -s conftest.err; then
25668     ac_cpp_err=$ac_c_preproc_warn_flag
25669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25670   else
25671     ac_cpp_err=
25672   fi
25673 else
25674   ac_cpp_err=yes
25675 fi
25676 if test -z "$ac_cpp_err"; then
25677   ac_header_preproc=yes
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682   ac_header_preproc=no
25683 fi
25684 rm -f conftest.err conftest.$ac_ext
25685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25686 echo "${ECHO_T}$ac_header_preproc" >&6
25687
25688 # So?  What about this header?
25689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25690   yes:no: )
25691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25695     ac_header_preproc=yes
25696     ;;
25697   no:yes:* )
25698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25710     (
25711       cat <<\_ASBOX
25712 ## ------------------------------------------ ##
25713 ## Report this to the AC_PACKAGE_NAME lists.  ##
25714 ## ------------------------------------------ ##
25715 _ASBOX
25716     ) |
25717       sed "s/^/$as_me: WARNING:     /" >&2
25718     ;;
25719 esac
25720 echo "$as_me:$LINENO: checking for $ac_header" >&5
25721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25723   echo $ECHO_N "(cached) $ECHO_C" >&6
25724 else
25725   eval "$as_ac_Header=\$ac_header_preproc"
25726 fi
25727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25729
25730 fi
25731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25732   cat >>confdefs.h <<_ACEOF
25733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25734 _ACEOF
25735
25736 fi
25737
25738 done
25739
25740         if test $ac_cv_header_thread_h = yes &&
25741            test $ac_cv_header_synch_h = yes ; then
25742                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25743 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25744 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25745   echo $ECHO_N "(cached) $ECHO_C" >&6
25746 else
25747   ac_check_lib_save_LIBS=$LIBS
25748 LIBS="-lthread  $LIBS"
25749 cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755
25756 /* Override any gcc2 internal prototype to avoid an error.  */
25757 #ifdef __cplusplus
25758 extern "C"
25759 #endif
25760 /* We use char because int might match the return type of a gcc2
25761    builtin and then its argument prototype would still apply.  */
25762 char thr_create ();
25763 int
25764 main ()
25765 {
25766 thr_create ();
25767   ;
25768   return 0;
25769 }
25770 _ACEOF
25771 rm -f conftest.$ac_objext conftest$ac_exeext
25772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773   (eval $ac_link) 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } &&
25780          { ac_try='test -z "$ac_c_werror_flag"
25781                          || test ! -s conftest.err'
25782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783   (eval $ac_try) 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; } &&
25787          { ac_try='test -s conftest$ac_exeext'
25788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792   (exit $ac_status); }; }; then
25793   ac_cv_lib_thread_thr_create=yes
25794 else
25795   echo "$as_me: failed program was:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25797
25798 ac_cv_lib_thread_thr_create=no
25799 fi
25800 rm -f conftest.err conftest.$ac_objext \
25801       conftest$ac_exeext conftest.$ac_ext
25802 LIBS=$ac_check_lib_save_LIBS
25803 fi
25804 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25805 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25806 if test $ac_cv_lib_thread_thr_create = yes; then
25807   have_thr=yes
25808 else
25809   have_thr=no
25810 fi
25811
25812
25813                 if test $have_thr = yes ; then
25814
25815 cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_THR 1
25817 _ACEOF
25818
25819                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25820                         ol_link_threads=thr
25821
25822                         if test $ol_with_yielding_select = auto ; then
25823                                 ol_with_yielding_select=yes
25824                         fi
25825
25826
25827
25828 for ac_func in \
25829                                 thr_setconcurrency \
25830                                 thr_getconcurrency \
25831
25832 do
25833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25834 echo "$as_me:$LINENO: checking for $ac_func" >&5
25835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25836 if eval "test \"\${$as_ac_var+set}\" = set"; then
25837   echo $ECHO_N "(cached) $ECHO_C" >&6
25838 else
25839   cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25847 #define $ac_func innocuous_$ac_func
25848
25849 /* System header to define __stub macros and hopefully few prototypes,
25850     which can conflict with char $ac_func (); below.
25851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25852     <limits.h> exists even on freestanding compilers.  */
25853
25854 #ifdef __STDC__
25855 # include <limits.h>
25856 #else
25857 # include <assert.h>
25858 #endif
25859
25860 #undef $ac_func
25861
25862 /* Override any gcc2 internal prototype to avoid an error.  */
25863 #ifdef __cplusplus
25864 extern "C"
25865 {
25866 #endif
25867 /* We use char because int might match the return type of a gcc2
25868    builtin and then its argument prototype would still apply.  */
25869 char $ac_func ();
25870 /* The GNU C library defines this for functions which it implements
25871     to always fail with ENOSYS.  Some functions are actually named
25872     something starting with __ and the normal name is an alias.  */
25873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25874 choke me
25875 #else
25876 char (*f) () = $ac_func;
25877 #endif
25878 #ifdef __cplusplus
25879 }
25880 #endif
25881
25882 int
25883 main ()
25884 {
25885 return f != $ac_func;
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext conftest$ac_exeext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25892   (eval $ac_link) 2>conftest.er1
25893   ac_status=$?
25894   grep -v '^ *+' conftest.er1 >conftest.err
25895   rm -f conftest.er1
25896   cat conftest.err >&5
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); } &&
25899          { ac_try='test -z "$ac_c_werror_flag"
25900                          || test ! -s conftest.err'
25901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902   (eval $ac_try) 2>&5
25903   ac_status=$?
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); }; } &&
25906          { ac_try='test -s conftest$ac_exeext'
25907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908   (eval $ac_try) 2>&5
25909   ac_status=$?
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); }; }; then
25912   eval "$as_ac_var=yes"
25913 else
25914   echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25916
25917 eval "$as_ac_var=no"
25918 fi
25919 rm -f conftest.err conftest.$ac_objext \
25920       conftest$ac_exeext conftest.$ac_ext
25921 fi
25922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25924 if test `eval echo '${'$as_ac_var'}'` = yes; then
25925   cat >>confdefs.h <<_ACEOF
25926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25927 _ACEOF
25928
25929 fi
25930 done
25931
25932                 fi
25933         fi
25934
25935
25936 for ac_header in lwp/lwp.h
25937 do
25938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25940   echo "$as_me:$LINENO: checking for $ac_header" >&5
25941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25943   echo $ECHO_N "(cached) $ECHO_C" >&6
25944 fi
25945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25947 else
25948   # Is the header compilable?
25949 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25951 cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h.  */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h.  */
25957 $ac_includes_default
25958 #include <$ac_header>
25959 _ACEOF
25960 rm -f conftest.$ac_objext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25962   (eval $ac_compile) 2>conftest.er1
25963   ac_status=$?
25964   grep -v '^ *+' conftest.er1 >conftest.err
25965   rm -f conftest.er1
25966   cat conftest.err >&5
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); } &&
25969          { ac_try='test -z "$ac_c_werror_flag"
25970                          || test ! -s conftest.err'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; } &&
25976          { ac_try='test -s conftest.$ac_objext'
25977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978   (eval $ac_try) 2>&5
25979   ac_status=$?
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); }; }; then
25982   ac_header_compiler=yes
25983 else
25984   echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25986
25987 ac_header_compiler=no
25988 fi
25989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25991 echo "${ECHO_T}$ac_header_compiler" >&6
25992
25993 # Is the header present?
25994 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25996 cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002 #include <$ac_header>
26003 _ACEOF
26004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26005   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } >/dev/null; then
26012   if test -s conftest.err; then
26013     ac_cpp_err=$ac_c_preproc_warn_flag
26014     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26015   else
26016     ac_cpp_err=
26017   fi
26018 else
26019   ac_cpp_err=yes
26020 fi
26021 if test -z "$ac_cpp_err"; then
26022   ac_header_preproc=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027   ac_header_preproc=no
26028 fi
26029 rm -f conftest.err conftest.$ac_ext
26030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26031 echo "${ECHO_T}$ac_header_preproc" >&6
26032
26033 # So?  What about this header?
26034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26035   yes:no: )
26036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26040     ac_header_preproc=yes
26041     ;;
26042   no:yes:* )
26043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26055     (
26056       cat <<\_ASBOX
26057 ## ------------------------------------------ ##
26058 ## Report this to the AC_PACKAGE_NAME lists.  ##
26059 ## ------------------------------------------ ##
26060 _ASBOX
26061     ) |
26062       sed "s/^/$as_me: WARNING:     /" >&2
26063     ;;
26064 esac
26065 echo "$as_me:$LINENO: checking for $ac_header" >&5
26066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26068   echo $ECHO_N "(cached) $ECHO_C" >&6
26069 else
26070   eval "$as_ac_Header=\$ac_header_preproc"
26071 fi
26072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26074
26075 fi
26076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26079 _ACEOF
26080
26081 fi
26082
26083 done
26084
26085         if test $ac_cv_header_lwp_lwp_h = yes ; then
26086                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26087 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26088 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26089   echo $ECHO_N "(cached) $ECHO_C" >&6
26090 else
26091   ac_check_lib_save_LIBS=$LIBS
26092 LIBS="-llwp  $LIBS"
26093 cat >conftest.$ac_ext <<_ACEOF
26094 /* confdefs.h.  */
26095 _ACEOF
26096 cat confdefs.h >>conftest.$ac_ext
26097 cat >>conftest.$ac_ext <<_ACEOF
26098 /* end confdefs.h.  */
26099
26100 /* Override any gcc2 internal prototype to avoid an error.  */
26101 #ifdef __cplusplus
26102 extern "C"
26103 #endif
26104 /* We use char because int might match the return type of a gcc2
26105    builtin and then its argument prototype would still apply.  */
26106 char lwp_create ();
26107 int
26108 main ()
26109 {
26110 lwp_create ();
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 rm -f conftest.$ac_objext conftest$ac_exeext
26116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26117   (eval $ac_link) 2>conftest.er1
26118   ac_status=$?
26119   grep -v '^ *+' conftest.er1 >conftest.err
26120   rm -f conftest.er1
26121   cat conftest.err >&5
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); } &&
26124          { ac_try='test -z "$ac_c_werror_flag"
26125                          || test ! -s conftest.err'
26126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127   (eval $ac_try) 2>&5
26128   ac_status=$?
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); }; } &&
26131          { ac_try='test -s conftest$ac_exeext'
26132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133   (eval $ac_try) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); }; }; then
26137   ac_cv_lib_lwp_lwp_create=yes
26138 else
26139   echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26141
26142 ac_cv_lib_lwp_lwp_create=no
26143 fi
26144 rm -f conftest.err conftest.$ac_objext \
26145       conftest$ac_exeext conftest.$ac_ext
26146 LIBS=$ac_check_lib_save_LIBS
26147 fi
26148 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26149 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26150 if test $ac_cv_lib_lwp_lwp_create = yes; then
26151   have_lwp=yes
26152 else
26153   have_lwp=no
26154 fi
26155
26156
26157                 if test $have_lwp = yes ; then
26158
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_LWP 1
26161 _ACEOF
26162
26163                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26164                         ol_link_threads=lwp
26165
26166                         if test $ol_with_yielding_select = auto ; then
26167                                 ol_with_yielding_select=no
26168                         fi
26169                 fi
26170         fi
26171         ;;
26172 esac
26173
26174 if test $ol_with_yielding_select = yes ; then
26175
26176 cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_YIELDING_SELECT 1
26178 _ACEOF
26179
26180 fi
26181
26182 if test $ol_with_threads = manual ; then
26183                 ol_link_threads=yes
26184
26185         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26186 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26187
26188
26189
26190 for ac_header in pthread.h sched.h
26191 do
26192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26194   echo "$as_me:$LINENO: checking for $ac_header" >&5
26195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26197   echo $ECHO_N "(cached) $ECHO_C" >&6
26198 fi
26199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26201 else
26202   # Is the header compilable?
26203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26205 cat >conftest.$ac_ext <<_ACEOF
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211 $ac_includes_default
26212 #include <$ac_header>
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26216   (eval $ac_compile) 2>conftest.er1
26217   ac_status=$?
26218   grep -v '^ *+' conftest.er1 >conftest.err
26219   rm -f conftest.er1
26220   cat conftest.err >&5
26221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222   (exit $ac_status); } &&
26223          { ac_try='test -z "$ac_c_werror_flag"
26224                          || test ! -s conftest.err'
26225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226   (eval $ac_try) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); }; } &&
26230          { ac_try='test -s conftest.$ac_objext'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; }; then
26236   ac_header_compiler=yes
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241 ac_header_compiler=no
26242 fi
26243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26245 echo "${ECHO_T}$ac_header_compiler" >&6
26246
26247 # Is the header present?
26248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26250 cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256 #include <$ac_header>
26257 _ACEOF
26258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26260   ac_status=$?
26261   grep -v '^ *+' conftest.er1 >conftest.err
26262   rm -f conftest.er1
26263   cat conftest.err >&5
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); } >/dev/null; then
26266   if test -s conftest.err; then
26267     ac_cpp_err=$ac_c_preproc_warn_flag
26268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26269   else
26270     ac_cpp_err=
26271   fi
26272 else
26273   ac_cpp_err=yes
26274 fi
26275 if test -z "$ac_cpp_err"; then
26276   ac_header_preproc=yes
26277 else
26278   echo "$as_me: failed program was:" >&5
26279 sed 's/^/| /' conftest.$ac_ext >&5
26280
26281   ac_header_preproc=no
26282 fi
26283 rm -f conftest.err conftest.$ac_ext
26284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26285 echo "${ECHO_T}$ac_header_preproc" >&6
26286
26287 # So?  What about this header?
26288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26289   yes:no: )
26290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26294     ac_header_preproc=yes
26295     ;;
26296   no:yes:* )
26297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26309     (
26310       cat <<\_ASBOX
26311 ## ------------------------------------------ ##
26312 ## Report this to the AC_PACKAGE_NAME lists.  ##
26313 ## ------------------------------------------ ##
26314 _ASBOX
26315     ) |
26316       sed "s/^/$as_me: WARNING:     /" >&2
26317     ;;
26318 esac
26319 echo "$as_me:$LINENO: checking for $ac_header" >&5
26320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26322   echo $ECHO_N "(cached) $ECHO_C" >&6
26323 else
26324   eval "$as_ac_Header=\$ac_header_preproc"
26325 fi
26326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26328
26329 fi
26330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26331   cat >>confdefs.h <<_ACEOF
26332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26333 _ACEOF
26334
26335 fi
26336
26337 done
26338
26339
26340
26341 for ac_func in sched_yield pthread_yield
26342 do
26343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26344 echo "$as_me:$LINENO: checking for $ac_func" >&5
26345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26346 if eval "test \"\${$as_ac_var+set}\" = set"; then
26347   echo $ECHO_N "(cached) $ECHO_C" >&6
26348 else
26349   cat >conftest.$ac_ext <<_ACEOF
26350 /* confdefs.h.  */
26351 _ACEOF
26352 cat confdefs.h >>conftest.$ac_ext
26353 cat >>conftest.$ac_ext <<_ACEOF
26354 /* end confdefs.h.  */
26355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26357 #define $ac_func innocuous_$ac_func
26358
26359 /* System header to define __stub macros and hopefully few prototypes,
26360     which can conflict with char $ac_func (); below.
26361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26362     <limits.h> exists even on freestanding compilers.  */
26363
26364 #ifdef __STDC__
26365 # include <limits.h>
26366 #else
26367 # include <assert.h>
26368 #endif
26369
26370 #undef $ac_func
26371
26372 /* Override any gcc2 internal prototype to avoid an error.  */
26373 #ifdef __cplusplus
26374 extern "C"
26375 {
26376 #endif
26377 /* We use char because int might match the return type of a gcc2
26378    builtin and then its argument prototype would still apply.  */
26379 char $ac_func ();
26380 /* The GNU C library defines this for functions which it implements
26381     to always fail with ENOSYS.  Some functions are actually named
26382     something starting with __ and the normal name is an alias.  */
26383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26384 choke me
26385 #else
26386 char (*f) () = $ac_func;
26387 #endif
26388 #ifdef __cplusplus
26389 }
26390 #endif
26391
26392 int
26393 main ()
26394 {
26395 return f != $ac_func;
26396   ;
26397   return 0;
26398 }
26399 _ACEOF
26400 rm -f conftest.$ac_objext conftest$ac_exeext
26401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26402   (eval $ac_link) 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } &&
26409          { ac_try='test -z "$ac_c_werror_flag"
26410                          || test ! -s conftest.err'
26411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412   (eval $ac_try) 2>&5
26413   ac_status=$?
26414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415   (exit $ac_status); }; } &&
26416          { ac_try='test -s conftest$ac_exeext'
26417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418   (eval $ac_try) 2>&5
26419   ac_status=$?
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); }; }; then
26422   eval "$as_ac_var=yes"
26423 else
26424   echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26426
26427 eval "$as_ac_var=no"
26428 fi
26429 rm -f conftest.err conftest.$ac_objext \
26430       conftest$ac_exeext conftest.$ac_ext
26431 fi
26432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26434 if test `eval echo '${'$as_ac_var'}'` = yes; then
26435   cat >>confdefs.h <<_ACEOF
26436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26437 _ACEOF
26438
26439 fi
26440 done
26441
26442
26443         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26444 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26445 if test "${ol_cv_header_linux_threads+set}" = set; then
26446   echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448   cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454 #include <pthread.h>
26455 _ACEOF
26456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26457   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26458   ol_cv_header_linux_threads=yes
26459 else
26460   ol_cv_header_linux_threads=no
26461 fi
26462 rm -f conftest*
26463
26464
26465 fi
26466 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26467 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26468         if test $ol_cv_header_linux_threads = yes; then
26469
26470 cat >>confdefs.h <<\_ACEOF
26471 #define HAVE_LINUX_THREADS 1
26472 _ACEOF
26473
26474         fi
26475
26476
26477
26478 for ac_header in mach/cthreads.h
26479 do
26480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26482   echo "$as_me:$LINENO: checking for $ac_header" >&5
26483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26485   echo $ECHO_N "(cached) $ECHO_C" >&6
26486 fi
26487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26489 else
26490   # Is the header compilable?
26491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26493 cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h.  */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h.  */
26499 $ac_includes_default
26500 #include <$ac_header>
26501 _ACEOF
26502 rm -f conftest.$ac_objext
26503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26504   (eval $ac_compile) 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } &&
26511          { ac_try='test -z "$ac_c_werror_flag"
26512                          || test ! -s conftest.err'
26513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514   (eval $ac_try) 2>&5
26515   ac_status=$?
26516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517   (exit $ac_status); }; } &&
26518          { ac_try='test -s conftest.$ac_objext'
26519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26520   (eval $ac_try) 2>&5
26521   ac_status=$?
26522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523   (exit $ac_status); }; }; then
26524   ac_header_compiler=yes
26525 else
26526   echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26528
26529 ac_header_compiler=no
26530 fi
26531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26533 echo "${ECHO_T}$ac_header_compiler" >&6
26534
26535 # Is the header present?
26536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26538 cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h.  */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h.  */
26544 #include <$ac_header>
26545 _ACEOF
26546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26548   ac_status=$?
26549   grep -v '^ *+' conftest.er1 >conftest.err
26550   rm -f conftest.er1
26551   cat conftest.err >&5
26552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553   (exit $ac_status); } >/dev/null; then
26554   if test -s conftest.err; then
26555     ac_cpp_err=$ac_c_preproc_warn_flag
26556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26557   else
26558     ac_cpp_err=
26559   fi
26560 else
26561   ac_cpp_err=yes
26562 fi
26563 if test -z "$ac_cpp_err"; then
26564   ac_header_preproc=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569   ac_header_preproc=no
26570 fi
26571 rm -f conftest.err conftest.$ac_ext
26572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26573 echo "${ECHO_T}$ac_header_preproc" >&6
26574
26575 # So?  What about this header?
26576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26577   yes:no: )
26578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26582     ac_header_preproc=yes
26583     ;;
26584   no:yes:* )
26585     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26586 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26587     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26588 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26589     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26590 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26591     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26592 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26595     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26596 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26597     (
26598       cat <<\_ASBOX
26599 ## ------------------------------------------ ##
26600 ## Report this to the AC_PACKAGE_NAME lists.  ##
26601 ## ------------------------------------------ ##
26602 _ASBOX
26603     ) |
26604       sed "s/^/$as_me: WARNING:     /" >&2
26605     ;;
26606 esac
26607 echo "$as_me:$LINENO: checking for $ac_header" >&5
26608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26610   echo $ECHO_N "(cached) $ECHO_C" >&6
26611 else
26612   eval "$as_ac_Header=\$ac_header_preproc"
26613 fi
26614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26616
26617 fi
26618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26619   cat >>confdefs.h <<_ACEOF
26620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26621 _ACEOF
26622
26623 fi
26624
26625 done
26626
26627
26628 for ac_header in lwp/lwp.h
26629 do
26630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26632   echo "$as_me:$LINENO: checking for $ac_header" >&5
26633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26635   echo $ECHO_N "(cached) $ECHO_C" >&6
26636 fi
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26639 else
26640   # Is the header compilable?
26641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h.  */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h.  */
26649 $ac_includes_default
26650 #include <$ac_header>
26651 _ACEOF
26652 rm -f conftest.$ac_objext
26653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26654   (eval $ac_compile) 2>conftest.er1
26655   ac_status=$?
26656   grep -v '^ *+' conftest.er1 >conftest.err
26657   rm -f conftest.er1
26658   cat conftest.err >&5
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); } &&
26661          { ac_try='test -z "$ac_c_werror_flag"
26662                          || test ! -s conftest.err'
26663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664   (eval $ac_try) 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; } &&
26668          { ac_try='test -s conftest.$ac_objext'
26669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670   (eval $ac_try) 2>&5
26671   ac_status=$?
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); }; }; then
26674   ac_header_compiler=yes
26675 else
26676   echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26678
26679 ac_header_compiler=no
26680 fi
26681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26683 echo "${ECHO_T}$ac_header_compiler" >&6
26684
26685 # Is the header present?
26686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 #include <$ac_header>
26695 _ACEOF
26696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26698   ac_status=$?
26699   grep -v '^ *+' conftest.er1 >conftest.err
26700   rm -f conftest.er1
26701   cat conftest.err >&5
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } >/dev/null; then
26704   if test -s conftest.err; then
26705     ac_cpp_err=$ac_c_preproc_warn_flag
26706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26707   else
26708     ac_cpp_err=
26709   fi
26710 else
26711   ac_cpp_err=yes
26712 fi
26713 if test -z "$ac_cpp_err"; then
26714   ac_header_preproc=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719   ac_header_preproc=no
26720 fi
26721 rm -f conftest.err conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26723 echo "${ECHO_T}$ac_header_preproc" >&6
26724
26725 # So?  What about this header?
26726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26727   yes:no: )
26728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26732     ac_header_preproc=yes
26733     ;;
26734   no:yes:* )
26735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26747     (
26748       cat <<\_ASBOX
26749 ## ------------------------------------------ ##
26750 ## Report this to the AC_PACKAGE_NAME lists.  ##
26751 ## ------------------------------------------ ##
26752 _ASBOX
26753     ) |
26754       sed "s/^/$as_me: WARNING:     /" >&2
26755     ;;
26756 esac
26757 echo "$as_me:$LINENO: checking for $ac_header" >&5
26758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   eval "$as_ac_Header=\$ac_header_preproc"
26763 fi
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26766
26767 fi
26768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26769   cat >>confdefs.h <<_ACEOF
26770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26771 _ACEOF
26772
26773 fi
26774
26775 done
26776
26777
26778
26779 for ac_header in thread.h synch.h
26780 do
26781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26783   echo "$as_me:$LINENO: checking for $ac_header" >&5
26784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26786   echo $ECHO_N "(cached) $ECHO_C" >&6
26787 fi
26788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26790 else
26791   # Is the header compilable?
26792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26794 cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h.  */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h.  */
26800 $ac_includes_default
26801 #include <$ac_header>
26802 _ACEOF
26803 rm -f conftest.$ac_objext
26804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26805   (eval $ac_compile) 2>conftest.er1
26806   ac_status=$?
26807   grep -v '^ *+' conftest.er1 >conftest.err
26808   rm -f conftest.er1
26809   cat conftest.err >&5
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); } &&
26812          { ac_try='test -z "$ac_c_werror_flag"
26813                          || test ! -s conftest.err'
26814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815   (eval $ac_try) 2>&5
26816   ac_status=$?
26817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818   (exit $ac_status); }; } &&
26819          { ac_try='test -s conftest.$ac_objext'
26820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821   (eval $ac_try) 2>&5
26822   ac_status=$?
26823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824   (exit $ac_status); }; }; then
26825   ac_header_compiler=yes
26826 else
26827   echo "$as_me: failed program was:" >&5
26828 sed 's/^/| /' conftest.$ac_ext >&5
26829
26830 ac_header_compiler=no
26831 fi
26832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26834 echo "${ECHO_T}$ac_header_compiler" >&6
26835
26836 # Is the header present?
26837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26839 cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845 #include <$ac_header>
26846 _ACEOF
26847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } >/dev/null; then
26855   if test -s conftest.err; then
26856     ac_cpp_err=$ac_c_preproc_warn_flag
26857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26858   else
26859     ac_cpp_err=
26860   fi
26861 else
26862   ac_cpp_err=yes
26863 fi
26864 if test -z "$ac_cpp_err"; then
26865   ac_header_preproc=yes
26866 else
26867   echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870   ac_header_preproc=no
26871 fi
26872 rm -f conftest.err conftest.$ac_ext
26873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26874 echo "${ECHO_T}$ac_header_preproc" >&6
26875
26876 # So?  What about this header?
26877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26878   yes:no: )
26879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26883     ac_header_preproc=yes
26884     ;;
26885   no:yes:* )
26886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26898     (
26899       cat <<\_ASBOX
26900 ## ------------------------------------------ ##
26901 ## Report this to the AC_PACKAGE_NAME lists.  ##
26902 ## ------------------------------------------ ##
26903 _ASBOX
26904     ) |
26905       sed "s/^/$as_me: WARNING:     /" >&2
26906     ;;
26907 esac
26908 echo "$as_me:$LINENO: checking for $ac_header" >&5
26909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26911   echo $ECHO_N "(cached) $ECHO_C" >&6
26912 else
26913   eval "$as_ac_Header=\$ac_header_preproc"
26914 fi
26915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26917
26918 fi
26919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26920   cat >>confdefs.h <<_ACEOF
26921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26922 _ACEOF
26923
26924 fi
26925
26926 done
26927
26928 fi
26929
26930 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26931                         cat >>confdefs.h <<\_ACEOF
26932 #define REENTRANT 1
26933 _ACEOF
26934
26935         cat >>confdefs.h <<\_ACEOF
26936 #define _REENTRANT 1
26937 _ACEOF
26938
26939         cat >>confdefs.h <<\_ACEOF
26940 #define THREAD_SAFE 1
26941 _ACEOF
26942
26943         cat >>confdefs.h <<\_ACEOF
26944 #define _THREAD_SAFE 1
26945 _ACEOF
26946
26947         cat >>confdefs.h <<\_ACEOF
26948 #define THREADSAFE 1
26949 _ACEOF
26950
26951         cat >>confdefs.h <<\_ACEOF
26952 #define _THREADSAFE 1
26953 _ACEOF
26954
26955         cat >>confdefs.h <<\_ACEOF
26956 #define _SGI_MP_SOURCE 1
26957 _ACEOF
26958
26959
26960                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26961 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26962 if test "${ol_cv_errno_thread_specific+set}" = set; then
26963   echo $ECHO_N "(cached) $ECHO_C" >&6
26964 else
26965
26966                 cat >conftest.$ac_ext <<_ACEOF
26967 /* confdefs.h.  */
26968 _ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h.  */
26972 #include <errno.h>
26973 int
26974 main ()
26975 {
26976 errno = 0;
26977   ;
26978   return 0;
26979 }
26980 _ACEOF
26981 rm -f conftest.$ac_objext conftest$ac_exeext
26982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26983   (eval $ac_link) 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } &&
26990          { ac_try='test -z "$ac_c_werror_flag"
26991                          || test ! -s conftest.err'
26992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993   (eval $ac_try) 2>&5
26994   ac_status=$?
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); }; } &&
26997          { ac_try='test -s conftest$ac_exeext'
26998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26999   (eval $ac_try) 2>&5
27000   ac_status=$?
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); }; }; then
27003   ol_cv_errno_thread_specific=yes
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008 ol_cv_errno_thread_specific=no
27009 fi
27010 rm -f conftest.err conftest.$ac_objext \
27011       conftest$ac_exeext conftest.$ac_ext
27012
27013 fi
27014 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27015 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27016
27017                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27018 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27019 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27020   echo $ECHO_N "(cached) $ECHO_C" >&6
27021 else
27022
27023                 cat >conftest.$ac_ext <<_ACEOF
27024 /* confdefs.h.  */
27025 _ACEOF
27026 cat confdefs.h >>conftest.$ac_ext
27027 cat >>conftest.$ac_ext <<_ACEOF
27028 /* end confdefs.h.  */
27029 #include <netdb.h>
27030 int
27031 main ()
27032 {
27033 h_errno = 0;
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 rm -f conftest.$ac_objext conftest$ac_exeext
27039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27040   (eval $ac_link) 2>conftest.er1
27041   ac_status=$?
27042   grep -v '^ *+' conftest.er1 >conftest.err
27043   rm -f conftest.er1
27044   cat conftest.err >&5
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); } &&
27047          { ac_try='test -z "$ac_c_werror_flag"
27048                          || test ! -s conftest.err'
27049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050   (eval $ac_try) 2>&5
27051   ac_status=$?
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); }; } &&
27054          { ac_try='test -s conftest$ac_exeext'
27055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056   (eval $ac_try) 2>&5
27057   ac_status=$?
27058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059   (exit $ac_status); }; }; then
27060   ol_cv_h_errno_thread_specific=yes
27061 else
27062   echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27064
27065 ol_cv_h_errno_thread_specific=no
27066 fi
27067 rm -f conftest.err conftest.$ac_objext \
27068       conftest$ac_exeext conftest.$ac_ext
27069
27070 fi
27071 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27072 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27073
27074         if test $ol_cv_errno_thread_specific != yes ||
27075            test $ol_cv_h_errno_thread_specific != yes ; then
27076                 LIBS="$LTHREAD_LIBS $LIBS"
27077                 LTHREAD_LIBS=""
27078         fi
27079
27080 fi
27081
27082 if test $ol_link_threads = no ; then
27083         if test $ol_with_threads = yes ; then
27084                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27085 echo "$as_me: error: no suitable thread support" >&2;}
27086    { (exit 1); exit 1; }; }
27087         fi
27088
27089         if test $ol_with_threads = auto ; then
27090                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27091 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27092                 ol_with_threads=no
27093         fi
27094
27095
27096 cat >>confdefs.h <<\_ACEOF
27097 #define NO_THREADS 1
27098 _ACEOF
27099
27100         LTHREAD_LIBS=""
27101         BUILD_THREAD=no
27102 else
27103         BUILD_THREAD=yes
27104 fi
27105
27106 if test $ol_link_threads != no ; then
27107
27108 cat >>confdefs.h <<\_ACEOF
27109 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27110 _ACEOF
27111
27112 fi
27113
27114
27115
27116
27117 for ac_func in \
27118         ctime_r                 \
27119         gethostbyname_r gethostbyaddr_r \
27120
27121 do
27122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27123 echo "$as_me:$LINENO: checking for $ac_func" >&5
27124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27125 if eval "test \"\${$as_ac_var+set}\" = set"; then
27126   echo $ECHO_N "(cached) $ECHO_C" >&6
27127 else
27128   cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27136 #define $ac_func innocuous_$ac_func
27137
27138 /* System header to define __stub macros and hopefully few prototypes,
27139     which can conflict with char $ac_func (); below.
27140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27141     <limits.h> exists even on freestanding compilers.  */
27142
27143 #ifdef __STDC__
27144 # include <limits.h>
27145 #else
27146 # include <assert.h>
27147 #endif
27148
27149 #undef $ac_func
27150
27151 /* Override any gcc2 internal prototype to avoid an error.  */
27152 #ifdef __cplusplus
27153 extern "C"
27154 {
27155 #endif
27156 /* We use char because int might match the return type of a gcc2
27157    builtin and then its argument prototype would still apply.  */
27158 char $ac_func ();
27159 /* The GNU C library defines this for functions which it implements
27160     to always fail with ENOSYS.  Some functions are actually named
27161     something starting with __ and the normal name is an alias.  */
27162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27163 choke me
27164 #else
27165 char (*f) () = $ac_func;
27166 #endif
27167 #ifdef __cplusplus
27168 }
27169 #endif
27170
27171 int
27172 main ()
27173 {
27174 return f != $ac_func;
27175   ;
27176   return 0;
27177 }
27178 _ACEOF
27179 rm -f conftest.$ac_objext conftest$ac_exeext
27180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27181   (eval $ac_link) 2>conftest.er1
27182   ac_status=$?
27183   grep -v '^ *+' conftest.er1 >conftest.err
27184   rm -f conftest.er1
27185   cat conftest.err >&5
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); } &&
27188          { ac_try='test -z "$ac_c_werror_flag"
27189                          || test ! -s conftest.err'
27190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191   (eval $ac_try) 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; } &&
27195          { ac_try='test -s conftest$ac_exeext'
27196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197   (eval $ac_try) 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); }; }; then
27201   eval "$as_ac_var=yes"
27202 else
27203   echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27205
27206 eval "$as_ac_var=no"
27207 fi
27208 rm -f conftest.err conftest.$ac_objext \
27209       conftest$ac_exeext conftest.$ac_ext
27210 fi
27211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27213 if test `eval echo '${'$as_ac_var'}'` = yes; then
27214   cat >>confdefs.h <<_ACEOF
27215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27216 _ACEOF
27217
27218 fi
27219 done
27220
27221
27222 if test "$ac_cv_func_ctime_r" = no ; then
27223         ol_cv_func_ctime_r_nargs=0
27224 else
27225         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27226 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27227 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27228   echo $ECHO_N "(cached) $ECHO_C" >&6
27229 else
27230   cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236 #include <time.h>
27237 int
27238 main ()
27239 {
27240 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27241   ;
27242   return 0;
27243 }
27244 _ACEOF
27245 rm -f conftest.$ac_objext
27246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27247   (eval $ac_compile) 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
27251   cat conftest.err >&5
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } &&
27254          { ac_try='test -z "$ac_c_werror_flag"
27255                          || test ! -s conftest.err'
27256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27257   (eval $ac_try) 2>&5
27258   ac_status=$?
27259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260   (exit $ac_status); }; } &&
27261          { ac_try='test -s conftest.$ac_objext'
27262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27263   (eval $ac_try) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); }; }; then
27267   ol_cv_func_ctime_r_nargs3=yes
27268 else
27269   echo "$as_me: failed program was:" >&5
27270 sed 's/^/| /' conftest.$ac_ext >&5
27271
27272 ol_cv_func_ctime_r_nargs3=no
27273 fi
27274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27275
27276         cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 #include <time.h>
27283 int
27284 main ()
27285 {
27286 time_t ti; char *buffer; ctime_r(&ti,buffer);
27287   ;
27288   return 0;
27289 }
27290 _ACEOF
27291 rm -f conftest.$ac_objext
27292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27293   (eval $ac_compile) 2>conftest.er1
27294   ac_status=$?
27295   grep -v '^ *+' conftest.er1 >conftest.err
27296   rm -f conftest.er1
27297   cat conftest.err >&5
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); } &&
27300          { ac_try='test -z "$ac_c_werror_flag"
27301                          || test ! -s conftest.err'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; } &&
27307          { ac_try='test -s conftest.$ac_objext'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; }; then
27313   ol_cv_func_ctime_r_nargs2=yes
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 ol_cv_func_ctime_r_nargs2=no
27319 fi
27320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27321
27322         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27323            test $ol_cv_func_ctime_r_nargs2 = no ; then
27324
27325                 ol_cv_func_ctime_r_nargs=3
27326
27327         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27328              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27329
27330                 ol_cv_func_ctime_r_nargs=2
27331
27332         else
27333                 ol_cv_func_ctime_r_nargs=0
27334         fi
27335
27336 fi
27337 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27338 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27339
27340   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27341
27342 cat >>confdefs.h <<_ACEOF
27343 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27344 _ACEOF
27345
27346   fi
27347
27348 fi
27349
27350 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27351         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27352 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27353 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27354   echo $ECHO_N "(cached) $ECHO_C" >&6
27355 else
27356   cat >conftest.$ac_ext <<_ACEOF
27357 /* confdefs.h.  */
27358 _ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h.  */
27362 #include <sys/types.h>
27363 #include <sys/socket.h>
27364 #include <netinet/in.h>
27365 #include <netdb.h>
27366 #define BUFSIZE (sizeof(struct hostent)+10)
27367 int
27368 main ()
27369 {
27370 struct hostent hent; char buffer[BUFSIZE];
27371                 int bufsize=BUFSIZE;int h_errno;
27372                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27373                         buffer, bufsize, &h_errno);
27374   ;
27375   return 0;
27376 }
27377 _ACEOF
27378 rm -f conftest.$ac_objext
27379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27380   (eval $ac_compile) 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } &&
27387          { ac_try='test -z "$ac_c_werror_flag"
27388                          || test ! -s conftest.err'
27389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390   (eval $ac_try) 2>&5
27391   ac_status=$?
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); }; } &&
27394          { ac_try='test -s conftest.$ac_objext'
27395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396   (eval $ac_try) 2>&5
27397   ac_status=$?
27398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399   (exit $ac_status); }; }; then
27400   ol_cv_func_gethostbyname_r_nargs5=yes
27401 else
27402   echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27404
27405 ol_cv_func_gethostbyname_r_nargs5=no
27406 fi
27407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27408
27409         cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h.  */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h.  */
27415 #include <sys/types.h>
27416 #include <sys/socket.h>
27417 #include <netinet/in.h>
27418 #include <netdb.h>
27419 #define BUFSIZE (sizeof(struct hostent)+10)
27420 int
27421 main ()
27422 {
27423 struct hostent hent;struct hostent *rhent;
27424                 char buffer[BUFSIZE];
27425                 int bufsize=BUFSIZE;int h_errno;
27426                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27427                         &rhent, &h_errno);
27428   ;
27429   return 0;
27430 }
27431 _ACEOF
27432 rm -f conftest.$ac_objext
27433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27434   (eval $ac_compile) 2>conftest.er1
27435   ac_status=$?
27436   grep -v '^ *+' conftest.er1 >conftest.err
27437   rm -f conftest.er1
27438   cat conftest.err >&5
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); } &&
27441          { ac_try='test -z "$ac_c_werror_flag"
27442                          || test ! -s conftest.err'
27443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444   (eval $ac_try) 2>&5
27445   ac_status=$?
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); }; } &&
27448          { ac_try='test -s conftest.$ac_objext'
27449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27450   (eval $ac_try) 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); }; }; then
27454   ol_cv_func_gethostbyname_r_nargs6=yes
27455 else
27456   echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27458
27459 ol_cv_func_gethostbyname_r_nargs6=no
27460 fi
27461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27462
27463         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27464            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27465
27466                 ol_cv_func_gethostbyname_r_nargs=5
27467
27468         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27469              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27470
27471                 ol_cv_func_gethostbyname_r_nargs=6
27472
27473         else
27474                 ol_cv_func_gethostbyname_r_nargs=0
27475         fi
27476
27477 fi
27478 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27479 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27480   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27481
27482 cat >>confdefs.h <<_ACEOF
27483 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27484 _ACEOF
27485
27486   fi
27487
27488 else
27489         ol_cv_func_gethostbyname_r_nargs=0
27490 fi
27491
27492 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27493         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27494 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27495 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27496   echo $ECHO_N "(cached) $ECHO_C" >&6
27497 else
27498   cat >conftest.$ac_ext <<_ACEOF
27499 /* confdefs.h.  */
27500 _ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h.  */
27504 #include <sys/types.h>
27505 #include <sys/socket.h>
27506 #include <netinet/in.h>
27507 #include <netdb.h>
27508 #define BUFSIZE (sizeof(struct hostent)+10)
27509 int
27510 main ()
27511 {
27512 struct hostent hent; char buffer[BUFSIZE];
27513             struct in_addr add;
27514             size_t alen=sizeof(struct in_addr);
27515             int bufsize=BUFSIZE;int h_errno;
27516                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27517                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27518   ;
27519   return 0;
27520 }
27521 _ACEOF
27522 rm -f conftest.$ac_objext
27523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27524   (eval $ac_compile) 2>conftest.er1
27525   ac_status=$?
27526   grep -v '^ *+' conftest.er1 >conftest.err
27527   rm -f conftest.er1
27528   cat conftest.err >&5
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); } &&
27531          { ac_try='test -z "$ac_c_werror_flag"
27532                          || test ! -s conftest.err'
27533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534   (eval $ac_try) 2>&5
27535   ac_status=$?
27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); }; } &&
27538          { ac_try='test -s conftest.$ac_objext'
27539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27540   (eval $ac_try) 2>&5
27541   ac_status=$?
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); }; }; then
27544   ol_cv_func_gethostbyaddr_r_nargs7=yes
27545 else
27546   echo "$as_me: failed program was:" >&5
27547 sed 's/^/| /' conftest.$ac_ext >&5
27548
27549 ol_cv_func_gethostbyaddr_r_nargs7=no
27550 fi
27551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27552
27553         cat >conftest.$ac_ext <<_ACEOF
27554 /* confdefs.h.  */
27555 _ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h.  */
27559 #include <sys/types.h>
27560 #include <sys/socket.h>
27561 #include <netinet/in.h>
27562 #include <netdb.h>
27563 #define BUFSIZE (sizeof(struct hostent)+10)
27564 int
27565 main ()
27566 {
27567 struct hostent hent;
27568                 struct hostent *rhent; char buffer[BUFSIZE];
27569                 struct in_addr add;
27570                 size_t alen=sizeof(struct in_addr);
27571                 int bufsize=BUFSIZE;int h_errno;
27572                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27573                         alen, AF_INET, &hent, buffer, bufsize,
27574                         &rhent, &h_errno);
27575   ;
27576   return 0;
27577 }
27578 _ACEOF
27579 rm -f conftest.$ac_objext
27580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27581   (eval $ac_compile) 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } &&
27588          { ac_try='test -z "$ac_c_werror_flag"
27589                          || test ! -s conftest.err'
27590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591   (eval $ac_try) 2>&5
27592   ac_status=$?
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); }; } &&
27595          { ac_try='test -s conftest.$ac_objext'
27596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597   (eval $ac_try) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; }; then
27601   ol_cv_func_gethostbyaddr_r_nargs8=yes
27602 else
27603   echo "$as_me: failed program was:" >&5
27604 sed 's/^/| /' conftest.$ac_ext >&5
27605
27606 ol_cv_func_gethostbyaddr_r_nargs8=no
27607 fi
27608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27609
27610         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27611            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27612
27613                 ol_cv_func_gethostbyaddr_r_nargs=7
27614
27615         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27616              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27617
27618                 ol_cv_func_gethostbyaddr_r_nargs=8
27619
27620         else
27621                 ol_cv_func_gethostbyaddr_r_nargs=0
27622         fi
27623
27624 fi
27625 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27626 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27627   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27628
27629 cat >>confdefs.h <<_ACEOF
27630 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27631 _ACEOF
27632
27633   fi
27634
27635 else
27636         ol_cv_func_gethostbyaddr_r_nargs=0
27637 fi
27638
27639 ol_link_ldbm=no
27640
27641 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27642
27643         if test $ol_enable_ldbm_api = bcompat; then \
27644
27645
27646 for ac_header in db_185.h db.h
27647 do
27648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27650   echo "$as_me:$LINENO: checking for $ac_header" >&5
27651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27653   echo $ECHO_N "(cached) $ECHO_C" >&6
27654 fi
27655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27657 else
27658   # Is the header compilable?
27659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27661 cat >conftest.$ac_ext <<_ACEOF
27662 /* confdefs.h.  */
27663 _ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h.  */
27667 $ac_includes_default
27668 #include <$ac_header>
27669 _ACEOF
27670 rm -f conftest.$ac_objext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27672   (eval $ac_compile) 2>conftest.er1
27673   ac_status=$?
27674   grep -v '^ *+' conftest.er1 >conftest.err
27675   rm -f conftest.er1
27676   cat conftest.err >&5
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); } &&
27679          { ac_try='test -z "$ac_c_werror_flag"
27680                          || test ! -s conftest.err'
27681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682   (eval $ac_try) 2>&5
27683   ac_status=$?
27684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685   (exit $ac_status); }; } &&
27686          { ac_try='test -s conftest.$ac_objext'
27687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688   (eval $ac_try) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; }; then
27692   ac_header_compiler=yes
27693 else
27694   echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27696
27697 ac_header_compiler=no
27698 fi
27699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27701 echo "${ECHO_T}$ac_header_compiler" >&6
27702
27703 # Is the header present?
27704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27706 cat >conftest.$ac_ext <<_ACEOF
27707 /* confdefs.h.  */
27708 _ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h.  */
27712 #include <$ac_header>
27713 _ACEOF
27714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } >/dev/null; then
27722   if test -s conftest.err; then
27723     ac_cpp_err=$ac_c_preproc_warn_flag
27724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27725   else
27726     ac_cpp_err=
27727   fi
27728 else
27729   ac_cpp_err=yes
27730 fi
27731 if test -z "$ac_cpp_err"; then
27732   ac_header_preproc=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737   ac_header_preproc=no
27738 fi
27739 rm -f conftest.err conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27741 echo "${ECHO_T}$ac_header_preproc" >&6
27742
27743 # So?  What about this header?
27744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27745   yes:no: )
27746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27750     ac_header_preproc=yes
27751     ;;
27752   no:yes:* )
27753     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27755     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27756 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27757     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27759     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27760 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27763     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27765     (
27766       cat <<\_ASBOX
27767 ## ------------------------------------------ ##
27768 ## Report this to the AC_PACKAGE_NAME lists.  ##
27769 ## ------------------------------------------ ##
27770 _ASBOX
27771     ) |
27772       sed "s/^/$as_me: WARNING:     /" >&2
27773     ;;
27774 esac
27775 echo "$as_me:$LINENO: checking for $ac_header" >&5
27776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27778   echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780   eval "$as_ac_Header=\$ac_header_preproc"
27781 fi
27782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27784
27785 fi
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787   cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27789 _ACEOF
27790
27791 fi
27792
27793 done
27794
27795 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27796         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27797 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27798 if test "${ol_cv_header_db1+set}" = set; then
27799   echo $ECHO_N "(cached) $ECHO_C" >&6
27800 else
27801
27802                 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808
27809 #if HAVE_DB_185_H
27810 #       include <db_185.h>
27811 #else
27812 #       include <db.h>
27813 #endif
27814
27815  /* this check could be improved */
27816 #ifndef DB_VERSION_MAJOR
27817 #       define DB_VERSION_MAJOR 1
27818 #endif
27819
27820 #if DB_VERSION_MAJOR == 1
27821         __db_version_1
27822 #endif
27823
27824 _ACEOF
27825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27826   $EGREP "__db_version_1" >/dev/null 2>&1; then
27827   ol_cv_header_db1=yes
27828 else
27829   ol_cv_header_db1=no
27830 fi
27831 rm -f conftest*
27832
27833 fi
27834 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27835 echo "${ECHO_T}$ol_cv_header_db1" >&6
27836
27837         if test $ol_cv_header_db1 = yes ; then
27838                 ol_cv_lib_db=no
27839
27840 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27841 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27842 if test "${ol_cv_bdb_major+set}" = set; then
27843   echo $ECHO_N "(cached) $ECHO_C" >&6
27844 else
27845
27846         ol_cv_bdb_major=0
27847         if test $ol_cv_bdb_major = 0 ; then
27848                 cat >conftest.$ac_ext <<_ACEOF
27849 /* confdefs.h.  */
27850 _ACEOF
27851 cat confdefs.h >>conftest.$ac_ext
27852 cat >>conftest.$ac_ext <<_ACEOF
27853 /* end confdefs.h.  */
27854
27855 #include <db.h>
27856 #ifndef DB_VERSION_MAJOR
27857 #       define DB_VERSION_MAJOR 1
27858 #endif
27859 #if DB_VERSION_MAJOR == 4
27860 __db_version
27861 #endif
27862
27863 _ACEOF
27864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27865   $EGREP "__db_version" >/dev/null 2>&1; then
27866   ol_cv_bdb_major=4
27867 else
27868   :
27869 fi
27870 rm -f conftest*
27871
27872         fi
27873         if test $ol_cv_bdb_major = 0 ; then
27874                 cat >conftest.$ac_ext <<_ACEOF
27875 /* confdefs.h.  */
27876 _ACEOF
27877 cat confdefs.h >>conftest.$ac_ext
27878 cat >>conftest.$ac_ext <<_ACEOF
27879 /* end confdefs.h.  */
27880
27881 #include <db.h>
27882 #ifndef DB_VERSION_MAJOR
27883 #       define DB_VERSION_MAJOR 1
27884 #endif
27885 #if DB_VERSION_MAJOR == 3
27886 __db_version
27887 #endif
27888
27889 _ACEOF
27890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27891   $EGREP "__db_version" >/dev/null 2>&1; then
27892   ol_cv_bdb_major=3
27893 else
27894   :
27895 fi
27896 rm -f conftest*
27897
27898         fi
27899         if test $ol_cv_bdb_major = 0 ; then
27900                 cat >conftest.$ac_ext <<_ACEOF
27901 /* confdefs.h.  */
27902 _ACEOF
27903 cat confdefs.h >>conftest.$ac_ext
27904 cat >>conftest.$ac_ext <<_ACEOF
27905 /* end confdefs.h.  */
27906
27907 #include <db.h>
27908 #ifndef DB_VERSION_MAJOR
27909 #       define DB_VERSION_MAJOR 1
27910 #endif
27911 #if DB_VERSION_MAJOR == 2
27912 __db_version
27913 #endif
27914
27915 _ACEOF
27916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27917   $EGREP "__db_version" >/dev/null 2>&1; then
27918   ol_cv_bdb_major=2
27919 else
27920   :
27921 fi
27922 rm -f conftest*
27923
27924         fi
27925         if test $ol_cv_bdb_major = 0 ; then
27926                 cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h.  */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h.  */
27932
27933 #include <db.h>
27934 #ifndef DB_VERSION_MAJOR
27935 #       define DB_VERSION_MAJOR 1
27936 #endif
27937 #if DB_VERSION_MAJOR == 1
27938 __db_version
27939 #endif
27940
27941 _ACEOF
27942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27943   $EGREP "__db_version" >/dev/null 2>&1; then
27944   ol_cv_bdb_major=1
27945 else
27946   :
27947 fi
27948 rm -f conftest*
27949
27950         fi
27951
27952         if test $ol_cv_bdb_major = 0 ; then
27953                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27954 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27955    { (exit 1); exit 1; }; }
27956         fi
27957
27958 fi
27959 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27960 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27961
27962 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27963 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27964 if test "${ol_cv_bdb_minor+set}" = set; then
27965   echo $ECHO_N "(cached) $ECHO_C" >&6
27966 else
27967
27968         ol_cv_bdb_minor=0
27969         if test $ol_cv_bdb_minor = 0 ; then
27970                 cat >conftest.$ac_ext <<_ACEOF
27971 /* confdefs.h.  */
27972 _ACEOF
27973 cat confdefs.h >>conftest.$ac_ext
27974 cat >>conftest.$ac_ext <<_ACEOF
27975 /* end confdefs.h.  */
27976
27977 #include <db.h>
27978 #ifndef DB_VERSION_MINOR
27979 #       define DB_VERSION_MINOR 0
27980 #endif
27981 #if DB_VERSION_MINOR == 9
27982 __db_version
27983 #endif
27984
27985 _ACEOF
27986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27987   $EGREP "__db_version" >/dev/null 2>&1; then
27988   ol_cv_bdb_minor=9
27989 else
27990   :
27991 fi
27992 rm -f conftest*
27993
27994         fi
27995         if test $ol_cv_bdb_minor = 0 ; then
27996                 cat >conftest.$ac_ext <<_ACEOF
27997 /* confdefs.h.  */
27998 _ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h.  */
28002
28003 #include <db.h>
28004 #ifndef DB_VERSION_MINOR
28005 #       define DB_VERSION_MINOR 0
28006 #endif
28007 #if DB_VERSION_MINOR == 8
28008 __db_version
28009 #endif
28010
28011 _ACEOF
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013   $EGREP "__db_version" >/dev/null 2>&1; then
28014   ol_cv_bdb_minor=8
28015 else
28016   :
28017 fi
28018 rm -f conftest*
28019
28020         fi
28021         if test $ol_cv_bdb_minor = 0 ; then
28022                 cat >conftest.$ac_ext <<_ACEOF
28023 /* confdefs.h.  */
28024 _ACEOF
28025 cat confdefs.h >>conftest.$ac_ext
28026 cat >>conftest.$ac_ext <<_ACEOF
28027 /* end confdefs.h.  */
28028
28029 #include <db.h>
28030 #ifndef DB_VERSION_MINOR
28031 #       define DB_VERSION_MINOR 0
28032 #endif
28033 #if DB_VERSION_MINOR == 7
28034 __db_version
28035 #endif
28036
28037 _ACEOF
28038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28039   $EGREP "__db_version" >/dev/null 2>&1; then
28040   ol_cv_bdb_minor=7
28041 else
28042   :
28043 fi
28044 rm -f conftest*
28045
28046         fi
28047         if test $ol_cv_bdb_minor = 0 ; then
28048                 cat >conftest.$ac_ext <<_ACEOF
28049 /* confdefs.h.  */
28050 _ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h.  */
28054
28055 #include <db.h>
28056 #ifndef DB_VERSION_MINOR
28057 #       define DB_VERSION_MINOR 0
28058 #endif
28059 #if DB_VERSION_MINOR == 6
28060 __db_version
28061 #endif
28062
28063 _ACEOF
28064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28065   $EGREP "__db_version" >/dev/null 2>&1; then
28066   ol_cv_bdb_minor=6
28067 else
28068   :
28069 fi
28070 rm -f conftest*
28071
28072         fi
28073         if test $ol_cv_bdb_minor = 0 ; then
28074                 cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080
28081 #include <db.h>
28082 #ifndef DB_VERSION_MINOR
28083 #       define DB_VERSION_MINOR 0
28084 #endif
28085 #if DB_VERSION_MINOR == 5
28086 __db_version
28087 #endif
28088
28089 _ACEOF
28090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28091   $EGREP "__db_version" >/dev/null 2>&1; then
28092   ol_cv_bdb_minor=5
28093 else
28094   :
28095 fi
28096 rm -f conftest*
28097
28098         fi
28099         if test $ol_cv_bdb_minor = 0 ; then
28100                 cat >conftest.$ac_ext <<_ACEOF
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28106
28107 #include <db.h>
28108 #ifndef DB_VERSION_MINOR
28109 #       define DB_VERSION_MINOR 0
28110 #endif
28111 #if DB_VERSION_MINOR == 4
28112 __db_version
28113 #endif
28114
28115 _ACEOF
28116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28117   $EGREP "__db_version" >/dev/null 2>&1; then
28118   ol_cv_bdb_minor=4
28119 else
28120   :
28121 fi
28122 rm -f conftest*
28123
28124         fi
28125         if test $ol_cv_bdb_minor = 0 ; then
28126                 cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132
28133 #include <db.h>
28134 #ifndef DB_VERSION_MINOR
28135 #       define DB_VERSION_MINOR 0
28136 #endif
28137 #if DB_VERSION_MINOR == 3
28138 __db_version
28139 #endif
28140
28141 _ACEOF
28142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28143   $EGREP "__db_version" >/dev/null 2>&1; then
28144   ol_cv_bdb_minor=3
28145 else
28146   :
28147 fi
28148 rm -f conftest*
28149
28150         fi
28151         if test $ol_cv_bdb_minor = 0 ; then
28152                 cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h.  */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h.  */
28158
28159 #include <db.h>
28160 #ifndef DB_VERSION_MINOR
28161 #       define DB_VERSION_MINOR 0
28162 #endif
28163 #if DB_VERSION_MINOR == 2
28164 __db_version
28165 #endif
28166
28167 _ACEOF
28168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28169   $EGREP "__db_version" >/dev/null 2>&1; then
28170   ol_cv_bdb_minor=2
28171 else
28172   :
28173 fi
28174 rm -f conftest*
28175
28176         fi
28177         if test $ol_cv_bdb_minor = 0 ; then
28178                 cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184
28185 #include <db.h>
28186 #ifndef DB_VERSION_MINOR
28187 #       define DB_VERSION_MINOR 0
28188 #endif
28189 #if DB_VERSION_MINOR == 1
28190 __db_version
28191 #endif
28192
28193 _ACEOF
28194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28195   $EGREP "__db_version" >/dev/null 2>&1; then
28196   ol_cv_bdb_minor=1
28197 else
28198   :
28199 fi
28200 rm -f conftest*
28201
28202         fi
28203
28204 fi
28205 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28206 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28207
28208 if test $ol_cv_bdb_major = 4 ; then
28209         if test $ol_cv_bdb_minor = 4 ; then
28210                 if test $ol_cv_lib_db = no ; then
28211         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28212 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28213 if test "${ol_cv_db_db44+set}" = set; then
28214   echo $ECHO_N "(cached) $ECHO_C" >&6
28215 else
28216
28217         ol_DB_LIB=-ldb44
28218         ol_LIBS=$LIBS
28219         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28220
28221         cat >conftest.$ac_ext <<_ACEOF
28222 /* confdefs.h.  */
28223 _ACEOF
28224 cat confdefs.h >>conftest.$ac_ext
28225 cat >>conftest.$ac_ext <<_ACEOF
28226 /* end confdefs.h.  */
28227
28228 #ifdef HAVE_DB_185_H
28229 # include <db_185.h>
28230 #else
28231 # include <db.h>
28232 #endif
28233
28234 #ifndef DB_VERSION_MAJOR
28235 # define DB_VERSION_MAJOR 1
28236 #endif
28237
28238 #ifndef NULL
28239 #define NULL ((void*)0)
28240 #endif
28241
28242 int
28243 main ()
28244 {
28245
28246 #if DB_VERSION_MAJOR > 1
28247         {
28248                 char *version;
28249                 int major, minor, patch;
28250
28251                 version = db_version( &major, &minor, &patch );
28252
28253                 if( major != DB_VERSION_MAJOR ||
28254                         minor < DB_VERSION_MINOR )
28255                 {
28256                         printf("Berkeley DB version mismatch\n"
28257                                 "\theader: %s\n\tlibrary: %s\n",
28258                                 DB_VERSION_STRING, version);
28259                         return 1;
28260                 }
28261         }
28262 #endif
28263
28264 #if DB_VERSION_MAJOR > 2
28265         db_env_create( NULL, 0 );
28266 #elif DB_VERSION_MAJOR > 1
28267         db_appexit( NULL );
28268 #else
28269         (void) dbopen( NULL, 0, 0, 0, NULL);
28270 #endif
28271
28272   ;
28273   return 0;
28274 }
28275 _ACEOF
28276 rm -f conftest.$ac_objext conftest$ac_exeext
28277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28278   (eval $ac_link) 2>conftest.er1
28279   ac_status=$?
28280   grep -v '^ *+' conftest.er1 >conftest.err
28281   rm -f conftest.er1
28282   cat conftest.err >&5
28283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284   (exit $ac_status); } &&
28285          { ac_try='test -z "$ac_c_werror_flag"
28286                          || test ! -s conftest.err'
28287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28288   (eval $ac_try) 2>&5
28289   ac_status=$?
28290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291   (exit $ac_status); }; } &&
28292          { ac_try='test -s conftest$ac_exeext'
28293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28294   (eval $ac_try) 2>&5
28295   ac_status=$?
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); }; }; then
28298   ol_cv_db_db44=yes
28299 else
28300   echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28302
28303 ol_cv_db_db44=no
28304 fi
28305 rm -f conftest.err conftest.$ac_objext \
28306       conftest$ac_exeext conftest.$ac_ext
28307
28308         LIBS="$ol_LIBS"
28309
28310 fi
28311 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28312 echo "${ECHO_T}$ol_cv_db_db44" >&6
28313
28314         if test $ol_cv_db_db44 = yes ; then
28315                 ol_cv_lib_db=-ldb44
28316         fi
28317 fi
28318
28319                 if test $ol_cv_lib_db = no ; then
28320         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28321 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28322 if test "${ol_cv_db_db_44+set}" = set; then
28323   echo $ECHO_N "(cached) $ECHO_C" >&6
28324 else
28325
28326         ol_DB_LIB=-ldb-44
28327         ol_LIBS=$LIBS
28328         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28329
28330         cat >conftest.$ac_ext <<_ACEOF
28331 /* confdefs.h.  */
28332 _ACEOF
28333 cat confdefs.h >>conftest.$ac_ext
28334 cat >>conftest.$ac_ext <<_ACEOF
28335 /* end confdefs.h.  */
28336
28337 #ifdef HAVE_DB_185_H
28338 # include <db_185.h>
28339 #else
28340 # include <db.h>
28341 #endif
28342
28343 #ifndef DB_VERSION_MAJOR
28344 # define DB_VERSION_MAJOR 1
28345 #endif
28346
28347 #ifndef NULL
28348 #define NULL ((void*)0)
28349 #endif
28350
28351 int
28352 main ()
28353 {
28354
28355 #if DB_VERSION_MAJOR > 1
28356         {
28357                 char *version;
28358                 int major, minor, patch;
28359
28360                 version = db_version( &major, &minor, &patch );
28361
28362                 if( major != DB_VERSION_MAJOR ||
28363                         minor < DB_VERSION_MINOR )
28364                 {
28365                         printf("Berkeley DB version mismatch\n"
28366                                 "\theader: %s\n\tlibrary: %s\n",
28367                                 DB_VERSION_STRING, version);
28368                         return 1;
28369                 }
28370         }
28371 #endif
28372
28373 #if DB_VERSION_MAJOR > 2
28374         db_env_create( NULL, 0 );
28375 #elif DB_VERSION_MAJOR > 1
28376         db_appexit( NULL );
28377 #else
28378         (void) dbopen( NULL, 0, 0, 0, NULL);
28379 #endif
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext conftest$ac_exeext
28386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28387   (eval $ac_link) 2>conftest.er1
28388   ac_status=$?
28389   grep -v '^ *+' conftest.er1 >conftest.err
28390   rm -f conftest.er1
28391   cat conftest.err >&5
28392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393   (exit $ac_status); } &&
28394          { ac_try='test -z "$ac_c_werror_flag"
28395                          || test ! -s conftest.err'
28396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397   (eval $ac_try) 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; } &&
28401          { ac_try='test -s conftest$ac_exeext'
28402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28403   (eval $ac_try) 2>&5
28404   ac_status=$?
28405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406   (exit $ac_status); }; }; then
28407   ol_cv_db_db_44=yes
28408 else
28409   echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28411
28412 ol_cv_db_db_44=no
28413 fi
28414 rm -f conftest.err conftest.$ac_objext \
28415       conftest$ac_exeext conftest.$ac_ext
28416
28417         LIBS="$ol_LIBS"
28418
28419 fi
28420 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28421 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28422
28423         if test $ol_cv_db_db_44 = yes ; then
28424                 ol_cv_lib_db=-ldb-44
28425         fi
28426 fi
28427
28428                 if test $ol_cv_lib_db = no ; then
28429         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28430 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28431 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434
28435         ol_DB_LIB=-ldb-4.4
28436         ol_LIBS=$LIBS
28437         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28438
28439         cat >conftest.$ac_ext <<_ACEOF
28440 /* confdefs.h.  */
28441 _ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h.  */
28445
28446 #ifdef HAVE_DB_185_H
28447 # include <db_185.h>
28448 #else
28449 # include <db.h>
28450 #endif
28451
28452 #ifndef DB_VERSION_MAJOR
28453 # define DB_VERSION_MAJOR 1
28454 #endif
28455
28456 #ifndef NULL
28457 #define NULL ((void*)0)
28458 #endif
28459
28460 int
28461 main ()
28462 {
28463
28464 #if DB_VERSION_MAJOR > 1
28465         {
28466                 char *version;
28467                 int major, minor, patch;
28468
28469                 version = db_version( &major, &minor, &patch );
28470
28471                 if( major != DB_VERSION_MAJOR ||
28472                         minor < DB_VERSION_MINOR )
28473                 {
28474                         printf("Berkeley DB version mismatch\n"
28475                                 "\theader: %s\n\tlibrary: %s\n",
28476                                 DB_VERSION_STRING, version);
28477                         return 1;
28478                 }
28479         }
28480 #endif
28481
28482 #if DB_VERSION_MAJOR > 2
28483         db_env_create( NULL, 0 );
28484 #elif DB_VERSION_MAJOR > 1
28485         db_appexit( NULL );
28486 #else
28487         (void) dbopen( NULL, 0, 0, 0, NULL);
28488 #endif
28489
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28496   (eval $ac_link) 2>conftest.er1
28497   ac_status=$?
28498   grep -v '^ *+' conftest.er1 >conftest.err
28499   rm -f conftest.er1
28500   cat conftest.err >&5
28501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502   (exit $ac_status); } &&
28503          { ac_try='test -z "$ac_c_werror_flag"
28504                          || test ! -s conftest.err'
28505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506   (eval $ac_try) 2>&5
28507   ac_status=$?
28508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509   (exit $ac_status); }; } &&
28510          { ac_try='test -s conftest$ac_exeext'
28511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512   (eval $ac_try) 2>&5
28513   ac_status=$?
28514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515   (exit $ac_status); }; }; then
28516   ol_cv_db_db_4_dot_4=yes
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521 ol_cv_db_db_4_dot_4=no
28522 fi
28523 rm -f conftest.err conftest.$ac_objext \
28524       conftest$ac_exeext conftest.$ac_ext
28525
28526         LIBS="$ol_LIBS"
28527
28528 fi
28529 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28530 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28531
28532         if test $ol_cv_db_db_4_dot_4 = yes ; then
28533                 ol_cv_lib_db=-ldb-4.4
28534         fi
28535 fi
28536
28537                 if test $ol_cv_lib_db = no ; then
28538         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28539 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28540 if test "${ol_cv_db_db_4_4+set}" = set; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 else
28543
28544         ol_DB_LIB=-ldb-4-4
28545         ol_LIBS=$LIBS
28546         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28547
28548         cat >conftest.$ac_ext <<_ACEOF
28549 /* confdefs.h.  */
28550 _ACEOF
28551 cat confdefs.h >>conftest.$ac_ext
28552 cat >>conftest.$ac_ext <<_ACEOF
28553 /* end confdefs.h.  */
28554
28555 #ifdef HAVE_DB_185_H
28556 # include <db_185.h>
28557 #else
28558 # include <db.h>
28559 #endif
28560
28561 #ifndef DB_VERSION_MAJOR
28562 # define DB_VERSION_MAJOR 1
28563 #endif
28564
28565 #ifndef NULL
28566 #define NULL ((void*)0)
28567 #endif
28568
28569 int
28570 main ()
28571 {
28572
28573 #if DB_VERSION_MAJOR > 1
28574         {
28575                 char *version;
28576                 int major, minor, patch;
28577
28578                 version = db_version( &major, &minor, &patch );
28579
28580                 if( major != DB_VERSION_MAJOR ||
28581                         minor < DB_VERSION_MINOR )
28582                 {
28583                         printf("Berkeley DB version mismatch\n"
28584                                 "\theader: %s\n\tlibrary: %s\n",
28585                                 DB_VERSION_STRING, version);
28586                         return 1;
28587                 }
28588         }
28589 #endif
28590
28591 #if DB_VERSION_MAJOR > 2
28592         db_env_create( NULL, 0 );
28593 #elif DB_VERSION_MAJOR > 1
28594         db_appexit( NULL );
28595 #else
28596         (void) dbopen( NULL, 0, 0, 0, NULL);
28597 #endif
28598
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 rm -f conftest.$ac_objext conftest$ac_exeext
28604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28605   (eval $ac_link) 2>conftest.er1
28606   ac_status=$?
28607   grep -v '^ *+' conftest.er1 >conftest.err
28608   rm -f conftest.er1
28609   cat conftest.err >&5
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } &&
28612          { ac_try='test -z "$ac_c_werror_flag"
28613                          || test ! -s conftest.err'
28614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615   (eval $ac_try) 2>&5
28616   ac_status=$?
28617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618   (exit $ac_status); }; } &&
28619          { ac_try='test -s conftest$ac_exeext'
28620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621   (eval $ac_try) 2>&5
28622   ac_status=$?
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); }; }; then
28625   ol_cv_db_db_4_4=yes
28626 else
28627   echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28629
28630 ol_cv_db_db_4_4=no
28631 fi
28632 rm -f conftest.err conftest.$ac_objext \
28633       conftest$ac_exeext conftest.$ac_ext
28634
28635         LIBS="$ol_LIBS"
28636
28637 fi
28638 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28639 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28640
28641         if test $ol_cv_db_db_4_4 = yes ; then
28642                 ol_cv_lib_db=-ldb-4-4
28643         fi
28644 fi
28645
28646         elif test $ol_cv_bdb_minor = 3 ; then
28647                 if test $ol_cv_lib_db = no ; then
28648         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28649 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28650 if test "${ol_cv_db_db43+set}" = set; then
28651   echo $ECHO_N "(cached) $ECHO_C" >&6
28652 else
28653
28654         ol_DB_LIB=-ldb43
28655         ol_LIBS=$LIBS
28656         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28657
28658         cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664
28665 #ifdef HAVE_DB_185_H
28666 # include <db_185.h>
28667 #else
28668 # include <db.h>
28669 #endif
28670
28671 #ifndef DB_VERSION_MAJOR
28672 # define DB_VERSION_MAJOR 1
28673 #endif
28674
28675 #ifndef NULL
28676 #define NULL ((void*)0)
28677 #endif
28678
28679 int
28680 main ()
28681 {
28682
28683 #if DB_VERSION_MAJOR > 1
28684         {
28685                 char *version;
28686                 int major, minor, patch;
28687
28688                 version = db_version( &major, &minor, &patch );
28689
28690                 if( major != DB_VERSION_MAJOR ||
28691                         minor < DB_VERSION_MINOR )
28692                 {
28693                         printf("Berkeley DB version mismatch\n"
28694                                 "\theader: %s\n\tlibrary: %s\n",
28695                                 DB_VERSION_STRING, version);
28696                         return 1;
28697                 }
28698         }
28699 #endif
28700
28701 #if DB_VERSION_MAJOR > 2
28702         db_env_create( NULL, 0 );
28703 #elif DB_VERSION_MAJOR > 1
28704         db_appexit( NULL );
28705 #else
28706         (void) dbopen( NULL, 0, 0, 0, NULL);
28707 #endif
28708
28709   ;
28710   return 0;
28711 }
28712 _ACEOF
28713 rm -f conftest.$ac_objext conftest$ac_exeext
28714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28715   (eval $ac_link) 2>conftest.er1
28716   ac_status=$?
28717   grep -v '^ *+' conftest.er1 >conftest.err
28718   rm -f conftest.er1
28719   cat conftest.err >&5
28720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721   (exit $ac_status); } &&
28722          { ac_try='test -z "$ac_c_werror_flag"
28723                          || test ! -s conftest.err'
28724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725   (eval $ac_try) 2>&5
28726   ac_status=$?
28727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728   (exit $ac_status); }; } &&
28729          { ac_try='test -s conftest$ac_exeext'
28730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28731   (eval $ac_try) 2>&5
28732   ac_status=$?
28733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734   (exit $ac_status); }; }; then
28735   ol_cv_db_db43=yes
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740 ol_cv_db_db43=no
28741 fi
28742 rm -f conftest.err conftest.$ac_objext \
28743       conftest$ac_exeext conftest.$ac_ext
28744
28745         LIBS="$ol_LIBS"
28746
28747 fi
28748 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28749 echo "${ECHO_T}$ol_cv_db_db43" >&6
28750
28751         if test $ol_cv_db_db43 = yes ; then
28752                 ol_cv_lib_db=-ldb43
28753         fi
28754 fi
28755
28756                 if test $ol_cv_lib_db = no ; then
28757         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28758 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28759 if test "${ol_cv_db_db_43+set}" = set; then
28760   echo $ECHO_N "(cached) $ECHO_C" >&6
28761 else
28762
28763         ol_DB_LIB=-ldb-43
28764         ol_LIBS=$LIBS
28765         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28766
28767         cat >conftest.$ac_ext <<_ACEOF
28768 /* confdefs.h.  */
28769 _ACEOF
28770 cat confdefs.h >>conftest.$ac_ext
28771 cat >>conftest.$ac_ext <<_ACEOF
28772 /* end confdefs.h.  */
28773
28774 #ifdef HAVE_DB_185_H
28775 # include <db_185.h>
28776 #else
28777 # include <db.h>
28778 #endif
28779
28780 #ifndef DB_VERSION_MAJOR
28781 # define DB_VERSION_MAJOR 1
28782 #endif
28783
28784 #ifndef NULL
28785 #define NULL ((void*)0)
28786 #endif
28787
28788 int
28789 main ()
28790 {
28791
28792 #if DB_VERSION_MAJOR > 1
28793         {
28794                 char *version;
28795                 int major, minor, patch;
28796
28797                 version = db_version( &major, &minor, &patch );
28798
28799                 if( major != DB_VERSION_MAJOR ||
28800                         minor < DB_VERSION_MINOR )
28801                 {
28802                         printf("Berkeley DB version mismatch\n"
28803                                 "\theader: %s\n\tlibrary: %s\n",
28804                                 DB_VERSION_STRING, version);
28805                         return 1;
28806                 }
28807         }
28808 #endif
28809
28810 #if DB_VERSION_MAJOR > 2
28811         db_env_create( NULL, 0 );
28812 #elif DB_VERSION_MAJOR > 1
28813         db_appexit( NULL );
28814 #else
28815         (void) dbopen( NULL, 0, 0, 0, NULL);
28816 #endif
28817
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28824   (eval $ac_link) 2>conftest.er1
28825   ac_status=$?
28826   grep -v '^ *+' conftest.er1 >conftest.err
28827   rm -f conftest.er1
28828   cat conftest.err >&5
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); } &&
28831          { ac_try='test -z "$ac_c_werror_flag"
28832                          || test ! -s conftest.err'
28833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28834   (eval $ac_try) 2>&5
28835   ac_status=$?
28836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837   (exit $ac_status); }; } &&
28838          { ac_try='test -s conftest$ac_exeext'
28839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840   (eval $ac_try) 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; }; then
28844   ol_cv_db_db_43=yes
28845 else
28846   echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849 ol_cv_db_db_43=no
28850 fi
28851 rm -f conftest.err conftest.$ac_objext \
28852       conftest$ac_exeext conftest.$ac_ext
28853
28854         LIBS="$ol_LIBS"
28855
28856 fi
28857 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28858 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28859
28860         if test $ol_cv_db_db_43 = yes ; then
28861                 ol_cv_lib_db=-ldb-43
28862         fi
28863 fi
28864
28865                 if test $ol_cv_lib_db = no ; then
28866         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28867 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28868 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871
28872         ol_DB_LIB=-ldb-4.3
28873         ol_LIBS=$LIBS
28874         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28875
28876         cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882
28883 #ifdef HAVE_DB_185_H
28884 # include <db_185.h>
28885 #else
28886 # include <db.h>
28887 #endif
28888
28889 #ifndef DB_VERSION_MAJOR
28890 # define DB_VERSION_MAJOR 1
28891 #endif
28892
28893 #ifndef NULL
28894 #define NULL ((void*)0)
28895 #endif
28896
28897 int
28898 main ()
28899 {
28900
28901 #if DB_VERSION_MAJOR > 1
28902         {
28903                 char *version;
28904                 int major, minor, patch;
28905
28906                 version = db_version( &major, &minor, &patch );
28907
28908                 if( major != DB_VERSION_MAJOR ||
28909                         minor < DB_VERSION_MINOR )
28910                 {
28911                         printf("Berkeley DB version mismatch\n"
28912                                 "\theader: %s\n\tlibrary: %s\n",
28913                                 DB_VERSION_STRING, version);
28914                         return 1;
28915                 }
28916         }
28917 #endif
28918
28919 #if DB_VERSION_MAJOR > 2
28920         db_env_create( NULL, 0 );
28921 #elif DB_VERSION_MAJOR > 1
28922         db_appexit( NULL );
28923 #else
28924         (void) dbopen( NULL, 0, 0, 0, NULL);
28925 #endif
28926
28927   ;
28928   return 0;
28929 }
28930 _ACEOF
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28933   (eval $ac_link) 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } &&
28940          { ac_try='test -z "$ac_c_werror_flag"
28941                          || test ! -s conftest.err'
28942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943   (eval $ac_try) 2>&5
28944   ac_status=$?
28945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946   (exit $ac_status); }; } &&
28947          { ac_try='test -s conftest$ac_exeext'
28948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949   (eval $ac_try) 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953   ol_cv_db_db_4_dot_3=yes
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958 ol_cv_db_db_4_dot_3=no
28959 fi
28960 rm -f conftest.err conftest.$ac_objext \
28961       conftest$ac_exeext conftest.$ac_ext
28962
28963         LIBS="$ol_LIBS"
28964
28965 fi
28966 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28967 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28968
28969         if test $ol_cv_db_db_4_dot_3 = yes ; then
28970                 ol_cv_lib_db=-ldb-4.3
28971         fi
28972 fi
28973
28974                 if test $ol_cv_lib_db = no ; then
28975         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28976 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28977 if test "${ol_cv_db_db_4_3+set}" = set; then
28978   echo $ECHO_N "(cached) $ECHO_C" >&6
28979 else
28980
28981         ol_DB_LIB=-ldb-4-3
28982         ol_LIBS=$LIBS
28983         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28984
28985         cat >conftest.$ac_ext <<_ACEOF
28986 /* confdefs.h.  */
28987 _ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h.  */
28991
28992 #ifdef HAVE_DB_185_H
28993 # include <db_185.h>
28994 #else
28995 # include <db.h>
28996 #endif
28997
28998 #ifndef DB_VERSION_MAJOR
28999 # define DB_VERSION_MAJOR 1
29000 #endif
29001
29002 #ifndef NULL
29003 #define NULL ((void*)0)
29004 #endif
29005
29006 int
29007 main ()
29008 {
29009
29010 #if DB_VERSION_MAJOR > 1
29011         {
29012                 char *version;
29013                 int major, minor, patch;
29014
29015                 version = db_version( &major, &minor, &patch );
29016
29017                 if( major != DB_VERSION_MAJOR ||
29018                         minor < DB_VERSION_MINOR )
29019                 {
29020                         printf("Berkeley DB version mismatch\n"
29021                                 "\theader: %s\n\tlibrary: %s\n",
29022                                 DB_VERSION_STRING, version);
29023                         return 1;
29024                 }
29025         }
29026 #endif
29027
29028 #if DB_VERSION_MAJOR > 2
29029         db_env_create( NULL, 0 );
29030 #elif DB_VERSION_MAJOR > 1
29031         db_appexit( NULL );
29032 #else
29033         (void) dbopen( NULL, 0, 0, 0, NULL);
29034 #endif
29035
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29042   (eval $ac_link) 2>conftest.er1
29043   ac_status=$?
29044   grep -v '^ *+' conftest.er1 >conftest.err
29045   rm -f conftest.er1
29046   cat conftest.err >&5
29047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048   (exit $ac_status); } &&
29049          { ac_try='test -z "$ac_c_werror_flag"
29050                          || test ! -s conftest.err'
29051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052   (eval $ac_try) 2>&5
29053   ac_status=$?
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); }; } &&
29056          { ac_try='test -s conftest$ac_exeext'
29057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29058   (eval $ac_try) 2>&5
29059   ac_status=$?
29060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061   (exit $ac_status); }; }; then
29062   ol_cv_db_db_4_3=yes
29063 else
29064   echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067 ol_cv_db_db_4_3=no
29068 fi
29069 rm -f conftest.err conftest.$ac_objext \
29070       conftest$ac_exeext conftest.$ac_ext
29071
29072         LIBS="$ol_LIBS"
29073
29074 fi
29075 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29076 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29077
29078         if test $ol_cv_db_db_4_3 = yes ; then
29079                 ol_cv_lib_db=-ldb-4-3
29080         fi
29081 fi
29082
29083         elif test $ol_cv_bdb_minor = 2 ; then
29084                 if test $ol_cv_lib_db = no ; then
29085         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29086 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29087 if test "${ol_cv_db_db42+set}" = set; then
29088   echo $ECHO_N "(cached) $ECHO_C" >&6
29089 else
29090
29091         ol_DB_LIB=-ldb42
29092         ol_LIBS=$LIBS
29093         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29094
29095         cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h.  */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h.  */
29101
29102 #ifdef HAVE_DB_185_H
29103 # include <db_185.h>
29104 #else
29105 # include <db.h>
29106 #endif
29107
29108 #ifndef DB_VERSION_MAJOR
29109 # define DB_VERSION_MAJOR 1
29110 #endif
29111
29112 #ifndef NULL
29113 #define NULL ((void*)0)
29114 #endif
29115
29116 int
29117 main ()
29118 {
29119
29120 #if DB_VERSION_MAJOR > 1
29121         {
29122                 char *version;
29123                 int major, minor, patch;
29124
29125                 version = db_version( &major, &minor, &patch );
29126
29127                 if( major != DB_VERSION_MAJOR ||
29128                         minor < DB_VERSION_MINOR )
29129                 {
29130                         printf("Berkeley DB version mismatch\n"
29131                                 "\theader: %s\n\tlibrary: %s\n",
29132                                 DB_VERSION_STRING, version);
29133                         return 1;
29134                 }
29135         }
29136 #endif
29137
29138 #if DB_VERSION_MAJOR > 2
29139         db_env_create( NULL, 0 );
29140 #elif DB_VERSION_MAJOR > 1
29141         db_appexit( NULL );
29142 #else
29143         (void) dbopen( NULL, 0, 0, 0, NULL);
29144 #endif
29145
29146   ;
29147   return 0;
29148 }
29149 _ACEOF
29150 rm -f conftest.$ac_objext conftest$ac_exeext
29151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29152   (eval $ac_link) 2>conftest.er1
29153   ac_status=$?
29154   grep -v '^ *+' conftest.er1 >conftest.err
29155   rm -f conftest.er1
29156   cat conftest.err >&5
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); } &&
29159          { ac_try='test -z "$ac_c_werror_flag"
29160                          || test ! -s conftest.err'
29161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29162   (eval $ac_try) 2>&5
29163   ac_status=$?
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); }; } &&
29166          { ac_try='test -s conftest$ac_exeext'
29167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29168   (eval $ac_try) 2>&5
29169   ac_status=$?
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); }; }; then
29172   ol_cv_db_db42=yes
29173 else
29174   echo "$as_me: failed program was:" >&5
29175 sed 's/^/| /' conftest.$ac_ext >&5
29176
29177 ol_cv_db_db42=no
29178 fi
29179 rm -f conftest.err conftest.$ac_objext \
29180       conftest$ac_exeext conftest.$ac_ext
29181
29182         LIBS="$ol_LIBS"
29183
29184 fi
29185 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29186 echo "${ECHO_T}$ol_cv_db_db42" >&6
29187
29188         if test $ol_cv_db_db42 = yes ; then
29189                 ol_cv_lib_db=-ldb42
29190         fi
29191 fi
29192
29193                 if test $ol_cv_lib_db = no ; then
29194         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29195 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29196 if test "${ol_cv_db_db_42+set}" = set; then
29197   echo $ECHO_N "(cached) $ECHO_C" >&6
29198 else
29199
29200         ol_DB_LIB=-ldb-42
29201         ol_LIBS=$LIBS
29202         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29203
29204         cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211 #ifdef HAVE_DB_185_H
29212 # include <db_185.h>
29213 #else
29214 # include <db.h>
29215 #endif
29216
29217 #ifndef DB_VERSION_MAJOR
29218 # define DB_VERSION_MAJOR 1
29219 #endif
29220
29221 #ifndef NULL
29222 #define NULL ((void*)0)
29223 #endif
29224
29225 int
29226 main ()
29227 {
29228
29229 #if DB_VERSION_MAJOR > 1
29230         {
29231                 char *version;
29232                 int major, minor, patch;
29233
29234                 version = db_version( &major, &minor, &patch );
29235
29236                 if( major != DB_VERSION_MAJOR ||
29237                         minor < DB_VERSION_MINOR )
29238                 {
29239                         printf("Berkeley DB version mismatch\n"
29240                                 "\theader: %s\n\tlibrary: %s\n",
29241                                 DB_VERSION_STRING, version);
29242                         return 1;
29243                 }
29244         }
29245 #endif
29246
29247 #if DB_VERSION_MAJOR > 2
29248         db_env_create( NULL, 0 );
29249 #elif DB_VERSION_MAJOR > 1
29250         db_appexit( NULL );
29251 #else
29252         (void) dbopen( NULL, 0, 0, 0, NULL);
29253 #endif
29254
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29261   (eval $ac_link) 2>conftest.er1
29262   ac_status=$?
29263   grep -v '^ *+' conftest.er1 >conftest.err
29264   rm -f conftest.er1
29265   cat conftest.err >&5
29266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267   (exit $ac_status); } &&
29268          { ac_try='test -z "$ac_c_werror_flag"
29269                          || test ! -s conftest.err'
29270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271   (eval $ac_try) 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; } &&
29275          { ac_try='test -s conftest$ac_exeext'
29276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277   (eval $ac_try) 2>&5
29278   ac_status=$?
29279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280   (exit $ac_status); }; }; then
29281   ol_cv_db_db_42=yes
29282 else
29283   echo "$as_me: failed program was:" >&5
29284 sed 's/^/| /' conftest.$ac_ext >&5
29285
29286 ol_cv_db_db_42=no
29287 fi
29288 rm -f conftest.err conftest.$ac_objext \
29289       conftest$ac_exeext conftest.$ac_ext
29290
29291         LIBS="$ol_LIBS"
29292
29293 fi
29294 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29295 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29296
29297         if test $ol_cv_db_db_42 = yes ; then
29298                 ol_cv_lib_db=-ldb-42
29299         fi
29300 fi
29301
29302                 if test $ol_cv_lib_db = no ; then
29303         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29304 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29305 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29306   echo $ECHO_N "(cached) $ECHO_C" >&6
29307 else
29308
29309         ol_DB_LIB=-ldb-4.2
29310         ol_LIBS=$LIBS
29311         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29312
29313         cat >conftest.$ac_ext <<_ACEOF
29314 /* confdefs.h.  */
29315 _ACEOF
29316 cat confdefs.h >>conftest.$ac_ext
29317 cat >>conftest.$ac_ext <<_ACEOF
29318 /* end confdefs.h.  */
29319
29320 #ifdef HAVE_DB_185_H
29321 # include <db_185.h>
29322 #else
29323 # include <db.h>
29324 #endif
29325
29326 #ifndef DB_VERSION_MAJOR
29327 # define DB_VERSION_MAJOR 1
29328 #endif
29329
29330 #ifndef NULL
29331 #define NULL ((void*)0)
29332 #endif
29333
29334 int
29335 main ()
29336 {
29337
29338 #if DB_VERSION_MAJOR > 1
29339         {
29340                 char *version;
29341                 int major, minor, patch;
29342
29343                 version = db_version( &major, &minor, &patch );
29344
29345                 if( major != DB_VERSION_MAJOR ||
29346                         minor < DB_VERSION_MINOR )
29347                 {
29348                         printf("Berkeley DB version mismatch\n"
29349                                 "\theader: %s\n\tlibrary: %s\n",
29350                                 DB_VERSION_STRING, version);
29351                         return 1;
29352                 }
29353         }
29354 #endif
29355
29356 #if DB_VERSION_MAJOR > 2
29357         db_env_create( NULL, 0 );
29358 #elif DB_VERSION_MAJOR > 1
29359         db_appexit( NULL );
29360 #else
29361         (void) dbopen( NULL, 0, 0, 0, NULL);
29362 #endif
29363
29364   ;
29365   return 0;
29366 }
29367 _ACEOF
29368 rm -f conftest.$ac_objext conftest$ac_exeext
29369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29370   (eval $ac_link) 2>conftest.er1
29371   ac_status=$?
29372   grep -v '^ *+' conftest.er1 >conftest.err
29373   rm -f conftest.er1
29374   cat conftest.err >&5
29375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376   (exit $ac_status); } &&
29377          { ac_try='test -z "$ac_c_werror_flag"
29378                          || test ! -s conftest.err'
29379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380   (eval $ac_try) 2>&5
29381   ac_status=$?
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); }; } &&
29384          { ac_try='test -s conftest$ac_exeext'
29385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29386   (eval $ac_try) 2>&5
29387   ac_status=$?
29388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389   (exit $ac_status); }; }; then
29390   ol_cv_db_db_4_dot_2=yes
29391 else
29392   echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29394
29395 ol_cv_db_db_4_dot_2=no
29396 fi
29397 rm -f conftest.err conftest.$ac_objext \
29398       conftest$ac_exeext conftest.$ac_ext
29399
29400         LIBS="$ol_LIBS"
29401
29402 fi
29403 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29404 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29405
29406         if test $ol_cv_db_db_4_dot_2 = yes ; then
29407                 ol_cv_lib_db=-ldb-4.2
29408         fi
29409 fi
29410
29411                 if test $ol_cv_lib_db = no ; then
29412         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29413 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29414 if test "${ol_cv_db_db_4_2+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417
29418         ol_DB_LIB=-ldb-4-2
29419         ol_LIBS=$LIBS
29420         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29421
29422         cat >conftest.$ac_ext <<_ACEOF
29423 /* confdefs.h.  */
29424 _ACEOF
29425 cat confdefs.h >>conftest.$ac_ext
29426 cat >>conftest.$ac_ext <<_ACEOF
29427 /* end confdefs.h.  */
29428
29429 #ifdef HAVE_DB_185_H
29430 # include <db_185.h>
29431 #else
29432 # include <db.h>
29433 #endif
29434
29435 #ifndef DB_VERSION_MAJOR
29436 # define DB_VERSION_MAJOR 1
29437 #endif
29438
29439 #ifndef NULL
29440 #define NULL ((void*)0)
29441 #endif
29442
29443 int
29444 main ()
29445 {
29446
29447 #if DB_VERSION_MAJOR > 1
29448         {
29449                 char *version;
29450                 int major, minor, patch;
29451
29452                 version = db_version( &major, &minor, &patch );
29453
29454                 if( major != DB_VERSION_MAJOR ||
29455                         minor < DB_VERSION_MINOR )
29456                 {
29457                         printf("Berkeley DB version mismatch\n"
29458                                 "\theader: %s\n\tlibrary: %s\n",
29459                                 DB_VERSION_STRING, version);
29460                         return 1;
29461                 }
29462         }
29463 #endif
29464
29465 #if DB_VERSION_MAJOR > 2
29466         db_env_create( NULL, 0 );
29467 #elif DB_VERSION_MAJOR > 1
29468         db_appexit( NULL );
29469 #else
29470         (void) dbopen( NULL, 0, 0, 0, NULL);
29471 #endif
29472
29473   ;
29474   return 0;
29475 }
29476 _ACEOF
29477 rm -f conftest.$ac_objext conftest$ac_exeext
29478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29479   (eval $ac_link) 2>conftest.er1
29480   ac_status=$?
29481   grep -v '^ *+' conftest.er1 >conftest.err
29482   rm -f conftest.er1
29483   cat conftest.err >&5
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); } &&
29486          { ac_try='test -z "$ac_c_werror_flag"
29487                          || test ! -s conftest.err'
29488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489   (eval $ac_try) 2>&5
29490   ac_status=$?
29491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492   (exit $ac_status); }; } &&
29493          { ac_try='test -s conftest$ac_exeext'
29494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29495   (eval $ac_try) 2>&5
29496   ac_status=$?
29497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29498   (exit $ac_status); }; }; then
29499   ol_cv_db_db_4_2=yes
29500 else
29501   echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 ol_cv_db_db_4_2=no
29505 fi
29506 rm -f conftest.err conftest.$ac_objext \
29507       conftest$ac_exeext conftest.$ac_ext
29508
29509         LIBS="$ol_LIBS"
29510
29511 fi
29512 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29513 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29514
29515         if test $ol_cv_db_db_4_2 = yes ; then
29516                 ol_cv_lib_db=-ldb-4-2
29517         fi
29518 fi
29519
29520         elif test $ol_cv_bdb_minor = 1 ; then
29521                 if test $ol_cv_lib_db = no ; then
29522         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29523 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29524 if test "${ol_cv_db_db41+set}" = set; then
29525   echo $ECHO_N "(cached) $ECHO_C" >&6
29526 else
29527
29528         ol_DB_LIB=-ldb41
29529         ol_LIBS=$LIBS
29530         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29531
29532         cat >conftest.$ac_ext <<_ACEOF
29533 /* confdefs.h.  */
29534 _ACEOF
29535 cat confdefs.h >>conftest.$ac_ext
29536 cat >>conftest.$ac_ext <<_ACEOF
29537 /* end confdefs.h.  */
29538
29539 #ifdef HAVE_DB_185_H
29540 # include <db_185.h>
29541 #else
29542 # include <db.h>
29543 #endif
29544
29545 #ifndef DB_VERSION_MAJOR
29546 # define DB_VERSION_MAJOR 1
29547 #endif
29548
29549 #ifndef NULL
29550 #define NULL ((void*)0)
29551 #endif
29552
29553 int
29554 main ()
29555 {
29556
29557 #if DB_VERSION_MAJOR > 1
29558         {
29559                 char *version;
29560                 int major, minor, patch;
29561
29562                 version = db_version( &major, &minor, &patch );
29563
29564                 if( major != DB_VERSION_MAJOR ||
29565                         minor < DB_VERSION_MINOR )
29566                 {
29567                         printf("Berkeley DB version mismatch\n"
29568                                 "\theader: %s\n\tlibrary: %s\n",
29569                                 DB_VERSION_STRING, version);
29570                         return 1;
29571                 }
29572         }
29573 #endif
29574
29575 #if DB_VERSION_MAJOR > 2
29576         db_env_create( NULL, 0 );
29577 #elif DB_VERSION_MAJOR > 1
29578         db_appexit( NULL );
29579 #else
29580         (void) dbopen( NULL, 0, 0, 0, NULL);
29581 #endif
29582
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 rm -f conftest.$ac_objext conftest$ac_exeext
29588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29589   (eval $ac_link) 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag"
29597                          || test ! -s conftest.err'
29598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29599   (eval $ac_try) 2>&5
29600   ac_status=$?
29601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); }; } &&
29603          { ac_try='test -s conftest$ac_exeext'
29604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29605   (eval $ac_try) 2>&5
29606   ac_status=$?
29607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29608   (exit $ac_status); }; }; then
29609   ol_cv_db_db41=yes
29610 else
29611   echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614 ol_cv_db_db41=no
29615 fi
29616 rm -f conftest.err conftest.$ac_objext \
29617       conftest$ac_exeext conftest.$ac_ext
29618
29619         LIBS="$ol_LIBS"
29620
29621 fi
29622 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29623 echo "${ECHO_T}$ol_cv_db_db41" >&6
29624
29625         if test $ol_cv_db_db41 = yes ; then
29626                 ol_cv_lib_db=-ldb41
29627         fi
29628 fi
29629
29630                 if test $ol_cv_lib_db = no ; then
29631         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29632 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29633 if test "${ol_cv_db_db_41+set}" = set; then
29634   echo $ECHO_N "(cached) $ECHO_C" >&6
29635 else
29636
29637         ol_DB_LIB=-ldb-41
29638         ol_LIBS=$LIBS
29639         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29640
29641         cat >conftest.$ac_ext <<_ACEOF
29642 /* confdefs.h.  */
29643 _ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h.  */
29647
29648 #ifdef HAVE_DB_185_H
29649 # include <db_185.h>
29650 #else
29651 # include <db.h>
29652 #endif
29653
29654 #ifndef DB_VERSION_MAJOR
29655 # define DB_VERSION_MAJOR 1
29656 #endif
29657
29658 #ifndef NULL
29659 #define NULL ((void*)0)
29660 #endif
29661
29662 int
29663 main ()
29664 {
29665
29666 #if DB_VERSION_MAJOR > 1
29667         {
29668                 char *version;
29669                 int major, minor, patch;
29670
29671                 version = db_version( &major, &minor, &patch );
29672
29673                 if( major != DB_VERSION_MAJOR ||
29674                         minor < DB_VERSION_MINOR )
29675                 {
29676                         printf("Berkeley DB version mismatch\n"
29677                                 "\theader: %s\n\tlibrary: %s\n",
29678                                 DB_VERSION_STRING, version);
29679                         return 1;
29680                 }
29681         }
29682 #endif
29683
29684 #if DB_VERSION_MAJOR > 2
29685         db_env_create( NULL, 0 );
29686 #elif DB_VERSION_MAJOR > 1
29687         db_appexit( NULL );
29688 #else
29689         (void) dbopen( NULL, 0, 0, 0, NULL);
29690 #endif
29691
29692   ;
29693   return 0;
29694 }
29695 _ACEOF
29696 rm -f conftest.$ac_objext conftest$ac_exeext
29697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29698   (eval $ac_link) 2>conftest.er1
29699   ac_status=$?
29700   grep -v '^ *+' conftest.er1 >conftest.err
29701   rm -f conftest.er1
29702   cat conftest.err >&5
29703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704   (exit $ac_status); } &&
29705          { ac_try='test -z "$ac_c_werror_flag"
29706                          || test ! -s conftest.err'
29707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708   (eval $ac_try) 2>&5
29709   ac_status=$?
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); }; } &&
29712          { ac_try='test -s conftest$ac_exeext'
29713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29714   (eval $ac_try) 2>&5
29715   ac_status=$?
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); }; }; then
29718   ol_cv_db_db_41=yes
29719 else
29720   echo "$as_me: failed program was:" >&5
29721 sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ol_cv_db_db_41=no
29724 fi
29725 rm -f conftest.err conftest.$ac_objext \
29726       conftest$ac_exeext conftest.$ac_ext
29727
29728         LIBS="$ol_LIBS"
29729
29730 fi
29731 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29732 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29733
29734         if test $ol_cv_db_db_41 = yes ; then
29735                 ol_cv_lib_db=-ldb-41
29736         fi
29737 fi
29738
29739                 if test $ol_cv_lib_db = no ; then
29740         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29741 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29742 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29743   echo $ECHO_N "(cached) $ECHO_C" >&6
29744 else
29745
29746         ol_DB_LIB=-ldb-4.1
29747         ol_LIBS=$LIBS
29748         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29749
29750         cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756
29757 #ifdef HAVE_DB_185_H
29758 # include <db_185.h>
29759 #else
29760 # include <db.h>
29761 #endif
29762
29763 #ifndef DB_VERSION_MAJOR
29764 # define DB_VERSION_MAJOR 1
29765 #endif
29766
29767 #ifndef NULL
29768 #define NULL ((void*)0)
29769 #endif
29770
29771 int
29772 main ()
29773 {
29774
29775 #if DB_VERSION_MAJOR > 1
29776         {
29777                 char *version;
29778                 int major, minor, patch;
29779
29780                 version = db_version( &major, &minor, &patch );
29781
29782                 if( major != DB_VERSION_MAJOR ||
29783                         minor < DB_VERSION_MINOR )
29784                 {
29785                         printf("Berkeley DB version mismatch\n"
29786                                 "\theader: %s\n\tlibrary: %s\n",
29787                                 DB_VERSION_STRING, version);
29788                         return 1;
29789                 }
29790         }
29791 #endif
29792
29793 #if DB_VERSION_MAJOR > 2
29794         db_env_create( NULL, 0 );
29795 #elif DB_VERSION_MAJOR > 1
29796         db_appexit( NULL );
29797 #else
29798         (void) dbopen( NULL, 0, 0, 0, NULL);
29799 #endif
29800
29801   ;
29802   return 0;
29803 }
29804 _ACEOF
29805 rm -f conftest.$ac_objext conftest$ac_exeext
29806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29807   (eval $ac_link) 2>conftest.er1
29808   ac_status=$?
29809   grep -v '^ *+' conftest.er1 >conftest.err
29810   rm -f conftest.er1
29811   cat conftest.err >&5
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); } &&
29814          { ac_try='test -z "$ac_c_werror_flag"
29815                          || test ! -s conftest.err'
29816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817   (eval $ac_try) 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); }; } &&
29821          { ac_try='test -s conftest$ac_exeext'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; }; then
29827   ol_cv_db_db_4_dot_1=yes
29828 else
29829   echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29831
29832 ol_cv_db_db_4_dot_1=no
29833 fi
29834 rm -f conftest.err conftest.$ac_objext \
29835       conftest$ac_exeext conftest.$ac_ext
29836
29837         LIBS="$ol_LIBS"
29838
29839 fi
29840 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29841 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29842
29843         if test $ol_cv_db_db_4_dot_1 = yes ; then
29844                 ol_cv_lib_db=-ldb-4.1
29845         fi
29846 fi
29847
29848                 if test $ol_cv_lib_db = no ; then
29849         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29850 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29851 if test "${ol_cv_db_db_4_1+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854
29855         ol_DB_LIB=-ldb-4-1
29856         ol_LIBS=$LIBS
29857         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29858
29859         cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865
29866 #ifdef HAVE_DB_185_H
29867 # include <db_185.h>
29868 #else
29869 # include <db.h>
29870 #endif
29871
29872 #ifndef DB_VERSION_MAJOR
29873 # define DB_VERSION_MAJOR 1
29874 #endif
29875
29876 #ifndef NULL
29877 #define NULL ((void*)0)
29878 #endif
29879
29880 int
29881 main ()
29882 {
29883
29884 #if DB_VERSION_MAJOR > 1
29885         {
29886                 char *version;
29887                 int major, minor, patch;
29888
29889                 version = db_version( &major, &minor, &patch );
29890
29891                 if( major != DB_VERSION_MAJOR ||
29892                         minor < DB_VERSION_MINOR )
29893                 {
29894                         printf("Berkeley DB version mismatch\n"
29895                                 "\theader: %s\n\tlibrary: %s\n",
29896                                 DB_VERSION_STRING, version);
29897                         return 1;
29898                 }
29899         }
29900 #endif
29901
29902 #if DB_VERSION_MAJOR > 2
29903         db_env_create( NULL, 0 );
29904 #elif DB_VERSION_MAJOR > 1
29905         db_appexit( NULL );
29906 #else
29907         (void) dbopen( NULL, 0, 0, 0, NULL);
29908 #endif
29909
29910   ;
29911   return 0;
29912 }
29913 _ACEOF
29914 rm -f conftest.$ac_objext conftest$ac_exeext
29915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29916   (eval $ac_link) 2>conftest.er1
29917   ac_status=$?
29918   grep -v '^ *+' conftest.er1 >conftest.err
29919   rm -f conftest.er1
29920   cat conftest.err >&5
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } &&
29923          { ac_try='test -z "$ac_c_werror_flag"
29924                          || test ! -s conftest.err'
29925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926   (eval $ac_try) 2>&5
29927   ac_status=$?
29928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929   (exit $ac_status); }; } &&
29930          { ac_try='test -s conftest$ac_exeext'
29931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932   (eval $ac_try) 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; }; then
29936   ol_cv_db_db_4_1=yes
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 ol_cv_db_db_4_1=no
29942 fi
29943 rm -f conftest.err conftest.$ac_objext \
29944       conftest$ac_exeext conftest.$ac_ext
29945
29946         LIBS="$ol_LIBS"
29947
29948 fi
29949 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29950 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29951
29952         if test $ol_cv_db_db_4_1 = yes ; then
29953                 ol_cv_lib_db=-ldb-4-1
29954         fi
29955 fi
29956
29957         fi
29958         if test $ol_cv_lib_db = no ; then
29959         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29960 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29961 if test "${ol_cv_db_db_4+set}" = set; then
29962   echo $ECHO_N "(cached) $ECHO_C" >&6
29963 else
29964
29965         ol_DB_LIB=-ldb-4
29966         ol_LIBS=$LIBS
29967         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29968
29969         cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975
29976 #ifdef HAVE_DB_185_H
29977 # include <db_185.h>
29978 #else
29979 # include <db.h>
29980 #endif
29981
29982 #ifndef DB_VERSION_MAJOR
29983 # define DB_VERSION_MAJOR 1
29984 #endif
29985
29986 #ifndef NULL
29987 #define NULL ((void*)0)
29988 #endif
29989
29990 int
29991 main ()
29992 {
29993
29994 #if DB_VERSION_MAJOR > 1
29995         {
29996                 char *version;
29997                 int major, minor, patch;
29998
29999                 version = db_version( &major, &minor, &patch );
30000
30001                 if( major != DB_VERSION_MAJOR ||
30002                         minor < DB_VERSION_MINOR )
30003                 {
30004                         printf("Berkeley DB version mismatch\n"
30005                                 "\theader: %s\n\tlibrary: %s\n",
30006                                 DB_VERSION_STRING, version);
30007                         return 1;
30008                 }
30009         }
30010 #endif
30011
30012 #if DB_VERSION_MAJOR > 2
30013         db_env_create( NULL, 0 );
30014 #elif DB_VERSION_MAJOR > 1
30015         db_appexit( NULL );
30016 #else
30017         (void) dbopen( NULL, 0, 0, 0, NULL);
30018 #endif
30019
30020   ;
30021   return 0;
30022 }
30023 _ACEOF
30024 rm -f conftest.$ac_objext conftest$ac_exeext
30025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30026   (eval $ac_link) 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } &&
30033          { ac_try='test -z "$ac_c_werror_flag"
30034                          || test ! -s conftest.err'
30035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036   (eval $ac_try) 2>&5
30037   ac_status=$?
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); }; } &&
30040          { ac_try='test -s conftest$ac_exeext'
30041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042   (eval $ac_try) 2>&5
30043   ac_status=$?
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); }; }; then
30046   ol_cv_db_db_4=yes
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051 ol_cv_db_db_4=no
30052 fi
30053 rm -f conftest.err conftest.$ac_objext \
30054       conftest$ac_exeext conftest.$ac_ext
30055
30056         LIBS="$ol_LIBS"
30057
30058 fi
30059 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30060 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30061
30062         if test $ol_cv_db_db_4 = yes ; then
30063                 ol_cv_lib_db=-ldb-4
30064         fi
30065 fi
30066
30067         if test $ol_cv_lib_db = no ; then
30068         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30069 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30070 if test "${ol_cv_db_db4+set}" = set; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073
30074         ol_DB_LIB=-ldb4
30075         ol_LIBS=$LIBS
30076         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30077
30078         cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h.  */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h.  */
30084
30085 #ifdef HAVE_DB_185_H
30086 # include <db_185.h>
30087 #else
30088 # include <db.h>
30089 #endif
30090
30091 #ifndef DB_VERSION_MAJOR
30092 # define DB_VERSION_MAJOR 1
30093 #endif
30094
30095 #ifndef NULL
30096 #define NULL ((void*)0)
30097 #endif
30098
30099 int
30100 main ()
30101 {
30102
30103 #if DB_VERSION_MAJOR > 1
30104         {
30105                 char *version;
30106                 int major, minor, patch;
30107
30108                 version = db_version( &major, &minor, &patch );
30109
30110                 if( major != DB_VERSION_MAJOR ||
30111                         minor < DB_VERSION_MINOR )
30112                 {
30113                         printf("Berkeley DB version mismatch\n"
30114                                 "\theader: %s\n\tlibrary: %s\n",
30115                                 DB_VERSION_STRING, version);
30116                         return 1;
30117                 }
30118         }
30119 #endif
30120
30121 #if DB_VERSION_MAJOR > 2
30122         db_env_create( NULL, 0 );
30123 #elif DB_VERSION_MAJOR > 1
30124         db_appexit( NULL );
30125 #else
30126         (void) dbopen( NULL, 0, 0, 0, NULL);
30127 #endif
30128
30129   ;
30130   return 0;
30131 }
30132 _ACEOF
30133 rm -f conftest.$ac_objext conftest$ac_exeext
30134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30135   (eval $ac_link) 2>conftest.er1
30136   ac_status=$?
30137   grep -v '^ *+' conftest.er1 >conftest.err
30138   rm -f conftest.er1
30139   cat conftest.err >&5
30140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141   (exit $ac_status); } &&
30142          { ac_try='test -z "$ac_c_werror_flag"
30143                          || test ! -s conftest.err'
30144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30145   (eval $ac_try) 2>&5
30146   ac_status=$?
30147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); }; } &&
30149          { ac_try='test -s conftest$ac_exeext'
30150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30151   (eval $ac_try) 2>&5
30152   ac_status=$?
30153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154   (exit $ac_status); }; }; then
30155   ol_cv_db_db4=yes
30156 else
30157   echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30159
30160 ol_cv_db_db4=no
30161 fi
30162 rm -f conftest.err conftest.$ac_objext \
30163       conftest$ac_exeext conftest.$ac_ext
30164
30165         LIBS="$ol_LIBS"
30166
30167 fi
30168 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30169 echo "${ECHO_T}$ol_cv_db_db4" >&6
30170
30171         if test $ol_cv_db_db4 = yes ; then
30172                 ol_cv_lib_db=-ldb4
30173         fi
30174 fi
30175
30176         if test $ol_cv_lib_db = no ; then
30177         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30178 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30179 if test "${ol_cv_db_db+set}" = set; then
30180   echo $ECHO_N "(cached) $ECHO_C" >&6
30181 else
30182
30183         ol_DB_LIB=-ldb
30184         ol_LIBS=$LIBS
30185         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30186
30187         cat >conftest.$ac_ext <<_ACEOF
30188 /* confdefs.h.  */
30189 _ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h.  */
30193
30194 #ifdef HAVE_DB_185_H
30195 # include <db_185.h>
30196 #else
30197 # include <db.h>
30198 #endif
30199
30200 #ifndef DB_VERSION_MAJOR
30201 # define DB_VERSION_MAJOR 1
30202 #endif
30203
30204 #ifndef NULL
30205 #define NULL ((void*)0)
30206 #endif
30207
30208 int
30209 main ()
30210 {
30211
30212 #if DB_VERSION_MAJOR > 1
30213         {
30214                 char *version;
30215                 int major, minor, patch;
30216
30217                 version = db_version( &major, &minor, &patch );
30218
30219                 if( major != DB_VERSION_MAJOR ||
30220                         minor < DB_VERSION_MINOR )
30221                 {
30222                         printf("Berkeley DB version mismatch\n"
30223                                 "\theader: %s\n\tlibrary: %s\n",
30224                                 DB_VERSION_STRING, version);
30225                         return 1;
30226                 }
30227         }
30228 #endif
30229
30230 #if DB_VERSION_MAJOR > 2
30231         db_env_create( NULL, 0 );
30232 #elif DB_VERSION_MAJOR > 1
30233         db_appexit( NULL );
30234 #else
30235         (void) dbopen( NULL, 0, 0, 0, NULL);
30236 #endif
30237
30238   ;
30239   return 0;
30240 }
30241 _ACEOF
30242 rm -f conftest.$ac_objext conftest$ac_exeext
30243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30244   (eval $ac_link) 2>conftest.er1
30245   ac_status=$?
30246   grep -v '^ *+' conftest.er1 >conftest.err
30247   rm -f conftest.er1
30248   cat conftest.err >&5
30249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30250   (exit $ac_status); } &&
30251          { ac_try='test -z "$ac_c_werror_flag"
30252                          || test ! -s conftest.err'
30253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254   (eval $ac_try) 2>&5
30255   ac_status=$?
30256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257   (exit $ac_status); }; } &&
30258          { ac_try='test -s conftest$ac_exeext'
30259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260   (eval $ac_try) 2>&5
30261   ac_status=$?
30262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); }; }; then
30264   ol_cv_db_db=yes
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269 ol_cv_db_db=no
30270 fi
30271 rm -f conftest.err conftest.$ac_objext \
30272       conftest$ac_exeext conftest.$ac_ext
30273
30274         LIBS="$ol_LIBS"
30275
30276 fi
30277 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30278 echo "${ECHO_T}$ol_cv_db_db" >&6
30279
30280         if test $ol_cv_db_db = yes ; then
30281                 ol_cv_lib_db=-ldb
30282         fi
30283 fi
30284
30285
30286 elif test $ol_cv_bdb_major = 3 ; then
30287         if test $ol_cv_lib_db = no ; then
30288         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30289 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30290 if test "${ol_cv_db_db3+set}" = set; then
30291   echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293
30294         ol_DB_LIB=-ldb3
30295         ol_LIBS=$LIBS
30296         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30297
30298         cat >conftest.$ac_ext <<_ACEOF
30299 /* confdefs.h.  */
30300 _ACEOF
30301 cat confdefs.h >>conftest.$ac_ext
30302 cat >>conftest.$ac_ext <<_ACEOF
30303 /* end confdefs.h.  */
30304
30305 #ifdef HAVE_DB_185_H
30306 # include <db_185.h>
30307 #else
30308 # include <db.h>
30309 #endif
30310
30311 #ifndef DB_VERSION_MAJOR
30312 # define DB_VERSION_MAJOR 1
30313 #endif
30314
30315 #ifndef NULL
30316 #define NULL ((void*)0)
30317 #endif
30318
30319 int
30320 main ()
30321 {
30322
30323 #if DB_VERSION_MAJOR > 1
30324         {
30325                 char *version;
30326                 int major, minor, patch;
30327
30328                 version = db_version( &major, &minor, &patch );
30329
30330                 if( major != DB_VERSION_MAJOR ||
30331                         minor < DB_VERSION_MINOR )
30332                 {
30333                         printf("Berkeley DB version mismatch\n"
30334                                 "\theader: %s\n\tlibrary: %s\n",
30335                                 DB_VERSION_STRING, version);
30336                         return 1;
30337                 }
30338         }
30339 #endif
30340
30341 #if DB_VERSION_MAJOR > 2
30342         db_env_create( NULL, 0 );
30343 #elif DB_VERSION_MAJOR > 1
30344         db_appexit( NULL );
30345 #else
30346         (void) dbopen( NULL, 0, 0, 0, NULL);
30347 #endif
30348
30349   ;
30350   return 0;
30351 }
30352 _ACEOF
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30355   (eval $ac_link) 2>conftest.er1
30356   ac_status=$?
30357   grep -v '^ *+' conftest.er1 >conftest.err
30358   rm -f conftest.er1
30359   cat conftest.err >&5
30360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); } &&
30362          { ac_try='test -z "$ac_c_werror_flag"
30363                          || test ! -s conftest.err'
30364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365   (eval $ac_try) 2>&5
30366   ac_status=$?
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); }; } &&
30369          { ac_try='test -s conftest$ac_exeext'
30370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371   (eval $ac_try) 2>&5
30372   ac_status=$?
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); }; }; then
30375   ol_cv_db_db3=yes
30376 else
30377   echo "$as_me: failed program was:" >&5
30378 sed 's/^/| /' conftest.$ac_ext >&5
30379
30380 ol_cv_db_db3=no
30381 fi
30382 rm -f conftest.err conftest.$ac_objext \
30383       conftest$ac_exeext conftest.$ac_ext
30384
30385         LIBS="$ol_LIBS"
30386
30387 fi
30388 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30389 echo "${ECHO_T}$ol_cv_db_db3" >&6
30390
30391         if test $ol_cv_db_db3 = yes ; then
30392                 ol_cv_lib_db=-ldb3
30393         fi
30394 fi
30395
30396         if test $ol_cv_lib_db = no ; then
30397         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30398 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30399 if test "${ol_cv_db_db_3+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402
30403         ol_DB_LIB=-ldb-3
30404         ol_LIBS=$LIBS
30405         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30406
30407         cat >conftest.$ac_ext <<_ACEOF
30408 /* confdefs.h.  */
30409 _ACEOF
30410 cat confdefs.h >>conftest.$ac_ext
30411 cat >>conftest.$ac_ext <<_ACEOF
30412 /* end confdefs.h.  */
30413
30414 #ifdef HAVE_DB_185_H
30415 # include <db_185.h>
30416 #else
30417 # include <db.h>
30418 #endif
30419
30420 #ifndef DB_VERSION_MAJOR
30421 # define DB_VERSION_MAJOR 1
30422 #endif
30423
30424 #ifndef NULL
30425 #define NULL ((void*)0)
30426 #endif
30427
30428 int
30429 main ()
30430 {
30431
30432 #if DB_VERSION_MAJOR > 1
30433         {
30434                 char *version;
30435                 int major, minor, patch;
30436
30437                 version = db_version( &major, &minor, &patch );
30438
30439                 if( major != DB_VERSION_MAJOR ||
30440                         minor < DB_VERSION_MINOR )
30441                 {
30442                         printf("Berkeley DB version mismatch\n"
30443                                 "\theader: %s\n\tlibrary: %s\n",
30444                                 DB_VERSION_STRING, version);
30445                         return 1;
30446                 }
30447         }
30448 #endif
30449
30450 #if DB_VERSION_MAJOR > 2
30451         db_env_create( NULL, 0 );
30452 #elif DB_VERSION_MAJOR > 1
30453         db_appexit( NULL );
30454 #else
30455         (void) dbopen( NULL, 0, 0, 0, NULL);
30456 #endif
30457
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464   (eval $ac_link) 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } &&
30471          { ac_try='test -z "$ac_c_werror_flag"
30472                          || test ! -s conftest.err'
30473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474   (eval $ac_try) 2>&5
30475   ac_status=$?
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); }; } &&
30478          { ac_try='test -s conftest$ac_exeext'
30479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480   (eval $ac_try) 2>&5
30481   ac_status=$?
30482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483   (exit $ac_status); }; }; then
30484   ol_cv_db_db_3=yes
30485 else
30486   echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30488
30489 ol_cv_db_db_3=no
30490 fi
30491 rm -f conftest.err conftest.$ac_objext \
30492       conftest$ac_exeext conftest.$ac_ext
30493
30494         LIBS="$ol_LIBS"
30495
30496 fi
30497 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30498 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30499
30500         if test $ol_cv_db_db_3 = yes ; then
30501                 ol_cv_lib_db=-ldb-3
30502         fi
30503 fi
30504
30505
30506 elif test $ol_cv_bdb_major = 2 ; then
30507         if test $ol_cv_lib_db = no ; then
30508         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30509 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30510 if test "${ol_cv_db_db2+set}" = set; then
30511   echo $ECHO_N "(cached) $ECHO_C" >&6
30512 else
30513
30514         ol_DB_LIB=-ldb2
30515         ol_LIBS=$LIBS
30516         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30517
30518         cat >conftest.$ac_ext <<_ACEOF
30519 /* confdefs.h.  */
30520 _ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h.  */
30524
30525 #ifdef HAVE_DB_185_H
30526 # include <db_185.h>
30527 #else
30528 # include <db.h>
30529 #endif
30530
30531 #ifndef DB_VERSION_MAJOR
30532 # define DB_VERSION_MAJOR 1
30533 #endif
30534
30535 #ifndef NULL
30536 #define NULL ((void*)0)
30537 #endif
30538
30539 int
30540 main ()
30541 {
30542
30543 #if DB_VERSION_MAJOR > 1
30544         {
30545                 char *version;
30546                 int major, minor, patch;
30547
30548                 version = db_version( &major, &minor, &patch );
30549
30550                 if( major != DB_VERSION_MAJOR ||
30551                         minor < DB_VERSION_MINOR )
30552                 {
30553                         printf("Berkeley DB version mismatch\n"
30554                                 "\theader: %s\n\tlibrary: %s\n",
30555                                 DB_VERSION_STRING, version);
30556                         return 1;
30557                 }
30558         }
30559 #endif
30560
30561 #if DB_VERSION_MAJOR > 2
30562         db_env_create( NULL, 0 );
30563 #elif DB_VERSION_MAJOR > 1
30564         db_appexit( NULL );
30565 #else
30566         (void) dbopen( NULL, 0, 0, 0, NULL);
30567 #endif
30568
30569   ;
30570   return 0;
30571 }
30572 _ACEOF
30573 rm -f conftest.$ac_objext conftest$ac_exeext
30574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30575   (eval $ac_link) 2>conftest.er1
30576   ac_status=$?
30577   grep -v '^ *+' conftest.er1 >conftest.err
30578   rm -f conftest.er1
30579   cat conftest.err >&5
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); } &&
30582          { ac_try='test -z "$ac_c_werror_flag"
30583                          || test ! -s conftest.err'
30584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30585   (eval $ac_try) 2>&5
30586   ac_status=$?
30587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588   (exit $ac_status); }; } &&
30589          { ac_try='test -s conftest$ac_exeext'
30590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30591   (eval $ac_try) 2>&5
30592   ac_status=$?
30593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594   (exit $ac_status); }; }; then
30595   ol_cv_db_db2=yes
30596 else
30597   echo "$as_me: failed program was:" >&5
30598 sed 's/^/| /' conftest.$ac_ext >&5
30599
30600 ol_cv_db_db2=no
30601 fi
30602 rm -f conftest.err conftest.$ac_objext \
30603       conftest$ac_exeext conftest.$ac_ext
30604
30605         LIBS="$ol_LIBS"
30606
30607 fi
30608 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30609 echo "${ECHO_T}$ol_cv_db_db2" >&6
30610
30611         if test $ol_cv_db_db2 = yes ; then
30612                 ol_cv_lib_db=-ldb2
30613         fi
30614 fi
30615
30616         if test $ol_cv_lib_db = no ; then
30617         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30618 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30619 if test "${ol_cv_db_db_2+set}" = set; then
30620   echo $ECHO_N "(cached) $ECHO_C" >&6
30621 else
30622
30623         ol_DB_LIB=-ldb-2
30624         ol_LIBS=$LIBS
30625         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30626
30627         cat >conftest.$ac_ext <<_ACEOF
30628 /* confdefs.h.  */
30629 _ACEOF
30630 cat confdefs.h >>conftest.$ac_ext
30631 cat >>conftest.$ac_ext <<_ACEOF
30632 /* end confdefs.h.  */
30633
30634 #ifdef HAVE_DB_185_H
30635 # include <db_185.h>
30636 #else
30637 # include <db.h>
30638 #endif
30639
30640 #ifndef DB_VERSION_MAJOR
30641 # define DB_VERSION_MAJOR 1
30642 #endif
30643
30644 #ifndef NULL
30645 #define NULL ((void*)0)
30646 #endif
30647
30648 int
30649 main ()
30650 {
30651
30652 #if DB_VERSION_MAJOR > 1
30653         {
30654                 char *version;
30655                 int major, minor, patch;
30656
30657                 version = db_version( &major, &minor, &patch );
30658
30659                 if( major != DB_VERSION_MAJOR ||
30660                         minor < DB_VERSION_MINOR )
30661                 {
30662                         printf("Berkeley DB version mismatch\n"
30663                                 "\theader: %s\n\tlibrary: %s\n",
30664                                 DB_VERSION_STRING, version);
30665                         return 1;
30666                 }
30667         }
30668 #endif
30669
30670 #if DB_VERSION_MAJOR > 2
30671         db_env_create( NULL, 0 );
30672 #elif DB_VERSION_MAJOR > 1
30673         db_appexit( NULL );
30674 #else
30675         (void) dbopen( NULL, 0, 0, 0, NULL);
30676 #endif
30677
30678   ;
30679   return 0;
30680 }
30681 _ACEOF
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30684   (eval $ac_link) 2>conftest.er1
30685   ac_status=$?
30686   grep -v '^ *+' conftest.er1 >conftest.err
30687   rm -f conftest.er1
30688   cat conftest.err >&5
30689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690   (exit $ac_status); } &&
30691          { ac_try='test -z "$ac_c_werror_flag"
30692                          || test ! -s conftest.err'
30693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694   (eval $ac_try) 2>&5
30695   ac_status=$?
30696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697   (exit $ac_status); }; } &&
30698          { ac_try='test -s conftest$ac_exeext'
30699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30700   (eval $ac_try) 2>&5
30701   ac_status=$?
30702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703   (exit $ac_status); }; }; then
30704   ol_cv_db_db_2=yes
30705 else
30706   echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.$ac_ext >&5
30708
30709 ol_cv_db_db_2=no
30710 fi
30711 rm -f conftest.err conftest.$ac_objext \
30712       conftest$ac_exeext conftest.$ac_ext
30713
30714         LIBS="$ol_LIBS"
30715
30716 fi
30717 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30718 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30719
30720         if test $ol_cv_db_db_2 = yes ; then
30721                 ol_cv_lib_db=-ldb-2
30722         fi
30723 fi
30724
30725
30726 elif test $ol_cv_bdb_major = 1 ; then
30727         if test $ol_cv_lib_db = no ; then
30728         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30729 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30730 if test "${ol_cv_db_db1+set}" = set; then
30731   echo $ECHO_N "(cached) $ECHO_C" >&6
30732 else
30733
30734         ol_DB_LIB=-ldb1
30735         ol_LIBS=$LIBS
30736         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30737
30738         cat >conftest.$ac_ext <<_ACEOF
30739 /* confdefs.h.  */
30740 _ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h.  */
30744
30745 #ifdef HAVE_DB_185_H
30746 # include <db_185.h>
30747 #else
30748 # include <db.h>
30749 #endif
30750
30751 #ifndef DB_VERSION_MAJOR
30752 # define DB_VERSION_MAJOR 1
30753 #endif
30754
30755 #ifndef NULL
30756 #define NULL ((void*)0)
30757 #endif
30758
30759 int
30760 main ()
30761 {
30762
30763 #if DB_VERSION_MAJOR > 1
30764         {
30765                 char *version;
30766                 int major, minor, patch;
30767
30768                 version = db_version( &major, &minor, &patch );
30769
30770                 if( major != DB_VERSION_MAJOR ||
30771                         minor < DB_VERSION_MINOR )
30772                 {
30773                         printf("Berkeley DB version mismatch\n"
30774                                 "\theader: %s\n\tlibrary: %s\n",
30775                                 DB_VERSION_STRING, version);
30776                         return 1;
30777                 }
30778         }
30779 #endif
30780
30781 #if DB_VERSION_MAJOR > 2
30782         db_env_create( NULL, 0 );
30783 #elif DB_VERSION_MAJOR > 1
30784         db_appexit( NULL );
30785 #else
30786         (void) dbopen( NULL, 0, 0, 0, NULL);
30787 #endif
30788
30789   ;
30790   return 0;
30791 }
30792 _ACEOF
30793 rm -f conftest.$ac_objext conftest$ac_exeext
30794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30795   (eval $ac_link) 2>conftest.er1
30796   ac_status=$?
30797   grep -v '^ *+' conftest.er1 >conftest.err
30798   rm -f conftest.er1
30799   cat conftest.err >&5
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); } &&
30802          { ac_try='test -z "$ac_c_werror_flag"
30803                          || test ! -s conftest.err'
30804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805   (eval $ac_try) 2>&5
30806   ac_status=$?
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); }; } &&
30809          { ac_try='test -s conftest$ac_exeext'
30810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811   (eval $ac_try) 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; }; then
30815   ol_cv_db_db1=yes
30816 else
30817   echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30819
30820 ol_cv_db_db1=no
30821 fi
30822 rm -f conftest.err conftest.$ac_objext \
30823       conftest$ac_exeext conftest.$ac_ext
30824
30825         LIBS="$ol_LIBS"
30826
30827 fi
30828 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30829 echo "${ECHO_T}$ol_cv_db_db1" >&6
30830
30831         if test $ol_cv_db_db1 = yes ; then
30832                 ol_cv_lib_db=-ldb1
30833         fi
30834 fi
30835
30836         if test $ol_cv_lib_db = no ; then
30837         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30838 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30839 if test "${ol_cv_db_db_1+set}" = set; then
30840   echo $ECHO_N "(cached) $ECHO_C" >&6
30841 else
30842
30843         ol_DB_LIB=-ldb-1
30844         ol_LIBS=$LIBS
30845         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30846
30847         cat >conftest.$ac_ext <<_ACEOF
30848 /* confdefs.h.  */
30849 _ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h.  */
30853
30854 #ifdef HAVE_DB_185_H
30855 # include <db_185.h>
30856 #else
30857 # include <db.h>
30858 #endif
30859
30860 #ifndef DB_VERSION_MAJOR
30861 # define DB_VERSION_MAJOR 1
30862 #endif
30863
30864 #ifndef NULL
30865 #define NULL ((void*)0)
30866 #endif
30867
30868 int
30869 main ()
30870 {
30871
30872 #if DB_VERSION_MAJOR > 1
30873         {
30874                 char *version;
30875                 int major, minor, patch;
30876
30877                 version = db_version( &major, &minor, &patch );
30878
30879                 if( major != DB_VERSION_MAJOR ||
30880                         minor < DB_VERSION_MINOR )
30881                 {
30882                         printf("Berkeley DB version mismatch\n"
30883                                 "\theader: %s\n\tlibrary: %s\n",
30884                                 DB_VERSION_STRING, version);
30885                         return 1;
30886                 }
30887         }
30888 #endif
30889
30890 #if DB_VERSION_MAJOR > 2
30891         db_env_create( NULL, 0 );
30892 #elif DB_VERSION_MAJOR > 1
30893         db_appexit( NULL );
30894 #else
30895         (void) dbopen( NULL, 0, 0, 0, NULL);
30896 #endif
30897
30898   ;
30899   return 0;
30900 }
30901 _ACEOF
30902 rm -f conftest.$ac_objext conftest$ac_exeext
30903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30904   (eval $ac_link) 2>conftest.er1
30905   ac_status=$?
30906   grep -v '^ *+' conftest.er1 >conftest.err
30907   rm -f conftest.er1
30908   cat conftest.err >&5
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } &&
30911          { ac_try='test -z "$ac_c_werror_flag"
30912                          || test ! -s conftest.err'
30913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914   (eval $ac_try) 2>&5
30915   ac_status=$?
30916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917   (exit $ac_status); }; } &&
30918          { ac_try='test -s conftest$ac_exeext'
30919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30920   (eval $ac_try) 2>&5
30921   ac_status=$?
30922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923   (exit $ac_status); }; }; then
30924   ol_cv_db_db_1=yes
30925 else
30926   echo "$as_me: failed program was:" >&5
30927 sed 's/^/| /' conftest.$ac_ext >&5
30928
30929 ol_cv_db_db_1=no
30930 fi
30931 rm -f conftest.err conftest.$ac_objext \
30932       conftest$ac_exeext conftest.$ac_ext
30933
30934         LIBS="$ol_LIBS"
30935
30936 fi
30937 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30938 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30939
30940         if test $ol_cv_db_db_1 = yes ; then
30941                 ol_cv_lib_db=-ldb-1
30942         fi
30943 fi
30944
30945 fi
30946 if test $ol_cv_lib_db = no ; then
30947         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30948 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30949 if test "${ol_cv_db_none+set}" = set; then
30950   echo $ECHO_N "(cached) $ECHO_C" >&6
30951 else
30952
30953         ol_DB_LIB=
30954         ol_LIBS=$LIBS
30955         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30956
30957         cat >conftest.$ac_ext <<_ACEOF
30958 /* confdefs.h.  */
30959 _ACEOF
30960 cat confdefs.h >>conftest.$ac_ext
30961 cat >>conftest.$ac_ext <<_ACEOF
30962 /* end confdefs.h.  */
30963
30964 #ifdef HAVE_DB_185_H
30965 # include <db_185.h>
30966 #else
30967 # include <db.h>
30968 #endif
30969
30970 #ifndef DB_VERSION_MAJOR
30971 # define DB_VERSION_MAJOR 1
30972 #endif
30973
30974 #ifndef NULL
30975 #define NULL ((void*)0)
30976 #endif
30977
30978 int
30979 main ()
30980 {
30981
30982 #if DB_VERSION_MAJOR > 1
30983         {
30984                 char *version;
30985                 int major, minor, patch;
30986
30987                 version = db_version( &major, &minor, &patch );
30988
30989                 if( major != DB_VERSION_MAJOR ||
30990                         minor < DB_VERSION_MINOR )
30991                 {
30992                         printf("Berkeley DB version mismatch\n"
30993                                 "\theader: %s\n\tlibrary: %s\n",
30994                                 DB_VERSION_STRING, version);
30995                         return 1;
30996                 }
30997         }
30998 #endif
30999
31000 #if DB_VERSION_MAJOR > 2
31001         db_env_create( NULL, 0 );
31002 #elif DB_VERSION_MAJOR > 1
31003         db_appexit( NULL );
31004 #else
31005         (void) dbopen( NULL, 0, 0, 0, NULL);
31006 #endif
31007
31008   ;
31009   return 0;
31010 }
31011 _ACEOF
31012 rm -f conftest.$ac_objext conftest$ac_exeext
31013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31014   (eval $ac_link) 2>conftest.er1
31015   ac_status=$?
31016   grep -v '^ *+' conftest.er1 >conftest.err
31017   rm -f conftest.er1
31018   cat conftest.err >&5
31019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020   (exit $ac_status); } &&
31021          { ac_try='test -z "$ac_c_werror_flag"
31022                          || test ! -s conftest.err'
31023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024   (eval $ac_try) 2>&5
31025   ac_status=$?
31026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027   (exit $ac_status); }; } &&
31028          { ac_try='test -s conftest$ac_exeext'
31029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030   (eval $ac_try) 2>&5
31031   ac_status=$?
31032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); }; }; then
31034   ol_cv_db_none=yes
31035 else
31036   echo "$as_me: failed program was:" >&5
31037 sed 's/^/| /' conftest.$ac_ext >&5
31038
31039 ol_cv_db_none=no
31040 fi
31041 rm -f conftest.err conftest.$ac_objext \
31042       conftest$ac_exeext conftest.$ac_ext
31043
31044         LIBS="$ol_LIBS"
31045
31046 fi
31047 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31048 echo "${ECHO_T}$ol_cv_db_none" >&6
31049
31050         if test $ol_cv_db_none = yes ; then
31051                 ol_cv_lib_db=yes
31052         fi
31053 fi
31054
31055
31056                 if test "$ol_cv_lib_db" != no ; then
31057                         ol_cv_berkeley_db=yes
31058                 fi
31059         fi
31060 fi
31061
31062         else
31063                 ol_cv_berkeley_db=no
31064
31065 for ac_header in db.h
31066 do
31067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31069   echo "$as_me:$LINENO: checking for $ac_header" >&5
31070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 fi
31074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31076 else
31077   # Is the header compilable?
31078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31080 cat >conftest.$ac_ext <<_ACEOF
31081 /* confdefs.h.  */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h.  */
31086 $ac_includes_default
31087 #include <$ac_header>
31088 _ACEOF
31089 rm -f conftest.$ac_objext
31090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31091   (eval $ac_compile) 2>conftest.er1
31092   ac_status=$?
31093   grep -v '^ *+' conftest.er1 >conftest.err
31094   rm -f conftest.er1
31095   cat conftest.err >&5
31096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31097   (exit $ac_status); } &&
31098          { ac_try='test -z "$ac_c_werror_flag"
31099                          || test ! -s conftest.err'
31100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31101   (eval $ac_try) 2>&5
31102   ac_status=$?
31103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104   (exit $ac_status); }; } &&
31105          { ac_try='test -s conftest.$ac_objext'
31106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31107   (eval $ac_try) 2>&5
31108   ac_status=$?
31109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110   (exit $ac_status); }; }; then
31111   ac_header_compiler=yes
31112 else
31113   echo "$as_me: failed program was:" >&5
31114 sed 's/^/| /' conftest.$ac_ext >&5
31115
31116 ac_header_compiler=no
31117 fi
31118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31120 echo "${ECHO_T}$ac_header_compiler" >&6
31121
31122 # Is the header present?
31123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31125 cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131 #include <$ac_header>
31132 _ACEOF
31133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31135   ac_status=$?
31136   grep -v '^ *+' conftest.er1 >conftest.err
31137   rm -f conftest.er1
31138   cat conftest.err >&5
31139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140   (exit $ac_status); } >/dev/null; then
31141   if test -s conftest.err; then
31142     ac_cpp_err=$ac_c_preproc_warn_flag
31143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31144   else
31145     ac_cpp_err=
31146   fi
31147 else
31148   ac_cpp_err=yes
31149 fi
31150 if test -z "$ac_cpp_err"; then
31151   ac_header_preproc=yes
31152 else
31153   echo "$as_me: failed program was:" >&5
31154 sed 's/^/| /' conftest.$ac_ext >&5
31155
31156   ac_header_preproc=no
31157 fi
31158 rm -f conftest.err conftest.$ac_ext
31159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31160 echo "${ECHO_T}$ac_header_preproc" >&6
31161
31162 # So?  What about this header?
31163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31164   yes:no: )
31165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31169     ac_header_preproc=yes
31170     ;;
31171   no:yes:* )
31172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31184     (
31185       cat <<\_ASBOX
31186 ## ------------------------------------------ ##
31187 ## Report this to the AC_PACKAGE_NAME lists.  ##
31188 ## ------------------------------------------ ##
31189 _ASBOX
31190     ) |
31191       sed "s/^/$as_me: WARNING:     /" >&2
31192     ;;
31193 esac
31194 echo "$as_me:$LINENO: checking for $ac_header" >&5
31195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31197   echo $ECHO_N "(cached) $ECHO_C" >&6
31198 else
31199   eval "$as_ac_Header=\$ac_header_preproc"
31200 fi
31201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31203
31204 fi
31205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31206   cat >>confdefs.h <<_ACEOF
31207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31208 _ACEOF
31209
31210 fi
31211
31212 done
31213
31214 if test $ac_cv_header_db_h = yes; then
31215         ol_cv_lib_db=no
31216
31217 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
31218 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
31219 if test "${ol_cv_bdb_major+set}" = set; then
31220   echo $ECHO_N "(cached) $ECHO_C" >&6
31221 else
31222
31223         ol_cv_bdb_major=0
31224         if test $ol_cv_bdb_major = 0 ; then
31225                 cat >conftest.$ac_ext <<_ACEOF
31226 /* confdefs.h.  */
31227 _ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h.  */
31231
31232 #include <db.h>
31233 #ifndef DB_VERSION_MAJOR
31234 #       define DB_VERSION_MAJOR 1
31235 #endif
31236 #if DB_VERSION_MAJOR == 4
31237 __db_version
31238 #endif
31239
31240 _ACEOF
31241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31242   $EGREP "__db_version" >/dev/null 2>&1; then
31243   ol_cv_bdb_major=4
31244 else
31245   :
31246 fi
31247 rm -f conftest*
31248
31249         fi
31250         if test $ol_cv_bdb_major = 0 ; then
31251                 cat >conftest.$ac_ext <<_ACEOF
31252 /* confdefs.h.  */
31253 _ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h.  */
31257
31258 #include <db.h>
31259 #ifndef DB_VERSION_MAJOR
31260 #       define DB_VERSION_MAJOR 1
31261 #endif
31262 #if DB_VERSION_MAJOR == 3
31263 __db_version
31264 #endif
31265
31266 _ACEOF
31267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31268   $EGREP "__db_version" >/dev/null 2>&1; then
31269   ol_cv_bdb_major=3
31270 else
31271   :
31272 fi
31273 rm -f conftest*
31274
31275         fi
31276         if test $ol_cv_bdb_major = 0 ; then
31277                 cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h.  */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h.  */
31283
31284 #include <db.h>
31285 #ifndef DB_VERSION_MAJOR
31286 #       define DB_VERSION_MAJOR 1
31287 #endif
31288 #if DB_VERSION_MAJOR == 2
31289 __db_version
31290 #endif
31291
31292 _ACEOF
31293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31294   $EGREP "__db_version" >/dev/null 2>&1; then
31295   ol_cv_bdb_major=2
31296 else
31297   :
31298 fi
31299 rm -f conftest*
31300
31301         fi
31302         if test $ol_cv_bdb_major = 0 ; then
31303                 cat >conftest.$ac_ext <<_ACEOF
31304 /* confdefs.h.  */
31305 _ACEOF
31306 cat confdefs.h >>conftest.$ac_ext
31307 cat >>conftest.$ac_ext <<_ACEOF
31308 /* end confdefs.h.  */
31309
31310 #include <db.h>
31311 #ifndef DB_VERSION_MAJOR
31312 #       define DB_VERSION_MAJOR 1
31313 #endif
31314 #if DB_VERSION_MAJOR == 1
31315 __db_version
31316 #endif
31317
31318 _ACEOF
31319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31320   $EGREP "__db_version" >/dev/null 2>&1; then
31321   ol_cv_bdb_major=1
31322 else
31323   :
31324 fi
31325 rm -f conftest*
31326
31327         fi
31328
31329         if test $ol_cv_bdb_major = 0 ; then
31330                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
31331 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
31332    { (exit 1); exit 1; }; }
31333         fi
31334
31335 fi
31336 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
31337 echo "${ECHO_T}$ol_cv_bdb_major" >&6
31338
31339 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
31340 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
31341 if test "${ol_cv_bdb_minor+set}" = set; then
31342   echo $ECHO_N "(cached) $ECHO_C" >&6
31343 else
31344
31345         ol_cv_bdb_minor=0
31346         if test $ol_cv_bdb_minor = 0 ; then
31347                 cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h.  */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h.  */
31353
31354 #include <db.h>
31355 #ifndef DB_VERSION_MINOR
31356 #       define DB_VERSION_MINOR 0
31357 #endif
31358 #if DB_VERSION_MINOR == 9
31359 __db_version
31360 #endif
31361
31362 _ACEOF
31363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31364   $EGREP "__db_version" >/dev/null 2>&1; then
31365   ol_cv_bdb_minor=9
31366 else
31367   :
31368 fi
31369 rm -f conftest*
31370
31371         fi
31372         if test $ol_cv_bdb_minor = 0 ; then
31373                 cat >conftest.$ac_ext <<_ACEOF
31374 /* confdefs.h.  */
31375 _ACEOF
31376 cat confdefs.h >>conftest.$ac_ext
31377 cat >>conftest.$ac_ext <<_ACEOF
31378 /* end confdefs.h.  */
31379
31380 #include <db.h>
31381 #ifndef DB_VERSION_MINOR
31382 #       define DB_VERSION_MINOR 0
31383 #endif
31384 #if DB_VERSION_MINOR == 8
31385 __db_version
31386 #endif
31387
31388 _ACEOF
31389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31390   $EGREP "__db_version" >/dev/null 2>&1; then
31391   ol_cv_bdb_minor=8
31392 else
31393   :
31394 fi
31395 rm -f conftest*
31396
31397         fi
31398         if test $ol_cv_bdb_minor = 0 ; then
31399                 cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h.  */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h.  */
31405
31406 #include <db.h>
31407 #ifndef DB_VERSION_MINOR
31408 #       define DB_VERSION_MINOR 0
31409 #endif
31410 #if DB_VERSION_MINOR == 7
31411 __db_version
31412 #endif
31413
31414 _ACEOF
31415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31416   $EGREP "__db_version" >/dev/null 2>&1; then
31417   ol_cv_bdb_minor=7
31418 else
31419   :
31420 fi
31421 rm -f conftest*
31422
31423         fi
31424         if test $ol_cv_bdb_minor = 0 ; then
31425                 cat >conftest.$ac_ext <<_ACEOF
31426 /* confdefs.h.  */
31427 _ACEOF
31428 cat confdefs.h >>conftest.$ac_ext
31429 cat >>conftest.$ac_ext <<_ACEOF
31430 /* end confdefs.h.  */
31431
31432 #include <db.h>
31433 #ifndef DB_VERSION_MINOR
31434 #       define DB_VERSION_MINOR 0
31435 #endif
31436 #if DB_VERSION_MINOR == 6
31437 __db_version
31438 #endif
31439
31440 _ACEOF
31441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31442   $EGREP "__db_version" >/dev/null 2>&1; then
31443   ol_cv_bdb_minor=6
31444 else
31445   :
31446 fi
31447 rm -f conftest*
31448
31449         fi
31450         if test $ol_cv_bdb_minor = 0 ; then
31451                 cat >conftest.$ac_ext <<_ACEOF
31452 /* confdefs.h.  */
31453 _ACEOF
31454 cat confdefs.h >>conftest.$ac_ext
31455 cat >>conftest.$ac_ext <<_ACEOF
31456 /* end confdefs.h.  */
31457
31458 #include <db.h>
31459 #ifndef DB_VERSION_MINOR
31460 #       define DB_VERSION_MINOR 0
31461 #endif
31462 #if DB_VERSION_MINOR == 5
31463 __db_version
31464 #endif
31465
31466 _ACEOF
31467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31468   $EGREP "__db_version" >/dev/null 2>&1; then
31469   ol_cv_bdb_minor=5
31470 else
31471   :
31472 fi
31473 rm -f conftest*
31474
31475         fi
31476         if test $ol_cv_bdb_minor = 0 ; then
31477                 cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483
31484 #include <db.h>
31485 #ifndef DB_VERSION_MINOR
31486 #       define DB_VERSION_MINOR 0
31487 #endif
31488 #if DB_VERSION_MINOR == 4
31489 __db_version
31490 #endif
31491
31492 _ACEOF
31493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31494   $EGREP "__db_version" >/dev/null 2>&1; then
31495   ol_cv_bdb_minor=4
31496 else
31497   :
31498 fi
31499 rm -f conftest*
31500
31501         fi
31502         if test $ol_cv_bdb_minor = 0 ; then
31503                 cat >conftest.$ac_ext <<_ACEOF
31504 /* confdefs.h.  */
31505 _ACEOF
31506 cat confdefs.h >>conftest.$ac_ext
31507 cat >>conftest.$ac_ext <<_ACEOF
31508 /* end confdefs.h.  */
31509
31510 #include <db.h>
31511 #ifndef DB_VERSION_MINOR
31512 #       define DB_VERSION_MINOR 0
31513 #endif
31514 #if DB_VERSION_MINOR == 3
31515 __db_version
31516 #endif
31517
31518 _ACEOF
31519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31520   $EGREP "__db_version" >/dev/null 2>&1; then
31521   ol_cv_bdb_minor=3
31522 else
31523   :
31524 fi
31525 rm -f conftest*
31526
31527         fi
31528         if test $ol_cv_bdb_minor = 0 ; then
31529                 cat >conftest.$ac_ext <<_ACEOF
31530 /* confdefs.h.  */
31531 _ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h.  */
31535
31536 #include <db.h>
31537 #ifndef DB_VERSION_MINOR
31538 #       define DB_VERSION_MINOR 0
31539 #endif
31540 #if DB_VERSION_MINOR == 2
31541 __db_version
31542 #endif
31543
31544 _ACEOF
31545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31546   $EGREP "__db_version" >/dev/null 2>&1; then
31547   ol_cv_bdb_minor=2
31548 else
31549   :
31550 fi
31551 rm -f conftest*
31552
31553         fi
31554         if test $ol_cv_bdb_minor = 0 ; then
31555                 cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h.  */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h.  */
31561
31562 #include <db.h>
31563 #ifndef DB_VERSION_MINOR
31564 #       define DB_VERSION_MINOR 0
31565 #endif
31566 #if DB_VERSION_MINOR == 1
31567 __db_version
31568 #endif
31569
31570 _ACEOF
31571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31572   $EGREP "__db_version" >/dev/null 2>&1; then
31573   ol_cv_bdb_minor=1
31574 else
31575   :
31576 fi
31577 rm -f conftest*
31578
31579         fi
31580
31581 fi
31582 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
31583 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
31584
31585 if test $ol_cv_bdb_major = 4 ; then
31586         if test $ol_cv_bdb_minor = 4 ; then
31587                 if test $ol_cv_lib_db = no ; then
31588         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
31589 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
31590 if test "${ol_cv_db_db44+set}" = set; then
31591   echo $ECHO_N "(cached) $ECHO_C" >&6
31592 else
31593
31594         ol_DB_LIB=-ldb44
31595         ol_LIBS=$LIBS
31596         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31597
31598         cat >conftest.$ac_ext <<_ACEOF
31599 /* confdefs.h.  */
31600 _ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h.  */
31604
31605 #ifdef HAVE_DB_185_H
31606 # include <db_185.h>
31607 #else
31608 # include <db.h>
31609 #endif
31610
31611 #ifndef DB_VERSION_MAJOR
31612 # define DB_VERSION_MAJOR 1
31613 #endif
31614
31615 #ifndef NULL
31616 #define NULL ((void*)0)
31617 #endif
31618
31619 int
31620 main ()
31621 {
31622
31623 #if DB_VERSION_MAJOR > 1
31624         {
31625                 char *version;
31626                 int major, minor, patch;
31627
31628                 version = db_version( &major, &minor, &patch );
31629
31630                 if( major != DB_VERSION_MAJOR ||
31631                         minor < DB_VERSION_MINOR )
31632                 {
31633                         printf("Berkeley DB version mismatch\n"
31634                                 "\theader: %s\n\tlibrary: %s\n",
31635                                 DB_VERSION_STRING, version);
31636                         return 1;
31637                 }
31638         }
31639 #endif
31640
31641 #if DB_VERSION_MAJOR > 2
31642         db_env_create( NULL, 0 );
31643 #elif DB_VERSION_MAJOR > 1
31644         db_appexit( NULL );
31645 #else
31646         (void) dbopen( NULL, 0, 0, 0, NULL);
31647 #endif
31648
31649   ;
31650   return 0;
31651 }
31652 _ACEOF
31653 rm -f conftest.$ac_objext conftest$ac_exeext
31654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31655   (eval $ac_link) 2>conftest.er1
31656   ac_status=$?
31657   grep -v '^ *+' conftest.er1 >conftest.err
31658   rm -f conftest.er1
31659   cat conftest.err >&5
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); } &&
31662          { ac_try='test -z "$ac_c_werror_flag"
31663                          || test ! -s conftest.err'
31664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665   (eval $ac_try) 2>&5
31666   ac_status=$?
31667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668   (exit $ac_status); }; } &&
31669          { ac_try='test -s conftest$ac_exeext'
31670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671   (eval $ac_try) 2>&5
31672   ac_status=$?
31673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674   (exit $ac_status); }; }; then
31675   ol_cv_db_db44=yes
31676 else
31677   echo "$as_me: failed program was:" >&5
31678 sed 's/^/| /' conftest.$ac_ext >&5
31679
31680 ol_cv_db_db44=no
31681 fi
31682 rm -f conftest.err conftest.$ac_objext \
31683       conftest$ac_exeext conftest.$ac_ext
31684
31685         LIBS="$ol_LIBS"
31686
31687 fi
31688 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
31689 echo "${ECHO_T}$ol_cv_db_db44" >&6
31690
31691         if test $ol_cv_db_db44 = yes ; then
31692                 ol_cv_lib_db=-ldb44
31693         fi
31694 fi
31695
31696                 if test $ol_cv_lib_db = no ; then
31697         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
31698 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
31699 if test "${ol_cv_db_db_44+set}" = set; then
31700   echo $ECHO_N "(cached) $ECHO_C" >&6
31701 else
31702
31703         ol_DB_LIB=-ldb-44
31704         ol_LIBS=$LIBS
31705         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31706
31707         cat >conftest.$ac_ext <<_ACEOF
31708 /* confdefs.h.  */
31709 _ACEOF
31710 cat confdefs.h >>conftest.$ac_ext
31711 cat >>conftest.$ac_ext <<_ACEOF
31712 /* end confdefs.h.  */
31713
31714 #ifdef HAVE_DB_185_H
31715 # include <db_185.h>
31716 #else
31717 # include <db.h>
31718 #endif
31719
31720 #ifndef DB_VERSION_MAJOR
31721 # define DB_VERSION_MAJOR 1
31722 #endif
31723
31724 #ifndef NULL
31725 #define NULL ((void*)0)
31726 #endif
31727
31728 int
31729 main ()
31730 {
31731
31732 #if DB_VERSION_MAJOR > 1
31733         {
31734                 char *version;
31735                 int major, minor, patch;
31736
31737                 version = db_version( &major, &minor, &patch );
31738
31739                 if( major != DB_VERSION_MAJOR ||
31740                         minor < DB_VERSION_MINOR )
31741                 {
31742                         printf("Berkeley DB version mismatch\n"
31743                                 "\theader: %s\n\tlibrary: %s\n",
31744                                 DB_VERSION_STRING, version);
31745                         return 1;
31746                 }
31747         }
31748 #endif
31749
31750 #if DB_VERSION_MAJOR > 2
31751         db_env_create( NULL, 0 );
31752 #elif DB_VERSION_MAJOR > 1
31753         db_appexit( NULL );
31754 #else
31755         (void) dbopen( NULL, 0, 0, 0, NULL);
31756 #endif
31757
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext conftest$ac_exeext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31764   (eval $ac_link) 2>conftest.er1
31765   ac_status=$?
31766   grep -v '^ *+' conftest.er1 >conftest.err
31767   rm -f conftest.er1
31768   cat conftest.err >&5
31769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770   (exit $ac_status); } &&
31771          { ac_try='test -z "$ac_c_werror_flag"
31772                          || test ! -s conftest.err'
31773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774   (eval $ac_try) 2>&5
31775   ac_status=$?
31776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777   (exit $ac_status); }; } &&
31778          { ac_try='test -s conftest$ac_exeext'
31779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780   (eval $ac_try) 2>&5
31781   ac_status=$?
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); }; }; then
31784   ol_cv_db_db_44=yes
31785 else
31786   echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31788
31789 ol_cv_db_db_44=no
31790 fi
31791 rm -f conftest.err conftest.$ac_objext \
31792       conftest$ac_exeext conftest.$ac_ext
31793
31794         LIBS="$ol_LIBS"
31795
31796 fi
31797 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
31798 echo "${ECHO_T}$ol_cv_db_db_44" >&6
31799
31800         if test $ol_cv_db_db_44 = yes ; then
31801                 ol_cv_lib_db=-ldb-44
31802         fi
31803 fi
31804
31805                 if test $ol_cv_lib_db = no ; then
31806         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
31807 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
31808 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
31809   echo $ECHO_N "(cached) $ECHO_C" >&6
31810 else
31811
31812         ol_DB_LIB=-ldb-4.4
31813         ol_LIBS=$LIBS
31814         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31815
31816         cat >conftest.$ac_ext <<_ACEOF
31817 /* confdefs.h.  */
31818 _ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h.  */
31822
31823 #ifdef HAVE_DB_185_H
31824 # include <db_185.h>
31825 #else
31826 # include <db.h>
31827 #endif
31828
31829 #ifndef DB_VERSION_MAJOR
31830 # define DB_VERSION_MAJOR 1
31831 #endif
31832
31833 #ifndef NULL
31834 #define NULL ((void*)0)
31835 #endif
31836
31837 int
31838 main ()
31839 {
31840
31841 #if DB_VERSION_MAJOR > 1
31842         {
31843                 char *version;
31844                 int major, minor, patch;
31845
31846                 version = db_version( &major, &minor, &patch );
31847
31848                 if( major != DB_VERSION_MAJOR ||
31849                         minor < DB_VERSION_MINOR )
31850                 {
31851                         printf("Berkeley DB version mismatch\n"
31852                                 "\theader: %s\n\tlibrary: %s\n",
31853                                 DB_VERSION_STRING, version);
31854                         return 1;
31855                 }
31856         }
31857 #endif
31858
31859 #if DB_VERSION_MAJOR > 2
31860         db_env_create( NULL, 0 );
31861 #elif DB_VERSION_MAJOR > 1
31862         db_appexit( NULL );
31863 #else
31864         (void) dbopen( NULL, 0, 0, 0, NULL);
31865 #endif
31866
31867   ;
31868   return 0;
31869 }
31870 _ACEOF
31871 rm -f conftest.$ac_objext conftest$ac_exeext
31872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31873   (eval $ac_link) 2>conftest.er1
31874   ac_status=$?
31875   grep -v '^ *+' conftest.er1 >conftest.err
31876   rm -f conftest.er1
31877   cat conftest.err >&5
31878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879   (exit $ac_status); } &&
31880          { ac_try='test -z "$ac_c_werror_flag"
31881                          || test ! -s conftest.err'
31882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31883   (eval $ac_try) 2>&5
31884   ac_status=$?
31885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886   (exit $ac_status); }; } &&
31887          { ac_try='test -s conftest$ac_exeext'
31888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889   (eval $ac_try) 2>&5
31890   ac_status=$?
31891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892   (exit $ac_status); }; }; then
31893   ol_cv_db_db_4_dot_4=yes
31894 else
31895   echo "$as_me: failed program was:" >&5
31896 sed 's/^/| /' conftest.$ac_ext >&5
31897
31898 ol_cv_db_db_4_dot_4=no
31899 fi
31900 rm -f conftest.err conftest.$ac_objext \
31901       conftest$ac_exeext conftest.$ac_ext
31902
31903         LIBS="$ol_LIBS"
31904
31905 fi
31906 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
31907 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
31908
31909         if test $ol_cv_db_db_4_dot_4 = yes ; then
31910                 ol_cv_lib_db=-ldb-4.4
31911         fi
31912 fi
31913
31914                 if test $ol_cv_lib_db = no ; then
31915         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
31916 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
31917 if test "${ol_cv_db_db_4_4+set}" = set; then
31918   echo $ECHO_N "(cached) $ECHO_C" >&6
31919 else
31920
31921         ol_DB_LIB=-ldb-4-4
31922         ol_LIBS=$LIBS
31923         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31924
31925         cat >conftest.$ac_ext <<_ACEOF
31926 /* confdefs.h.  */
31927 _ACEOF
31928 cat confdefs.h >>conftest.$ac_ext
31929 cat >>conftest.$ac_ext <<_ACEOF
31930 /* end confdefs.h.  */
31931
31932 #ifdef HAVE_DB_185_H
31933 # include <db_185.h>
31934 #else
31935 # include <db.h>
31936 #endif
31937
31938 #ifndef DB_VERSION_MAJOR
31939 # define DB_VERSION_MAJOR 1
31940 #endif
31941
31942 #ifndef NULL
31943 #define NULL ((void*)0)
31944 #endif
31945
31946 int
31947 main ()
31948 {
31949
31950 #if DB_VERSION_MAJOR > 1
31951         {
31952                 char *version;
31953                 int major, minor, patch;
31954
31955                 version = db_version( &major, &minor, &patch );
31956
31957                 if( major != DB_VERSION_MAJOR ||
31958                         minor < DB_VERSION_MINOR )
31959                 {
31960                         printf("Berkeley DB version mismatch\n"
31961                                 "\theader: %s\n\tlibrary: %s\n",
31962                                 DB_VERSION_STRING, version);
31963                         return 1;
31964                 }
31965         }
31966 #endif
31967
31968 #if DB_VERSION_MAJOR > 2
31969         db_env_create( NULL, 0 );
31970 #elif DB_VERSION_MAJOR > 1
31971         db_appexit( NULL );
31972 #else
31973         (void) dbopen( NULL, 0, 0, 0, NULL);
31974 #endif
31975
31976   ;
31977   return 0;
31978 }
31979 _ACEOF
31980 rm -f conftest.$ac_objext conftest$ac_exeext
31981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31982   (eval $ac_link) 2>conftest.er1
31983   ac_status=$?
31984   grep -v '^ *+' conftest.er1 >conftest.err
31985   rm -f conftest.er1
31986   cat conftest.err >&5
31987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988   (exit $ac_status); } &&
31989          { ac_try='test -z "$ac_c_werror_flag"
31990                          || test ! -s conftest.err'
31991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31992   (eval $ac_try) 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; } &&
31996          { ac_try='test -s conftest$ac_exeext'
31997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998   (eval $ac_try) 2>&5
31999   ac_status=$?
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); }; }; then
32002   ol_cv_db_db_4_4=yes
32003 else
32004   echo "$as_me: failed program was:" >&5
32005 sed 's/^/| /' conftest.$ac_ext >&5
32006
32007 ol_cv_db_db_4_4=no
32008 fi
32009 rm -f conftest.err conftest.$ac_objext \
32010       conftest$ac_exeext conftest.$ac_ext
32011
32012         LIBS="$ol_LIBS"
32013
32014 fi
32015 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
32016 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
32017
32018         if test $ol_cv_db_db_4_4 = yes ; then
32019                 ol_cv_lib_db=-ldb-4-4
32020         fi
32021 fi
32022
32023         elif test $ol_cv_bdb_minor = 3 ; then
32024                 if test $ol_cv_lib_db = no ; then
32025         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
32026 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
32027 if test "${ol_cv_db_db43+set}" = set; then
32028   echo $ECHO_N "(cached) $ECHO_C" >&6
32029 else
32030
32031         ol_DB_LIB=-ldb43
32032         ol_LIBS=$LIBS
32033         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32034
32035         cat >conftest.$ac_ext <<_ACEOF
32036 /* confdefs.h.  */
32037 _ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h.  */
32041
32042 #ifdef HAVE_DB_185_H
32043 # include <db_185.h>
32044 #else
32045 # include <db.h>
32046 #endif
32047
32048 #ifndef DB_VERSION_MAJOR
32049 # define DB_VERSION_MAJOR 1
32050 #endif
32051
32052 #ifndef NULL
32053 #define NULL ((void*)0)
32054 #endif
32055
32056 int
32057 main ()
32058 {
32059
32060 #if DB_VERSION_MAJOR > 1
32061         {
32062                 char *version;
32063                 int major, minor, patch;
32064
32065                 version = db_version( &major, &minor, &patch );
32066
32067                 if( major != DB_VERSION_MAJOR ||
32068                         minor < DB_VERSION_MINOR )
32069                 {
32070                         printf("Berkeley DB version mismatch\n"
32071                                 "\theader: %s\n\tlibrary: %s\n",
32072                                 DB_VERSION_STRING, version);
32073                         return 1;
32074                 }
32075         }
32076 #endif
32077
32078 #if DB_VERSION_MAJOR > 2
32079         db_env_create( NULL, 0 );
32080 #elif DB_VERSION_MAJOR > 1
32081         db_appexit( NULL );
32082 #else
32083         (void) dbopen( NULL, 0, 0, 0, NULL);
32084 #endif
32085
32086   ;
32087   return 0;
32088 }
32089 _ACEOF
32090 rm -f conftest.$ac_objext conftest$ac_exeext
32091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32092   (eval $ac_link) 2>conftest.er1
32093   ac_status=$?
32094   grep -v '^ *+' conftest.er1 >conftest.err
32095   rm -f conftest.er1
32096   cat conftest.err >&5
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); } &&
32099          { ac_try='test -z "$ac_c_werror_flag"
32100                          || test ! -s conftest.err'
32101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32102   (eval $ac_try) 2>&5
32103   ac_status=$?
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); }; } &&
32106          { ac_try='test -s conftest$ac_exeext'
32107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108   (eval $ac_try) 2>&5
32109   ac_status=$?
32110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111   (exit $ac_status); }; }; then
32112   ol_cv_db_db43=yes
32113 else
32114   echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32116
32117 ol_cv_db_db43=no
32118 fi
32119 rm -f conftest.err conftest.$ac_objext \
32120       conftest$ac_exeext conftest.$ac_ext
32121
32122         LIBS="$ol_LIBS"
32123
32124 fi
32125 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
32126 echo "${ECHO_T}$ol_cv_db_db43" >&6
32127
32128         if test $ol_cv_db_db43 = yes ; then
32129                 ol_cv_lib_db=-ldb43
32130         fi
32131 fi
32132
32133                 if test $ol_cv_lib_db = no ; then
32134         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
32135 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
32136 if test "${ol_cv_db_db_43+set}" = set; then
32137   echo $ECHO_N "(cached) $ECHO_C" >&6
32138 else
32139
32140         ol_DB_LIB=-ldb-43
32141         ol_LIBS=$LIBS
32142         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32143
32144         cat >conftest.$ac_ext <<_ACEOF
32145 /* confdefs.h.  */
32146 _ACEOF
32147 cat confdefs.h >>conftest.$ac_ext
32148 cat >>conftest.$ac_ext <<_ACEOF
32149 /* end confdefs.h.  */
32150
32151 #ifdef HAVE_DB_185_H
32152 # include <db_185.h>
32153 #else
32154 # include <db.h>
32155 #endif
32156
32157 #ifndef DB_VERSION_MAJOR
32158 # define DB_VERSION_MAJOR 1
32159 #endif
32160
32161 #ifndef NULL
32162 #define NULL ((void*)0)
32163 #endif
32164
32165 int
32166 main ()
32167 {
32168
32169 #if DB_VERSION_MAJOR > 1
32170         {
32171                 char *version;
32172                 int major, minor, patch;
32173
32174                 version = db_version( &major, &minor, &patch );
32175
32176                 if( major != DB_VERSION_MAJOR ||
32177                         minor < DB_VERSION_MINOR )
32178                 {
32179                         printf("Berkeley DB version mismatch\n"
32180                                 "\theader: %s\n\tlibrary: %s\n",
32181                                 DB_VERSION_STRING, version);
32182                         return 1;
32183                 }
32184         }
32185 #endif
32186
32187 #if DB_VERSION_MAJOR > 2
32188         db_env_create( NULL, 0 );
32189 #elif DB_VERSION_MAJOR > 1
32190         db_appexit( NULL );
32191 #else
32192         (void) dbopen( NULL, 0, 0, 0, NULL);
32193 #endif
32194
32195   ;
32196   return 0;
32197 }
32198 _ACEOF
32199 rm -f conftest.$ac_objext conftest$ac_exeext
32200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32201   (eval $ac_link) 2>conftest.er1
32202   ac_status=$?
32203   grep -v '^ *+' conftest.er1 >conftest.err
32204   rm -f conftest.er1
32205   cat conftest.err >&5
32206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207   (exit $ac_status); } &&
32208          { ac_try='test -z "$ac_c_werror_flag"
32209                          || test ! -s conftest.err'
32210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211   (eval $ac_try) 2>&5
32212   ac_status=$?
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); }; } &&
32215          { ac_try='test -s conftest$ac_exeext'
32216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32217   (eval $ac_try) 2>&5
32218   ac_status=$?
32219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220   (exit $ac_status); }; }; then
32221   ol_cv_db_db_43=yes
32222 else
32223   echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226 ol_cv_db_db_43=no
32227 fi
32228 rm -f conftest.err conftest.$ac_objext \
32229       conftest$ac_exeext conftest.$ac_ext
32230
32231         LIBS="$ol_LIBS"
32232
32233 fi
32234 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
32235 echo "${ECHO_T}$ol_cv_db_db_43" >&6
32236
32237         if test $ol_cv_db_db_43 = yes ; then
32238                 ol_cv_lib_db=-ldb-43
32239         fi
32240 fi
32241
32242                 if test $ol_cv_lib_db = no ; then
32243         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
32244 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
32245 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
32246   echo $ECHO_N "(cached) $ECHO_C" >&6
32247 else
32248
32249         ol_DB_LIB=-ldb-4.3
32250         ol_LIBS=$LIBS
32251         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32252
32253         cat >conftest.$ac_ext <<_ACEOF
32254 /* confdefs.h.  */
32255 _ACEOF
32256 cat confdefs.h >>conftest.$ac_ext
32257 cat >>conftest.$ac_ext <<_ACEOF
32258 /* end confdefs.h.  */
32259
32260 #ifdef HAVE_DB_185_H
32261 # include <db_185.h>
32262 #else
32263 # include <db.h>
32264 #endif
32265
32266 #ifndef DB_VERSION_MAJOR
32267 # define DB_VERSION_MAJOR 1
32268 #endif
32269
32270 #ifndef NULL
32271 #define NULL ((void*)0)
32272 #endif
32273
32274 int
32275 main ()
32276 {
32277
32278 #if DB_VERSION_MAJOR > 1
32279         {
32280                 char *version;
32281                 int major, minor, patch;
32282
32283                 version = db_version( &major, &minor, &patch );
32284
32285                 if( major != DB_VERSION_MAJOR ||
32286                         minor < DB_VERSION_MINOR )
32287                 {
32288                         printf("Berkeley DB version mismatch\n"
32289                                 "\theader: %s\n\tlibrary: %s\n",
32290                                 DB_VERSION_STRING, version);
32291                         return 1;
32292                 }
32293         }
32294 #endif
32295
32296 #if DB_VERSION_MAJOR > 2
32297         db_env_create( NULL, 0 );
32298 #elif DB_VERSION_MAJOR > 1
32299         db_appexit( NULL );
32300 #else
32301         (void) dbopen( NULL, 0, 0, 0, NULL);
32302 #endif
32303
32304   ;
32305   return 0;
32306 }
32307 _ACEOF
32308 rm -f conftest.$ac_objext conftest$ac_exeext
32309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32310   (eval $ac_link) 2>conftest.er1
32311   ac_status=$?
32312   grep -v '^ *+' conftest.er1 >conftest.err
32313   rm -f conftest.er1
32314   cat conftest.err >&5
32315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316   (exit $ac_status); } &&
32317          { ac_try='test -z "$ac_c_werror_flag"
32318                          || test ! -s conftest.err'
32319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32320   (eval $ac_try) 2>&5
32321   ac_status=$?
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); }; } &&
32324          { ac_try='test -s conftest$ac_exeext'
32325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32326   (eval $ac_try) 2>&5
32327   ac_status=$?
32328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329   (exit $ac_status); }; }; then
32330   ol_cv_db_db_4_dot_3=yes
32331 else
32332   echo "$as_me: failed program was:" >&5
32333 sed 's/^/| /' conftest.$ac_ext >&5
32334
32335 ol_cv_db_db_4_dot_3=no
32336 fi
32337 rm -f conftest.err conftest.$ac_objext \
32338       conftest$ac_exeext conftest.$ac_ext
32339
32340         LIBS="$ol_LIBS"
32341
32342 fi
32343 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
32344 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
32345
32346         if test $ol_cv_db_db_4_dot_3 = yes ; then
32347                 ol_cv_lib_db=-ldb-4.3
32348         fi
32349 fi
32350
32351                 if test $ol_cv_lib_db = no ; then
32352         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
32353 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
32354 if test "${ol_cv_db_db_4_3+set}" = set; then
32355   echo $ECHO_N "(cached) $ECHO_C" >&6
32356 else
32357
32358         ol_DB_LIB=-ldb-4-3
32359         ol_LIBS=$LIBS
32360         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32361
32362         cat >conftest.$ac_ext <<_ACEOF
32363 /* confdefs.h.  */
32364 _ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h.  */
32368
32369 #ifdef HAVE_DB_185_H
32370 # include <db_185.h>
32371 #else
32372 # include <db.h>
32373 #endif
32374
32375 #ifndef DB_VERSION_MAJOR
32376 # define DB_VERSION_MAJOR 1
32377 #endif
32378
32379 #ifndef NULL
32380 #define NULL ((void*)0)
32381 #endif
32382
32383 int
32384 main ()
32385 {
32386
32387 #if DB_VERSION_MAJOR > 1
32388         {
32389                 char *version;
32390                 int major, minor, patch;
32391
32392                 version = db_version( &major, &minor, &patch );
32393
32394                 if( major != DB_VERSION_MAJOR ||
32395                         minor < DB_VERSION_MINOR )
32396                 {
32397                         printf("Berkeley DB version mismatch\n"
32398                                 "\theader: %s\n\tlibrary: %s\n",
32399                                 DB_VERSION_STRING, version);
32400                         return 1;
32401                 }
32402         }
32403 #endif
32404
32405 #if DB_VERSION_MAJOR > 2
32406         db_env_create( NULL, 0 );
32407 #elif DB_VERSION_MAJOR > 1
32408         db_appexit( NULL );
32409 #else
32410         (void) dbopen( NULL, 0, 0, 0, NULL);
32411 #endif
32412
32413   ;
32414   return 0;
32415 }
32416 _ACEOF
32417 rm -f conftest.$ac_objext conftest$ac_exeext
32418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32419   (eval $ac_link) 2>conftest.er1
32420   ac_status=$?
32421   grep -v '^ *+' conftest.er1 >conftest.err
32422   rm -f conftest.er1
32423   cat conftest.err >&5
32424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425   (exit $ac_status); } &&
32426          { ac_try='test -z "$ac_c_werror_flag"
32427                          || test ! -s conftest.err'
32428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32429   (eval $ac_try) 2>&5
32430   ac_status=$?
32431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432   (exit $ac_status); }; } &&
32433          { ac_try='test -s conftest$ac_exeext'
32434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435   (eval $ac_try) 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); }; }; then
32439   ol_cv_db_db_4_3=yes
32440 else
32441   echo "$as_me: failed program was:" >&5
32442 sed 's/^/| /' conftest.$ac_ext >&5
32443
32444 ol_cv_db_db_4_3=no
32445 fi
32446 rm -f conftest.err conftest.$ac_objext \
32447       conftest$ac_exeext conftest.$ac_ext
32448
32449         LIBS="$ol_LIBS"
32450
32451 fi
32452 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
32453 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
32454
32455         if test $ol_cv_db_db_4_3 = yes ; then
32456                 ol_cv_lib_db=-ldb-4-3
32457         fi
32458 fi
32459
32460         elif test $ol_cv_bdb_minor = 2 ; then
32461                 if test $ol_cv_lib_db = no ; then
32462         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
32463 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
32464 if test "${ol_cv_db_db42+set}" = set; then
32465   echo $ECHO_N "(cached) $ECHO_C" >&6
32466 else
32467
32468         ol_DB_LIB=-ldb42
32469         ol_LIBS=$LIBS
32470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32471
32472         cat >conftest.$ac_ext <<_ACEOF
32473 /* confdefs.h.  */
32474 _ACEOF
32475 cat confdefs.h >>conftest.$ac_ext
32476 cat >>conftest.$ac_ext <<_ACEOF
32477 /* end confdefs.h.  */
32478
32479 #ifdef HAVE_DB_185_H
32480 # include <db_185.h>
32481 #else
32482 # include <db.h>
32483 #endif
32484
32485 #ifndef DB_VERSION_MAJOR
32486 # define DB_VERSION_MAJOR 1
32487 #endif
32488
32489 #ifndef NULL
32490 #define NULL ((void*)0)
32491 #endif
32492
32493 int
32494 main ()
32495 {
32496
32497 #if DB_VERSION_MAJOR > 1
32498         {
32499                 char *version;
32500                 int major, minor, patch;
32501
32502                 version = db_version( &major, &minor, &patch );
32503
32504                 if( major != DB_VERSION_MAJOR ||
32505                         minor < DB_VERSION_MINOR )
32506                 {
32507                         printf("Berkeley DB version mismatch\n"
32508                                 "\theader: %s\n\tlibrary: %s\n",
32509                                 DB_VERSION_STRING, version);
32510                         return 1;
32511                 }
32512         }
32513 #endif
32514
32515 #if DB_VERSION_MAJOR > 2
32516         db_env_create( NULL, 0 );
32517 #elif DB_VERSION_MAJOR > 1
32518         db_appexit( NULL );
32519 #else
32520         (void) dbopen( NULL, 0, 0, 0, NULL);
32521 #endif
32522
32523   ;
32524   return 0;
32525 }
32526 _ACEOF
32527 rm -f conftest.$ac_objext conftest$ac_exeext
32528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32529   (eval $ac_link) 2>conftest.er1
32530   ac_status=$?
32531   grep -v '^ *+' conftest.er1 >conftest.err
32532   rm -f conftest.er1
32533   cat conftest.err >&5
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); } &&
32536          { ac_try='test -z "$ac_c_werror_flag"
32537                          || test ! -s conftest.err'
32538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32539   (eval $ac_try) 2>&5
32540   ac_status=$?
32541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542   (exit $ac_status); }; } &&
32543          { ac_try='test -s conftest$ac_exeext'
32544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32545   (eval $ac_try) 2>&5
32546   ac_status=$?
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); }; }; then
32549   ol_cv_db_db42=yes
32550 else
32551   echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32553
32554 ol_cv_db_db42=no
32555 fi
32556 rm -f conftest.err conftest.$ac_objext \
32557       conftest$ac_exeext conftest.$ac_ext
32558
32559         LIBS="$ol_LIBS"
32560
32561 fi
32562 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
32563 echo "${ECHO_T}$ol_cv_db_db42" >&6
32564
32565         if test $ol_cv_db_db42 = yes ; then
32566                 ol_cv_lib_db=-ldb42
32567         fi
32568 fi
32569
32570                 if test $ol_cv_lib_db = no ; then
32571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
32572 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
32573 if test "${ol_cv_db_db_42+set}" = set; then
32574   echo $ECHO_N "(cached) $ECHO_C" >&6
32575 else
32576
32577         ol_DB_LIB=-ldb-42
32578         ol_LIBS=$LIBS
32579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32580
32581         cat >conftest.$ac_ext <<_ACEOF
32582 /* confdefs.h.  */
32583 _ACEOF
32584 cat confdefs.h >>conftest.$ac_ext
32585 cat >>conftest.$ac_ext <<_ACEOF
32586 /* end confdefs.h.  */
32587
32588 #ifdef HAVE_DB_185_H
32589 # include <db_185.h>
32590 #else
32591 # include <db.h>
32592 #endif
32593
32594 #ifndef DB_VERSION_MAJOR
32595 # define DB_VERSION_MAJOR 1
32596 #endif
32597
32598 #ifndef NULL
32599 #define NULL ((void*)0)
32600 #endif
32601
32602 int
32603 main ()
32604 {
32605
32606 #if DB_VERSION_MAJOR > 1
32607         {
32608                 char *version;
32609                 int major, minor, patch;
32610
32611                 version = db_version( &major, &minor, &patch );
32612
32613                 if( major != DB_VERSION_MAJOR ||
32614                         minor < DB_VERSION_MINOR )
32615                 {
32616                         printf("Berkeley DB version mismatch\n"
32617                                 "\theader: %s\n\tlibrary: %s\n",
32618                                 DB_VERSION_STRING, version);
32619                         return 1;
32620                 }
32621         }
32622 #endif
32623
32624 #if DB_VERSION_MAJOR > 2
32625         db_env_create( NULL, 0 );
32626 #elif DB_VERSION_MAJOR > 1
32627         db_appexit( NULL );
32628 #else
32629         (void) dbopen( NULL, 0, 0, 0, NULL);
32630 #endif
32631
32632   ;
32633   return 0;
32634 }
32635 _ACEOF
32636 rm -f conftest.$ac_objext conftest$ac_exeext
32637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32638   (eval $ac_link) 2>conftest.er1
32639   ac_status=$?
32640   grep -v '^ *+' conftest.er1 >conftest.err
32641   rm -f conftest.er1
32642   cat conftest.err >&5
32643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644   (exit $ac_status); } &&
32645          { ac_try='test -z "$ac_c_werror_flag"
32646                          || test ! -s conftest.err'
32647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648   (eval $ac_try) 2>&5
32649   ac_status=$?
32650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651   (exit $ac_status); }; } &&
32652          { ac_try='test -s conftest$ac_exeext'
32653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654   (eval $ac_try) 2>&5
32655   ac_status=$?
32656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657   (exit $ac_status); }; }; then
32658   ol_cv_db_db_42=yes
32659 else
32660   echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663 ol_cv_db_db_42=no
32664 fi
32665 rm -f conftest.err conftest.$ac_objext \
32666       conftest$ac_exeext conftest.$ac_ext
32667
32668         LIBS="$ol_LIBS"
32669
32670 fi
32671 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
32672 echo "${ECHO_T}$ol_cv_db_db_42" >&6
32673
32674         if test $ol_cv_db_db_42 = yes ; then
32675                 ol_cv_lib_db=-ldb-42
32676         fi
32677 fi
32678
32679                 if test $ol_cv_lib_db = no ; then
32680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
32681 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
32682 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
32683   echo $ECHO_N "(cached) $ECHO_C" >&6
32684 else
32685
32686         ol_DB_LIB=-ldb-4.2
32687         ol_LIBS=$LIBS
32688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32689
32690         cat >conftest.$ac_ext <<_ACEOF
32691 /* confdefs.h.  */
32692 _ACEOF
32693 cat confdefs.h >>conftest.$ac_ext
32694 cat >>conftest.$ac_ext <<_ACEOF
32695 /* end confdefs.h.  */
32696
32697 #ifdef HAVE_DB_185_H
32698 # include <db_185.h>
32699 #else
32700 # include <db.h>
32701 #endif
32702
32703 #ifndef DB_VERSION_MAJOR
32704 # define DB_VERSION_MAJOR 1
32705 #endif
32706
32707 #ifndef NULL
32708 #define NULL ((void*)0)
32709 #endif
32710
32711 int
32712 main ()
32713 {
32714
32715 #if DB_VERSION_MAJOR > 1
32716         {
32717                 char *version;
32718                 int major, minor, patch;
32719
32720                 version = db_version( &major, &minor, &patch );
32721
32722                 if( major != DB_VERSION_MAJOR ||
32723                         minor < DB_VERSION_MINOR )
32724                 {
32725                         printf("Berkeley DB version mismatch\n"
32726                                 "\theader: %s\n\tlibrary: %s\n",
32727                                 DB_VERSION_STRING, version);
32728                         return 1;
32729                 }
32730         }
32731 #endif
32732
32733 #if DB_VERSION_MAJOR > 2
32734         db_env_create( NULL, 0 );
32735 #elif DB_VERSION_MAJOR > 1
32736         db_appexit( NULL );
32737 #else
32738         (void) dbopen( NULL, 0, 0, 0, NULL);
32739 #endif
32740
32741   ;
32742   return 0;
32743 }
32744 _ACEOF
32745 rm -f conftest.$ac_objext conftest$ac_exeext
32746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32747   (eval $ac_link) 2>conftest.er1
32748   ac_status=$?
32749   grep -v '^ *+' conftest.er1 >conftest.err
32750   rm -f conftest.er1
32751   cat conftest.err >&5
32752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753   (exit $ac_status); } &&
32754          { ac_try='test -z "$ac_c_werror_flag"
32755                          || test ! -s conftest.err'
32756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757   (eval $ac_try) 2>&5
32758   ac_status=$?
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); }; } &&
32761          { ac_try='test -s conftest$ac_exeext'
32762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763   (eval $ac_try) 2>&5
32764   ac_status=$?
32765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766   (exit $ac_status); }; }; then
32767   ol_cv_db_db_4_dot_2=yes
32768 else
32769   echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 ol_cv_db_db_4_dot_2=no
32773 fi
32774 rm -f conftest.err conftest.$ac_objext \
32775       conftest$ac_exeext conftest.$ac_ext
32776
32777         LIBS="$ol_LIBS"
32778
32779 fi
32780 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
32781 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
32782
32783         if test $ol_cv_db_db_4_dot_2 = yes ; then
32784                 ol_cv_lib_db=-ldb-4.2
32785         fi
32786 fi
32787
32788                 if test $ol_cv_lib_db = no ; then
32789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
32790 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
32791 if test "${ol_cv_db_db_4_2+set}" = set; then
32792   echo $ECHO_N "(cached) $ECHO_C" >&6
32793 else
32794
32795         ol_DB_LIB=-ldb-4-2
32796         ol_LIBS=$LIBS
32797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32798
32799         cat >conftest.$ac_ext <<_ACEOF
32800 /* confdefs.h.  */
32801 _ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h.  */
32805
32806 #ifdef HAVE_DB_185_H
32807 # include <db_185.h>
32808 #else
32809 # include <db.h>
32810 #endif
32811
32812 #ifndef DB_VERSION_MAJOR
32813 # define DB_VERSION_MAJOR 1
32814 #endif
32815
32816 #ifndef NULL
32817 #define NULL ((void*)0)
32818 #endif
32819
32820 int
32821 main ()
32822 {
32823
32824 #if DB_VERSION_MAJOR > 1
32825         {
32826                 char *version;
32827                 int major, minor, patch;
32828
32829                 version = db_version( &major, &minor, &patch );
32830
32831                 if( major != DB_VERSION_MAJOR ||
32832                         minor < DB_VERSION_MINOR )
32833                 {
32834                         printf("Berkeley DB version mismatch\n"
32835                                 "\theader: %s\n\tlibrary: %s\n",
32836                                 DB_VERSION_STRING, version);
32837                         return 1;
32838                 }
32839         }
32840 #endif
32841
32842 #if DB_VERSION_MAJOR > 2
32843         db_env_create( NULL, 0 );
32844 #elif DB_VERSION_MAJOR > 1
32845         db_appexit( NULL );
32846 #else
32847         (void) dbopen( NULL, 0, 0, 0, NULL);
32848 #endif
32849
32850   ;
32851   return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856   (eval $ac_link) 2>conftest.er1
32857   ac_status=$?
32858   grep -v '^ *+' conftest.er1 >conftest.err
32859   rm -f conftest.er1
32860   cat conftest.err >&5
32861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862   (exit $ac_status); } &&
32863          { ac_try='test -z "$ac_c_werror_flag"
32864                          || test ! -s conftest.err'
32865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866   (eval $ac_try) 2>&5
32867   ac_status=$?
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); }; } &&
32870          { ac_try='test -s conftest$ac_exeext'
32871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872   (eval $ac_try) 2>&5
32873   ac_status=$?
32874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875   (exit $ac_status); }; }; then
32876   ol_cv_db_db_4_2=yes
32877 else
32878   echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32880
32881 ol_cv_db_db_4_2=no
32882 fi
32883 rm -f conftest.err conftest.$ac_objext \
32884       conftest$ac_exeext conftest.$ac_ext
32885
32886         LIBS="$ol_LIBS"
32887
32888 fi
32889 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
32890 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
32891
32892         if test $ol_cv_db_db_4_2 = yes ; then
32893                 ol_cv_lib_db=-ldb-4-2
32894         fi
32895 fi
32896
32897         elif test $ol_cv_bdb_minor = 1 ; then
32898                 if test $ol_cv_lib_db = no ; then
32899         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
32900 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
32901 if test "${ol_cv_db_db41+set}" = set; then
32902   echo $ECHO_N "(cached) $ECHO_C" >&6
32903 else
32904
32905         ol_DB_LIB=-ldb41
32906         ol_LIBS=$LIBS
32907         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32908
32909         cat >conftest.$ac_ext <<_ACEOF
32910 /* confdefs.h.  */
32911 _ACEOF
32912 cat confdefs.h >>conftest.$ac_ext
32913 cat >>conftest.$ac_ext <<_ACEOF
32914 /* end confdefs.h.  */
32915
32916 #ifdef HAVE_DB_185_H
32917 # include <db_185.h>
32918 #else
32919 # include <db.h>
32920 #endif
32921
32922 #ifndef DB_VERSION_MAJOR
32923 # define DB_VERSION_MAJOR 1
32924 #endif
32925
32926 #ifndef NULL
32927 #define NULL ((void*)0)
32928 #endif
32929
32930 int
32931 main ()
32932 {
32933
32934 #if DB_VERSION_MAJOR > 1
32935         {
32936                 char *version;
32937                 int major, minor, patch;
32938
32939                 version = db_version( &major, &minor, &patch );
32940
32941                 if( major != DB_VERSION_MAJOR ||
32942                         minor < DB_VERSION_MINOR )
32943                 {
32944                         printf("Berkeley DB version mismatch\n"
32945                                 "\theader: %s\n\tlibrary: %s\n",
32946                                 DB_VERSION_STRING, version);
32947                         return 1;
32948                 }
32949         }
32950 #endif
32951
32952 #if DB_VERSION_MAJOR > 2
32953         db_env_create( NULL, 0 );
32954 #elif DB_VERSION_MAJOR > 1
32955         db_appexit( NULL );
32956 #else
32957         (void) dbopen( NULL, 0, 0, 0, NULL);
32958 #endif
32959
32960   ;
32961   return 0;
32962 }
32963 _ACEOF
32964 rm -f conftest.$ac_objext conftest$ac_exeext
32965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32966   (eval $ac_link) 2>conftest.er1
32967   ac_status=$?
32968   grep -v '^ *+' conftest.er1 >conftest.err
32969   rm -f conftest.er1
32970   cat conftest.err >&5
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); } &&
32973          { ac_try='test -z "$ac_c_werror_flag"
32974                          || test ! -s conftest.err'
32975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32976   (eval $ac_try) 2>&5
32977   ac_status=$?
32978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979   (exit $ac_status); }; } &&
32980          { ac_try='test -s conftest$ac_exeext'
32981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982   (eval $ac_try) 2>&5
32983   ac_status=$?
32984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985   (exit $ac_status); }; }; then
32986   ol_cv_db_db41=yes
32987 else
32988   echo "$as_me: failed program was:" >&5
32989 sed 's/^/| /' conftest.$ac_ext >&5
32990
32991 ol_cv_db_db41=no
32992 fi
32993 rm -f conftest.err conftest.$ac_objext \
32994       conftest$ac_exeext conftest.$ac_ext
32995
32996         LIBS="$ol_LIBS"
32997
32998 fi
32999 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
33000 echo "${ECHO_T}$ol_cv_db_db41" >&6
33001
33002         if test $ol_cv_db_db41 = yes ; then
33003                 ol_cv_lib_db=-ldb41
33004         fi
33005 fi
33006
33007                 if test $ol_cv_lib_db = no ; then
33008         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
33009 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
33010 if test "${ol_cv_db_db_41+set}" = set; then
33011   echo $ECHO_N "(cached) $ECHO_C" >&6
33012 else
33013
33014         ol_DB_LIB=-ldb-41
33015         ol_LIBS=$LIBS
33016         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33017
33018         cat >conftest.$ac_ext <<_ACEOF
33019 /* confdefs.h.  */
33020 _ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h.  */
33024
33025 #ifdef HAVE_DB_185_H
33026 # include <db_185.h>
33027 #else
33028 # include <db.h>
33029 #endif
33030
33031 #ifndef DB_VERSION_MAJOR
33032 # define DB_VERSION_MAJOR 1
33033 #endif
33034
33035 #ifndef NULL
33036 #define NULL ((void*)0)
33037 #endif
33038
33039 int
33040 main ()
33041 {
33042
33043 #if DB_VERSION_MAJOR > 1
33044         {
33045                 char *version;
33046                 int major, minor, patch;
33047
33048                 version = db_version( &major, &minor, &patch );
33049
33050                 if( major != DB_VERSION_MAJOR ||
33051                         minor < DB_VERSION_MINOR )
33052                 {
33053                         printf("Berkeley DB version mismatch\n"
33054                                 "\theader: %s\n\tlibrary: %s\n",
33055                                 DB_VERSION_STRING, version);
33056                         return 1;
33057                 }
33058         }
33059 #endif
33060
33061 #if DB_VERSION_MAJOR > 2
33062         db_env_create( NULL, 0 );
33063 #elif DB_VERSION_MAJOR > 1
33064         db_appexit( NULL );
33065 #else
33066         (void) dbopen( NULL, 0, 0, 0, NULL);
33067 #endif
33068
33069   ;
33070   return 0;
33071 }
33072 _ACEOF
33073 rm -f conftest.$ac_objext conftest$ac_exeext
33074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33075   (eval $ac_link) 2>conftest.er1
33076   ac_status=$?
33077   grep -v '^ *+' conftest.er1 >conftest.err
33078   rm -f conftest.er1
33079   cat conftest.err >&5
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); } &&
33082          { ac_try='test -z "$ac_c_werror_flag"
33083                          || test ! -s conftest.err'
33084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085   (eval $ac_try) 2>&5
33086   ac_status=$?
33087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); }; } &&
33089          { ac_try='test -s conftest$ac_exeext'
33090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33091   (eval $ac_try) 2>&5
33092   ac_status=$?
33093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094   (exit $ac_status); }; }; then
33095   ol_cv_db_db_41=yes
33096 else
33097   echo "$as_me: failed program was:" >&5
33098 sed 's/^/| /' conftest.$ac_ext >&5
33099
33100 ol_cv_db_db_41=no
33101 fi
33102 rm -f conftest.err conftest.$ac_objext \
33103       conftest$ac_exeext conftest.$ac_ext
33104
33105         LIBS="$ol_LIBS"
33106
33107 fi
33108 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
33109 echo "${ECHO_T}$ol_cv_db_db_41" >&6
33110
33111         if test $ol_cv_db_db_41 = yes ; then
33112                 ol_cv_lib_db=-ldb-41
33113         fi
33114 fi
33115
33116                 if test $ol_cv_lib_db = no ; then
33117         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
33118 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
33119 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
33120   echo $ECHO_N "(cached) $ECHO_C" >&6
33121 else
33122
33123         ol_DB_LIB=-ldb-4.1
33124         ol_LIBS=$LIBS
33125         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33126
33127         cat >conftest.$ac_ext <<_ACEOF
33128 /* confdefs.h.  */
33129 _ACEOF
33130 cat confdefs.h >>conftest.$ac_ext
33131 cat >>conftest.$ac_ext <<_ACEOF
33132 /* end confdefs.h.  */
33133
33134 #ifdef HAVE_DB_185_H
33135 # include <db_185.h>
33136 #else
33137 # include <db.h>
33138 #endif
33139
33140 #ifndef DB_VERSION_MAJOR
33141 # define DB_VERSION_MAJOR 1
33142 #endif
33143
33144 #ifndef NULL
33145 #define NULL ((void*)0)
33146 #endif
33147
33148 int
33149 main ()
33150 {
33151
33152 #if DB_VERSION_MAJOR > 1
33153         {
33154                 char *version;
33155                 int major, minor, patch;
33156
33157                 version = db_version( &major, &minor, &patch );
33158
33159                 if( major != DB_VERSION_MAJOR ||
33160                         minor < DB_VERSION_MINOR )
33161                 {
33162                         printf("Berkeley DB version mismatch\n"
33163                                 "\theader: %s\n\tlibrary: %s\n",
33164                                 DB_VERSION_STRING, version);
33165                         return 1;
33166                 }
33167         }
33168 #endif
33169
33170 #if DB_VERSION_MAJOR > 2
33171         db_env_create( NULL, 0 );
33172 #elif DB_VERSION_MAJOR > 1
33173         db_appexit( NULL );
33174 #else
33175         (void) dbopen( NULL, 0, 0, 0, NULL);
33176 #endif
33177
33178   ;
33179   return 0;
33180 }
33181 _ACEOF
33182 rm -f conftest.$ac_objext conftest$ac_exeext
33183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33184   (eval $ac_link) 2>conftest.er1
33185   ac_status=$?
33186   grep -v '^ *+' conftest.er1 >conftest.err
33187   rm -f conftest.er1
33188   cat conftest.err >&5
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); } &&
33191          { ac_try='test -z "$ac_c_werror_flag"
33192                          || test ! -s conftest.err'
33193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33194   (eval $ac_try) 2>&5
33195   ac_status=$?
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); }; } &&
33198          { ac_try='test -s conftest$ac_exeext'
33199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200   (eval $ac_try) 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; }; then
33204   ol_cv_db_db_4_dot_1=yes
33205 else
33206   echo "$as_me: failed program was:" >&5
33207 sed 's/^/| /' conftest.$ac_ext >&5
33208
33209 ol_cv_db_db_4_dot_1=no
33210 fi
33211 rm -f conftest.err conftest.$ac_objext \
33212       conftest$ac_exeext conftest.$ac_ext
33213
33214         LIBS="$ol_LIBS"
33215
33216 fi
33217 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
33218 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
33219
33220         if test $ol_cv_db_db_4_dot_1 = yes ; then
33221                 ol_cv_lib_db=-ldb-4.1
33222         fi
33223 fi
33224
33225                 if test $ol_cv_lib_db = no ; then
33226         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
33227 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
33228 if test "${ol_cv_db_db_4_1+set}" = set; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231
33232         ol_DB_LIB=-ldb-4-1
33233         ol_LIBS=$LIBS
33234         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33235
33236         cat >conftest.$ac_ext <<_ACEOF
33237 /* confdefs.h.  */
33238 _ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h.  */
33242
33243 #ifdef HAVE_DB_185_H
33244 # include <db_185.h>
33245 #else
33246 # include <db.h>
33247 #endif
33248
33249 #ifndef DB_VERSION_MAJOR
33250 # define DB_VERSION_MAJOR 1
33251 #endif
33252
33253 #ifndef NULL
33254 #define NULL ((void*)0)
33255 #endif
33256
33257 int
33258 main ()
33259 {
33260
33261 #if DB_VERSION_MAJOR > 1
33262         {
33263                 char *version;
33264                 int major, minor, patch;
33265
33266                 version = db_version( &major, &minor, &patch );
33267
33268                 if( major != DB_VERSION_MAJOR ||
33269                         minor < DB_VERSION_MINOR )
33270                 {
33271                         printf("Berkeley DB version mismatch\n"
33272                                 "\theader: %s\n\tlibrary: %s\n",
33273                                 DB_VERSION_STRING, version);
33274                         return 1;
33275                 }
33276         }
33277 #endif
33278
33279 #if DB_VERSION_MAJOR > 2
33280         db_env_create( NULL, 0 );
33281 #elif DB_VERSION_MAJOR > 1
33282         db_appexit( NULL );
33283 #else
33284         (void) dbopen( NULL, 0, 0, 0, NULL);
33285 #endif
33286
33287   ;
33288   return 0;
33289 }
33290 _ACEOF
33291 rm -f conftest.$ac_objext conftest$ac_exeext
33292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33293   (eval $ac_link) 2>conftest.er1
33294   ac_status=$?
33295   grep -v '^ *+' conftest.er1 >conftest.err
33296   rm -f conftest.er1
33297   cat conftest.err >&5
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); } &&
33300          { ac_try='test -z "$ac_c_werror_flag"
33301                          || test ! -s conftest.err'
33302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33303   (eval $ac_try) 2>&5
33304   ac_status=$?
33305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306   (exit $ac_status); }; } &&
33307          { ac_try='test -s conftest$ac_exeext'
33308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33309   (eval $ac_try) 2>&5
33310   ac_status=$?
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); }; }; then
33313   ol_cv_db_db_4_1=yes
33314 else
33315   echo "$as_me: failed program was:" >&5
33316 sed 's/^/| /' conftest.$ac_ext >&5
33317
33318 ol_cv_db_db_4_1=no
33319 fi
33320 rm -f conftest.err conftest.$ac_objext \
33321       conftest$ac_exeext conftest.$ac_ext
33322
33323         LIBS="$ol_LIBS"
33324
33325 fi
33326 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
33327 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
33328
33329         if test $ol_cv_db_db_4_1 = yes ; then
33330                 ol_cv_lib_db=-ldb-4-1
33331         fi
33332 fi
33333
33334         fi
33335         if test $ol_cv_lib_db = no ; then
33336         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
33337 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
33338 if test "${ol_cv_db_db_4+set}" = set; then
33339   echo $ECHO_N "(cached) $ECHO_C" >&6
33340 else
33341
33342         ol_DB_LIB=-ldb-4
33343         ol_LIBS=$LIBS
33344         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33345
33346         cat >conftest.$ac_ext <<_ACEOF
33347 /* confdefs.h.  */
33348 _ACEOF
33349 cat confdefs.h >>conftest.$ac_ext
33350 cat >>conftest.$ac_ext <<_ACEOF
33351 /* end confdefs.h.  */
33352
33353 #ifdef HAVE_DB_185_H
33354 # include <db_185.h>
33355 #else
33356 # include <db.h>
33357 #endif
33358
33359 #ifndef DB_VERSION_MAJOR
33360 # define DB_VERSION_MAJOR 1
33361 #endif
33362
33363 #ifndef NULL
33364 #define NULL ((void*)0)
33365 #endif
33366
33367 int
33368 main ()
33369 {
33370
33371 #if DB_VERSION_MAJOR > 1
33372         {
33373                 char *version;
33374                 int major, minor, patch;
33375
33376                 version = db_version( &major, &minor, &patch );
33377
33378                 if( major != DB_VERSION_MAJOR ||
33379                         minor < DB_VERSION_MINOR )
33380                 {
33381                         printf("Berkeley DB version mismatch\n"
33382                                 "\theader: %s\n\tlibrary: %s\n",
33383                                 DB_VERSION_STRING, version);
33384                         return 1;
33385                 }
33386         }
33387 #endif
33388
33389 #if DB_VERSION_MAJOR > 2
33390         db_env_create( NULL, 0 );
33391 #elif DB_VERSION_MAJOR > 1
33392         db_appexit( NULL );
33393 #else
33394         (void) dbopen( NULL, 0, 0, 0, NULL);
33395 #endif
33396
33397   ;
33398   return 0;
33399 }
33400 _ACEOF
33401 rm -f conftest.$ac_objext conftest$ac_exeext
33402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33403   (eval $ac_link) 2>conftest.er1
33404   ac_status=$?
33405   grep -v '^ *+' conftest.er1 >conftest.err
33406   rm -f conftest.er1
33407   cat conftest.err >&5
33408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33409   (exit $ac_status); } &&
33410          { ac_try='test -z "$ac_c_werror_flag"
33411                          || test ! -s conftest.err'
33412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33413   (eval $ac_try) 2>&5
33414   ac_status=$?
33415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416   (exit $ac_status); }; } &&
33417          { ac_try='test -s conftest$ac_exeext'
33418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33419   (eval $ac_try) 2>&5
33420   ac_status=$?
33421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33422   (exit $ac_status); }; }; then
33423   ol_cv_db_db_4=yes
33424 else
33425   echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33427
33428 ol_cv_db_db_4=no
33429 fi
33430 rm -f conftest.err conftest.$ac_objext \
33431       conftest$ac_exeext conftest.$ac_ext
33432
33433         LIBS="$ol_LIBS"
33434
33435 fi
33436 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
33437 echo "${ECHO_T}$ol_cv_db_db_4" >&6
33438
33439         if test $ol_cv_db_db_4 = yes ; then
33440                 ol_cv_lib_db=-ldb-4
33441         fi
33442 fi
33443
33444         if test $ol_cv_lib_db = no ; then
33445         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
33446 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
33447 if test "${ol_cv_db_db4+set}" = set; then
33448   echo $ECHO_N "(cached) $ECHO_C" >&6
33449 else
33450
33451         ol_DB_LIB=-ldb4
33452         ol_LIBS=$LIBS
33453         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33454
33455         cat >conftest.$ac_ext <<_ACEOF
33456 /* confdefs.h.  */
33457 _ACEOF
33458 cat confdefs.h >>conftest.$ac_ext
33459 cat >>conftest.$ac_ext <<_ACEOF
33460 /* end confdefs.h.  */
33461
33462 #ifdef HAVE_DB_185_H
33463 # include <db_185.h>
33464 #else
33465 # include <db.h>
33466 #endif
33467
33468 #ifndef DB_VERSION_MAJOR
33469 # define DB_VERSION_MAJOR 1
33470 #endif
33471
33472 #ifndef NULL
33473 #define NULL ((void*)0)
33474 #endif
33475
33476 int
33477 main ()
33478 {
33479
33480 #if DB_VERSION_MAJOR > 1
33481         {
33482                 char *version;
33483                 int major, minor, patch;
33484
33485                 version = db_version( &major, &minor, &patch );
33486
33487                 if( major != DB_VERSION_MAJOR ||
33488                         minor < DB_VERSION_MINOR )
33489                 {
33490                         printf("Berkeley DB version mismatch\n"
33491                                 "\theader: %s\n\tlibrary: %s\n",
33492                                 DB_VERSION_STRING, version);
33493                         return 1;
33494                 }
33495         }
33496 #endif
33497
33498 #if DB_VERSION_MAJOR > 2
33499         db_env_create( NULL, 0 );
33500 #elif DB_VERSION_MAJOR > 1
33501         db_appexit( NULL );
33502 #else
33503         (void) dbopen( NULL, 0, 0, 0, NULL);
33504 #endif
33505
33506   ;
33507   return 0;
33508 }
33509 _ACEOF
33510 rm -f conftest.$ac_objext conftest$ac_exeext
33511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33512   (eval $ac_link) 2>conftest.er1
33513   ac_status=$?
33514   grep -v '^ *+' conftest.er1 >conftest.err
33515   rm -f conftest.er1
33516   cat conftest.err >&5
33517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33518   (exit $ac_status); } &&
33519          { ac_try='test -z "$ac_c_werror_flag"
33520                          || test ! -s conftest.err'
33521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33522   (eval $ac_try) 2>&5
33523   ac_status=$?
33524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525   (exit $ac_status); }; } &&
33526          { ac_try='test -s conftest$ac_exeext'
33527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33528   (eval $ac_try) 2>&5
33529   ac_status=$?
33530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33531   (exit $ac_status); }; }; then
33532   ol_cv_db_db4=yes
33533 else
33534   echo "$as_me: failed program was:" >&5
33535 sed 's/^/| /' conftest.$ac_ext >&5
33536
33537 ol_cv_db_db4=no
33538 fi
33539 rm -f conftest.err conftest.$ac_objext \
33540       conftest$ac_exeext conftest.$ac_ext
33541
33542         LIBS="$ol_LIBS"
33543
33544 fi
33545 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
33546 echo "${ECHO_T}$ol_cv_db_db4" >&6
33547
33548         if test $ol_cv_db_db4 = yes ; then
33549                 ol_cv_lib_db=-ldb4
33550         fi
33551 fi
33552
33553         if test $ol_cv_lib_db = no ; then
33554         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
33555 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
33556 if test "${ol_cv_db_db+set}" = set; then
33557   echo $ECHO_N "(cached) $ECHO_C" >&6
33558 else
33559
33560         ol_DB_LIB=-ldb
33561         ol_LIBS=$LIBS
33562         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33563
33564         cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h.  */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h.  */
33570
33571 #ifdef HAVE_DB_185_H
33572 # include <db_185.h>
33573 #else
33574 # include <db.h>
33575 #endif
33576
33577 #ifndef DB_VERSION_MAJOR
33578 # define DB_VERSION_MAJOR 1
33579 #endif
33580
33581 #ifndef NULL
33582 #define NULL ((void*)0)
33583 #endif
33584
33585 int
33586 main ()
33587 {
33588
33589 #if DB_VERSION_MAJOR > 1
33590         {
33591                 char *version;
33592                 int major, minor, patch;
33593
33594                 version = db_version( &major, &minor, &patch );
33595
33596                 if( major != DB_VERSION_MAJOR ||
33597                         minor < DB_VERSION_MINOR )
33598                 {
33599                         printf("Berkeley DB version mismatch\n"
33600                                 "\theader: %s\n\tlibrary: %s\n",
33601                                 DB_VERSION_STRING, version);
33602                         return 1;
33603                 }
33604         }
33605 #endif
33606
33607 #if DB_VERSION_MAJOR > 2
33608         db_env_create( NULL, 0 );
33609 #elif DB_VERSION_MAJOR > 1
33610         db_appexit( NULL );
33611 #else
33612         (void) dbopen( NULL, 0, 0, 0, NULL);
33613 #endif
33614
33615   ;
33616   return 0;
33617 }
33618 _ACEOF
33619 rm -f conftest.$ac_objext conftest$ac_exeext
33620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33621   (eval $ac_link) 2>conftest.er1
33622   ac_status=$?
33623   grep -v '^ *+' conftest.er1 >conftest.err
33624   rm -f conftest.er1
33625   cat conftest.err >&5
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); } &&
33628          { ac_try='test -z "$ac_c_werror_flag"
33629                          || test ! -s conftest.err'
33630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631   (eval $ac_try) 2>&5
33632   ac_status=$?
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); }; } &&
33635          { ac_try='test -s conftest$ac_exeext'
33636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637   (eval $ac_try) 2>&5
33638   ac_status=$?
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); }; }; then
33641   ol_cv_db_db=yes
33642 else
33643   echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33645
33646 ol_cv_db_db=no
33647 fi
33648 rm -f conftest.err conftest.$ac_objext \
33649       conftest$ac_exeext conftest.$ac_ext
33650
33651         LIBS="$ol_LIBS"
33652
33653 fi
33654 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
33655 echo "${ECHO_T}$ol_cv_db_db" >&6
33656
33657         if test $ol_cv_db_db = yes ; then
33658                 ol_cv_lib_db=-ldb
33659         fi
33660 fi
33661
33662
33663 elif test $ol_cv_bdb_major = 3 ; then
33664         if test $ol_cv_lib_db = no ; then
33665         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
33666 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
33667 if test "${ol_cv_db_db3+set}" = set; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670
33671         ol_DB_LIB=-ldb3
33672         ol_LIBS=$LIBS
33673         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33674
33675         cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681
33682 #ifdef HAVE_DB_185_H
33683 # include <db_185.h>
33684 #else
33685 # include <db.h>
33686 #endif
33687
33688 #ifndef DB_VERSION_MAJOR
33689 # define DB_VERSION_MAJOR 1
33690 #endif
33691
33692 #ifndef NULL
33693 #define NULL ((void*)0)
33694 #endif
33695
33696 int
33697 main ()
33698 {
33699
33700 #if DB_VERSION_MAJOR > 1
33701         {
33702                 char *version;
33703                 int major, minor, patch;
33704
33705                 version = db_version( &major, &minor, &patch );
33706
33707                 if( major != DB_VERSION_MAJOR ||
33708                         minor < DB_VERSION_MINOR )
33709                 {
33710                         printf("Berkeley DB version mismatch\n"
33711                                 "\theader: %s\n\tlibrary: %s\n",
33712                                 DB_VERSION_STRING, version);
33713                         return 1;
33714                 }
33715         }
33716 #endif
33717
33718 #if DB_VERSION_MAJOR > 2
33719         db_env_create( NULL, 0 );
33720 #elif DB_VERSION_MAJOR > 1
33721         db_appexit( NULL );
33722 #else
33723         (void) dbopen( NULL, 0, 0, 0, NULL);
33724 #endif
33725
33726   ;
33727   return 0;
33728 }
33729 _ACEOF
33730 rm -f conftest.$ac_objext conftest$ac_exeext
33731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33732   (eval $ac_link) 2>conftest.er1
33733   ac_status=$?
33734   grep -v '^ *+' conftest.er1 >conftest.err
33735   rm -f conftest.er1
33736   cat conftest.err >&5
33737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738   (exit $ac_status); } &&
33739          { ac_try='test -z "$ac_c_werror_flag"
33740                          || test ! -s conftest.err'
33741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33742   (eval $ac_try) 2>&5
33743   ac_status=$?
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); }; } &&
33746          { ac_try='test -s conftest$ac_exeext'
33747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748   (eval $ac_try) 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; }; then
33752   ol_cv_db_db3=yes
33753 else
33754   echo "$as_me: failed program was:" >&5
33755 sed 's/^/| /' conftest.$ac_ext >&5
33756
33757 ol_cv_db_db3=no
33758 fi
33759 rm -f conftest.err conftest.$ac_objext \
33760       conftest$ac_exeext conftest.$ac_ext
33761
33762         LIBS="$ol_LIBS"
33763
33764 fi
33765 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
33766 echo "${ECHO_T}$ol_cv_db_db3" >&6
33767
33768         if test $ol_cv_db_db3 = yes ; then
33769                 ol_cv_lib_db=-ldb3
33770         fi
33771 fi
33772
33773         if test $ol_cv_lib_db = no ; then
33774         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
33775 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
33776 if test "${ol_cv_db_db_3+set}" = set; then
33777   echo $ECHO_N "(cached) $ECHO_C" >&6
33778 else
33779
33780         ol_DB_LIB=-ldb-3
33781         ol_LIBS=$LIBS
33782         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33783
33784         cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h.  */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h.  */
33790
33791 #ifdef HAVE_DB_185_H
33792 # include <db_185.h>
33793 #else
33794 # include <db.h>
33795 #endif
33796
33797 #ifndef DB_VERSION_MAJOR
33798 # define DB_VERSION_MAJOR 1
33799 #endif
33800
33801 #ifndef NULL
33802 #define NULL ((void*)0)
33803 #endif
33804
33805 int
33806 main ()
33807 {
33808
33809 #if DB_VERSION_MAJOR > 1
33810         {
33811                 char *version;
33812                 int major, minor, patch;
33813
33814                 version = db_version( &major, &minor, &patch );
33815
33816                 if( major != DB_VERSION_MAJOR ||
33817                         minor < DB_VERSION_MINOR )
33818                 {
33819                         printf("Berkeley DB version mismatch\n"
33820                                 "\theader: %s\n\tlibrary: %s\n",
33821                                 DB_VERSION_STRING, version);
33822                         return 1;
33823                 }
33824         }
33825 #endif
33826
33827 #if DB_VERSION_MAJOR > 2
33828         db_env_create( NULL, 0 );
33829 #elif DB_VERSION_MAJOR > 1
33830         db_appexit( NULL );
33831 #else
33832         (void) dbopen( NULL, 0, 0, 0, NULL);
33833 #endif
33834
33835   ;
33836   return 0;
33837 }
33838 _ACEOF
33839 rm -f conftest.$ac_objext conftest$ac_exeext
33840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33841   (eval $ac_link) 2>conftest.er1
33842   ac_status=$?
33843   grep -v '^ *+' conftest.er1 >conftest.err
33844   rm -f conftest.er1
33845   cat conftest.err >&5
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); } &&
33848          { ac_try='test -z "$ac_c_werror_flag"
33849                          || test ! -s conftest.err'
33850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33851   (eval $ac_try) 2>&5
33852   ac_status=$?
33853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854   (exit $ac_status); }; } &&
33855          { ac_try='test -s conftest$ac_exeext'
33856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33857   (eval $ac_try) 2>&5
33858   ac_status=$?
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); }; }; then
33861   ol_cv_db_db_3=yes
33862 else
33863   echo "$as_me: failed program was:" >&5
33864 sed 's/^/| /' conftest.$ac_ext >&5
33865
33866 ol_cv_db_db_3=no
33867 fi
33868 rm -f conftest.err conftest.$ac_objext \
33869       conftest$ac_exeext conftest.$ac_ext
33870
33871         LIBS="$ol_LIBS"
33872
33873 fi
33874 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
33875 echo "${ECHO_T}$ol_cv_db_db_3" >&6
33876
33877         if test $ol_cv_db_db_3 = yes ; then
33878                 ol_cv_lib_db=-ldb-3
33879         fi
33880 fi
33881
33882
33883 elif test $ol_cv_bdb_major = 2 ; then
33884         if test $ol_cv_lib_db = no ; then
33885         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
33886 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
33887 if test "${ol_cv_db_db2+set}" = set; then
33888   echo $ECHO_N "(cached) $ECHO_C" >&6
33889 else
33890
33891         ol_DB_LIB=-ldb2
33892         ol_LIBS=$LIBS
33893         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
33894
33895         cat >conftest.$ac_ext <<_ACEOF
33896 /* confdefs.h.  */
33897 _ACEOF
33898 cat confdefs.h >>conftest.$ac_ext
33899 cat >>conftest.$ac_ext <<_ACEOF
33900 /* end confdefs.h.  */
33901
33902 #ifdef HAVE_DB_185_H
33903 # include <db_185.h>
33904 #else
33905 # include <db.h>
33906 #endif
33907
33908 #ifndef DB_VERSION_MAJOR
33909 # define DB_VERSION_MAJOR 1
33910 #endif
33911
33912 #ifndef NULL
33913 #define NULL ((void*)0)
33914 #endif
33915
33916 int
33917 main ()
33918 {
33919
33920 #if DB_VERSION_MAJOR > 1
33921         {
33922                 char *version;
33923                 int major, minor, patch;
33924
33925                 version = db_version( &major, &minor, &patch );
33926
33927                 if( major != DB_VERSION_MAJOR ||
33928                         minor < DB_VERSION_MINOR )
33929                 {
33930                         printf("Berkeley DB version mismatch\n"
33931                                 "\theader: %s\n\tlibrary: %s\n",
33932                                 DB_VERSION_STRING, version);
33933                         return 1;
33934                 }
33935         }
33936 #endif
33937
33938 #if DB_VERSION_MAJOR > 2
33939         db_env_create( NULL, 0 );
33940 #elif DB_VERSION_MAJOR > 1
33941         db_appexit( NULL );
33942 #else
33943         (void) dbopen( NULL, 0, 0, 0, NULL);
33944 #endif
33945
33946   ;
33947   return 0;
33948 }
33949 _ACEOF
33950 rm -f conftest.$ac_objext conftest$ac_exeext
33951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33952   (eval $ac_link) 2>conftest.er1
33953   ac_status=$?
33954   grep -v '^ *+' conftest.er1 >conftest.err
33955   rm -f conftest.er1
33956   cat conftest.err >&5
33957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958   (exit $ac_status); } &&
33959          { ac_try='test -z "$ac_c_werror_flag"
33960                          || test ! -s conftest.err'
33961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962   (eval $ac_try) 2>&5
33963   ac_status=$?
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); }; } &&
33966          { ac_try='test -s conftest$ac_exeext'
33967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968   (eval $ac_try) 2>&5
33969   ac_status=$?
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); }; }; then
33972   ol_cv_db_db2=yes
33973 else
33974   echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33976
33977 ol_cv_db_db2=no
33978 fi
33979 rm -f conftest.err conftest.$ac_objext \
33980       conftest$ac_exeext conftest.$ac_ext
33981
33982         LIBS="$ol_LIBS"
33983
33984 fi
33985 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
33986 echo "${ECHO_T}$ol_cv_db_db2" >&6
33987
33988         if test $ol_cv_db_db2 = yes ; then
33989                 ol_cv_lib_db=-ldb2
33990         fi
33991 fi
33992
33993         if test $ol_cv_lib_db = no ; then
33994         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
33995 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
33996 if test "${ol_cv_db_db_2+set}" = set; then
33997   echo $ECHO_N "(cached) $ECHO_C" >&6
33998 else
33999
34000         ol_DB_LIB=-ldb-2
34001         ol_LIBS=$LIBS
34002         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34003
34004         cat >conftest.$ac_ext <<_ACEOF
34005 /* confdefs.h.  */
34006 _ACEOF
34007 cat confdefs.h >>conftest.$ac_ext
34008 cat >>conftest.$ac_ext <<_ACEOF
34009 /* end confdefs.h.  */
34010
34011 #ifdef HAVE_DB_185_H
34012 # include <db_185.h>
34013 #else
34014 # include <db.h>
34015 #endif
34016
34017 #ifndef DB_VERSION_MAJOR
34018 # define DB_VERSION_MAJOR 1
34019 #endif
34020
34021 #ifndef NULL
34022 #define NULL ((void*)0)
34023 #endif
34024
34025 int
34026 main ()
34027 {
34028
34029 #if DB_VERSION_MAJOR > 1
34030         {
34031                 char *version;
34032                 int major, minor, patch;
34033
34034                 version = db_version( &major, &minor, &patch );
34035
34036                 if( major != DB_VERSION_MAJOR ||
34037                         minor < DB_VERSION_MINOR )
34038                 {
34039                         printf("Berkeley DB version mismatch\n"
34040                                 "\theader: %s\n\tlibrary: %s\n",
34041                                 DB_VERSION_STRING, version);
34042                         return 1;
34043                 }
34044         }
34045 #endif
34046
34047 #if DB_VERSION_MAJOR > 2
34048         db_env_create( NULL, 0 );
34049 #elif DB_VERSION_MAJOR > 1
34050         db_appexit( NULL );
34051 #else
34052         (void) dbopen( NULL, 0, 0, 0, NULL);
34053 #endif
34054
34055   ;
34056   return 0;
34057 }
34058 _ACEOF
34059 rm -f conftest.$ac_objext conftest$ac_exeext
34060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34061   (eval $ac_link) 2>conftest.er1
34062   ac_status=$?
34063   grep -v '^ *+' conftest.er1 >conftest.err
34064   rm -f conftest.er1
34065   cat conftest.err >&5
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); } &&
34068          { ac_try='test -z "$ac_c_werror_flag"
34069                          || test ! -s conftest.err'
34070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34071   (eval $ac_try) 2>&5
34072   ac_status=$?
34073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34074   (exit $ac_status); }; } &&
34075          { ac_try='test -s conftest$ac_exeext'
34076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34077   (eval $ac_try) 2>&5
34078   ac_status=$?
34079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080   (exit $ac_status); }; }; then
34081   ol_cv_db_db_2=yes
34082 else
34083   echo "$as_me: failed program was:" >&5
34084 sed 's/^/| /' conftest.$ac_ext >&5
34085
34086 ol_cv_db_db_2=no
34087 fi
34088 rm -f conftest.err conftest.$ac_objext \
34089       conftest$ac_exeext conftest.$ac_ext
34090
34091         LIBS="$ol_LIBS"
34092
34093 fi
34094 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
34095 echo "${ECHO_T}$ol_cv_db_db_2" >&6
34096
34097         if test $ol_cv_db_db_2 = yes ; then
34098                 ol_cv_lib_db=-ldb-2
34099         fi
34100 fi
34101
34102
34103 elif test $ol_cv_bdb_major = 1 ; then
34104         if test $ol_cv_lib_db = no ; then
34105         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
34106 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
34107 if test "${ol_cv_db_db1+set}" = set; then
34108   echo $ECHO_N "(cached) $ECHO_C" >&6
34109 else
34110
34111         ol_DB_LIB=-ldb1
34112         ol_LIBS=$LIBS
34113         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34114
34115         cat >conftest.$ac_ext <<_ACEOF
34116 /* confdefs.h.  */
34117 _ACEOF
34118 cat confdefs.h >>conftest.$ac_ext
34119 cat >>conftest.$ac_ext <<_ACEOF
34120 /* end confdefs.h.  */
34121
34122 #ifdef HAVE_DB_185_H
34123 # include <db_185.h>
34124 #else
34125 # include <db.h>
34126 #endif
34127
34128 #ifndef DB_VERSION_MAJOR
34129 # define DB_VERSION_MAJOR 1
34130 #endif
34131
34132 #ifndef NULL
34133 #define NULL ((void*)0)
34134 #endif
34135
34136 int
34137 main ()
34138 {
34139
34140 #if DB_VERSION_MAJOR > 1
34141         {
34142                 char *version;
34143                 int major, minor, patch;
34144
34145                 version = db_version( &major, &minor, &patch );
34146
34147                 if( major != DB_VERSION_MAJOR ||
34148                         minor < DB_VERSION_MINOR )
34149                 {
34150                         printf("Berkeley DB version mismatch\n"
34151                                 "\theader: %s\n\tlibrary: %s\n",
34152                                 DB_VERSION_STRING, version);
34153                         return 1;
34154                 }
34155         }
34156 #endif
34157
34158 #if DB_VERSION_MAJOR > 2
34159         db_env_create( NULL, 0 );
34160 #elif DB_VERSION_MAJOR > 1
34161         db_appexit( NULL );
34162 #else
34163         (void) dbopen( NULL, 0, 0, 0, NULL);
34164 #endif
34165
34166   ;
34167   return 0;
34168 }
34169 _ACEOF
34170 rm -f conftest.$ac_objext conftest$ac_exeext
34171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34172   (eval $ac_link) 2>conftest.er1
34173   ac_status=$?
34174   grep -v '^ *+' conftest.er1 >conftest.err
34175   rm -f conftest.er1
34176   cat conftest.err >&5
34177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178   (exit $ac_status); } &&
34179          { ac_try='test -z "$ac_c_werror_flag"
34180                          || test ! -s conftest.err'
34181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34182   (eval $ac_try) 2>&5
34183   ac_status=$?
34184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185   (exit $ac_status); }; } &&
34186          { ac_try='test -s conftest$ac_exeext'
34187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188   (eval $ac_try) 2>&5
34189   ac_status=$?
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); }; }; then
34192   ol_cv_db_db1=yes
34193 else
34194   echo "$as_me: failed program was:" >&5
34195 sed 's/^/| /' conftest.$ac_ext >&5
34196
34197 ol_cv_db_db1=no
34198 fi
34199 rm -f conftest.err conftest.$ac_objext \
34200       conftest$ac_exeext conftest.$ac_ext
34201
34202         LIBS="$ol_LIBS"
34203
34204 fi
34205 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
34206 echo "${ECHO_T}$ol_cv_db_db1" >&6
34207
34208         if test $ol_cv_db_db1 = yes ; then
34209                 ol_cv_lib_db=-ldb1
34210         fi
34211 fi
34212
34213         if test $ol_cv_lib_db = no ; then
34214         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
34215 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
34216 if test "${ol_cv_db_db_1+set}" = set; then
34217   echo $ECHO_N "(cached) $ECHO_C" >&6
34218 else
34219
34220         ol_DB_LIB=-ldb-1
34221         ol_LIBS=$LIBS
34222         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34223
34224         cat >conftest.$ac_ext <<_ACEOF
34225 /* confdefs.h.  */
34226 _ACEOF
34227 cat confdefs.h >>conftest.$ac_ext
34228 cat >>conftest.$ac_ext <<_ACEOF
34229 /* end confdefs.h.  */
34230
34231 #ifdef HAVE_DB_185_H
34232 # include <db_185.h>
34233 #else
34234 # include <db.h>
34235 #endif
34236
34237 #ifndef DB_VERSION_MAJOR
34238 # define DB_VERSION_MAJOR 1
34239 #endif
34240
34241 #ifndef NULL
34242 #define NULL ((void*)0)
34243 #endif
34244
34245 int
34246 main ()
34247 {
34248
34249 #if DB_VERSION_MAJOR > 1
34250         {
34251                 char *version;
34252                 int major, minor, patch;
34253
34254                 version = db_version( &major, &minor, &patch );
34255
34256                 if( major != DB_VERSION_MAJOR ||
34257                         minor < DB_VERSION_MINOR )
34258                 {
34259                         printf("Berkeley DB version mismatch\n"
34260                                 "\theader: %s\n\tlibrary: %s\n",
34261                                 DB_VERSION_STRING, version);
34262                         return 1;
34263                 }
34264         }
34265 #endif
34266
34267 #if DB_VERSION_MAJOR > 2
34268         db_env_create( NULL, 0 );
34269 #elif DB_VERSION_MAJOR > 1
34270         db_appexit( NULL );
34271 #else
34272         (void) dbopen( NULL, 0, 0, 0, NULL);
34273 #endif
34274
34275   ;
34276   return 0;
34277 }
34278 _ACEOF
34279 rm -f conftest.$ac_objext conftest$ac_exeext
34280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34281   (eval $ac_link) 2>conftest.er1
34282   ac_status=$?
34283   grep -v '^ *+' conftest.er1 >conftest.err
34284   rm -f conftest.er1
34285   cat conftest.err >&5
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); } &&
34288          { ac_try='test -z "$ac_c_werror_flag"
34289                          || test ! -s conftest.err'
34290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34291   (eval $ac_try) 2>&5
34292   ac_status=$?
34293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294   (exit $ac_status); }; } &&
34295          { ac_try='test -s conftest$ac_exeext'
34296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34297   (eval $ac_try) 2>&5
34298   ac_status=$?
34299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300   (exit $ac_status); }; }; then
34301   ol_cv_db_db_1=yes
34302 else
34303   echo "$as_me: failed program was:" >&5
34304 sed 's/^/| /' conftest.$ac_ext >&5
34305
34306 ol_cv_db_db_1=no
34307 fi
34308 rm -f conftest.err conftest.$ac_objext \
34309       conftest$ac_exeext conftest.$ac_ext
34310
34311         LIBS="$ol_LIBS"
34312
34313 fi
34314 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
34315 echo "${ECHO_T}$ol_cv_db_db_1" >&6
34316
34317         if test $ol_cv_db_db_1 = yes ; then
34318                 ol_cv_lib_db=-ldb-1
34319         fi
34320 fi
34321
34322 fi
34323 if test $ol_cv_lib_db = no ; then
34324         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
34325 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
34326 if test "${ol_cv_db_none+set}" = set; then
34327   echo $ECHO_N "(cached) $ECHO_C" >&6
34328 else
34329
34330         ol_DB_LIB=
34331         ol_LIBS=$LIBS
34332         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
34333
34334         cat >conftest.$ac_ext <<_ACEOF
34335 /* confdefs.h.  */
34336 _ACEOF
34337 cat confdefs.h >>conftest.$ac_ext
34338 cat >>conftest.$ac_ext <<_ACEOF
34339 /* end confdefs.h.  */
34340
34341 #ifdef HAVE_DB_185_H
34342 # include <db_185.h>
34343 #else
34344 # include <db.h>
34345 #endif
34346
34347 #ifndef DB_VERSION_MAJOR
34348 # define DB_VERSION_MAJOR 1
34349 #endif
34350
34351 #ifndef NULL
34352 #define NULL ((void*)0)
34353 #endif
34354
34355 int
34356 main ()
34357 {
34358
34359 #if DB_VERSION_MAJOR > 1
34360         {
34361                 char *version;
34362                 int major, minor, patch;
34363
34364                 version = db_version( &major, &minor, &patch );
34365
34366                 if( major != DB_VERSION_MAJOR ||
34367                         minor < DB_VERSION_MINOR )
34368                 {
34369                         printf("Berkeley DB version mismatch\n"
34370                                 "\theader: %s\n\tlibrary: %s\n",
34371                                 DB_VERSION_STRING, version);
34372                         return 1;
34373                 }
34374         }
34375 #endif
34376
34377 #if DB_VERSION_MAJOR > 2
34378         db_env_create( NULL, 0 );
34379 #elif DB_VERSION_MAJOR > 1
34380         db_appexit( NULL );
34381 #else
34382         (void) dbopen( NULL, 0, 0, 0, NULL);
34383 #endif
34384
34385   ;
34386   return 0;
34387 }
34388 _ACEOF
34389 rm -f conftest.$ac_objext conftest$ac_exeext
34390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34391   (eval $ac_link) 2>conftest.er1
34392   ac_status=$?
34393   grep -v '^ *+' conftest.er1 >conftest.err
34394   rm -f conftest.er1
34395   cat conftest.err >&5
34396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397   (exit $ac_status); } &&
34398          { ac_try='test -z "$ac_c_werror_flag"
34399                          || test ! -s conftest.err'
34400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34401   (eval $ac_try) 2>&5
34402   ac_status=$?
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); }; } &&
34405          { ac_try='test -s conftest$ac_exeext'
34406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407   (eval $ac_try) 2>&5
34408   ac_status=$?
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); }; }; then
34411   ol_cv_db_none=yes
34412 else
34413   echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416 ol_cv_db_none=no
34417 fi
34418 rm -f conftest.err conftest.$ac_objext \
34419       conftest$ac_exeext conftest.$ac_ext
34420
34421         LIBS="$ol_LIBS"
34422
34423 fi
34424 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
34425 echo "${ECHO_T}$ol_cv_db_none" >&6
34426
34427         if test $ol_cv_db_none = yes ; then
34428                 ol_cv_lib_db=yes
34429         fi
34430 fi
34431
34432
34433         if test "$ol_cv_lib_db" != no ; then
34434                 ol_cv_berkeley_db=yes
34435                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
34436 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
34437 if test "${ol_cv_berkeley_db_version+set}" = set; then
34438   echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440
34441         ol_LIBS="$LIBS"
34442         LIBS="$LTHREAD_LIBS $LIBS"
34443         if test $ol_cv_lib_db != yes ; then
34444                 LIBS="$ol_cv_lib_db $LIBS"
34445         fi
34446
34447         if test "$cross_compiling" = yes; then
34448   ol_cv_berkeley_db_version=cross
34449 else
34450   cat >conftest.$ac_ext <<_ACEOF
34451 /* confdefs.h.  */
34452 _ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h.  */
34456
34457 #ifdef HAVE_DB_185_H
34458         choke me;
34459 #else
34460 #include <db.h>
34461 #endif
34462 #ifndef DB_VERSION_MAJOR
34463 # define DB_VERSION_MAJOR 1
34464 #endif
34465 #ifndef NULL
34466 #define NULL ((void *)0)
34467 #endif
34468 main()
34469 {
34470 #if DB_VERSION_MAJOR > 1
34471         char *version;
34472         int major, minor, patch;
34473
34474         version = db_version( &major, &minor, &patch );
34475
34476         if( major != DB_VERSION_MAJOR ||
34477                 minor != DB_VERSION_MINOR ||
34478                 patch != DB_VERSION_PATCH )
34479         {
34480                 printf("Berkeley DB version mismatch\n"
34481                         "\theader: %s\n\tlibrary: %s\n",
34482                         DB_VERSION_STRING, version);
34483                 return 1;
34484         }
34485 #endif
34486
34487         return 0;
34488 }
34489 _ACEOF
34490 rm -f conftest$ac_exeext
34491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34492   (eval $ac_link) 2>&5
34493   ac_status=$?
34494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497   (eval $ac_try) 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; }; then
34501   ol_cv_berkeley_db_version=yes
34502 else
34503   echo "$as_me: program exited with status $ac_status" >&5
34504 echo "$as_me: failed program was:" >&5
34505 sed 's/^/| /' conftest.$ac_ext >&5
34506
34507 ( exit $ac_status )
34508 ol_cv_berkeley_db_version=no
34509 fi
34510 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34511 fi
34512
34513         LIBS="$ol_LIBS"
34514
34515 fi
34516 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
34517 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
34518
34519         if test $ol_cv_berkeley_db_version = no ; then
34520                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
34521 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
34522    { (exit 1); exit 1; }; }
34523         fi
34524
34525                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
34526 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
34527 if test "${ol_cv_berkeley_db_thread+set}" = set; then
34528   echo $ECHO_N "(cached) $ECHO_C" >&6
34529 else
34530
34531         ol_LIBS="$LIBS"
34532         LIBS="$LTHREAD_LIBS $LIBS"
34533         if test $ol_cv_lib_db != yes ; then
34534                 LIBS="$ol_cv_lib_db $LIBS"
34535         fi
34536
34537         if test "$cross_compiling" = yes; then
34538   ol_cv_berkeley_db_thread=cross
34539 else
34540   cat >conftest.$ac_ext <<_ACEOF
34541 /* confdefs.h.  */
34542 _ACEOF
34543 cat confdefs.h >>conftest.$ac_ext
34544 cat >>conftest.$ac_ext <<_ACEOF
34545 /* end confdefs.h.  */
34546
34547 #ifdef HAVE_DB_185_H
34548         choke me;
34549 #else
34550 #include <db.h>
34551 #endif
34552 #ifndef NULL
34553 #define NULL ((void *)0)
34554 #endif
34555 main()
34556 {
34557         int rc;
34558         u_int32_t flags = DB_CREATE |
34559 #ifdef DB_PRIVATE
34560                 DB_PRIVATE |
34561 #endif
34562                 DB_THREAD;
34563
34564 #if DB_VERSION_MAJOR > 2
34565         DB_ENV *env = NULL;
34566
34567         rc = db_env_create( &env, 0 );
34568
34569         flags |= DB_INIT_MPOOL;
34570 #ifdef DB_MPOOL_PRIVATE
34571         flags |= DB_MPOOL_PRIVATE;
34572 #endif
34573
34574         if( rc ) {
34575                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34576                 return rc;
34577         }
34578
34579 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
34580         rc = env->open( env, NULL, flags, 0 );
34581 #else
34582         rc = env->open( env, NULL, NULL, flags, 0 );
34583 #endif
34584
34585         if ( rc == 0 ) {
34586                 rc = env->close( env, 0 );
34587         }
34588
34589         if( rc ) {
34590                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
34591                 return rc;
34592         }
34593
34594 #else
34595         DB_ENV env;
34596         memset( &env, '\0', sizeof(env) );
34597
34598         rc = db_appinit( NULL, NULL, &env, flags );
34599
34600         if( rc == 0 ) {
34601                 db_appexit( &env );
34602         }
34603
34604         unlink("__db_mpool.share");
34605         unlink("__db_lock.share");
34606 #endif
34607
34608         return rc;
34609 }
34610 _ACEOF
34611 rm -f conftest$ac_exeext
34612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34613   (eval $ac_link) 2>&5
34614   ac_status=$?
34615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34618   (eval $ac_try) 2>&5
34619   ac_status=$?
34620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621   (exit $ac_status); }; }; then
34622   ol_cv_berkeley_db_thread=yes
34623 else
34624   echo "$as_me: program exited with status $ac_status" >&5
34625 echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.$ac_ext >&5
34627
34628 ( exit $ac_status )
34629 ol_cv_berkeley_db_thread=no
34630 fi
34631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34632 fi
34633
34634         LIBS="$ol_LIBS"
34635
34636 fi
34637 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
34638 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
34639
34640         if test $ol_cv_berkeley_db_thread != no ; then
34641
34642 cat >>confdefs.h <<\_ACEOF
34643 #define HAVE_BERKELEY_DB_THREAD 1
34644 _ACEOF
34645
34646         fi
34647
34648         fi
34649 fi
34650
34651         fi
34652
34653         if test $ol_cv_berkeley_db != no ; then
34654
34655 cat >>confdefs.h <<\_ACEOF
34656 #define HAVE_BERKELEY_DB 1
34657 _ACEOF
34658
34659
34660                 ol_link_ldbm=berkeley
34661                 ol_enable_ldbm_api=berkeley
34662
34663                 if test $ol_enable_ldbm_type = hash ; then
34664
34665 cat >>confdefs.h <<\_ACEOF
34666 #define LDBM_USE_DBHASH 1
34667 _ACEOF
34668
34669                 else
34670
34671 cat >>confdefs.h <<\_ACEOF
34672 #define LDBM_USE_DBBTREE 1
34673 _ACEOF
34674
34675                 fi
34676
34677                                                 if test $ol_cv_lib_db != yes ; then
34678                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
34679                 fi
34680         fi
34681         ;;
34682 esac
34683
34684 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
34685         if test $ol_link_ldbm != berkeley ; then
34686                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
34687 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
34688    { (exit 1); exit 1; }; }
34689         else
34690                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
34691 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
34692 if test "${ol_cv_bdb_compat+set}" = set; then
34693   echo $ECHO_N "(cached) $ECHO_C" >&6
34694 else
34695
34696         cat >conftest.$ac_ext <<_ACEOF
34697 /* confdefs.h.  */
34698 _ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h.  */
34702
34703 #include <db.h>
34704
34705  /* this check could be improved */
34706 #ifndef DB_VERSION_MAJOR
34707 #       define DB_VERSION_MAJOR 1
34708 #endif
34709 #ifndef DB_VERSION_MINOR
34710 #       define DB_VERSION_MINOR 0
34711 #endif
34712
34713 /* require 4.2 or later */
34714 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
34715         __db_version_compat
34716 #endif
34717
34718 _ACEOF
34719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34720   $EGREP "__db_version_compat" >/dev/null 2>&1; then
34721   ol_cv_bdb_compat=yes
34722 else
34723   ol_cv_bdb_compat=no
34724 fi
34725 rm -f conftest*
34726
34727 fi
34728 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
34729 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
34730
34731
34732                 if test $ol_cv_bdb_compat != yes ; then
34733                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
34734 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
34735    { (exit 1); exit 1; }; }
34736                 fi
34737         fi
34738 fi
34739
34740 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
34741         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
34742 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
34743         ol_enable_ldbm_api=none
34744 fi
34745
34746 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
34747         echo "$as_me:$LINENO: checking for MDBM library" >&5
34748 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
34749 if test "${ol_cv_lib_mdbm+set}" = set; then
34750   echo $ECHO_N "(cached) $ECHO_C" >&6
34751 else
34752         ol_LIBS="$LIBS"
34753         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
34754 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
34755 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
34756   echo $ECHO_N "(cached) $ECHO_C" >&6
34757 else
34758   cat >conftest.$ac_ext <<_ACEOF
34759 /* confdefs.h.  */
34760 _ACEOF
34761 cat confdefs.h >>conftest.$ac_ext
34762 cat >>conftest.$ac_ext <<_ACEOF
34763 /* end confdefs.h.  */
34764 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
34765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34766 #define mdbm_set_chain innocuous_mdbm_set_chain
34767
34768 /* System header to define __stub macros and hopefully few prototypes,
34769     which can conflict with char mdbm_set_chain (); below.
34770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34771     <limits.h> exists even on freestanding compilers.  */
34772
34773 #ifdef __STDC__
34774 # include <limits.h>
34775 #else
34776 # include <assert.h>
34777 #endif
34778
34779 #undef mdbm_set_chain
34780
34781 /* Override any gcc2 internal prototype to avoid an error.  */
34782 #ifdef __cplusplus
34783 extern "C"
34784 {
34785 #endif
34786 /* We use char because int might match the return type of a gcc2
34787    builtin and then its argument prototype would still apply.  */
34788 char mdbm_set_chain ();
34789 /* The GNU C library defines this for functions which it implements
34790     to always fail with ENOSYS.  Some functions are actually named
34791     something starting with __ and the normal name is an alias.  */
34792 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
34793 choke me
34794 #else
34795 char (*f) () = mdbm_set_chain;
34796 #endif
34797 #ifdef __cplusplus
34798 }
34799 #endif
34800
34801 int
34802 main ()
34803 {
34804 return f != mdbm_set_chain;
34805   ;
34806   return 0;
34807 }
34808 _ACEOF
34809 rm -f conftest.$ac_objext conftest$ac_exeext
34810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34811   (eval $ac_link) 2>conftest.er1
34812   ac_status=$?
34813   grep -v '^ *+' conftest.er1 >conftest.err
34814   rm -f conftest.er1
34815   cat conftest.err >&5
34816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34817   (exit $ac_status); } &&
34818          { ac_try='test -z "$ac_c_werror_flag"
34819                          || test ! -s conftest.err'
34820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34821   (eval $ac_try) 2>&5
34822   ac_status=$?
34823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824   (exit $ac_status); }; } &&
34825          { ac_try='test -s conftest$ac_exeext'
34826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827   (eval $ac_try) 2>&5
34828   ac_status=$?
34829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830   (exit $ac_status); }; }; then
34831   ac_cv_func_mdbm_set_chain=yes
34832 else
34833   echo "$as_me: failed program was:" >&5
34834 sed 's/^/| /' conftest.$ac_ext >&5
34835
34836 ac_cv_func_mdbm_set_chain=no
34837 fi
34838 rm -f conftest.err conftest.$ac_objext \
34839       conftest$ac_exeext conftest.$ac_ext
34840 fi
34841 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
34842 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
34843 if test $ac_cv_func_mdbm_set_chain = yes; then
34844   ol_cv_lib_mdbm=yes
34845 else
34846
34847                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
34848 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
34849 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
34850   echo $ECHO_N "(cached) $ECHO_C" >&6
34851 else
34852   ac_check_lib_save_LIBS=$LIBS
34853 LIBS="-lmdbm  $LIBS"
34854 cat >conftest.$ac_ext <<_ACEOF
34855 /* confdefs.h.  */
34856 _ACEOF
34857 cat confdefs.h >>conftest.$ac_ext
34858 cat >>conftest.$ac_ext <<_ACEOF
34859 /* end confdefs.h.  */
34860
34861 /* Override any gcc2 internal prototype to avoid an error.  */
34862 #ifdef __cplusplus
34863 extern "C"
34864 #endif
34865 /* We use char because int might match the return type of a gcc2
34866    builtin and then its argument prototype would still apply.  */
34867 char mdbm_set_chain ();
34868 int
34869 main ()
34870 {
34871 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_lib_mdbm_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_lib_mdbm_mdbm_set_chain=no
34904 fi
34905 rm -f conftest.err conftest.$ac_objext \
34906       conftest$ac_exeext conftest.$ac_ext
34907 LIBS=$ac_check_lib_save_LIBS
34908 fi
34909 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
34910 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
34911 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
34912   ol_cv_lib_mdbm=-lmdbm
34913 else
34914   ol_cv_lib_mdbm=no
34915 fi
34916
34917
34918 fi
34919
34920         LIBS="$ol_LIBS"
34921
34922 fi
34923 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
34924 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
34925
34926
34927
34928 for ac_header in mdbm.h
34929 do
34930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34932   echo "$as_me:$LINENO: checking for $ac_header" >&5
34933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34935   echo $ECHO_N "(cached) $ECHO_C" >&6
34936 fi
34937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34939 else
34940   # Is the header compilable?
34941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34943 cat >conftest.$ac_ext <<_ACEOF
34944 /* confdefs.h.  */
34945 _ACEOF
34946 cat confdefs.h >>conftest.$ac_ext
34947 cat >>conftest.$ac_ext <<_ACEOF
34948 /* end confdefs.h.  */
34949 $ac_includes_default
34950 #include <$ac_header>
34951 _ACEOF
34952 rm -f conftest.$ac_objext
34953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34954   (eval $ac_compile) 2>conftest.er1
34955   ac_status=$?
34956   grep -v '^ *+' conftest.er1 >conftest.err
34957   rm -f conftest.er1
34958   cat conftest.err >&5
34959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960   (exit $ac_status); } &&
34961          { ac_try='test -z "$ac_c_werror_flag"
34962                          || test ! -s conftest.err'
34963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964   (eval $ac_try) 2>&5
34965   ac_status=$?
34966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967   (exit $ac_status); }; } &&
34968          { ac_try='test -s conftest.$ac_objext'
34969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970   (eval $ac_try) 2>&5
34971   ac_status=$?
34972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973   (exit $ac_status); }; }; then
34974   ac_header_compiler=yes
34975 else
34976   echo "$as_me: failed program was:" >&5
34977 sed 's/^/| /' conftest.$ac_ext >&5
34978
34979 ac_header_compiler=no
34980 fi
34981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34983 echo "${ECHO_T}$ac_header_compiler" >&6
34984
34985 # Is the header present?
34986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34988 cat >conftest.$ac_ext <<_ACEOF
34989 /* confdefs.h.  */
34990 _ACEOF
34991 cat confdefs.h >>conftest.$ac_ext
34992 cat >>conftest.$ac_ext <<_ACEOF
34993 /* end confdefs.h.  */
34994 #include <$ac_header>
34995 _ACEOF
34996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34998   ac_status=$?
34999   grep -v '^ *+' conftest.er1 >conftest.err
35000   rm -f conftest.er1
35001   cat conftest.err >&5
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); } >/dev/null; then
35004   if test -s conftest.err; then
35005     ac_cpp_err=$ac_c_preproc_warn_flag
35006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35007   else
35008     ac_cpp_err=
35009   fi
35010 else
35011   ac_cpp_err=yes
35012 fi
35013 if test -z "$ac_cpp_err"; then
35014   ac_header_preproc=yes
35015 else
35016   echo "$as_me: failed program was:" >&5
35017 sed 's/^/| /' conftest.$ac_ext >&5
35018
35019   ac_header_preproc=no
35020 fi
35021 rm -f conftest.err conftest.$ac_ext
35022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35023 echo "${ECHO_T}$ac_header_preproc" >&6
35024
35025 # So?  What about this header?
35026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35027   yes:no: )
35028     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35032     ac_header_preproc=yes
35033     ;;
35034   no:yes:* )
35035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35037     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35038 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35039     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35041     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35042 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35043     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35045     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35047     (
35048       cat <<\_ASBOX
35049 ## ------------------------------------------ ##
35050 ## Report this to the AC_PACKAGE_NAME lists.  ##
35051 ## ------------------------------------------ ##
35052 _ASBOX
35053     ) |
35054       sed "s/^/$as_me: WARNING:     /" >&2
35055     ;;
35056 esac
35057 echo "$as_me:$LINENO: checking for $ac_header" >&5
35058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35060   echo $ECHO_N "(cached) $ECHO_C" >&6
35061 else
35062   eval "$as_ac_Header=\$ac_header_preproc"
35063 fi
35064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35066
35067 fi
35068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35069   cat >>confdefs.h <<_ACEOF
35070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35071 _ACEOF
35072
35073 fi
35074
35075 done
35076
35077  echo "$as_me:$LINENO: checking for db" >&5
35078 echo $ECHO_N "checking for db... $ECHO_C" >&6
35079 if test "${ol_cv_mdbm+set}" = set; then
35080   echo $ECHO_N "(cached) $ECHO_C" >&6
35081 else
35082
35083         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
35084                 ol_cv_mdbm=no
35085         else
35086                 ol_cv_mdbm=yes
35087         fi
35088
35089 fi
35090 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
35091 echo "${ECHO_T}$ol_cv_mdbm" >&6
35092  if test $ol_cv_mdbm = yes ; then
35093
35094 cat >>confdefs.h <<\_ACEOF
35095 #define HAVE_MDBM 1
35096 _ACEOF
35097
35098  fi
35099
35100
35101         if test $ol_cv_mdbm = yes ; then
35102                 ol_link_ldbm=mdbm
35103                 ol_enable_ldbm_api=mdbm
35104                 if test $ol_cv_lib_mdbm != yes ; then
35105                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
35106                 fi
35107         fi
35108 fi
35109
35110 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
35111         echo "$as_me:$LINENO: checking for GDBM library" >&5
35112 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
35113 if test "${ol_cv_lib_gdbm+set}" = set; then
35114   echo $ECHO_N "(cached) $ECHO_C" >&6
35115 else
35116         ol_LIBS="$LIBS"
35117         echo "$as_me:$LINENO: checking for gdbm_open" >&5
35118 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
35119 if test "${ac_cv_func_gdbm_open+set}" = set; then
35120   echo $ECHO_N "(cached) $ECHO_C" >&6
35121 else
35122   cat >conftest.$ac_ext <<_ACEOF
35123 /* confdefs.h.  */
35124 _ACEOF
35125 cat confdefs.h >>conftest.$ac_ext
35126 cat >>conftest.$ac_ext <<_ACEOF
35127 /* end confdefs.h.  */
35128 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
35129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35130 #define gdbm_open innocuous_gdbm_open
35131
35132 /* System header to define __stub macros and hopefully few prototypes,
35133     which can conflict with char gdbm_open (); below.
35134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35135     <limits.h> exists even on freestanding compilers.  */
35136
35137 #ifdef __STDC__
35138 # include <limits.h>
35139 #else
35140 # include <assert.h>
35141 #endif
35142
35143 #undef gdbm_open
35144
35145 /* Override any gcc2 internal prototype to avoid an error.  */
35146 #ifdef __cplusplus
35147 extern "C"
35148 {
35149 #endif
35150 /* We use char because int might match the return type of a gcc2
35151    builtin and then its argument prototype would still apply.  */
35152 char gdbm_open ();
35153 /* The GNU C library defines this for functions which it implements
35154     to always fail with ENOSYS.  Some functions are actually named
35155     something starting with __ and the normal name is an alias.  */
35156 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
35157 choke me
35158 #else
35159 char (*f) () = gdbm_open;
35160 #endif
35161 #ifdef __cplusplus
35162 }
35163 #endif
35164
35165 int
35166 main ()
35167 {
35168 return f != gdbm_open;
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext conftest$ac_exeext
35174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35175   (eval $ac_link) 2>conftest.er1
35176   ac_status=$?
35177   grep -v '^ *+' conftest.er1 >conftest.err
35178   rm -f conftest.er1
35179   cat conftest.err >&5
35180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181   (exit $ac_status); } &&
35182          { ac_try='test -z "$ac_c_werror_flag"
35183                          || test ! -s conftest.err'
35184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35185   (eval $ac_try) 2>&5
35186   ac_status=$?
35187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35188   (exit $ac_status); }; } &&
35189          { ac_try='test -s conftest$ac_exeext'
35190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35191   (eval $ac_try) 2>&5
35192   ac_status=$?
35193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194   (exit $ac_status); }; }; then
35195   ac_cv_func_gdbm_open=yes
35196 else
35197   echo "$as_me: failed program was:" >&5
35198 sed 's/^/| /' conftest.$ac_ext >&5
35199
35200 ac_cv_func_gdbm_open=no
35201 fi
35202 rm -f conftest.err conftest.$ac_objext \
35203       conftest$ac_exeext conftest.$ac_ext
35204 fi
35205 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
35206 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
35207 if test $ac_cv_func_gdbm_open = yes; then
35208   ol_cv_lib_gdbm=yes
35209 else
35210
35211                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
35212 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
35213 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
35214   echo $ECHO_N "(cached) $ECHO_C" >&6
35215 else
35216   ac_check_lib_save_LIBS=$LIBS
35217 LIBS="-lgdbm  $LIBS"
35218 cat >conftest.$ac_ext <<_ACEOF
35219 /* confdefs.h.  */
35220 _ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h.  */
35224
35225 /* Override any gcc2 internal prototype to avoid an error.  */
35226 #ifdef __cplusplus
35227 extern "C"
35228 #endif
35229 /* We use char because int might match the return type of a gcc2
35230    builtin and then its argument prototype would still apply.  */
35231 char gdbm_open ();
35232 int
35233 main ()
35234 {
35235 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_lib_gdbm_gdbm_open=yes
35263 else
35264   echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.$ac_ext >&5
35266
35267 ac_cv_lib_gdbm_gdbm_open=no
35268 fi
35269 rm -f conftest.err conftest.$ac_objext \
35270       conftest$ac_exeext conftest.$ac_ext
35271 LIBS=$ac_check_lib_save_LIBS
35272 fi
35273 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
35274 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
35275 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
35276   ol_cv_lib_gdbm=-lgdbm
35277 else
35278   ol_cv_lib_gdbm=no
35279 fi
35280
35281
35282 fi
35283
35284         LIBS="$ol_LIBS"
35285
35286 fi
35287 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
35288 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
35289
35290
35291
35292 for ac_header in gdbm.h
35293 do
35294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35296   echo "$as_me:$LINENO: checking for $ac_header" >&5
35297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35299   echo $ECHO_N "(cached) $ECHO_C" >&6
35300 fi
35301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35303 else
35304   # Is the header compilable?
35305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35307 cat >conftest.$ac_ext <<_ACEOF
35308 /* confdefs.h.  */
35309 _ACEOF
35310 cat confdefs.h >>conftest.$ac_ext
35311 cat >>conftest.$ac_ext <<_ACEOF
35312 /* end confdefs.h.  */
35313 $ac_includes_default
35314 #include <$ac_header>
35315 _ACEOF
35316 rm -f conftest.$ac_objext
35317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35318   (eval $ac_compile) 2>conftest.er1
35319   ac_status=$?
35320   grep -v '^ *+' conftest.er1 >conftest.err
35321   rm -f conftest.er1
35322   cat conftest.err >&5
35323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35324   (exit $ac_status); } &&
35325          { ac_try='test -z "$ac_c_werror_flag"
35326                          || test ! -s conftest.err'
35327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328   (eval $ac_try) 2>&5
35329   ac_status=$?
35330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331   (exit $ac_status); }; } &&
35332          { ac_try='test -s conftest.$ac_objext'
35333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334   (eval $ac_try) 2>&5
35335   ac_status=$?
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); }; }; then
35338   ac_header_compiler=yes
35339 else
35340   echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35342
35343 ac_header_compiler=no
35344 fi
35345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35347 echo "${ECHO_T}$ac_header_compiler" >&6
35348
35349 # Is the header present?
35350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35352 cat >conftest.$ac_ext <<_ACEOF
35353 /* confdefs.h.  */
35354 _ACEOF
35355 cat confdefs.h >>conftest.$ac_ext
35356 cat >>conftest.$ac_ext <<_ACEOF
35357 /* end confdefs.h.  */
35358 #include <$ac_header>
35359 _ACEOF
35360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35362   ac_status=$?
35363   grep -v '^ *+' conftest.er1 >conftest.err
35364   rm -f conftest.er1
35365   cat conftest.err >&5
35366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367   (exit $ac_status); } >/dev/null; then
35368   if test -s conftest.err; then
35369     ac_cpp_err=$ac_c_preproc_warn_flag
35370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35371   else
35372     ac_cpp_err=
35373   fi
35374 else
35375   ac_cpp_err=yes
35376 fi
35377 if test -z "$ac_cpp_err"; then
35378   ac_header_preproc=yes
35379 else
35380   echo "$as_me: failed program was:" >&5
35381 sed 's/^/| /' conftest.$ac_ext >&5
35382
35383   ac_header_preproc=no
35384 fi
35385 rm -f conftest.err conftest.$ac_ext
35386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35387 echo "${ECHO_T}$ac_header_preproc" >&6
35388
35389 # So?  What about this header?
35390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35391   yes:no: )
35392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35396     ac_header_preproc=yes
35397     ;;
35398   no:yes:* )
35399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35411     (
35412       cat <<\_ASBOX
35413 ## ------------------------------------------ ##
35414 ## Report this to the AC_PACKAGE_NAME lists.  ##
35415 ## ------------------------------------------ ##
35416 _ASBOX
35417     ) |
35418       sed "s/^/$as_me: WARNING:     /" >&2
35419     ;;
35420 esac
35421 echo "$as_me:$LINENO: checking for $ac_header" >&5
35422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35424   echo $ECHO_N "(cached) $ECHO_C" >&6
35425 else
35426   eval "$as_ac_Header=\$ac_header_preproc"
35427 fi
35428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35430
35431 fi
35432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35433   cat >>confdefs.h <<_ACEOF
35434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35435 _ACEOF
35436
35437 fi
35438
35439 done
35440
35441  echo "$as_me:$LINENO: checking for db" >&5
35442 echo $ECHO_N "checking for db... $ECHO_C" >&6
35443 if test "${ol_cv_gdbm+set}" = set; then
35444   echo $ECHO_N "(cached) $ECHO_C" >&6
35445 else
35446
35447         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
35448                 ol_cv_gdbm=no
35449         else
35450                 ol_cv_gdbm=yes
35451         fi
35452
35453 fi
35454 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
35455 echo "${ECHO_T}$ol_cv_gdbm" >&6
35456  if test $ol_cv_gdbm = yes ; then
35457
35458 cat >>confdefs.h <<\_ACEOF
35459 #define HAVE_GDBM 1
35460 _ACEOF
35461
35462  fi
35463
35464
35465         if test $ol_cv_gdbm = yes ; then
35466                 ol_link_ldbm=gdbm
35467                 ol_enable_ldbm_api=gdbm
35468
35469                 if test $ol_cv_lib_gdbm != yes ; then
35470                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
35471                 fi
35472         fi
35473 fi
35474
35475 if test $ol_enable_ldbm_api = ndbm ; then
35476         echo "$as_me:$LINENO: checking for NDBM library" >&5
35477 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
35478 if test "${ol_cv_lib_ndbm+set}" = set; then
35479   echo $ECHO_N "(cached) $ECHO_C" >&6
35480 else
35481         ol_LIBS="$LIBS"
35482         echo "$as_me:$LINENO: checking for dbm_open" >&5
35483 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
35484 if test "${ac_cv_func_dbm_open+set}" = set; then
35485   echo $ECHO_N "(cached) $ECHO_C" >&6
35486 else
35487   cat >conftest.$ac_ext <<_ACEOF
35488 /* confdefs.h.  */
35489 _ACEOF
35490 cat confdefs.h >>conftest.$ac_ext
35491 cat >>conftest.$ac_ext <<_ACEOF
35492 /* end confdefs.h.  */
35493 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
35494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35495 #define dbm_open innocuous_dbm_open
35496
35497 /* System header to define __stub macros and hopefully few prototypes,
35498     which can conflict with char dbm_open (); below.
35499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35500     <limits.h> exists even on freestanding compilers.  */
35501
35502 #ifdef __STDC__
35503 # include <limits.h>
35504 #else
35505 # include <assert.h>
35506 #endif
35507
35508 #undef dbm_open
35509
35510 /* Override any gcc2 internal prototype to avoid an error.  */
35511 #ifdef __cplusplus
35512 extern "C"
35513 {
35514 #endif
35515 /* We use char because int might match the return type of a gcc2
35516    builtin and then its argument prototype would still apply.  */
35517 char dbm_open ();
35518 /* The GNU C library defines this for functions which it implements
35519     to always fail with ENOSYS.  Some functions are actually named
35520     something starting with __ and the normal name is an alias.  */
35521 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
35522 choke me
35523 #else
35524 char (*f) () = dbm_open;
35525 #endif
35526 #ifdef __cplusplus
35527 }
35528 #endif
35529
35530 int
35531 main ()
35532 {
35533 return f != dbm_open;
35534   ;
35535   return 0;
35536 }
35537 _ACEOF
35538 rm -f conftest.$ac_objext conftest$ac_exeext
35539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35540   (eval $ac_link) 2>conftest.er1
35541   ac_status=$?
35542   grep -v '^ *+' conftest.er1 >conftest.err
35543   rm -f conftest.er1
35544   cat conftest.err >&5
35545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546   (exit $ac_status); } &&
35547          { ac_try='test -z "$ac_c_werror_flag"
35548                          || test ! -s conftest.err'
35549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35550   (eval $ac_try) 2>&5
35551   ac_status=$?
35552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553   (exit $ac_status); }; } &&
35554          { ac_try='test -s conftest$ac_exeext'
35555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556   (eval $ac_try) 2>&5
35557   ac_status=$?
35558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559   (exit $ac_status); }; }; then
35560   ac_cv_func_dbm_open=yes
35561 else
35562   echo "$as_me: failed program was:" >&5
35563 sed 's/^/| /' conftest.$ac_ext >&5
35564
35565 ac_cv_func_dbm_open=no
35566 fi
35567 rm -f conftest.err conftest.$ac_objext \
35568       conftest$ac_exeext conftest.$ac_ext
35569 fi
35570 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
35571 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
35572 if test $ac_cv_func_dbm_open = yes; then
35573   ol_cv_lib_ndbm=yes
35574 else
35575
35576                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35577 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35578 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35579   echo $ECHO_N "(cached) $ECHO_C" >&6
35580 else
35581   ac_check_lib_save_LIBS=$LIBS
35582 LIBS="-lndbm  $LIBS"
35583 cat >conftest.$ac_ext <<_ACEOF
35584 /* confdefs.h.  */
35585 _ACEOF
35586 cat confdefs.h >>conftest.$ac_ext
35587 cat >>conftest.$ac_ext <<_ACEOF
35588 /* end confdefs.h.  */
35589
35590 /* Override any gcc2 internal prototype to avoid an error.  */
35591 #ifdef __cplusplus
35592 extern "C"
35593 #endif
35594 /* We use char because int might match the return type of a gcc2
35595    builtin and then its argument prototype would still apply.  */
35596 char dbm_open ();
35597 int
35598 main ()
35599 {
35600 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_lib_ndbm_dbm_open=yes
35628 else
35629   echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35631
35632 ac_cv_lib_ndbm_dbm_open=no
35633 fi
35634 rm -f conftest.err conftest.$ac_objext \
35635       conftest$ac_exeext conftest.$ac_ext
35636 LIBS=$ac_check_lib_save_LIBS
35637 fi
35638 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35639 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35640 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35641   ol_cv_lib_ndbm=-lndbm
35642 else
35643
35644                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35645 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35646 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35647   echo $ECHO_N "(cached) $ECHO_C" >&6
35648 else
35649   ac_check_lib_save_LIBS=$LIBS
35650 LIBS="-ldbm  $LIBS"
35651 cat >conftest.$ac_ext <<_ACEOF
35652 /* confdefs.h.  */
35653 _ACEOF
35654 cat confdefs.h >>conftest.$ac_ext
35655 cat >>conftest.$ac_ext <<_ACEOF
35656 /* end confdefs.h.  */
35657
35658 /* Override any gcc2 internal prototype to avoid an error.  */
35659 #ifdef __cplusplus
35660 extern "C"
35661 #endif
35662 /* We use char because int might match the return type of a gcc2
35663    builtin and then its argument prototype would still apply.  */
35664 char dbm_open ();
35665 int
35666 main ()
35667 {
35668 dbm_open ();
35669   ;
35670   return 0;
35671 }
35672 _ACEOF
35673 rm -f conftest.$ac_objext conftest$ac_exeext
35674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35675   (eval $ac_link) 2>conftest.er1
35676   ac_status=$?
35677   grep -v '^ *+' conftest.er1 >conftest.err
35678   rm -f conftest.er1
35679   cat conftest.err >&5
35680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681   (exit $ac_status); } &&
35682          { ac_try='test -z "$ac_c_werror_flag"
35683                          || test ! -s conftest.err'
35684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35685   (eval $ac_try) 2>&5
35686   ac_status=$?
35687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35688   (exit $ac_status); }; } &&
35689          { ac_try='test -s conftest$ac_exeext'
35690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35691   (eval $ac_try) 2>&5
35692   ac_status=$?
35693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694   (exit $ac_status); }; }; then
35695   ac_cv_lib_dbm_dbm_open=yes
35696 else
35697   echo "$as_me: failed program was:" >&5
35698 sed 's/^/| /' conftest.$ac_ext >&5
35699
35700 ac_cv_lib_dbm_dbm_open=no
35701 fi
35702 rm -f conftest.err conftest.$ac_objext \
35703       conftest$ac_exeext conftest.$ac_ext
35704 LIBS=$ac_check_lib_save_LIBS
35705 fi
35706 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35707 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35708 if test $ac_cv_lib_dbm_dbm_open = yes; then
35709   ol_cv_lib_ndbm=-ldbm
35710 else
35711   ol_cv_lib_ndbm=no
35712 fi
35713
35714 fi
35715
35716
35717 fi
35718
35719         LIBS="$ol_LIBS"
35720
35721 fi
35722 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
35723 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
35724
35725
35726
35727 for ac_header in ndbm.h
35728 do
35729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35731   echo "$as_me:$LINENO: checking for $ac_header" >&5
35732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35734   echo $ECHO_N "(cached) $ECHO_C" >&6
35735 fi
35736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35737 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35738 else
35739   # Is the header compilable?
35740 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35742 cat >conftest.$ac_ext <<_ACEOF
35743 /* confdefs.h.  */
35744 _ACEOF
35745 cat confdefs.h >>conftest.$ac_ext
35746 cat >>conftest.$ac_ext <<_ACEOF
35747 /* end confdefs.h.  */
35748 $ac_includes_default
35749 #include <$ac_header>
35750 _ACEOF
35751 rm -f conftest.$ac_objext
35752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35753   (eval $ac_compile) 2>conftest.er1
35754   ac_status=$?
35755   grep -v '^ *+' conftest.er1 >conftest.err
35756   rm -f conftest.er1
35757   cat conftest.err >&5
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); } &&
35760          { ac_try='test -z "$ac_c_werror_flag"
35761                          || test ! -s conftest.err'
35762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35763   (eval $ac_try) 2>&5
35764   ac_status=$?
35765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766   (exit $ac_status); }; } &&
35767          { ac_try='test -s conftest.$ac_objext'
35768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769   (eval $ac_try) 2>&5
35770   ac_status=$?
35771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772   (exit $ac_status); }; }; then
35773   ac_header_compiler=yes
35774 else
35775   echo "$as_me: failed program was:" >&5
35776 sed 's/^/| /' conftest.$ac_ext >&5
35777
35778 ac_header_compiler=no
35779 fi
35780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35782 echo "${ECHO_T}$ac_header_compiler" >&6
35783
35784 # Is the header present?
35785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35787 cat >conftest.$ac_ext <<_ACEOF
35788 /* confdefs.h.  */
35789 _ACEOF
35790 cat confdefs.h >>conftest.$ac_ext
35791 cat >>conftest.$ac_ext <<_ACEOF
35792 /* end confdefs.h.  */
35793 #include <$ac_header>
35794 _ACEOF
35795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35796   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35797   ac_status=$?
35798   grep -v '^ *+' conftest.er1 >conftest.err
35799   rm -f conftest.er1
35800   cat conftest.err >&5
35801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802   (exit $ac_status); } >/dev/null; then
35803   if test -s conftest.err; then
35804     ac_cpp_err=$ac_c_preproc_warn_flag
35805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35806   else
35807     ac_cpp_err=
35808   fi
35809 else
35810   ac_cpp_err=yes
35811 fi
35812 if test -z "$ac_cpp_err"; then
35813   ac_header_preproc=yes
35814 else
35815   echo "$as_me: failed program was:" >&5
35816 sed 's/^/| /' conftest.$ac_ext >&5
35817
35818   ac_header_preproc=no
35819 fi
35820 rm -f conftest.err conftest.$ac_ext
35821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35822 echo "${ECHO_T}$ac_header_preproc" >&6
35823
35824 # So?  What about this header?
35825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35826   yes:no: )
35827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35830 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35831     ac_header_preproc=yes
35832     ;;
35833   no:yes:* )
35834     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35836     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35837 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35838     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35839 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35840     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35841 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35843 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35844     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35845 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35846     (
35847       cat <<\_ASBOX
35848 ## ------------------------------------------ ##
35849 ## Report this to the AC_PACKAGE_NAME lists.  ##
35850 ## ------------------------------------------ ##
35851 _ASBOX
35852     ) |
35853       sed "s/^/$as_me: WARNING:     /" >&2
35854     ;;
35855 esac
35856 echo "$as_me:$LINENO: checking for $ac_header" >&5
35857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35859   echo $ECHO_N "(cached) $ECHO_C" >&6
35860 else
35861   eval "$as_ac_Header=\$ac_header_preproc"
35862 fi
35863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35865
35866 fi
35867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35868   cat >>confdefs.h <<_ACEOF
35869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35870 _ACEOF
35871
35872 fi
35873
35874 done
35875
35876  echo "$as_me:$LINENO: checking for db" >&5
35877 echo $ECHO_N "checking for db... $ECHO_C" >&6
35878 if test "${ol_cv_ndbm+set}" = set; then
35879   echo $ECHO_N "(cached) $ECHO_C" >&6
35880 else
35881
35882         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
35883                 ol_cv_ndbm=no
35884         else
35885                 ol_cv_ndbm=yes
35886         fi
35887
35888 fi
35889 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
35890 echo "${ECHO_T}$ol_cv_ndbm" >&6
35891  if test $ol_cv_ndbm = yes ; then
35892
35893 cat >>confdefs.h <<\_ACEOF
35894 #define HAVE_NDBM 1
35895 _ACEOF
35896
35897  fi
35898
35899
35900         if test $ol_cv_ndbm = yes ; then
35901                 ol_link_ldbm=ndbm
35902                 ol_enable_ldbm_api=ndbm
35903
35904                 if test $ol_cv_lib_ndbm != yes ; then
35905                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
35906                 fi
35907         fi
35908 fi
35909
35910 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
35911         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
35912 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
35913    { (exit 1); exit 1; }; }
35914 fi
35915
35916 if test $ol_enable_bdb = yes ||
35917    test $ol_enable_hdb = yes ||
35918    test $ol_enable_ldbm = yes ; then
35919         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
35920 fi
35921
35922
35923 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
35924         BUILD_LIBS_DYNAMIC=shared
35925
35926 cat >>confdefs.h <<\_ACEOF
35927 #define LDAP_LIBS_DYNAMIC 1
35928 _ACEOF
35929
35930         LTSTATIC=""
35931 else
35932         BUILD_LIBS_DYNAMIC=static
35933         LTSTATIC="-static"
35934 fi
35935
35936 if test $ol_enable_wrappers != no ; then
35937
35938 for ac_header in tcpd.h
35939 do
35940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35942   echo "$as_me:$LINENO: checking for $ac_header" >&5
35943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35945   echo $ECHO_N "(cached) $ECHO_C" >&6
35946 fi
35947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35949 else
35950   # Is the header compilable?
35951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35953 cat >conftest.$ac_ext <<_ACEOF
35954 /* confdefs.h.  */
35955 _ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h.  */
35959 $ac_includes_default
35960 #include <$ac_header>
35961 _ACEOF
35962 rm -f conftest.$ac_objext
35963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35964   (eval $ac_compile) 2>conftest.er1
35965   ac_status=$?
35966   grep -v '^ *+' conftest.er1 >conftest.err
35967   rm -f conftest.er1
35968   cat conftest.err >&5
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); } &&
35971          { ac_try='test -z "$ac_c_werror_flag"
35972                          || test ! -s conftest.err'
35973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974   (eval $ac_try) 2>&5
35975   ac_status=$?
35976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977   (exit $ac_status); }; } &&
35978          { ac_try='test -s conftest.$ac_objext'
35979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980   (eval $ac_try) 2>&5
35981   ac_status=$?
35982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983   (exit $ac_status); }; }; then
35984   ac_header_compiler=yes
35985 else
35986   echo "$as_me: failed program was:" >&5
35987 sed 's/^/| /' conftest.$ac_ext >&5
35988
35989 ac_header_compiler=no
35990 fi
35991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35993 echo "${ECHO_T}$ac_header_compiler" >&6
35994
35995 # Is the header present?
35996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35998 cat >conftest.$ac_ext <<_ACEOF
35999 /* confdefs.h.  */
36000 _ACEOF
36001 cat confdefs.h >>conftest.$ac_ext
36002 cat >>conftest.$ac_ext <<_ACEOF
36003 /* end confdefs.h.  */
36004 #include <$ac_header>
36005 _ACEOF
36006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36008   ac_status=$?
36009   grep -v '^ *+' conftest.er1 >conftest.err
36010   rm -f conftest.er1
36011   cat conftest.err >&5
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); } >/dev/null; then
36014   if test -s conftest.err; then
36015     ac_cpp_err=$ac_c_preproc_warn_flag
36016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36017   else
36018     ac_cpp_err=
36019   fi
36020 else
36021   ac_cpp_err=yes
36022 fi
36023 if test -z "$ac_cpp_err"; then
36024   ac_header_preproc=yes
36025 else
36026   echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36028
36029   ac_header_preproc=no
36030 fi
36031 rm -f conftest.err conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36033 echo "${ECHO_T}$ac_header_preproc" >&6
36034
36035 # So?  What about this header?
36036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36037   yes:no: )
36038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36042     ac_header_preproc=yes
36043     ;;
36044   no:yes:* )
36045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36057     (
36058       cat <<\_ASBOX
36059 ## ------------------------------------------ ##
36060 ## Report this to the AC_PACKAGE_NAME lists.  ##
36061 ## ------------------------------------------ ##
36062 _ASBOX
36063     ) |
36064       sed "s/^/$as_me: WARNING:     /" >&2
36065     ;;
36066 esac
36067 echo "$as_me:$LINENO: checking for $ac_header" >&5
36068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36070   echo $ECHO_N "(cached) $ECHO_C" >&6
36071 else
36072   eval "$as_ac_Header=\$ac_header_preproc"
36073 fi
36074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36076
36077 fi
36078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36079   cat >>confdefs.h <<_ACEOF
36080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36081 _ACEOF
36082
36083                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
36084 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
36085                 save_LIBS="$LIBS"
36086                 LIBS="$LIBS -lwrap"
36087                 cat >conftest.$ac_ext <<_ACEOF
36088 /* confdefs.h.  */
36089 _ACEOF
36090 cat confdefs.h >>conftest.$ac_ext
36091 cat >>conftest.$ac_ext <<_ACEOF
36092 /* end confdefs.h.  */
36093
36094 #include <tcpd.h>
36095 int allow_severity = 0;
36096 int deny_severity  = 0;
36097
36098 struct request_info *req;
36099
36100 int
36101 main ()
36102 {
36103
36104 hosts_access(req)
36105
36106   ;
36107   return 0;
36108 }
36109 _ACEOF
36110 rm -f conftest.$ac_objext conftest$ac_exeext
36111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36112   (eval $ac_link) 2>conftest.er1
36113   ac_status=$?
36114   grep -v '^ *+' conftest.er1 >conftest.err
36115   rm -f conftest.er1
36116   cat conftest.err >&5
36117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118   (exit $ac_status); } &&
36119          { ac_try='test -z "$ac_c_werror_flag"
36120                          || test ! -s conftest.err'
36121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36122   (eval $ac_try) 2>&5
36123   ac_status=$?
36124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125   (exit $ac_status); }; } &&
36126          { ac_try='test -s conftest$ac_exeext'
36127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36128   (eval $ac_try) 2>&5
36129   ac_status=$?
36130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131   (exit $ac_status); }; }; then
36132   echo "$as_me:$LINENO: result: -lwrap" >&5
36133 echo "${ECHO_T}-lwrap" >&6
36134                 have_wrappers=yes
36135                 LIBS="$save_LIBS"
36136 else
36137   echo "$as_me: failed program was:" >&5
36138 sed 's/^/| /' conftest.$ac_ext >&5
36139
36140
36141                                 LIBS="$LIBS -lnsl"
36142                 cat >conftest.$ac_ext <<_ACEOF
36143 /* confdefs.h.  */
36144 _ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h.  */
36148
36149 #include <tcpd.h>
36150 int allow_severity = 0;
36151 int deny_severity  = 0;
36152
36153 struct request_info *req;
36154
36155 int
36156 main ()
36157 {
36158
36159 hosts_access(req)
36160
36161   ;
36162   return 0;
36163 }
36164 _ACEOF
36165 rm -f conftest.$ac_objext conftest$ac_exeext
36166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36167   (eval $ac_link) 2>conftest.er1
36168   ac_status=$?
36169   grep -v '^ *+' conftest.er1 >conftest.err
36170   rm -f conftest.er1
36171   cat conftest.err >&5
36172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); } &&
36174          { ac_try='test -z "$ac_c_werror_flag"
36175                          || test ! -s conftest.err'
36176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36177   (eval $ac_try) 2>&5
36178   ac_status=$?
36179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180   (exit $ac_status); }; } &&
36181          { ac_try='test -s conftest$ac_exeext'
36182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36183   (eval $ac_try) 2>&5
36184   ac_status=$?
36185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186   (exit $ac_status); }; }; then
36187   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
36188 echo "${ECHO_T}-lwrap -lnsl" >&6
36189                 have_wrappers=yes
36190                 LIBS="$save_LIBS -lnsl"
36191 else
36192   echo "$as_me: failed program was:" >&5
36193 sed 's/^/| /' conftest.$ac_ext >&5
36194
36195
36196                 echo "$as_me:$LINENO: result: no" >&5
36197 echo "${ECHO_T}no" >&6
36198                 have_wrappers=no
36199                 LIBS=$save_LIBS
36200 fi
36201 rm -f conftest.err conftest.$ac_objext \
36202       conftest$ac_exeext conftest.$ac_ext
36203 fi
36204 rm -f conftest.err conftest.$ac_objext \
36205       conftest$ac_exeext conftest.$ac_ext
36206 else
36207   have_wrappers=no
36208 fi
36209
36210 done
36211
36212
36213         if test $have_wrappers = yes ; then
36214
36215 cat >>confdefs.h <<\_ACEOF
36216 #define HAVE_TCPD 1
36217 _ACEOF
36218
36219                 WRAP_LIBS="-lwrap"
36220         elif test $ol_enable_wrappers = yes ; then
36221                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
36222 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
36223    { (exit 1); exit 1; }; }
36224         else
36225                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
36226 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
36227                 WRAP_LIBS=""
36228         fi
36229 fi
36230
36231 if test $ol_enable_syslog != no ; then
36232         echo "$as_me:$LINENO: checking for openlog" >&5
36233 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
36234 if test "${ac_cv_func_openlog+set}" = set; then
36235   echo $ECHO_N "(cached) $ECHO_C" >&6
36236 else
36237   cat >conftest.$ac_ext <<_ACEOF
36238 /* confdefs.h.  */
36239 _ACEOF
36240 cat confdefs.h >>conftest.$ac_ext
36241 cat >>conftest.$ac_ext <<_ACEOF
36242 /* end confdefs.h.  */
36243 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
36244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36245 #define openlog innocuous_openlog
36246
36247 /* System header to define __stub macros and hopefully few prototypes,
36248     which can conflict with char openlog (); below.
36249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36250     <limits.h> exists even on freestanding compilers.  */
36251
36252 #ifdef __STDC__
36253 # include <limits.h>
36254 #else
36255 # include <assert.h>
36256 #endif
36257
36258 #undef openlog
36259
36260 /* Override any gcc2 internal prototype to avoid an error.  */
36261 #ifdef __cplusplus
36262 extern "C"
36263 {
36264 #endif
36265 /* We use char because int might match the return type of a gcc2
36266    builtin and then its argument prototype would still apply.  */
36267 char openlog ();
36268 /* The GNU C library defines this for functions which it implements
36269     to always fail with ENOSYS.  Some functions are actually named
36270     something starting with __ and the normal name is an alias.  */
36271 #if defined (__stub_openlog) || defined (__stub___openlog)
36272 choke me
36273 #else
36274 char (*f) () = openlog;
36275 #endif
36276 #ifdef __cplusplus
36277 }
36278 #endif
36279
36280 int
36281 main ()
36282 {
36283 return f != openlog;
36284   ;
36285   return 0;
36286 }
36287 _ACEOF
36288 rm -f conftest.$ac_objext conftest$ac_exeext
36289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36290   (eval $ac_link) 2>conftest.er1
36291   ac_status=$?
36292   grep -v '^ *+' conftest.er1 >conftest.err
36293   rm -f conftest.er1
36294   cat conftest.err >&5
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); } &&
36297          { ac_try='test -z "$ac_c_werror_flag"
36298                          || test ! -s conftest.err'
36299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36300   (eval $ac_try) 2>&5
36301   ac_status=$?
36302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303   (exit $ac_status); }; } &&
36304          { ac_try='test -s conftest$ac_exeext'
36305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36306   (eval $ac_try) 2>&5
36307   ac_status=$?
36308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309   (exit $ac_status); }; }; then
36310   ac_cv_func_openlog=yes
36311 else
36312   echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36314
36315 ac_cv_func_openlog=no
36316 fi
36317 rm -f conftest.err conftest.$ac_objext \
36318       conftest$ac_exeext conftest.$ac_ext
36319 fi
36320 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
36321 echo "${ECHO_T}$ac_cv_func_openlog" >&6
36322
36323         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
36324                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
36325 echo "$as_me: error: could not find syslog" >&2;}
36326    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
36327         fi
36328         ol_enable_syslog=$ac_cv_func_openlog
36329 fi
36330
36331 ol_link_sql=no
36332 if test $ol_enable_sql != no ; then
36333
36334
36335 for ac_header in sql.h sqlext.h
36336 do
36337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36339   echo "$as_me:$LINENO: checking for $ac_header" >&5
36340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36342   echo $ECHO_N "(cached) $ECHO_C" >&6
36343 fi
36344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36346 else
36347   # Is the header compilable?
36348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36350 cat >conftest.$ac_ext <<_ACEOF
36351 /* confdefs.h.  */
36352 _ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h.  */
36356 $ac_includes_default
36357 #include <$ac_header>
36358 _ACEOF
36359 rm -f conftest.$ac_objext
36360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36361   (eval $ac_compile) 2>conftest.er1
36362   ac_status=$?
36363   grep -v '^ *+' conftest.er1 >conftest.err
36364   rm -f conftest.er1
36365   cat conftest.err >&5
36366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367   (exit $ac_status); } &&
36368          { ac_try='test -z "$ac_c_werror_flag"
36369                          || test ! -s conftest.err'
36370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371   (eval $ac_try) 2>&5
36372   ac_status=$?
36373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374   (exit $ac_status); }; } &&
36375          { ac_try='test -s conftest.$ac_objext'
36376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36377   (eval $ac_try) 2>&5
36378   ac_status=$?
36379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380   (exit $ac_status); }; }; then
36381   ac_header_compiler=yes
36382 else
36383   echo "$as_me: failed program was:" >&5
36384 sed 's/^/| /' conftest.$ac_ext >&5
36385
36386 ac_header_compiler=no
36387 fi
36388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36390 echo "${ECHO_T}$ac_header_compiler" >&6
36391
36392 # Is the header present?
36393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36395 cat >conftest.$ac_ext <<_ACEOF
36396 /* confdefs.h.  */
36397 _ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h.  */
36401 #include <$ac_header>
36402 _ACEOF
36403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36405   ac_status=$?
36406   grep -v '^ *+' conftest.er1 >conftest.err
36407   rm -f conftest.er1
36408   cat conftest.err >&5
36409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); } >/dev/null; then
36411   if test -s conftest.err; then
36412     ac_cpp_err=$ac_c_preproc_warn_flag
36413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36414   else
36415     ac_cpp_err=
36416   fi
36417 else
36418   ac_cpp_err=yes
36419 fi
36420 if test -z "$ac_cpp_err"; then
36421   ac_header_preproc=yes
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426   ac_header_preproc=no
36427 fi
36428 rm -f conftest.err conftest.$ac_ext
36429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36430 echo "${ECHO_T}$ac_header_preproc" >&6
36431
36432 # So?  What about this header?
36433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36434   yes:no: )
36435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36439     ac_header_preproc=yes
36440     ;;
36441   no:yes:* )
36442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36454     (
36455       cat <<\_ASBOX
36456 ## ------------------------------------------ ##
36457 ## Report this to the AC_PACKAGE_NAME lists.  ##
36458 ## ------------------------------------------ ##
36459 _ASBOX
36460     ) |
36461       sed "s/^/$as_me: WARNING:     /" >&2
36462     ;;
36463 esac
36464 echo "$as_me:$LINENO: checking for $ac_header" >&5
36465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36467   echo $ECHO_N "(cached) $ECHO_C" >&6
36468 else
36469   eval "$as_ac_Header=\$ac_header_preproc"
36470 fi
36471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36473
36474 fi
36475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36476   cat >>confdefs.h <<_ACEOF
36477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36478 _ACEOF
36479
36480 else
36481
36482                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
36483 echo "$as_me: error: could not locate SQL headers" >&2;}
36484    { (exit 1); exit 1; }; }
36485
36486 fi
36487
36488 done
36489
36490
36491         sql_LIBS="$LIBS"
36492         LIBS="$LTHREAD_LIBS"
36493
36494         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
36495 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
36496 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
36497   echo $ECHO_N "(cached) $ECHO_C" >&6
36498 else
36499   ac_check_lib_save_LIBS=$LIBS
36500 LIBS="-liodbc  $LIBS"
36501 cat >conftest.$ac_ext <<_ACEOF
36502 /* confdefs.h.  */
36503 _ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h.  */
36507
36508 /* Override any gcc2 internal prototype to avoid an error.  */
36509 #ifdef __cplusplus
36510 extern "C"
36511 #endif
36512 /* We use char because int might match the return type of a gcc2
36513    builtin and then its argument prototype would still apply.  */
36514 char SQLDriverConnect ();
36515 int
36516 main ()
36517 {
36518 SQLDriverConnect ();
36519   ;
36520   return 0;
36521 }
36522 _ACEOF
36523 rm -f conftest.$ac_objext conftest$ac_exeext
36524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36525   (eval $ac_link) 2>conftest.er1
36526   ac_status=$?
36527   grep -v '^ *+' conftest.er1 >conftest.err
36528   rm -f conftest.er1
36529   cat conftest.err >&5
36530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531   (exit $ac_status); } &&
36532          { ac_try='test -z "$ac_c_werror_flag"
36533                          || test ! -s conftest.err'
36534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535   (eval $ac_try) 2>&5
36536   ac_status=$?
36537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538   (exit $ac_status); }; } &&
36539          { ac_try='test -s conftest$ac_exeext'
36540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36541   (eval $ac_try) 2>&5
36542   ac_status=$?
36543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544   (exit $ac_status); }; }; then
36545   ac_cv_lib_iodbc_SQLDriverConnect=yes
36546 else
36547   echo "$as_me: failed program was:" >&5
36548 sed 's/^/| /' conftest.$ac_ext >&5
36549
36550 ac_cv_lib_iodbc_SQLDriverConnect=no
36551 fi
36552 rm -f conftest.err conftest.$ac_objext \
36553       conftest$ac_exeext conftest.$ac_ext
36554 LIBS=$ac_check_lib_save_LIBS
36555 fi
36556 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
36557 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
36558 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
36559   have_iodbc=yes
36560 else
36561   have_iodbc=no
36562 fi
36563
36564         if test $have_iodbc = yes ; then
36565                 ol_link_sql="-liodbc"
36566         else
36567                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
36568 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
36569 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
36570   echo $ECHO_N "(cached) $ECHO_C" >&6
36571 else
36572   ac_check_lib_save_LIBS=$LIBS
36573 LIBS="-lodbc  $LIBS"
36574 cat >conftest.$ac_ext <<_ACEOF
36575 /* confdefs.h.  */
36576 _ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h.  */
36580
36581 /* Override any gcc2 internal prototype to avoid an error.  */
36582 #ifdef __cplusplus
36583 extern "C"
36584 #endif
36585 /* We use char because int might match the return type of a gcc2
36586    builtin and then its argument prototype would still apply.  */
36587 char SQLDriverConnect ();
36588 int
36589 main ()
36590 {
36591 SQLDriverConnect ();
36592   ;
36593   return 0;
36594 }
36595 _ACEOF
36596 rm -f conftest.$ac_objext conftest$ac_exeext
36597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36598   (eval $ac_link) 2>conftest.er1
36599   ac_status=$?
36600   grep -v '^ *+' conftest.er1 >conftest.err
36601   rm -f conftest.er1
36602   cat conftest.err >&5
36603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604   (exit $ac_status); } &&
36605          { ac_try='test -z "$ac_c_werror_flag"
36606                          || test ! -s conftest.err'
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); }; } &&
36612          { ac_try='test -s conftest$ac_exeext'
36613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36614   (eval $ac_try) 2>&5
36615   ac_status=$?
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); }; }; then
36618   ac_cv_lib_odbc_SQLDriverConnect=yes
36619 else
36620   echo "$as_me: failed program was:" >&5
36621 sed 's/^/| /' conftest.$ac_ext >&5
36622
36623 ac_cv_lib_odbc_SQLDriverConnect=no
36624 fi
36625 rm -f conftest.err conftest.$ac_objext \
36626       conftest$ac_exeext conftest.$ac_ext
36627 LIBS=$ac_check_lib_save_LIBS
36628 fi
36629 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
36630 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
36631 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
36632   have_odbc=yes
36633 else
36634   have_odbc=no
36635 fi
36636
36637                 if test $have_odbc = yes ; then
36638                         ol_link_sql="-lodbc"
36639                 fi
36640         fi
36641
36642         LIBS="$sql_LIBS"
36643
36644         if test $ol_link_sql != no ; then
36645                 SLAPD_SQL_LIBS="$ol_link_sql"
36646
36647         elif test $ol_enable_sql != auto ; then
36648                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
36649 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
36650    { (exit 1); exit 1; }; }
36651         fi
36652 fi
36653
36654 ol_icu=no
36655
36656 for ac_header in unicode/utypes.h
36657 do
36658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36660   echo "$as_me:$LINENO: checking for $ac_header" >&5
36661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36663   echo $ECHO_N "(cached) $ECHO_C" >&6
36664 fi
36665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36667 else
36668   # Is the header compilable?
36669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36671 cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677 $ac_includes_default
36678 #include <$ac_header>
36679 _ACEOF
36680 rm -f conftest.$ac_objext
36681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36682   (eval $ac_compile) 2>conftest.er1
36683   ac_status=$?
36684   grep -v '^ *+' conftest.er1 >conftest.err
36685   rm -f conftest.er1
36686   cat conftest.err >&5
36687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688   (exit $ac_status); } &&
36689          { ac_try='test -z "$ac_c_werror_flag"
36690                          || test ! -s conftest.err'
36691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692   (eval $ac_try) 2>&5
36693   ac_status=$?
36694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695   (exit $ac_status); }; } &&
36696          { ac_try='test -s conftest.$ac_objext'
36697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36698   (eval $ac_try) 2>&5
36699   ac_status=$?
36700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36701   (exit $ac_status); }; }; then
36702   ac_header_compiler=yes
36703 else
36704   echo "$as_me: failed program was:" >&5
36705 sed 's/^/| /' conftest.$ac_ext >&5
36706
36707 ac_header_compiler=no
36708 fi
36709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36711 echo "${ECHO_T}$ac_header_compiler" >&6
36712
36713 # Is the header present?
36714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36716 cat >conftest.$ac_ext <<_ACEOF
36717 /* confdefs.h.  */
36718 _ACEOF
36719 cat confdefs.h >>conftest.$ac_ext
36720 cat >>conftest.$ac_ext <<_ACEOF
36721 /* end confdefs.h.  */
36722 #include <$ac_header>
36723 _ACEOF
36724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36726   ac_status=$?
36727   grep -v '^ *+' conftest.er1 >conftest.err
36728   rm -f conftest.er1
36729   cat conftest.err >&5
36730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731   (exit $ac_status); } >/dev/null; then
36732   if test -s conftest.err; then
36733     ac_cpp_err=$ac_c_preproc_warn_flag
36734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36735   else
36736     ac_cpp_err=
36737   fi
36738 else
36739   ac_cpp_err=yes
36740 fi
36741 if test -z "$ac_cpp_err"; then
36742   ac_header_preproc=yes
36743 else
36744   echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36746
36747   ac_header_preproc=no
36748 fi
36749 rm -f conftest.err conftest.$ac_ext
36750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36751 echo "${ECHO_T}$ac_header_preproc" >&6
36752
36753 # So?  What about this header?
36754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36755   yes:no: )
36756     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36760     ac_header_preproc=yes
36761     ;;
36762   no:yes:* )
36763     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36765     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36766 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36767     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36769     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36770 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36773     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36775     (
36776       cat <<\_ASBOX
36777 ## ------------------------------------------ ##
36778 ## Report this to the AC_PACKAGE_NAME lists.  ##
36779 ## ------------------------------------------ ##
36780 _ASBOX
36781     ) |
36782       sed "s/^/$as_me: WARNING:     /" >&2
36783     ;;
36784 esac
36785 echo "$as_me:$LINENO: checking for $ac_header" >&5
36786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36788   echo $ECHO_N "(cached) $ECHO_C" >&6
36789 else
36790   eval "$as_ac_Header=\$ac_header_preproc"
36791 fi
36792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36794
36795 fi
36796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36797   cat >>confdefs.h <<_ACEOF
36798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36799 _ACEOF
36800
36801 fi
36802
36803 done
36804
36805 if test $ac_cv_header_unicode_utypes_h = yes ; then
36806                 OL_ICULIBS="-licuuc -licudata"
36807
36808         echo "$as_me:$LINENO: checking for ICU libraries" >&5
36809 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
36810 if test "${ol_cv_lib_icu+set}" = set; then
36811   echo $ECHO_N "(cached) $ECHO_C" >&6
36812 else
36813
36814                 ol_LIBS="$LIBS"
36815                 LIBS="$OL_ICULIBS $LIBS"
36816                 cat >conftest.$ac_ext <<_ACEOF
36817 /* confdefs.h.  */
36818 _ACEOF
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h.  */
36822
36823 #include <unicode/utypes.h>
36824
36825 int
36826 main ()
36827 {
36828
36829 (void) u_errorName(0);
36830
36831   ;
36832   return 0;
36833 }
36834 _ACEOF
36835 rm -f conftest.$ac_objext conftest$ac_exeext
36836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36837   (eval $ac_link) 2>conftest.er1
36838   ac_status=$?
36839   grep -v '^ *+' conftest.er1 >conftest.err
36840   rm -f conftest.er1
36841   cat conftest.err >&5
36842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36843   (exit $ac_status); } &&
36844          { ac_try='test -z "$ac_c_werror_flag"
36845                          || test ! -s conftest.err'
36846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36847   (eval $ac_try) 2>&5
36848   ac_status=$?
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); }; } &&
36851          { ac_try='test -s conftest$ac_exeext'
36852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36853   (eval $ac_try) 2>&5
36854   ac_status=$?
36855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856   (exit $ac_status); }; }; then
36857   ol_cv_lib_icu=yes
36858 else
36859   echo "$as_me: failed program was:" >&5
36860 sed 's/^/| /' conftest.$ac_ext >&5
36861
36862 ol_cv_lib_icu=no
36863 fi
36864 rm -f conftest.err conftest.$ac_objext \
36865       conftest$ac_exeext conftest.$ac_ext
36866                 LIBS="$ol_LIBS"
36867
36868 fi
36869 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
36870 echo "${ECHO_T}$ol_cv_lib_icu" >&6
36871
36872         if test $ol_cv_lib_icu != no ; then
36873                 ol_icu="$OL_ICULIBS"
36874
36875 cat >>confdefs.h <<\_ACEOF
36876 #define HAVE_ICU 1
36877 _ACEOF
36878
36879         fi
36880 fi
36881
36882 if test "$ol_icu" = no ; then
36883         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
36884 echo "$as_me: WARNING: ICU not available" >&2;}
36885 else
36886         ICU_LIBS="$ol_icu"
36887 fi
36888 WITH_SASL=no
36889 ol_link_sasl=no
36890 ol_link_spasswd=no
36891 if test $ol_with_cyrus_sasl != no ; then
36892
36893
36894 for ac_header in sasl/sasl.h sasl.h
36895 do
36896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36898   echo "$as_me:$LINENO: checking for $ac_header" >&5
36899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36901   echo $ECHO_N "(cached) $ECHO_C" >&6
36902 fi
36903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36905 else
36906   # Is the header compilable?
36907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36909 cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915 $ac_includes_default
36916 #include <$ac_header>
36917 _ACEOF
36918 rm -f conftest.$ac_objext
36919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36920   (eval $ac_compile) 2>conftest.er1
36921   ac_status=$?
36922   grep -v '^ *+' conftest.er1 >conftest.err
36923   rm -f conftest.er1
36924   cat conftest.err >&5
36925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926   (exit $ac_status); } &&
36927          { ac_try='test -z "$ac_c_werror_flag"
36928                          || test ! -s conftest.err'
36929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36930   (eval $ac_try) 2>&5
36931   ac_status=$?
36932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933   (exit $ac_status); }; } &&
36934          { ac_try='test -s conftest.$ac_objext'
36935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936   (eval $ac_try) 2>&5
36937   ac_status=$?
36938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939   (exit $ac_status); }; }; then
36940   ac_header_compiler=yes
36941 else
36942   echo "$as_me: failed program was:" >&5
36943 sed 's/^/| /' conftest.$ac_ext >&5
36944
36945 ac_header_compiler=no
36946 fi
36947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36949 echo "${ECHO_T}$ac_header_compiler" >&6
36950
36951 # Is the header present?
36952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36954 cat >conftest.$ac_ext <<_ACEOF
36955 /* confdefs.h.  */
36956 _ACEOF
36957 cat confdefs.h >>conftest.$ac_ext
36958 cat >>conftest.$ac_ext <<_ACEOF
36959 /* end confdefs.h.  */
36960 #include <$ac_header>
36961 _ACEOF
36962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36964   ac_status=$?
36965   grep -v '^ *+' conftest.er1 >conftest.err
36966   rm -f conftest.er1
36967   cat conftest.err >&5
36968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969   (exit $ac_status); } >/dev/null; then
36970   if test -s conftest.err; then
36971     ac_cpp_err=$ac_c_preproc_warn_flag
36972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36973   else
36974     ac_cpp_err=
36975   fi
36976 else
36977   ac_cpp_err=yes
36978 fi
36979 if test -z "$ac_cpp_err"; then
36980   ac_header_preproc=yes
36981 else
36982   echo "$as_me: failed program was:" >&5
36983 sed 's/^/| /' conftest.$ac_ext >&5
36984
36985   ac_header_preproc=no
36986 fi
36987 rm -f conftest.err conftest.$ac_ext
36988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36989 echo "${ECHO_T}$ac_header_preproc" >&6
36990
36991 # So?  What about this header?
36992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36993   yes:no: )
36994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36998     ac_header_preproc=yes
36999     ;;
37000   no:yes:* )
37001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37013     (
37014       cat <<\_ASBOX
37015 ## ------------------------------------------ ##
37016 ## Report this to the AC_PACKAGE_NAME lists.  ##
37017 ## ------------------------------------------ ##
37018 _ASBOX
37019     ) |
37020       sed "s/^/$as_me: WARNING:     /" >&2
37021     ;;
37022 esac
37023 echo "$as_me:$LINENO: checking for $ac_header" >&5
37024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37026   echo $ECHO_N "(cached) $ECHO_C" >&6
37027 else
37028   eval "$as_ac_Header=\$ac_header_preproc"
37029 fi
37030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37032
37033 fi
37034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37035   cat >>confdefs.h <<_ACEOF
37036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37037 _ACEOF
37038
37039 fi
37040
37041 done
37042
37043
37044         if test $ac_cv_header_sasl_sasl_h = yes ||
37045            test $ac_cv_header_sasl_h = yes; then
37046                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
37047 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
37048 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
37049   echo $ECHO_N "(cached) $ECHO_C" >&6
37050 else
37051   ac_check_lib_save_LIBS=$LIBS
37052 LIBS="-lsasl2  $LIBS"
37053 cat >conftest.$ac_ext <<_ACEOF
37054 /* confdefs.h.  */
37055 _ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h.  */
37059
37060 /* Override any gcc2 internal prototype to avoid an error.  */
37061 #ifdef __cplusplus
37062 extern "C"
37063 #endif
37064 /* We use char because int might match the return type of a gcc2
37065    builtin and then its argument prototype would still apply.  */
37066 char sasl_client_init ();
37067 int
37068 main ()
37069 {
37070 sasl_client_init ();
37071   ;
37072   return 0;
37073 }
37074 _ACEOF
37075 rm -f conftest.$ac_objext conftest$ac_exeext
37076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37077   (eval $ac_link) 2>conftest.er1
37078   ac_status=$?
37079   grep -v '^ *+' conftest.er1 >conftest.err
37080   rm -f conftest.er1
37081   cat conftest.err >&5
37082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083   (exit $ac_status); } &&
37084          { ac_try='test -z "$ac_c_werror_flag"
37085                          || test ! -s conftest.err'
37086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37087   (eval $ac_try) 2>&5
37088   ac_status=$?
37089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37090   (exit $ac_status); }; } &&
37091          { ac_try='test -s conftest$ac_exeext'
37092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093   (eval $ac_try) 2>&5
37094   ac_status=$?
37095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096   (exit $ac_status); }; }; then
37097   ac_cv_lib_sasl2_sasl_client_init=yes
37098 else
37099   echo "$as_me: failed program was:" >&5
37100 sed 's/^/| /' conftest.$ac_ext >&5
37101
37102 ac_cv_lib_sasl2_sasl_client_init=no
37103 fi
37104 rm -f conftest.err conftest.$ac_objext \
37105       conftest$ac_exeext conftest.$ac_ext
37106 LIBS=$ac_check_lib_save_LIBS
37107 fi
37108 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
37109 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
37110 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
37111   ol_link_sasl="-lsasl2"
37112 else
37113   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
37114 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
37115 if test "${ac_cv_lib_sasl_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="-lsasl  $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_sasl_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_sasl_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_sasl_sasl_client_init" >&5
37176 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
37177 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
37178   ol_link_sasl="-lsasl"
37179 fi
37180
37181 fi
37182
37183         fi
37184
37185         if test $ol_link_sasl = no ; then
37186                 if test $ol_with_cyrus_sasl != auto ; then
37187                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
37188 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
37189    { (exit 1); exit 1; }; }
37190                 else
37191                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
37192 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
37193                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37194 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37195                         if test $ol_link_tls = no ; then
37196                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37197 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37198                         fi
37199                 fi
37200         else
37201                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
37202 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
37203 if test "${ol_cv_sasl_compat+set}" = set; then
37204   echo $ECHO_N "(cached) $ECHO_C" >&6
37205 else
37206
37207         cat >conftest.$ac_ext <<_ACEOF
37208 /* confdefs.h.  */
37209 _ACEOF
37210 cat confdefs.h >>conftest.$ac_ext
37211 cat >>conftest.$ac_ext <<_ACEOF
37212 /* end confdefs.h.  */
37213
37214 #ifdef HAVE_SASL_SASL_H
37215 #include <sasl/sasl.h>
37216 #else
37217 #include <sasl.h>
37218 #endif
37219
37220 /* Require 2.1.15+ */
37221 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
37222         char *__sasl_compat = "2.2+ or better okay (we guess)";
37223 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
37224         && SASL_VERSION_STEP >=15
37225         char *__sasl_compat = "2.1.15+ or better okay";
37226 #endif
37227
37228 _ACEOF
37229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37230   $EGREP "__sasl_compat" >/dev/null 2>&1; then
37231   ol_cv_sasl_compat=yes
37232 else
37233   ol_cv_sasl_compat=no
37234 fi
37235 rm -f conftest*
37236
37237 fi
37238 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
37239 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
37240
37241                 if test $ol_cv_sasl_compat = no ; then
37242                         ol_link_sasl=no
37243                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
37244 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
37245    { (exit 1); exit 1; }; }
37246                 fi
37247
37248
37249 cat >>confdefs.h <<\_ACEOF
37250 #define HAVE_CYRUS_SASL 1
37251 _ACEOF
37252
37253                 SASL_LIBS="$ol_link_sasl"
37254                 if test $ol_enable_spasswd != no ; then
37255                         ol_link_spasswd=yes
37256                 fi
37257
37258                 ac_save_LIBS="$LIBS"
37259                 LIBS="$LIBS $ol_link_sasl"
37260                 echo "$as_me:$LINENO: checking for sasl_version" >&5
37261 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
37262 if test "${ac_cv_func_sasl_version+set}" = set; then
37263   echo $ECHO_N "(cached) $ECHO_C" >&6
37264 else
37265   cat >conftest.$ac_ext <<_ACEOF
37266 /* confdefs.h.  */
37267 _ACEOF
37268 cat confdefs.h >>conftest.$ac_ext
37269 cat >>conftest.$ac_ext <<_ACEOF
37270 /* end confdefs.h.  */
37271 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
37272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37273 #define sasl_version innocuous_sasl_version
37274
37275 /* System header to define __stub macros and hopefully few prototypes,
37276     which can conflict with char sasl_version (); below.
37277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37278     <limits.h> exists even on freestanding compilers.  */
37279
37280 #ifdef __STDC__
37281 # include <limits.h>
37282 #else
37283 # include <assert.h>
37284 #endif
37285
37286 #undef sasl_version
37287
37288 /* Override any gcc2 internal prototype to avoid an error.  */
37289 #ifdef __cplusplus
37290 extern "C"
37291 {
37292 #endif
37293 /* We use char because int might match the return type of a gcc2
37294    builtin and then its argument prototype would still apply.  */
37295 char sasl_version ();
37296 /* The GNU C library defines this for functions which it implements
37297     to always fail with ENOSYS.  Some functions are actually named
37298     something starting with __ and the normal name is an alias.  */
37299 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
37300 choke me
37301 #else
37302 char (*f) () = sasl_version;
37303 #endif
37304 #ifdef __cplusplus
37305 }
37306 #endif
37307
37308 int
37309 main ()
37310 {
37311 return f != sasl_version;
37312   ;
37313   return 0;
37314 }
37315 _ACEOF
37316 rm -f conftest.$ac_objext conftest$ac_exeext
37317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37318   (eval $ac_link) 2>conftest.er1
37319   ac_status=$?
37320   grep -v '^ *+' conftest.er1 >conftest.err
37321   rm -f conftest.er1
37322   cat conftest.err >&5
37323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324   (exit $ac_status); } &&
37325          { ac_try='test -z "$ac_c_werror_flag"
37326                          || test ! -s conftest.err'
37327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37328   (eval $ac_try) 2>&5
37329   ac_status=$?
37330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37331   (exit $ac_status); }; } &&
37332          { ac_try='test -s conftest$ac_exeext'
37333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37334   (eval $ac_try) 2>&5
37335   ac_status=$?
37336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37337   (exit $ac_status); }; }; then
37338   ac_cv_func_sasl_version=yes
37339 else
37340   echo "$as_me: failed program was:" >&5
37341 sed 's/^/| /' conftest.$ac_ext >&5
37342
37343 ac_cv_func_sasl_version=no
37344 fi
37345 rm -f conftest.err conftest.$ac_objext \
37346       conftest$ac_exeext conftest.$ac_ext
37347 fi
37348 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
37349 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
37350 if test $ac_cv_func_sasl_version = yes; then
37351
37352 cat >>confdefs.h <<\_ACEOF
37353 #define HAVE_SASL_VERSION 1
37354 _ACEOF
37355
37356 fi
37357
37358                 LIBS="$ac_save_LIBS"
37359
37360                 WITH_SASL=yes
37361         fi
37362
37363 else
37364         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
37365 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
37366         if test $ol_link_tls = no ; then
37367                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
37368 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
37369         fi
37370 fi
37371
37372 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
37373         dev=no
37374         if test -r /dev/urandom ; then
37375                 dev="/dev/urandom";
37376         elif test -r /idev/urandom ; then
37377                 dev="/idev/urandom";
37378         elif test -r /dev/srandom ; then
37379                 dev="/dev/srandom";
37380         elif test -r /dev/random ; then
37381                 dev="/dev/random";
37382         elif test -r /idev/random ; then
37383                 dev="/idev/random";
37384         fi
37385
37386         if test $dev != no ; then
37387
37388 cat >>confdefs.h <<_ACEOF
37389 #define URANDOM_DEVICE "$dev"
37390 _ACEOF
37391
37392         fi
37393 fi
37394
37395 ol_link_fetch=no
37396 if test $ol_with_fetch != no ; then
37397         ol_LIBS=$LIBS
37398 LIBS="-lfetch -lcom_err $LIBS"
37399 echo "$as_me:$LINENO: checking fetch(3) library" >&5
37400 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
37401 if test "${ol_cv_lib_fetch+set}" = set; then
37402   echo $ECHO_N "(cached) $ECHO_C" >&6
37403 else
37404
37405         cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411
37412 #include <sys/param.h>
37413 #include <stdio.h>
37414 #include <fetch.h>
37415 int
37416 main ()
37417 {
37418 struct url *u = fetchParseURL("file:///");
37419   ;
37420   return 0;
37421 }
37422 _ACEOF
37423 rm -f conftest.$ac_objext conftest$ac_exeext
37424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37425   (eval $ac_link) 2>conftest.er1
37426   ac_status=$?
37427   grep -v '^ *+' conftest.er1 >conftest.err
37428   rm -f conftest.er1
37429   cat conftest.err >&5
37430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431   (exit $ac_status); } &&
37432          { ac_try='test -z "$ac_c_werror_flag"
37433                          || test ! -s conftest.err'
37434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37435   (eval $ac_try) 2>&5
37436   ac_status=$?
37437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438   (exit $ac_status); }; } &&
37439          { ac_try='test -s conftest$ac_exeext'
37440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37441   (eval $ac_try) 2>&5
37442   ac_status=$?
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); }; }; then
37445   ol_cv_lib_fetch=yes
37446 else
37447   echo "$as_me: failed program was:" >&5
37448 sed 's/^/| /' conftest.$ac_ext >&5
37449
37450 ol_cv_lib_fetch=no
37451 fi
37452 rm -f conftest.err conftest.$ac_objext \
37453       conftest$ac_exeext conftest.$ac_ext
37454 fi
37455 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
37456 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
37457 LIBS=$ol_LIBS
37458 if test $ol_cv_lib_fetch != no ; then
37459         ol_link_fetch="-lfetch -lcom_err"
37460
37461 cat >>confdefs.h <<\_ACEOF
37462 #define HAVE_FETCH 1
37463 _ACEOF
37464
37465 fi
37466
37467
37468         if test $ol_cv_lib_fetch != no ; then
37469                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
37470                 ol_link_fetch=freebsd
37471
37472         elif test $ol_with_fetch != auto ; then
37473                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
37474 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
37475    { (exit 1); exit 1; }; }
37476         fi
37477 fi
37478
37479 if test $ol_enable_crypt != no ; then
37480         save_LIBS="$LIBS"
37481         LIBS="$TLS_LIBS $LIBS"
37482
37483         echo "$as_me:$LINENO: checking for crypt" >&5
37484 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
37485 if test "${ac_cv_func_crypt+set}" = set; then
37486   echo $ECHO_N "(cached) $ECHO_C" >&6
37487 else
37488   cat >conftest.$ac_ext <<_ACEOF
37489 /* confdefs.h.  */
37490 _ACEOF
37491 cat confdefs.h >>conftest.$ac_ext
37492 cat >>conftest.$ac_ext <<_ACEOF
37493 /* end confdefs.h.  */
37494 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
37495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37496 #define crypt innocuous_crypt
37497
37498 /* System header to define __stub macros and hopefully few prototypes,
37499     which can conflict with char crypt (); below.
37500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37501     <limits.h> exists even on freestanding compilers.  */
37502
37503 #ifdef __STDC__
37504 # include <limits.h>
37505 #else
37506 # include <assert.h>
37507 #endif
37508
37509 #undef crypt
37510
37511 /* Override any gcc2 internal prototype to avoid an error.  */
37512 #ifdef __cplusplus
37513 extern "C"
37514 {
37515 #endif
37516 /* We use char because int might match the return type of a gcc2
37517    builtin and then its argument prototype would still apply.  */
37518 char crypt ();
37519 /* The GNU C library defines this for functions which it implements
37520     to always fail with ENOSYS.  Some functions are actually named
37521     something starting with __ and the normal name is an alias.  */
37522 #if defined (__stub_crypt) || defined (__stub___crypt)
37523 choke me
37524 #else
37525 char (*f) () = crypt;
37526 #endif
37527 #ifdef __cplusplus
37528 }
37529 #endif
37530
37531 int
37532 main ()
37533 {
37534 return f != crypt;
37535   ;
37536   return 0;
37537 }
37538 _ACEOF
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37541   (eval $ac_link) 2>conftest.er1
37542   ac_status=$?
37543   grep -v '^ *+' conftest.er1 >conftest.err
37544   rm -f conftest.er1
37545   cat conftest.err >&5
37546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37547   (exit $ac_status); } &&
37548          { ac_try='test -z "$ac_c_werror_flag"
37549                          || test ! -s conftest.err'
37550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551   (eval $ac_try) 2>&5
37552   ac_status=$?
37553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554   (exit $ac_status); }; } &&
37555          { ac_try='test -s conftest$ac_exeext'
37556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37557   (eval $ac_try) 2>&5
37558   ac_status=$?
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); }; }; then
37561   ac_cv_func_crypt=yes
37562 else
37563   echo "$as_me: failed program was:" >&5
37564 sed 's/^/| /' conftest.$ac_ext >&5
37565
37566 ac_cv_func_crypt=no
37567 fi
37568 rm -f conftest.err conftest.$ac_objext \
37569       conftest$ac_exeext conftest.$ac_ext
37570 fi
37571 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
37572 echo "${ECHO_T}$ac_cv_func_crypt" >&6
37573 if test $ac_cv_func_crypt = yes; then
37574   have_crypt=yes
37575 else
37576
37577                 LIBS="$save_LIBS"
37578                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
37579 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
37580 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
37581   echo $ECHO_N "(cached) $ECHO_C" >&6
37582 else
37583   ac_check_lib_save_LIBS=$LIBS
37584 LIBS="-lcrypt  $LIBS"
37585 cat >conftest.$ac_ext <<_ACEOF
37586 /* confdefs.h.  */
37587 _ACEOF
37588 cat confdefs.h >>conftest.$ac_ext
37589 cat >>conftest.$ac_ext <<_ACEOF
37590 /* end confdefs.h.  */
37591
37592 /* Override any gcc2 internal prototype to avoid an error.  */
37593 #ifdef __cplusplus
37594 extern "C"
37595 #endif
37596 /* We use char because int might match the return type of a gcc2
37597    builtin and then its argument prototype would still apply.  */
37598 char crypt ();
37599 int
37600 main ()
37601 {
37602 crypt ();
37603   ;
37604   return 0;
37605 }
37606 _ACEOF
37607 rm -f conftest.$ac_objext conftest$ac_exeext
37608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37609   (eval $ac_link) 2>conftest.er1
37610   ac_status=$?
37611   grep -v '^ *+' conftest.er1 >conftest.err
37612   rm -f conftest.er1
37613   cat conftest.err >&5
37614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615   (exit $ac_status); } &&
37616          { ac_try='test -z "$ac_c_werror_flag"
37617                          || test ! -s conftest.err'
37618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619   (eval $ac_try) 2>&5
37620   ac_status=$?
37621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622   (exit $ac_status); }; } &&
37623          { ac_try='test -s conftest$ac_exeext'
37624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37625   (eval $ac_try) 2>&5
37626   ac_status=$?
37627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628   (exit $ac_status); }; }; then
37629   ac_cv_lib_crypt_crypt=yes
37630 else
37631   echo "$as_me: failed program was:" >&5
37632 sed 's/^/| /' conftest.$ac_ext >&5
37633
37634 ac_cv_lib_crypt_crypt=no
37635 fi
37636 rm -f conftest.err conftest.$ac_objext \
37637       conftest$ac_exeext conftest.$ac_ext
37638 LIBS=$ac_check_lib_save_LIBS
37639 fi
37640 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
37641 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
37642 if test $ac_cv_lib_crypt_crypt = yes; then
37643   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
37644                         have_crypt=yes
37645 else
37646   have_crypt=no
37647 fi
37648
37649 fi
37650
37651
37652         LIBS="$save_LIBS"
37653
37654         if test $have_crypt = yes ; then
37655
37656 cat >>confdefs.h <<\_ACEOF
37657 #define HAVE_CRYPT 1
37658 _ACEOF
37659
37660         else
37661                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
37662 echo "$as_me: WARNING: could not find crypt" >&2;}
37663                 if test $ol_enable_crypt = yes ; then
37664                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
37665 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
37666    { (exit 1); exit 1; }; }
37667                 fi
37668
37669                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
37670 echo "$as_me: WARNING: disabling crypt support" >&2;}
37671                 ol_enable_crypt=no
37672         fi
37673 fi
37674
37675 if test $ol_enable_proctitle != no ; then
37676         echo "$as_me:$LINENO: checking for setproctitle" >&5
37677 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
37678 if test "${ac_cv_func_setproctitle+set}" = set; then
37679   echo $ECHO_N "(cached) $ECHO_C" >&6
37680 else
37681   cat >conftest.$ac_ext <<_ACEOF
37682 /* confdefs.h.  */
37683 _ACEOF
37684 cat confdefs.h >>conftest.$ac_ext
37685 cat >>conftest.$ac_ext <<_ACEOF
37686 /* end confdefs.h.  */
37687 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
37688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37689 #define setproctitle innocuous_setproctitle
37690
37691 /* System header to define __stub macros and hopefully few prototypes,
37692     which can conflict with char setproctitle (); below.
37693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37694     <limits.h> exists even on freestanding compilers.  */
37695
37696 #ifdef __STDC__
37697 # include <limits.h>
37698 #else
37699 # include <assert.h>
37700 #endif
37701
37702 #undef setproctitle
37703
37704 /* Override any gcc2 internal prototype to avoid an error.  */
37705 #ifdef __cplusplus
37706 extern "C"
37707 {
37708 #endif
37709 /* We use char because int might match the return type of a gcc2
37710    builtin and then its argument prototype would still apply.  */
37711 char setproctitle ();
37712 /* The GNU C library defines this for functions which it implements
37713     to always fail with ENOSYS.  Some functions are actually named
37714     something starting with __ and the normal name is an alias.  */
37715 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
37716 choke me
37717 #else
37718 char (*f) () = setproctitle;
37719 #endif
37720 #ifdef __cplusplus
37721 }
37722 #endif
37723
37724 int
37725 main ()
37726 {
37727 return f != setproctitle;
37728   ;
37729   return 0;
37730 }
37731 _ACEOF
37732 rm -f conftest.$ac_objext conftest$ac_exeext
37733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37734   (eval $ac_link) 2>conftest.er1
37735   ac_status=$?
37736   grep -v '^ *+' conftest.er1 >conftest.err
37737   rm -f conftest.er1
37738   cat conftest.err >&5
37739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740   (exit $ac_status); } &&
37741          { ac_try='test -z "$ac_c_werror_flag"
37742                          || test ! -s conftest.err'
37743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744   (eval $ac_try) 2>&5
37745   ac_status=$?
37746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747   (exit $ac_status); }; } &&
37748          { ac_try='test -s conftest$ac_exeext'
37749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37750   (eval $ac_try) 2>&5
37751   ac_status=$?
37752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37753   (exit $ac_status); }; }; then
37754   ac_cv_func_setproctitle=yes
37755 else
37756   echo "$as_me: failed program was:" >&5
37757 sed 's/^/| /' conftest.$ac_ext >&5
37758
37759 ac_cv_func_setproctitle=no
37760 fi
37761 rm -f conftest.err conftest.$ac_objext \
37762       conftest$ac_exeext conftest.$ac_ext
37763 fi
37764 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
37765 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
37766 if test $ac_cv_func_setproctitle = yes; then
37767   have_setproctitle=yes
37768 else
37769
37770                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
37771 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
37772 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
37773   echo $ECHO_N "(cached) $ECHO_C" >&6
37774 else
37775   ac_check_lib_save_LIBS=$LIBS
37776 LIBS="-lutil  $LIBS"
37777 cat >conftest.$ac_ext <<_ACEOF
37778 /* confdefs.h.  */
37779 _ACEOF
37780 cat confdefs.h >>conftest.$ac_ext
37781 cat >>conftest.$ac_ext <<_ACEOF
37782 /* end confdefs.h.  */
37783
37784 /* Override any gcc2 internal prototype to avoid an error.  */
37785 #ifdef __cplusplus
37786 extern "C"
37787 #endif
37788 /* We use char because int might match the return type of a gcc2
37789    builtin and then its argument prototype would still apply.  */
37790 char setproctitle ();
37791 int
37792 main ()
37793 {
37794 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_lib_util_setproctitle=yes
37822 else
37823   echo "$as_me: failed program was:" >&5
37824 sed 's/^/| /' conftest.$ac_ext >&5
37825
37826 ac_cv_lib_util_setproctitle=no
37827 fi
37828 rm -f conftest.err conftest.$ac_objext \
37829       conftest$ac_exeext conftest.$ac_ext
37830 LIBS=$ac_check_lib_save_LIBS
37831 fi
37832 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
37833 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
37834 if test $ac_cv_lib_util_setproctitle = yes; then
37835   have_setproctitle=yes
37836                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
37837 else
37838   have_setproctitle=no
37839                         case $LIBOBJS in
37840     "setproctitle.$ac_objext"   | \
37841   *" setproctitle.$ac_objext"   | \
37842     "setproctitle.$ac_objext "* | \
37843   *" setproctitle.$ac_objext "* ) ;;
37844   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
37845 esac
37846
37847                         LIBSRCS="$LIBSRCS setproctitle.c"
37848 fi
37849
37850 fi
37851
37852
37853         if test $have_setproctitle = yes ; then
37854
37855 cat >>confdefs.h <<\_ACEOF
37856 #define HAVE_SETPROCTITLE 1
37857 _ACEOF
37858
37859         fi
37860 fi
37861
37862 if test $ol_enable_slp != no ; then
37863
37864 for ac_header in slp.h
37865 do
37866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37868   echo "$as_me:$LINENO: checking for $ac_header" >&5
37869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37871   echo $ECHO_N "(cached) $ECHO_C" >&6
37872 fi
37873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37875 else
37876   # Is the header compilable?
37877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37879 cat >conftest.$ac_ext <<_ACEOF
37880 /* confdefs.h.  */
37881 _ACEOF
37882 cat confdefs.h >>conftest.$ac_ext
37883 cat >>conftest.$ac_ext <<_ACEOF
37884 /* end confdefs.h.  */
37885 $ac_includes_default
37886 #include <$ac_header>
37887 _ACEOF
37888 rm -f conftest.$ac_objext
37889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37890   (eval $ac_compile) 2>conftest.er1
37891   ac_status=$?
37892   grep -v '^ *+' conftest.er1 >conftest.err
37893   rm -f conftest.er1
37894   cat conftest.err >&5
37895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37896   (exit $ac_status); } &&
37897          { ac_try='test -z "$ac_c_werror_flag"
37898                          || test ! -s conftest.err'
37899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900   (eval $ac_try) 2>&5
37901   ac_status=$?
37902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903   (exit $ac_status); }; } &&
37904          { ac_try='test -s conftest.$ac_objext'
37905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906   (eval $ac_try) 2>&5
37907   ac_status=$?
37908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909   (exit $ac_status); }; }; then
37910   ac_header_compiler=yes
37911 else
37912   echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37914
37915 ac_header_compiler=no
37916 fi
37917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37919 echo "${ECHO_T}$ac_header_compiler" >&6
37920
37921 # Is the header present?
37922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37924 cat >conftest.$ac_ext <<_ACEOF
37925 /* confdefs.h.  */
37926 _ACEOF
37927 cat confdefs.h >>conftest.$ac_ext
37928 cat >>conftest.$ac_ext <<_ACEOF
37929 /* end confdefs.h.  */
37930 #include <$ac_header>
37931 _ACEOF
37932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37934   ac_status=$?
37935   grep -v '^ *+' conftest.er1 >conftest.err
37936   rm -f conftest.er1
37937   cat conftest.err >&5
37938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37939   (exit $ac_status); } >/dev/null; then
37940   if test -s conftest.err; then
37941     ac_cpp_err=$ac_c_preproc_warn_flag
37942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37943   else
37944     ac_cpp_err=
37945   fi
37946 else
37947   ac_cpp_err=yes
37948 fi
37949 if test -z "$ac_cpp_err"; then
37950   ac_header_preproc=yes
37951 else
37952   echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37954
37955   ac_header_preproc=no
37956 fi
37957 rm -f conftest.err conftest.$ac_ext
37958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37959 echo "${ECHO_T}$ac_header_preproc" >&6
37960
37961 # So?  What about this header?
37962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37963   yes:no: )
37964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37968     ac_header_preproc=yes
37969     ;;
37970   no:yes:* )
37971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37983     (
37984       cat <<\_ASBOX
37985 ## ------------------------------------------ ##
37986 ## Report this to the AC_PACKAGE_NAME lists.  ##
37987 ## ------------------------------------------ ##
37988 _ASBOX
37989     ) |
37990       sed "s/^/$as_me: WARNING:     /" >&2
37991     ;;
37992 esac
37993 echo "$as_me:$LINENO: checking for $ac_header" >&5
37994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37996   echo $ECHO_N "(cached) $ECHO_C" >&6
37997 else
37998   eval "$as_ac_Header=\$ac_header_preproc"
37999 fi
38000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38002
38003 fi
38004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38005   cat >>confdefs.h <<_ACEOF
38006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38007 _ACEOF
38008
38009 fi
38010
38011 done
38012
38013
38014         if test $ac_cv_header_slp_h = yes ; then
38015                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
38016 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
38017 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
38018   echo $ECHO_N "(cached) $ECHO_C" >&6
38019 else
38020   ac_check_lib_save_LIBS=$LIBS
38021 LIBS="-lslp  $LIBS"
38022 cat >conftest.$ac_ext <<_ACEOF
38023 /* confdefs.h.  */
38024 _ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h.  */
38028
38029 /* Override any gcc2 internal prototype to avoid an error.  */
38030 #ifdef __cplusplus
38031 extern "C"
38032 #endif
38033 /* We use char because int might match the return type of a gcc2
38034    builtin and then its argument prototype would still apply.  */
38035 char SLPOpen ();
38036 int
38037 main ()
38038 {
38039 SLPOpen ();
38040   ;
38041   return 0;
38042 }
38043 _ACEOF
38044 rm -f conftest.$ac_objext conftest$ac_exeext
38045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38046   (eval $ac_link) 2>conftest.er1
38047   ac_status=$?
38048   grep -v '^ *+' conftest.er1 >conftest.err
38049   rm -f conftest.er1
38050   cat conftest.err >&5
38051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052   (exit $ac_status); } &&
38053          { ac_try='test -z "$ac_c_werror_flag"
38054                          || test ! -s conftest.err'
38055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056   (eval $ac_try) 2>&5
38057   ac_status=$?
38058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059   (exit $ac_status); }; } &&
38060          { ac_try='test -s conftest$ac_exeext'
38061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062   (eval $ac_try) 2>&5
38063   ac_status=$?
38064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065   (exit $ac_status); }; }; then
38066   ac_cv_lib_slp_SLPOpen=yes
38067 else
38068   echo "$as_me: failed program was:" >&5
38069 sed 's/^/| /' conftest.$ac_ext >&5
38070
38071 ac_cv_lib_slp_SLPOpen=no
38072 fi
38073 rm -f conftest.err conftest.$ac_objext \
38074       conftest$ac_exeext conftest.$ac_ext
38075 LIBS=$ac_check_lib_save_LIBS
38076 fi
38077 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
38078 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
38079 if test $ac_cv_lib_slp_SLPOpen = yes; then
38080   have_slp=yes
38081 else
38082   have_slp=no
38083 fi
38084
38085                 if test $have_slp = yes ; then
38086
38087 cat >>confdefs.h <<\_ACEOF
38088 #define HAVE_SLP 1
38089 _ACEOF
38090
38091                         SLAPD_SLP_LIBS=-lslp
38092                 fi
38093
38094         elif test $ol_enable_slp = yes ; then
38095                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
38096 echo "$as_me: error: SLP not found" >&2;}
38097    { (exit 1); exit 1; }; }
38098         fi
38099 fi
38100
38101 if test "$ol_with_multiple_precision" != "no" ; then
38102         ol_have_bignum=no
38103         ol_have_gmp=no
38104
38105
38106
38107 for ac_header in openssl/bn.h bn.h
38108 do
38109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38111   echo "$as_me:$LINENO: checking for $ac_header" >&5
38112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38114   echo $ECHO_N "(cached) $ECHO_C" >&6
38115 fi
38116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38118 else
38119   # Is the header compilable?
38120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38122 cat >conftest.$ac_ext <<_ACEOF
38123 /* confdefs.h.  */
38124 _ACEOF
38125 cat confdefs.h >>conftest.$ac_ext
38126 cat >>conftest.$ac_ext <<_ACEOF
38127 /* end confdefs.h.  */
38128 $ac_includes_default
38129 #include <$ac_header>
38130 _ACEOF
38131 rm -f conftest.$ac_objext
38132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38133   (eval $ac_compile) 2>conftest.er1
38134   ac_status=$?
38135   grep -v '^ *+' conftest.er1 >conftest.err
38136   rm -f conftest.er1
38137   cat conftest.err >&5
38138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139   (exit $ac_status); } &&
38140          { ac_try='test -z "$ac_c_werror_flag"
38141                          || test ! -s conftest.err'
38142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38143   (eval $ac_try) 2>&5
38144   ac_status=$?
38145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38146   (exit $ac_status); }; } &&
38147          { ac_try='test -s conftest.$ac_objext'
38148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38149   (eval $ac_try) 2>&5
38150   ac_status=$?
38151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38152   (exit $ac_status); }; }; then
38153   ac_header_compiler=yes
38154 else
38155   echo "$as_me: failed program was:" >&5
38156 sed 's/^/| /' conftest.$ac_ext >&5
38157
38158 ac_header_compiler=no
38159 fi
38160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38162 echo "${ECHO_T}$ac_header_compiler" >&6
38163
38164 # Is the header present?
38165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38167 cat >conftest.$ac_ext <<_ACEOF
38168 /* confdefs.h.  */
38169 _ACEOF
38170 cat confdefs.h >>conftest.$ac_ext
38171 cat >>conftest.$ac_ext <<_ACEOF
38172 /* end confdefs.h.  */
38173 #include <$ac_header>
38174 _ACEOF
38175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38177   ac_status=$?
38178   grep -v '^ *+' conftest.er1 >conftest.err
38179   rm -f conftest.er1
38180   cat conftest.err >&5
38181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182   (exit $ac_status); } >/dev/null; then
38183   if test -s conftest.err; then
38184     ac_cpp_err=$ac_c_preproc_warn_flag
38185     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38186   else
38187     ac_cpp_err=
38188   fi
38189 else
38190   ac_cpp_err=yes
38191 fi
38192 if test -z "$ac_cpp_err"; then
38193   ac_header_preproc=yes
38194 else
38195   echo "$as_me: failed program was:" >&5
38196 sed 's/^/| /' conftest.$ac_ext >&5
38197
38198   ac_header_preproc=no
38199 fi
38200 rm -f conftest.err conftest.$ac_ext
38201 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38202 echo "${ECHO_T}$ac_header_preproc" >&6
38203
38204 # So?  What about this header?
38205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38206   yes:no: )
38207     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38211     ac_header_preproc=yes
38212     ;;
38213   no:yes:* )
38214     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38216     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38217 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38218     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38220     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38221 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38222     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38224     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38226     (
38227       cat <<\_ASBOX
38228 ## ------------------------------------------ ##
38229 ## Report this to the AC_PACKAGE_NAME lists.  ##
38230 ## ------------------------------------------ ##
38231 _ASBOX
38232     ) |
38233       sed "s/^/$as_me: WARNING:     /" >&2
38234     ;;
38235 esac
38236 echo "$as_me:$LINENO: checking for $ac_header" >&5
38237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38239   echo $ECHO_N "(cached) $ECHO_C" >&6
38240 else
38241   eval "$as_ac_Header=\$ac_header_preproc"
38242 fi
38243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38245
38246 fi
38247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38248   cat >>confdefs.h <<_ACEOF
38249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38250 _ACEOF
38251
38252 fi
38253
38254 done
38255
38256
38257
38258 for ac_header in openssl/crypto.h crypto.h
38259 do
38260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38262   echo "$as_me:$LINENO: checking for $ac_header" >&5
38263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38265   echo $ECHO_N "(cached) $ECHO_C" >&6
38266 fi
38267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38269 else
38270   # Is the header compilable?
38271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38273 cat >conftest.$ac_ext <<_ACEOF
38274 /* confdefs.h.  */
38275 _ACEOF
38276 cat confdefs.h >>conftest.$ac_ext
38277 cat >>conftest.$ac_ext <<_ACEOF
38278 /* end confdefs.h.  */
38279 $ac_includes_default
38280 #include <$ac_header>
38281 _ACEOF
38282 rm -f conftest.$ac_objext
38283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38284   (eval $ac_compile) 2>conftest.er1
38285   ac_status=$?
38286   grep -v '^ *+' conftest.er1 >conftest.err
38287   rm -f conftest.er1
38288   cat conftest.err >&5
38289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290   (exit $ac_status); } &&
38291          { ac_try='test -z "$ac_c_werror_flag"
38292                          || test ! -s conftest.err'
38293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294   (eval $ac_try) 2>&5
38295   ac_status=$?
38296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297   (exit $ac_status); }; } &&
38298          { ac_try='test -s conftest.$ac_objext'
38299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38300   (eval $ac_try) 2>&5
38301   ac_status=$?
38302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303   (exit $ac_status); }; }; then
38304   ac_header_compiler=yes
38305 else
38306   echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38308
38309 ac_header_compiler=no
38310 fi
38311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38313 echo "${ECHO_T}$ac_header_compiler" >&6
38314
38315 # Is the header present?
38316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38318 cat >conftest.$ac_ext <<_ACEOF
38319 /* confdefs.h.  */
38320 _ACEOF
38321 cat confdefs.h >>conftest.$ac_ext
38322 cat >>conftest.$ac_ext <<_ACEOF
38323 /* end confdefs.h.  */
38324 #include <$ac_header>
38325 _ACEOF
38326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38328   ac_status=$?
38329   grep -v '^ *+' conftest.er1 >conftest.err
38330   rm -f conftest.er1
38331   cat conftest.err >&5
38332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333   (exit $ac_status); } >/dev/null; then
38334   if test -s conftest.err; then
38335     ac_cpp_err=$ac_c_preproc_warn_flag
38336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38337   else
38338     ac_cpp_err=
38339   fi
38340 else
38341   ac_cpp_err=yes
38342 fi
38343 if test -z "$ac_cpp_err"; then
38344   ac_header_preproc=yes
38345 else
38346   echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38348
38349   ac_header_preproc=no
38350 fi
38351 rm -f conftest.err conftest.$ac_ext
38352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38353 echo "${ECHO_T}$ac_header_preproc" >&6
38354
38355 # So?  What about this header?
38356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38357   yes:no: )
38358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38362     ac_header_preproc=yes
38363     ;;
38364   no:yes:* )
38365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38367     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38368 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38371     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38372 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38377     (
38378       cat <<\_ASBOX
38379 ## ------------------------------------------ ##
38380 ## Report this to the AC_PACKAGE_NAME lists.  ##
38381 ## ------------------------------------------ ##
38382 _ASBOX
38383     ) |
38384       sed "s/^/$as_me: WARNING:     /" >&2
38385     ;;
38386 esac
38387 echo "$as_me:$LINENO: checking for $ac_header" >&5
38388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38390   echo $ECHO_N "(cached) $ECHO_C" >&6
38391 else
38392   eval "$as_ac_Header=\$ac_header_preproc"
38393 fi
38394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38396
38397 fi
38398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38399   cat >>confdefs.h <<_ACEOF
38400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38401 _ACEOF
38402
38403 fi
38404
38405 done
38406
38407
38408 for ac_header in gmp.h
38409 do
38410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38412   echo "$as_me:$LINENO: checking for $ac_header" >&5
38413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38415   echo $ECHO_N "(cached) $ECHO_C" >&6
38416 fi
38417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38419 else
38420   # Is the header compilable?
38421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38423 cat >conftest.$ac_ext <<_ACEOF
38424 /* confdefs.h.  */
38425 _ACEOF
38426 cat confdefs.h >>conftest.$ac_ext
38427 cat >>conftest.$ac_ext <<_ACEOF
38428 /* end confdefs.h.  */
38429 $ac_includes_default
38430 #include <$ac_header>
38431 _ACEOF
38432 rm -f conftest.$ac_objext
38433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38434   (eval $ac_compile) 2>conftest.er1
38435   ac_status=$?
38436   grep -v '^ *+' conftest.er1 >conftest.err
38437   rm -f conftest.er1
38438   cat conftest.err >&5
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); } &&
38441          { ac_try='test -z "$ac_c_werror_flag"
38442                          || test ! -s conftest.err'
38443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444   (eval $ac_try) 2>&5
38445   ac_status=$?
38446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447   (exit $ac_status); }; } &&
38448          { ac_try='test -s conftest.$ac_objext'
38449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38450   (eval $ac_try) 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; }; then
38454   ac_header_compiler=yes
38455 else
38456   echo "$as_me: failed program was:" >&5
38457 sed 's/^/| /' conftest.$ac_ext >&5
38458
38459 ac_header_compiler=no
38460 fi
38461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38463 echo "${ECHO_T}$ac_header_compiler" >&6
38464
38465 # Is the header present?
38466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38468 cat >conftest.$ac_ext <<_ACEOF
38469 /* confdefs.h.  */
38470 _ACEOF
38471 cat confdefs.h >>conftest.$ac_ext
38472 cat >>conftest.$ac_ext <<_ACEOF
38473 /* end confdefs.h.  */
38474 #include <$ac_header>
38475 _ACEOF
38476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38478   ac_status=$?
38479   grep -v '^ *+' conftest.er1 >conftest.err
38480   rm -f conftest.er1
38481   cat conftest.err >&5
38482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38483   (exit $ac_status); } >/dev/null; then
38484   if test -s conftest.err; then
38485     ac_cpp_err=$ac_c_preproc_warn_flag
38486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38487   else
38488     ac_cpp_err=
38489   fi
38490 else
38491   ac_cpp_err=yes
38492 fi
38493 if test -z "$ac_cpp_err"; then
38494   ac_header_preproc=yes
38495 else
38496   echo "$as_me: failed program was:" >&5
38497 sed 's/^/| /' conftest.$ac_ext >&5
38498
38499   ac_header_preproc=no
38500 fi
38501 rm -f conftest.err conftest.$ac_ext
38502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38503 echo "${ECHO_T}$ac_header_preproc" >&6
38504
38505 # So?  What about this header?
38506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38507   yes:no: )
38508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38512     ac_header_preproc=yes
38513     ;;
38514   no:yes:* )
38515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38527     (
38528       cat <<\_ASBOX
38529 ## ------------------------------------------ ##
38530 ## Report this to the AC_PACKAGE_NAME lists.  ##
38531 ## ------------------------------------------ ##
38532 _ASBOX
38533     ) |
38534       sed "s/^/$as_me: WARNING:     /" >&2
38535     ;;
38536 esac
38537 echo "$as_me:$LINENO: checking for $ac_header" >&5
38538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38540   echo $ECHO_N "(cached) $ECHO_C" >&6
38541 else
38542   eval "$as_ac_Header=\$ac_header_preproc"
38543 fi
38544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38546
38547 fi
38548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38549   cat >>confdefs.h <<_ACEOF
38550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38551 _ACEOF
38552
38553 fi
38554
38555 done
38556
38557
38558         if test "$ol_with_tls" = "found" ; then
38559                 ol_have_bn_h=no
38560                 ol_have_crypto_h=no
38561
38562                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
38563                    test "$ac_cv_header_bn_h" = "yes" ; then
38564                         ol_have_bn_h=yes
38565                 fi
38566
38567                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
38568                    test "$ac_cv_header_crypto_h" = "yes" ; then
38569                         ol_have_crypto_h=yes
38570                 fi
38571
38572                 if test "$ol_have_bn_h" = "yes" &&
38573                    test "$ol_have_crypto_h" = "yes" ; then
38574                         ol_have_bignum=yes
38575                 fi
38576         fi
38577
38578         if test $ac_cv_header_gmp_h = yes ; then
38579                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38580 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38581 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38582   echo $ECHO_N "(cached) $ECHO_C" >&6
38583 else
38584   ac_check_lib_save_LIBS=$LIBS
38585 LIBS="-lgmp  $LIBS"
38586 cat >conftest.$ac_ext <<_ACEOF
38587 /* confdefs.h.  */
38588 _ACEOF
38589 cat confdefs.h >>conftest.$ac_ext
38590 cat >>conftest.$ac_ext <<_ACEOF
38591 /* end confdefs.h.  */
38592
38593 /* Override any gcc2 internal prototype to avoid an error.  */
38594 #ifdef __cplusplus
38595 extern "C"
38596 #endif
38597 /* We use char because int might match the return type of a gcc2
38598    builtin and then its argument prototype would still apply.  */
38599 char __gmpz_add_ui ();
38600 int
38601 main ()
38602 {
38603 __gmpz_add_ui ();
38604   ;
38605   return 0;
38606 }
38607 _ACEOF
38608 rm -f conftest.$ac_objext conftest$ac_exeext
38609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38610   (eval $ac_link) 2>conftest.er1
38611   ac_status=$?
38612   grep -v '^ *+' conftest.er1 >conftest.err
38613   rm -f conftest.er1
38614   cat conftest.err >&5
38615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616   (exit $ac_status); } &&
38617          { ac_try='test -z "$ac_c_werror_flag"
38618                          || test ! -s conftest.err'
38619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38620   (eval $ac_try) 2>&5
38621   ac_status=$?
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); }; } &&
38624          { ac_try='test -s conftest$ac_exeext'
38625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38626   (eval $ac_try) 2>&5
38627   ac_status=$?
38628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629   (exit $ac_status); }; }; then
38630   ac_cv_lib_gmp___gmpz_add_ui=yes
38631 else
38632   echo "$as_me: failed program was:" >&5
38633 sed 's/^/| /' conftest.$ac_ext >&5
38634
38635 ac_cv_lib_gmp___gmpz_add_ui=no
38636 fi
38637 rm -f conftest.err conftest.$ac_objext \
38638       conftest$ac_exeext conftest.$ac_ext
38639 LIBS=$ac_check_lib_save_LIBS
38640 fi
38641 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38642 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38643 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38644   have_gmp=yes
38645 else
38646   have_gmp=no
38647 fi
38648
38649                 if test $have_gmp = yes ; then
38650                         ol_have_gmp=yes
38651                 fi
38652         fi
38653
38654         echo "$as_me:$LINENO: checking for multiple precision support" >&5
38655 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
38656
38657         ol_mp_support="none"
38658         case "$ol_with_multiple_precision" in
38659         auto)
38660                                                                                 if test "$ol_have_bignum" = "yes" ; then
38661                         ol_mp_support="bignum"
38662                 else
38663                         if test "$ol_have_gmp" = "yes" ; then
38664                                 ol_mp_support="gmp"
38665                         fi
38666                 fi
38667                 ;;
38668         bignum)
38669                 if test "$ol_have_bignum" != "yes" ; then
38670                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
38671 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
38672    { (exit 1); exit 1; }; }
38673                 fi
38674                 ol_mp_support="bignum"
38675                 ;;
38676         gmp)
38677                 if test "$ol_have_gmp" != "yes" ; then
38678                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
38679 echo "$as_me: error: GMP not available" >&2;}
38680    { (exit 1); exit 1; }; }
38681                 fi
38682                 ol_mp_support="gmp"
38683                 ;;
38684         yes)
38685                 if test "$ol_have_bignum" = "yes" ; then
38686                         ol_mp_support="bignum"
38687                 elif test "$ol_have_gmp" = "yes" ; then
38688                         ol_mp_support="gmp"
38689                 else
38690                         { { echo "$as_me:$LINENO: error: not available" >&5
38691 echo "$as_me: error: not available" >&2;}
38692    { (exit 1); exit 1; }; }
38693                 fi
38694                 ;;
38695         esac
38696
38697         case "$ol_mp_support" in
38698         bignum)
38699
38700 cat >>confdefs.h <<\_ACEOF
38701 #define HAVE_BIGNUM 1
38702 _ACEOF
38703
38704                 ;;
38705         gmp)
38706
38707 cat >>confdefs.h <<\_ACEOF
38708 #define HAVE_GMP 1
38709 _ACEOF
38710
38711                 SLAPD_GMP_LIBS=-lgmp
38712                 ;;
38713         none)
38714                 ;;
38715         esac
38716
38717         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
38718 echo "${ECHO_T}$ol_mp_support" >&6
38719 fi
38720
38721
38722 echo "$as_me:$LINENO: checking for mode_t" >&5
38723 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
38724 if test "${ac_cv_type_mode_t+set}" = set; then
38725   echo $ECHO_N "(cached) $ECHO_C" >&6
38726 else
38727   cat >conftest.$ac_ext <<_ACEOF
38728 /* confdefs.h.  */
38729 _ACEOF
38730 cat confdefs.h >>conftest.$ac_ext
38731 cat >>conftest.$ac_ext <<_ACEOF
38732 /* end confdefs.h.  */
38733 $ac_includes_default
38734 int
38735 main ()
38736 {
38737 if ((mode_t *) 0)
38738   return 0;
38739 if (sizeof (mode_t))
38740   return 0;
38741   ;
38742   return 0;
38743 }
38744 _ACEOF
38745 rm -f conftest.$ac_objext
38746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38747   (eval $ac_compile) 2>conftest.er1
38748   ac_status=$?
38749   grep -v '^ *+' conftest.er1 >conftest.err
38750   rm -f conftest.er1
38751   cat conftest.err >&5
38752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753   (exit $ac_status); } &&
38754          { ac_try='test -z "$ac_c_werror_flag"
38755                          || test ! -s conftest.err'
38756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757   (eval $ac_try) 2>&5
38758   ac_status=$?
38759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760   (exit $ac_status); }; } &&
38761          { ac_try='test -s conftest.$ac_objext'
38762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38763   (eval $ac_try) 2>&5
38764   ac_status=$?
38765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38766   (exit $ac_status); }; }; then
38767   ac_cv_type_mode_t=yes
38768 else
38769   echo "$as_me: failed program was:" >&5
38770 sed 's/^/| /' conftest.$ac_ext >&5
38771
38772 ac_cv_type_mode_t=no
38773 fi
38774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38775 fi
38776 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
38777 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
38778 if test $ac_cv_type_mode_t = yes; then
38779   :
38780 else
38781
38782 cat >>confdefs.h <<_ACEOF
38783 #define mode_t int
38784 _ACEOF
38785
38786 fi
38787
38788 echo "$as_me:$LINENO: checking for off_t" >&5
38789 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38790 if test "${ac_cv_type_off_t+set}" = set; then
38791   echo $ECHO_N "(cached) $ECHO_C" >&6
38792 else
38793   cat >conftest.$ac_ext <<_ACEOF
38794 /* confdefs.h.  */
38795 _ACEOF
38796 cat confdefs.h >>conftest.$ac_ext
38797 cat >>conftest.$ac_ext <<_ACEOF
38798 /* end confdefs.h.  */
38799 $ac_includes_default
38800 int
38801 main ()
38802 {
38803 if ((off_t *) 0)
38804   return 0;
38805 if (sizeof (off_t))
38806   return 0;
38807   ;
38808   return 0;
38809 }
38810 _ACEOF
38811 rm -f conftest.$ac_objext
38812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38813   (eval $ac_compile) 2>conftest.er1
38814   ac_status=$?
38815   grep -v '^ *+' conftest.er1 >conftest.err
38816   rm -f conftest.er1
38817   cat conftest.err >&5
38818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38819   (exit $ac_status); } &&
38820          { ac_try='test -z "$ac_c_werror_flag"
38821                          || test ! -s conftest.err'
38822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38823   (eval $ac_try) 2>&5
38824   ac_status=$?
38825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826   (exit $ac_status); }; } &&
38827          { ac_try='test -s conftest.$ac_objext'
38828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829   (eval $ac_try) 2>&5
38830   ac_status=$?
38831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832   (exit $ac_status); }; }; then
38833   ac_cv_type_off_t=yes
38834 else
38835   echo "$as_me: failed program was:" >&5
38836 sed 's/^/| /' conftest.$ac_ext >&5
38837
38838 ac_cv_type_off_t=no
38839 fi
38840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38841 fi
38842 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38843 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38844 if test $ac_cv_type_off_t = yes; then
38845   :
38846 else
38847
38848 cat >>confdefs.h <<_ACEOF
38849 #define off_t long
38850 _ACEOF
38851
38852 fi
38853
38854 echo "$as_me:$LINENO: checking for pid_t" >&5
38855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38856 if test "${ac_cv_type_pid_t+set}" = set; then
38857   echo $ECHO_N "(cached) $ECHO_C" >&6
38858 else
38859   cat >conftest.$ac_ext <<_ACEOF
38860 /* confdefs.h.  */
38861 _ACEOF
38862 cat confdefs.h >>conftest.$ac_ext
38863 cat >>conftest.$ac_ext <<_ACEOF
38864 /* end confdefs.h.  */
38865 $ac_includes_default
38866 int
38867 main ()
38868 {
38869 if ((pid_t *) 0)
38870   return 0;
38871 if (sizeof (pid_t))
38872   return 0;
38873   ;
38874   return 0;
38875 }
38876 _ACEOF
38877 rm -f conftest.$ac_objext
38878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38879   (eval $ac_compile) 2>conftest.er1
38880   ac_status=$?
38881   grep -v '^ *+' conftest.er1 >conftest.err
38882   rm -f conftest.er1
38883   cat conftest.err >&5
38884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885   (exit $ac_status); } &&
38886          { ac_try='test -z "$ac_c_werror_flag"
38887                          || test ! -s conftest.err'
38888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38889   (eval $ac_try) 2>&5
38890   ac_status=$?
38891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892   (exit $ac_status); }; } &&
38893          { ac_try='test -s conftest.$ac_objext'
38894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38895   (eval $ac_try) 2>&5
38896   ac_status=$?
38897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38898   (exit $ac_status); }; }; then
38899   ac_cv_type_pid_t=yes
38900 else
38901   echo "$as_me: failed program was:" >&5
38902 sed 's/^/| /' conftest.$ac_ext >&5
38903
38904 ac_cv_type_pid_t=no
38905 fi
38906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38907 fi
38908 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38910 if test $ac_cv_type_pid_t = yes; then
38911   :
38912 else
38913
38914 cat >>confdefs.h <<_ACEOF
38915 #define pid_t int
38916 _ACEOF
38917
38918 fi
38919
38920 echo "$as_me:$LINENO: checking for ssize_t" >&5
38921 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
38922 if test "${ac_cv_type_ssize_t+set}" = set; then
38923   echo $ECHO_N "(cached) $ECHO_C" >&6
38924 else
38925   cat >conftest.$ac_ext <<_ACEOF
38926 /* confdefs.h.  */
38927 _ACEOF
38928 cat confdefs.h >>conftest.$ac_ext
38929 cat >>conftest.$ac_ext <<_ACEOF
38930 /* end confdefs.h.  */
38931 $ac_includes_default
38932 int
38933 main ()
38934 {
38935 if ((ssize_t *) 0)
38936   return 0;
38937 if (sizeof (ssize_t))
38938   return 0;
38939   ;
38940   return 0;
38941 }
38942 _ACEOF
38943 rm -f conftest.$ac_objext
38944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38945   (eval $ac_compile) 2>conftest.er1
38946   ac_status=$?
38947   grep -v '^ *+' conftest.er1 >conftest.err
38948   rm -f conftest.er1
38949   cat conftest.err >&5
38950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951   (exit $ac_status); } &&
38952          { ac_try='test -z "$ac_c_werror_flag"
38953                          || test ! -s conftest.err'
38954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38955   (eval $ac_try) 2>&5
38956   ac_status=$?
38957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958   (exit $ac_status); }; } &&
38959          { ac_try='test -s conftest.$ac_objext'
38960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38961   (eval $ac_try) 2>&5
38962   ac_status=$?
38963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38964   (exit $ac_status); }; }; then
38965   ac_cv_type_ssize_t=yes
38966 else
38967   echo "$as_me: failed program was:" >&5
38968 sed 's/^/| /' conftest.$ac_ext >&5
38969
38970 ac_cv_type_ssize_t=no
38971 fi
38972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38973 fi
38974 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
38975 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
38976 if test $ac_cv_type_ssize_t = yes; then
38977   :
38978 else
38979
38980 cat >>confdefs.h <<_ACEOF
38981 #define ssize_t signed int
38982 _ACEOF
38983
38984 fi
38985
38986 echo "$as_me:$LINENO: checking for caddr_t" >&5
38987 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
38988 if test "${ac_cv_type_caddr_t+set}" = set; then
38989   echo $ECHO_N "(cached) $ECHO_C" >&6
38990 else
38991   cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997 $ac_includes_default
38998 int
38999 main ()
39000 {
39001 if ((caddr_t *) 0)
39002   return 0;
39003 if (sizeof (caddr_t))
39004   return 0;
39005   ;
39006   return 0;
39007 }
39008 _ACEOF
39009 rm -f conftest.$ac_objext
39010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39011   (eval $ac_compile) 2>conftest.er1
39012   ac_status=$?
39013   grep -v '^ *+' conftest.er1 >conftest.err
39014   rm -f conftest.er1
39015   cat conftest.err >&5
39016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017   (exit $ac_status); } &&
39018          { ac_try='test -z "$ac_c_werror_flag"
39019                          || test ! -s conftest.err'
39020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39021   (eval $ac_try) 2>&5
39022   ac_status=$?
39023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39024   (exit $ac_status); }; } &&
39025          { ac_try='test -s conftest.$ac_objext'
39026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39027   (eval $ac_try) 2>&5
39028   ac_status=$?
39029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39030   (exit $ac_status); }; }; then
39031   ac_cv_type_caddr_t=yes
39032 else
39033   echo "$as_me: failed program was:" >&5
39034 sed 's/^/| /' conftest.$ac_ext >&5
39035
39036 ac_cv_type_caddr_t=no
39037 fi
39038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39039 fi
39040 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
39041 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
39042 if test $ac_cv_type_caddr_t = yes; then
39043   :
39044 else
39045
39046 cat >>confdefs.h <<_ACEOF
39047 #define caddr_t char *
39048 _ACEOF
39049
39050 fi
39051
39052 echo "$as_me:$LINENO: checking for size_t" >&5
39053 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39054 if test "${ac_cv_type_size_t+set}" = set; then
39055   echo $ECHO_N "(cached) $ECHO_C" >&6
39056 else
39057   cat >conftest.$ac_ext <<_ACEOF
39058 /* confdefs.h.  */
39059 _ACEOF
39060 cat confdefs.h >>conftest.$ac_ext
39061 cat >>conftest.$ac_ext <<_ACEOF
39062 /* end confdefs.h.  */
39063 $ac_includes_default
39064 int
39065 main ()
39066 {
39067 if ((size_t *) 0)
39068   return 0;
39069 if (sizeof (size_t))
39070   return 0;
39071   ;
39072   return 0;
39073 }
39074 _ACEOF
39075 rm -f conftest.$ac_objext
39076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39077   (eval $ac_compile) 2>conftest.er1
39078   ac_status=$?
39079   grep -v '^ *+' conftest.er1 >conftest.err
39080   rm -f conftest.er1
39081   cat conftest.err >&5
39082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39083   (exit $ac_status); } &&
39084          { ac_try='test -z "$ac_c_werror_flag"
39085                          || test ! -s conftest.err'
39086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39087   (eval $ac_try) 2>&5
39088   ac_status=$?
39089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090   (exit $ac_status); }; } &&
39091          { ac_try='test -s conftest.$ac_objext'
39092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39093   (eval $ac_try) 2>&5
39094   ac_status=$?
39095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096   (exit $ac_status); }; }; then
39097   ac_cv_type_size_t=yes
39098 else
39099   echo "$as_me: failed program was:" >&5
39100 sed 's/^/| /' conftest.$ac_ext >&5
39101
39102 ac_cv_type_size_t=no
39103 fi
39104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39105 fi
39106 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39107 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39108 if test $ac_cv_type_size_t = yes; then
39109   :
39110 else
39111
39112 cat >>confdefs.h <<_ACEOF
39113 #define size_t unsigned
39114 _ACEOF
39115
39116 fi
39117
39118
39119 echo "$as_me:$LINENO: checking for long long" >&5
39120 echo $ECHO_N "checking for long long... $ECHO_C" >&6
39121 if test "${ac_cv_type_long_long+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 ((long long *) 0)
39135   return 0;
39136 if (sizeof (long long))
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_long_long=yes
39165 else
39166   echo "$as_me: failed program was:" >&5
39167 sed 's/^/| /' conftest.$ac_ext >&5
39168
39169 ac_cv_type_long_long=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_long_long" >&5
39174 echo "${ECHO_T}$ac_cv_type_long_long" >&6
39175 if test $ac_cv_type_long_long = yes; then
39176
39177 cat >>confdefs.h <<_ACEOF
39178 #define HAVE_LONG_LONG 1
39179 _ACEOF
39180
39181
39182 fi
39183
39184 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
39185 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
39186 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
39187   echo $ECHO_N "(cached) $ECHO_C" >&6
39188 else
39189   cat >conftest.$ac_ext <<_ACEOF
39190 /* confdefs.h.  */
39191 _ACEOF
39192 cat confdefs.h >>conftest.$ac_ext
39193 cat >>conftest.$ac_ext <<_ACEOF
39194 /* end confdefs.h.  */
39195 $ac_includes_default
39196 int
39197 main ()
39198 {
39199 if ((ptrdiff_t *) 0)
39200   return 0;
39201 if (sizeof (ptrdiff_t))
39202   return 0;
39203   ;
39204   return 0;
39205 }
39206 _ACEOF
39207 rm -f conftest.$ac_objext
39208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39209   (eval $ac_compile) 2>conftest.er1
39210   ac_status=$?
39211   grep -v '^ *+' conftest.er1 >conftest.err
39212   rm -f conftest.er1
39213   cat conftest.err >&5
39214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215   (exit $ac_status); } &&
39216          { ac_try='test -z "$ac_c_werror_flag"
39217                          || test ! -s conftest.err'
39218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39219   (eval $ac_try) 2>&5
39220   ac_status=$?
39221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222   (exit $ac_status); }; } &&
39223          { ac_try='test -s conftest.$ac_objext'
39224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225   (eval $ac_try) 2>&5
39226   ac_status=$?
39227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228   (exit $ac_status); }; }; then
39229   ac_cv_type_ptrdiff_t=yes
39230 else
39231   echo "$as_me: failed program was:" >&5
39232 sed 's/^/| /' conftest.$ac_ext >&5
39233
39234 ac_cv_type_ptrdiff_t=no
39235 fi
39236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39237 fi
39238 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
39239 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
39240 if test $ac_cv_type_ptrdiff_t = yes; then
39241
39242 cat >>confdefs.h <<_ACEOF
39243 #define HAVE_PTRDIFF_T 1
39244 _ACEOF
39245
39246
39247 fi
39248
39249
39250 echo "$as_me:$LINENO: checking for socklen_t" >&5
39251 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39252 if test "${ac_cv_type_socklen_t+set}" = set; then
39253   echo $ECHO_N "(cached) $ECHO_C" >&6
39254 else
39255   cat >conftest.$ac_ext <<_ACEOF
39256 /* confdefs.h.  */
39257 _ACEOF
39258 cat confdefs.h >>conftest.$ac_ext
39259 cat >>conftest.$ac_ext <<_ACEOF
39260 /* end confdefs.h.  */
39261 $ac_includes_default
39262 #ifdef HAVE_SYS_SOCKET_H
39263 #include <sys/socket.h>
39264 #endif
39265
39266
39267 int
39268 main ()
39269 {
39270 if ((socklen_t *) 0)
39271   return 0;
39272 if (sizeof (socklen_t))
39273   return 0;
39274   ;
39275   return 0;
39276 }
39277 _ACEOF
39278 rm -f conftest.$ac_objext
39279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39280   (eval $ac_compile) 2>conftest.er1
39281   ac_status=$?
39282   grep -v '^ *+' conftest.er1 >conftest.err
39283   rm -f conftest.er1
39284   cat conftest.err >&5
39285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286   (exit $ac_status); } &&
39287          { ac_try='test -z "$ac_c_werror_flag"
39288                          || test ! -s conftest.err'
39289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39290   (eval $ac_try) 2>&5
39291   ac_status=$?
39292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293   (exit $ac_status); }; } &&
39294          { ac_try='test -s conftest.$ac_objext'
39295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296   (eval $ac_try) 2>&5
39297   ac_status=$?
39298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299   (exit $ac_status); }; }; then
39300   ac_cv_type_socklen_t=yes
39301 else
39302   echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39304
39305 ac_cv_type_socklen_t=no
39306 fi
39307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39308 fi
39309 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39310 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39311 if test $ac_cv_type_socklen_t = yes; then
39312   :
39313 else
39314
39315 cat >>confdefs.h <<_ACEOF
39316 #define socklen_t int
39317 _ACEOF
39318
39319 fi
39320
39321
39322 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39323 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39324 if test "${ac_cv_type_signal+set}" = set; then
39325   echo $ECHO_N "(cached) $ECHO_C" >&6
39326 else
39327   cat >conftest.$ac_ext <<_ACEOF
39328 /* confdefs.h.  */
39329 _ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h.  */
39333 #include <sys/types.h>
39334 #include <signal.h>
39335 #ifdef signal
39336 # undef signal
39337 #endif
39338 #ifdef __cplusplus
39339 extern "C" void (*signal (int, void (*)(int)))(int);
39340 #else
39341 void (*signal ()) ();
39342 #endif
39343
39344 int
39345 main ()
39346 {
39347 int i;
39348   ;
39349   return 0;
39350 }
39351 _ACEOF
39352 rm -f conftest.$ac_objext
39353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39354   (eval $ac_compile) 2>conftest.er1
39355   ac_status=$?
39356   grep -v '^ *+' conftest.er1 >conftest.err
39357   rm -f conftest.er1
39358   cat conftest.err >&5
39359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360   (exit $ac_status); } &&
39361          { ac_try='test -z "$ac_c_werror_flag"
39362                          || test ! -s conftest.err'
39363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39364   (eval $ac_try) 2>&5
39365   ac_status=$?
39366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39367   (exit $ac_status); }; } &&
39368          { ac_try='test -s conftest.$ac_objext'
39369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39370   (eval $ac_try) 2>&5
39371   ac_status=$?
39372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373   (exit $ac_status); }; }; then
39374   ac_cv_type_signal=void
39375 else
39376   echo "$as_me: failed program was:" >&5
39377 sed 's/^/| /' conftest.$ac_ext >&5
39378
39379 ac_cv_type_signal=int
39380 fi
39381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39382 fi
39383 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39384 echo "${ECHO_T}$ac_cv_type_signal" >&6
39385
39386 cat >>confdefs.h <<_ACEOF
39387 #define RETSIGTYPE $ac_cv_type_signal
39388 _ACEOF
39389
39390
39391
39392 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
39393 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
39394 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
39395   echo $ECHO_N "(cached) $ECHO_C" >&6
39396 else
39397   cat >conftest.$ac_ext <<_ACEOF
39398 /* confdefs.h.  */
39399 _ACEOF
39400 cat confdefs.h >>conftest.$ac_ext
39401 cat >>conftest.$ac_ext <<_ACEOF
39402 /* end confdefs.h.  */
39403 $ac_includes_default
39404 #include <signal.h>
39405
39406
39407 int
39408 main ()
39409 {
39410 if ((sig_atomic_t *) 0)
39411   return 0;
39412 if (sizeof (sig_atomic_t))
39413   return 0;
39414   ;
39415   return 0;
39416 }
39417 _ACEOF
39418 rm -f conftest.$ac_objext
39419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39420   (eval $ac_compile) 2>conftest.er1
39421   ac_status=$?
39422   grep -v '^ *+' conftest.er1 >conftest.err
39423   rm -f conftest.er1
39424   cat conftest.err >&5
39425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426   (exit $ac_status); } &&
39427          { ac_try='test -z "$ac_c_werror_flag"
39428                          || test ! -s conftest.err'
39429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39430   (eval $ac_try) 2>&5
39431   ac_status=$?
39432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433   (exit $ac_status); }; } &&
39434          { ac_try='test -s conftest.$ac_objext'
39435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39436   (eval $ac_try) 2>&5
39437   ac_status=$?
39438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439   (exit $ac_status); }; }; then
39440   ac_cv_type_sig_atomic_t=yes
39441 else
39442   echo "$as_me: failed program was:" >&5
39443 sed 's/^/| /' conftest.$ac_ext >&5
39444
39445 ac_cv_type_sig_atomic_t=no
39446 fi
39447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39448 fi
39449 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
39450 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
39451 if test $ac_cv_type_sig_atomic_t = yes; then
39452   :
39453 else
39454
39455 cat >>confdefs.h <<_ACEOF
39456 #define sig_atomic_t int
39457 _ACEOF
39458
39459 fi
39460
39461
39462 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39463 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39464 if test "${ac_cv_type_uid_t+set}" = set; then
39465   echo $ECHO_N "(cached) $ECHO_C" >&6
39466 else
39467   cat >conftest.$ac_ext <<_ACEOF
39468 /* confdefs.h.  */
39469 _ACEOF
39470 cat confdefs.h >>conftest.$ac_ext
39471 cat >>conftest.$ac_ext <<_ACEOF
39472 /* end confdefs.h.  */
39473 #include <sys/types.h>
39474
39475 _ACEOF
39476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39477   $EGREP "uid_t" >/dev/null 2>&1; then
39478   ac_cv_type_uid_t=yes
39479 else
39480   ac_cv_type_uid_t=no
39481 fi
39482 rm -f conftest*
39483
39484 fi
39485 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39486 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39487 if test $ac_cv_type_uid_t = no; then
39488
39489 cat >>confdefs.h <<\_ACEOF
39490 #define uid_t int
39491 _ACEOF
39492
39493
39494 cat >>confdefs.h <<\_ACEOF
39495 #define gid_t int
39496 _ACEOF
39497
39498 fi
39499
39500
39501 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
39502 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
39503 if test "${ac_cv_header_time+set}" = set; then
39504   echo $ECHO_N "(cached) $ECHO_C" >&6
39505 else
39506   cat >conftest.$ac_ext <<_ACEOF
39507 /* confdefs.h.  */
39508 _ACEOF
39509 cat confdefs.h >>conftest.$ac_ext
39510 cat >>conftest.$ac_ext <<_ACEOF
39511 /* end confdefs.h.  */
39512 #include <sys/types.h>
39513 #include <sys/time.h>
39514 #include <time.h>
39515
39516 int
39517 main ()
39518 {
39519 if ((struct tm *) 0)
39520 return 0;
39521   ;
39522   return 0;
39523 }
39524 _ACEOF
39525 rm -f conftest.$ac_objext
39526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39527   (eval $ac_compile) 2>conftest.er1
39528   ac_status=$?
39529   grep -v '^ *+' conftest.er1 >conftest.err
39530   rm -f conftest.er1
39531   cat conftest.err >&5
39532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533   (exit $ac_status); } &&
39534          { ac_try='test -z "$ac_c_werror_flag"
39535                          || test ! -s conftest.err'
39536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39537   (eval $ac_try) 2>&5
39538   ac_status=$?
39539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39540   (exit $ac_status); }; } &&
39541          { ac_try='test -s conftest.$ac_objext'
39542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39543   (eval $ac_try) 2>&5
39544   ac_status=$?
39545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546   (exit $ac_status); }; }; then
39547   ac_cv_header_time=yes
39548 else
39549   echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39551
39552 ac_cv_header_time=no
39553 fi
39554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39555 fi
39556 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
39557 echo "${ECHO_T}$ac_cv_header_time" >&6
39558 if test $ac_cv_header_time = yes; then
39559
39560 cat >>confdefs.h <<\_ACEOF
39561 #define TIME_WITH_SYS_TIME 1
39562 _ACEOF
39563
39564 fi
39565
39566 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39567 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39568 if test "${ac_cv_struct_tm+set}" = set; then
39569   echo $ECHO_N "(cached) $ECHO_C" >&6
39570 else
39571   cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h.  */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h.  */
39577 #include <sys/types.h>
39578 #include <time.h>
39579
39580 int
39581 main ()
39582 {
39583 struct tm *tp; tp->tm_sec;
39584   ;
39585   return 0;
39586 }
39587 _ACEOF
39588 rm -f conftest.$ac_objext
39589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39590   (eval $ac_compile) 2>conftest.er1
39591   ac_status=$?
39592   grep -v '^ *+' conftest.er1 >conftest.err
39593   rm -f conftest.er1
39594   cat conftest.err >&5
39595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596   (exit $ac_status); } &&
39597          { ac_try='test -z "$ac_c_werror_flag"
39598                          || test ! -s conftest.err'
39599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600   (eval $ac_try) 2>&5
39601   ac_status=$?
39602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603   (exit $ac_status); }; } &&
39604          { ac_try='test -s conftest.$ac_objext'
39605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606   (eval $ac_try) 2>&5
39607   ac_status=$?
39608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609   (exit $ac_status); }; }; then
39610   ac_cv_struct_tm=time.h
39611 else
39612   echo "$as_me: failed program was:" >&5
39613 sed 's/^/| /' conftest.$ac_ext >&5
39614
39615 ac_cv_struct_tm=sys/time.h
39616 fi
39617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39618 fi
39619 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39620 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39621 if test $ac_cv_struct_tm = sys/time.h; then
39622
39623 cat >>confdefs.h <<\_ACEOF
39624 #define TM_IN_SYS_TIME 1
39625 _ACEOF
39626
39627 fi
39628
39629 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
39630 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
39631 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
39632   echo $ECHO_N "(cached) $ECHO_C" >&6
39633 else
39634   cat >conftest.$ac_ext <<_ACEOF
39635 /* confdefs.h.  */
39636 _ACEOF
39637 cat confdefs.h >>conftest.$ac_ext
39638 cat >>conftest.$ac_ext <<_ACEOF
39639 /* end confdefs.h.  */
39640 $ac_includes_default
39641 int
39642 main ()
39643 {
39644 static struct stat ac_aggr;
39645 if (ac_aggr.st_blksize)
39646 return 0;
39647   ;
39648   return 0;
39649 }
39650 _ACEOF
39651 rm -f conftest.$ac_objext
39652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39653   (eval $ac_compile) 2>conftest.er1
39654   ac_status=$?
39655   grep -v '^ *+' conftest.er1 >conftest.err
39656   rm -f conftest.er1
39657   cat conftest.err >&5
39658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659   (exit $ac_status); } &&
39660          { ac_try='test -z "$ac_c_werror_flag"
39661                          || test ! -s conftest.err'
39662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663   (eval $ac_try) 2>&5
39664   ac_status=$?
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); }; } &&
39667          { ac_try='test -s conftest.$ac_objext'
39668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669   (eval $ac_try) 2>&5
39670   ac_status=$?
39671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672   (exit $ac_status); }; }; then
39673   ac_cv_member_struct_stat_st_blksize=yes
39674 else
39675   echo "$as_me: failed program was:" >&5
39676 sed 's/^/| /' conftest.$ac_ext >&5
39677
39678 cat >conftest.$ac_ext <<_ACEOF
39679 /* confdefs.h.  */
39680 _ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h.  */
39684 $ac_includes_default
39685 int
39686 main ()
39687 {
39688 static struct stat ac_aggr;
39689 if (sizeof ac_aggr.st_blksize)
39690 return 0;
39691   ;
39692   return 0;
39693 }
39694 _ACEOF
39695 rm -f conftest.$ac_objext
39696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39697   (eval $ac_compile) 2>conftest.er1
39698   ac_status=$?
39699   grep -v '^ *+' conftest.er1 >conftest.err
39700   rm -f conftest.er1
39701   cat conftest.err >&5
39702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703   (exit $ac_status); } &&
39704          { ac_try='test -z "$ac_c_werror_flag"
39705                          || test ! -s conftest.err'
39706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39707   (eval $ac_try) 2>&5
39708   ac_status=$?
39709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710   (exit $ac_status); }; } &&
39711          { ac_try='test -s conftest.$ac_objext'
39712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39713   (eval $ac_try) 2>&5
39714   ac_status=$?
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); }; }; then
39717   ac_cv_member_struct_stat_st_blksize=yes
39718 else
39719   echo "$as_me: failed program was:" >&5
39720 sed 's/^/| /' conftest.$ac_ext >&5
39721
39722 ac_cv_member_struct_stat_st_blksize=no
39723 fi
39724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39725 fi
39726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39727 fi
39728 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
39729 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
39730 if test $ac_cv_member_struct_stat_st_blksize = yes; then
39731
39732 cat >>confdefs.h <<_ACEOF
39733 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
39734 _ACEOF
39735
39736
39737 fi
39738
39739 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
39740 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
39741 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
39742   echo $ECHO_N "(cached) $ECHO_C" >&6
39743 else
39744   cat >conftest.$ac_ext <<_ACEOF
39745 /* confdefs.h.  */
39746 _ACEOF
39747 cat confdefs.h >>conftest.$ac_ext
39748 cat >>conftest.$ac_ext <<_ACEOF
39749 /* end confdefs.h.  */
39750 $ac_includes_default
39751 #include <pwd.h>
39752
39753 int
39754 main ()
39755 {
39756 static struct passwd ac_aggr;
39757 if (ac_aggr.pw_gecos)
39758 return 0;
39759   ;
39760   return 0;
39761 }
39762 _ACEOF
39763 rm -f conftest.$ac_objext
39764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39765   (eval $ac_compile) 2>conftest.er1
39766   ac_status=$?
39767   grep -v '^ *+' conftest.er1 >conftest.err
39768   rm -f conftest.er1
39769   cat conftest.err >&5
39770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771   (exit $ac_status); } &&
39772          { ac_try='test -z "$ac_c_werror_flag"
39773                          || test ! -s conftest.err'
39774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39775   (eval $ac_try) 2>&5
39776   ac_status=$?
39777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778   (exit $ac_status); }; } &&
39779          { ac_try='test -s conftest.$ac_objext'
39780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39781   (eval $ac_try) 2>&5
39782   ac_status=$?
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); }; }; then
39785   ac_cv_member_struct_passwd_pw_gecos=yes
39786 else
39787   echo "$as_me: failed program was:" >&5
39788 sed 's/^/| /' conftest.$ac_ext >&5
39789
39790 cat >conftest.$ac_ext <<_ACEOF
39791 /* confdefs.h.  */
39792 _ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h.  */
39796 $ac_includes_default
39797 #include <pwd.h>
39798
39799 int
39800 main ()
39801 {
39802 static struct passwd ac_aggr;
39803 if (sizeof ac_aggr.pw_gecos)
39804 return 0;
39805   ;
39806   return 0;
39807 }
39808 _ACEOF
39809 rm -f conftest.$ac_objext
39810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39811   (eval $ac_compile) 2>conftest.er1
39812   ac_status=$?
39813   grep -v '^ *+' conftest.er1 >conftest.err
39814   rm -f conftest.er1
39815   cat conftest.err >&5
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); } &&
39818          { ac_try='test -z "$ac_c_werror_flag"
39819                          || test ! -s conftest.err'
39820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821   (eval $ac_try) 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); }; } &&
39825          { ac_try='test -s conftest.$ac_objext'
39826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39827   (eval $ac_try) 2>&5
39828   ac_status=$?
39829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830   (exit $ac_status); }; }; then
39831   ac_cv_member_struct_passwd_pw_gecos=yes
39832 else
39833   echo "$as_me: failed program was:" >&5
39834 sed 's/^/| /' conftest.$ac_ext >&5
39835
39836 ac_cv_member_struct_passwd_pw_gecos=no
39837 fi
39838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39839 fi
39840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39841 fi
39842 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
39843 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
39844 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
39845
39846 cat >>confdefs.h <<_ACEOF
39847 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
39848 _ACEOF
39849
39850
39851 fi
39852
39853 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
39854 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
39855 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
39856   echo $ECHO_N "(cached) $ECHO_C" >&6
39857 else
39858   cat >conftest.$ac_ext <<_ACEOF
39859 /* confdefs.h.  */
39860 _ACEOF
39861 cat confdefs.h >>conftest.$ac_ext
39862 cat >>conftest.$ac_ext <<_ACEOF
39863 /* end confdefs.h.  */
39864 $ac_includes_default
39865 #include <pwd.h>
39866
39867 int
39868 main ()
39869 {
39870 static struct passwd ac_aggr;
39871 if (ac_aggr.pw_passwd)
39872 return 0;
39873   ;
39874   return 0;
39875 }
39876 _ACEOF
39877 rm -f conftest.$ac_objext
39878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39879   (eval $ac_compile) 2>conftest.er1
39880   ac_status=$?
39881   grep -v '^ *+' conftest.er1 >conftest.err
39882   rm -f conftest.er1
39883   cat conftest.err >&5
39884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39885   (exit $ac_status); } &&
39886          { ac_try='test -z "$ac_c_werror_flag"
39887                          || test ! -s conftest.err'
39888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39889   (eval $ac_try) 2>&5
39890   ac_status=$?
39891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892   (exit $ac_status); }; } &&
39893          { ac_try='test -s conftest.$ac_objext'
39894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39895   (eval $ac_try) 2>&5
39896   ac_status=$?
39897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898   (exit $ac_status); }; }; then
39899   ac_cv_member_struct_passwd_pw_passwd=yes
39900 else
39901   echo "$as_me: failed program was:" >&5
39902 sed 's/^/| /' conftest.$ac_ext >&5
39903
39904 cat >conftest.$ac_ext <<_ACEOF
39905 /* confdefs.h.  */
39906 _ACEOF
39907 cat confdefs.h >>conftest.$ac_ext
39908 cat >>conftest.$ac_ext <<_ACEOF
39909 /* end confdefs.h.  */
39910 $ac_includes_default
39911 #include <pwd.h>
39912
39913 int
39914 main ()
39915 {
39916 static struct passwd ac_aggr;
39917 if (sizeof ac_aggr.pw_passwd)
39918 return 0;
39919   ;
39920   return 0;
39921 }
39922 _ACEOF
39923 rm -f conftest.$ac_objext
39924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39925   (eval $ac_compile) 2>conftest.er1
39926   ac_status=$?
39927   grep -v '^ *+' conftest.er1 >conftest.err
39928   rm -f conftest.er1
39929   cat conftest.err >&5
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); } &&
39932          { ac_try='test -z "$ac_c_werror_flag"
39933                          || test ! -s conftest.err'
39934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935   (eval $ac_try) 2>&5
39936   ac_status=$?
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); }; } &&
39939          { ac_try='test -s conftest.$ac_objext'
39940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941   (eval $ac_try) 2>&5
39942   ac_status=$?
39943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944   (exit $ac_status); }; }; then
39945   ac_cv_member_struct_passwd_pw_passwd=yes
39946 else
39947   echo "$as_me: failed program was:" >&5
39948 sed 's/^/| /' conftest.$ac_ext >&5
39949
39950 ac_cv_member_struct_passwd_pw_passwd=no
39951 fi
39952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39953 fi
39954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39955 fi
39956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
39957 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
39958 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
39959
39960 cat >>confdefs.h <<_ACEOF
39961 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
39962 _ACEOF
39963
39964
39965 fi
39966
39967
39968 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
39969 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
39970 if test "${ol_cv_c_upper_lower+set}" = set; then
39971   echo $ECHO_N "(cached) $ECHO_C" >&6
39972 else
39973
39974         if test "$cross_compiling" = yes; then
39975   ol_cv_c_upper_lower=safe
39976 else
39977   cat >conftest.$ac_ext <<_ACEOF
39978 /* confdefs.h.  */
39979 _ACEOF
39980 cat confdefs.h >>conftest.$ac_ext
39981 cat >>conftest.$ac_ext <<_ACEOF
39982 /* end confdefs.h.  */
39983
39984 #include <ctype.h>
39985 main()
39986 {
39987         if ('C' == toupper('C'))
39988                 exit(0);
39989         else
39990                 exit(1);
39991 }
39992 _ACEOF
39993 rm -f conftest$ac_exeext
39994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39995   (eval $ac_link) 2>&5
39996   ac_status=$?
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40000   (eval $ac_try) 2>&5
40001   ac_status=$?
40002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003   (exit $ac_status); }; }; then
40004   ol_cv_c_upper_lower=no
40005 else
40006   echo "$as_me: program exited with status $ac_status" >&5
40007 echo "$as_me: failed program was:" >&5
40008 sed 's/^/| /' conftest.$ac_ext >&5
40009
40010 ( exit $ac_status )
40011 ol_cv_c_upper_lower=yes
40012 fi
40013 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40014 fi
40015 fi
40016 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
40017 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
40018 if test $ol_cv_c_upper_lower != no ; then
40019
40020 cat >>confdefs.h <<\_ACEOF
40021 #define C_UPPER_LOWER 1
40022 _ACEOF
40023
40024 fi
40025
40026 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40027 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
40028 if test "${ac_cv_c_const+set}" = set; then
40029   echo $ECHO_N "(cached) $ECHO_C" >&6
40030 else
40031   cat >conftest.$ac_ext <<_ACEOF
40032 /* confdefs.h.  */
40033 _ACEOF
40034 cat confdefs.h >>conftest.$ac_ext
40035 cat >>conftest.$ac_ext <<_ACEOF
40036 /* end confdefs.h.  */
40037
40038 int
40039 main ()
40040 {
40041 /* FIXME: Include the comments suggested by Paul. */
40042 #ifndef __cplusplus
40043   /* Ultrix mips cc rejects this.  */
40044   typedef int charset[2];
40045   const charset x;
40046   /* SunOS 4.1.1 cc rejects this.  */
40047   char const *const *ccp;
40048   char **p;
40049   /* NEC SVR4.0.2 mips cc rejects this.  */
40050   struct point {int x, y;};
40051   static struct point const zero = {0,0};
40052   /* AIX XL C 1.02.0.0 rejects this.
40053      It does not let you subtract one const X* pointer from another in
40054      an arm of an if-expression whose if-part is not a constant
40055      expression */
40056   const char *g = "string";
40057   ccp = &g + (g ? g-g : 0);
40058   /* HPUX 7.0 cc rejects these. */
40059   ++ccp;
40060   p = (char**) ccp;
40061   ccp = (char const *const *) p;
40062   { /* SCO 3.2v4 cc rejects this.  */
40063     char *t;
40064     char const *s = 0 ? (char *) 0 : (char const *) 0;
40065
40066     *t++ = 0;
40067   }
40068   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
40069     int x[] = {25, 17};
40070     const int *foo = &x[0];
40071     ++foo;
40072   }
40073   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
40074     typedef const int *iptr;
40075     iptr p = 0;
40076     ++p;
40077   }
40078   { /* AIX XL C 1.02.0.0 rejects this saying
40079        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
40080     struct s { int j; const int *ap[3]; };
40081     struct s *b; b->j = 5;
40082   }
40083   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
40084     const int foo = 10;
40085   }
40086 #endif
40087
40088   ;
40089   return 0;
40090 }
40091 _ACEOF
40092 rm -f conftest.$ac_objext
40093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40094   (eval $ac_compile) 2>conftest.er1
40095   ac_status=$?
40096   grep -v '^ *+' conftest.er1 >conftest.err
40097   rm -f conftest.er1
40098   cat conftest.err >&5
40099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100   (exit $ac_status); } &&
40101          { ac_try='test -z "$ac_c_werror_flag"
40102                          || test ! -s conftest.err'
40103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40104   (eval $ac_try) 2>&5
40105   ac_status=$?
40106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107   (exit $ac_status); }; } &&
40108          { ac_try='test -s conftest.$ac_objext'
40109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110   (eval $ac_try) 2>&5
40111   ac_status=$?
40112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113   (exit $ac_status); }; }; then
40114   ac_cv_c_const=yes
40115 else
40116   echo "$as_me: failed program was:" >&5
40117 sed 's/^/| /' conftest.$ac_ext >&5
40118
40119 ac_cv_c_const=no
40120 fi
40121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40122 fi
40123 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40124 echo "${ECHO_T}$ac_cv_c_const" >&6
40125 if test $ac_cv_c_const = no; then
40126
40127 cat >>confdefs.h <<\_ACEOF
40128 #define const
40129 _ACEOF
40130
40131 fi
40132
40133 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
40134 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
40135 if test "${ol_cv_c_volatile+set}" = set; then
40136   echo $ECHO_N "(cached) $ECHO_C" >&6
40137 else
40138   cat >conftest.$ac_ext <<_ACEOF
40139 /* confdefs.h.  */
40140 _ACEOF
40141 cat confdefs.h >>conftest.$ac_ext
40142 cat >>conftest.$ac_ext <<_ACEOF
40143 /* end confdefs.h.  */
40144 int x, y, z;
40145 int
40146 main ()
40147 {
40148 volatile int a; int * volatile b = x ? &y : &z;
40149       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
40150       *b = 0;
40151   ;
40152   return 0;
40153 }
40154 _ACEOF
40155 rm -f conftest.$ac_objext
40156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40157   (eval $ac_compile) 2>conftest.er1
40158   ac_status=$?
40159   grep -v '^ *+' conftest.er1 >conftest.err
40160   rm -f conftest.er1
40161   cat conftest.err >&5
40162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163   (exit $ac_status); } &&
40164          { ac_try='test -z "$ac_c_werror_flag"
40165                          || test ! -s conftest.err'
40166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40167   (eval $ac_try) 2>&5
40168   ac_status=$?
40169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40170   (exit $ac_status); }; } &&
40171          { ac_try='test -s conftest.$ac_objext'
40172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40173   (eval $ac_try) 2>&5
40174   ac_status=$?
40175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); }; }; then
40177   ol_cv_c_volatile=yes
40178 else
40179   echo "$as_me: failed program was:" >&5
40180 sed 's/^/| /' conftest.$ac_ext >&5
40181
40182 ol_cv_c_volatile=no
40183 fi
40184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40185 fi
40186 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
40187 echo "${ECHO_T}$ol_cv_c_volatile" >&6
40188   if test $ol_cv_c_volatile = yes; then
40189     :
40190   else
40191
40192 cat >>confdefs.h <<\_ACEOF
40193 #define volatile
40194 _ACEOF
40195
40196   fi
40197
40198
40199 if test $cross_compiling = yes ; then
40200         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
40201 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
40202
40203 cat >>confdefs.h <<\_ACEOF
40204 #define CROSS_COMPILING 1
40205 _ACEOF
40206
40207 else
40208         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
40209 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
40210 if test "${ac_cv_c_bigendian+set}" = set; then
40211   echo $ECHO_N "(cached) $ECHO_C" >&6
40212 else
40213   # See if sys/param.h defines the BYTE_ORDER macro.
40214 cat >conftest.$ac_ext <<_ACEOF
40215 /* confdefs.h.  */
40216 _ACEOF
40217 cat confdefs.h >>conftest.$ac_ext
40218 cat >>conftest.$ac_ext <<_ACEOF
40219 /* end confdefs.h.  */
40220 #include <sys/types.h>
40221 #include <sys/param.h>
40222
40223 int
40224 main ()
40225 {
40226 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
40227  bogus endian macros
40228 #endif
40229
40230   ;
40231   return 0;
40232 }
40233 _ACEOF
40234 rm -f conftest.$ac_objext
40235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40236   (eval $ac_compile) 2>conftest.er1
40237   ac_status=$?
40238   grep -v '^ *+' conftest.er1 >conftest.err
40239   rm -f conftest.er1
40240   cat conftest.err >&5
40241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242   (exit $ac_status); } &&
40243          { ac_try='test -z "$ac_c_werror_flag"
40244                          || test ! -s conftest.err'
40245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40246   (eval $ac_try) 2>&5
40247   ac_status=$?
40248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249   (exit $ac_status); }; } &&
40250          { ac_try='test -s conftest.$ac_objext'
40251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252   (eval $ac_try) 2>&5
40253   ac_status=$?
40254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255   (exit $ac_status); }; }; then
40256   # It does; now see whether it defined to BIG_ENDIAN or not.
40257 cat >conftest.$ac_ext <<_ACEOF
40258 /* confdefs.h.  */
40259 _ACEOF
40260 cat confdefs.h >>conftest.$ac_ext
40261 cat >>conftest.$ac_ext <<_ACEOF
40262 /* end confdefs.h.  */
40263 #include <sys/types.h>
40264 #include <sys/param.h>
40265
40266 int
40267 main ()
40268 {
40269 #if BYTE_ORDER != BIG_ENDIAN
40270  not big endian
40271 #endif
40272
40273   ;
40274   return 0;
40275 }
40276 _ACEOF
40277 rm -f conftest.$ac_objext
40278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40279   (eval $ac_compile) 2>conftest.er1
40280   ac_status=$?
40281   grep -v '^ *+' conftest.er1 >conftest.err
40282   rm -f conftest.er1
40283   cat conftest.err >&5
40284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40285   (exit $ac_status); } &&
40286          { ac_try='test -z "$ac_c_werror_flag"
40287                          || test ! -s conftest.err'
40288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40289   (eval $ac_try) 2>&5
40290   ac_status=$?
40291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292   (exit $ac_status); }; } &&
40293          { ac_try='test -s conftest.$ac_objext'
40294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40295   (eval $ac_try) 2>&5
40296   ac_status=$?
40297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298   (exit $ac_status); }; }; then
40299   ac_cv_c_bigendian=yes
40300 else
40301   echo "$as_me: failed program was:" >&5
40302 sed 's/^/| /' conftest.$ac_ext >&5
40303
40304 ac_cv_c_bigendian=no
40305 fi
40306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40307 else
40308   echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40310
40311 # It does not; compile a test program.
40312 if test "$cross_compiling" = yes; then
40313   # try to guess the endianness by grepping values into an object file
40314   ac_cv_c_bigendian=unknown
40315   cat >conftest.$ac_ext <<_ACEOF
40316 /* confdefs.h.  */
40317 _ACEOF
40318 cat confdefs.h >>conftest.$ac_ext
40319 cat >>conftest.$ac_ext <<_ACEOF
40320 /* end confdefs.h.  */
40321 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
40322 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
40323 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
40324 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
40325 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
40326 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
40327 int
40328 main ()
40329 {
40330  _ascii (); _ebcdic ();
40331   ;
40332   return 0;
40333 }
40334 _ACEOF
40335 rm -f conftest.$ac_objext
40336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40337   (eval $ac_compile) 2>conftest.er1
40338   ac_status=$?
40339   grep -v '^ *+' conftest.er1 >conftest.err
40340   rm -f conftest.er1
40341   cat conftest.err >&5
40342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343   (exit $ac_status); } &&
40344          { ac_try='test -z "$ac_c_werror_flag"
40345                          || test ! -s conftest.err'
40346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40347   (eval $ac_try) 2>&5
40348   ac_status=$?
40349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40350   (exit $ac_status); }; } &&
40351          { ac_try='test -s conftest.$ac_objext'
40352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40353   (eval $ac_try) 2>&5
40354   ac_status=$?
40355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356   (exit $ac_status); }; }; then
40357   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
40358   ac_cv_c_bigendian=yes
40359 fi
40360 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
40361   if test "$ac_cv_c_bigendian" = unknown; then
40362     ac_cv_c_bigendian=no
40363   else
40364     # finding both strings is unlikely to happen, but who knows?
40365     ac_cv_c_bigendian=unknown
40366   fi
40367 fi
40368 else
40369   echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 fi
40373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40374 else
40375   cat >conftest.$ac_ext <<_ACEOF
40376 /* confdefs.h.  */
40377 _ACEOF
40378 cat confdefs.h >>conftest.$ac_ext
40379 cat >>conftest.$ac_ext <<_ACEOF
40380 /* end confdefs.h.  */
40381 int
40382 main ()
40383 {
40384   /* Are we little or big endian?  From Harbison&Steele.  */
40385   union
40386   {
40387     long l;
40388     char c[sizeof (long)];
40389   } u;
40390   u.l = 1;
40391   exit (u.c[sizeof (long) - 1] == 1);
40392 }
40393 _ACEOF
40394 rm -f conftest$ac_exeext
40395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40396   (eval $ac_link) 2>&5
40397   ac_status=$?
40398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40401   (eval $ac_try) 2>&5
40402   ac_status=$?
40403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404   (exit $ac_status); }; }; then
40405   ac_cv_c_bigendian=no
40406 else
40407   echo "$as_me: program exited with status $ac_status" >&5
40408 echo "$as_me: failed program was:" >&5
40409 sed 's/^/| /' conftest.$ac_ext >&5
40410
40411 ( exit $ac_status )
40412 ac_cv_c_bigendian=yes
40413 fi
40414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40415 fi
40416 fi
40417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40418 fi
40419 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
40420 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
40421 case $ac_cv_c_bigendian in
40422   yes)
40423
40424 cat >>confdefs.h <<\_ACEOF
40425 #define WORDS_BIGENDIAN 1
40426 _ACEOF
40427  ;;
40428   no)
40429      ;;
40430   *)
40431     { { echo "$as_me:$LINENO: error: unknown endianness
40432 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
40433 echo "$as_me: error: unknown endianness
40434 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
40435    { (exit 1); exit 1; }; } ;;
40436 esac
40437
40438 fi
40439
40440 echo "$as_me:$LINENO: checking for short" >&5
40441 echo $ECHO_N "checking for short... $ECHO_C" >&6
40442 if test "${ac_cv_type_short+set}" = set; then
40443   echo $ECHO_N "(cached) $ECHO_C" >&6
40444 else
40445   cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h.  */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h.  */
40451 $ac_includes_default
40452 int
40453 main ()
40454 {
40455 if ((short *) 0)
40456   return 0;
40457 if (sizeof (short))
40458   return 0;
40459   ;
40460   return 0;
40461 }
40462 _ACEOF
40463 rm -f conftest.$ac_objext
40464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40465   (eval $ac_compile) 2>conftest.er1
40466   ac_status=$?
40467   grep -v '^ *+' conftest.er1 >conftest.err
40468   rm -f conftest.er1
40469   cat conftest.err >&5
40470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471   (exit $ac_status); } &&
40472          { ac_try='test -z "$ac_c_werror_flag"
40473                          || test ! -s conftest.err'
40474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40475   (eval $ac_try) 2>&5
40476   ac_status=$?
40477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40478   (exit $ac_status); }; } &&
40479          { ac_try='test -s conftest.$ac_objext'
40480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40481   (eval $ac_try) 2>&5
40482   ac_status=$?
40483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40484   (exit $ac_status); }; }; then
40485   ac_cv_type_short=yes
40486 else
40487   echo "$as_me: failed program was:" >&5
40488 sed 's/^/| /' conftest.$ac_ext >&5
40489
40490 ac_cv_type_short=no
40491 fi
40492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40493 fi
40494 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
40495 echo "${ECHO_T}$ac_cv_type_short" >&6
40496
40497 echo "$as_me:$LINENO: checking size of short" >&5
40498 echo $ECHO_N "checking size of short... $ECHO_C" >&6
40499 if test "${ac_cv_sizeof_short+set}" = set; then
40500   echo $ECHO_N "(cached) $ECHO_C" >&6
40501 else
40502   if test "$ac_cv_type_short" = yes; then
40503   # The cast to unsigned long works around a bug in the HP C Compiler
40504   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40505   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40506   # This bug is HP SR number 8606223364.
40507   if test "$cross_compiling" = yes; then
40508   # Depending upon the size, compute the lo and hi bounds.
40509 cat >conftest.$ac_ext <<_ACEOF
40510 /* confdefs.h.  */
40511 _ACEOF
40512 cat confdefs.h >>conftest.$ac_ext
40513 cat >>conftest.$ac_ext <<_ACEOF
40514 /* end confdefs.h.  */
40515 $ac_includes_default
40516 int
40517 main ()
40518 {
40519 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
40520 test_array [0] = 0
40521
40522   ;
40523   return 0;
40524 }
40525 _ACEOF
40526 rm -f conftest.$ac_objext
40527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40528   (eval $ac_compile) 2>conftest.er1
40529   ac_status=$?
40530   grep -v '^ *+' conftest.er1 >conftest.err
40531   rm -f conftest.er1
40532   cat conftest.err >&5
40533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40534   (exit $ac_status); } &&
40535          { ac_try='test -z "$ac_c_werror_flag"
40536                          || test ! -s conftest.err'
40537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40538   (eval $ac_try) 2>&5
40539   ac_status=$?
40540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40541   (exit $ac_status); }; } &&
40542          { ac_try='test -s conftest.$ac_objext'
40543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40544   (eval $ac_try) 2>&5
40545   ac_status=$?
40546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547   (exit $ac_status); }; }; then
40548   ac_lo=0 ac_mid=0
40549   while :; do
40550     cat >conftest.$ac_ext <<_ACEOF
40551 /* confdefs.h.  */
40552 _ACEOF
40553 cat confdefs.h >>conftest.$ac_ext
40554 cat >>conftest.$ac_ext <<_ACEOF
40555 /* end confdefs.h.  */
40556 $ac_includes_default
40557 int
40558 main ()
40559 {
40560 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40561 test_array [0] = 0
40562
40563   ;
40564   return 0;
40565 }
40566 _ACEOF
40567 rm -f conftest.$ac_objext
40568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40569   (eval $ac_compile) 2>conftest.er1
40570   ac_status=$?
40571   grep -v '^ *+' conftest.er1 >conftest.err
40572   rm -f conftest.er1
40573   cat conftest.err >&5
40574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); } &&
40576          { ac_try='test -z "$ac_c_werror_flag"
40577                          || test ! -s conftest.err'
40578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40579   (eval $ac_try) 2>&5
40580   ac_status=$?
40581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40582   (exit $ac_status); }; } &&
40583          { ac_try='test -s conftest.$ac_objext'
40584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40585   (eval $ac_try) 2>&5
40586   ac_status=$?
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); }; }; then
40589   ac_hi=$ac_mid; break
40590 else
40591   echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40593
40594 ac_lo=`expr $ac_mid + 1`
40595                     if test $ac_lo -le $ac_mid; then
40596                       ac_lo= ac_hi=
40597                       break
40598                     fi
40599                     ac_mid=`expr 2 '*' $ac_mid + 1`
40600 fi
40601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40602   done
40603 else
40604   echo "$as_me: failed program was:" >&5
40605 sed 's/^/| /' conftest.$ac_ext >&5
40606
40607 cat >conftest.$ac_ext <<_ACEOF
40608 /* confdefs.h.  */
40609 _ACEOF
40610 cat confdefs.h >>conftest.$ac_ext
40611 cat >>conftest.$ac_ext <<_ACEOF
40612 /* end confdefs.h.  */
40613 $ac_includes_default
40614 int
40615 main ()
40616 {
40617 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
40618 test_array [0] = 0
40619
40620   ;
40621   return 0;
40622 }
40623 _ACEOF
40624 rm -f conftest.$ac_objext
40625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40626   (eval $ac_compile) 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } &&
40633          { ac_try='test -z "$ac_c_werror_flag"
40634                          || test ! -s conftest.err'
40635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636   (eval $ac_try) 2>&5
40637   ac_status=$?
40638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639   (exit $ac_status); }; } &&
40640          { ac_try='test -s conftest.$ac_objext'
40641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40642   (eval $ac_try) 2>&5
40643   ac_status=$?
40644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40645   (exit $ac_status); }; }; then
40646   ac_hi=-1 ac_mid=-1
40647   while :; do
40648     cat >conftest.$ac_ext <<_ACEOF
40649 /* confdefs.h.  */
40650 _ACEOF
40651 cat confdefs.h >>conftest.$ac_ext
40652 cat >>conftest.$ac_ext <<_ACEOF
40653 /* end confdefs.h.  */
40654 $ac_includes_default
40655 int
40656 main ()
40657 {
40658 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
40659 test_array [0] = 0
40660
40661   ;
40662   return 0;
40663 }
40664 _ACEOF
40665 rm -f conftest.$ac_objext
40666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40667   (eval $ac_compile) 2>conftest.er1
40668   ac_status=$?
40669   grep -v '^ *+' conftest.er1 >conftest.err
40670   rm -f conftest.er1
40671   cat conftest.err >&5
40672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673   (exit $ac_status); } &&
40674          { ac_try='test -z "$ac_c_werror_flag"
40675                          || test ! -s conftest.err'
40676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40677   (eval $ac_try) 2>&5
40678   ac_status=$?
40679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40680   (exit $ac_status); }; } &&
40681          { ac_try='test -s conftest.$ac_objext'
40682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40683   (eval $ac_try) 2>&5
40684   ac_status=$?
40685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40686   (exit $ac_status); }; }; then
40687   ac_lo=$ac_mid; break
40688 else
40689   echo "$as_me: failed program was:" >&5
40690 sed 's/^/| /' conftest.$ac_ext >&5
40691
40692 ac_hi=`expr '(' $ac_mid ')' - 1`
40693                        if test $ac_mid -le $ac_hi; then
40694                          ac_lo= ac_hi=
40695                          break
40696                        fi
40697                        ac_mid=`expr 2 '*' $ac_mid`
40698 fi
40699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40700   done
40701 else
40702   echo "$as_me: failed program was:" >&5
40703 sed 's/^/| /' conftest.$ac_ext >&5
40704
40705 ac_lo= ac_hi=
40706 fi
40707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40708 fi
40709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40710 # Binary search between lo and hi bounds.
40711 while test "x$ac_lo" != "x$ac_hi"; do
40712   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40713   cat >conftest.$ac_ext <<_ACEOF
40714 /* confdefs.h.  */
40715 _ACEOF
40716 cat confdefs.h >>conftest.$ac_ext
40717 cat >>conftest.$ac_ext <<_ACEOF
40718 /* end confdefs.h.  */
40719 $ac_includes_default
40720 int
40721 main ()
40722 {
40723 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
40724 test_array [0] = 0
40725
40726   ;
40727   return 0;
40728 }
40729 _ACEOF
40730 rm -f conftest.$ac_objext
40731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40732   (eval $ac_compile) 2>conftest.er1
40733   ac_status=$?
40734   grep -v '^ *+' conftest.er1 >conftest.err
40735   rm -f conftest.er1
40736   cat conftest.err >&5
40737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40738   (exit $ac_status); } &&
40739          { ac_try='test -z "$ac_c_werror_flag"
40740                          || test ! -s conftest.err'
40741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40742   (eval $ac_try) 2>&5
40743   ac_status=$?
40744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40745   (exit $ac_status); }; } &&
40746          { ac_try='test -s conftest.$ac_objext'
40747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40748   (eval $ac_try) 2>&5
40749   ac_status=$?
40750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40751   (exit $ac_status); }; }; then
40752   ac_hi=$ac_mid
40753 else
40754   echo "$as_me: failed program was:" >&5
40755 sed 's/^/| /' conftest.$ac_ext >&5
40756
40757 ac_lo=`expr '(' $ac_mid ')' + 1`
40758 fi
40759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40760 done
40761 case $ac_lo in
40762 ?*) ac_cv_sizeof_short=$ac_lo;;
40763 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40764 See \`config.log' for more details." >&5
40765 echo "$as_me: error: cannot compute sizeof (short), 77
40766 See \`config.log' for more details." >&2;}
40767    { (exit 1); exit 1; }; } ;;
40768 esac
40769 else
40770   if test "$cross_compiling" = yes; then
40771   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40772 See \`config.log' for more details." >&5
40773 echo "$as_me: error: cannot run test program while cross compiling
40774 See \`config.log' for more details." >&2;}
40775    { (exit 1); exit 1; }; }
40776 else
40777   cat >conftest.$ac_ext <<_ACEOF
40778 /* confdefs.h.  */
40779 _ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h.  */
40783 $ac_includes_default
40784 long longval () { return (long) (sizeof (short)); }
40785 unsigned long ulongval () { return (long) (sizeof (short)); }
40786 #include <stdio.h>
40787 #include <stdlib.h>
40788 int
40789 main ()
40790 {
40791
40792   FILE *f = fopen ("conftest.val", "w");
40793   if (! f)
40794     exit (1);
40795   if (((long) (sizeof (short))) < 0)
40796     {
40797       long i = longval ();
40798       if (i != ((long) (sizeof (short))))
40799         exit (1);
40800       fprintf (f, "%ld\n", i);
40801     }
40802   else
40803     {
40804       unsigned long i = ulongval ();
40805       if (i != ((long) (sizeof (short))))
40806         exit (1);
40807       fprintf (f, "%lu\n", i);
40808     }
40809   exit (ferror (f) || fclose (f) != 0);
40810
40811   ;
40812   return 0;
40813 }
40814 _ACEOF
40815 rm -f conftest$ac_exeext
40816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40817   (eval $ac_link) 2>&5
40818   ac_status=$?
40819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40822   (eval $ac_try) 2>&5
40823   ac_status=$?
40824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40825   (exit $ac_status); }; }; then
40826   ac_cv_sizeof_short=`cat conftest.val`
40827 else
40828   echo "$as_me: program exited with status $ac_status" >&5
40829 echo "$as_me: failed program was:" >&5
40830 sed 's/^/| /' conftest.$ac_ext >&5
40831
40832 ( exit $ac_status )
40833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
40834 See \`config.log' for more details." >&5
40835 echo "$as_me: error: cannot compute sizeof (short), 77
40836 See \`config.log' for more details." >&2;}
40837    { (exit 1); exit 1; }; }
40838 fi
40839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40840 fi
40841 fi
40842 rm -f conftest.val
40843 else
40844   ac_cv_sizeof_short=0
40845 fi
40846 fi
40847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
40848 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
40849 cat >>confdefs.h <<_ACEOF
40850 #define SIZEOF_SHORT $ac_cv_sizeof_short
40851 _ACEOF
40852
40853
40854 echo "$as_me:$LINENO: checking for int" >&5
40855 echo $ECHO_N "checking for int... $ECHO_C" >&6
40856 if test "${ac_cv_type_int+set}" = set; then
40857   echo $ECHO_N "(cached) $ECHO_C" >&6
40858 else
40859   cat >conftest.$ac_ext <<_ACEOF
40860 /* confdefs.h.  */
40861 _ACEOF
40862 cat confdefs.h >>conftest.$ac_ext
40863 cat >>conftest.$ac_ext <<_ACEOF
40864 /* end confdefs.h.  */
40865 $ac_includes_default
40866 int
40867 main ()
40868 {
40869 if ((int *) 0)
40870   return 0;
40871 if (sizeof (int))
40872   return 0;
40873   ;
40874   return 0;
40875 }
40876 _ACEOF
40877 rm -f conftest.$ac_objext
40878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40879   (eval $ac_compile) 2>conftest.er1
40880   ac_status=$?
40881   grep -v '^ *+' conftest.er1 >conftest.err
40882   rm -f conftest.er1
40883   cat conftest.err >&5
40884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40885   (exit $ac_status); } &&
40886          { ac_try='test -z "$ac_c_werror_flag"
40887                          || test ! -s conftest.err'
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); }; } &&
40893          { ac_try='test -s conftest.$ac_objext'
40894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40895   (eval $ac_try) 2>&5
40896   ac_status=$?
40897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898   (exit $ac_status); }; }; then
40899   ac_cv_type_int=yes
40900 else
40901   echo "$as_me: failed program was:" >&5
40902 sed 's/^/| /' conftest.$ac_ext >&5
40903
40904 ac_cv_type_int=no
40905 fi
40906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40907 fi
40908 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
40909 echo "${ECHO_T}$ac_cv_type_int" >&6
40910
40911 echo "$as_me:$LINENO: checking size of int" >&5
40912 echo $ECHO_N "checking size of int... $ECHO_C" >&6
40913 if test "${ac_cv_sizeof_int+set}" = set; then
40914   echo $ECHO_N "(cached) $ECHO_C" >&6
40915 else
40916   if test "$ac_cv_type_int" = yes; then
40917   # The cast to unsigned long works around a bug in the HP C Compiler
40918   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
40919   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
40920   # This bug is HP SR number 8606223364.
40921   if test "$cross_compiling" = yes; then
40922   # Depending upon the size, compute the lo and hi bounds.
40923 cat >conftest.$ac_ext <<_ACEOF
40924 /* confdefs.h.  */
40925 _ACEOF
40926 cat confdefs.h >>conftest.$ac_ext
40927 cat >>conftest.$ac_ext <<_ACEOF
40928 /* end confdefs.h.  */
40929 $ac_includes_default
40930 int
40931 main ()
40932 {
40933 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
40934 test_array [0] = 0
40935
40936   ;
40937   return 0;
40938 }
40939 _ACEOF
40940 rm -f conftest.$ac_objext
40941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40942   (eval $ac_compile) 2>conftest.er1
40943   ac_status=$?
40944   grep -v '^ *+' conftest.er1 >conftest.err
40945   rm -f conftest.er1
40946   cat conftest.err >&5
40947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40948   (exit $ac_status); } &&
40949          { ac_try='test -z "$ac_c_werror_flag"
40950                          || test ! -s conftest.err'
40951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40952   (eval $ac_try) 2>&5
40953   ac_status=$?
40954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955   (exit $ac_status); }; } &&
40956          { ac_try='test -s conftest.$ac_objext'
40957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40958   (eval $ac_try) 2>&5
40959   ac_status=$?
40960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40961   (exit $ac_status); }; }; then
40962   ac_lo=0 ac_mid=0
40963   while :; do
40964     cat >conftest.$ac_ext <<_ACEOF
40965 /* confdefs.h.  */
40966 _ACEOF
40967 cat confdefs.h >>conftest.$ac_ext
40968 cat >>conftest.$ac_ext <<_ACEOF
40969 /* end confdefs.h.  */
40970 $ac_includes_default
40971 int
40972 main ()
40973 {
40974 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
40975 test_array [0] = 0
40976
40977   ;
40978   return 0;
40979 }
40980 _ACEOF
40981 rm -f conftest.$ac_objext
40982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40983   (eval $ac_compile) 2>conftest.er1
40984   ac_status=$?
40985   grep -v '^ *+' conftest.er1 >conftest.err
40986   rm -f conftest.er1
40987   cat conftest.err >&5
40988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989   (exit $ac_status); } &&
40990          { ac_try='test -z "$ac_c_werror_flag"
40991                          || test ! -s conftest.err'
40992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993   (eval $ac_try) 2>&5
40994   ac_status=$?
40995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996   (exit $ac_status); }; } &&
40997          { ac_try='test -s conftest.$ac_objext'
40998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40999   (eval $ac_try) 2>&5
41000   ac_status=$?
41001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002   (exit $ac_status); }; }; then
41003   ac_hi=$ac_mid; break
41004 else
41005   echo "$as_me: failed program was:" >&5
41006 sed 's/^/| /' conftest.$ac_ext >&5
41007
41008 ac_lo=`expr $ac_mid + 1`
41009                     if test $ac_lo -le $ac_mid; then
41010                       ac_lo= ac_hi=
41011                       break
41012                     fi
41013                     ac_mid=`expr 2 '*' $ac_mid + 1`
41014 fi
41015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41016   done
41017 else
41018   echo "$as_me: failed program was:" >&5
41019 sed 's/^/| /' conftest.$ac_ext >&5
41020
41021 cat >conftest.$ac_ext <<_ACEOF
41022 /* confdefs.h.  */
41023 _ACEOF
41024 cat confdefs.h >>conftest.$ac_ext
41025 cat >>conftest.$ac_ext <<_ACEOF
41026 /* end confdefs.h.  */
41027 $ac_includes_default
41028 int
41029 main ()
41030 {
41031 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
41032 test_array [0] = 0
41033
41034   ;
41035   return 0;
41036 }
41037 _ACEOF
41038 rm -f conftest.$ac_objext
41039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41040   (eval $ac_compile) 2>conftest.er1
41041   ac_status=$?
41042   grep -v '^ *+' conftest.er1 >conftest.err
41043   rm -f conftest.er1
41044   cat conftest.err >&5
41045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046   (exit $ac_status); } &&
41047          { ac_try='test -z "$ac_c_werror_flag"
41048                          || test ! -s conftest.err'
41049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41050   (eval $ac_try) 2>&5
41051   ac_status=$?
41052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053   (exit $ac_status); }; } &&
41054          { ac_try='test -s conftest.$ac_objext'
41055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41056   (eval $ac_try) 2>&5
41057   ac_status=$?
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); }; }; then
41060   ac_hi=-1 ac_mid=-1
41061   while :; do
41062     cat >conftest.$ac_ext <<_ACEOF
41063 /* confdefs.h.  */
41064 _ACEOF
41065 cat confdefs.h >>conftest.$ac_ext
41066 cat >>conftest.$ac_ext <<_ACEOF
41067 /* end confdefs.h.  */
41068 $ac_includes_default
41069 int
41070 main ()
41071 {
41072 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
41073 test_array [0] = 0
41074
41075   ;
41076   return 0;
41077 }
41078 _ACEOF
41079 rm -f conftest.$ac_objext
41080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41081   (eval $ac_compile) 2>conftest.er1
41082   ac_status=$?
41083   grep -v '^ *+' conftest.er1 >conftest.err
41084   rm -f conftest.er1
41085   cat conftest.err >&5
41086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087   (exit $ac_status); } &&
41088          { ac_try='test -z "$ac_c_werror_flag"
41089                          || test ! -s conftest.err'
41090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41091   (eval $ac_try) 2>&5
41092   ac_status=$?
41093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094   (exit $ac_status); }; } &&
41095          { ac_try='test -s conftest.$ac_objext'
41096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41097   (eval $ac_try) 2>&5
41098   ac_status=$?
41099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41100   (exit $ac_status); }; }; then
41101   ac_lo=$ac_mid; break
41102 else
41103   echo "$as_me: failed program was:" >&5
41104 sed 's/^/| /' conftest.$ac_ext >&5
41105
41106 ac_hi=`expr '(' $ac_mid ')' - 1`
41107                        if test $ac_mid -le $ac_hi; then
41108                          ac_lo= ac_hi=
41109                          break
41110                        fi
41111                        ac_mid=`expr 2 '*' $ac_mid`
41112 fi
41113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41114   done
41115 else
41116   echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41118
41119 ac_lo= ac_hi=
41120 fi
41121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41122 fi
41123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41124 # Binary search between lo and hi bounds.
41125 while test "x$ac_lo" != "x$ac_hi"; do
41126   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41127   cat >conftest.$ac_ext <<_ACEOF
41128 /* confdefs.h.  */
41129 _ACEOF
41130 cat confdefs.h >>conftest.$ac_ext
41131 cat >>conftest.$ac_ext <<_ACEOF
41132 /* end confdefs.h.  */
41133 $ac_includes_default
41134 int
41135 main ()
41136 {
41137 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
41138 test_array [0] = 0
41139
41140   ;
41141   return 0;
41142 }
41143 _ACEOF
41144 rm -f conftest.$ac_objext
41145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41146   (eval $ac_compile) 2>conftest.er1
41147   ac_status=$?
41148   grep -v '^ *+' conftest.er1 >conftest.err
41149   rm -f conftest.er1
41150   cat conftest.err >&5
41151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152   (exit $ac_status); } &&
41153          { ac_try='test -z "$ac_c_werror_flag"
41154                          || test ! -s conftest.err'
41155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41156   (eval $ac_try) 2>&5
41157   ac_status=$?
41158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159   (exit $ac_status); }; } &&
41160          { ac_try='test -s conftest.$ac_objext'
41161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41162   (eval $ac_try) 2>&5
41163   ac_status=$?
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); }; }; then
41166   ac_hi=$ac_mid
41167 else
41168   echo "$as_me: failed program was:" >&5
41169 sed 's/^/| /' conftest.$ac_ext >&5
41170
41171 ac_lo=`expr '(' $ac_mid ')' + 1`
41172 fi
41173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41174 done
41175 case $ac_lo in
41176 ?*) ac_cv_sizeof_int=$ac_lo;;
41177 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41178 See \`config.log' for more details." >&5
41179 echo "$as_me: error: cannot compute sizeof (int), 77
41180 See \`config.log' for more details." >&2;}
41181    { (exit 1); exit 1; }; } ;;
41182 esac
41183 else
41184   if test "$cross_compiling" = yes; then
41185   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41186 See \`config.log' for more details." >&5
41187 echo "$as_me: error: cannot run test program while cross compiling
41188 See \`config.log' for more details." >&2;}
41189    { (exit 1); exit 1; }; }
41190 else
41191   cat >conftest.$ac_ext <<_ACEOF
41192 /* confdefs.h.  */
41193 _ACEOF
41194 cat confdefs.h >>conftest.$ac_ext
41195 cat >>conftest.$ac_ext <<_ACEOF
41196 /* end confdefs.h.  */
41197 $ac_includes_default
41198 long longval () { return (long) (sizeof (int)); }
41199 unsigned long ulongval () { return (long) (sizeof (int)); }
41200 #include <stdio.h>
41201 #include <stdlib.h>
41202 int
41203 main ()
41204 {
41205
41206   FILE *f = fopen ("conftest.val", "w");
41207   if (! f)
41208     exit (1);
41209   if (((long) (sizeof (int))) < 0)
41210     {
41211       long i = longval ();
41212       if (i != ((long) (sizeof (int))))
41213         exit (1);
41214       fprintf (f, "%ld\n", i);
41215     }
41216   else
41217     {
41218       unsigned long i = ulongval ();
41219       if (i != ((long) (sizeof (int))))
41220         exit (1);
41221       fprintf (f, "%lu\n", i);
41222     }
41223   exit (ferror (f) || fclose (f) != 0);
41224
41225   ;
41226   return 0;
41227 }
41228 _ACEOF
41229 rm -f conftest$ac_exeext
41230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41231   (eval $ac_link) 2>&5
41232   ac_status=$?
41233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41236   (eval $ac_try) 2>&5
41237   ac_status=$?
41238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239   (exit $ac_status); }; }; then
41240   ac_cv_sizeof_int=`cat conftest.val`
41241 else
41242   echo "$as_me: program exited with status $ac_status" >&5
41243 echo "$as_me: failed program was:" >&5
41244 sed 's/^/| /' conftest.$ac_ext >&5
41245
41246 ( exit $ac_status )
41247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
41248 See \`config.log' for more details." >&5
41249 echo "$as_me: error: cannot compute sizeof (int), 77
41250 See \`config.log' for more details." >&2;}
41251    { (exit 1); exit 1; }; }
41252 fi
41253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41254 fi
41255 fi
41256 rm -f conftest.val
41257 else
41258   ac_cv_sizeof_int=0
41259 fi
41260 fi
41261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
41262 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
41263 cat >>confdefs.h <<_ACEOF
41264 #define SIZEOF_INT $ac_cv_sizeof_int
41265 _ACEOF
41266
41267
41268 echo "$as_me:$LINENO: checking for long" >&5
41269 echo $ECHO_N "checking for long... $ECHO_C" >&6
41270 if test "${ac_cv_type_long+set}" = set; then
41271   echo $ECHO_N "(cached) $ECHO_C" >&6
41272 else
41273   cat >conftest.$ac_ext <<_ACEOF
41274 /* confdefs.h.  */
41275 _ACEOF
41276 cat confdefs.h >>conftest.$ac_ext
41277 cat >>conftest.$ac_ext <<_ACEOF
41278 /* end confdefs.h.  */
41279 $ac_includes_default
41280 int
41281 main ()
41282 {
41283 if ((long *) 0)
41284   return 0;
41285 if (sizeof (long))
41286   return 0;
41287   ;
41288   return 0;
41289 }
41290 _ACEOF
41291 rm -f conftest.$ac_objext
41292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41293   (eval $ac_compile) 2>conftest.er1
41294   ac_status=$?
41295   grep -v '^ *+' conftest.er1 >conftest.err
41296   rm -f conftest.er1
41297   cat conftest.err >&5
41298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299   (exit $ac_status); } &&
41300          { ac_try='test -z "$ac_c_werror_flag"
41301                          || test ! -s conftest.err'
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); }; } &&
41307          { ac_try='test -s conftest.$ac_objext'
41308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41309   (eval $ac_try) 2>&5
41310   ac_status=$?
41311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312   (exit $ac_status); }; }; then
41313   ac_cv_type_long=yes
41314 else
41315   echo "$as_me: failed program was:" >&5
41316 sed 's/^/| /' conftest.$ac_ext >&5
41317
41318 ac_cv_type_long=no
41319 fi
41320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41321 fi
41322 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
41323 echo "${ECHO_T}$ac_cv_type_long" >&6
41324
41325 echo "$as_me:$LINENO: checking size of long" >&5
41326 echo $ECHO_N "checking size of long... $ECHO_C" >&6
41327 if test "${ac_cv_sizeof_long+set}" = set; then
41328   echo $ECHO_N "(cached) $ECHO_C" >&6
41329 else
41330   if test "$ac_cv_type_long" = yes; then
41331   # The cast to unsigned long works around a bug in the HP C Compiler
41332   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41333   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41334   # This bug is HP SR number 8606223364.
41335   if test "$cross_compiling" = yes; then
41336   # Depending upon the size, compute the lo and hi bounds.
41337 cat >conftest.$ac_ext <<_ACEOF
41338 /* confdefs.h.  */
41339 _ACEOF
41340 cat confdefs.h >>conftest.$ac_ext
41341 cat >>conftest.$ac_ext <<_ACEOF
41342 /* end confdefs.h.  */
41343 $ac_includes_default
41344 int
41345 main ()
41346 {
41347 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
41348 test_array [0] = 0
41349
41350   ;
41351   return 0;
41352 }
41353 _ACEOF
41354 rm -f conftest.$ac_objext
41355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41356   (eval $ac_compile) 2>conftest.er1
41357   ac_status=$?
41358   grep -v '^ *+' conftest.er1 >conftest.err
41359   rm -f conftest.er1
41360   cat conftest.err >&5
41361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362   (exit $ac_status); } &&
41363          { ac_try='test -z "$ac_c_werror_flag"
41364                          || test ! -s conftest.err'
41365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41366   (eval $ac_try) 2>&5
41367   ac_status=$?
41368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41369   (exit $ac_status); }; } &&
41370          { ac_try='test -s conftest.$ac_objext'
41371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41372   (eval $ac_try) 2>&5
41373   ac_status=$?
41374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375   (exit $ac_status); }; }; then
41376   ac_lo=0 ac_mid=0
41377   while :; do
41378     cat >conftest.$ac_ext <<_ACEOF
41379 /* confdefs.h.  */
41380 _ACEOF
41381 cat confdefs.h >>conftest.$ac_ext
41382 cat >>conftest.$ac_ext <<_ACEOF
41383 /* end confdefs.h.  */
41384 $ac_includes_default
41385 int
41386 main ()
41387 {
41388 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41389 test_array [0] = 0
41390
41391   ;
41392   return 0;
41393 }
41394 _ACEOF
41395 rm -f conftest.$ac_objext
41396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41397   (eval $ac_compile) 2>conftest.er1
41398   ac_status=$?
41399   grep -v '^ *+' conftest.er1 >conftest.err
41400   rm -f conftest.er1
41401   cat conftest.err >&5
41402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41403   (exit $ac_status); } &&
41404          { ac_try='test -z "$ac_c_werror_flag"
41405                          || test ! -s conftest.err'
41406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41407   (eval $ac_try) 2>&5
41408   ac_status=$?
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); }; } &&
41411          { ac_try='test -s conftest.$ac_objext'
41412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41413   (eval $ac_try) 2>&5
41414   ac_status=$?
41415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41416   (exit $ac_status); }; }; then
41417   ac_hi=$ac_mid; break
41418 else
41419   echo "$as_me: failed program was:" >&5
41420 sed 's/^/| /' conftest.$ac_ext >&5
41421
41422 ac_lo=`expr $ac_mid + 1`
41423                     if test $ac_lo -le $ac_mid; then
41424                       ac_lo= ac_hi=
41425                       break
41426                     fi
41427                     ac_mid=`expr 2 '*' $ac_mid + 1`
41428 fi
41429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41430   done
41431 else
41432   echo "$as_me: failed program was:" >&5
41433 sed 's/^/| /' conftest.$ac_ext >&5
41434
41435 cat >conftest.$ac_ext <<_ACEOF
41436 /* confdefs.h.  */
41437 _ACEOF
41438 cat confdefs.h >>conftest.$ac_ext
41439 cat >>conftest.$ac_ext <<_ACEOF
41440 /* end confdefs.h.  */
41441 $ac_includes_default
41442 int
41443 main ()
41444 {
41445 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
41446 test_array [0] = 0
41447
41448   ;
41449   return 0;
41450 }
41451 _ACEOF
41452 rm -f conftest.$ac_objext
41453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41454   (eval $ac_compile) 2>conftest.er1
41455   ac_status=$?
41456   grep -v '^ *+' conftest.er1 >conftest.err
41457   rm -f conftest.er1
41458   cat conftest.err >&5
41459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460   (exit $ac_status); } &&
41461          { ac_try='test -z "$ac_c_werror_flag"
41462                          || test ! -s conftest.err'
41463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41464   (eval $ac_try) 2>&5
41465   ac_status=$?
41466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41467   (exit $ac_status); }; } &&
41468          { ac_try='test -s conftest.$ac_objext'
41469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470   (eval $ac_try) 2>&5
41471   ac_status=$?
41472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473   (exit $ac_status); }; }; then
41474   ac_hi=-1 ac_mid=-1
41475   while :; do
41476     cat >conftest.$ac_ext <<_ACEOF
41477 /* confdefs.h.  */
41478 _ACEOF
41479 cat confdefs.h >>conftest.$ac_ext
41480 cat >>conftest.$ac_ext <<_ACEOF
41481 /* end confdefs.h.  */
41482 $ac_includes_default
41483 int
41484 main ()
41485 {
41486 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
41487 test_array [0] = 0
41488
41489   ;
41490   return 0;
41491 }
41492 _ACEOF
41493 rm -f conftest.$ac_objext
41494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41495   (eval $ac_compile) 2>conftest.er1
41496   ac_status=$?
41497   grep -v '^ *+' conftest.er1 >conftest.err
41498   rm -f conftest.er1
41499   cat conftest.err >&5
41500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501   (exit $ac_status); } &&
41502          { ac_try='test -z "$ac_c_werror_flag"
41503                          || test ! -s conftest.err'
41504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505   (eval $ac_try) 2>&5
41506   ac_status=$?
41507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508   (exit $ac_status); }; } &&
41509          { ac_try='test -s conftest.$ac_objext'
41510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41511   (eval $ac_try) 2>&5
41512   ac_status=$?
41513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514   (exit $ac_status); }; }; then
41515   ac_lo=$ac_mid; break
41516 else
41517   echo "$as_me: failed program was:" >&5
41518 sed 's/^/| /' conftest.$ac_ext >&5
41519
41520 ac_hi=`expr '(' $ac_mid ')' - 1`
41521                        if test $ac_mid -le $ac_hi; then
41522                          ac_lo= ac_hi=
41523                          break
41524                        fi
41525                        ac_mid=`expr 2 '*' $ac_mid`
41526 fi
41527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41528   done
41529 else
41530   echo "$as_me: failed program was:" >&5
41531 sed 's/^/| /' conftest.$ac_ext >&5
41532
41533 ac_lo= ac_hi=
41534 fi
41535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41536 fi
41537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41538 # Binary search between lo and hi bounds.
41539 while test "x$ac_lo" != "x$ac_hi"; do
41540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41541   cat >conftest.$ac_ext <<_ACEOF
41542 /* confdefs.h.  */
41543 _ACEOF
41544 cat confdefs.h >>conftest.$ac_ext
41545 cat >>conftest.$ac_ext <<_ACEOF
41546 /* end confdefs.h.  */
41547 $ac_includes_default
41548 int
41549 main ()
41550 {
41551 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
41552 test_array [0] = 0
41553
41554   ;
41555   return 0;
41556 }
41557 _ACEOF
41558 rm -f conftest.$ac_objext
41559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41560   (eval $ac_compile) 2>conftest.er1
41561   ac_status=$?
41562   grep -v '^ *+' conftest.er1 >conftest.err
41563   rm -f conftest.er1
41564   cat conftest.err >&5
41565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41566   (exit $ac_status); } &&
41567          { ac_try='test -z "$ac_c_werror_flag"
41568                          || test ! -s conftest.err'
41569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41570   (eval $ac_try) 2>&5
41571   ac_status=$?
41572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573   (exit $ac_status); }; } &&
41574          { ac_try='test -s conftest.$ac_objext'
41575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41576   (eval $ac_try) 2>&5
41577   ac_status=$?
41578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579   (exit $ac_status); }; }; then
41580   ac_hi=$ac_mid
41581 else
41582   echo "$as_me: failed program was:" >&5
41583 sed 's/^/| /' conftest.$ac_ext >&5
41584
41585 ac_lo=`expr '(' $ac_mid ')' + 1`
41586 fi
41587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41588 done
41589 case $ac_lo in
41590 ?*) ac_cv_sizeof_long=$ac_lo;;
41591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41592 See \`config.log' for more details." >&5
41593 echo "$as_me: error: cannot compute sizeof (long), 77
41594 See \`config.log' for more details." >&2;}
41595    { (exit 1); exit 1; }; } ;;
41596 esac
41597 else
41598   if test "$cross_compiling" = yes; then
41599   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
41600 See \`config.log' for more details." >&5
41601 echo "$as_me: error: cannot run test program while cross compiling
41602 See \`config.log' for more details." >&2;}
41603    { (exit 1); exit 1; }; }
41604 else
41605   cat >conftest.$ac_ext <<_ACEOF
41606 /* confdefs.h.  */
41607 _ACEOF
41608 cat confdefs.h >>conftest.$ac_ext
41609 cat >>conftest.$ac_ext <<_ACEOF
41610 /* end confdefs.h.  */
41611 $ac_includes_default
41612 long longval () { return (long) (sizeof (long)); }
41613 unsigned long ulongval () { return (long) (sizeof (long)); }
41614 #include <stdio.h>
41615 #include <stdlib.h>
41616 int
41617 main ()
41618 {
41619
41620   FILE *f = fopen ("conftest.val", "w");
41621   if (! f)
41622     exit (1);
41623   if (((long) (sizeof (long))) < 0)
41624     {
41625       long i = longval ();
41626       if (i != ((long) (sizeof (long))))
41627         exit (1);
41628       fprintf (f, "%ld\n", i);
41629     }
41630   else
41631     {
41632       unsigned long i = ulongval ();
41633       if (i != ((long) (sizeof (long))))
41634         exit (1);
41635       fprintf (f, "%lu\n", i);
41636     }
41637   exit (ferror (f) || fclose (f) != 0);
41638
41639   ;
41640   return 0;
41641 }
41642 _ACEOF
41643 rm -f conftest$ac_exeext
41644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41645   (eval $ac_link) 2>&5
41646   ac_status=$?
41647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41650   (eval $ac_try) 2>&5
41651   ac_status=$?
41652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41653   (exit $ac_status); }; }; then
41654   ac_cv_sizeof_long=`cat conftest.val`
41655 else
41656   echo "$as_me: program exited with status $ac_status" >&5
41657 echo "$as_me: failed program was:" >&5
41658 sed 's/^/| /' conftest.$ac_ext >&5
41659
41660 ( exit $ac_status )
41661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
41662 See \`config.log' for more details." >&5
41663 echo "$as_me: error: cannot compute sizeof (long), 77
41664 See \`config.log' for more details." >&2;}
41665    { (exit 1); exit 1; }; }
41666 fi
41667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41668 fi
41669 fi
41670 rm -f conftest.val
41671 else
41672   ac_cv_sizeof_long=0
41673 fi
41674 fi
41675 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
41676 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
41677 cat >>confdefs.h <<_ACEOF
41678 #define SIZEOF_LONG $ac_cv_sizeof_long
41679 _ACEOF
41680
41681
41682 echo "$as_me:$LINENO: checking for wchar_t" >&5
41683 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
41684 if test "${ac_cv_type_wchar_t+set}" = set; then
41685   echo $ECHO_N "(cached) $ECHO_C" >&6
41686 else
41687   cat >conftest.$ac_ext <<_ACEOF
41688 /* confdefs.h.  */
41689 _ACEOF
41690 cat confdefs.h >>conftest.$ac_ext
41691 cat >>conftest.$ac_ext <<_ACEOF
41692 /* end confdefs.h.  */
41693 $ac_includes_default
41694 int
41695 main ()
41696 {
41697 if ((wchar_t *) 0)
41698   return 0;
41699 if (sizeof (wchar_t))
41700   return 0;
41701   ;
41702   return 0;
41703 }
41704 _ACEOF
41705 rm -f conftest.$ac_objext
41706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41707   (eval $ac_compile) 2>conftest.er1
41708   ac_status=$?
41709   grep -v '^ *+' conftest.er1 >conftest.err
41710   rm -f conftest.er1
41711   cat conftest.err >&5
41712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41713   (exit $ac_status); } &&
41714          { ac_try='test -z "$ac_c_werror_flag"
41715                          || test ! -s conftest.err'
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); }; } &&
41721          { ac_try='test -s conftest.$ac_objext'
41722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41723   (eval $ac_try) 2>&5
41724   ac_status=$?
41725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726   (exit $ac_status); }; }; then
41727   ac_cv_type_wchar_t=yes
41728 else
41729   echo "$as_me: failed program was:" >&5
41730 sed 's/^/| /' conftest.$ac_ext >&5
41731
41732 ac_cv_type_wchar_t=no
41733 fi
41734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41735 fi
41736 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
41737 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
41738
41739 echo "$as_me:$LINENO: checking size of wchar_t" >&5
41740 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
41741 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
41742   echo $ECHO_N "(cached) $ECHO_C" >&6
41743 else
41744   if test "$ac_cv_type_wchar_t" = yes; then
41745   # The cast to unsigned long works around a bug in the HP C Compiler
41746   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
41747   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
41748   # This bug is HP SR number 8606223364.
41749   if test "$cross_compiling" = yes; then
41750   # Depending upon the size, compute the lo and hi bounds.
41751 cat >conftest.$ac_ext <<_ACEOF
41752 /* confdefs.h.  */
41753 _ACEOF
41754 cat confdefs.h >>conftest.$ac_ext
41755 cat >>conftest.$ac_ext <<_ACEOF
41756 /* end confdefs.h.  */
41757 $ac_includes_default
41758 int
41759 main ()
41760 {
41761 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
41762 test_array [0] = 0
41763
41764   ;
41765   return 0;
41766 }
41767 _ACEOF
41768 rm -f conftest.$ac_objext
41769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41770   (eval $ac_compile) 2>conftest.er1
41771   ac_status=$?
41772   grep -v '^ *+' conftest.er1 >conftest.err
41773   rm -f conftest.er1
41774   cat conftest.err >&5
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); } &&
41777          { ac_try='test -z "$ac_c_werror_flag"
41778                          || test ! -s conftest.err'
41779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41780   (eval $ac_try) 2>&5
41781   ac_status=$?
41782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41783   (exit $ac_status); }; } &&
41784          { ac_try='test -s conftest.$ac_objext'
41785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41786   (eval $ac_try) 2>&5
41787   ac_status=$?
41788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789   (exit $ac_status); }; }; then
41790   ac_lo=0 ac_mid=0
41791   while :; do
41792     cat >conftest.$ac_ext <<_ACEOF
41793 /* confdefs.h.  */
41794 _ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h.  */
41798 $ac_includes_default
41799 int
41800 main ()
41801 {
41802 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41803 test_array [0] = 0
41804
41805   ;
41806   return 0;
41807 }
41808 _ACEOF
41809 rm -f conftest.$ac_objext
41810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41811   (eval $ac_compile) 2>conftest.er1
41812   ac_status=$?
41813   grep -v '^ *+' conftest.er1 >conftest.err
41814   rm -f conftest.er1
41815   cat conftest.err >&5
41816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41817   (exit $ac_status); } &&
41818          { ac_try='test -z "$ac_c_werror_flag"
41819                          || test ! -s conftest.err'
41820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41821   (eval $ac_try) 2>&5
41822   ac_status=$?
41823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824   (exit $ac_status); }; } &&
41825          { ac_try='test -s conftest.$ac_objext'
41826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41827   (eval $ac_try) 2>&5
41828   ac_status=$?
41829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830   (exit $ac_status); }; }; then
41831   ac_hi=$ac_mid; break
41832 else
41833   echo "$as_me: failed program was:" >&5
41834 sed 's/^/| /' conftest.$ac_ext >&5
41835
41836 ac_lo=`expr $ac_mid + 1`
41837                     if test $ac_lo -le $ac_mid; then
41838                       ac_lo= ac_hi=
41839                       break
41840                     fi
41841                     ac_mid=`expr 2 '*' $ac_mid + 1`
41842 fi
41843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41844   done
41845 else
41846   echo "$as_me: failed program was:" >&5
41847 sed 's/^/| /' conftest.$ac_ext >&5
41848
41849 cat >conftest.$ac_ext <<_ACEOF
41850 /* confdefs.h.  */
41851 _ACEOF
41852 cat confdefs.h >>conftest.$ac_ext
41853 cat >>conftest.$ac_ext <<_ACEOF
41854 /* end confdefs.h.  */
41855 $ac_includes_default
41856 int
41857 main ()
41858 {
41859 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
41860 test_array [0] = 0
41861
41862   ;
41863   return 0;
41864 }
41865 _ACEOF
41866 rm -f conftest.$ac_objext
41867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41868   (eval $ac_compile) 2>conftest.er1
41869   ac_status=$?
41870   grep -v '^ *+' conftest.er1 >conftest.err
41871   rm -f conftest.er1
41872   cat conftest.err >&5
41873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41874   (exit $ac_status); } &&
41875          { ac_try='test -z "$ac_c_werror_flag"
41876                          || test ! -s conftest.err'
41877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41878   (eval $ac_try) 2>&5
41879   ac_status=$?
41880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881   (exit $ac_status); }; } &&
41882          { ac_try='test -s conftest.$ac_objext'
41883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41884   (eval $ac_try) 2>&5
41885   ac_status=$?
41886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41887   (exit $ac_status); }; }; then
41888   ac_hi=-1 ac_mid=-1
41889   while :; do
41890     cat >conftest.$ac_ext <<_ACEOF
41891 /* confdefs.h.  */
41892 _ACEOF
41893 cat confdefs.h >>conftest.$ac_ext
41894 cat >>conftest.$ac_ext <<_ACEOF
41895 /* end confdefs.h.  */
41896 $ac_includes_default
41897 int
41898 main ()
41899 {
41900 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
41901 test_array [0] = 0
41902
41903   ;
41904   return 0;
41905 }
41906 _ACEOF
41907 rm -f conftest.$ac_objext
41908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41909   (eval $ac_compile) 2>conftest.er1
41910   ac_status=$?
41911   grep -v '^ *+' conftest.er1 >conftest.err
41912   rm -f conftest.er1
41913   cat conftest.err >&5
41914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915   (exit $ac_status); } &&
41916          { ac_try='test -z "$ac_c_werror_flag"
41917                          || test ! -s conftest.err'
41918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41919   (eval $ac_try) 2>&5
41920   ac_status=$?
41921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41922   (exit $ac_status); }; } &&
41923          { ac_try='test -s conftest.$ac_objext'
41924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41925   (eval $ac_try) 2>&5
41926   ac_status=$?
41927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928   (exit $ac_status); }; }; then
41929   ac_lo=$ac_mid; break
41930 else
41931   echo "$as_me: failed program was:" >&5
41932 sed 's/^/| /' conftest.$ac_ext >&5
41933
41934 ac_hi=`expr '(' $ac_mid ')' - 1`
41935                        if test $ac_mid -le $ac_hi; then
41936                          ac_lo= ac_hi=
41937                          break
41938                        fi
41939                        ac_mid=`expr 2 '*' $ac_mid`
41940 fi
41941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41942   done
41943 else
41944   echo "$as_me: failed program was:" >&5
41945 sed 's/^/| /' conftest.$ac_ext >&5
41946
41947 ac_lo= ac_hi=
41948 fi
41949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41950 fi
41951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41952 # Binary search between lo and hi bounds.
41953 while test "x$ac_lo" != "x$ac_hi"; do
41954   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41955   cat >conftest.$ac_ext <<_ACEOF
41956 /* confdefs.h.  */
41957 _ACEOF
41958 cat confdefs.h >>conftest.$ac_ext
41959 cat >>conftest.$ac_ext <<_ACEOF
41960 /* end confdefs.h.  */
41961 $ac_includes_default
41962 int
41963 main ()
41964 {
41965 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
41966 test_array [0] = 0
41967
41968   ;
41969   return 0;
41970 }
41971 _ACEOF
41972 rm -f conftest.$ac_objext
41973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41974   (eval $ac_compile) 2>conftest.er1
41975   ac_status=$?
41976   grep -v '^ *+' conftest.er1 >conftest.err
41977   rm -f conftest.er1
41978   cat conftest.err >&5
41979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41980   (exit $ac_status); } &&
41981          { ac_try='test -z "$ac_c_werror_flag"
41982                          || test ! -s conftest.err'
41983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41984   (eval $ac_try) 2>&5
41985   ac_status=$?
41986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41987   (exit $ac_status); }; } &&
41988          { ac_try='test -s conftest.$ac_objext'
41989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41990   (eval $ac_try) 2>&5
41991   ac_status=$?
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); }; }; then
41994   ac_hi=$ac_mid
41995 else
41996   echo "$as_me: failed program was:" >&5
41997 sed 's/^/| /' conftest.$ac_ext >&5
41998
41999 ac_lo=`expr '(' $ac_mid ')' + 1`
42000 fi
42001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42002 done
42003 case $ac_lo in
42004 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
42005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42006 See \`config.log' for more details." >&5
42007 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42008 See \`config.log' for more details." >&2;}
42009    { (exit 1); exit 1; }; } ;;
42010 esac
42011 else
42012   if test "$cross_compiling" = yes; then
42013   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42014 See \`config.log' for more details." >&5
42015 echo "$as_me: error: cannot run test program while cross compiling
42016 See \`config.log' for more details." >&2;}
42017    { (exit 1); exit 1; }; }
42018 else
42019   cat >conftest.$ac_ext <<_ACEOF
42020 /* confdefs.h.  */
42021 _ACEOF
42022 cat confdefs.h >>conftest.$ac_ext
42023 cat >>conftest.$ac_ext <<_ACEOF
42024 /* end confdefs.h.  */
42025 $ac_includes_default
42026 long longval () { return (long) (sizeof (wchar_t)); }
42027 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
42028 #include <stdio.h>
42029 #include <stdlib.h>
42030 int
42031 main ()
42032 {
42033
42034   FILE *f = fopen ("conftest.val", "w");
42035   if (! f)
42036     exit (1);
42037   if (((long) (sizeof (wchar_t))) < 0)
42038     {
42039       long i = longval ();
42040       if (i != ((long) (sizeof (wchar_t))))
42041         exit (1);
42042       fprintf (f, "%ld\n", i);
42043     }
42044   else
42045     {
42046       unsigned long i = ulongval ();
42047       if (i != ((long) (sizeof (wchar_t))))
42048         exit (1);
42049       fprintf (f, "%lu\n", i);
42050     }
42051   exit (ferror (f) || fclose (f) != 0);
42052
42053   ;
42054   return 0;
42055 }
42056 _ACEOF
42057 rm -f conftest$ac_exeext
42058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42059   (eval $ac_link) 2>&5
42060   ac_status=$?
42061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064   (eval $ac_try) 2>&5
42065   ac_status=$?
42066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067   (exit $ac_status); }; }; then
42068   ac_cv_sizeof_wchar_t=`cat conftest.val`
42069 else
42070   echo "$as_me: program exited with status $ac_status" >&5
42071 echo "$as_me: failed program was:" >&5
42072 sed 's/^/| /' conftest.$ac_ext >&5
42073
42074 ( exit $ac_status )
42075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
42076 See \`config.log' for more details." >&5
42077 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
42078 See \`config.log' for more details." >&2;}
42079    { (exit 1); exit 1; }; }
42080 fi
42081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42082 fi
42083 fi
42084 rm -f conftest.val
42085 else
42086   ac_cv_sizeof_wchar_t=0
42087 fi
42088 fi
42089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
42090 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
42091 cat >>confdefs.h <<_ACEOF
42092 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
42093 _ACEOF
42094
42095
42096
42097 if test "$ac_cv_sizeof_int" -lt 4 ; then
42098         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
42099 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
42100
42101
42102 cat >>confdefs.h <<\_ACEOF
42103 #define LBER_INT_T long
42104 _ACEOF
42105
42106 else
42107
42108 cat >>confdefs.h <<\_ACEOF
42109 #define LBER_INT_T int
42110 _ACEOF
42111
42112 fi
42113
42114
42115 cat >>confdefs.h <<\_ACEOF
42116 #define LBER_LEN_T long
42117 _ACEOF
42118
42119
42120 cat >>confdefs.h <<\_ACEOF
42121 #define LBER_SOCKET_T int
42122 _ACEOF
42123
42124
42125 cat >>confdefs.h <<\_ACEOF
42126 #define LBER_TAG_T long
42127 _ACEOF
42128
42129
42130 echo "$as_me:$LINENO: checking for working memcmp" >&5
42131 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
42132 if test "${ac_cv_func_memcmp_working+set}" = set; then
42133   echo $ECHO_N "(cached) $ECHO_C" >&6
42134 else
42135   if test "$cross_compiling" = yes; then
42136   ac_cv_func_memcmp_working=no
42137 else
42138   cat >conftest.$ac_ext <<_ACEOF
42139 /* confdefs.h.  */
42140 _ACEOF
42141 cat confdefs.h >>conftest.$ac_ext
42142 cat >>conftest.$ac_ext <<_ACEOF
42143 /* end confdefs.h.  */
42144 $ac_includes_default
42145 int
42146 main ()
42147 {
42148
42149   /* Some versions of memcmp are not 8-bit clean.  */
42150   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
42151   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
42152     exit (1);
42153
42154   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
42155      or more and with at least one buffer not starting on a 4-byte boundary.
42156      William Lewis provided this test program.   */
42157   {
42158     char foo[21];
42159     char bar[21];
42160     int i;
42161     for (i = 0; i < 4; i++)
42162       {
42163         char *a = foo + i;
42164         char *b = bar + i;
42165         strcpy (a, "--------01111111");
42166         strcpy (b, "--------10000000");
42167         if (memcmp (a, b, 16) >= 0)
42168           exit (1);
42169       }
42170     exit (0);
42171   }
42172
42173   ;
42174   return 0;
42175 }
42176 _ACEOF
42177 rm -f conftest$ac_exeext
42178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42179   (eval $ac_link) 2>&5
42180   ac_status=$?
42181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42184   (eval $ac_try) 2>&5
42185   ac_status=$?
42186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42187   (exit $ac_status); }; }; then
42188   ac_cv_func_memcmp_working=yes
42189 else
42190   echo "$as_me: program exited with status $ac_status" >&5
42191 echo "$as_me: failed program was:" >&5
42192 sed 's/^/| /' conftest.$ac_ext >&5
42193
42194 ( exit $ac_status )
42195 ac_cv_func_memcmp_working=no
42196 fi
42197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42198 fi
42199 fi
42200 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
42201 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
42202 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
42203     "memcmp.$ac_objext"   | \
42204   *" memcmp.$ac_objext"   | \
42205     "memcmp.$ac_objext "* | \
42206   *" memcmp.$ac_objext "* ) ;;
42207   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
42208 esac
42209
42210
42211
42212 if test $ac_cv_func_memcmp_working = no ; then
42213
42214 cat >>confdefs.h <<\_ACEOF
42215 #define NEED_MEMCMP_REPLACEMENT 1
42216 _ACEOF
42217
42218 fi
42219
42220
42221 for ac_func in strftime
42222 do
42223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42224 echo "$as_me:$LINENO: checking for $ac_func" >&5
42225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42226 if eval "test \"\${$as_ac_var+set}\" = set"; then
42227   echo $ECHO_N "(cached) $ECHO_C" >&6
42228 else
42229   cat >conftest.$ac_ext <<_ACEOF
42230 /* confdefs.h.  */
42231 _ACEOF
42232 cat confdefs.h >>conftest.$ac_ext
42233 cat >>conftest.$ac_ext <<_ACEOF
42234 /* end confdefs.h.  */
42235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42237 #define $ac_func innocuous_$ac_func
42238
42239 /* System header to define __stub macros and hopefully few prototypes,
42240     which can conflict with char $ac_func (); below.
42241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42242     <limits.h> exists even on freestanding compilers.  */
42243
42244 #ifdef __STDC__
42245 # include <limits.h>
42246 #else
42247 # include <assert.h>
42248 #endif
42249
42250 #undef $ac_func
42251
42252 /* Override any gcc2 internal prototype to avoid an error.  */
42253 #ifdef __cplusplus
42254 extern "C"
42255 {
42256 #endif
42257 /* We use char because int might match the return type of a gcc2
42258    builtin and then its argument prototype would still apply.  */
42259 char $ac_func ();
42260 /* The GNU C library defines this for functions which it implements
42261     to always fail with ENOSYS.  Some functions are actually named
42262     something starting with __ and the normal name is an alias.  */
42263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42264 choke me
42265 #else
42266 char (*f) () = $ac_func;
42267 #endif
42268 #ifdef __cplusplus
42269 }
42270 #endif
42271
42272 int
42273 main ()
42274 {
42275 return f != $ac_func;
42276   ;
42277   return 0;
42278 }
42279 _ACEOF
42280 rm -f conftest.$ac_objext conftest$ac_exeext
42281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42282   (eval $ac_link) 2>conftest.er1
42283   ac_status=$?
42284   grep -v '^ *+' conftest.er1 >conftest.err
42285   rm -f conftest.er1
42286   cat conftest.err >&5
42287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288   (exit $ac_status); } &&
42289          { ac_try='test -z "$ac_c_werror_flag"
42290                          || test ! -s conftest.err'
42291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42292   (eval $ac_try) 2>&5
42293   ac_status=$?
42294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295   (exit $ac_status); }; } &&
42296          { ac_try='test -s conftest$ac_exeext'
42297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42298   (eval $ac_try) 2>&5
42299   ac_status=$?
42300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301   (exit $ac_status); }; }; then
42302   eval "$as_ac_var=yes"
42303 else
42304   echo "$as_me: failed program was:" >&5
42305 sed 's/^/| /' conftest.$ac_ext >&5
42306
42307 eval "$as_ac_var=no"
42308 fi
42309 rm -f conftest.err conftest.$ac_objext \
42310       conftest$ac_exeext conftest.$ac_ext
42311 fi
42312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42314 if test `eval echo '${'$as_ac_var'}'` = yes; then
42315   cat >>confdefs.h <<_ACEOF
42316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42317 _ACEOF
42318
42319 else
42320   # strftime is in -lintl on SCO UNIX.
42321 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
42322 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
42323 if test "${ac_cv_lib_intl_strftime+set}" = set; then
42324   echo $ECHO_N "(cached) $ECHO_C" >&6
42325 else
42326   ac_check_lib_save_LIBS=$LIBS
42327 LIBS="-lintl  $LIBS"
42328 cat >conftest.$ac_ext <<_ACEOF
42329 /* confdefs.h.  */
42330 _ACEOF
42331 cat confdefs.h >>conftest.$ac_ext
42332 cat >>conftest.$ac_ext <<_ACEOF
42333 /* end confdefs.h.  */
42334
42335 /* Override any gcc2 internal prototype to avoid an error.  */
42336 #ifdef __cplusplus
42337 extern "C"
42338 #endif
42339 /* We use char because int might match the return type of a gcc2
42340    builtin and then its argument prototype would still apply.  */
42341 char strftime ();
42342 int
42343 main ()
42344 {
42345 strftime ();
42346   ;
42347   return 0;
42348 }
42349 _ACEOF
42350 rm -f conftest.$ac_objext conftest$ac_exeext
42351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42352   (eval $ac_link) 2>conftest.er1
42353   ac_status=$?
42354   grep -v '^ *+' conftest.er1 >conftest.err
42355   rm -f conftest.er1
42356   cat conftest.err >&5
42357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358   (exit $ac_status); } &&
42359          { ac_try='test -z "$ac_c_werror_flag"
42360                          || test ! -s conftest.err'
42361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42362   (eval $ac_try) 2>&5
42363   ac_status=$?
42364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42365   (exit $ac_status); }; } &&
42366          { ac_try='test -s conftest$ac_exeext'
42367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42368   (eval $ac_try) 2>&5
42369   ac_status=$?
42370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42371   (exit $ac_status); }; }; then
42372   ac_cv_lib_intl_strftime=yes
42373 else
42374   echo "$as_me: failed program was:" >&5
42375 sed 's/^/| /' conftest.$ac_ext >&5
42376
42377 ac_cv_lib_intl_strftime=no
42378 fi
42379 rm -f conftest.err conftest.$ac_objext \
42380       conftest$ac_exeext conftest.$ac_ext
42381 LIBS=$ac_check_lib_save_LIBS
42382 fi
42383 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
42384 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
42385 if test $ac_cv_lib_intl_strftime = yes; then
42386   cat >>confdefs.h <<\_ACEOF
42387 #define HAVE_STRFTIME 1
42388 _ACEOF
42389
42390 LIBS="-lintl $LIBS"
42391 fi
42392
42393 fi
42394 done
42395
42396
42397 echo "$as_me:$LINENO: checking for inet_aton()" >&5
42398 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
42399 if test "${ol_cv_func_inet_aton+set}" = set; then
42400   echo $ECHO_N "(cached) $ECHO_C" >&6
42401 else
42402   cat >conftest.$ac_ext <<_ACEOF
42403 /* confdefs.h.  */
42404 _ACEOF
42405 cat confdefs.h >>conftest.$ac_ext
42406 cat >>conftest.$ac_ext <<_ACEOF
42407 /* end confdefs.h.  */
42408
42409 #ifdef HAVE_SYS_TYPES_H
42410 #       include <sys/types.h>
42411 #endif
42412 #ifdef HAVE_SYS_SOCKET_H
42413 #       include <sys/socket.h>
42414 #       ifdef HAVE_SYS_SELECT_H
42415 #               include <sys/select.h>
42416 #       endif
42417 #       include <netinet/in.h>
42418 #       ifdef HAVE_ARPA_INET_H
42419 #               include <arpa/inet.h>
42420 #       endif
42421 #endif
42422
42423 int
42424 main ()
42425 {
42426 struct in_addr in;
42427 int rc = inet_aton( "255.255.255.255", &in );
42428   ;
42429   return 0;
42430 }
42431 _ACEOF
42432 rm -f conftest.$ac_objext conftest$ac_exeext
42433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42434   (eval $ac_link) 2>conftest.er1
42435   ac_status=$?
42436   grep -v '^ *+' conftest.er1 >conftest.err
42437   rm -f conftest.er1
42438   cat conftest.err >&5
42439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440   (exit $ac_status); } &&
42441          { ac_try='test -z "$ac_c_werror_flag"
42442                          || test ! -s conftest.err'
42443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444   (eval $ac_try) 2>&5
42445   ac_status=$?
42446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447   (exit $ac_status); }; } &&
42448          { ac_try='test -s conftest$ac_exeext'
42449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42450   (eval $ac_try) 2>&5
42451   ac_status=$?
42452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453   (exit $ac_status); }; }; then
42454   ol_cv_func_inet_aton=yes
42455 else
42456   echo "$as_me: failed program was:" >&5
42457 sed 's/^/| /' conftest.$ac_ext >&5
42458
42459 ol_cv_func_inet_aton=no
42460 fi
42461 rm -f conftest.err conftest.$ac_objext \
42462       conftest$ac_exeext conftest.$ac_ext
42463 fi
42464 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
42465 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
42466   if test $ol_cv_func_inet_aton != no; then
42467
42468 cat >>confdefs.h <<\_ACEOF
42469 #define HAVE_INET_ATON 1
42470 _ACEOF
42471
42472   fi
42473
42474
42475 echo "$as_me:$LINENO: checking for _spawnlp" >&5
42476 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
42477 if test "${ac_cv_func__spawnlp+set}" = set; then
42478   echo $ECHO_N "(cached) $ECHO_C" >&6
42479 else
42480   cat >conftest.$ac_ext <<_ACEOF
42481 /* confdefs.h.  */
42482 _ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h.  */
42486 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
42487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42488 #define _spawnlp innocuous__spawnlp
42489
42490 /* System header to define __stub macros and hopefully few prototypes,
42491     which can conflict with char _spawnlp (); below.
42492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42493     <limits.h> exists even on freestanding compilers.  */
42494
42495 #ifdef __STDC__
42496 # include <limits.h>
42497 #else
42498 # include <assert.h>
42499 #endif
42500
42501 #undef _spawnlp
42502
42503 /* Override any gcc2 internal prototype to avoid an error.  */
42504 #ifdef __cplusplus
42505 extern "C"
42506 {
42507 #endif
42508 /* We use char because int might match the return type of a gcc2
42509    builtin and then its argument prototype would still apply.  */
42510 char _spawnlp ();
42511 /* The GNU C library defines this for functions which it implements
42512     to always fail with ENOSYS.  Some functions are actually named
42513     something starting with __ and the normal name is an alias.  */
42514 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
42515 choke me
42516 #else
42517 char (*f) () = _spawnlp;
42518 #endif
42519 #ifdef __cplusplus
42520 }
42521 #endif
42522
42523 int
42524 main ()
42525 {
42526 return f != _spawnlp;
42527   ;
42528   return 0;
42529 }
42530 _ACEOF
42531 rm -f conftest.$ac_objext conftest$ac_exeext
42532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42533   (eval $ac_link) 2>conftest.er1
42534   ac_status=$?
42535   grep -v '^ *+' conftest.er1 >conftest.err
42536   rm -f conftest.er1
42537   cat conftest.err >&5
42538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42539   (exit $ac_status); } &&
42540          { ac_try='test -z "$ac_c_werror_flag"
42541                          || test ! -s conftest.err'
42542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42543   (eval $ac_try) 2>&5
42544   ac_status=$?
42545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546   (exit $ac_status); }; } &&
42547          { ac_try='test -s conftest$ac_exeext'
42548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42549   (eval $ac_try) 2>&5
42550   ac_status=$?
42551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42552   (exit $ac_status); }; }; then
42553   ac_cv_func__spawnlp=yes
42554 else
42555   echo "$as_me: failed program was:" >&5
42556 sed 's/^/| /' conftest.$ac_ext >&5
42557
42558 ac_cv_func__spawnlp=no
42559 fi
42560 rm -f conftest.err conftest.$ac_objext \
42561       conftest$ac_exeext conftest.$ac_ext
42562 fi
42563 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
42564 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
42565 if test $ac_cv_func__spawnlp = yes; then
42566
42567 cat >>confdefs.h <<\_ACEOF
42568 #define HAVE_SPAWNLP 1
42569 _ACEOF
42570
42571 fi
42572
42573
42574 echo "$as_me:$LINENO: checking for _snprintf" >&5
42575 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
42576 if test "${ac_cv_func__snprintf+set}" = set; then
42577   echo $ECHO_N "(cached) $ECHO_C" >&6
42578 else
42579   cat >conftest.$ac_ext <<_ACEOF
42580 /* confdefs.h.  */
42581 _ACEOF
42582 cat confdefs.h >>conftest.$ac_ext
42583 cat >>conftest.$ac_ext <<_ACEOF
42584 /* end confdefs.h.  */
42585 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
42586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42587 #define _snprintf innocuous__snprintf
42588
42589 /* System header to define __stub macros and hopefully few prototypes,
42590     which can conflict with char _snprintf (); below.
42591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42592     <limits.h> exists even on freestanding compilers.  */
42593
42594 #ifdef __STDC__
42595 # include <limits.h>
42596 #else
42597 # include <assert.h>
42598 #endif
42599
42600 #undef _snprintf
42601
42602 /* Override any gcc2 internal prototype to avoid an error.  */
42603 #ifdef __cplusplus
42604 extern "C"
42605 {
42606 #endif
42607 /* We use char because int might match the return type of a gcc2
42608    builtin and then its argument prototype would still apply.  */
42609 char _snprintf ();
42610 /* The GNU C library defines this for functions which it implements
42611     to always fail with ENOSYS.  Some functions are actually named
42612     something starting with __ and the normal name is an alias.  */
42613 #if defined (__stub__snprintf) || defined (__stub____snprintf)
42614 choke me
42615 #else
42616 char (*f) () = _snprintf;
42617 #endif
42618 #ifdef __cplusplus
42619 }
42620 #endif
42621
42622 int
42623 main ()
42624 {
42625 return f != _snprintf;
42626   ;
42627   return 0;
42628 }
42629 _ACEOF
42630 rm -f conftest.$ac_objext conftest$ac_exeext
42631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42632   (eval $ac_link) 2>conftest.er1
42633   ac_status=$?
42634   grep -v '^ *+' conftest.er1 >conftest.err
42635   rm -f conftest.er1
42636   cat conftest.err >&5
42637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638   (exit $ac_status); } &&
42639          { ac_try='test -z "$ac_c_werror_flag"
42640                          || test ! -s conftest.err'
42641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42642   (eval $ac_try) 2>&5
42643   ac_status=$?
42644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645   (exit $ac_status); }; } &&
42646          { ac_try='test -s conftest$ac_exeext'
42647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42648   (eval $ac_try) 2>&5
42649   ac_status=$?
42650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651   (exit $ac_status); }; }; then
42652   ac_cv_func__snprintf=yes
42653 else
42654   echo "$as_me: failed program was:" >&5
42655 sed 's/^/| /' conftest.$ac_ext >&5
42656
42657 ac_cv_func__snprintf=no
42658 fi
42659 rm -f conftest.err conftest.$ac_objext \
42660       conftest$ac_exeext conftest.$ac_ext
42661 fi
42662 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
42663 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
42664 if test $ac_cv_func__snprintf = yes; then
42665   ac_cv_func_snprintf=yes
42666
42667 cat >>confdefs.h <<\_ACEOF
42668 #define snprintf _snprintf
42669 _ACEOF
42670
42671
42672 fi
42673
42674
42675 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
42676 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
42677 if test "${ac_cv_func__vsnprintf+set}" = set; then
42678   echo $ECHO_N "(cached) $ECHO_C" >&6
42679 else
42680   cat >conftest.$ac_ext <<_ACEOF
42681 /* confdefs.h.  */
42682 _ACEOF
42683 cat confdefs.h >>conftest.$ac_ext
42684 cat >>conftest.$ac_ext <<_ACEOF
42685 /* end confdefs.h.  */
42686 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
42687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42688 #define _vsnprintf innocuous__vsnprintf
42689
42690 /* System header to define __stub macros and hopefully few prototypes,
42691     which can conflict with char _vsnprintf (); below.
42692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42693     <limits.h> exists even on freestanding compilers.  */
42694
42695 #ifdef __STDC__
42696 # include <limits.h>
42697 #else
42698 # include <assert.h>
42699 #endif
42700
42701 #undef _vsnprintf
42702
42703 /* Override any gcc2 internal prototype to avoid an error.  */
42704 #ifdef __cplusplus
42705 extern "C"
42706 {
42707 #endif
42708 /* We use char because int might match the return type of a gcc2
42709    builtin and then its argument prototype would still apply.  */
42710 char _vsnprintf ();
42711 /* The GNU C library defines this for functions which it implements
42712     to always fail with ENOSYS.  Some functions are actually named
42713     something starting with __ and the normal name is an alias.  */
42714 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
42715 choke me
42716 #else
42717 char (*f) () = _vsnprintf;
42718 #endif
42719 #ifdef __cplusplus
42720 }
42721 #endif
42722
42723 int
42724 main ()
42725 {
42726 return f != _vsnprintf;
42727   ;
42728   return 0;
42729 }
42730 _ACEOF
42731 rm -f conftest.$ac_objext conftest$ac_exeext
42732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42733   (eval $ac_link) 2>conftest.er1
42734   ac_status=$?
42735   grep -v '^ *+' conftest.er1 >conftest.err
42736   rm -f conftest.er1
42737   cat conftest.err >&5
42738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42739   (exit $ac_status); } &&
42740          { ac_try='test -z "$ac_c_werror_flag"
42741                          || test ! -s conftest.err'
42742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42743   (eval $ac_try) 2>&5
42744   ac_status=$?
42745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42746   (exit $ac_status); }; } &&
42747          { ac_try='test -s conftest$ac_exeext'
42748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42749   (eval $ac_try) 2>&5
42750   ac_status=$?
42751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752   (exit $ac_status); }; }; then
42753   ac_cv_func__vsnprintf=yes
42754 else
42755   echo "$as_me: failed program was:" >&5
42756 sed 's/^/| /' conftest.$ac_ext >&5
42757
42758 ac_cv_func__vsnprintf=no
42759 fi
42760 rm -f conftest.err conftest.$ac_objext \
42761       conftest$ac_exeext conftest.$ac_ext
42762 fi
42763 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
42764 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
42765 if test $ac_cv_func__vsnprintf = yes; then
42766   ac_cv_func_vsnprintf=yes
42767
42768 cat >>confdefs.h <<\_ACEOF
42769 #define vsnprintf _vsnprintf
42770 _ACEOF
42771
42772
42773 fi
42774
42775
42776
42777 for ac_func in vprintf
42778 do
42779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42780 echo "$as_me:$LINENO: checking for $ac_func" >&5
42781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42782 if eval "test \"\${$as_ac_var+set}\" = set"; then
42783   echo $ECHO_N "(cached) $ECHO_C" >&6
42784 else
42785   cat >conftest.$ac_ext <<_ACEOF
42786 /* confdefs.h.  */
42787 _ACEOF
42788 cat confdefs.h >>conftest.$ac_ext
42789 cat >>conftest.$ac_ext <<_ACEOF
42790 /* end confdefs.h.  */
42791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42793 #define $ac_func innocuous_$ac_func
42794
42795 /* System header to define __stub macros and hopefully few prototypes,
42796     which can conflict with char $ac_func (); below.
42797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42798     <limits.h> exists even on freestanding compilers.  */
42799
42800 #ifdef __STDC__
42801 # include <limits.h>
42802 #else
42803 # include <assert.h>
42804 #endif
42805
42806 #undef $ac_func
42807
42808 /* Override any gcc2 internal prototype to avoid an error.  */
42809 #ifdef __cplusplus
42810 extern "C"
42811 {
42812 #endif
42813 /* We use char because int might match the return type of a gcc2
42814    builtin and then its argument prototype would still apply.  */
42815 char $ac_func ();
42816 /* The GNU C library defines this for functions which it implements
42817     to always fail with ENOSYS.  Some functions are actually named
42818     something starting with __ and the normal name is an alias.  */
42819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42820 choke me
42821 #else
42822 char (*f) () = $ac_func;
42823 #endif
42824 #ifdef __cplusplus
42825 }
42826 #endif
42827
42828 int
42829 main ()
42830 {
42831 return f != $ac_func;
42832   ;
42833   return 0;
42834 }
42835 _ACEOF
42836 rm -f conftest.$ac_objext conftest$ac_exeext
42837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42838   (eval $ac_link) 2>conftest.er1
42839   ac_status=$?
42840   grep -v '^ *+' conftest.er1 >conftest.err
42841   rm -f conftest.er1
42842   cat conftest.err >&5
42843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42844   (exit $ac_status); } &&
42845          { ac_try='test -z "$ac_c_werror_flag"
42846                          || test ! -s conftest.err'
42847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42848   (eval $ac_try) 2>&5
42849   ac_status=$?
42850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851   (exit $ac_status); }; } &&
42852          { ac_try='test -s conftest$ac_exeext'
42853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42854   (eval $ac_try) 2>&5
42855   ac_status=$?
42856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42857   (exit $ac_status); }; }; then
42858   eval "$as_ac_var=yes"
42859 else
42860   echo "$as_me: failed program was:" >&5
42861 sed 's/^/| /' conftest.$ac_ext >&5
42862
42863 eval "$as_ac_var=no"
42864 fi
42865 rm -f conftest.err conftest.$ac_objext \
42866       conftest$ac_exeext conftest.$ac_ext
42867 fi
42868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42870 if test `eval echo '${'$as_ac_var'}'` = yes; then
42871   cat >>confdefs.h <<_ACEOF
42872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42873 _ACEOF
42874
42875 echo "$as_me:$LINENO: checking for _doprnt" >&5
42876 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
42877 if test "${ac_cv_func__doprnt+set}" = set; then
42878   echo $ECHO_N "(cached) $ECHO_C" >&6
42879 else
42880   cat >conftest.$ac_ext <<_ACEOF
42881 /* confdefs.h.  */
42882 _ACEOF
42883 cat confdefs.h >>conftest.$ac_ext
42884 cat >>conftest.$ac_ext <<_ACEOF
42885 /* end confdefs.h.  */
42886 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
42887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42888 #define _doprnt innocuous__doprnt
42889
42890 /* System header to define __stub macros and hopefully few prototypes,
42891     which can conflict with char _doprnt (); below.
42892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42893     <limits.h> exists even on freestanding compilers.  */
42894
42895 #ifdef __STDC__
42896 # include <limits.h>
42897 #else
42898 # include <assert.h>
42899 #endif
42900
42901 #undef _doprnt
42902
42903 /* Override any gcc2 internal prototype to avoid an error.  */
42904 #ifdef __cplusplus
42905 extern "C"
42906 {
42907 #endif
42908 /* We use char because int might match the return type of a gcc2
42909    builtin and then its argument prototype would still apply.  */
42910 char _doprnt ();
42911 /* The GNU C library defines this for functions which it implements
42912     to always fail with ENOSYS.  Some functions are actually named
42913     something starting with __ and the normal name is an alias.  */
42914 #if defined (__stub__doprnt) || defined (__stub____doprnt)
42915 choke me
42916 #else
42917 char (*f) () = _doprnt;
42918 #endif
42919 #ifdef __cplusplus
42920 }
42921 #endif
42922
42923 int
42924 main ()
42925 {
42926 return f != _doprnt;
42927   ;
42928   return 0;
42929 }
42930 _ACEOF
42931 rm -f conftest.$ac_objext conftest$ac_exeext
42932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42933   (eval $ac_link) 2>conftest.er1
42934   ac_status=$?
42935   grep -v '^ *+' conftest.er1 >conftest.err
42936   rm -f conftest.er1
42937   cat conftest.err >&5
42938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939   (exit $ac_status); } &&
42940          { ac_try='test -z "$ac_c_werror_flag"
42941                          || test ! -s conftest.err'
42942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42943   (eval $ac_try) 2>&5
42944   ac_status=$?
42945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42946   (exit $ac_status); }; } &&
42947          { ac_try='test -s conftest$ac_exeext'
42948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42949   (eval $ac_try) 2>&5
42950   ac_status=$?
42951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42952   (exit $ac_status); }; }; then
42953   ac_cv_func__doprnt=yes
42954 else
42955   echo "$as_me: failed program was:" >&5
42956 sed 's/^/| /' conftest.$ac_ext >&5
42957
42958 ac_cv_func__doprnt=no
42959 fi
42960 rm -f conftest.err conftest.$ac_objext \
42961       conftest$ac_exeext conftest.$ac_ext
42962 fi
42963 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
42964 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
42965 if test $ac_cv_func__doprnt = yes; then
42966
42967 cat >>confdefs.h <<\_ACEOF
42968 #define HAVE_DOPRNT 1
42969 _ACEOF
42970
42971 fi
42972
42973 fi
42974 done
42975
42976
42977
42978 if test $ac_cv_func_vprintf = yes ; then
42979
42980
42981 for ac_func in snprintf vsnprintf
42982 do
42983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42984 echo "$as_me:$LINENO: checking for $ac_func" >&5
42985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42986 if eval "test \"\${$as_ac_var+set}\" = set"; then
42987   echo $ECHO_N "(cached) $ECHO_C" >&6
42988 else
42989   cat >conftest.$ac_ext <<_ACEOF
42990 /* confdefs.h.  */
42991 _ACEOF
42992 cat confdefs.h >>conftest.$ac_ext
42993 cat >>conftest.$ac_ext <<_ACEOF
42994 /* end confdefs.h.  */
42995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42997 #define $ac_func innocuous_$ac_func
42998
42999 /* System header to define __stub macros and hopefully few prototypes,
43000     which can conflict with char $ac_func (); below.
43001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43002     <limits.h> exists even on freestanding compilers.  */
43003
43004 #ifdef __STDC__
43005 # include <limits.h>
43006 #else
43007 # include <assert.h>
43008 #endif
43009
43010 #undef $ac_func
43011
43012 /* Override any gcc2 internal prototype to avoid an error.  */
43013 #ifdef __cplusplus
43014 extern "C"
43015 {
43016 #endif
43017 /* We use char because int might match the return type of a gcc2
43018    builtin and then its argument prototype would still apply.  */
43019 char $ac_func ();
43020 /* The GNU C library defines this for functions which it implements
43021     to always fail with ENOSYS.  Some functions are actually named
43022     something starting with __ and the normal name is an alias.  */
43023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43024 choke me
43025 #else
43026 char (*f) () = $ac_func;
43027 #endif
43028 #ifdef __cplusplus
43029 }
43030 #endif
43031
43032 int
43033 main ()
43034 {
43035 return f != $ac_func;
43036   ;
43037   return 0;
43038 }
43039 _ACEOF
43040 rm -f conftest.$ac_objext conftest$ac_exeext
43041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43042   (eval $ac_link) 2>conftest.er1
43043   ac_status=$?
43044   grep -v '^ *+' conftest.er1 >conftest.err
43045   rm -f conftest.er1
43046   cat conftest.err >&5
43047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048   (exit $ac_status); } &&
43049          { ac_try='test -z "$ac_c_werror_flag"
43050                          || test ! -s conftest.err'
43051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43052   (eval $ac_try) 2>&5
43053   ac_status=$?
43054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43055   (exit $ac_status); }; } &&
43056          { ac_try='test -s conftest$ac_exeext'
43057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43058   (eval $ac_try) 2>&5
43059   ac_status=$?
43060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43061   (exit $ac_status); }; }; then
43062   eval "$as_ac_var=yes"
43063 else
43064   echo "$as_me: failed program was:" >&5
43065 sed 's/^/| /' conftest.$ac_ext >&5
43066
43067 eval "$as_ac_var=no"
43068 fi
43069 rm -f conftest.err conftest.$ac_objext \
43070       conftest$ac_exeext conftest.$ac_ext
43071 fi
43072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43074 if test `eval echo '${'$as_ac_var'}'` = yes; then
43075   cat >>confdefs.h <<_ACEOF
43076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43077 _ACEOF
43078
43079 fi
43080 done
43081
43082 fi
43083
43084
43085
43086
43087
43088
43089
43090
43091
43092
43093
43094
43095
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105
43106
43107
43108
43109
43110
43111
43112
43113
43114
43115
43116
43117
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127
43128
43129
43130
43131
43132
43133
43134
43135
43136
43137
43138
43139 for ac_func in \
43140         bcopy                   \
43141         closesocket             \
43142         chroot                  \
43143         endgrent                \
43144         endpwent                \
43145         fcntl                   \
43146         flock                   \
43147         fstat                   \
43148         getdtablesize   \
43149         getgrgid                \
43150         gethostname             \
43151         getpass                 \
43152         getpassphrase   \
43153         getpwuid                \
43154         getpwnam                \
43155         getspnam                \
43156         gettimeofday    \
43157         initgroups              \
43158         inet_ntoa_b             \
43159         lockf                   \
43160         memcpy                  \
43161         memmove                 \
43162         memrchr                 \
43163         mkstemp                 \
43164         mktemp                  \
43165         pipe                    \
43166         read                    \
43167         recv                    \
43168         recvfrom                \
43169         setpwfile               \
43170         setgid                  \
43171         setegid                 \
43172         setsid                  \
43173         setuid                  \
43174         seteuid                 \
43175         signal                  \
43176         strdup                  \
43177         strpbrk                 \
43178         strrchr                 \
43179         strsep                  \
43180         strstr                  \
43181         strtol                  \
43182         strtoul                 \
43183         strtoq                  \
43184         strtouq                 \
43185         strtoll                 \
43186         strspn                  \
43187         sysconf                 \
43188         usleep                  \
43189         waitpid                 \
43190         wait4                   \
43191         write                   \
43192         send                    \
43193         sendmsg                 \
43194         sendto                  \
43195
43196 do
43197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43198 echo "$as_me:$LINENO: checking for $ac_func" >&5
43199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43200 if eval "test \"\${$as_ac_var+set}\" = set"; then
43201   echo $ECHO_N "(cached) $ECHO_C" >&6
43202 else
43203   cat >conftest.$ac_ext <<_ACEOF
43204 /* confdefs.h.  */
43205 _ACEOF
43206 cat confdefs.h >>conftest.$ac_ext
43207 cat >>conftest.$ac_ext <<_ACEOF
43208 /* end confdefs.h.  */
43209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43211 #define $ac_func innocuous_$ac_func
43212
43213 /* System header to define __stub macros and hopefully few prototypes,
43214     which can conflict with char $ac_func (); below.
43215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43216     <limits.h> exists even on freestanding compilers.  */
43217
43218 #ifdef __STDC__
43219 # include <limits.h>
43220 #else
43221 # include <assert.h>
43222 #endif
43223
43224 #undef $ac_func
43225
43226 /* Override any gcc2 internal prototype to avoid an error.  */
43227 #ifdef __cplusplus
43228 extern "C"
43229 {
43230 #endif
43231 /* We use char because int might match the return type of a gcc2
43232    builtin and then its argument prototype would still apply.  */
43233 char $ac_func ();
43234 /* The GNU C library defines this for functions which it implements
43235     to always fail with ENOSYS.  Some functions are actually named
43236     something starting with __ and the normal name is an alias.  */
43237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43238 choke me
43239 #else
43240 char (*f) () = $ac_func;
43241 #endif
43242 #ifdef __cplusplus
43243 }
43244 #endif
43245
43246 int
43247 main ()
43248 {
43249 return f != $ac_func;
43250   ;
43251   return 0;
43252 }
43253 _ACEOF
43254 rm -f conftest.$ac_objext conftest$ac_exeext
43255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43256   (eval $ac_link) 2>conftest.er1
43257   ac_status=$?
43258   grep -v '^ *+' conftest.er1 >conftest.err
43259   rm -f conftest.er1
43260   cat conftest.err >&5
43261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262   (exit $ac_status); } &&
43263          { ac_try='test -z "$ac_c_werror_flag"
43264                          || test ! -s conftest.err'
43265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43266   (eval $ac_try) 2>&5
43267   ac_status=$?
43268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269   (exit $ac_status); }; } &&
43270          { ac_try='test -s conftest$ac_exeext'
43271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43272   (eval $ac_try) 2>&5
43273   ac_status=$?
43274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275   (exit $ac_status); }; }; then
43276   eval "$as_ac_var=yes"
43277 else
43278   echo "$as_me: failed program was:" >&5
43279 sed 's/^/| /' conftest.$ac_ext >&5
43280
43281 eval "$as_ac_var=no"
43282 fi
43283 rm -f conftest.err conftest.$ac_objext \
43284       conftest$ac_exeext conftest.$ac_ext
43285 fi
43286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43288 if test `eval echo '${'$as_ac_var'}'` = yes; then
43289   cat >>confdefs.h <<_ACEOF
43290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43291 _ACEOF
43292
43293 fi
43294 done
43295
43296
43297
43298
43299 for ac_func in getopt getpeereid
43300 do
43301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43302 echo "$as_me:$LINENO: checking for $ac_func" >&5
43303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43304 if eval "test \"\${$as_ac_var+set}\" = set"; then
43305   echo $ECHO_N "(cached) $ECHO_C" >&6
43306 else
43307   cat >conftest.$ac_ext <<_ACEOF
43308 /* confdefs.h.  */
43309 _ACEOF
43310 cat confdefs.h >>conftest.$ac_ext
43311 cat >>conftest.$ac_ext <<_ACEOF
43312 /* end confdefs.h.  */
43313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43315 #define $ac_func innocuous_$ac_func
43316
43317 /* System header to define __stub macros and hopefully few prototypes,
43318     which can conflict with char $ac_func (); below.
43319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43320     <limits.h> exists even on freestanding compilers.  */
43321
43322 #ifdef __STDC__
43323 # include <limits.h>
43324 #else
43325 # include <assert.h>
43326 #endif
43327
43328 #undef $ac_func
43329
43330 /* Override any gcc2 internal prototype to avoid an error.  */
43331 #ifdef __cplusplus
43332 extern "C"
43333 {
43334 #endif
43335 /* We use char because int might match the return type of a gcc2
43336    builtin and then its argument prototype would still apply.  */
43337 char $ac_func ();
43338 /* The GNU C library defines this for functions which it implements
43339     to always fail with ENOSYS.  Some functions are actually named
43340     something starting with __ and the normal name is an alias.  */
43341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43342 choke me
43343 #else
43344 char (*f) () = $ac_func;
43345 #endif
43346 #ifdef __cplusplus
43347 }
43348 #endif
43349
43350 int
43351 main ()
43352 {
43353 return f != $ac_func;
43354   ;
43355   return 0;
43356 }
43357 _ACEOF
43358 rm -f conftest.$ac_objext conftest$ac_exeext
43359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43360   (eval $ac_link) 2>conftest.er1
43361   ac_status=$?
43362   grep -v '^ *+' conftest.er1 >conftest.err
43363   rm -f conftest.er1
43364   cat conftest.err >&5
43365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366   (exit $ac_status); } &&
43367          { ac_try='test -z "$ac_c_werror_flag"
43368                          || test ! -s conftest.err'
43369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43370   (eval $ac_try) 2>&5
43371   ac_status=$?
43372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43373   (exit $ac_status); }; } &&
43374          { ac_try='test -s conftest$ac_exeext'
43375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43376   (eval $ac_try) 2>&5
43377   ac_status=$?
43378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379   (exit $ac_status); }; }; then
43380   eval "$as_ac_var=yes"
43381 else
43382   echo "$as_me: failed program was:" >&5
43383 sed 's/^/| /' conftest.$ac_ext >&5
43384
43385 eval "$as_ac_var=no"
43386 fi
43387 rm -f conftest.err conftest.$ac_objext \
43388       conftest$ac_exeext conftest.$ac_ext
43389 fi
43390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43392 if test `eval echo '${'$as_ac_var'}'` = yes; then
43393   cat >>confdefs.h <<_ACEOF
43394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43395 _ACEOF
43396
43397 else
43398   case $LIBOBJS in
43399     "$ac_func.$ac_objext"   | \
43400   *" $ac_func.$ac_objext"   | \
43401     "$ac_func.$ac_objext "* | \
43402   *" $ac_func.$ac_objext "* ) ;;
43403   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43404 esac
43405
43406 fi
43407 done
43408
43409
43410
43411 if test "$ac_cv_func_getopt" != yes; then
43412         LIBSRCS="$LIBSRCS getopt.c"
43413 fi
43414
43415 if test "$ac_cv_func_getpeereid" != yes; then
43416
43417 for ac_func in getpeerucred
43418 do
43419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43420 echo "$as_me:$LINENO: checking for $ac_func" >&5
43421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43422 if eval "test \"\${$as_ac_var+set}\" = set"; then
43423   echo $ECHO_N "(cached) $ECHO_C" >&6
43424 else
43425   cat >conftest.$ac_ext <<_ACEOF
43426 /* confdefs.h.  */
43427 _ACEOF
43428 cat confdefs.h >>conftest.$ac_ext
43429 cat >>conftest.$ac_ext <<_ACEOF
43430 /* end confdefs.h.  */
43431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43433 #define $ac_func innocuous_$ac_func
43434
43435 /* System header to define __stub macros and hopefully few prototypes,
43436     which can conflict with char $ac_func (); below.
43437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43438     <limits.h> exists even on freestanding compilers.  */
43439
43440 #ifdef __STDC__
43441 # include <limits.h>
43442 #else
43443 # include <assert.h>
43444 #endif
43445
43446 #undef $ac_func
43447
43448 /* Override any gcc2 internal prototype to avoid an error.  */
43449 #ifdef __cplusplus
43450 extern "C"
43451 {
43452 #endif
43453 /* We use char because int might match the return type of a gcc2
43454    builtin and then its argument prototype would still apply.  */
43455 char $ac_func ();
43456 /* The GNU C library defines this for functions which it implements
43457     to always fail with ENOSYS.  Some functions are actually named
43458     something starting with __ and the normal name is an alias.  */
43459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43460 choke me
43461 #else
43462 char (*f) () = $ac_func;
43463 #endif
43464 #ifdef __cplusplus
43465 }
43466 #endif
43467
43468 int
43469 main ()
43470 {
43471 return f != $ac_func;
43472   ;
43473   return 0;
43474 }
43475 _ACEOF
43476 rm -f conftest.$ac_objext conftest$ac_exeext
43477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43478   (eval $ac_link) 2>conftest.er1
43479   ac_status=$?
43480   grep -v '^ *+' conftest.er1 >conftest.err
43481   rm -f conftest.er1
43482   cat conftest.err >&5
43483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43484   (exit $ac_status); } &&
43485          { ac_try='test -z "$ac_c_werror_flag"
43486                          || test ! -s conftest.err'
43487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43488   (eval $ac_try) 2>&5
43489   ac_status=$?
43490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43491   (exit $ac_status); }; } &&
43492          { ac_try='test -s conftest$ac_exeext'
43493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43494   (eval $ac_try) 2>&5
43495   ac_status=$?
43496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43497   (exit $ac_status); }; }; then
43498   eval "$as_ac_var=yes"
43499 else
43500   echo "$as_me: failed program was:" >&5
43501 sed 's/^/| /' conftest.$ac_ext >&5
43502
43503 eval "$as_ac_var=no"
43504 fi
43505 rm -f conftest.err conftest.$ac_objext \
43506       conftest$ac_exeext conftest.$ac_ext
43507 fi
43508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43510 if test `eval echo '${'$as_ac_var'}'` = yes; then
43511   cat >>confdefs.h <<_ACEOF
43512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43513 _ACEOF
43514
43515 fi
43516 done
43517
43518         if test "$ac_cv_func_getpeerucred" != yes ; then
43519                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
43520 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
43521 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
43522   echo $ECHO_N "(cached) $ECHO_C" >&6
43523 else
43524   cat >conftest.$ac_ext <<_ACEOF
43525 /* confdefs.h.  */
43526 _ACEOF
43527 cat confdefs.h >>conftest.$ac_ext
43528 cat >>conftest.$ac_ext <<_ACEOF
43529 /* end confdefs.h.  */
43530 $ac_includes_default
43531 #ifdef HAVE_SYS_SOCKET_H
43532 #include <sys/socket.h>
43533 #endif
43534
43535 int
43536 main ()
43537 {
43538 static struct msghdr ac_aggr;
43539 if (ac_aggr.msg_accrightslen)
43540 return 0;
43541   ;
43542   return 0;
43543 }
43544 _ACEOF
43545 rm -f conftest.$ac_objext
43546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43547   (eval $ac_compile) 2>conftest.er1
43548   ac_status=$?
43549   grep -v '^ *+' conftest.er1 >conftest.err
43550   rm -f conftest.er1
43551   cat conftest.err >&5
43552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43553   (exit $ac_status); } &&
43554          { ac_try='test -z "$ac_c_werror_flag"
43555                          || test ! -s conftest.err'
43556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43557   (eval $ac_try) 2>&5
43558   ac_status=$?
43559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43560   (exit $ac_status); }; } &&
43561          { ac_try='test -s conftest.$ac_objext'
43562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43563   (eval $ac_try) 2>&5
43564   ac_status=$?
43565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566   (exit $ac_status); }; }; then
43567   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43568 else
43569   echo "$as_me: failed program was:" >&5
43570 sed 's/^/| /' conftest.$ac_ext >&5
43571
43572 cat >conftest.$ac_ext <<_ACEOF
43573 /* confdefs.h.  */
43574 _ACEOF
43575 cat confdefs.h >>conftest.$ac_ext
43576 cat >>conftest.$ac_ext <<_ACEOF
43577 /* end confdefs.h.  */
43578 $ac_includes_default
43579 #ifdef HAVE_SYS_SOCKET_H
43580 #include <sys/socket.h>
43581 #endif
43582
43583 int
43584 main ()
43585 {
43586 static struct msghdr ac_aggr;
43587 if (sizeof ac_aggr.msg_accrightslen)
43588 return 0;
43589   ;
43590   return 0;
43591 }
43592 _ACEOF
43593 rm -f conftest.$ac_objext
43594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43595   (eval $ac_compile) 2>conftest.er1
43596   ac_status=$?
43597   grep -v '^ *+' conftest.er1 >conftest.err
43598   rm -f conftest.er1
43599   cat conftest.err >&5
43600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601   (exit $ac_status); } &&
43602          { ac_try='test -z "$ac_c_werror_flag"
43603                          || test ! -s conftest.err'
43604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43605   (eval $ac_try) 2>&5
43606   ac_status=$?
43607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608   (exit $ac_status); }; } &&
43609          { ac_try='test -s conftest.$ac_objext'
43610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43611   (eval $ac_try) 2>&5
43612   ac_status=$?
43613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614   (exit $ac_status); }; }; then
43615   ac_cv_member_struct_msghdr_msg_accrightslen=yes
43616 else
43617   echo "$as_me: failed program was:" >&5
43618 sed 's/^/| /' conftest.$ac_ext >&5
43619
43620 ac_cv_member_struct_msghdr_msg_accrightslen=no
43621 fi
43622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43623 fi
43624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43625 fi
43626 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
43627 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
43628 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
43629
43630 cat >>confdefs.h <<_ACEOF
43631 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
43632 _ACEOF
43633
43634
43635 fi
43636
43637                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
43638                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
43639 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
43640 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
43641   echo $ECHO_N "(cached) $ECHO_C" >&6
43642 else
43643   cat >conftest.$ac_ext <<_ACEOF
43644 /* confdefs.h.  */
43645 _ACEOF
43646 cat confdefs.h >>conftest.$ac_ext
43647 cat >>conftest.$ac_ext <<_ACEOF
43648 /* end confdefs.h.  */
43649 $ac_includes_default
43650 #ifdef HAVE_SYS_SOCKET_H
43651 #include <sys/socket.h>
43652 #endif
43653
43654 int
43655 main ()
43656 {
43657 static struct msghdr ac_aggr;
43658 if (ac_aggr.msg_control)
43659 return 0;
43660   ;
43661   return 0;
43662 }
43663 _ACEOF
43664 rm -f conftest.$ac_objext
43665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43666   (eval $ac_compile) 2>conftest.er1
43667   ac_status=$?
43668   grep -v '^ *+' conftest.er1 >conftest.err
43669   rm -f conftest.er1
43670   cat conftest.err >&5
43671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672   (exit $ac_status); } &&
43673          { ac_try='test -z "$ac_c_werror_flag"
43674                          || test ! -s conftest.err'
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); }; } &&
43680          { ac_try='test -s conftest.$ac_objext'
43681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43682   (eval $ac_try) 2>&5
43683   ac_status=$?
43684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685   (exit $ac_status); }; }; then
43686   ac_cv_member_struct_msghdr_msg_control=yes
43687 else
43688   echo "$as_me: failed program was:" >&5
43689 sed 's/^/| /' conftest.$ac_ext >&5
43690
43691 cat >conftest.$ac_ext <<_ACEOF
43692 /* confdefs.h.  */
43693 _ACEOF
43694 cat confdefs.h >>conftest.$ac_ext
43695 cat >>conftest.$ac_ext <<_ACEOF
43696 /* end confdefs.h.  */
43697 $ac_includes_default
43698 #ifdef HAVE_SYS_SOCKET_H
43699 #include <sys/socket.h>
43700 #endif
43701
43702 int
43703 main ()
43704 {
43705 static struct msghdr ac_aggr;
43706 if (sizeof ac_aggr.msg_control)
43707 return 0;
43708   ;
43709   return 0;
43710 }
43711 _ACEOF
43712 rm -f conftest.$ac_objext
43713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43714   (eval $ac_compile) 2>conftest.er1
43715   ac_status=$?
43716   grep -v '^ *+' conftest.er1 >conftest.err
43717   rm -f conftest.er1
43718   cat conftest.err >&5
43719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43720   (exit $ac_status); } &&
43721          { ac_try='test -z "$ac_c_werror_flag"
43722                          || test ! -s conftest.err'
43723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43724   (eval $ac_try) 2>&5
43725   ac_status=$?
43726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43727   (exit $ac_status); }; } &&
43728          { ac_try='test -s conftest.$ac_objext'
43729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43730   (eval $ac_try) 2>&5
43731   ac_status=$?
43732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733   (exit $ac_status); }; }; then
43734   ac_cv_member_struct_msghdr_msg_control=yes
43735 else
43736   echo "$as_me: failed program was:" >&5
43737 sed 's/^/| /' conftest.$ac_ext >&5
43738
43739 ac_cv_member_struct_msghdr_msg_control=no
43740 fi
43741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43742 fi
43743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43744 fi
43745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
43746 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
43747 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
43748
43749 cat >>confdefs.h <<_ACEOF
43750 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
43751 _ACEOF
43752
43753
43754 fi
43755
43756                 fi
43757         fi
43758         LIBSRCS="$LIBSRCS getpeereid.c"
43759 fi
43760
43761 if test "$ac_cv_func_snprintf" != yes ||
43762    test "$ac_cv_func_vsnprintf" != yes; then
43763         if test "$ac_cv_func_snprintf" != yes; then
43764
43765 cat >>confdefs.h <<\_ACEOF
43766 #define snprintf ber_pvt_snprintf
43767 _ACEOF
43768
43769         fi
43770         if test "$ac_cv_func_vsnprintf" != yes; then
43771
43772 cat >>confdefs.h <<\_ACEOF
43773 #define vsnprintf ber_pvt_vsnprintf
43774 _ACEOF
43775
43776         fi
43777 fi
43778
43779
43780 if test "$ol_enable_slapi" != no ; then
43781
43782 for ac_header in ltdl.h
43783 do
43784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43786   echo "$as_me:$LINENO: checking for $ac_header" >&5
43787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43789   echo $ECHO_N "(cached) $ECHO_C" >&6
43790 fi
43791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43793 else
43794   # Is the header compilable?
43795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43797 cat >conftest.$ac_ext <<_ACEOF
43798 /* confdefs.h.  */
43799 _ACEOF
43800 cat confdefs.h >>conftest.$ac_ext
43801 cat >>conftest.$ac_ext <<_ACEOF
43802 /* end confdefs.h.  */
43803 $ac_includes_default
43804 #include <$ac_header>
43805 _ACEOF
43806 rm -f conftest.$ac_objext
43807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43808   (eval $ac_compile) 2>conftest.er1
43809   ac_status=$?
43810   grep -v '^ *+' conftest.er1 >conftest.err
43811   rm -f conftest.er1
43812   cat conftest.err >&5
43813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43814   (exit $ac_status); } &&
43815          { ac_try='test -z "$ac_c_werror_flag"
43816                          || test ! -s conftest.err'
43817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43818   (eval $ac_try) 2>&5
43819   ac_status=$?
43820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43821   (exit $ac_status); }; } &&
43822          { ac_try='test -s conftest.$ac_objext'
43823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43824   (eval $ac_try) 2>&5
43825   ac_status=$?
43826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827   (exit $ac_status); }; }; then
43828   ac_header_compiler=yes
43829 else
43830   echo "$as_me: failed program was:" >&5
43831 sed 's/^/| /' conftest.$ac_ext >&5
43832
43833 ac_header_compiler=no
43834 fi
43835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43837 echo "${ECHO_T}$ac_header_compiler" >&6
43838
43839 # Is the header present?
43840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43842 cat >conftest.$ac_ext <<_ACEOF
43843 /* confdefs.h.  */
43844 _ACEOF
43845 cat confdefs.h >>conftest.$ac_ext
43846 cat >>conftest.$ac_ext <<_ACEOF
43847 /* end confdefs.h.  */
43848 #include <$ac_header>
43849 _ACEOF
43850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43852   ac_status=$?
43853   grep -v '^ *+' conftest.er1 >conftest.err
43854   rm -f conftest.er1
43855   cat conftest.err >&5
43856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857   (exit $ac_status); } >/dev/null; then
43858   if test -s conftest.err; then
43859     ac_cpp_err=$ac_c_preproc_warn_flag
43860     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43861   else
43862     ac_cpp_err=
43863   fi
43864 else
43865   ac_cpp_err=yes
43866 fi
43867 if test -z "$ac_cpp_err"; then
43868   ac_header_preproc=yes
43869 else
43870   echo "$as_me: failed program was:" >&5
43871 sed 's/^/| /' conftest.$ac_ext >&5
43872
43873   ac_header_preproc=no
43874 fi
43875 rm -f conftest.err conftest.$ac_ext
43876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43877 echo "${ECHO_T}$ac_header_preproc" >&6
43878
43879 # So?  What about this header?
43880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43881   yes:no: )
43882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43886     ac_header_preproc=yes
43887     ;;
43888   no:yes:* )
43889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43901     (
43902       cat <<\_ASBOX
43903 ## ------------------------------------------ ##
43904 ## Report this to the AC_PACKAGE_NAME lists.  ##
43905 ## ------------------------------------------ ##
43906 _ASBOX
43907     ) |
43908       sed "s/^/$as_me: WARNING:     /" >&2
43909     ;;
43910 esac
43911 echo "$as_me:$LINENO: checking for $ac_header" >&5
43912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43914   echo $ECHO_N "(cached) $ECHO_C" >&6
43915 else
43916   eval "$as_ac_Header=\$ac_header_preproc"
43917 fi
43918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43920
43921 fi
43922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43923   cat >>confdefs.h <<_ACEOF
43924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43925 _ACEOF
43926
43927 fi
43928
43929 done
43930
43931
43932         if test $ac_cv_header_ltdl_h != yes ; then
43933                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
43934 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
43935    { (exit 1); exit 1; }; }
43936         fi
43937         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
43938 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
43939 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
43940   echo $ECHO_N "(cached) $ECHO_C" >&6
43941 else
43942   ac_check_lib_save_LIBS=$LIBS
43943 LIBS="-lltdl  $LIBS"
43944 cat >conftest.$ac_ext <<_ACEOF
43945 /* confdefs.h.  */
43946 _ACEOF
43947 cat confdefs.h >>conftest.$ac_ext
43948 cat >>conftest.$ac_ext <<_ACEOF
43949 /* end confdefs.h.  */
43950
43951 /* Override any gcc2 internal prototype to avoid an error.  */
43952 #ifdef __cplusplus
43953 extern "C"
43954 #endif
43955 /* We use char because int might match the return type of a gcc2
43956    builtin and then its argument prototype would still apply.  */
43957 char lt_dlinit ();
43958 int
43959 main ()
43960 {
43961 lt_dlinit ();
43962   ;
43963   return 0;
43964 }
43965 _ACEOF
43966 rm -f conftest.$ac_objext conftest$ac_exeext
43967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43968   (eval $ac_link) 2>conftest.er1
43969   ac_status=$?
43970   grep -v '^ *+' conftest.er1 >conftest.err
43971   rm -f conftest.er1
43972   cat conftest.err >&5
43973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43974   (exit $ac_status); } &&
43975          { ac_try='test -z "$ac_c_werror_flag"
43976                          || test ! -s conftest.err'
43977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43978   (eval $ac_try) 2>&5
43979   ac_status=$?
43980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43981   (exit $ac_status); }; } &&
43982          { ac_try='test -s conftest$ac_exeext'
43983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43984   (eval $ac_try) 2>&5
43985   ac_status=$?
43986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43987   (exit $ac_status); }; }; then
43988   ac_cv_lib_ltdl_lt_dlinit=yes
43989 else
43990   echo "$as_me: failed program was:" >&5
43991 sed 's/^/| /' conftest.$ac_ext >&5
43992
43993 ac_cv_lib_ltdl_lt_dlinit=no
43994 fi
43995 rm -f conftest.err conftest.$ac_objext \
43996       conftest$ac_exeext conftest.$ac_ext
43997 LIBS=$ac_check_lib_save_LIBS
43998 fi
43999 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
44000 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
44001 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
44002
44003                 SLAPI_LIBS=-lltdl
44004                 LIBSLAPI=libslapi.a
44005                 LIBSLAPITOOLS=../libslapi.a
44006
44007 cat >>confdefs.h <<\_ACEOF
44008 #define HAVE_LIBLTDL 1
44009 _ACEOF
44010
44011
44012 else
44013   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
44014 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
44015    { (exit 1); exit 1; }; }
44016 fi
44017
44018
44019
44020 cat >>confdefs.h <<\_ACEOF
44021 #define LDAP_SLAPI 1
44022 _ACEOF
44023
44024 fi
44025
44026 if test "$ol_enable_debug" != no ; then
44027         if test "$ol_enable_debug" = traditional; then
44028
44029 cat >>confdefs.h <<\_ACEOF
44030 #define OLD_DEBUG 1
44031 _ACEOF
44032
44033         fi
44034
44035 cat >>confdefs.h <<\_ACEOF
44036 #define LDAP_DEBUG 1
44037 _ACEOF
44038
44039 fi
44040 if test "$ol_enable_syslog" = yes ; then
44041
44042 cat >>confdefs.h <<\_ACEOF
44043 #define LDAP_SYSLOG 1
44044 _ACEOF
44045
44046 fi
44047 if test "$ol_link_kbind" != no ; then
44048
44049 cat >>confdefs.h <<\_ACEOF
44050 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
44051 _ACEOF
44052
44053 fi
44054 if test "$ol_enable_proctitle" != no ; then
44055
44056 cat >>confdefs.h <<\_ACEOF
44057 #define LDAP_PROCTITLE 1
44058 _ACEOF
44059
44060 fi
44061 if test "$ol_enable_referrals" != no ; then
44062
44063 cat >>confdefs.h <<\_ACEOF
44064 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
44065 _ACEOF
44066
44067 fi
44068 if test "$ol_enable_local" != no; then
44069
44070 cat >>confdefs.h <<\_ACEOF
44071 #define LDAP_PF_LOCAL 1
44072 _ACEOF
44073
44074 fi
44075 if test "$ol_link_ipv6" != no; then
44076
44077 cat >>confdefs.h <<\_ACEOF
44078 #define LDAP_PF_INET6 1
44079 _ACEOF
44080
44081 fi
44082 if test "$ol_enable_cleartext" != no ; then
44083
44084 cat >>confdefs.h <<\_ACEOF
44085 #define SLAPD_CLEARTEXT 1
44086 _ACEOF
44087
44088 fi
44089 if test "$ol_enable_crypt" != no ; then
44090
44091 cat >>confdefs.h <<\_ACEOF
44092 #define SLAPD_CRYPT 1
44093 _ACEOF
44094
44095 fi
44096 if test "$ol_link_spasswd" != no ; then
44097
44098 cat >>confdefs.h <<\_ACEOF
44099 #define SLAPD_SPASSWD 1
44100 _ACEOF
44101
44102 fi
44103 if test "$ol_enable_multimaster" != no ; then
44104
44105 cat >>confdefs.h <<\_ACEOF
44106 #define SLAPD_MULTIMASTER 1
44107 _ACEOF
44108
44109 fi
44110 if test "$ol_enable_rlookups" != no ; then
44111
44112 cat >>confdefs.h <<\_ACEOF
44113 #define SLAPD_RLOOKUPS 1
44114 _ACEOF
44115
44116 fi
44117 if test "$ol_enable_aci" != no ; then
44118
44119 cat >>confdefs.h <<\_ACEOF
44120 #define SLAPD_ACI_ENABLED 1
44121 _ACEOF
44122
44123         WITH_ACI_ENABLED=yes
44124 else
44125         WITH_ACI_ENABLED=no
44126 fi
44127
44128 if test "$ol_link_modules" != no ; then
44129
44130 cat >>confdefs.h <<\_ACEOF
44131 #define SLAPD_MODULES 1
44132 _ACEOF
44133
44134         BUILD_SLAPD=yes
44135         SLAPD_MODULES_LDFLAGS="-dlopen self"
44136 fi
44137
44138
44139 cat >>confdefs.h <<\_ACEOF
44140 #define SLAPD_MOD_STATIC 1
44141 _ACEOF
44142
44143
44144 cat >>confdefs.h <<\_ACEOF
44145 #define SLAPD_MOD_DYNAMIC 2
44146 _ACEOF
44147
44148
44149 if test "$ol_enable_bdb" != no ; then
44150         BUILD_SLAPD=yes
44151         BUILD_BDB=$ol_enable_bdb
44152         if test "$ol_enable_bdb" = mod ; then
44153                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
44154                 MFLAG=SLAPD_MOD_DYNAMIC
44155         else
44156                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
44157                 MFLAG=SLAPD_MOD_STATIC
44158         fi
44159
44160 cat >>confdefs.h <<_ACEOF
44161 #define SLAPD_BDB $MFLAG
44162 _ACEOF
44163
44164 fi
44165
44166 if test "$ol_enable_dnssrv" != no ; then
44167         BUILD_SLAPD=yes
44168         BUILD_DNSSRV=$ol_enable_dnssrv
44169         if test "$ol_enable_dnssrv" = mod ; then
44170                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
44171                 MFLAG=SLAPD_MOD_DYNAMIC
44172         else
44173                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
44174                 MFLAG=SLAPD_MOD_STATIC
44175         fi
44176
44177 cat >>confdefs.h <<_ACEOF
44178 #define SLAPD_DNSSRV $MFLAG
44179 _ACEOF
44180
44181 fi
44182
44183 if test "$ol_enable_hdb" != no ; then
44184         BUILD_SLAPD=yes
44185         BUILD_HDB=$ol_enable_hdb
44186         if test "$ol_enable_hdb" = mod ; then
44187                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
44188                 MFLAG=SLAPD_MOD_DYNAMIC
44189         else
44190                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
44191                 MFLAG=SLAPD_MOD_STATIC
44192         fi
44193
44194 cat >>confdefs.h <<_ACEOF
44195 #define SLAPD_HDB $MFLAG
44196 _ACEOF
44197
44198 fi
44199
44200 if test "$ol_enable_ldap" != no ; then
44201         BUILD_SLAPD=yes
44202         BUILD_LDAP=$ol_enable_ldap
44203         if test "$ol_enable_ldap" = mod ; then
44204                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
44205                 MFLAG=SLAPD_MOD_DYNAMIC
44206         else
44207                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
44208                 MFLAG=SLAPD_MOD_STATIC
44209         fi
44210
44211 cat >>confdefs.h <<_ACEOF
44212 #define SLAPD_LDAP $MFLAG
44213 _ACEOF
44214
44215 fi
44216
44217 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
44218         BUILD_SLAPD=yes
44219         BUILD_LDBM=$ol_enable_ldbm
44220         if test "$ol_enable_ldbm" = mod ; then
44221                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
44222                 MFLAG=SLAPD_MOD_DYNAMIC
44223         else
44224                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
44225                 MFLAG=SLAPD_MOD_STATIC
44226         fi
44227
44228 cat >>confdefs.h <<_ACEOF
44229 #define SLAPD_LDBM $MFLAG
44230 _ACEOF
44231
44232 fi
44233
44234 if test "$ol_enable_meta" != no ; then
44235         BUILD_SLAPD=yes
44236         BUILD_META=$ol_enable_meta
44237         BUILD_REWRITE=yes
44238         if test "$ol_enable_meta" = mod ; then
44239                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
44240                 MFLAG=SLAPD_MOD_DYNAMIC
44241         else
44242                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
44243                 MFLAG=SLAPD_MOD_STATIC
44244         fi
44245
44246 cat >>confdefs.h <<_ACEOF
44247 #define SLAPD_META $MFLAG
44248 _ACEOF
44249
44250 fi
44251
44252 if test "$ol_enable_monitor" != no ; then
44253         BUILD_SLAPD=yes
44254         BUILD_MONITOR=$ol_enable_monitor
44255         if test "$ol_enable_monitor" = mod ; then
44256                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
44257                 MFLAG=SLAPD_MOD_DYNAMIC
44258         else
44259                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
44260                 MFLAG=SLAPD_MOD_STATIC
44261         fi
44262
44263 cat >>confdefs.h <<_ACEOF
44264 #define SLAPD_MONITOR $MFLAG
44265 _ACEOF
44266
44267 fi
44268
44269 if test "$ol_enable_null" != no ; then
44270         BUILD_SLAPD=yes
44271         BUILD_NULL=$ol_enable_null
44272         if test "$ol_enable_null" = mod ; then
44273                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
44274                 MFLAG=SLAPD_MOD_DYNAMIC
44275         else
44276                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
44277                 MFLAG=SLAPD_MOD_STATIC
44278         fi
44279
44280 cat >>confdefs.h <<_ACEOF
44281 #define SLAPD_NULL $MFLAG
44282 _ACEOF
44283
44284 fi
44285
44286 if test "$ol_enable_passwd" != no ; then
44287         BUILD_SLAPD=yes
44288         BUILD_PASSWD=$ol_enable_passwd
44289         if test "$ol_enable_passwd" = mod ; then
44290                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
44291                 MFLAG=SLAPD_MOD_DYNAMIC
44292         else
44293                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
44294                 MFLAG=SLAPD_MOD_STATIC
44295         fi
44296
44297 cat >>confdefs.h <<_ACEOF
44298 #define SLAPD_PASSWD $MFLAG
44299 _ACEOF
44300
44301 fi
44302
44303 if test "$ol_link_perl" != no ; then
44304         BUILD_SLAPD=yes
44305         BUILD_PERL=$ol_enable_perl
44306         if test "$ol_enable_perl" = mod ; then
44307                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
44308                 MFLAG=SLAPD_MOD_DYNAMIC
44309         else
44310                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
44311                 MFLAG=SLAPD_MOD_STATIC
44312         fi
44313
44314 cat >>confdefs.h <<_ACEOF
44315 #define SLAPD_PERL $MFLAG
44316 _ACEOF
44317
44318 fi
44319
44320 if test "$ol_enable_relay" != no ; then
44321         BUILD_SLAPD=yes
44322         BUILD_RELAY=$ol_enable_relay
44323         if test "$ol_enable_relay" = mod ; then
44324                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
44325                 MFLAG=SLAPD_MOD_DYNAMIC
44326         else
44327                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
44328                 MFLAG=SLAPD_MOD_STATIC
44329         fi
44330
44331 cat >>confdefs.h <<_ACEOF
44332 #define SLAPD_RELAY $MFLAG
44333 _ACEOF
44334
44335 fi
44336
44337 if test "$ol_enable_shell" != no ; then
44338         if test "$ol_link_threads" != no ; then
44339                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
44340 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
44341         fi
44342         BUILD_SLAPD=yes
44343         BUILD_SHELL=$ol_enable_shell
44344         if test "$ol_enable_shell" = mod ; then
44345                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
44346                 MFLAG=SLAPD_MOD_DYNAMIC
44347         else
44348                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
44349                 MFLAG=SLAPD_MOD_STATIC
44350         fi
44351
44352 cat >>confdefs.h <<_ACEOF
44353 #define SLAPD_SHELL $MFLAG
44354 _ACEOF
44355
44356 fi
44357
44358 if test "$ol_link_sql" != no ; then
44359         BUILD_SLAPD=yes
44360         BUILD_SQL=$ol_enable_sql
44361         if test "$ol_enable_sql" = mod; then
44362                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
44363                 MFLAG=SLAPD_MOD_DYNAMIC
44364         else
44365                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
44366                 MFLAG=SLAPD_MOD_STATIC
44367         fi
44368
44369 cat >>confdefs.h <<_ACEOF
44370 #define SLAPD_SQL $MFLAG
44371 _ACEOF
44372
44373 fi
44374
44375 if test "$ol_enable_accesslog" != no ; then
44376         BUILD_ACCESSLOG=$ol_enable_accesslog
44377         if test "$ol_enable_accesslog" = mod ; then
44378                 MFLAG=SLAPD_MOD_DYNAMIC
44379                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
44380         else
44381                 MFLAG=SLAPD_MOD_STATIC
44382                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
44383         fi
44384
44385 cat >>confdefs.h <<_ACEOF
44386 #define SLAPD_OVER_ACCESSLOG $MFLAG
44387 _ACEOF
44388
44389 fi
44390
44391 if test "$ol_enable_denyop" != no ; then
44392         BUILD_DENYOP=$ol_enable_denyop
44393         if test "$ol_enable_denyop" = mod ; then
44394                 MFLAG=SLAPD_MOD_DYNAMIC
44395                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
44396         else
44397                 MFLAG=SLAPD_MOD_STATIC
44398                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
44399         fi
44400
44401 cat >>confdefs.h <<_ACEOF
44402 #define SLAPD_OVER_DENYOP $MFLAG
44403 _ACEOF
44404
44405 fi
44406
44407 if test "$ol_enable_dyngroup" != no ; then
44408         BUILD_DYNGROUP=$ol_enable_dyngroup
44409         if test "$ol_enable_dyngroup" = mod ; then
44410                 MFLAG=SLAPD_MOD_DYNAMIC
44411                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
44412         else
44413                 MFLAG=SLAPD_MOD_STATIC
44414                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
44415         fi
44416
44417 cat >>confdefs.h <<_ACEOF
44418 #define SLAPD_OVER_DYNGROUP $MFLAG
44419 _ACEOF
44420
44421 fi
44422
44423 if test "$ol_enable_dynlist" != no ; then
44424         BUILD_DYNLIST=$ol_enable_dynlist
44425         if test "$ol_enable_dynlist" = mod ; then
44426                 MFLAG=SLAPD_MOD_DYNAMIC
44427                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
44428         else
44429                 MFLAG=SLAPD_MOD_STATIC
44430                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
44431         fi
44432
44433 cat >>confdefs.h <<_ACEOF
44434 #define SLAPD_OVER_DYNLIST $MFLAG
44435 _ACEOF
44436
44437 fi
44438
44439 if test "$ol_enable_lastmod" != no ; then
44440         BUILD_LASTMOD=$ol_enable_lastmod
44441         if test "$ol_enable_lastmod" = mod ; then
44442                 MFLAG=SLAPD_MOD_DYNAMIC
44443                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
44444         else
44445                 MFLAG=SLAPD_MOD_STATIC
44446                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
44447         fi
44448
44449 cat >>confdefs.h <<_ACEOF
44450 #define SLAPD_OVER_LASTMOD $MFLAG
44451 _ACEOF
44452
44453 fi
44454
44455 if test "$ol_enable_ppolicy" != no ; then
44456         BUILD_PPOLICY=$ol_enable_ppolicy
44457         if test "$ol_enable_ppolicy" = mod ; then
44458                 MFLAG=SLAPD_MOD_DYNAMIC
44459                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
44460         else
44461                 MFLAG=SLAPD_MOD_STATIC
44462                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
44463         fi
44464
44465 cat >>confdefs.h <<_ACEOF
44466 #define SLAPD_OVER_PPOLICY $MFLAG
44467 _ACEOF
44468
44469 fi
44470
44471 if test "$ol_enable_proxycache" != no ; then
44472         BUILD_PROXYCACHE=$ol_enable_proxycache
44473         if test "$ol_enable_proxycache" = mod ; then
44474                 MFLAG=SLAPD_MOD_DYNAMIC
44475                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
44476         else
44477                 MFLAG=SLAPD_MOD_STATIC
44478                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
44479         fi
44480
44481 cat >>confdefs.h <<_ACEOF
44482 #define SLAPD_OVER_PROXYCACHE $MFLAG
44483 _ACEOF
44484
44485 fi
44486
44487 if test "$ol_enable_refint" != no ; then
44488         BUILD_REFINT=$ol_enable_refint
44489         if test "$ol_enable_refint" = mod ; then
44490                 MFLAG=SLAPD_MOD_DYNAMIC
44491                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
44492         else
44493                 MFLAG=SLAPD_MOD_STATIC
44494                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
44495         fi
44496
44497 cat >>confdefs.h <<_ACEOF
44498 #define SLAPD_OVER_REFINT $MFLAG
44499 _ACEOF
44500
44501 fi
44502
44503 if test "$ol_enable_retcode" != no ; then
44504         BUILD_RETCODE=$ol_enable_retcode
44505         if test "$ol_enable_retcode" = mod ; then
44506                 MFLAG=SLAPD_MOD_DYNAMIC
44507                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
44508         else
44509                 MFLAG=SLAPD_MOD_STATIC
44510                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
44511         fi
44512
44513 cat >>confdefs.h <<_ACEOF
44514 #define SLAPD_OVER_RETCODE $MFLAG
44515 _ACEOF
44516
44517 fi
44518
44519 if test "$ol_enable_rwm" != no ; then
44520         BUILD_REWRITE=yes
44521         BUILD_RWM=$ol_enable_rwm
44522         if test "$ol_enable_rwm" = mod ; then
44523                 MFLAG=SLAPD_MOD_DYNAMIC
44524                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
44525         else
44526                 MFLAG=SLAPD_MOD_STATIC
44527                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
44528         fi
44529
44530 cat >>confdefs.h <<_ACEOF
44531 #define SLAPD_OVER_RWM $MFLAG
44532 _ACEOF
44533
44534 fi
44535
44536 if test "$ol_enable_syncprov" != no ; then
44537         BUILD_SYNCPROV=$ol_enable_syncprov
44538         if test "$ol_enable_syncprov" = mod ; then
44539                 MFLAG=SLAPD_MOD_DYNAMIC
44540                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
44541         else
44542                 MFLAG=SLAPD_MOD_STATIC
44543                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
44544         fi
44545
44546 cat >>confdefs.h <<_ACEOF
44547 #define SLAPD_OVER_SYNCPROV $MFLAG
44548 _ACEOF
44549
44550 fi
44551
44552 if test "$ol_enable_translucent" != no ; then
44553         BUILD_TRANSLUCENT=$ol_enable_translucent
44554         if test "$ol_enable_translucent" = mod ; then
44555                 MFLAG=SLAPD_MOD_DYNAMIC
44556                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
44557         else
44558                 MFLAG=SLAPD_MOD_STATIC
44559                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
44560         fi
44561
44562 cat >>confdefs.h <<_ACEOF
44563 #define SLAPD_OVER_TRANSLUCENT $MFLAG
44564 _ACEOF
44565
44566 fi
44567
44568 if test "$ol_enable_unique" != no ; then
44569         BUILD_UNIQUE=$ol_enable_unique
44570         if test "$ol_enable_unique" = mod ; then
44571                 MFLAG=SLAPD_MOD_DYNAMIC
44572                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
44573         else
44574                 MFLAG=SLAPD_MOD_STATIC
44575                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
44576         fi
44577
44578 cat >>confdefs.h <<_ACEOF
44579 #define SLAPD_OVER_UNIQUE $MFLAG
44580 _ACEOF
44581
44582 fi
44583
44584 if test "$ol_enable_valsort" != no ; then
44585         BUILD_VALSORT=$ol_enable_valsort
44586         if test "$ol_enable_valsort" = mod ; then
44587                 MFLAG=SLAPD_MOD_DYNAMIC
44588                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
44589         else
44590                 MFLAG=SLAPD_MOD_STATIC
44591                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
44592         fi
44593
44594 cat >>confdefs.h <<_ACEOF
44595 #define SLAPD_OVER_VALSORT $MFLAG
44596 _ACEOF
44597
44598 fi
44599
44600 if test "$ol_enable_slurpd" != no &&
44601    test "$ol_link_threads" != no &&
44602    test $BUILD_SLAPD = yes ; then
44603         BUILD_SLURPD=yes
44604 fi
44605
44606 if test "$ol_enable_rewrite" != no ; then
44607
44608 cat >>confdefs.h <<\_ACEOF
44609 #define ENABLE_REWRITE 1
44610 _ACEOF
44611
44612         BUILD_REWRITE=yes
44613 fi
44614
44615 if test "$ol_enable_slapi" != no ; then
44616
44617 cat >>confdefs.h <<\_ACEOF
44618 #define ENABLE_SLAPI 1
44619 _ACEOF
44620
44621         BUILD_SLAPI=yes
44622         SLAPD_SLAPI_DEPEND=libslapi.a
44623 fi
44624
44625
44626
44627 if test "$ac_cv_mingw32" = yes ; then
44628         PLAT=NT
44629         SLAPD_MODULES_LDFLAGS=
44630 else
44631         PLAT=UNIX
44632 fi
44633
44634
44635
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645
44646
44647
44648
44649
44650
44651
44652
44653
44654
44655
44656
44657
44658
44659
44660
44661
44662
44663
44664
44665
44666
44667
44668
44669
44670
44671
44672
44673
44674
44675
44676
44677
44678
44679
44680
44681
44682
44683
44684
44685
44686
44687
44688
44689
44690
44691
44692
44693
44694
44695
44696
44697
44698
44699
44700
44701
44702
44703
44704
44705
44706
44707
44708
44709
44710
44711
44712
44713
44714
44715 # Check whether --with-xxinstall or --without-xxinstall was given.
44716 if test "${with_xxinstall+set}" = set; then
44717   withval="$with_xxinstall"
44718
44719 fi;
44720
44721
44722                                                                                                                                                                                                                                                                                                                                                                                                                 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"
44723
44724
44725           ac_config_commands="$ac_config_commands default"
44726
44727
44728
44729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44730 # Let make expand exec_prefix.
44731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44732
44733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44735 # trailing colons and then remove the whole line if VPATH becomes empty
44736 # (actually we leave an empty line to preserve line numbers).
44737 if test "x$srcdir" = x.; then
44738   ac_vpsub='/^[  ]*VPATH[        ]*=/{
44739 s/:*\$(srcdir):*/:/;
44740 s/:*\${srcdir}:*/:/;
44741 s/:*@srcdir@:*/:/;
44742 s/^\([^=]*=[     ]*\):*/\1/;
44743 s/:*$//;
44744 s/^[^=]*=[       ]*$//;
44745 }'
44746 fi
44747
44748 DEFS=-DHAVE_CONFIG_H
44749
44750 ac_libobjs=
44751 ac_ltlibobjs=
44752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44753   # 1. Remove the extension, and $U if already installed.
44754   ac_i=`echo "$ac_i" |
44755          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44756   # 2. Add them.
44757   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44758   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44759 done
44760 LIBOBJS=$ac_libobjs
44761
44762 LTLIBOBJS=$ac_ltlibobjs
44763
44764
44765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44766   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44767 Usually this means the macro was only invoked conditionally." >&5
44768 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44769 Usually this means the macro was only invoked conditionally." >&2;}
44770    { (exit 1); exit 1; }; }
44771 fi
44772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44773   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44774 Usually this means the macro was only invoked conditionally." >&5
44775 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44776 Usually this means the macro was only invoked conditionally." >&2;}
44777    { (exit 1); exit 1; }; }
44778 fi
44779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44780   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44781 Usually this means the macro was only invoked conditionally." >&5
44782 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44783 Usually this means the macro was only invoked conditionally." >&2;}
44784    { (exit 1); exit 1; }; }
44785 fi
44786
44787 : ${CONFIG_STATUS=./config.status}
44788 ac_clean_files_save=$ac_clean_files
44789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44790 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44791 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44792 cat >$CONFIG_STATUS <<_ACEOF
44793 #! $SHELL
44794 # Generated by $as_me.
44795 # Run this file to recreate the current configuration.
44796 # Compiler output produced by configure, useful for debugging
44797 # configure, is in config.log if it exists.
44798
44799 debug=false
44800 ac_cs_recheck=false
44801 ac_cs_silent=false
44802 SHELL=\${CONFIG_SHELL-$SHELL}
44803 _ACEOF
44804
44805 cat >>$CONFIG_STATUS <<\_ACEOF
44806 ## --------------------- ##
44807 ## M4sh Initialization.  ##
44808 ## --------------------- ##
44809
44810 # Be Bourne compatible
44811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44812   emulate sh
44813   NULLCMD=:
44814   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44815   # is contrary to our usage.  Disable this feature.
44816   alias -g '${1+"$@"}'='"$@"'
44817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44818   set -o posix
44819 fi
44820 DUALCASE=1; export DUALCASE # for MKS sh
44821
44822 # Support unset when possible.
44823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44824   as_unset=unset
44825 else
44826   as_unset=false
44827 fi
44828
44829
44830 # Work around bugs in pre-3.0 UWIN ksh.
44831 $as_unset ENV MAIL MAILPATH
44832 PS1='$ '
44833 PS2='> '
44834 PS4='+ '
44835
44836 # NLS nuisances.
44837 for as_var in \
44838   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44839   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44840   LC_TELEPHONE LC_TIME
44841 do
44842   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44843     eval $as_var=C; export $as_var
44844   else
44845     $as_unset $as_var
44846   fi
44847 done
44848
44849 # Required to use basename.
44850 if expr a : '\(a\)' >/dev/null 2>&1; then
44851   as_expr=expr
44852 else
44853   as_expr=false
44854 fi
44855
44856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44857   as_basename=basename
44858 else
44859   as_basename=false
44860 fi
44861
44862
44863 # Name of the executable.
44864 as_me=`$as_basename "$0" ||
44865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44866          X"$0" : 'X\(//\)$' \| \
44867          X"$0" : 'X\(/\)$' \| \
44868          .     : '\(.\)' 2>/dev/null ||
44869 echo X/"$0" |
44870     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44871           /^X\/\(\/\/\)$/{ s//\1/; q; }
44872           /^X\/\(\/\).*/{ s//\1/; q; }
44873           s/.*/./; q'`
44874
44875
44876 # PATH needs CR, and LINENO needs CR and PATH.
44877 # Avoid depending upon Character Ranges.
44878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44881 as_cr_digits='0123456789'
44882 as_cr_alnum=$as_cr_Letters$as_cr_digits
44883
44884 # The user is always right.
44885 if test "${PATH_SEPARATOR+set}" != set; then
44886   echo "#! /bin/sh" >conf$$.sh
44887   echo  "exit 0"   >>conf$$.sh
44888   chmod +x conf$$.sh
44889   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44890     PATH_SEPARATOR=';'
44891   else
44892     PATH_SEPARATOR=:
44893   fi
44894   rm -f conf$$.sh
44895 fi
44896
44897
44898   as_lineno_1=$LINENO
44899   as_lineno_2=$LINENO
44900   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44901   test "x$as_lineno_1" != "x$as_lineno_2" &&
44902   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
44903   # Find who we are.  Look in the path if we contain no path at all
44904   # relative or not.
44905   case $0 in
44906     *[\\/]* ) as_myself=$0 ;;
44907     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44908 for as_dir in $PATH
44909 do
44910   IFS=$as_save_IFS
44911   test -z "$as_dir" && as_dir=.
44912   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44913 done
44914
44915        ;;
44916   esac
44917   # We did not find ourselves, most probably we were run as `sh COMMAND'
44918   # in which case we are not to be found in the path.
44919   if test "x$as_myself" = x; then
44920     as_myself=$0
44921   fi
44922   if test ! -f "$as_myself"; then
44923     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44925    { (exit 1); exit 1; }; }
44926   fi
44927   case $CONFIG_SHELL in
44928   '')
44929     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44931 do
44932   IFS=$as_save_IFS
44933   test -z "$as_dir" && as_dir=.
44934   for as_base in sh bash ksh sh5; do
44935          case $as_dir in
44936          /*)
44937            if ("$as_dir/$as_base" -c '
44938   as_lineno_1=$LINENO
44939   as_lineno_2=$LINENO
44940   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44941   test "x$as_lineno_1" != "x$as_lineno_2" &&
44942   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
44943              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44944              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44945              CONFIG_SHELL=$as_dir/$as_base
44946              export CONFIG_SHELL
44947              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44948            fi;;
44949          esac
44950        done
44951 done
44952 ;;
44953   esac
44954
44955   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44956   # uniformly replaced by the line number.  The first 'sed' inserts a
44957   # line-number line before each line; the second 'sed' does the real
44958   # work.  The second script uses 'N' to pair each line-number line
44959   # with the numbered line, and appends trailing '-' during
44960   # substitution so that $LINENO is not a special case at line end.
44961   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44962   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
44963   sed '=' <$as_myself |
44964     sed '
44965       N
44966       s,$,-,
44967       : loop
44968       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44969       t loop
44970       s,-$,,
44971       s,^['$as_cr_digits']*\n,,
44972     ' >$as_me.lineno &&
44973   chmod +x $as_me.lineno ||
44974     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44976    { (exit 1); exit 1; }; }
44977
44978   # Don't try to exec as it changes $[0], causing all sort of problems
44979   # (the dirname of $[0] is not the place where we might find the
44980   # original and so on.  Autoconf is especially sensible to this).
44981   . ./$as_me.lineno
44982   # Exit status is that of the last command.
44983   exit
44984 }
44985
44986
44987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44988   *c*,-n*) ECHO_N= ECHO_C='
44989 ' ECHO_T='      ' ;;
44990   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44991   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
44992 esac
44993
44994 if expr a : '\(a\)' >/dev/null 2>&1; then
44995   as_expr=expr
44996 else
44997   as_expr=false
44998 fi
44999
45000 rm -f conf$$ conf$$.exe conf$$.file
45001 echo >conf$$.file
45002 if ln -s conf$$.file conf$$ 2>/dev/null; then
45003   # We could just check for DJGPP; but this test a) works b) is more generic
45004   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45005   if test -f conf$$.exe; then
45006     # Don't use ln at all; we don't have any links
45007     as_ln_s='cp -p'
45008   else
45009     as_ln_s='ln -s'
45010   fi
45011 elif ln conf$$.file conf$$ 2>/dev/null; then
45012   as_ln_s=ln
45013 else
45014   as_ln_s='cp -p'
45015 fi
45016 rm -f conf$$ conf$$.exe conf$$.file
45017
45018 if mkdir -p . 2>/dev/null; then
45019   as_mkdir_p=:
45020 else
45021   test -d ./-p && rmdir ./-p
45022   as_mkdir_p=false
45023 fi
45024
45025 as_executable_p="test -f"
45026
45027 # Sed expression to map a string onto a valid CPP name.
45028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45029
45030 # Sed expression to map a string onto a valid variable name.
45031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45032
45033
45034 # IFS
45035 # We need space, tab and new line, in precisely that order.
45036 as_nl='
45037 '
45038 IFS="   $as_nl"
45039
45040 # CDPATH.
45041 $as_unset CDPATH
45042
45043 exec 6>&1
45044
45045 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45046 # report actual input values of CONFIG_FILES etc. instead of their
45047 # values after options handling.  Logging --version etc. is OK.
45048 exec 5>>config.log
45049 {
45050   echo
45051   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45052 ## Running $as_me. ##
45053 _ASBOX
45054 } >&5
45055 cat >&5 <<_CSEOF
45056
45057 This file was extended by $as_me, which was
45058 generated by GNU Autoconf 2.59.  Invocation command line was
45059
45060   CONFIG_FILES    = $CONFIG_FILES
45061   CONFIG_HEADERS  = $CONFIG_HEADERS
45062   CONFIG_LINKS    = $CONFIG_LINKS
45063   CONFIG_COMMANDS = $CONFIG_COMMANDS
45064   $ $0 $@
45065
45066 _CSEOF
45067 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45068 echo >&5
45069 _ACEOF
45070
45071 # Files that config.status was made for.
45072 if test -n "$ac_config_files"; then
45073   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45074 fi
45075
45076 if test -n "$ac_config_headers"; then
45077   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45078 fi
45079
45080 if test -n "$ac_config_links"; then
45081   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45082 fi
45083
45084 if test -n "$ac_config_commands"; then
45085   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45086 fi
45087
45088 cat >>$CONFIG_STATUS <<\_ACEOF
45089
45090 ac_cs_usage="\
45091 \`$as_me' instantiates files from templates according to the
45092 current configuration.
45093
45094 Usage: $0 [OPTIONS] [FILE]...
45095
45096   -h, --help       print this help, then exit
45097   -V, --version    print version number, then exit
45098   -q, --quiet      do not print progress messages
45099   -d, --debug      don't remove temporary files
45100       --recheck    update $as_me by reconfiguring in the same conditions
45101   --file=FILE[:TEMPLATE]
45102                    instantiate the configuration file FILE
45103   --header=FILE[:TEMPLATE]
45104                    instantiate the configuration header FILE
45105
45106 Configuration files:
45107 $config_files
45108
45109 Configuration headers:
45110 $config_headers
45111
45112 Configuration commands:
45113 $config_commands
45114
45115 Report bugs to <bug-autoconf@gnu.org>."
45116 _ACEOF
45117
45118 cat >>$CONFIG_STATUS <<_ACEOF
45119 ac_cs_version="\\
45120 config.status
45121 configured by $0, generated by GNU Autoconf 2.59,
45122   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45123
45124 Copyright (C) 2003 Free Software Foundation, Inc.
45125 This config.status script is free software; the Free Software Foundation
45126 gives unlimited permission to copy, distribute and modify it."
45127 srcdir=$srcdir
45128 INSTALL="$INSTALL"
45129 _ACEOF
45130
45131 cat >>$CONFIG_STATUS <<\_ACEOF
45132 # If no file are specified by the user, then we need to provide default
45133 # value.  By we need to know if files were specified by the user.
45134 ac_need_defaults=:
45135 while test $# != 0
45136 do
45137   case $1 in
45138   --*=*)
45139     ac_option=`expr "x$1" : 'x\([^=]*\)='`
45140     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45141     ac_shift=:
45142     ;;
45143   -*)
45144     ac_option=$1
45145     ac_optarg=$2
45146     ac_shift=shift
45147     ;;
45148   *) # This is not an option, so the user has probably given explicit
45149      # arguments.
45150      ac_option=$1
45151      ac_need_defaults=false;;
45152   esac
45153
45154   case $ac_option in
45155   # Handling of the options.
45156 _ACEOF
45157 cat >>$CONFIG_STATUS <<\_ACEOF
45158   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45159     ac_cs_recheck=: ;;
45160   --version | --vers* | -V )
45161     echo "$ac_cs_version"; exit 0 ;;
45162   --he | --h)
45163     # Conflict between --help and --header
45164     { { echo "$as_me:$LINENO: error: ambiguous option: $1
45165 Try \`$0 --help' for more information." >&5
45166 echo "$as_me: error: ambiguous option: $1
45167 Try \`$0 --help' for more information." >&2;}
45168    { (exit 1); exit 1; }; };;
45169   --help | --hel | -h )
45170     echo "$ac_cs_usage"; exit 0 ;;
45171   --debug | --d* | -d )
45172     debug=: ;;
45173   --file | --fil | --fi | --f )
45174     $ac_shift
45175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45176     ac_need_defaults=false;;
45177   --header | --heade | --head | --hea )
45178     $ac_shift
45179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45180     ac_need_defaults=false;;
45181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45182   | -silent | --silent | --silen | --sile | --sil | --si | --s)
45183     ac_cs_silent=: ;;
45184
45185   # This is an error.
45186   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45187 Try \`$0 --help' for more information." >&5
45188 echo "$as_me: error: unrecognized option: $1
45189 Try \`$0 --help' for more information." >&2;}
45190    { (exit 1); exit 1; }; } ;;
45191
45192   *) ac_config_targets="$ac_config_targets $1" ;;
45193
45194   esac
45195   shift
45196 done
45197
45198 ac_configure_extra_args=
45199
45200 if $ac_cs_silent; then
45201   exec 6>/dev/null
45202   ac_configure_extra_args="$ac_configure_extra_args --silent"
45203 fi
45204
45205 _ACEOF
45206 cat >>$CONFIG_STATUS <<_ACEOF
45207 if \$ac_cs_recheck; then
45208   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45209   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45210 fi
45211
45212 _ACEOF
45213
45214 cat >>$CONFIG_STATUS <<_ACEOF
45215 #
45216 # INIT-COMMANDS section.
45217 #
45218
45219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45220
45221 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
45222 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
45223
45224
45225 _ACEOF
45226
45227
45228
45229 cat >>$CONFIG_STATUS <<\_ACEOF
45230 for ac_config_target in $ac_config_targets
45231 do
45232   case "$ac_config_target" in
45233   # Handling of arguments.
45234   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
45235   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
45236   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
45237   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
45238   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
45239   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
45240   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
45241   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
45242   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
45243   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
45244   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
45245   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45246   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
45247   "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" ;;
45248   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45249   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45250   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
45251   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
45252   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
45253   "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" ;;
45254   "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" ;;
45255   "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" ;;
45256   "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" ;;
45257   "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" ;;
45258   "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" ;;
45259   "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" ;;
45260   "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" ;;
45261   "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" ;;
45262   "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" ;;
45263   "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" ;;
45264   "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" ;;
45265   "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" ;;
45266   "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" ;;
45267   "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" ;;
45268   "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" ;;
45269   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
45270   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
45271   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
45272   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
45273   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
45274   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45275   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45276   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
45277   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
45278   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
45279   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45280 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45281    { (exit 1); exit 1; }; };;
45282   esac
45283 done
45284
45285 # If the user did not use the arguments to specify the items to instantiate,
45286 # then the envvar interface is used.  Set only those that are not.
45287 # We use the long form for the default assignment because of an extremely
45288 # bizarre bug on SunOS 4.1.3.
45289 if $ac_need_defaults; then
45290   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45291   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45292   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45293 fi
45294
45295 # Have a temporary directory for convenience.  Make it in the build tree
45296 # simply because there is no reason to put it here, and in addition,
45297 # creating and moving files from /tmp can sometimes cause problems.
45298 # Create a temporary directory, and hook for its removal unless debugging.
45299 $debug ||
45300 {
45301   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45302   trap '{ (exit 1); exit 1; }' 1 2 13 15
45303 }
45304
45305 # Create a (secure) tmp directory for tmp files.
45306
45307 {
45308   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45309   test -n "$tmp" && test -d "$tmp"
45310 }  ||
45311 {
45312   tmp=./confstat$$-$RANDOM
45313   (umask 077 && mkdir $tmp)
45314 } ||
45315 {
45316    echo "$me: cannot create a temporary directory in ." >&2
45317    { (exit 1); exit 1; }
45318 }
45319
45320 _ACEOF
45321
45322 cat >>$CONFIG_STATUS <<_ACEOF
45323
45324 #
45325 # CONFIG_FILES section.
45326 #
45327
45328 # No need to generate the scripts if there are no CONFIG_FILES.
45329 # This happens for instance when ./config.status config.h
45330 if test -n "\$CONFIG_FILES"; then
45331   # Protect against being on the right side of a sed subst in config.status.
45332   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45333    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45334 s,@SHELL@,$SHELL,;t t
45335 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45336 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45337 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45338 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45339 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45340 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45341 s,@exec_prefix@,$exec_prefix,;t t
45342 s,@prefix@,$prefix,;t t
45343 s,@program_transform_name@,$program_transform_name,;t t
45344 s,@bindir@,$bindir,;t t
45345 s,@sbindir@,$sbindir,;t t
45346 s,@libexecdir@,$libexecdir,;t t
45347 s,@datadir@,$datadir,;t t
45348 s,@sysconfdir@,$sysconfdir,;t t
45349 s,@sharedstatedir@,$sharedstatedir,;t t
45350 s,@localstatedir@,$localstatedir,;t t
45351 s,@libdir@,$libdir,;t t
45352 s,@includedir@,$includedir,;t t
45353 s,@oldincludedir@,$oldincludedir,;t t
45354 s,@infodir@,$infodir,;t t
45355 s,@mandir@,$mandir,;t t
45356 s,@build_alias@,$build_alias,;t t
45357 s,@host_alias@,$host_alias,;t t
45358 s,@target_alias@,$target_alias,;t t
45359 s,@DEFS@,$DEFS,;t t
45360 s,@ECHO_C@,$ECHO_C,;t t
45361 s,@ECHO_N@,$ECHO_N,;t t
45362 s,@ECHO_T@,$ECHO_T,;t t
45363 s,@LIBS@,$LIBS,;t t
45364 s,@build@,$build,;t t
45365 s,@build_cpu@,$build_cpu,;t t
45366 s,@build_vendor@,$build_vendor,;t t
45367 s,@build_os@,$build_os,;t t
45368 s,@host@,$host,;t t
45369 s,@host_cpu@,$host_cpu,;t t
45370 s,@host_vendor@,$host_vendor,;t t
45371 s,@host_os@,$host_os,;t t
45372 s,@target@,$target,;t t
45373 s,@target_cpu@,$target_cpu,;t t
45374 s,@target_vendor@,$target_vendor,;t t
45375 s,@target_os@,$target_os,;t t
45376 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45377 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45378 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45379 s,@CYGPATH_W@,$CYGPATH_W,;t t
45380 s,@PACKAGE@,$PACKAGE,;t t
45381 s,@VERSION@,$VERSION,;t t
45382 s,@ACLOCAL@,$ACLOCAL,;t t
45383 s,@AUTOCONF@,$AUTOCONF,;t t
45384 s,@AUTOMAKE@,$AUTOMAKE,;t t
45385 s,@AUTOHEADER@,$AUTOHEADER,;t t
45386 s,@MAKEINFO@,$MAKEINFO,;t t
45387 s,@install_sh@,$install_sh,;t t
45388 s,@STRIP@,$STRIP,;t t
45389 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45390 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45391 s,@mkdir_p@,$mkdir_p,;t t
45392 s,@AWK@,$AWK,;t t
45393 s,@SET_MAKE@,$SET_MAKE,;t t
45394 s,@am__leading_dot@,$am__leading_dot,;t t
45395 s,@AMTAR@,$AMTAR,;t t
45396 s,@am__tar@,$am__tar,;t t
45397 s,@am__untar@,$am__untar,;t t
45398 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
45399 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
45400 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
45401 s,@top_builddir@,$top_builddir,;t t
45402 s,@ldap_subdir@,$ldap_subdir,;t t
45403 s,@CC@,$CC,;t t
45404 s,@AR@,$AR,;t t
45405 s,@CFLAGS@,$CFLAGS,;t t
45406 s,@LDFLAGS@,$LDFLAGS,;t t
45407 s,@CPPFLAGS@,$CPPFLAGS,;t t
45408 s,@ac_ct_CC@,$ac_ct_CC,;t t
45409 s,@EXEEXT@,$EXEEXT,;t t
45410 s,@OBJEXT@,$OBJEXT,;t t
45411 s,@DEPDIR@,$DEPDIR,;t t
45412 s,@am__include@,$am__include,;t t
45413 s,@am__quote@,$am__quote,;t t
45414 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45415 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45416 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45417 s,@CCDEPMODE@,$CCDEPMODE,;t t
45418 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45419 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45420 s,@EGREP@,$EGREP,;t t
45421 s,@LN_S@,$LN_S,;t t
45422 s,@ECHO@,$ECHO,;t t
45423 s,@ac_ct_AR@,$ac_ct_AR,;t t
45424 s,@RANLIB@,$RANLIB,;t t
45425 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45426 s,@DLLTOOL@,$DLLTOOL,;t t
45427 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
45428 s,@AS@,$AS,;t t
45429 s,@ac_ct_AS@,$ac_ct_AS,;t t
45430 s,@OBJDUMP@,$OBJDUMP,;t t
45431 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
45432 s,@CPP@,$CPP,;t t
45433 s,@LIBTOOL@,$LIBTOOL,;t t
45434 s,@PERLBIN@,$PERLBIN,;t t
45435 s,@OL_MKDEP@,$OL_MKDEP,;t t
45436 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
45437 s,@LTSTATIC@,$LTSTATIC,;t t
45438 s,@LIBOBJS@,$LIBOBJS,;t t
45439 s,@LIBSRCS@,$LIBSRCS,;t t
45440 s,@PLAT@,$PLAT,;t t
45441 s,@WITH_SASL@,$WITH_SASL,;t t
45442 s,@WITH_TLS@,$WITH_TLS,;t t
45443 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
45444 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
45445 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
45446 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
45447 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
45448 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
45449 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
45450 s,@BUILD_BDB@,$BUILD_BDB,;t t
45451 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
45452 s,@BUILD_HDB@,$BUILD_HDB,;t t
45453 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
45454 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
45455 s,@BUILD_META@,$BUILD_META,;t t
45456 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
45457 s,@BUILD_NULL@,$BUILD_NULL,;t t
45458 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
45459 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
45460 s,@BUILD_PERL@,$BUILD_PERL,;t t
45461 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
45462 s,@BUILD_SQL@,$BUILD_SQL,;t t
45463 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
45464 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
45465 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
45466 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
45467 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
45468 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
45469 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
45470 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
45471 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
45472 s,@BUILD_RWM@,$BUILD_RWM,;t t
45473 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
45474 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
45475 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
45476 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
45477 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
45478 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
45479 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
45480 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
45481 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
45482 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
45483 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
45484 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
45485 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
45486 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
45487 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
45488 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
45489 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
45490 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
45491 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
45492 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
45493 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
45494 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
45495 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
45496 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
45497 s,@SASL_LIBS@,$SASL_LIBS,;t t
45498 s,@TLS_LIBS@,$TLS_LIBS,;t t
45499 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
45500 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
45501 s,@LIBSLAPI@,$LIBSLAPI,;t t
45502 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
45503 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45504 s,@ICU_LIBS@,$ICU_LIBS,;t t
45505 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
45506 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
45507 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
45508 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
45509 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
45510 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45511 CEOF
45512
45513 _ACEOF
45514
45515   cat >>$CONFIG_STATUS <<\_ACEOF
45516   # Split the substitutions into bite-sized pieces for seds with
45517   # small command number limits, like on Digital OSF/1 and HP-UX.
45518   ac_max_sed_lines=48
45519   ac_sed_frag=1 # Number of current file.
45520   ac_beg=1 # First line for current file.
45521   ac_end=$ac_max_sed_lines # Line after last line for current file.
45522   ac_more_lines=:
45523   ac_sed_cmds=
45524   while $ac_more_lines; do
45525     if test $ac_beg -gt 1; then
45526       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45527     else
45528       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45529     fi
45530     if test ! -s $tmp/subs.frag; then
45531       ac_more_lines=false
45532     else
45533       # The purpose of the label and of the branching condition is to
45534       # speed up the sed processing (if there are no `@' at all, there
45535       # is no need to browse any of the substitutions).
45536       # These are the two extra sed commands mentioned above.
45537       (echo ':t
45538   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45539       if test -z "$ac_sed_cmds"; then
45540         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45541       else
45542         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45543       fi
45544       ac_sed_frag=`expr $ac_sed_frag + 1`
45545       ac_beg=$ac_end
45546       ac_end=`expr $ac_end + $ac_max_sed_lines`
45547     fi
45548   done
45549   if test -z "$ac_sed_cmds"; then
45550     ac_sed_cmds=cat
45551   fi
45552 fi # test -n "$CONFIG_FILES"
45553
45554 _ACEOF
45555 cat >>$CONFIG_STATUS <<\_ACEOF
45556 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45557   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45558   case $ac_file in
45559   - | *:- | *:-:* ) # input from stdin
45560         cat >$tmp/stdin
45561         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45563   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45564         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45565   * )   ac_file_in=$ac_file.in ;;
45566   esac
45567
45568   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45569   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45571          X"$ac_file" : 'X\(//\)[^/]' \| \
45572          X"$ac_file" : 'X\(//\)$' \| \
45573          X"$ac_file" : 'X\(/\)' \| \
45574          .     : '\(.\)' 2>/dev/null ||
45575 echo X"$ac_file" |
45576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45578           /^X\(\/\/\)$/{ s//\1/; q; }
45579           /^X\(\/\).*/{ s//\1/; q; }
45580           s/.*/./; q'`
45581   { if $as_mkdir_p; then
45582     mkdir -p "$ac_dir"
45583   else
45584     as_dir="$ac_dir"
45585     as_dirs=
45586     while test ! -d "$as_dir"; do
45587       as_dirs="$as_dir $as_dirs"
45588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45590          X"$as_dir" : 'X\(//\)[^/]' \| \
45591          X"$as_dir" : 'X\(//\)$' \| \
45592          X"$as_dir" : 'X\(/\)' \| \
45593          .     : '\(.\)' 2>/dev/null ||
45594 echo X"$as_dir" |
45595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45597           /^X\(\/\/\)$/{ s//\1/; q; }
45598           /^X\(\/\).*/{ s//\1/; q; }
45599           s/.*/./; q'`
45600     done
45601     test ! -n "$as_dirs" || mkdir $as_dirs
45602   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45604    { (exit 1); exit 1; }; }; }
45605
45606   ac_builddir=.
45607
45608 if test "$ac_dir" != .; then
45609   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45610   # A "../" for each directory in $ac_dir_suffix.
45611   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45612 else
45613   ac_dir_suffix= ac_top_builddir=
45614 fi
45615
45616 case $srcdir in
45617   .)  # No --srcdir option.  We are building in place.
45618     ac_srcdir=.
45619     if test -z "$ac_top_builddir"; then
45620        ac_top_srcdir=.
45621     else
45622        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45623     fi ;;
45624   [\\/]* | ?:[\\/]* )  # Absolute path.
45625     ac_srcdir=$srcdir$ac_dir_suffix;
45626     ac_top_srcdir=$srcdir ;;
45627   *) # Relative path.
45628     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45629     ac_top_srcdir=$ac_top_builddir$srcdir ;;
45630 esac
45631
45632 # Do not use `cd foo && pwd` to compute absolute paths, because
45633 # the directories may not exist.
45634 case `pwd` in
45635 .) ac_abs_builddir="$ac_dir";;
45636 *)
45637   case "$ac_dir" in
45638   .) ac_abs_builddir=`pwd`;;
45639   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45640   *) ac_abs_builddir=`pwd`/"$ac_dir";;
45641   esac;;
45642 esac
45643 case $ac_abs_builddir in
45644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45645 *)
45646   case ${ac_top_builddir}. in
45647   .) ac_abs_top_builddir=$ac_abs_builddir;;
45648   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45649   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45650   esac;;
45651 esac
45652 case $ac_abs_builddir in
45653 .) ac_abs_srcdir=$ac_srcdir;;
45654 *)
45655   case $ac_srcdir in
45656   .) ac_abs_srcdir=$ac_abs_builddir;;
45657   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45658   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45659   esac;;
45660 esac
45661 case $ac_abs_builddir in
45662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45663 *)
45664   case $ac_top_srcdir in
45665   .) ac_abs_top_srcdir=$ac_abs_builddir;;
45666   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45667   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45668   esac;;
45669 esac
45670
45671
45672   case $INSTALL in
45673   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45674   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45675   esac
45676
45677   if test x"$ac_file" != x-; then
45678     { echo "$as_me:$LINENO: creating $ac_file" >&5
45679 echo "$as_me: creating $ac_file" >&6;}
45680     rm -f "$ac_file"
45681   fi
45682   # Let's still pretend it is `configure' which instantiates (i.e., don't
45683   # use $as_me), people would be surprised to read:
45684   #    /* config.h.  Generated by config.status.  */
45685   if test x"$ac_file" = x-; then
45686     configure_input=
45687   else
45688     configure_input="$ac_file.  "
45689   fi
45690   configure_input=$configure_input"Generated from `echo $ac_file_in |
45691                                      sed 's,.*/,,'` by configure."
45692
45693   # First look for the input files in the build tree, otherwise in the
45694   # src tree.
45695   ac_file_inputs=`IFS=:
45696     for f in $ac_file_in; do
45697       case $f in
45698       -) echo $tmp/stdin ;;
45699       [\\/$]*)
45700          # Absolute (can't be DOS-style, as IFS=:)
45701          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45702 echo "$as_me: error: cannot find input file: $f" >&2;}
45703    { (exit 1); exit 1; }; }
45704          echo "$f";;
45705       *) # Relative
45706          if test -f "$f"; then
45707            # Build tree
45708            echo "$f"
45709          elif test -f "$srcdir/$f"; then
45710            # Source tree
45711            echo "$srcdir/$f"
45712          else
45713            # /dev/null tree
45714            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45715 echo "$as_me: error: cannot find input file: $f" >&2;}
45716    { (exit 1); exit 1; }; }
45717          fi;;
45718       esac
45719     done` || { (exit 1); exit 1; }
45720 _ACEOF
45721 cat >>$CONFIG_STATUS <<_ACEOF
45722   sed "$ac_vpsub
45723 $extrasub
45724 _ACEOF
45725 cat >>$CONFIG_STATUS <<\_ACEOF
45726 :t
45727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45728 s,@configure_input@,$configure_input,;t t
45729 s,@srcdir@,$ac_srcdir,;t t
45730 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45731 s,@top_srcdir@,$ac_top_srcdir,;t t
45732 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45733 s,@builddir@,$ac_builddir,;t t
45734 s,@abs_builddir@,$ac_abs_builddir,;t t
45735 s,@top_builddir@,$ac_top_builddir,;t t
45736 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45737 s,@INSTALL@,$ac_INSTALL,;t t
45738 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45739   rm -f $tmp/stdin
45740   if test x"$ac_file" != x-; then
45741     mv $tmp/out $ac_file
45742   else
45743     cat $tmp/out
45744     rm -f $tmp/out
45745   fi
45746
45747 done
45748 _ACEOF
45749 cat >>$CONFIG_STATUS <<\_ACEOF
45750
45751 #
45752 # CONFIG_HEADER section.
45753 #
45754
45755 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45756 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45757 #
45758 # ac_d sets the value in "#define NAME VALUE" lines.
45759 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
45760 ac_dB='[         ].*$,\1#\2'
45761 ac_dC=' '
45762 ac_dD=',;t'
45763 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45764 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
45765 ac_uB='$,\1#\2define\3'
45766 ac_uC=' '
45767 ac_uD=',;t'
45768
45769 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45770   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45771   case $ac_file in
45772   - | *:- | *:-:* ) # input from stdin
45773         cat >$tmp/stdin
45774         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45776   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45777         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45778   * )   ac_file_in=$ac_file.in ;;
45779   esac
45780
45781   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45782 echo "$as_me: creating $ac_file" >&6;}
45783
45784   # First look for the input files in the build tree, otherwise in the
45785   # src tree.
45786   ac_file_inputs=`IFS=:
45787     for f in $ac_file_in; do
45788       case $f in
45789       -) echo $tmp/stdin ;;
45790       [\\/$]*)
45791          # Absolute (can't be DOS-style, as IFS=:)
45792          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45793 echo "$as_me: error: cannot find input file: $f" >&2;}
45794    { (exit 1); exit 1; }; }
45795          # Do quote $f, to prevent DOS paths from being IFS'd.
45796          echo "$f";;
45797       *) # Relative
45798          if test -f "$f"; then
45799            # Build tree
45800            echo "$f"
45801          elif test -f "$srcdir/$f"; then
45802            # Source tree
45803            echo "$srcdir/$f"
45804          else
45805            # /dev/null tree
45806            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45807 echo "$as_me: error: cannot find input file: $f" >&2;}
45808    { (exit 1); exit 1; }; }
45809          fi;;
45810       esac
45811     done` || { (exit 1); exit 1; }
45812   # Remove the trailing spaces.
45813   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
45814
45815 _ACEOF
45816
45817 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45818 # `conftest.undefs', that substitutes the proper values into
45819 # config.h.in to produce config.h.  The first handles `#define'
45820 # templates, and the second `#undef' templates.
45821 # And first: Protect against being on the right side of a sed subst in
45822 # config.status.  Protect against being in an unquoted here document
45823 # in config.status.
45824 rm -f conftest.defines conftest.undefs
45825 # Using a here document instead of a string reduces the quoting nightmare.
45826 # Putting comments in sed scripts is not portable.
45827 #
45828 # `end' is used to avoid that the second main sed command (meant for
45829 # 0-ary CPP macros) applies to n-ary macro definitions.
45830 # See the Autoconf documentation for `clear'.
45831 cat >confdef2sed.sed <<\_ACEOF
45832 s/[\\&,]/\\&/g
45833 s,[\\$`],\\&,g
45834 t clear
45835 : clear
45836 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45837 t end
45838 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45839 : end
45840 _ACEOF
45841 # If some macros were called several times there might be several times
45842 # the same #defines, which is useless.  Nevertheless, we may not want to
45843 # sort them, since we want the *last* AC-DEFINE to be honored.
45844 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45845 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45846 rm -f confdef2sed.sed
45847
45848 # This sed command replaces #undef with comments.  This is necessary, for
45849 # example, in the case of _POSIX_SOURCE, which is predefined and required
45850 # on some systems where configure will not decide to define it.
45851 cat >>conftest.undefs <<\_ACEOF
45852 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45853 _ACEOF
45854
45855 # Break up conftest.defines because some shells have a limit on the size
45856 # of here documents, and old seds have small limits too (100 cmds).
45857 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45858 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45859 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45860 echo '  :' >>$CONFIG_STATUS
45861 rm -f conftest.tail
45862 while grep . conftest.defines >/dev/null
45863 do
45864   # Write a limited-size here document to $tmp/defines.sed.
45865   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45866   # Speed up: don't consider the non `#define' lines.
45867   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
45868   # Work around the forget-to-reset-the-flag bug.
45869   echo 't clr' >>$CONFIG_STATUS
45870   echo ': clr' >>$CONFIG_STATUS
45871   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45872   echo 'CEOF
45873   sed -f $tmp/defines.sed $tmp/in >$tmp/out
45874   rm -f $tmp/in
45875   mv $tmp/out $tmp/in
45876 ' >>$CONFIG_STATUS
45877   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45878   rm -f conftest.defines
45879   mv conftest.tail conftest.defines
45880 done
45881 rm -f conftest.defines
45882 echo '  fi # grep' >>$CONFIG_STATUS
45883 echo >>$CONFIG_STATUS
45884
45885 # Break up conftest.undefs because some shells have a limit on the size
45886 # of here documents, and old seds have small limits too (100 cmds).
45887 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
45888 rm -f conftest.tail
45889 while grep . conftest.undefs >/dev/null
45890 do
45891   # Write a limited-size here document to $tmp/undefs.sed.
45892   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45893   # Speed up: don't consider the non `#undef'
45894   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
45895   # Work around the forget-to-reset-the-flag bug.
45896   echo 't clr' >>$CONFIG_STATUS
45897   echo ': clr' >>$CONFIG_STATUS
45898   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45899   echo 'CEOF
45900   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45901   rm -f $tmp/in
45902   mv $tmp/out $tmp/in
45903 ' >>$CONFIG_STATUS
45904   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45905   rm -f conftest.undefs
45906   mv conftest.tail conftest.undefs
45907 done
45908 rm -f conftest.undefs
45909
45910 cat >>$CONFIG_STATUS <<\_ACEOF
45911   # Let's still pretend it is `configure' which instantiates (i.e., don't
45912   # use $as_me), people would be surprised to read:
45913   #    /* config.h.  Generated by config.status.  */
45914   if test x"$ac_file" = x-; then
45915     echo "/* Generated by configure.  */" >$tmp/config.h
45916   else
45917     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
45918   fi
45919   cat $tmp/in >>$tmp/config.h
45920   rm -f $tmp/in
45921   if test x"$ac_file" != x-; then
45922     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45923       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45924 echo "$as_me: $ac_file is unchanged" >&6;}
45925     else
45926       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45928          X"$ac_file" : 'X\(//\)[^/]' \| \
45929          X"$ac_file" : 'X\(//\)$' \| \
45930          X"$ac_file" : 'X\(/\)' \| \
45931          .     : '\(.\)' 2>/dev/null ||
45932 echo X"$ac_file" |
45933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45935           /^X\(\/\/\)$/{ s//\1/; q; }
45936           /^X\(\/\).*/{ s//\1/; q; }
45937           s/.*/./; q'`
45938       { if $as_mkdir_p; then
45939     mkdir -p "$ac_dir"
45940   else
45941     as_dir="$ac_dir"
45942     as_dirs=
45943     while test ! -d "$as_dir"; do
45944       as_dirs="$as_dir $as_dirs"
45945       as_dir=`(dirname "$as_dir") 2>/dev/null ||
45946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45947          X"$as_dir" : 'X\(//\)[^/]' \| \
45948          X"$as_dir" : 'X\(//\)$' \| \
45949          X"$as_dir" : 'X\(/\)' \| \
45950          .     : '\(.\)' 2>/dev/null ||
45951 echo X"$as_dir" |
45952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45954           /^X\(\/\/\)$/{ s//\1/; q; }
45955           /^X\(\/\).*/{ s//\1/; q; }
45956           s/.*/./; q'`
45957     done
45958     test ! -n "$as_dirs" || mkdir $as_dirs
45959   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45960 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45961    { (exit 1); exit 1; }; }; }
45962
45963       rm -f $ac_file
45964       mv $tmp/config.h $ac_file
45965     fi
45966   else
45967     cat $tmp/config.h
45968     rm -f $tmp/config.h
45969   fi
45970 # Compute $ac_file's index in $config_headers.
45971 _am_stamp_count=1
45972 for _am_header in $config_headers :; do
45973   case $_am_header in
45974     $ac_file | $ac_file:* )
45975       break ;;
45976     * )
45977       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
45978   esac
45979 done
45980 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
45981 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45982          X$ac_file : 'X\(//\)[^/]' \| \
45983          X$ac_file : 'X\(//\)$' \| \
45984          X$ac_file : 'X\(/\)' \| \
45985          .     : '\(.\)' 2>/dev/null ||
45986 echo X$ac_file |
45987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45989           /^X\(\/\/\)$/{ s//\1/; q; }
45990           /^X\(\/\).*/{ s//\1/; q; }
45991           s/.*/./; q'`/stamp-h$_am_stamp_count
45992 done
45993 _ACEOF
45994 cat >>$CONFIG_STATUS <<\_ACEOF
45995
45996 #
45997 # CONFIG_COMMANDS section.
45998 #
45999 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46000   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46001   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46002   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46003 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46004          X"$ac_dest" : 'X\(//\)[^/]' \| \
46005          X"$ac_dest" : 'X\(//\)$' \| \
46006          X"$ac_dest" : 'X\(/\)' \| \
46007          .     : '\(.\)' 2>/dev/null ||
46008 echo X"$ac_dest" |
46009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46011           /^X\(\/\/\)$/{ s//\1/; q; }
46012           /^X\(\/\).*/{ s//\1/; q; }
46013           s/.*/./; q'`
46014   { if $as_mkdir_p; then
46015     mkdir -p "$ac_dir"
46016   else
46017     as_dir="$ac_dir"
46018     as_dirs=
46019     while test ! -d "$as_dir"; do
46020       as_dirs="$as_dir $as_dirs"
46021       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46023          X"$as_dir" : 'X\(//\)[^/]' \| \
46024          X"$as_dir" : 'X\(//\)$' \| \
46025          X"$as_dir" : 'X\(/\)' \| \
46026          .     : '\(.\)' 2>/dev/null ||
46027 echo X"$as_dir" |
46028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46029           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46030           /^X\(\/\/\)$/{ s//\1/; q; }
46031           /^X\(\/\).*/{ s//\1/; q; }
46032           s/.*/./; q'`
46033     done
46034     test ! -n "$as_dirs" || mkdir $as_dirs
46035   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46037    { (exit 1); exit 1; }; }; }
46038
46039   ac_builddir=.
46040
46041 if test "$ac_dir" != .; then
46042   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46043   # A "../" for each directory in $ac_dir_suffix.
46044   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46045 else
46046   ac_dir_suffix= ac_top_builddir=
46047 fi
46048
46049 case $srcdir in
46050   .)  # No --srcdir option.  We are building in place.
46051     ac_srcdir=.
46052     if test -z "$ac_top_builddir"; then
46053        ac_top_srcdir=.
46054     else
46055        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46056     fi ;;
46057   [\\/]* | ?:[\\/]* )  # Absolute path.
46058     ac_srcdir=$srcdir$ac_dir_suffix;
46059     ac_top_srcdir=$srcdir ;;
46060   *) # Relative path.
46061     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46062     ac_top_srcdir=$ac_top_builddir$srcdir ;;
46063 esac
46064
46065 # Do not use `cd foo && pwd` to compute absolute paths, because
46066 # the directories may not exist.
46067 case `pwd` in
46068 .) ac_abs_builddir="$ac_dir";;
46069 *)
46070   case "$ac_dir" in
46071   .) ac_abs_builddir=`pwd`;;
46072   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46073   *) ac_abs_builddir=`pwd`/"$ac_dir";;
46074   esac;;
46075 esac
46076 case $ac_abs_builddir in
46077 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46078 *)
46079   case ${ac_top_builddir}. in
46080   .) ac_abs_top_builddir=$ac_abs_builddir;;
46081   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46082   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46083   esac;;
46084 esac
46085 case $ac_abs_builddir in
46086 .) ac_abs_srcdir=$ac_srcdir;;
46087 *)
46088   case $ac_srcdir in
46089   .) ac_abs_srcdir=$ac_abs_builddir;;
46090   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46091   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46092   esac;;
46093 esac
46094 case $ac_abs_builddir in
46095 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46096 *)
46097   case $ac_top_srcdir in
46098   .) ac_abs_top_srcdir=$ac_abs_builddir;;
46099   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46100   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46101   esac;;
46102 esac
46103
46104
46105   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46106 echo "$as_me: executing $ac_dest commands" >&6;}
46107   case $ac_dest in
46108     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46109   # Strip MF so we end up with the name of the file.
46110   mf=`echo "$mf" | sed -e 's/:.*$//'`
46111   # Check whether this is an Automake generated Makefile or not.
46112   # We used to match only the files named `Makefile.in', but
46113   # some people rename them; so instead we look at the file content.
46114   # Grep'ing the first line is not enough: some people post-process
46115   # each Makefile.in and add a new line on top of each file to say so.
46116   # So let's grep whole file.
46117   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46118     dirpart=`(dirname "$mf") 2>/dev/null ||
46119 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46120          X"$mf" : 'X\(//\)[^/]' \| \
46121          X"$mf" : 'X\(//\)$' \| \
46122          X"$mf" : 'X\(/\)' \| \
46123          .     : '\(.\)' 2>/dev/null ||
46124 echo X"$mf" |
46125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46127           /^X\(\/\/\)$/{ s//\1/; q; }
46128           /^X\(\/\).*/{ s//\1/; q; }
46129           s/.*/./; q'`
46130   else
46131     continue
46132   fi
46133   # Extract the definition of DEPDIR, am__include, and am__quote
46134   # from the Makefile without running `make'.
46135   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46136   test -z "$DEPDIR" && continue
46137   am__include=`sed -n 's/^am__include = //p' < "$mf"`
46138   test -z "am__include" && continue
46139   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46140   # When using ansi2knr, U may be empty or an underscore; expand it
46141   U=`sed -n 's/^U = //p' < "$mf"`
46142   # Find all dependency output files, they are included files with
46143   # $(DEPDIR) in their names.  We invoke sed twice because it is the
46144   # simplest approach to changing $(DEPDIR) to its actual value in the
46145   # expansion.
46146   for file in `sed -n "
46147     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46148        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46149     # Make sure the directory exists.
46150     test -f "$dirpart/$file" && continue
46151     fdir=`(dirname "$file") 2>/dev/null ||
46152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46153          X"$file" : 'X\(//\)[^/]' \| \
46154          X"$file" : 'X\(//\)$' \| \
46155          X"$file" : 'X\(/\)' \| \
46156          .     : '\(.\)' 2>/dev/null ||
46157 echo X"$file" |
46158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46160           /^X\(\/\/\)$/{ s//\1/; q; }
46161           /^X\(\/\).*/{ s//\1/; q; }
46162           s/.*/./; q'`
46163     { if $as_mkdir_p; then
46164     mkdir -p $dirpart/$fdir
46165   else
46166     as_dir=$dirpart/$fdir
46167     as_dirs=
46168     while test ! -d "$as_dir"; do
46169       as_dirs="$as_dir $as_dirs"
46170       as_dir=`(dirname "$as_dir") 2>/dev/null ||
46171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46172          X"$as_dir" : 'X\(//\)[^/]' \| \
46173          X"$as_dir" : 'X\(//\)$' \| \
46174          X"$as_dir" : 'X\(/\)' \| \
46175          .     : '\(.\)' 2>/dev/null ||
46176 echo X"$as_dir" |
46177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46179           /^X\(\/\/\)$/{ s//\1/; q; }
46180           /^X\(\/\).*/{ s//\1/; q; }
46181           s/.*/./; q'`
46182     done
46183     test ! -n "$as_dirs" || mkdir $as_dirs
46184   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46185 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46186    { (exit 1); exit 1; }; }; }
46187
46188     # echo "creating $dirpart/$file"
46189     echo '# dummy' > "$dirpart/$file"
46190   done
46191 done
46192  ;;
46193     default )
46194 chmod +x tests/run
46195 date > stamp-h
46196 BACKENDSC="servers/slapd/backends.c"
46197 echo "Making $BACKENDSC"
46198 rm -f $BACKENDSC
46199 cat > $BACKENDSC << ENDX
46200 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46201  *
46202  * Copyright 1998-2005 The OpenLDAP Foundation.
46203  * All rights reserved.
46204  *
46205  * Redistribution and use in source and binary forms, with or without
46206  * modification, are permitted only as authorized by the OpenLDAP
46207  * Public License.
46208  *
46209  * A copy of this license is available in the file LICENSE in the
46210  * top-level directory of the distribution or, alternatively, at
46211  * <http://www.OpenLDAP.org/license.html>.
46212  */
46213 /* This file is automatically generated by configure; please do not edit. */
46214
46215 #include "portable.h"
46216 #include "slap.h"
46217
46218 ENDX
46219 if test "${STATIC_BACKENDS}"; then
46220         for b in config ${STATIC_BACKENDS}; do
46221                 bb=`echo "${b}" | sed -e 's/back-//'`
46222                 cat >> $BACKENDSC << ENDX
46223 extern BI_init ${bb}_back_initialize;
46224 ENDX
46225         done
46226
46227         cat >> $BACKENDSC << ENDX
46228
46229 BackendInfo slap_binfo[] = {
46230 ENDX
46231
46232         for b in config ${STATIC_BACKENDS}; do
46233                 bb=`echo "${b}" | sed -e 's/back-//'`
46234                 echo "    Add ${bb} ..."
46235                 cat >> $BACKENDSC << ENDX
46236         { "${bb}", ${bb}_back_initialize },
46237 ENDX
46238         done
46239
46240         cat >> $BACKENDSC << ENDX
46241         { NULL, NULL },
46242 };
46243
46244 /* end of generated file */
46245 ENDX
46246 fi
46247 OVERLAYSC="servers/slapd/overlays/statover.c"
46248 echo "Making $OVERLAYSC"
46249 rm -f $OVERLAYSC
46250 cat > $OVERLAYSC << ENDX
46251 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
46252  *
46253  * Copyright 1998-2005 The OpenLDAP Foundation.
46254  * All rights reserved.
46255  *
46256  * Redistribution and use in source and binary forms, with or without
46257  * modification, are permitted only as authorized by the OpenLDAP
46258  * Public License.
46259  *
46260  * A copy of this license is available in the file LICENSE in the
46261  * top-level directory of the distribution or, alternatively, at
46262  * <http://www.OpenLDAP.org/license.html>.
46263  */
46264 /* This file is automatically generated by configure; please do not edit. */
46265
46266 #include "portable.h"
46267 #include "slap.h"
46268
46269 ENDX
46270 if test "${STATIC_OVERLAYS}"; then
46271         for o in ${STATIC_OVERLAYS}; do
46272                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46273                 cat >> $OVERLAYSC << ENDX
46274 extern OV_init ${oo}_initialize;
46275 ENDX
46276         done
46277 fi
46278
46279 cat >> $OVERLAYSC << ENDX
46280
46281 OverlayInit slap_oinfo[] = {
46282 ENDX
46283
46284 if test "${STATIC_OVERLAYS}"; then
46285         for o in ${STATIC_OVERLAYS}; do
46286                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
46287                 echo "    Add ${oo} ..."
46288                 cat >> $OVERLAYSC << ENDX
46289         { "${oo}", ${oo}_initialize },
46290 ENDX
46291         done
46292 fi
46293
46294         cat >> $OVERLAYSC << ENDX
46295         { NULL, NULL },
46296 };
46297
46298 /* end of generated file */
46299 ENDX
46300
46301 echo Please run \"make depend\" to build dependencies
46302  ;;
46303   esac
46304 done
46305 _ACEOF
46306
46307 cat >>$CONFIG_STATUS <<\_ACEOF
46308
46309 { (exit 0); exit 0; }
46310 _ACEOF
46311 chmod +x $CONFIG_STATUS
46312 ac_clean_files=$ac_clean_files_save
46313
46314
46315 # configure is writing to config.log, and then calls config.status.
46316 # config.status does its own redirection, appending to config.log.
46317 # Unfortunately, on DOS this fails, as config.log is still kept open
46318 # by configure, so config.status won't be able to write to it; its
46319 # output is simply discarded.  So we exec the FD to /dev/null,
46320 # effectively closing config.log, so it can be properly (re)opened and
46321 # appended to by config.status.  When coming back to configure, we
46322 # need to make the FD available again.
46323 if test "$no_create" != yes; then
46324   ac_cs_success=:
46325   ac_config_status_args=
46326   test "$silent" = yes &&
46327     ac_config_status_args="$ac_config_status_args --quiet"
46328   exec 5>/dev/null
46329   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46330   exec 5>>config.log
46331   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46332   # would make configure fail if this is the last instruction.
46333   $ac_cs_success || { (exit 1); exit 1; }
46334 fi
46335