]> git.sur5r.net Git - openldap/blob - configure
address ITS#3925; please test
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.598 2005/08/27 22:23:35 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-denyop       Deny Operation overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-glue         Backend Glue overlay no|yes|mod [yes]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1062     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1063     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1064     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1065
1066 SLURPD (Replication Daemon) Options:
1067   --enable-slurpd         enable building slurpd [auto]
1068
1069 Library Generation & Linking Options
1070   --enable-static[=PKGS]
1071                           build static libraries [default=yes]
1072   --enable-shared[=PKGS]
1073                           build shared libraries [default=yes]
1074   --enable-fast-install[=PKGS]
1075                           optimize for fast installation [default=yes]
1076   --disable-dependency-tracking  speeds up one-time build
1077   --enable-dependency-tracking   do not reject slow dependency extractors
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079
1080 Optional Packages:
1081   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1082   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1083   --with-subdir=DIR       change default subdirectory used for installs
1084   --with-cyrus-sasl       with Cyrus SASL support [auto]
1085   --with-fetch            with fetch(3) URL support [auto]
1086   --with-threads          with threads [auto]
1087   --with-tls              with TLS/SSL support [auto]
1088   --with-yielding-select  with implicitly yielding select [auto]
1089   --with-multiple-precision
1090                           multiple precision support for statistics
1091                           auto|bignum|gmp [auto]
1092
1093   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1094   --with-pic              try to use only PIC/non-PIC objects [default=use
1095                           both]
1096   --with-tags[=TAGS]
1097                           include additional configurations [automatic]
1098
1099 See INSTALL file for further details.
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CPP         C preprocessor
1109
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1112
1113 _ACEOF
1114 fi
1115
1116 if test "$ac_init_help" = "recursive"; then
1117   # If there are subdirs, report their specific --help.
1118   ac_popdir=`pwd`
1119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120     test -d $ac_dir || continue
1121     ac_builddir=.
1122
1123 if test "$ac_dir" != .; then
1124   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125   # A "../" for each directory in $ac_dir_suffix.
1126   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1127 else
1128   ac_dir_suffix= ac_top_builddir=
1129 fi
1130
1131 case $srcdir in
1132   .)  # No --srcdir option.  We are building in place.
1133     ac_srcdir=.
1134     if test -z "$ac_top_builddir"; then
1135        ac_top_srcdir=.
1136     else
1137        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1138     fi ;;
1139   [\\/]* | ?:[\\/]* )  # Absolute path.
1140     ac_srcdir=$srcdir$ac_dir_suffix;
1141     ac_top_srcdir=$srcdir ;;
1142   *) # Relative path.
1143     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1145 esac
1146
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1149 case `pwd` in
1150 .) ac_abs_builddir="$ac_dir";;
1151 *)
1152   case "$ac_dir" in
1153   .) ac_abs_builddir=`pwd`;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1156   esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *)
1161   case ${ac_top_builddir}. in
1162   .) ac_abs_top_builddir=$ac_abs_builddir;;
1163   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1165   esac;;
1166 esac
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1169 *)
1170   case $ac_srcdir in
1171   .) ac_abs_srcdir=$ac_abs_builddir;;
1172   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1174   esac;;
1175 esac
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *)
1179   case $ac_top_srcdir in
1180   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1183   esac;;
1184 esac
1185
1186     cd $ac_dir
1187     # Check for guested configure; otherwise get Cygnus style configure.
1188     if test -f $ac_srcdir/configure.gnu; then
1189       echo
1190       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1191     elif test -f $ac_srcdir/configure; then
1192       echo
1193       $SHELL $ac_srcdir/configure  --help=recursive
1194     elif test -f $ac_srcdir/configure.ac ||
1195            test -f $ac_srcdir/configure.in; then
1196       echo
1197       $ac_configure --help
1198     else
1199       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200     fi
1201     cd $ac_popdir
1202   done
1203 fi
1204
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1207   cat <<\_ACEOF
1208
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1212
1213 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1215 _ACEOF
1216   exit 0
1217 fi
1218 exec 5>config.log
1219 cat >&5 <<_ACEOF
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1222
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59.  Invocation command line was
1225
1226   $ $0 $@
1227
1228 _ACEOF
1229 {
1230 cat <<_ASUNAME
1231 ## --------- ##
1232 ## Platform. ##
1233 ## --------- ##
1234
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1240
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1243
1244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1251
1252 _ASUNAME
1253
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1255 for as_dir in $PATH
1256 do
1257   IFS=$as_save_IFS
1258   test -z "$as_dir" && as_dir=.
1259   echo "PATH: $as_dir"
1260 done
1261
1262 } >&5
1263
1264 cat >&5 <<_ACEOF
1265
1266
1267 ## ----------- ##
1268 ## Core tests. ##
1269 ## ----------- ##
1270
1271 _ACEOF
1272
1273
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1279 ac_configure_args=
1280 ac_configure_args0=
1281 ac_configure_args1=
1282 ac_sep=
1283 ac_must_keep_next=false
1284 for ac_pass in 1 2
1285 do
1286   for ac_arg
1287   do
1288     case $ac_arg in
1289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291     | -silent | --silent | --silen | --sile | --sil)
1292       continue ;;
1293     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1295     esac
1296     case $ac_pass in
1297     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1298     2)
1299       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300       if test $ac_must_keep_next = true; then
1301         ac_must_keep_next=false # Got value, back to normal.
1302       else
1303         case $ac_arg in
1304           *=* | --config-cache | -C | -disable-* | --disable-* \
1305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307           | -with-* | --with-* | -without-* | --without-* | --x)
1308             case "$ac_configure_args0 " in
1309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1310             esac
1311             ;;
1312           -* ) ac_must_keep_next=true ;;
1313         esac
1314       fi
1315       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316       # Get rid of the leading space.
1317       ac_sep=" "
1318       ;;
1319     esac
1320   done
1321 done
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1324
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log.  We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331   # Save into config.log some information that might help in debugging.
1332   {
1333     echo
1334
1335     cat <<\_ASBOX
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1339 _ASBOX
1340     echo
1341     # The following way of writing the cache mishandles newlines in values,
1342 {
1343   (set) 2>&1 |
1344     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1345     *ac_space=\ *)
1346       sed -n \
1347         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349       ;;
1350     *)
1351       sed -n \
1352         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1353       ;;
1354     esac;
1355 }
1356     echo
1357
1358     cat <<\_ASBOX
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1362 _ASBOX
1363     echo
1364     for ac_var in $ac_subst_vars
1365     do
1366       eval ac_val=$`echo $ac_var`
1367       echo "$ac_var='"'"'$ac_val'"'"'"
1368     done | sort
1369     echo
1370
1371     if test -n "$ac_subst_files"; then
1372       cat <<\_ASBOX
1373 ## ------------- ##
1374 ## Output files. ##
1375 ## ------------- ##
1376 _ASBOX
1377       echo
1378       for ac_var in $ac_subst_files
1379       do
1380         eval ac_val=$`echo $ac_var`
1381         echo "$ac_var='"'"'$ac_val'"'"'"
1382       done | sort
1383       echo
1384     fi
1385
1386     if test -s confdefs.h; then
1387       cat <<\_ASBOX
1388 ## ----------- ##
1389 ## confdefs.h. ##
1390 ## ----------- ##
1391 _ASBOX
1392       echo
1393       sed "/^$/d" confdefs.h | sort
1394       echo
1395     fi
1396     test "$ac_signal" != 0 &&
1397       echo "$as_me: caught signal $ac_signal"
1398     echo "$as_me: exit $exit_status"
1399   } >&5
1400   rm -f core *.core &&
1401   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1402     exit $exit_status
1403      ' 0
1404 for ac_signal in 1 2 13 15; do
1405   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1406 done
1407 ac_signal=0
1408
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1412 echo >confdefs.h
1413
1414 # Predefined preprocessor variables.
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1433 _ACEOF
1434
1435
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1438 _ACEOF
1439
1440
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444   if test "x$prefix" != xNONE; then
1445     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1446   else
1447     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448   fi
1449 fi
1450 for ac_site_file in $CONFIG_SITE; do
1451   if test -r "$ac_site_file"; then
1452     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454     sed 's/^/| /' "$ac_site_file" >&5
1455     . "$ac_site_file"
1456   fi
1457 done
1458
1459
1460 # Check that the precious variables saved in the cache have kept the same
1461 # value.
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466   eval ac_new_set=\$ac_env_${ac_var}_set
1467   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468   eval ac_new_val="\$ac_env_${ac_var}_value"
1469   case $ac_old_set,$ac_new_set in
1470     set,)
1471       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473       ac_cache_corrupted=: ;;
1474     ,set)
1475       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477       ac_cache_corrupted=: ;;
1478     ,);;
1479     *)
1480       if test "x$ac_old_val" != "x$ac_new_val"; then
1481         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1484 echo "$as_me:   former value:  $ac_old_val" >&2;}
1485         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1486 echo "$as_me:   current value: $ac_new_val" >&2;}
1487         ac_cache_corrupted=:
1488       fi;;
1489   esac
1490   # Pass precious variables to config.status.
1491   if test "$ac_new_set" = set; then
1492     case $ac_new_val in
1493     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495     *) ac_arg=$ac_var=$ac_new_val ;;
1496     esac
1497     case " $ac_configure_args " in
1498       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1499       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500     esac
1501   fi
1502 done
1503 if $ac_cache_corrupted; then
1504   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508    { (exit 1); exit 1; }; }
1509 fi
1510
1511 ac_ext=c
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557 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" -a ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in auto yes no ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto ssleay 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         glue \
3149         lastmod \
3150         ppolicy \
3151         proxycache \
3152         refint \
3153         retcode \
3154         rwm \
3155         syncprov \
3156         translucent \
3157         unique \
3158         valsort"
3159
3160 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3161 if test "${enable_xxslapoverlays+set}" = set; then
3162   enableval="$enable_xxslapoverlays"
3163
3164 fi;
3165
3166 # OpenLDAP --enable-overlays
3167
3168         # Check whether --enable-overlays or --disable-overlays was given.
3169 if test "${enable_overlays+set}" = set; then
3170   enableval="$enable_overlays"
3171
3172         ol_arg=invalid
3173         for ol_val in no yes mod ; do
3174                 if test "$enableval" = "$ol_val" ; then
3175                         ol_arg="$ol_val"
3176                 fi
3177         done
3178         if test "$ol_arg" = "invalid" ; then
3179                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3181    { (exit 1); exit 1; }; }
3182         fi
3183         ol_enable_overlays="$ol_arg"
3184
3185 fi;
3186 # end --enable-overlays
3187 # OpenLDAP --enable-accesslog
3188
3189         # Check whether --enable-accesslog or --disable-accesslog was given.
3190 if test "${enable_accesslog+set}" = set; then
3191   enableval="$enable_accesslog"
3192
3193         ol_arg=invalid
3194         for ol_val in no yes mod ; do
3195                 if test "$enableval" = "$ol_val" ; then
3196                         ol_arg="$ol_val"
3197                 fi
3198         done
3199         if test "$ol_arg" = "invalid" ; then
3200                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3201 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3202    { (exit 1); exit 1; }; }
3203         fi
3204         ol_enable_accesslog="$ol_arg"
3205
3206 else
3207         ol_enable_accesslog=${ol_enable_overlays:-no}
3208 fi;
3209 # end --enable-accesslog
3210
3211 # OpenLDAP --enable-denyop
3212
3213         # Check whether --enable-denyop or --disable-denyop was given.
3214 if test "${enable_denyop+set}" = set; then
3215   enableval="$enable_denyop"
3216
3217         ol_arg=invalid
3218         for ol_val in no yes mod ; do
3219                 if test "$enableval" = "$ol_val" ; then
3220                         ol_arg="$ol_val"
3221                 fi
3222         done
3223         if test "$ol_arg" = "invalid" ; then
3224                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3225 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3226    { (exit 1); exit 1; }; }
3227         fi
3228         ol_enable_denyop="$ol_arg"
3229
3230 else
3231         ol_enable_denyop=${ol_enable_overlays:-no}
3232 fi;
3233 # end --enable-denyop
3234
3235 # OpenLDAP --enable-dyngroup
3236
3237         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3238 if test "${enable_dyngroup+set}" = set; then
3239   enableval="$enable_dyngroup"
3240
3241         ol_arg=invalid
3242         for ol_val in no yes mod ; do
3243                 if test "$enableval" = "$ol_val" ; then
3244                         ol_arg="$ol_val"
3245                 fi
3246         done
3247         if test "$ol_arg" = "invalid" ; then
3248                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3249 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3250    { (exit 1); exit 1; }; }
3251         fi
3252         ol_enable_dyngroup="$ol_arg"
3253
3254 else
3255         ol_enable_dyngroup=${ol_enable_overlays:-no}
3256 fi;
3257 # end --enable-dyngroup
3258
3259 # OpenLDAP --enable-dynlist
3260
3261         # Check whether --enable-dynlist or --disable-dynlist was given.
3262 if test "${enable_dynlist+set}" = set; then
3263   enableval="$enable_dynlist"
3264
3265         ol_arg=invalid
3266         for ol_val in no yes mod ; do
3267                 if test "$enableval" = "$ol_val" ; then
3268                         ol_arg="$ol_val"
3269                 fi
3270         done
3271         if test "$ol_arg" = "invalid" ; then
3272                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3274    { (exit 1); exit 1; }; }
3275         fi
3276         ol_enable_dynlist="$ol_arg"
3277
3278 else
3279         ol_enable_dynlist=${ol_enable_overlays:-no}
3280 fi;
3281 # end --enable-dynlist
3282
3283 # OpenLDAP --enable-glue
3284
3285         # Check whether --enable-glue or --disable-glue was given.
3286 if test "${enable_glue+set}" = set; then
3287   enableval="$enable_glue"
3288
3289         ol_arg=invalid
3290         for ol_val in no yes mod ; do
3291                 if test "$enableval" = "$ol_val" ; then
3292                         ol_arg="$ol_val"
3293                 fi
3294         done
3295         if test "$ol_arg" = "invalid" ; then
3296                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3297 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3298    { (exit 1); exit 1; }; }
3299         fi
3300         ol_enable_glue="$ol_arg"
3301
3302 else
3303         ol_enable_glue=${ol_enable_overlays:-yes}
3304 fi;
3305 # end --enable-glue
3306
3307 # OpenLDAP --enable-lastmod
3308
3309         # Check whether --enable-lastmod or --disable-lastmod was given.
3310 if test "${enable_lastmod+set}" = set; then
3311   enableval="$enable_lastmod"
3312
3313         ol_arg=invalid
3314         for ol_val in no yes mod ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_lastmod="$ol_arg"
3325
3326 else
3327         ol_enable_lastmod=${ol_enable_overlays:-no}
3328 fi;
3329 # end --enable-lastmod
3330
3331 # OpenLDAP --enable-ppolicy
3332
3333         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3334 if test "${enable_ppolicy+set}" = set; then
3335   enableval="$enable_ppolicy"
3336
3337         ol_arg=invalid
3338         for ol_val in no yes mod ; do
3339                 if test "$enableval" = "$ol_val" ; then
3340                         ol_arg="$ol_val"
3341                 fi
3342         done
3343         if test "$ol_arg" = "invalid" ; then
3344                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3346    { (exit 1); exit 1; }; }
3347         fi
3348         ol_enable_ppolicy="$ol_arg"
3349
3350 else
3351         ol_enable_ppolicy=${ol_enable_overlays:-no}
3352 fi;
3353 # end --enable-ppolicy
3354
3355 # OpenLDAP --enable-proxycache
3356
3357         # Check whether --enable-proxycache or --disable-proxycache was given.
3358 if test "${enable_proxycache+set}" = set; then
3359   enableval="$enable_proxycache"
3360
3361         ol_arg=invalid
3362         for ol_val in no yes mod ; do
3363                 if test "$enableval" = "$ol_val" ; then
3364                         ol_arg="$ol_val"
3365                 fi
3366         done
3367         if test "$ol_arg" = "invalid" ; then
3368                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3369 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3370    { (exit 1); exit 1; }; }
3371         fi
3372         ol_enable_proxycache="$ol_arg"
3373
3374 else
3375         ol_enable_proxycache=${ol_enable_overlays:-no}
3376 fi;
3377 # end --enable-proxycache
3378
3379 # OpenLDAP --enable-refint
3380
3381         # Check whether --enable-refint or --disable-refint was given.
3382 if test "${enable_refint+set}" = set; then
3383   enableval="$enable_refint"
3384
3385         ol_arg=invalid
3386         for ol_val in no yes mod ; do
3387                 if test "$enableval" = "$ol_val" ; then
3388                         ol_arg="$ol_val"
3389                 fi
3390         done
3391         if test "$ol_arg" = "invalid" ; then
3392                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3393 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3394    { (exit 1); exit 1; }; }
3395         fi
3396         ol_enable_refint="$ol_arg"
3397
3398 else
3399         ol_enable_refint=${ol_enable_overlays:-no}
3400 fi;
3401 # end --enable-refint
3402
3403 # OpenLDAP --enable-retcode
3404
3405         # Check whether --enable-retcode or --disable-retcode was given.
3406 if test "${enable_retcode+set}" = set; then
3407   enableval="$enable_retcode"
3408
3409         ol_arg=invalid
3410         for ol_val in no yes mod ; do
3411                 if test "$enableval" = "$ol_val" ; then
3412                         ol_arg="$ol_val"
3413                 fi
3414         done
3415         if test "$ol_arg" = "invalid" ; then
3416                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3417 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3418    { (exit 1); exit 1; }; }
3419         fi
3420         ol_enable_retcode="$ol_arg"
3421
3422 else
3423         ol_enable_retcode=${ol_enable_overlays:-no}
3424 fi;
3425 # end --enable-retcode
3426
3427 # OpenLDAP --enable-rwm
3428
3429         # Check whether --enable-rwm or --disable-rwm was given.
3430 if test "${enable_rwm+set}" = set; then
3431   enableval="$enable_rwm"
3432
3433         ol_arg=invalid
3434         for ol_val in no yes mod ; do
3435                 if test "$enableval" = "$ol_val" ; then
3436                         ol_arg="$ol_val"
3437                 fi
3438         done
3439         if test "$ol_arg" = "invalid" ; then
3440                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3441 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3442    { (exit 1); exit 1; }; }
3443         fi
3444         ol_enable_rwm="$ol_arg"
3445
3446 else
3447         ol_enable_rwm=${ol_enable_overlays:-no}
3448 fi;
3449 # end --enable-rwm
3450
3451 # OpenLDAP --enable-syncprov
3452
3453         # Check whether --enable-syncprov or --disable-syncprov was given.
3454 if test "${enable_syncprov+set}" = set; then
3455   enableval="$enable_syncprov"
3456
3457         ol_arg=invalid
3458         for ol_val in no yes mod ; do
3459                 if test "$enableval" = "$ol_val" ; then
3460                         ol_arg="$ol_val"
3461                 fi
3462         done
3463         if test "$ol_arg" = "invalid" ; then
3464                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3465 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3466    { (exit 1); exit 1; }; }
3467         fi
3468         ol_enable_syncprov="$ol_arg"
3469
3470 else
3471         ol_enable_syncprov=${ol_enable_overlays:-yes}
3472 fi;
3473 # end --enable-syncprov
3474
3475 # OpenLDAP --enable-translucent
3476
3477         # Check whether --enable-translucent or --disable-translucent was given.
3478 if test "${enable_translucent+set}" = set; then
3479   enableval="$enable_translucent"
3480
3481         ol_arg=invalid
3482         for ol_val in no yes mod ; do
3483                 if test "$enableval" = "$ol_val" ; then
3484                         ol_arg="$ol_val"
3485                 fi
3486         done
3487         if test "$ol_arg" = "invalid" ; then
3488                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3489 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3490    { (exit 1); exit 1; }; }
3491         fi
3492         ol_enable_translucent="$ol_arg"
3493
3494 else
3495         ol_enable_translucent=${ol_enable_overlays:-no}
3496 fi;
3497 # end --enable-translucent
3498
3499 # OpenLDAP --enable-unique
3500
3501         # Check whether --enable-unique or --disable-unique was given.
3502 if test "${enable_unique+set}" = set; then
3503   enableval="$enable_unique"
3504
3505         ol_arg=invalid
3506         for ol_val in no yes mod ; do
3507                 if test "$enableval" = "$ol_val" ; then
3508                         ol_arg="$ol_val"
3509                 fi
3510         done
3511         if test "$ol_arg" = "invalid" ; then
3512                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3513 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3514    { (exit 1); exit 1; }; }
3515         fi
3516         ol_enable_unique="$ol_arg"
3517
3518 else
3519         ol_enable_unique=${ol_enable_overlays:-no}
3520 fi;
3521 # end --enable-unique
3522
3523 # OpenLDAP --enable-valsort
3524
3525         # Check whether --enable-valsort or --disable-valsort was given.
3526 if test "${enable_valsort+set}" = set; then
3527   enableval="$enable_valsort"
3528
3529         ol_arg=invalid
3530         for ol_val in no yes mod ; do
3531                 if test "$enableval" = "$ol_val" ; then
3532                         ol_arg="$ol_val"
3533                 fi
3534         done
3535         if test "$ol_arg" = "invalid" ; then
3536                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3537 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3538    { (exit 1); exit 1; }; }
3539         fi
3540         ol_enable_valsort="$ol_arg"
3541
3542 else
3543         ol_enable_valsort=${ol_enable_overlays:-no}
3544 fi;
3545 # end --enable-valsort
3546
3547
3548 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3549 if test "${enable_xxslurpdoptions+set}" = set; then
3550   enableval="$enable_xxslurpdoptions"
3551
3552 fi;
3553 # OpenLDAP --enable-slurpd
3554
3555         # Check whether --enable-slurpd or --disable-slurpd was given.
3556 if test "${enable_slurpd+set}" = set; then
3557   enableval="$enable_slurpd"
3558
3559         ol_arg=invalid
3560         for ol_val in auto yes no ; do
3561                 if test "$enableval" = "$ol_val" ; then
3562                         ol_arg="$ol_val"
3563                 fi
3564         done
3565         if test "$ol_arg" = "invalid" ; then
3566                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3567 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3568    { (exit 1); exit 1; }; }
3569         fi
3570         ol_enable_slurpd="$ol_arg"
3571
3572 else
3573         ol_enable_slurpd=auto
3574 fi;
3575 # end --enable-slurpd
3576
3577 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3578 if test "${enable_xxliboptions+set}" = set; then
3579   enableval="$enable_xxliboptions"
3580
3581 fi;
3582 # Check whether --enable-static or --disable-static was given.
3583 if test "${enable_static+set}" = set; then
3584   enableval="$enable_static"
3585   p=${PACKAGE-default}
3586     case $enableval in
3587     yes) enable_static=yes ;;
3588     no) enable_static=no ;;
3589     *)
3590      enable_static=no
3591       # Look at the argument we got.  We use all the common list separators.
3592       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3593       for pkg in $enableval; do
3594         IFS="$lt_save_ifs"
3595         if test "X$pkg" = "X$p"; then
3596           enable_static=yes
3597         fi
3598       done
3599       IFS="$lt_save_ifs"
3600       ;;
3601     esac
3602 else
3603   enable_static=yes
3604 fi;
3605
3606 # Check whether --enable-shared or --disable-shared was given.
3607 if test "${enable_shared+set}" = set; then
3608   enableval="$enable_shared"
3609   p=${PACKAGE-default}
3610     case $enableval in
3611     yes) enable_shared=yes ;;
3612     no) enable_shared=no ;;
3613     *)
3614       enable_shared=no
3615       # Look at the argument we got.  We use all the common list separators.
3616       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3617       for pkg in $enableval; do
3618         IFS="$lt_save_ifs"
3619         if test "X$pkg" = "X$p"; then
3620           enable_shared=yes
3621         fi
3622       done
3623       IFS="$lt_save_ifs"
3624       ;;
3625     esac
3626 else
3627   enable_shared=yes
3628 fi;
3629
3630
3631
3632 # validate options
3633 if test $ol_enable_slapd = no ; then
3634                 if test $ol_enable_slapi = yes ; then
3635                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3636 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3637         fi
3638         case "$ol_enable_backends" in yes | mod)
3639                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3640 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3641         esac
3642         for i in $Backends; do
3643                 eval "ol_tmp=\$ol_enable_$i"
3644                 if test $ol_tmp != no ; then
3645                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3647                         eval "ol_enable_$i=no"
3648                 fi
3649         done
3650         if test $ol_enable_modules = yes ; then
3651                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3652 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3653         fi
3654         if test $ol_enable_multimaster = yes ; then
3655                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3657         fi
3658         if test $ol_enable_wrappers = yes ; then
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3661         fi
3662         if test $ol_enable_rlookups = yes ; then
3663                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3665         fi
3666         if test $ol_enable_aci = yes ; then
3667                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3668 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3669         fi
3670         if test $ol_enable_ldbm_api != auto ; then
3671                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3672 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3673         fi
3674         if test $ol_enable_ldbm_type != auto ; then
3675                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3676 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3677         fi
3678         if test $ol_enable_slurpd = yes ; then
3679                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3680 echo "$as_me: error: slurpd requires slapd" >&2;}
3681    { (exit 1); exit 1; }; }
3682         fi
3683         if test $ol_enable_rewrite = yes ; then
3684                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3685 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3686         fi
3687                 case "$ol_enable_overlays" in yes | mod)
3688                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3689 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3690         esac
3691         for i in $Overlays; do
3692                 eval "ol_tmp=\$ol_enable_$i"
3693                 if test $ol_tmp != no ; then
3694                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3695 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3696                         eval "ol_enable_$i=no"
3697                 fi
3698         done
3699
3700         # force settings to no
3701         ol_enable_slapi=no
3702
3703         ol_enable_backends=
3704         ol_enable_overlays=
3705         ol_enable_modules=no
3706         ol_enable_multimaster=no
3707         ol_enable_rlookups=no
3708         ol_enable_aci=no
3709         ol_enable_wrappers=no
3710
3711         ol_enable_ldbm_api=no
3712         ol_enable_ldbm_type=no
3713
3714         ol_enable_slurpd=no
3715
3716         ol_enable_rewrite=no
3717
3718 elif test $ol_enable_ldbm = no ; then
3719
3720         if test $ol_enable_ldbm_api != auto ; then
3721                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3722 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3723         fi
3724
3725         if test $ol_enable_ldbm_type != auto ; then
3726                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3727 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3728         fi
3729
3730         if test $ol_enable_modules != yes -a \
3731                 $ol_enable_bdb = no -a \
3732                 $ol_enable_dnssrv = no -a \
3733                 $ol_enable_hdb = no -a \
3734                 $ol_enable_ldap = no -a \
3735                 $ol_enable_meta = no -a \
3736                 $ol_enable_monitor = no -a \
3737                 $ol_enable_null = no -a \
3738                 $ol_enable_passwd = no -a \
3739                 $ol_enable_perl = no -a \
3740                 $ol_enable_relay = no -a \
3741                 $ol_enable_shell = no -a \
3742                 $ol_enable_sql = no ; then
3743
3744                 if test $ol_enable_slapd = yes ; then
3745                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3746 echo "$as_me: error: slapd requires a backend" >&2;}
3747    { (exit 1); exit 1; }; }
3748                 else
3749                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3750 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3751                         ol_enable_slapd=no
3752                 fi
3753         fi
3754
3755         ol_enable_ldbm_api=no
3756         ol_enable_ldbm_type=no
3757
3758         if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3759                 ol_enable_ldbm_api=berkeley
3760         fi
3761
3762 else
3763                 if test $ol_enable_ldbm_api = gdbm -a \
3764                 $ol_enable_ldbm_type = btree ; then
3765                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3766 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3767    { (exit 1); exit 1; }; }
3768         fi
3769         if test $ol_enable_ldbm_api = mdbm -a \
3770                 $ol_enable_ldbm_type = btree ; then
3771                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3772 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3773    { (exit 1); exit 1; }; }
3774         fi
3775         if test $ol_enable_ldbm_api = ndbm -a \
3776                 $ol_enable_ldbm_type = btree ; then
3777                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3778 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3779    { (exit 1); exit 1; }; }
3780         fi
3781
3782         if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3783                 if test $ol_enable_ldbm_api = auto ; then
3784                         ol_enable_ldbm_api=berkeley
3785                 elif test $ol_enable_ldbm_api != berkeley ; then
3786                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3787 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3788    { (exit 1); exit 1; }; }
3789                 fi
3790         fi
3791 fi
3792
3793 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3794         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3795 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 if test $ol_enable_slurpd = yes ; then
3800                 if test $ol_with_threads = no ; then
3801                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3802 echo "$as_me: error: slurpd requires threads" >&2;}
3803    { (exit 1); exit 1; }; }
3804         fi
3805 fi
3806
3807 if test $ol_enable_lmpasswd = yes ; then
3808         if test $ol_with_tls = no ; then
3809                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3810 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3811    { (exit 1); exit 1; }; }
3812         fi
3813 fi
3814
3815 if test $ol_enable_kbind = yes ; then
3816         if test $ol_with_kerberos = no ; then
3817                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3818 echo "$as_me: error: options require --with-kerberos" >&2;}
3819    { (exit 1); exit 1; }; }
3820         elif test $ol_with_kerberos = auto ; then
3821                 ol_with_kerberos=yes
3822         fi
3823
3824 elif test $ol_enable_kbind = no ; then
3825         if test $ol_with_kerberos = auto ; then
3826                 ol_with_kerberos=no
3827         elif test $ol_with_kerberos != no ; then
3828                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3829 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3830                 ol_with_kerberos=no
3831         fi
3832 fi
3833
3834 if test $ol_enable_spasswd = yes ; then
3835         if test $ol_with_cyrus_sasl = no ; then
3836                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3837 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3838    { (exit 1); exit 1; }; }
3839         fi
3840         ol_with_cyrus_sasl=yes
3841 fi
3842
3843 echo "$as_me:$LINENO: result: done" >&5
3844 echo "${ECHO_T}done" >&6
3845
3846 LDAP_LIBS=
3847 LDBM_LIBS=
3848 LTHREAD_LIBS=
3849 LUTIL_LIBS=
3850
3851 SLAPD_LIBS=
3852 SLURPD_LIBS=
3853
3854 BUILD_SLAPD=no
3855 BUILD_SLURPD=no
3856
3857 BUILD_THREAD=no
3858
3859 BUILD_SLAPI=no
3860 SLAPD_SLAPI_DEPEND=
3861
3862 BUILD_BDB=no
3863 BUILD_DNSSRV=no
3864 BUILD_HDB=no
3865 BUILD_LDAP=no
3866 BUILD_LDBM=no
3867 BUILD_META=no
3868 BUILD_MONITOR=no
3869 BUILD_NULL=no
3870 BUILD_PASSWD=no
3871 BUILD_PERL=no
3872 BUILD_RELAY=no
3873 BUILD_SHELL=no
3874 BUILD_SQL=no
3875
3876 BUILD_ACCESSLOG=no
3877 BUILD_DENYOP=no
3878 BUILD_DYNGROUP=no
3879 BUILD_DYNLIST=no
3880 BUILD_GLUE=no
3881 BUILD_LASTMOD=no
3882 BUILD_PPOLICY=no
3883 BUILD_PROXYCACHE=no
3884 BUILD_REFINT=no
3885 BUILD_RETCODE=no
3886 BUILD_RWM=no
3887 BUILD_SYNCPROV=no
3888 BUILD_TRANSLUCENT=no
3889 BUILD_UNIQUE=no
3890 BUILD_VALSORT=no
3891
3892 SLAPD_STATIC_OVERLAYS=
3893 SLAPD_DYNAMIC_OVERLAYS=
3894
3895 SLAPD_MODULES_LDFLAGS=
3896 SLAPD_MODULES_CPPFLAGS=
3897
3898 SLAPD_STATIC_BACKENDS=back-ldif
3899 SLAPD_DYNAMIC_BACKENDS=
3900
3901 SLAPD_PERL_LDFLAGS=
3902 MOD_PERL_LDFLAGS=
3903 PERL_CPPFLAGS=
3904
3905 SLAPD_SQL_LDFLAGS=
3906 SLAPD_SQL_LIBS=
3907 SLAPD_SQL_INCLUDES=
3908
3909 KRB4_LIBS=
3910 KRB5_LIBS=
3911 SASL_LIBS=
3912 TLS_LIBS=
3913 MODULES_LIBS=
3914 SLAPI_LIBS=
3915 LIBSLAPI=
3916 LIBSLAPITOOLS=
3917 AUTH_LIBS=
3918
3919 SLAPD_SLP_LIBS=
3920 SLAPD_GMP_LIBS=
3921
3922
3923
3924 cat >>confdefs.h <<\_ACEOF
3925 #define HAVE_MKVERSION 1
3926 _ACEOF
3927
3928
3929
3930
3931 ol_aix_threads=no
3932 case "$target" in
3933 *-*-aix*)       if test -z "$CC" ; then
3934                 case "$ol_with_threads" in
3935                 auto | yes |  posix) ol_aix_threads=yes ;;
3936                 esac
3937         fi
3938 ;;
3939 esac
3940
3941 if test $ol_aix_threads = yes ; then
3942         if test -z "${CC}" ; then
3943                 for ac_prog in cc_r xlc_r cc
3944 do
3945   # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_CC+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$CC"; then
3953   ac_cv_prog_CC="$CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_CC="$ac_prog"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969 fi
3970 fi
3971 CC=$ac_cv_prog_CC
3972 if test -n "$CC"; then
3973   echo "$as_me:$LINENO: result: $CC" >&5
3974 echo "${ECHO_T}$CC" >&6
3975 else
3976   echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3978 fi
3979
3980   test -n "$CC" && break
3981 done
3982
3983
3984                 if test "$CC" = cc ; then
3985                                                 if test $ol_with_threads != auto ; then
3986                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3987 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3988    { (exit 1); exit 1; }; }
3989                         else
3990                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3991 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3992                         fi
3993                         ol_with_threads=no
3994                 fi
3995         fi
3996
3997         if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3998                 ol_with_threads=posix
3999                 ol_cv_pthread_create=yes
4000         fi
4001 fi
4002
4003 if test -z "${CC}"; then
4004         for ac_prog in cc gcc
4005 do
4006   # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_CC+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -n "$CC"; then
4014   ac_cv_prog_CC="$CC" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_CC="$ac_prog"
4024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028 done
4029
4030 fi
4031 fi
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034   echo "$as_me:$LINENO: result: $CC" >&5
4035 echo "${ECHO_T}$CC" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041   test -n "$CC" && break
4042 done
4043 test -n "$CC" || CC="missing"
4044
4045
4046         if test "${CC}" = "missing" ; then
4047                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4048 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4049    { (exit 1); exit 1; }; }
4050         fi
4051 fi
4052
4053 if test -z "${AR}"; then
4054         for ac_prog in ar gar
4055 do
4056   # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_AR+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   if test -n "$AR"; then
4064   ac_cv_prog_AR="$AR" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073     ac_cv_prog_AR="$ac_prog"
4074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079
4080 fi
4081 fi
4082 AR=$ac_cv_prog_AR
4083 if test -n "$AR"; then
4084   echo "$as_me:$LINENO: result: $AR" >&5
4085 echo "${ECHO_T}$AR" >&6
4086 else
4087   echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091   test -n "$AR" && break
4092 done
4093 test -n "$AR" || AR="missing"
4094
4095
4096         if test "${AR}" = "missing" ; then
4097                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4098 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4099    { (exit 1); exit 1; }; }
4100         fi
4101 fi
4102
4103
4104
4105
4106
4107 # Check whether --enable-fast-install or --disable-fast-install was given.
4108 if test "${enable_fast_install+set}" = set; then
4109   enableval="$enable_fast_install"
4110   p=${PACKAGE-default}
4111     case $enableval in
4112     yes) enable_fast_install=yes ;;
4113     no) enable_fast_install=no ;;
4114     *)
4115       enable_fast_install=no
4116       # Look at the argument we got.  We use all the common list separators.
4117       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118       for pkg in $enableval; do
4119         IFS="$lt_save_ifs"
4120         if test "X$pkg" = "X$p"; then
4121           enable_fast_install=yes
4122         fi
4123       done
4124       IFS="$lt_save_ifs"
4125       ;;
4126     esac
4127 else
4128   enable_fast_install=yes
4129 fi;
4130
4131 DEPDIR="${am__leading_dot}deps"
4132
4133           ac_config_commands="$ac_config_commands depfiles"
4134
4135
4136 am_make=${MAKE-make}
4137 cat > confinc << 'END'
4138 am__doit:
4139         @echo done
4140 .PHONY: am__doit
4141 END
4142 # If we don't find an include directive, just comment out the code.
4143 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4144 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4145 am__include="#"
4146 am__quote=
4147 _am_result=none
4148 # First try GNU make style include.
4149 echo "include confinc" > confmf
4150 # We grep out `Entering directory' and `Leaving directory'
4151 # messages which can occur if `w' ends up in MAKEFLAGS.
4152 # In particular we don't look at `^make:' because GNU make might
4153 # be invoked under some other name (usually "gmake"), in which
4154 # case it prints its new name instead of `make'.
4155 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4156    am__include=include
4157    am__quote=
4158    _am_result=GNU
4159 fi
4160 # Now try BSD make style include.
4161 if test "$am__include" = "#"; then
4162    echo '.include "confinc"' > confmf
4163    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4164       am__include=.include
4165       am__quote="\""
4166       _am_result=BSD
4167    fi
4168 fi
4169
4170
4171 echo "$as_me:$LINENO: result: $_am_result" >&5
4172 echo "${ECHO_T}$_am_result" >&6
4173 rm -f confinc confmf
4174
4175 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4176 if test "${enable_dependency_tracking+set}" = set; then
4177   enableval="$enable_dependency_tracking"
4178
4179 fi;
4180 if test "x$enable_dependency_tracking" != xno; then
4181   am_depcomp="$ac_aux_dir/depcomp"
4182   AMDEPBACKSLASH='\'
4183 fi
4184
4185
4186 if test "x$enable_dependency_tracking" != xno; then
4187   AMDEP_TRUE=
4188   AMDEP_FALSE='#'
4189 else
4190   AMDEP_TRUE='#'
4191   AMDEP_FALSE=
4192 fi
4193
4194
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_CC+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$CC"; then
4210   ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225
4226 fi
4227 fi
4228 CC=$ac_cv_prog_CC
4229 if test -n "$CC"; then
4230   echo "$as_me:$LINENO: result: $CC" >&5
4231 echo "${ECHO_T}$CC" >&6
4232 else
4233   echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237 fi
4238 if test -z "$ac_cv_prog_CC"; then
4239   ac_ct_CC=$CC
4240   # Extract the first word of "gcc", so it can be a program name with args.
4241 set dummy gcc; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$ac_ct_CC"; then
4248   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_prog_ac_ct_CC="gcc"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264 fi
4265 fi
4266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4267 if test -n "$ac_ct_CC"; then
4268   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4269 echo "${ECHO_T}$ac_ct_CC" >&6
4270 else
4271   echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 fi
4274
4275   CC=$ac_ct_CC
4276 else
4277   CC="$ac_cv_prog_CC"
4278 fi
4279
4280 if test -z "$CC"; then
4281   if test -n "$ac_tool_prefix"; then
4282   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}cc; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_prog_CC+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   if test -n "$CC"; then
4290   ac_cv_prog_CC="$CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   for ac_exec_ext in '' $ac_executable_extensions; do
4298   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299     ac_cv_prog_CC="${ac_tool_prefix}cc"
4300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301     break 2
4302   fi
4303 done
4304 done
4305
4306 fi
4307 fi
4308 CC=$ac_cv_prog_CC
4309 if test -n "$CC"; then
4310   echo "$as_me:$LINENO: result: $CC" >&5
4311 echo "${ECHO_T}$CC" >&6
4312 else
4313   echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4315 fi
4316
4317 fi
4318 if test -z "$ac_cv_prog_CC"; then
4319   ac_ct_CC=$CC
4320   # Extract the first word of "cc", so it can be a program name with args.
4321 set dummy cc; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test -n "$ac_ct_CC"; then
4328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337     ac_cv_prog_ac_ct_CC="cc"
4338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342 done
4343
4344 fi
4345 fi
4346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4347 if test -n "$ac_ct_CC"; then
4348   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4349 echo "${ECHO_T}$ac_ct_CC" >&6
4350 else
4351   echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4353 fi
4354
4355   CC=$ac_ct_CC
4356 else
4357   CC="$ac_cv_prog_CC"
4358 fi
4359
4360 fi
4361 if test -z "$CC"; then
4362   # Extract the first word of "cc", so it can be a program name with args.
4363 set dummy cc; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_prog_CC+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   if test -n "$CC"; then
4370   ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372   ac_prog_rejected=no
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4381        ac_prog_rejected=yes
4382        continue
4383      fi
4384     ac_cv_prog_CC="cc"
4385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389 done
4390
4391 if test $ac_prog_rejected = yes; then
4392   # We found a bogon in the path, so make sure we never use it.
4393   set dummy $ac_cv_prog_CC
4394   shift
4395   if test $# != 0; then
4396     # We chose a different compiler from the bogus one.
4397     # However, it has the same basename, so the bogon will be chosen
4398     # first if we set CC to just the basename; use the full file name.
4399     shift
4400     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4401   fi
4402 fi
4403 fi
4404 fi
4405 CC=$ac_cv_prog_CC
4406 if test -n "$CC"; then
4407   echo "$as_me:$LINENO: result: $CC" >&5
4408 echo "${ECHO_T}$CC" >&6
4409 else
4410   echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6
4412 fi
4413
4414 fi
4415 if test -z "$CC"; then
4416   if test -n "$ac_tool_prefix"; then
4417   for ac_prog in cl
4418   do
4419     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_CC+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   if test -n "$CC"; then
4427   ac_cv_prog_CC="$CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for ac_exec_ext in '' $ac_executable_extensions; do
4435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438     break 2
4439   fi
4440 done
4441 done
4442
4443 fi
4444 fi
4445 CC=$ac_cv_prog_CC
4446 if test -n "$CC"; then
4447   echo "$as_me:$LINENO: result: $CC" >&5
4448 echo "${ECHO_T}$CC" >&6
4449 else
4450   echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4452 fi
4453
4454     test -n "$CC" && break
4455   done
4456 fi
4457 if test -z "$CC"; then
4458   ac_ct_CC=$CC
4459   for ac_prog in cl
4460 do
4461   # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   if test -n "$ac_ct_CC"; then
4469   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478     ac_cv_prog_ac_ct_CC="$ac_prog"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484
4485 fi
4486 fi
4487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488 if test -n "$ac_ct_CC"; then
4489   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4490 echo "${ECHO_T}$ac_ct_CC" >&6
4491 else
4492   echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4494 fi
4495
4496   test -n "$ac_ct_CC" && break
4497 done
4498
4499   CC=$ac_ct_CC
4500 fi
4501
4502 fi
4503
4504
4505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4506 See \`config.log' for more details." >&5
4507 echo "$as_me: error: no acceptable C compiler found in \$PATH
4508 See \`config.log' for more details." >&2;}
4509    { (exit 1); exit 1; }; }
4510
4511 # Provide some information about the compiler.
4512 echo "$as_me:$LINENO:" \
4513      "checking for C compiler version" >&5
4514 ac_compiler=`set X $ac_compile; echo $2`
4515 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4516   (eval $ac_compiler --version </dev/null >&5) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }
4520 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4521   (eval $ac_compiler -v </dev/null >&5) 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }
4525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4526   (eval $ac_compiler -V </dev/null >&5) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }
4530
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537
4538 int
4539 main ()
4540 {
4541
4542   ;
4543   return 0;
4544 }
4545 _ACEOF
4546 ac_clean_files_save=$ac_clean_files
4547 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4548 # Try to create an executable without -o first, disregard a.out.
4549 # It will help us diagnose broken compilers, and finding out an intuition
4550 # of exeext.
4551 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4552 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4553 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4554 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4555   (eval $ac_link_default) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; then
4559   # Find the output, starting from the most likely.  This scheme is
4560 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4561 # resort.
4562
4563 # Be careful to initialize this variable, since it used to be cached.
4564 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4565 ac_cv_exeext=
4566 # b.out is created by i960 compilers.
4567 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4568 do
4569   test -f "$ac_file" || continue
4570   case $ac_file in
4571     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4572         ;;
4573     conftest.$ac_ext )
4574         # This is the source file.
4575         ;;
4576     [ab].out )
4577         # We found the default executable, but exeext='' is most
4578         # certainly right.
4579         break;;
4580     *.* )
4581         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4582         # FIXME: I believe we export ac_cv_exeext for Libtool,
4583         # but it would be cool to find out if it's true.  Does anybody
4584         # maintain Libtool? --akim.
4585         export ac_cv_exeext
4586         break;;
4587     * )
4588         break;;
4589   esac
4590 done
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4596 See \`config.log' for more details." >&5
4597 echo "$as_me: error: C compiler cannot create executables
4598 See \`config.log' for more details." >&2;}
4599    { (exit 77); exit 77; }; }
4600 fi
4601
4602 ac_exeext=$ac_cv_exeext
4603 echo "$as_me:$LINENO: result: $ac_file" >&5
4604 echo "${ECHO_T}$ac_file" >&6
4605
4606 # Check the compiler produces executables we can run.  If not, either
4607 # the compiler is broken, or we cross compile.
4608 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4609 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4610 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4611 # If not cross compiling, check that we can run a simple program.
4612 if test "$cross_compiling" != yes; then
4613   if { ac_try='./$ac_file'
4614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615   (eval $ac_try) 2>&5
4616   ac_status=$?
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); }; }; then
4619     cross_compiling=no
4620   else
4621     if test "$cross_compiling" = maybe; then
4622         cross_compiling=yes
4623     else
4624         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4625 If you meant to cross compile, use \`--host'.
4626 See \`config.log' for more details." >&5
4627 echo "$as_me: error: cannot run C compiled programs.
4628 If you meant to cross compile, use \`--host'.
4629 See \`config.log' for more details." >&2;}
4630    { (exit 1); exit 1; }; }
4631     fi
4632   fi
4633 fi
4634 echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6
4636
4637 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4638 ac_clean_files=$ac_clean_files_save
4639 # Check the compiler produces executables we can run.  If not, either
4640 # the compiler is broken, or we cross compile.
4641 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4642 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4643 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4644 echo "${ECHO_T}$cross_compiling" >&6
4645
4646 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4647 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649   (eval $ac_link) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); }; then
4653   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4654 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4655 # work properly (i.e., refer to `conftest.exe'), while it won't with
4656 # `rm'.
4657 for ac_file in conftest.exe conftest conftest.*; do
4658   test -f "$ac_file" || continue
4659   case $ac_file in
4660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4661     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4662           export ac_cv_exeext
4663           break;;
4664     * ) break;;
4665   esac
4666 done
4667 else
4668   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4669 See \`config.log' for more details." >&5
4670 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4671 See \`config.log' for more details." >&2;}
4672    { (exit 1); exit 1; }; }
4673 fi
4674
4675 rm -f conftest$ac_cv_exeext
4676 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4677 echo "${ECHO_T}$ac_cv_exeext" >&6
4678
4679 rm -f conftest.$ac_ext
4680 EXEEXT=$ac_cv_exeext
4681 ac_exeext=$EXEEXT
4682 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4683 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4684 if test "${ac_cv_objext+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest.o conftest.obj
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704   (eval $ac_compile) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; then
4708   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4709   case $ac_file in
4710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4711     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4712        break;;
4713   esac
4714 done
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4720 See \`config.log' for more details." >&5
4721 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4722 See \`config.log' for more details." >&2;}
4723    { (exit 1); exit 1; }; }
4724 fi
4725
4726 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4727 fi
4728 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4729 echo "${ECHO_T}$ac_cv_objext" >&6
4730 OBJEXT=$ac_cv_objext
4731 ac_objext=$OBJEXT
4732 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4733 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4734 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743
4744 int
4745 main ()
4746 {
4747 #ifndef __GNUC__
4748        choke me
4749 #endif
4750
4751   ;
4752   return 0;
4753 }
4754 _ACEOF
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757   (eval $ac_compile) 2>conftest.er1
4758   ac_status=$?
4759   grep -v '^ *+' conftest.er1 >conftest.err
4760   rm -f conftest.er1
4761   cat conftest.err >&5
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); } &&
4764          { ac_try='test -z "$ac_c_werror_flag"
4765                          || test ! -s conftest.err'
4766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767   (eval $ac_try) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest.$ac_objext'
4772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773   (eval $ac_try) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; }; then
4777   ac_compiler_gnu=yes
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_compiler_gnu=no
4783 fi
4784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4786
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4790 GCC=`test $ac_compiler_gnu = yes && echo yes`
4791 ac_test_CFLAGS=${CFLAGS+set}
4792 ac_save_CFLAGS=$CFLAGS
4793 CFLAGS="-g"
4794 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4795 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4796 if test "${ac_cv_prog_cc_g+set}" = set; then
4797   echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799   cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805
4806 int
4807 main ()
4808 {
4809
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816   (eval $ac_compile) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } &&
4823          { ac_try='test -z "$ac_c_werror_flag"
4824                          || test ! -s conftest.err'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; } &&
4830          { ac_try='test -s conftest.$ac_objext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_prog_cc_g=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_prog_cc_g=no
4842 fi
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4844 fi
4845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4847 if test "$ac_test_CFLAGS" = set; then
4848   CFLAGS=$ac_save_CFLAGS
4849 elif test $ac_cv_prog_cc_g = yes; then
4850   if test "$GCC" = yes; then
4851     CFLAGS="-g -O2"
4852   else
4853     CFLAGS="-g"
4854   fi
4855 else
4856   if test "$GCC" = yes; then
4857     CFLAGS="-O2"
4858   else
4859     CFLAGS=
4860   fi
4861 fi
4862 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4863 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4864 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867   ac_cv_prog_cc_stdc=no
4868 ac_save_CC=$CC
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875 #include <stdarg.h>
4876 #include <stdio.h>
4877 #include <sys/types.h>
4878 #include <sys/stat.h>
4879 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4880 struct buf { int x; };
4881 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4882 static char *e (p, i)
4883      char **p;
4884      int i;
4885 {
4886   return p[i];
4887 }
4888 static char *f (char * (*g) (char **, int), char **p, ...)
4889 {
4890   char *s;
4891   va_list v;
4892   va_start (v,p);
4893   s = g (p, va_arg (v,int));
4894   va_end (v);
4895   return s;
4896 }
4897
4898 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4899    function prototypes and stuff, but not '\xHH' hex character constants.
4900    These don't provoke an error unfortunately, instead are silently treated
4901    as 'x'.  The following induces an error, until -std1 is added to get
4902    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4903    array size at least.  It's necessary to write '\x00'==0 to get something
4904    that's true only with -std1.  */
4905 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4906
4907 int test (int i, double x);
4908 struct s1 {int (*f) (int a);};
4909 struct s2 {int (*f) (double a);};
4910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4911 int argc;
4912 char **argv;
4913 int
4914 main ()
4915 {
4916 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4917   ;
4918   return 0;
4919 }
4920 _ACEOF
4921 # Don't try gcc -ansi; that turns off useful extensions and
4922 # breaks some systems' header files.
4923 # AIX                   -qlanglvl=ansi
4924 # Ultrix and OSF/1      -std1
4925 # HP-UX 10.20 and later -Ae
4926 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4927 # SVR4                  -Xc -D__EXTENSIONS__
4928 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4929 do
4930   CC="$ac_save_CC $ac_arg"
4931   rm -f conftest.$ac_objext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933   (eval $ac_compile) 2>conftest.er1
4934   ac_status=$?
4935   grep -v '^ *+' conftest.er1 >conftest.err
4936   rm -f conftest.er1
4937   cat conftest.err >&5
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } &&
4940          { ac_try='test -z "$ac_c_werror_flag"
4941                          || test ! -s conftest.err'
4942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943   (eval $ac_try) 2>&5
4944   ac_status=$?
4945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946   (exit $ac_status); }; } &&
4947          { ac_try='test -s conftest.$ac_objext'
4948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949   (eval $ac_try) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); }; }; then
4953   ac_cv_prog_cc_stdc=$ac_arg
4954 break
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959 fi
4960 rm -f conftest.err conftest.$ac_objext
4961 done
4962 rm -f conftest.$ac_ext conftest.$ac_objext
4963 CC=$ac_save_CC
4964
4965 fi
4966
4967 case "x$ac_cv_prog_cc_stdc" in
4968   x|xno)
4969     echo "$as_me:$LINENO: result: none needed" >&5
4970 echo "${ECHO_T}none needed" >&6 ;;
4971   *)
4972     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4973 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4974     CC="$CC $ac_cv_prog_cc_stdc" ;;
4975 esac
4976
4977 # Some people use a C++ compiler to compile C.  Since we use `exit',
4978 # in C++ we need to declare it.  In case someone uses the same compiler
4979 # for both compiling C and C++ we need to have the C++ compiler decide
4980 # the declaration of exit, since it's the most demanding environment.
4981 cat >conftest.$ac_ext <<_ACEOF
4982 #ifndef __cplusplus
4983   choke me
4984 #endif
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>conftest.er1
4989   ac_status=$?
4990   grep -v '^ *+' conftest.er1 >conftest.err
4991   rm -f conftest.er1
4992   cat conftest.err >&5
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } &&
4995          { ac_try='test -z "$ac_c_werror_flag"
4996                          || test ! -s conftest.err'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; } &&
5002          { ac_try='test -s conftest.$ac_objext'
5003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004   (eval $ac_try) 2>&5
5005   ac_status=$?
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); }; }; then
5008   for ac_declaration in \
5009    '' \
5010    'extern "C" void std::exit (int) throw (); using std::exit;' \
5011    'extern "C" void std::exit (int); using std::exit;' \
5012    'extern "C" void exit (int) throw ();' \
5013    'extern "C" void exit (int);' \
5014    'void exit (int);'
5015 do
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 $ac_declaration
5023 #include <stdlib.h>
5024 int
5025 main ()
5026 {
5027 exit (42);
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034   (eval $ac_compile) 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } &&
5041          { ac_try='test -z "$ac_c_werror_flag"
5042                          || test ! -s conftest.err'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; } &&
5048          { ac_try='test -s conftest.$ac_objext'
5049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050   (eval $ac_try) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; }; then
5054   :
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 continue
5060 fi
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062   cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h.  */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h.  */
5068 $ac_declaration
5069 int
5070 main ()
5071 {
5072 exit (42);
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } &&
5086          { ac_try='test -z "$ac_c_werror_flag"
5087                          || test ! -s conftest.err'
5088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089   (eval $ac_try) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); }; } &&
5093          { ac_try='test -s conftest.$ac_objext'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; }; then
5099   break
5100 else
5101   echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 fi
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5106 done
5107 rm -f conftest*
5108 if test -n "$ac_declaration"; then
5109   echo '#ifdef __cplusplus' >>confdefs.h
5110   echo $ac_declaration      >>confdefs.h
5111   echo '#endif'             >>confdefs.h
5112 fi
5113
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 fi
5119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_ext=c
5121 ac_cpp='$CPP $CPPFLAGS'
5122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125
5126 depcc="$CC"   am_compiler_list=
5127
5128 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5129 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5130 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5134   # We make a subdir and do the tests there.  Otherwise we can end up
5135   # making bogus files that we don't know about and never remove.  For
5136   # instance it was reported that on HP-UX the gcc test will end up
5137   # making a dummy file named `D' -- because `-MD' means `put the output
5138   # in D'.
5139   mkdir conftest.dir
5140   # Copy depcomp to subdir because otherwise we won't find it if we're
5141   # using a relative directory.
5142   cp "$am_depcomp" conftest.dir
5143   cd conftest.dir
5144   # We will build objects and dependencies in a subdirectory because
5145   # it helps to detect inapplicable dependency modes.  For instance
5146   # both Tru64's cc and ICC support -MD to output dependencies as a
5147   # side effect of compilation, but ICC will put the dependencies in
5148   # the current directory while Tru64 will put them in the object
5149   # directory.
5150   mkdir sub
5151
5152   am_cv_CC_dependencies_compiler_type=none
5153   if test "$am_compiler_list" = ""; then
5154      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5155   fi
5156   for depmode in $am_compiler_list; do
5157     # Setup a source with many dependencies, because some compilers
5158     # like to wrap large dependency lists on column 80 (with \), and
5159     # we should not choose a depcomp mode which is confused by this.
5160     #
5161     # We need to recreate these files for each test, as the compiler may
5162     # overwrite some of them when testing with obscure command lines.
5163     # This happens at least with the AIX C compiler.
5164     : > sub/conftest.c
5165     for i in 1 2 3 4 5 6; do
5166       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5167       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5168       # Solaris 8's {/usr,}/bin/sh.
5169       touch sub/conftst$i.h
5170     done
5171     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5172
5173     case $depmode in
5174     nosideeffect)
5175       # after this tag, mechanisms are not by side-effect, so they'll
5176       # only be used when explicitly requested
5177       if test "x$enable_dependency_tracking" = xyes; then
5178         continue
5179       else
5180         break
5181       fi
5182       ;;
5183     none) break ;;
5184     esac
5185     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5186     # mode.  It turns out that the SunPro C++ compiler does not properly
5187     # handle `-M -o', and we need to detect this.
5188     if depmode=$depmode \
5189        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5190        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5191        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5192          >/dev/null 2>conftest.err &&
5193        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5194        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5195        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5196       # icc doesn't choke on unknown options, it will just issue warnings
5197       # or remarks (even with -Werror).  So we grep stderr for any message
5198       # that says an option was ignored or not supported.
5199       # When given -MP, icc 7.0 and 7.1 complain thusly:
5200       #   icc: Command line warning: ignoring option '-M'; no argument required
5201       # The diagnosis changed in icc 8.0:
5202       #   icc: Command line remark: option '-MP' not supported
5203       if (grep 'ignoring option' conftest.err ||
5204           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5205         am_cv_CC_dependencies_compiler_type=$depmode
5206         break
5207       fi
5208     fi
5209   done
5210
5211   cd ..
5212   rm -rf conftest.dir
5213 else
5214   am_cv_CC_dependencies_compiler_type=none
5215 fi
5216
5217 fi
5218 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5219 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5220 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5221
5222
5223
5224 if
5225   test "x$enable_dependency_tracking" != xno \
5226   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5227   am__fastdepCC_TRUE=
5228   am__fastdepCC_FALSE='#'
5229 else
5230   am__fastdepCC_TRUE='#'
5231   am__fastdepCC_FALSE=
5232 fi
5233
5234
5235 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5236 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5237 if test "${lt_cv_path_SED+set}" = set; then
5238   echo $ECHO_N "(cached) $ECHO_C" >&6
5239 else
5240   # Loop through the user's path and test for sed and gsed.
5241 # Then use that list of sed's as ones to test for truncation.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247   for lt_ac_prog in sed gsed; do
5248     for ac_exec_ext in '' $ac_executable_extensions; do
5249       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5250         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5251       fi
5252     done
5253   done
5254 done
5255 lt_ac_max=0
5256 lt_ac_count=0
5257 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5258 # along with /bin/sed that truncates output.
5259 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5260   test ! -f $lt_ac_sed && continue
5261   cat /dev/null > conftest.in
5262   lt_ac_count=0
5263   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5264   # Check for GNU sed and select it if it is found.
5265   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5266     lt_cv_path_SED=$lt_ac_sed
5267     break
5268   fi
5269   while true; do
5270     cat conftest.in conftest.in >conftest.tmp
5271     mv conftest.tmp conftest.in
5272     cp conftest.in conftest.nl
5273     echo >>conftest.nl
5274     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5275     cmp -s conftest.out conftest.nl || break
5276     # 10000 chars as input seems more than enough
5277     test $lt_ac_count -gt 10 && break
5278     lt_ac_count=`expr $lt_ac_count + 1`
5279     if test $lt_ac_count -gt $lt_ac_max; then
5280       lt_ac_max=$lt_ac_count
5281       lt_cv_path_SED=$lt_ac_sed
5282     fi
5283   done
5284 done
5285
5286 fi
5287
5288 SED=$lt_cv_path_SED
5289 echo "$as_me:$LINENO: result: $SED" >&5
5290 echo "${ECHO_T}$SED" >&6
5291
5292 echo "$as_me:$LINENO: checking for egrep" >&5
5293 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5294 if test "${ac_cv_prog_egrep+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5298     then ac_cv_prog_egrep='grep -E'
5299     else ac_cv_prog_egrep='egrep'
5300     fi
5301 fi
5302 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5303 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5304  EGREP=$ac_cv_prog_egrep
5305
5306
5307
5308 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5309 if test "${with_gnu_ld+set}" = set; then
5310   withval="$with_gnu_ld"
5311   test "$withval" = no || with_gnu_ld=yes
5312 else
5313   with_gnu_ld=no
5314 fi;
5315 ac_prog=ld
5316 if test "$GCC" = yes; then
5317   # Check if gcc -print-prog-name=ld gives a path.
5318   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5319 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5320   case $host in
5321   *-*-mingw*)
5322     # gcc leaves a trailing carriage return which upsets mingw
5323     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324   *)
5325     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5326   esac
5327   case $ac_prog in
5328     # Accept absolute paths.
5329     [\\/]* | ?:[\\/]*)
5330       re_direlt='/[^/][^/]*/\.\./'
5331       # Canonicalize the pathname of ld
5332       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5333       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5334         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5335       done
5336       test -z "$LD" && LD="$ac_prog"
5337       ;;
5338   "")
5339     # If it fails, then pretend we aren't using GCC.
5340     ac_prog=ld
5341     ;;
5342   *)
5343     # If it is relative, then search for the first ld in PATH.
5344     with_gnu_ld=unknown
5345     ;;
5346   esac
5347 elif test "$with_gnu_ld" = yes; then
5348   echo "$as_me:$LINENO: checking for GNU ld" >&5
5349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5350 else
5351   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5353 fi
5354 if test "${lt_cv_path_LD+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   if test -z "$LD"; then
5358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359   for ac_dir in $PATH; do
5360     IFS="$lt_save_ifs"
5361     test -z "$ac_dir" && ac_dir=.
5362     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363       lt_cv_path_LD="$ac_dir/$ac_prog"
5364       # Check to see if the program is GNU ld.  I'd rather use --version,
5365       # but apparently some GNU ld's only accept -v.
5366       # Break only if it was the GNU/non-GNU ld that we prefer.
5367       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368       *GNU* | *'with BFD'*)
5369         test "$with_gnu_ld" != no && break
5370         ;;
5371       *)
5372         test "$with_gnu_ld" != yes && break
5373         ;;
5374       esac
5375     fi
5376   done
5377   IFS="$lt_save_ifs"
5378 else
5379   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5380 fi
5381 fi
5382
5383 LD="$lt_cv_path_LD"
5384 if test -n "$LD"; then
5385   echo "$as_me:$LINENO: result: $LD" >&5
5386 echo "${ECHO_T}$LD" >&6
5387 else
5388   echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5390 fi
5391 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5392 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5393    { (exit 1); exit 1; }; }
5394 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5395 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5396 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5400 case `$LD -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402   lt_cv_prog_gnu_ld=yes
5403   ;;
5404 *)
5405   lt_cv_prog_gnu_ld=no
5406   ;;
5407 esac
5408 fi
5409 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5410 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5411 with_gnu_ld=$lt_cv_prog_gnu_ld
5412
5413
5414 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5415 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5416 if test "${lt_cv_ld_reload_flag+set}" = set; then
5417   echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419   lt_cv_ld_reload_flag='-r'
5420 fi
5421 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5422 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5423 reload_flag=$lt_cv_ld_reload_flag
5424 case $reload_flag in
5425 "" | " "*) ;;
5426 *) reload_flag=" $reload_flag" ;;
5427 esac
5428 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5429 case $host_os in
5430   darwin*)
5431     if test "$GCC" = yes; then
5432       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5433     else
5434       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5435     fi
5436     ;;
5437 esac
5438
5439 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5440 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5441 if test "${lt_cv_path_NM+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   if test -n "$NM"; then
5445   # Let the user override the test.
5446   lt_cv_path_NM="$NM"
5447 else
5448   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5450     IFS="$lt_save_ifs"
5451     test -z "$ac_dir" && ac_dir=.
5452     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5453     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454       # Check to see if the nm accepts a BSD-compat flag.
5455       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456       #   nm: unknown option "B" ignored
5457       # Tru64's nm complains that /dev/null is an invalid object file
5458       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459       */dev/null* | *'Invalid file or object type'*)
5460         lt_cv_path_NM="$tmp_nm -B"
5461         break
5462         ;;
5463       *)
5464         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465         */dev/null*)
5466           lt_cv_path_NM="$tmp_nm -p"
5467           break
5468           ;;
5469         *)
5470           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471           continue # so that we can try to find one that supports BSD flags
5472           ;;
5473         esac
5474       esac
5475     fi
5476   done
5477   IFS="$lt_save_ifs"
5478   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5479 fi
5480 fi
5481 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5482 echo "${ECHO_T}$lt_cv_path_NM" >&6
5483 NM="$lt_cv_path_NM"
5484
5485 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5486 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5487 LN_S=$as_ln_s
5488 if test "$LN_S" = "ln -s"; then
5489   echo "$as_me:$LINENO: result: yes" >&5
5490 echo "${ECHO_T}yes" >&6
5491 else
5492   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5493 echo "${ECHO_T}no, using $LN_S" >&6
5494 fi
5495
5496 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5497 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5498 if test "${lt_cv_deplibs_check_method+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   lt_cv_file_magic_cmd='$MAGIC_CMD'
5502 lt_cv_file_magic_test_file=
5503 lt_cv_deplibs_check_method='unknown'
5504 # Need to set the preceding variable on all platforms that support
5505 # interlibrary dependencies.
5506 # 'none' -- dependencies not supported.
5507 # `unknown' -- same as none, but documents that we really don't know.
5508 # 'pass_all' -- all dependencies passed with no checks.
5509 # 'test_compile' -- check by making test program.
5510 # 'file_magic [[regex]]' -- check by looking for files in library path
5511 # which responds to the $file_magic_cmd with a given extended regex.
5512 # If you have `file' or equivalent on your system and you're not sure
5513 # whether `pass_all' will *always* work, you probably want this one.
5514
5515 case $host_os in
5516 aix4* | aix5*)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 beos*)
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 bsdi[45]*)
5525   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5526   lt_cv_file_magic_cmd='/usr/bin/file -L'
5527   lt_cv_file_magic_test_file=/shlib/libc.so
5528   ;;
5529
5530 cygwin*)
5531   # func_win32_libid is a shell function defined in ltmain.sh
5532   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5533   lt_cv_file_magic_cmd='func_win32_libid'
5534   ;;
5535
5536 mingw* | pw32*)
5537   # Base MSYS/MinGW do not provide the 'file' command needed by
5538   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5539   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5540   lt_cv_file_magic_cmd='$OBJDUMP -f'
5541   ;;
5542
5543 darwin* | rhapsody*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 freebsd* | kfreebsd*-gnu | dragonfly*)
5548   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5549     case $host_cpu in
5550     i*86 )
5551       # Not sure whether the presence of OpenBSD here was a mistake.
5552       # Let's accept both of them until this is cleared up.
5553       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5554       lt_cv_file_magic_cmd=/usr/bin/file
5555       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5556       ;;
5557     esac
5558   else
5559     lt_cv_deplibs_check_method=pass_all
5560   fi
5561   ;;
5562
5563 gnu*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 hpux10.20* | hpux11*)
5568   lt_cv_file_magic_cmd=/usr/bin/file
5569   case "$host_cpu" in
5570   ia64*)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5572     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5573     ;;
5574   hppa*64*)
5575     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]'
5576     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5577     ;;
5578   *)
5579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5580     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5581     ;;
5582   esac
5583   ;;
5584
5585 irix5* | irix6* | nonstopux*)
5586   case $LD in
5587   *-32|*"-32 ") libmagic=32-bit;;
5588   *-n32|*"-n32 ") libmagic=N32;;
5589   *-64|*"-64 ") libmagic=64-bit;;
5590   *) libmagic=never-match;;
5591   esac
5592   lt_cv_deplibs_check_method=pass_all
5593   ;;
5594
5595 # This must be Linux ELF.
5596 linux*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599
5600 netbsd*)
5601   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5602     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603   else
5604     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5605   fi
5606   ;;
5607
5608 newos6*)
5609   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5610   lt_cv_file_magic_cmd=/usr/bin/file
5611   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5612   ;;
5613
5614 nto-qnx*)
5615   lt_cv_deplibs_check_method=unknown
5616   ;;
5617
5618 openbsd*)
5619   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5621   else
5622     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5623   fi
5624   ;;
5625
5626 osf3* | osf4* | osf5*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629
5630 sco3.2v5*)
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633
5634 solaris*)
5635   lt_cv_deplibs_check_method=pass_all
5636   ;;
5637
5638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5639   case $host_vendor in
5640   motorola)
5641     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]'
5642     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643     ;;
5644   ncr)
5645     lt_cv_deplibs_check_method=pass_all
5646     ;;
5647   sequent)
5648     lt_cv_file_magic_cmd='/bin/file'
5649     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650     ;;
5651   sni)
5652     lt_cv_file_magic_cmd='/bin/file'
5653     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654     lt_cv_file_magic_test_file=/lib/libc.so
5655     ;;
5656   siemens)
5657     lt_cv_deplibs_check_method=pass_all
5658     ;;
5659   esac
5660   ;;
5661
5662 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665 esac
5666
5667 fi
5668 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5669 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5670 file_magic_cmd=$lt_cv_file_magic_cmd
5671 deplibs_check_method=$lt_cv_deplibs_check_method
5672 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5673
5674
5675
5676
5677 # If no C compiler was specified, use CC.
5678 LTCC=${LTCC-"$CC"}
5679
5680 # Allow CC to be a program name with arguments.
5681 compiler=$CC
5682
5683
5684 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5685 if test "${enable_libtool_lock+set}" = set; then
5686   enableval="$enable_libtool_lock"
5687
5688 fi;
5689 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5690
5691 # Some flags need to be propagated to the compiler or linker for good
5692 # libtool support.
5693 case $host in
5694 ia64-*-hpux*)
5695   # Find out which ABI we are using.
5696   echo 'int i;' > conftest.$ac_ext
5697   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698   (eval $ac_compile) 2>&5
5699   ac_status=$?
5700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701   (exit $ac_status); }; then
5702     case `/usr/bin/file conftest.$ac_objext` in
5703     *ELF-32*)
5704       HPUX_IA64_MODE="32"
5705       ;;
5706     *ELF-64*)
5707       HPUX_IA64_MODE="64"
5708       ;;
5709     esac
5710   fi
5711   rm -rf conftest*
5712   ;;
5713 *-*-irix6*)
5714   # Find out which ABI we are using.
5715   echo '#line 5715 "configure"' > conftest.$ac_ext
5716   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717   (eval $ac_compile) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; then
5721    if test "$lt_cv_prog_gnu_ld" = yes; then
5722     case `/usr/bin/file conftest.$ac_objext` in
5723     *32-bit*)
5724       LD="${LD-ld} -melf32bsmip"
5725       ;;
5726     *N32*)
5727       LD="${LD-ld} -melf32bmipn32"
5728       ;;
5729     *64-bit*)
5730       LD="${LD-ld} -melf64bmip"
5731       ;;
5732     esac
5733    else
5734     case `/usr/bin/file conftest.$ac_objext` in
5735     *32-bit*)
5736       LD="${LD-ld} -32"
5737       ;;
5738     *N32*)
5739       LD="${LD-ld} -n32"
5740       ;;
5741     *64-bit*)
5742       LD="${LD-ld} -64"
5743       ;;
5744     esac
5745    fi
5746   fi
5747   rm -rf conftest*
5748   ;;
5749
5750 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5751   # Find out which ABI we are using.
5752   echo 'int i;' > conftest.$ac_ext
5753   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); }; then
5758     case "`/usr/bin/file conftest.o`" in
5759     *32-bit*)
5760       case $host in
5761         x86_64-*linux*)
5762           LD="${LD-ld} -m elf_i386"
5763           ;;
5764         ppc64-*linux*|powerpc64-*linux*)
5765           LD="${LD-ld} -m elf32ppclinux"
5766           ;;
5767         s390x-*linux*)
5768           LD="${LD-ld} -m elf_s390"
5769           ;;
5770         sparc64-*linux*)
5771           LD="${LD-ld} -m elf32_sparc"
5772           ;;
5773       esac
5774       ;;
5775     *64-bit*)
5776       case $host in
5777         x86_64-*linux*)
5778           LD="${LD-ld} -m elf_x86_64"
5779           ;;
5780         ppc*-*linux*|powerpc*-*linux*)
5781           LD="${LD-ld} -m elf64ppc"
5782           ;;
5783         s390*-*linux*)
5784           LD="${LD-ld} -m elf64_s390"
5785           ;;
5786         sparc*-*linux*)
5787           LD="${LD-ld} -m elf64_sparc"
5788           ;;
5789       esac
5790       ;;
5791     esac
5792   fi
5793   rm -rf conftest*
5794   ;;
5795
5796 *-*-sco3.2v5*)
5797   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5798   SAVE_CFLAGS="$CFLAGS"
5799   CFLAGS="$CFLAGS -belf"
5800   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5801 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5802 if test "${lt_cv_cc_needs_belf+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   ac_ext=c
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810
5811      cat >conftest.$ac_ext <<_ACEOF
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817
5818 int
5819 main ()
5820 {
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828   (eval $ac_link) 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } &&
5835          { ac_try='test -z "$ac_c_werror_flag"
5836                          || test ! -s conftest.err'
5837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838   (eval $ac_try) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; } &&
5842          { ac_try='test -s conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   lt_cv_cc_needs_belf=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 lt_cv_cc_needs_belf=no
5854 fi
5855 rm -f conftest.err conftest.$ac_objext \
5856       conftest$ac_exeext conftest.$ac_ext
5857      ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
5863 fi
5864 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5865 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5866   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5867     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5868     CFLAGS="$SAVE_CFLAGS"
5869   fi
5870   ;;
5871 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5872   if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5875 echo "$as_me:$LINENO: checking for $ac_word" >&5
5876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5877 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   if test -n "$DLLTOOL"; then
5881   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888   for ac_exec_ext in '' $ac_executable_extensions; do
5889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895 done
5896
5897 fi
5898 fi
5899 DLLTOOL=$ac_cv_prog_DLLTOOL
5900 if test -n "$DLLTOOL"; then
5901   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5902 echo "${ECHO_T}$DLLTOOL" >&6
5903 else
5904   echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5906 fi
5907
5908 fi
5909 if test -z "$ac_cv_prog_DLLTOOL"; then
5910   ac_ct_DLLTOOL=$DLLTOOL
5911   # Extract the first word of "dlltool", so it can be a program name with args.
5912 set dummy dlltool; ac_word=$2
5913 echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5915 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test -n "$ac_ct_DLLTOOL"; then
5919   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5920 else
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922 for as_dir in $PATH
5923 do
5924   IFS=$as_save_IFS
5925   test -z "$as_dir" && as_dir=.
5926   for ac_exec_ext in '' $ac_executable_extensions; do
5927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5930     break 2
5931   fi
5932 done
5933 done
5934
5935   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5936 fi
5937 fi
5938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5939 if test -n "$ac_ct_DLLTOOL"; then
5940   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5941 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   DLLTOOL=$ac_ct_DLLTOOL
5948 else
5949   DLLTOOL="$ac_cv_prog_DLLTOOL"
5950 fi
5951
5952   if test -n "$ac_tool_prefix"; then
5953   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5954 set dummy ${ac_tool_prefix}as; ac_word=$2
5955 echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957 if test "${ac_cv_prog_AS+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   if test -n "$AS"; then
5961   ac_cv_prog_AS="$AS" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970     ac_cv_prog_AS="${ac_tool_prefix}as"
5971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975 done
5976
5977 fi
5978 fi
5979 AS=$ac_cv_prog_AS
5980 if test -n "$AS"; then
5981   echo "$as_me:$LINENO: result: $AS" >&5
5982 echo "${ECHO_T}$AS" >&6
5983 else
5984   echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988 fi
5989 if test -z "$ac_cv_prog_AS"; then
5990   ac_ct_AS=$AS
5991   # Extract the first word of "as", so it can be a program name with args.
5992 set dummy as; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   if test -n "$ac_ct_AS"; then
5999   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006   for ac_exec_ext in '' $ac_executable_extensions; do
6007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008     ac_cv_prog_ac_ct_AS="as"
6009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013 done
6014
6015   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6016 fi
6017 fi
6018 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6019 if test -n "$ac_ct_AS"; then
6020   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6021 echo "${ECHO_T}$ac_ct_AS" >&6
6022 else
6023   echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6
6025 fi
6026
6027   AS=$ac_ct_AS
6028 else
6029   AS="$ac_cv_prog_AS"
6030 fi
6031
6032   if test -n "$ac_tool_prefix"; then
6033   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6034 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6035 echo "$as_me:$LINENO: checking for $ac_word" >&5
6036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6037 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   if test -n "$OBJDUMP"; then
6041   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048   for ac_exec_ext in '' $ac_executable_extensions; do
6049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055 done
6056
6057 fi
6058 fi
6059 OBJDUMP=$ac_cv_prog_OBJDUMP
6060 if test -n "$OBJDUMP"; then
6061   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6062 echo "${ECHO_T}$OBJDUMP" >&6
6063 else
6064   echo "$as_me:$LINENO: result: no" >&5
6065 echo "${ECHO_T}no" >&6
6066 fi
6067
6068 fi
6069 if test -z "$ac_cv_prog_OBJDUMP"; then
6070   ac_ct_OBJDUMP=$OBJDUMP
6071   # Extract the first word of "objdump", so it can be a program name with args.
6072 set dummy objdump; ac_word=$2
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   if test -n "$ac_ct_OBJDUMP"; then
6079   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086   for ac_exec_ext in '' $ac_executable_extensions; do
6087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093 done
6094
6095   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6096 fi
6097 fi
6098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6099 if test -n "$ac_ct_OBJDUMP"; then
6100   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6101 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6102 else
6103   echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6
6105 fi
6106
6107   OBJDUMP=$ac_ct_OBJDUMP
6108 else
6109   OBJDUMP="$ac_cv_prog_OBJDUMP"
6110 fi
6111
6112   ;;
6113
6114 esac
6115
6116 need_locks="$enable_libtool_lock"
6117
6118
6119 ac_ext=c
6120 ac_cpp='$CPP $CPPFLAGS'
6121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6124 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6125 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6126 # On Suns, sometimes $CPP names a directory.
6127 if test -n "$CPP" && test -d "$CPP"; then
6128   CPP=
6129 fi
6130 if test -z "$CPP"; then
6131   if test "${ac_cv_prog_CPP+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134       # Double quotes because CPP needs to be expanded
6135     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6136     do
6137       ac_preproc_ok=false
6138 for ac_c_preproc_warn_flag in '' yes
6139 do
6140   # Use a header file that comes with gcc, so configuring glibc
6141   # with a fresh cross-compiler works.
6142   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143   # <limits.h> exists even on freestanding compilers.
6144   # On the NeXT, cc -E runs the code through the compiler's parser,
6145   # not just through cpp. "Syntax error" is here to catch this case.
6146   cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h.  */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h.  */
6152 #ifdef __STDC__
6153 # include <limits.h>
6154 #else
6155 # include <assert.h>
6156 #endif
6157                      Syntax error
6158 _ACEOF
6159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6161   ac_status=$?
6162   grep -v '^ *+' conftest.er1 >conftest.err
6163   rm -f conftest.er1
6164   cat conftest.err >&5
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); } >/dev/null; then
6167   if test -s conftest.err; then
6168     ac_cpp_err=$ac_c_preproc_warn_flag
6169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6170   else
6171     ac_cpp_err=
6172   fi
6173 else
6174   ac_cpp_err=yes
6175 fi
6176 if test -z "$ac_cpp_err"; then
6177   :
6178 else
6179   echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182   # Broken: fails on valid input.
6183 continue
6184 fi
6185 rm -f conftest.err conftest.$ac_ext
6186
6187   # OK, works on sane cases.  Now check whether non-existent headers
6188   # can be detected and how.
6189   cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h.  */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h.  */
6195 #include <ac_nonexistent.h>
6196 _ACEOF
6197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6199   ac_status=$?
6200   grep -v '^ *+' conftest.er1 >conftest.err
6201   rm -f conftest.er1
6202   cat conftest.err >&5
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } >/dev/null; then
6205   if test -s conftest.err; then
6206     ac_cpp_err=$ac_c_preproc_warn_flag
6207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6208   else
6209     ac_cpp_err=
6210   fi
6211 else
6212   ac_cpp_err=yes
6213 fi
6214 if test -z "$ac_cpp_err"; then
6215   # Broken: success on invalid input.
6216 continue
6217 else
6218   echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221   # Passes both tests.
6222 ac_preproc_ok=:
6223 break
6224 fi
6225 rm -f conftest.err conftest.$ac_ext
6226
6227 done
6228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6229 rm -f conftest.err conftest.$ac_ext
6230 if $ac_preproc_ok; then
6231   break
6232 fi
6233
6234     done
6235     ac_cv_prog_CPP=$CPP
6236
6237 fi
6238   CPP=$ac_cv_prog_CPP
6239 else
6240   ac_cv_prog_CPP=$CPP
6241 fi
6242 echo "$as_me:$LINENO: result: $CPP" >&5
6243 echo "${ECHO_T}$CPP" >&6
6244 ac_preproc_ok=false
6245 for ac_c_preproc_warn_flag in '' yes
6246 do
6247   # Use a header file that comes with gcc, so configuring glibc
6248   # with a fresh cross-compiler works.
6249   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6250   # <limits.h> exists even on freestanding compilers.
6251   # On the NeXT, cc -E runs the code through the compiler's parser,
6252   # not just through cpp. "Syntax error" is here to catch this case.
6253   cat >conftest.$ac_ext <<_ACEOF
6254 /* confdefs.h.  */
6255 _ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h.  */
6259 #ifdef __STDC__
6260 # include <limits.h>
6261 #else
6262 # include <assert.h>
6263 #endif
6264                      Syntax error
6265 _ACEOF
6266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } >/dev/null; then
6274   if test -s conftest.err; then
6275     ac_cpp_err=$ac_c_preproc_warn_flag
6276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6277   else
6278     ac_cpp_err=
6279   fi
6280 else
6281   ac_cpp_err=yes
6282 fi
6283 if test -z "$ac_cpp_err"; then
6284   :
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289   # Broken: fails on valid input.
6290 continue
6291 fi
6292 rm -f conftest.err conftest.$ac_ext
6293
6294   # OK, works on sane cases.  Now check whether non-existent headers
6295   # can be detected and how.
6296   cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 #include <ac_nonexistent.h>
6303 _ACEOF
6304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } >/dev/null; then
6312   if test -s conftest.err; then
6313     ac_cpp_err=$ac_c_preproc_warn_flag
6314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6315   else
6316     ac_cpp_err=
6317   fi
6318 else
6319   ac_cpp_err=yes
6320 fi
6321 if test -z "$ac_cpp_err"; then
6322   # Broken: success on invalid input.
6323 continue
6324 else
6325   echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6327
6328   # Passes both tests.
6329 ac_preproc_ok=:
6330 break
6331 fi
6332 rm -f conftest.err conftest.$ac_ext
6333
6334 done
6335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336 rm -f conftest.err conftest.$ac_ext
6337 if $ac_preproc_ok; then
6338   :
6339 else
6340   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6341 See \`config.log' for more details." >&5
6342 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6343 See \`config.log' for more details." >&2;}
6344    { (exit 1); exit 1; }; }
6345 fi
6346
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353
6354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6356 if test "${ac_cv_header_stdc+set}" = set; then
6357   echo $ECHO_N "(cached) $ECHO_C" >&6
6358 else
6359   cat >conftest.$ac_ext <<_ACEOF
6360 /* confdefs.h.  */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h.  */
6365 #include <stdlib.h>
6366 #include <stdarg.h>
6367 #include <string.h>
6368 #include <float.h>
6369
6370 int
6371 main ()
6372 {
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380   (eval $ac_compile) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } &&
6387          { ac_try='test -z "$ac_c_werror_flag"
6388                          || test ! -s conftest.err'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; } &&
6394          { ac_try='test -s conftest.$ac_objext'
6395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396   (eval $ac_try) 2>&5
6397   ac_status=$?
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); }; }; then
6400   ac_cv_header_stdc=yes
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_cv_header_stdc=no
6406 fi
6407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408
6409 if test $ac_cv_header_stdc = yes; then
6410   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6411   cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h.  */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h.  */
6417 #include <string.h>
6418
6419 _ACEOF
6420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6421   $EGREP "memchr" >/dev/null 2>&1; then
6422   :
6423 else
6424   ac_cv_header_stdc=no
6425 fi
6426 rm -f conftest*
6427
6428 fi
6429
6430 if test $ac_cv_header_stdc = yes; then
6431   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
6439
6440 _ACEOF
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442   $EGREP "free" >/dev/null 2>&1; then
6443   :
6444 else
6445   ac_cv_header_stdc=no
6446 fi
6447 rm -f conftest*
6448
6449 fi
6450
6451 if test $ac_cv_header_stdc = yes; then
6452   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6453   if test "$cross_compiling" = yes; then
6454   :
6455 else
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <ctype.h>
6463 #if ((' ' & 0x0FF) == 0x020)
6464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6466 #else
6467 # define ISLOWER(c) \
6468                    (('a' <= (c) && (c) <= 'i') \
6469                      || ('j' <= (c) && (c) <= 'r') \
6470                      || ('s' <= (c) && (c) <= 'z'))
6471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6472 #endif
6473
6474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6475 int
6476 main ()
6477 {
6478   int i;
6479   for (i = 0; i < 256; i++)
6480     if (XOR (islower (i), ISLOWER (i))
6481         || toupper (i) != TOUPPER (i))
6482       exit(2);
6483   exit (0);
6484 }
6485 _ACEOF
6486 rm -f conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488   (eval $ac_link) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493   (eval $ac_try) 2>&5
6494   ac_status=$?
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }; then
6497   :
6498 else
6499   echo "$as_me: program exited with status $ac_status" >&5
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6502
6503 ( exit $ac_status )
6504 ac_cv_header_stdc=no
6505 fi
6506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6507 fi
6508 fi
6509 fi
6510 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6511 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6512 if test $ac_cv_header_stdc = yes; then
6513
6514 cat >>confdefs.h <<\_ACEOF
6515 #define STDC_HEADERS 1
6516 _ACEOF
6517
6518 fi
6519
6520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6531                   inttypes.h stdint.h unistd.h
6532 do
6533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537   echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 $ac_includes_default
6546
6547 #include <$ac_header>
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551   (eval $ac_compile) 2>conftest.er1
6552   ac_status=$?
6553   grep -v '^ *+' conftest.er1 >conftest.err
6554   rm -f conftest.er1
6555   cat conftest.err >&5
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } &&
6558          { ac_try='test -z "$ac_c_werror_flag"
6559                          || test ! -s conftest.err'
6560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561   (eval $ac_try) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; } &&
6565          { ac_try='test -s conftest.$ac_objext'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; }; then
6571   eval "$as_ac_Header=yes"
6572 else
6573   echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 eval "$as_ac_Header=no"
6577 fi
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 fi
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583   cat >>confdefs.h <<_ACEOF
6584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6585 _ACEOF
6586
6587 fi
6588
6589 done
6590
6591
6592
6593 for ac_header in dlfcn.h
6594 do
6595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6597   echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 fi
6602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6604 else
6605   # Is the header compilable?
6606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 $ac_includes_default
6615 #include <$ac_header>
6616 _ACEOF
6617 rm -f conftest.$ac_objext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619   (eval $ac_compile) 2>conftest.er1
6620   ac_status=$?
6621   grep -v '^ *+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } &&
6626          { ac_try='test -z "$ac_c_werror_flag"
6627                          || test ! -s conftest.err'
6628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629   (eval $ac_try) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); }; } &&
6633          { ac_try='test -s conftest.$ac_objext'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; }; then
6639   ac_header_compiler=yes
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 ac_header_compiler=no
6645 fi
6646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6648 echo "${ECHO_T}$ac_header_compiler" >&6
6649
6650 # Is the header present?
6651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659 #include <$ac_header>
6660 _ACEOF
6661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6663   ac_status=$?
6664   grep -v '^ *+' conftest.er1 >conftest.err
6665   rm -f conftest.er1
6666   cat conftest.err >&5
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); } >/dev/null; then
6669   if test -s conftest.err; then
6670     ac_cpp_err=$ac_c_preproc_warn_flag
6671     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6672   else
6673     ac_cpp_err=
6674   fi
6675 else
6676   ac_cpp_err=yes
6677 fi
6678 if test -z "$ac_cpp_err"; then
6679   ac_header_preproc=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684   ac_header_preproc=no
6685 fi
6686 rm -f conftest.err conftest.$ac_ext
6687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6688 echo "${ECHO_T}$ac_header_preproc" >&6
6689
6690 # So?  What about this header?
6691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6692   yes:no: )
6693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6697     ac_header_preproc=yes
6698     ;;
6699   no:yes:* )
6700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6712     (
6713       cat <<\_ASBOX
6714 ## ------------------------------------------ ##
6715 ## Report this to the AC_PACKAGE_NAME lists.  ##
6716 ## ------------------------------------------ ##
6717 _ASBOX
6718     ) |
6719       sed "s/^/$as_me: WARNING:     /" >&2
6720     ;;
6721 esac
6722 echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727   eval "$as_ac_Header=\$ac_header_preproc"
6728 fi
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6731
6732 fi
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734   cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 _ACEOF
6737
6738 fi
6739
6740 done
6741
6742
6743 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6744
6745 # find the maximum length of command line arguments
6746 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6747 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6748 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751     i=0
6752   teststring="ABCD"
6753
6754   case $build_os in
6755   msdosdjgpp*)
6756     # On DJGPP, this test can blow up pretty badly due to problems in libc
6757     # (any single argument exceeding 2000 bytes causes a buffer overrun
6758     # during glob expansion).  Even if it were fixed, the result of this
6759     # check would be larger than it should be.
6760     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6761     ;;
6762
6763   gnu*)
6764     # Under GNU Hurd, this test is not required because there is
6765     # no limit to the length of command line arguments.
6766     # Libtool will interpret -1 as no limit whatsoever
6767     lt_cv_sys_max_cmd_len=-1;
6768     ;;
6769
6770   cygwin* | mingw*)
6771     # On Win9x/ME, this test blows up -- it succeeds, but takes
6772     # about 5 minutes as the teststring grows exponentially.
6773     # Worse, since 9x/ME are not pre-emptively multitasking,
6774     # you end up with a "frozen" computer, even though with patience
6775     # the test eventually succeeds (with a max line length of 256k).
6776     # Instead, let's just punt: use the minimum linelength reported by
6777     # all of the supported platforms: 8192 (on NT/2K/XP).
6778     lt_cv_sys_max_cmd_len=8192;
6779     ;;
6780
6781   amigaos*)
6782     # On AmigaOS with pdksh, this test takes hours, literally.
6783     # So we just punt and use a minimum line length of 8192.
6784     lt_cv_sys_max_cmd_len=8192;
6785     ;;
6786
6787   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6788     # This has been around since 386BSD, at least.  Likely further.
6789     if test -x /sbin/sysctl; then
6790       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6791     elif test -x /usr/sbin/sysctl; then
6792       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6793     else
6794       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6795     fi
6796     # And add a safety zone
6797     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6798     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6799     ;;
6800   osf*)
6801     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6802     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6803     # nice to cause kernel panics so lets avoid the loop below.
6804     # First set a reasonable default.
6805     lt_cv_sys_max_cmd_len=16384
6806     #
6807     if test -x /sbin/sysconfig; then
6808       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6809         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6810       esac
6811     fi
6812     ;;
6813   *)
6814     # If test is not a shell built-in, we'll probably end up computing a
6815     # maximum length that is only half of the actual maximum length, but
6816     # we can't tell.
6817     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6818     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6819                = "XX$teststring") >/dev/null 2>&1 &&
6820             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6821             lt_cv_sys_max_cmd_len=$new_result &&
6822             test $i != 17 # 1/2 MB should be enough
6823     do
6824       i=`expr $i + 1`
6825       teststring=$teststring$teststring
6826     done
6827     teststring=
6828     # Add a significant safety factor because C++ compilers can tack on massive
6829     # amounts of additional arguments before passing them to the linker.
6830     # It appears as though 1/2 is a usable value.
6831     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6832     ;;
6833   esac
6834
6835 fi
6836
6837 if test -n $lt_cv_sys_max_cmd_len ; then
6838   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6839 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6840 else
6841   echo "$as_me:$LINENO: result: none" >&5
6842 echo "${ECHO_T}none" >&6
6843 fi
6844
6845
6846
6847
6848 # Check for command to grab the raw symbol name followed by C symbol from nm.
6849 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6850 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6851 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854
6855 # These are sane defaults that work on at least a few old systems.
6856 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6857
6858 # Character class describing NM global symbol codes.
6859 symcode='[BCDEGRST]'
6860
6861 # Regexp to match symbols that can be accessed directly from C.
6862 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6863
6864 # Transform an extracted symbol line into a proper C declaration
6865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6866
6867 # Transform an extracted symbol line into symbol name and symbol address
6868 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'"
6869
6870 # Define system-specific variables.
6871 case $host_os in
6872 aix*)
6873   symcode='[BCDT]'
6874   ;;
6875 cygwin* | mingw* | pw32*)
6876   symcode='[ABCDGISTW]'
6877   ;;
6878 hpux*) # Its linker distinguishes data from code symbols
6879   if test "$host_cpu" = ia64; then
6880     symcode='[ABCDEGRST]'
6881   fi
6882   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6883   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'"
6884   ;;
6885 linux*)
6886   if test "$host_cpu" = ia64; then
6887     symcode='[ABCDGIRSTW]'
6888     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6889     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'"
6890   fi
6891   ;;
6892 irix* | nonstopux*)
6893   symcode='[BCDEGRST]'
6894   ;;
6895 osf*)
6896   symcode='[BCDEGQRST]'
6897   ;;
6898 solaris* | sysv5*)
6899   symcode='[BDRT]'
6900   ;;
6901 sysv4)
6902   symcode='[DFNSTU]'
6903   ;;
6904 esac
6905
6906 # Handle CRLF in mingw tool chain
6907 opt_cr=
6908 case $build_os in
6909 mingw*)
6910   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6911   ;;
6912 esac
6913
6914 # If we're using GNU nm, then use its standard symbol codes.
6915 case `$NM -V 2>&1` in
6916 *GNU* | *'with BFD'*)
6917   symcode='[ABCDGIRSTW]' ;;
6918 esac
6919
6920 # Try without a prefix undercore, then with it.
6921 for ac_symprfx in "" "_"; do
6922
6923   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6924   symxfrm="\\1 $ac_symprfx\\2 \\2"
6925
6926   # Write the raw and C identifiers.
6927   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6928
6929   # Check to see that the pipe works correctly.
6930   pipe_works=no
6931
6932   rm -f conftest*
6933   cat > conftest.$ac_ext <<EOF
6934 #ifdef __cplusplus
6935 extern "C" {
6936 #endif
6937 char nm_test_var;
6938 void nm_test_func(){}
6939 #ifdef __cplusplus
6940 }
6941 #endif
6942 int main(){nm_test_var='a';nm_test_func();return(0);}
6943 EOF
6944
6945   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6946   (eval $ac_compile) 2>&5
6947   ac_status=$?
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); }; then
6950     # Now try to grab the symbols.
6951     nlist=conftest.nm
6952     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6953   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && test -s "$nlist"; then
6957       # Try sorting and uniquifying the output.
6958       if sort "$nlist" | uniq > "$nlist"T; then
6959         mv -f "$nlist"T "$nlist"
6960       else
6961         rm -f "$nlist"T
6962       fi
6963
6964       # Make sure that we snagged all the symbols we need.
6965       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6966         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6967           cat <<EOF > conftest.$ac_ext
6968 #ifdef __cplusplus
6969 extern "C" {
6970 #endif
6971
6972 EOF
6973           # Now generate the symbol file.
6974           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6975
6976           cat <<EOF >> conftest.$ac_ext
6977 #if defined (__STDC__) && __STDC__
6978 # define lt_ptr_t void *
6979 #else
6980 # define lt_ptr_t char *
6981 # define const
6982 #endif
6983
6984 /* The mapping between symbol names and symbols. */
6985 const struct {
6986   const char *name;
6987   lt_ptr_t address;
6988 }
6989 lt_preloaded_symbols[] =
6990 {
6991 EOF
6992           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6993           cat <<\EOF >> conftest.$ac_ext
6994   {0, (lt_ptr_t) 0}
6995 };
6996
6997 #ifdef __cplusplus
6998 }
6999 #endif
7000 EOF
7001           # Now try linking the two files.
7002           mv conftest.$ac_objext conftstm.$ac_objext
7003           lt_save_LIBS="$LIBS"
7004           lt_save_CFLAGS="$CFLAGS"
7005           LIBS="conftstm.$ac_objext"
7006           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7007           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008   (eval $ac_link) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7012             pipe_works=yes
7013           fi
7014           LIBS="$lt_save_LIBS"
7015           CFLAGS="$lt_save_CFLAGS"
7016         else
7017           echo "cannot find nm_test_func in $nlist" >&5
7018         fi
7019       else
7020         echo "cannot find nm_test_var in $nlist" >&5
7021       fi
7022     else
7023       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7024     fi
7025   else
7026     echo "$progname: failed program was:" >&5
7027     cat conftest.$ac_ext >&5
7028   fi
7029   rm -f conftest* conftst*
7030
7031   # Do not use the global_symbol_pipe unless it works.
7032   if test "$pipe_works" = yes; then
7033     break
7034   else
7035     lt_cv_sys_global_symbol_pipe=
7036   fi
7037 done
7038
7039 fi
7040
7041 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7042   lt_cv_sys_global_symbol_to_cdecl=
7043 fi
7044 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7045   echo "$as_me:$LINENO: result: failed" >&5
7046 echo "${ECHO_T}failed" >&6
7047 else
7048   echo "$as_me:$LINENO: result: ok" >&5
7049 echo "${ECHO_T}ok" >&6
7050 fi
7051
7052 echo "$as_me:$LINENO: checking for objdir" >&5
7053 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7054 if test "${lt_cv_objdir+set}" = set; then
7055   echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057   rm -f .libs 2>/dev/null
7058 mkdir .libs 2>/dev/null
7059 if test -d .libs; then
7060   lt_cv_objdir=.libs
7061 else
7062   # MS-DOS does not allow filenames that begin with a dot.
7063   lt_cv_objdir=_libs
7064 fi
7065 rmdir .libs 2>/dev/null
7066 fi
7067 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7068 echo "${ECHO_T}$lt_cv_objdir" >&6
7069 objdir=$lt_cv_objdir
7070
7071
7072
7073
7074
7075 case $host_os in
7076 aix3*)
7077   # AIX sometimes has problems with the GCC collect2 program.  For some
7078   # reason, if we set the COLLECT_NAMES environment variable, the problems
7079   # vanish in a puff of smoke.
7080   if test "X${COLLECT_NAMES+set}" != Xset; then
7081     COLLECT_NAMES=
7082     export COLLECT_NAMES
7083   fi
7084   ;;
7085 esac
7086
7087 # Sed substitution that helps us do robust quoting.  It backslashifies
7088 # metacharacters that are still active within double-quoted strings.
7089 Xsed='sed -e 1s/^X//'
7090 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7091
7092 # Same as above, but do not quote variable references.
7093 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7094
7095 # Sed substitution to delay expansion of an escaped shell variable in a
7096 # double_quote_subst'ed string.
7097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7098
7099 # Sed substitution to avoid accidental globbing in evaled expressions
7100 no_glob_subst='s/\*/\\\*/g'
7101
7102 # Constants:
7103 rm="rm -f"
7104
7105 # Global variables:
7106 default_ofile=libtool
7107 can_build_shared=yes
7108
7109 # All known linkers require a `.a' archive for static linking (except M$VC,
7110 # which needs '.lib').
7111 libext=a
7112 ltmain="$ac_aux_dir/ltmain.sh"
7113 ofile="$default_ofile"
7114 with_gnu_ld="$lt_cv_prog_gnu_ld"
7115
7116 if test -n "$ac_tool_prefix"; then
7117   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122   echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124   if test -n "$AR"; then
7125   ac_cv_prog_AR="$AR" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132   for ac_exec_ext in '' $ac_executable_extensions; do
7133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134     ac_cv_prog_AR="${ac_tool_prefix}ar"
7135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139 done
7140
7141 fi
7142 fi
7143 AR=$ac_cv_prog_AR
7144 if test -n "$AR"; then
7145   echo "$as_me:$LINENO: result: $AR" >&5
7146 echo "${ECHO_T}$AR" >&6
7147 else
7148   echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7150 fi
7151
7152 fi
7153 if test -z "$ac_cv_prog_AR"; then
7154   ac_ct_AR=$AR
7155   # Extract the first word of "ar", so it can be a program name with args.
7156 set dummy ar; ac_word=$2
7157 echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160   echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162   if test -n "$ac_ct_AR"; then
7163   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170   for ac_exec_ext in '' $ac_executable_extensions; do
7171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172     ac_cv_prog_ac_ct_AR="ar"
7173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177 done
7178
7179   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7180 fi
7181 fi
7182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183 if test -n "$ac_ct_AR"; then
7184   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185 echo "${ECHO_T}$ac_ct_AR" >&6
7186 else
7187   echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6
7189 fi
7190
7191   AR=$ac_ct_AR
7192 else
7193   AR="$ac_cv_prog_AR"
7194 fi
7195
7196 if test -n "$ac_tool_prefix"; then
7197   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7199 echo "$as_me:$LINENO: checking for $ac_word" >&5
7200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7201 if test "${ac_cv_prog_RANLIB+set}" = set; then
7202   echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204   if test -n "$RANLIB"; then
7205   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210   IFS=$as_save_IFS
7211   test -z "$as_dir" && as_dir=.
7212   for ac_exec_ext in '' $ac_executable_extensions; do
7213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216     break 2
7217   fi
7218 done
7219 done
7220
7221 fi
7222 fi
7223 RANLIB=$ac_cv_prog_RANLIB
7224 if test -n "$RANLIB"; then
7225   echo "$as_me:$LINENO: result: $RANLIB" >&5
7226 echo "${ECHO_T}$RANLIB" >&6
7227 else
7228   echo "$as_me:$LINENO: result: no" >&5
7229 echo "${ECHO_T}no" >&6
7230 fi
7231
7232 fi
7233 if test -z "$ac_cv_prog_RANLIB"; then
7234   ac_ct_RANLIB=$RANLIB
7235   # Extract the first word of "ranlib", so it can be a program name with args.
7236 set dummy ranlib; ac_word=$2
7237 echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7239 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   if test -n "$ac_ct_RANLIB"; then
7243   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248   IFS=$as_save_IFS
7249   test -z "$as_dir" && as_dir=.
7250   for ac_exec_ext in '' $ac_executable_extensions; do
7251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252     ac_cv_prog_ac_ct_RANLIB="ranlib"
7253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7254     break 2
7255   fi
7256 done
7257 done
7258
7259   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7260 fi
7261 fi
7262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7263 if test -n "$ac_ct_RANLIB"; then
7264   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7265 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7266 else
7267   echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6
7269 fi
7270
7271   RANLIB=$ac_ct_RANLIB
7272 else
7273   RANLIB="$ac_cv_prog_RANLIB"
7274 fi
7275
7276 if test -n "$ac_tool_prefix"; then
7277   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}strip; ac_word=$2
7279 echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281 if test "${ac_cv_prog_STRIP+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   if test -n "$STRIP"; then
7285   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292   for ac_exec_ext in '' $ac_executable_extensions; do
7293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299 done
7300
7301 fi
7302 fi
7303 STRIP=$ac_cv_prog_STRIP
7304 if test -n "$STRIP"; then
7305   echo "$as_me:$LINENO: result: $STRIP" >&5
7306 echo "${ECHO_T}$STRIP" >&6
7307 else
7308   echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6
7310 fi
7311
7312 fi
7313 if test -z "$ac_cv_prog_STRIP"; then
7314   ac_ct_STRIP=$STRIP
7315   # Extract the first word of "strip", so it can be a program name with args.
7316 set dummy strip; ac_word=$2
7317 echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7319 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   if test -n "$ac_ct_STRIP"; then
7323   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328   IFS=$as_save_IFS
7329   test -z "$as_dir" && as_dir=.
7330   for ac_exec_ext in '' $ac_executable_extensions; do
7331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_STRIP="strip"
7333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335   fi
7336 done
7337 done
7338
7339   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7340 fi
7341 fi
7342 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7343 if test -n "$ac_ct_STRIP"; then
7344   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7345 echo "${ECHO_T}$ac_ct_STRIP" >&6
7346 else
7347   echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6
7349 fi
7350
7351   STRIP=$ac_ct_STRIP
7352 else
7353   STRIP="$ac_cv_prog_STRIP"
7354 fi
7355
7356
7357 old_CC="$CC"
7358 old_CFLAGS="$CFLAGS"
7359
7360 # Set sane defaults for various variables
7361 test -z "$AR" && AR=ar
7362 test -z "$AR_FLAGS" && AR_FLAGS=cru
7363 test -z "$AS" && AS=as
7364 test -z "$CC" && CC=cc
7365 test -z "$LTCC" && LTCC=$CC
7366 test -z "$DLLTOOL" && DLLTOOL=dlltool
7367 test -z "$LD" && LD=ld
7368 test -z "$LN_S" && LN_S="ln -s"
7369 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7370 test -z "$NM" && NM=nm
7371 test -z "$SED" && SED=sed
7372 test -z "$OBJDUMP" && OBJDUMP=objdump
7373 test -z "$RANLIB" && RANLIB=:
7374 test -z "$STRIP" && STRIP=:
7375 test -z "$ac_objext" && ac_objext=o
7376
7377 # Determine commands to create old-style static archives.
7378 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7379 old_postinstall_cmds='chmod 644 $oldlib'
7380 old_postuninstall_cmds=
7381
7382 if test -n "$RANLIB"; then
7383   case $host_os in
7384   openbsd*)
7385     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7386     ;;
7387   *)
7388     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7389     ;;
7390   esac
7391   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7392 fi
7393
7394 for cc_temp in $compiler""; do
7395   case $cc_temp in
7396     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7397     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7398     \-*) ;;
7399     *) break;;
7400   esac
7401 done
7402 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7403
7404
7405 # Only perform the check for file, if the check method requires it
7406 case $deplibs_check_method in
7407 file_magic*)
7408   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7409     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7410 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7411 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   case $MAGIC_CMD in
7415 [\\/*] |  ?:[\\/]*)
7416   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7417   ;;
7418 *)
7419   lt_save_MAGIC_CMD="$MAGIC_CMD"
7420   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7421   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7422   for ac_dir in $ac_dummy; do
7423     IFS="$lt_save_ifs"
7424     test -z "$ac_dir" && ac_dir=.
7425     if test -f $ac_dir/${ac_tool_prefix}file; then
7426       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7427       if test -n "$file_magic_test_file"; then
7428         case $deplibs_check_method in
7429         "file_magic "*)
7430           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7431           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7432           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7433             $EGREP "$file_magic_regex" > /dev/null; then
7434             :
7435           else
7436             cat <<EOF 1>&2
7437
7438 *** Warning: the command libtool uses to detect shared libraries,
7439 *** $file_magic_cmd, produces output that libtool cannot recognize.
7440 *** The result is that libtool may fail to recognize shared libraries
7441 *** as such.  This will affect the creation of libtool libraries that
7442 *** depend on shared libraries, but programs linked with such libtool
7443 *** libraries will work regardless of this problem.  Nevertheless, you
7444 *** may want to report the problem to your system manager and/or to
7445 *** bug-libtool@gnu.org
7446
7447 EOF
7448           fi ;;
7449         esac
7450       fi
7451       break
7452     fi
7453   done
7454   IFS="$lt_save_ifs"
7455   MAGIC_CMD="$lt_save_MAGIC_CMD"
7456   ;;
7457 esac
7458 fi
7459
7460 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7461 if test -n "$MAGIC_CMD"; then
7462   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7463 echo "${ECHO_T}$MAGIC_CMD" >&6
7464 else
7465   echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6
7467 fi
7468
7469 if test -z "$lt_cv_path_MAGIC_CMD"; then
7470   if test -n "$ac_tool_prefix"; then
7471     echo "$as_me:$LINENO: checking for file" >&5
7472 echo $ECHO_N "checking for file... $ECHO_C" >&6
7473 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7474   echo $ECHO_N "(cached) $ECHO_C" >&6
7475 else
7476   case $MAGIC_CMD in
7477 [\\/*] |  ?:[\\/]*)
7478   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7479   ;;
7480 *)
7481   lt_save_MAGIC_CMD="$MAGIC_CMD"
7482   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7483   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7484   for ac_dir in $ac_dummy; do
7485     IFS="$lt_save_ifs"
7486     test -z "$ac_dir" && ac_dir=.
7487     if test -f $ac_dir/file; then
7488       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7489       if test -n "$file_magic_test_file"; then
7490         case $deplibs_check_method in
7491         "file_magic "*)
7492           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7493           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7494           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7495             $EGREP "$file_magic_regex" > /dev/null; then
7496             :
7497           else
7498             cat <<EOF 1>&2
7499
7500 *** Warning: the command libtool uses to detect shared libraries,
7501 *** $file_magic_cmd, produces output that libtool cannot recognize.
7502 *** The result is that libtool may fail to recognize shared libraries
7503 *** as such.  This will affect the creation of libtool libraries that
7504 *** depend on shared libraries, but programs linked with such libtool
7505 *** libraries will work regardless of this problem.  Nevertheless, you
7506 *** may want to report the problem to your system manager and/or to
7507 *** bug-libtool@gnu.org
7508
7509 EOF
7510           fi ;;
7511         esac
7512       fi
7513       break
7514     fi
7515   done
7516   IFS="$lt_save_ifs"
7517   MAGIC_CMD="$lt_save_MAGIC_CMD"
7518   ;;
7519 esac
7520 fi
7521
7522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7523 if test -n "$MAGIC_CMD"; then
7524   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7525 echo "${ECHO_T}$MAGIC_CMD" >&6
7526 else
7527   echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529 fi
7530
7531   else
7532     MAGIC_CMD=:
7533   fi
7534 fi
7535
7536   fi
7537   ;;
7538 esac
7539
7540 enable_dlopen=yes
7541 enable_win32_dll=yes
7542
7543 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7544 if test "${enable_libtool_lock+set}" = set; then
7545   enableval="$enable_libtool_lock"
7546
7547 fi;
7548 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7549
7550
7551 # Check whether --with-pic or --without-pic was given.
7552 if test "${with_pic+set}" = set; then
7553   withval="$with_pic"
7554   pic_mode="$withval"
7555 else
7556   pic_mode=default
7557 fi;
7558 test -z "$pic_mode" && pic_mode=default
7559
7560 # Use C for the default configuration in the libtool script
7561 tagname=
7562 lt_save_CC="$CC"
7563 ac_ext=c
7564 ac_cpp='$CPP $CPPFLAGS'
7565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7568
7569
7570 # Source file extension for C test sources.
7571 ac_ext=c
7572
7573 # Object file extension for compiled C test sources.
7574 objext=o
7575 objext=$objext
7576
7577 # Code to be used in simple compile tests
7578 lt_simple_compile_test_code="int some_variable = 0;\n"
7579
7580 # Code to be used in simple link tests
7581 lt_simple_link_test_code='int main(){return(0);}\n'
7582
7583
7584 # If no C compiler was specified, use CC.
7585 LTCC=${LTCC-"$CC"}
7586
7587 # Allow CC to be a program name with arguments.
7588 compiler=$CC
7589
7590
7591 # save warnings/boilerplate of simple test code
7592 ac_outfile=conftest.$ac_objext
7593 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7594 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7595 _lt_compiler_boilerplate=`cat conftest.err`
7596 $rm conftest*
7597
7598 ac_outfile=conftest.$ac_objext
7599 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7600 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7601 _lt_linker_boilerplate=`cat conftest.err`
7602 $rm conftest*
7603
7604
7605 #
7606 # Check for any special shared library compilation flags.
7607 #
7608 lt_prog_cc_shlib=
7609 if test "$GCC" = no; then
7610   case $host_os in
7611   sco3.2v5*)
7612     lt_prog_cc_shlib='-belf'
7613     ;;
7614   esac
7615 fi
7616 if test -n "$lt_prog_cc_shlib"; then
7617   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7618 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7619   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7620   else
7621     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7622 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7623     lt_cv_prog_cc_can_build_shared=no
7624   fi
7625 fi
7626
7627
7628 #
7629 # Check to make sure the static flag actually works.
7630 #
7631 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7632 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7633 if test "${lt_prog_compiler_static_works+set}" = set; then
7634   echo $ECHO_N "(cached) $ECHO_C" >&6
7635 else
7636   lt_prog_compiler_static_works=no
7637    save_LDFLAGS="$LDFLAGS"
7638    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7639    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7640    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7641      # The compiler can only warn and ignore the option if not recognized
7642      # So say no if there are warnings
7643      if test -s conftest.err; then
7644        # Append any errors to the config.log.
7645        cat conftest.err 1>&5
7646        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7647        $SED '/^$/d' conftest.err >conftest.er2
7648        if diff conftest.exp conftest.er2 >/dev/null; then
7649          lt_prog_compiler_static_works=yes
7650        fi
7651      else
7652        lt_prog_compiler_static_works=yes
7653      fi
7654    fi
7655    $rm conftest*
7656    LDFLAGS="$save_LDFLAGS"
7657
7658 fi
7659 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7660 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7661
7662 if test x"$lt_prog_compiler_static_works" = xyes; then
7663     :
7664 else
7665     lt_prog_compiler_static=
7666 fi
7667
7668
7669
7670
7671 lt_prog_compiler_no_builtin_flag=
7672
7673 if test "$GCC" = yes; then
7674   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7675
7676
7677 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7678 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7679 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   lt_cv_prog_compiler_rtti_exceptions=no
7683   ac_outfile=conftest.$ac_objext
7684    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7685    lt_compiler_flag="-fno-rtti -fno-exceptions"
7686    # Insert the option either (1) after the last *FLAGS variable, or
7687    # (2) before a word containing "conftest.", or (3) at the end.
7688    # Note that $ac_compile itself does not contain backslashes and begins
7689    # with a dollar sign (not a hyphen), so the echo should work correctly.
7690    # The option is referenced via a variable to avoid confusing sed.
7691    lt_compile=`echo "$ac_compile" | $SED \
7692    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7693    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7694    -e 's:$: $lt_compiler_flag:'`
7695    (eval echo "\"\$as_me:7695: $lt_compile\"" >&5)
7696    (eval "$lt_compile" 2>conftest.err)
7697    ac_status=$?
7698    cat conftest.err >&5
7699    echo "$as_me:7699: \$? = $ac_status" >&5
7700    if (exit $ac_status) && test -s "$ac_outfile"; then
7701      # The compiler can only warn and ignore the option if not recognized
7702      # So say no if there are warnings other than the usual output.
7703      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7704      $SED '/^$/d' conftest.err >conftest.er2
7705      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7706        lt_cv_prog_compiler_rtti_exceptions=yes
7707      fi
7708    fi
7709    $rm conftest*
7710
7711 fi
7712 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7713 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7714
7715 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7716     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7717 else
7718     :
7719 fi
7720
7721 fi
7722
7723 lt_prog_compiler_wl=
7724 lt_prog_compiler_pic=
7725 lt_prog_compiler_static=
7726
7727 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7729
7730   if test "$GCC" = yes; then
7731     lt_prog_compiler_wl='-Wl,'
7732     lt_prog_compiler_static='-static'
7733
7734     case $host_os in
7735       aix*)
7736       # All AIX code is PIC.
7737       if test "$host_cpu" = ia64; then
7738         # AIX 5 now supports IA64 processor
7739         lt_prog_compiler_static='-Bstatic'
7740       fi
7741       ;;
7742
7743     amigaos*)
7744       # FIXME: we need at least 68020 code to build shared libraries, but
7745       # adding the `-m68020' flag to GCC prevents building anything better,
7746       # like `-m68040'.
7747       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7748       ;;
7749
7750     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7751       # PIC is the default for these OSes.
7752       ;;
7753
7754     mingw* | pw32* | os2*)
7755       # This hack is so that the source file can tell whether it is being
7756       # built for inclusion in a dll (and should export symbols for example).
7757       lt_prog_compiler_pic='-DDLL_EXPORT'
7758       ;;
7759
7760     darwin* | rhapsody*)
7761       # PIC is the default on this platform
7762       # Common symbols not allowed in MH_DYLIB files
7763       lt_prog_compiler_pic='-fno-common'
7764       ;;
7765
7766     msdosdjgpp*)
7767       # Just because we use GCC doesn't mean we suddenly get shared libraries
7768       # on systems that don't support them.
7769       lt_prog_compiler_can_build_shared=no
7770       enable_shared=no
7771       ;;
7772
7773     sysv4*MP*)
7774       if test -d /usr/nec; then
7775         lt_prog_compiler_pic=-Kconform_pic
7776       fi
7777       ;;
7778
7779     hpux*)
7780       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7781       # not for PA HP-UX.
7782       case "$host_cpu" in
7783       hppa*64*|ia64*)
7784         # +Z the default
7785         ;;
7786       *)
7787         lt_prog_compiler_pic='-fPIC'
7788         ;;
7789       esac
7790       ;;
7791
7792     *)
7793       lt_prog_compiler_pic='-fPIC'
7794       ;;
7795     esac
7796   else
7797     # PORTME Check for flag to pass linker flags through the system compiler.
7798     case $host_os in
7799     aix*)
7800       lt_prog_compiler_wl='-Wl,'
7801       if test "$host_cpu" = ia64; then
7802         # AIX 5 now supports IA64 processor
7803         lt_prog_compiler_static='-Bstatic'
7804       else
7805         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7806       fi
7807       ;;
7808       darwin*)
7809         # PIC is the default on this platform
7810         # Common symbols not allowed in MH_DYLIB files
7811        case $cc_basename in
7812          xlc*)
7813          lt_prog_compiler_pic='-qnocommon'
7814          lt_prog_compiler_wl='-Wl,'
7815          ;;
7816        esac
7817        ;;
7818
7819     mingw* | pw32* | os2*)
7820       # This hack is so that the source file can tell whether it is being
7821       # built for inclusion in a dll (and should export symbols for example).
7822       lt_prog_compiler_pic='-DDLL_EXPORT'
7823       ;;
7824
7825     hpux9* | hpux10* | hpux11*)
7826       lt_prog_compiler_wl='-Wl,'
7827       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7828       # not for PA HP-UX.
7829       case "$host_cpu" in
7830       hppa*64*|ia64*)
7831         # +Z the default
7832         ;;
7833       *)
7834         lt_prog_compiler_pic='+Z'
7835         ;;
7836       esac
7837       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7838       lt_prog_compiler_static='${wl}-a ${wl}archive'
7839       ;;
7840
7841     irix5* | irix6* | nonstopux*)
7842       lt_prog_compiler_wl='-Wl,'
7843       # PIC (with -KPIC) is the default.
7844       lt_prog_compiler_static='-non_shared'
7845       ;;
7846
7847     newsos6)
7848       lt_prog_compiler_pic='-KPIC'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     linux*)
7853       case $cc_basename in
7854       icc* | ecc*)
7855         lt_prog_compiler_wl='-Wl,'
7856         lt_prog_compiler_pic='-KPIC'
7857         lt_prog_compiler_static='-static'
7858         ;;
7859       pgcc* | pgf77* | pgf90*)
7860         # Portland Group compilers (*not* the Pentium gcc compiler,
7861         # which looks to be a dead project)
7862         lt_prog_compiler_wl='-Wl,'
7863         lt_prog_compiler_pic='-fpic'
7864         lt_prog_compiler_static='-static'
7865         ;;
7866       ccc*)
7867         lt_prog_compiler_wl='-Wl,'
7868         # All Alpha code is PIC.
7869         lt_prog_compiler_static='-non_shared'
7870         ;;
7871       esac
7872       ;;
7873
7874     osf3* | osf4* | osf5*)
7875       lt_prog_compiler_wl='-Wl,'
7876       # All OSF/1 code is PIC.
7877       lt_prog_compiler_static='-non_shared'
7878       ;;
7879
7880     sco3.2v5*)
7881       lt_prog_compiler_pic='-Kpic'
7882       lt_prog_compiler_static='-dn'
7883       ;;
7884
7885     solaris*)
7886       lt_prog_compiler_pic='-KPIC'
7887       lt_prog_compiler_static='-Bstatic'
7888       case $cc_basename in
7889       f77* | f90* | f95*)
7890         lt_prog_compiler_wl='-Qoption ld ';;
7891       *)
7892         lt_prog_compiler_wl='-Wl,';;
7893       esac
7894       ;;
7895
7896     sunos4*)
7897       lt_prog_compiler_wl='-Qoption ld '
7898       lt_prog_compiler_pic='-PIC'
7899       lt_prog_compiler_static='-Bstatic'
7900       ;;
7901
7902     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7903       lt_prog_compiler_wl='-Wl,'
7904       lt_prog_compiler_pic='-KPIC'
7905       lt_prog_compiler_static='-Bstatic'
7906       ;;
7907
7908     sysv4*MP*)
7909       if test -d /usr/nec ;then
7910         lt_prog_compiler_pic='-Kconform_pic'
7911         lt_prog_compiler_static='-Bstatic'
7912       fi
7913       ;;
7914
7915     unicos*)
7916       lt_prog_compiler_wl='-Wl,'
7917       lt_prog_compiler_can_build_shared=no
7918       ;;
7919
7920     uts4*)
7921       lt_prog_compiler_pic='-pic'
7922       lt_prog_compiler_static='-Bstatic'
7923       ;;
7924
7925     *)
7926       lt_prog_compiler_can_build_shared=no
7927       ;;
7928     esac
7929   fi
7930
7931 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7932 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7933
7934 #
7935 # Check to make sure the PIC flag actually works.
7936 #
7937 if test -n "$lt_prog_compiler_pic"; then
7938
7939 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7941 if test "${lt_prog_compiler_pic_works+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   lt_prog_compiler_pic_works=no
7945   ac_outfile=conftest.$ac_objext
7946    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7948    # Insert the option either (1) after the last *FLAGS variable, or
7949    # (2) before a word containing "conftest.", or (3) at the end.
7950    # Note that $ac_compile itself does not contain backslashes and begins
7951    # with a dollar sign (not a hyphen), so the echo should work correctly.
7952    # The option is referenced via a variable to avoid confusing sed.
7953    lt_compile=`echo "$ac_compile" | $SED \
7954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956    -e 's:$: $lt_compiler_flag:'`
7957    (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958    (eval "$lt_compile" 2>conftest.err)
7959    ac_status=$?
7960    cat conftest.err >&5
7961    echo "$as_me:7961: \$? = $ac_status" >&5
7962    if (exit $ac_status) && test -s "$ac_outfile"; then
7963      # The compiler can only warn and ignore the option if not recognized
7964      # So say no if there are warnings other than the usual output.
7965      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7966      $SED '/^$/d' conftest.err >conftest.er2
7967      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7968        lt_prog_compiler_pic_works=yes
7969      fi
7970    fi
7971    $rm conftest*
7972
7973 fi
7974 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7975 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7976
7977 if test x"$lt_prog_compiler_pic_works" = xyes; then
7978     case $lt_prog_compiler_pic in
7979      "" | " "*) ;;
7980      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7981      esac
7982 else
7983     lt_prog_compiler_pic=
7984      lt_prog_compiler_can_build_shared=no
7985 fi
7986
7987 fi
7988 case "$host_os" in
7989   # For platforms which do not support PIC, -DPIC is meaningless:
7990   *djgpp*)
7991     lt_prog_compiler_pic=
7992     ;;
7993   *)
7994     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7995     ;;
7996 esac
7997
7998 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7999 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8000 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   lt_cv_prog_compiler_c_o=no
8004    $rm -r conftest 2>/dev/null
8005    mkdir conftest
8006    cd conftest
8007    mkdir out
8008    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8009
8010    lt_compiler_flag="-o out/conftest2.$ac_objext"
8011    # Insert the option either (1) after the last *FLAGS variable, or
8012    # (2) before a word containing "conftest.", or (3) at the end.
8013    # Note that $ac_compile itself does not contain backslashes and begins
8014    # with a dollar sign (not a hyphen), so the echo should work correctly.
8015    lt_compile=`echo "$ac_compile" | $SED \
8016    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018    -e 's:$: $lt_compiler_flag:'`
8019    (eval echo "\"\$as_me:8019: $lt_compile\"" >&5)
8020    (eval "$lt_compile" 2>out/conftest.err)
8021    ac_status=$?
8022    cat out/conftest.err >&5
8023    echo "$as_me:8023: \$? = $ac_status" >&5
8024    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8025    then
8026      # The compiler can only warn and ignore the option if not recognized
8027      # So say no if there are warnings
8028      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8029      $SED '/^$/d' out/conftest.err >out/conftest.er2
8030      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8031        lt_cv_prog_compiler_c_o=yes
8032      fi
8033    fi
8034    chmod u+w .
8035    $rm conftest*
8036    # SGI C++ compiler will create directory out/ii_files/ for
8037    # template instantiation
8038    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8039    $rm out/* && rmdir out
8040    cd ..
8041    rmdir conftest
8042    $rm conftest*
8043
8044 fi
8045 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8046 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8047
8048
8049 hard_links="nottested"
8050 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8051   # do not overwrite the value of need_locks provided by the user
8052   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8053 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8054   hard_links=yes
8055   $rm conftest*
8056   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8057   touch conftest.a
8058   ln conftest.a conftest.b 2>&5 || hard_links=no
8059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8060   echo "$as_me:$LINENO: result: $hard_links" >&5
8061 echo "${ECHO_T}$hard_links" >&6
8062   if test "$hard_links" = no; then
8063     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8064 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8065     need_locks=warn
8066   fi
8067 else
8068   need_locks=no
8069 fi
8070
8071 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8072 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8073
8074   runpath_var=
8075   allow_undefined_flag=
8076   enable_shared_with_static_runtimes=no
8077   archive_cmds=
8078   archive_expsym_cmds=
8079   old_archive_From_new_cmds=
8080   old_archive_from_expsyms_cmds=
8081   export_dynamic_flag_spec=
8082   whole_archive_flag_spec=
8083   thread_safe_flag_spec=
8084   hardcode_libdir_flag_spec=
8085   hardcode_libdir_flag_spec_ld=
8086   hardcode_libdir_separator=
8087   hardcode_direct=no
8088   hardcode_minus_L=no
8089   hardcode_shlibpath_var=unsupported
8090   link_all_deplibs=unknown
8091   hardcode_automatic=no
8092   module_cmds=
8093   module_expsym_cmds=
8094   always_export_symbols=no
8095   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8096   # include_expsyms should be a list of space-separated symbols to be *always*
8097   # included in the symbol list
8098   include_expsyms=
8099   # exclude_expsyms can be an extended regexp of symbols to exclude
8100   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8101   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8102   # as well as any symbol that contains `d'.
8103   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8104   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8105   # platforms (ab)use it in PIC code, but their linkers get confused if
8106   # the symbol is explicitly referenced.  Since portable code cannot
8107   # rely on this symbol name, it's probably fine to never include it in
8108   # preloaded symbol tables.
8109   extract_expsyms_cmds=
8110   # Just being paranoid about ensuring that cc_basename is set.
8111   for cc_temp in $compiler""; do
8112   case $cc_temp in
8113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8115     \-*) ;;
8116     *) break;;
8117   esac
8118 done
8119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8120
8121   case $host_os in
8122   cygwin* | mingw* | pw32*)
8123     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8124     # When not using gcc, we currently assume that we are using
8125     # Microsoft Visual C++.
8126     if test "$GCC" != yes; then
8127       with_gnu_ld=no
8128     fi
8129     ;;
8130   openbsd*)
8131     with_gnu_ld=no
8132     ;;
8133   esac
8134
8135   ld_shlibs=yes
8136   if test "$with_gnu_ld" = yes; then
8137     # If archive_cmds runs LD, not CC, wlarc should be empty
8138     wlarc='${wl}'
8139
8140     # Set some defaults for GNU ld with shared library support. These
8141     # are reset later if shared libraries are not supported. Putting them
8142     # here allows them to be overridden if necessary.
8143     runpath_var=LD_RUN_PATH
8144     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8145     export_dynamic_flag_spec='${wl}--export-dynamic'
8146     # ancient GNU ld didn't support --whole-archive et. al.
8147     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8148         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8149       else
8150         whole_archive_flag_spec=
8151     fi
8152     supports_anon_versioning=no
8153     case `$LD -v 2>/dev/null` in
8154       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8155       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8156       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8157       *\ 2.11.*) ;; # other 2.11 versions
8158       *) supports_anon_versioning=yes ;;
8159     esac
8160
8161     # See if GNU ld supports shared libraries.
8162     case $host_os in
8163     aix3* | aix4* | aix5*)
8164       # On AIX/PPC, the GNU linker is very broken
8165       if test "$host_cpu" != ia64; then
8166         ld_shlibs=no
8167         cat <<EOF 1>&2
8168
8169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8170 *** to be unable to reliably create shared libraries on AIX.
8171 *** Therefore, libtool is disabling shared libraries support.  If you
8172 *** really care for shared libraries, you may want to modify your PATH
8173 *** so that a non-GNU linker is found, and then restart.
8174
8175 EOF
8176       fi
8177       ;;
8178
8179     amigaos*)
8180       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)'
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       hardcode_minus_L=yes
8183
8184       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8185       # that the semantics of dynamic libraries on AmigaOS, at least up
8186       # to version 4, is to share data among multiple programs linked
8187       # with the same dynamic library.  Since this doesn't match the
8188       # behavior of shared libraries on other platforms, we can't use
8189       # them.
8190       ld_shlibs=no
8191       ;;
8192
8193     beos*)
8194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8195         allow_undefined_flag=unsupported
8196         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8197         # support --undefined.  This deserves some investigation.  FIXME
8198         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199       else
8200         ld_shlibs=no
8201       fi
8202       ;;
8203
8204     cygwin* | mingw* | pw32*)
8205       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8206       # as there is no search path for DLLs.
8207       hardcode_libdir_flag_spec='-L$libdir'
8208       allow_undefined_flag=unsupported
8209       always_export_symbols=no
8210       enable_shared_with_static_runtimes=yes
8211       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8212
8213       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8214         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8215         # If the export-symbols file already is a .def file (1st line
8216         # is EXPORTS), use it as is; otherwise, prepend...
8217         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8218           cp $export_symbols $output_objdir/$soname.def;
8219         else
8220           echo EXPORTS > $output_objdir/$soname.def;
8221           cat $export_symbols >> $output_objdir/$soname.def;
8222         fi~
8223         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8224       else
8225         ld_shlibs=no
8226       fi
8227       ;;
8228
8229     linux*)
8230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8231         tmp_addflag=
8232         case $cc_basename,$host_cpu in
8233         pgcc*)                          # Portland Group C compiler
8234           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'
8235           tmp_addflag=' $pic_flag'
8236           ;;
8237         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
8238           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'
8239           tmp_addflag=' $pic_flag -Mnomain' ;;
8240         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8241           tmp_addflag=' -i_dynamic' ;;
8242         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8243           tmp_addflag=' -i_dynamic -nofor_main' ;;
8244         ifc* | ifort*)                  # Intel Fortran compiler
8245           tmp_addflag=' -nofor_main' ;;
8246         esac
8247         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8248
8249         if test $supports_anon_versioning = yes; then
8250           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8251   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8252   $echo "local: *; };" >> $output_objdir/$libname.ver~
8253           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8254         fi
8255       else
8256         ld_shlibs=no
8257       fi
8258       ;;
8259
8260     netbsd*)
8261       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8263         wlarc=
8264       else
8265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8267       fi
8268       ;;
8269
8270     solaris* | sysv5*)
8271       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8272         ld_shlibs=no
8273         cat <<EOF 1>&2
8274
8275 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8276 *** create shared libraries on Solaris systems.  Therefore, libtool
8277 *** is disabling shared libraries support.  We urge you to upgrade GNU
8278 *** binutils to release 2.9.1 or newer.  Another option is to modify
8279 *** your PATH or compiler configuration so that the native linker is
8280 *** used, and then restart.
8281
8282 EOF
8283       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8284         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8285         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8286       else
8287         ld_shlibs=no
8288       fi
8289       ;;
8290
8291     sunos4*)
8292       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8293       wlarc=
8294       hardcode_direct=yes
8295       hardcode_shlibpath_var=no
8296       ;;
8297
8298     *)
8299       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302       else
8303         ld_shlibs=no
8304       fi
8305       ;;
8306     esac
8307
8308     if test "$ld_shlibs" = no; then
8309       runpath_var=
8310       hardcode_libdir_flag_spec=
8311       export_dynamic_flag_spec=
8312       whole_archive_flag_spec=
8313     fi
8314   else
8315     # PORTME fill in a description of your system's linker (not GNU ld)
8316     case $host_os in
8317     aix3*)
8318       allow_undefined_flag=unsupported
8319       always_export_symbols=yes
8320       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'
8321       # Note: this linker hardcodes the directories in LIBPATH if there
8322       # are no directories specified by -L.
8323       hardcode_minus_L=yes
8324       if test "$GCC" = yes && test -z "$link_static_flag"; then
8325         # Neither direct hardcoding nor static linking is supported with a
8326         # broken collect2.
8327         hardcode_direct=unsupported
8328       fi
8329       ;;
8330
8331     aix4* | aix5*)
8332       if test "$host_cpu" = ia64; then
8333         # On IA64, the linker does run time linking by default, so we don't
8334         # have to do anything special.
8335         aix_use_runtimelinking=no
8336         exp_sym_flag='-Bexport'
8337         no_entry_flag=""
8338       else
8339         # If we're using GNU nm, then we don't want the "-C" option.
8340         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8341         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8342           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'
8343         else
8344           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'
8345         fi
8346         aix_use_runtimelinking=no
8347
8348         # Test if we are trying to use run time linking or normal
8349         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8350         # need to do runtime linking.
8351         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8352           for ld_flag in $LDFLAGS; do
8353           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8354             aix_use_runtimelinking=yes
8355             break
8356           fi
8357           done
8358         esac
8359
8360         exp_sym_flag='-bexport'
8361         no_entry_flag='-bnoentry'
8362       fi
8363
8364       # When large executables or shared objects are built, AIX ld can
8365       # have problems creating the table of contents.  If linking a library
8366       # or program results in "error TOC overflow" add -mminimal-toc to
8367       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8368       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8369
8370       archive_cmds=''
8371       hardcode_direct=yes
8372       hardcode_libdir_separator=':'
8373       link_all_deplibs=yes
8374
8375       if test "$GCC" = yes; then
8376         case $host_os in aix4.[012]|aix4.[012].*)
8377         # We only want to do this on AIX 4.2 and lower, the check
8378         # below for broken collect2 doesn't work under 4.3+
8379           collect2name=`${CC} -print-prog-name=collect2`
8380           if test -f "$collect2name" && \
8381            strings "$collect2name" | grep resolve_lib_name >/dev/null
8382           then
8383           # We have reworked collect2
8384           hardcode_direct=yes
8385           else
8386           # We have old collect2
8387           hardcode_direct=unsupported
8388           # It fails to find uninstalled libraries when the uninstalled
8389           # path is not listed in the libpath.  Setting hardcode_minus_L
8390           # to unsupported forces relinking
8391           hardcode_minus_L=yes
8392           hardcode_libdir_flag_spec='-L$libdir'
8393           hardcode_libdir_separator=
8394           fi
8395         esac
8396         shared_flag='-shared'
8397         if test "$aix_use_runtimelinking" = yes; then
8398           shared_flag="$shared_flag "'${wl}-G'
8399         fi
8400       else
8401         # not using gcc
8402         if test "$host_cpu" = ia64; then
8403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8404         # chokes on -Wl,-G. The following line is correct:
8405           shared_flag='-G'
8406         else
8407         if test "$aix_use_runtimelinking" = yes; then
8408             shared_flag='${wl}-G'
8409           else
8410             shared_flag='${wl}-bM:SRE'
8411         fi
8412         fi
8413       fi
8414
8415       # It seems that -bexpall does not export symbols beginning with
8416       # underscore (_), so it is better to generate a list of symbols to export.
8417       always_export_symbols=yes
8418       if test "$aix_use_runtimelinking" = yes; then
8419         # Warning - without using the other runtime loading flags (-brtl),
8420         # -berok will link without error, but may produce a broken library.
8421         allow_undefined_flag='-berok'
8422        # Determine the default libpath from the value encoded in an empty executable.
8423        cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430 int
8431 main ()
8432 {
8433
8434   ;
8435   return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440   (eval $ac_link) 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -z "$ac_c_werror_flag"
8448                          || test ! -s conftest.err'
8449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450   (eval $ac_try) 2>&5
8451   ac_status=$?
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); }; } &&
8454          { ac_try='test -s conftest$ac_exeext'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460
8461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8462 }'`
8463 # Check for a 64-bit object if we didn't find anything.
8464 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; }
8465 }'`; fi
8466 else
8467   echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 fi
8471 rm -f conftest.err conftest.$ac_objext \
8472       conftest$ac_exeext conftest.$ac_ext
8473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474
8475        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476         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"
8477        else
8478         if test "$host_cpu" = ia64; then
8479           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480           allow_undefined_flag="-z nodefs"
8481           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"
8482         else
8483          # Determine the default libpath from the value encoded in an empty executable.
8484          cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h.  */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h.  */
8490
8491 int
8492 main ()
8493 {
8494
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>conftest.er1
8502   ac_status=$?
8503   grep -v '^ *+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } &&
8508          { ac_try='test -z "$ac_c_werror_flag"
8509                          || test ! -s conftest.err'
8510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511   (eval $ac_try) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); }; } &&
8515          { ac_try='test -s conftest$ac_exeext'
8516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517   (eval $ac_try) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521
8522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8523 }'`
8524 # Check for a 64-bit object if we didn't find anything.
8525 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; }
8526 }'`; fi
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 fi
8532 rm -f conftest.err conftest.$ac_objext \
8533       conftest$ac_exeext conftest.$ac_ext
8534 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8535
8536          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8537           # Warning - without using the other run time loading flags,
8538           # -berok will link without error, but may produce a broken library.
8539           no_undefined_flag=' ${wl}-bernotok'
8540           allow_undefined_flag=' ${wl}-berok'
8541           # -bexpall does not export symbols beginning with underscore (_)
8542           always_export_symbols=yes
8543           # Exported symbols can be pulled into shared objects from archives
8544           whole_archive_flag_spec=' '
8545           archive_cmds_need_lc=yes
8546           # This is similar to how AIX traditionally builds it's shared libraries.
8547           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'
8548         fi
8549       fi
8550       ;;
8551
8552     amigaos*)
8553       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)'
8554       hardcode_libdir_flag_spec='-L$libdir'
8555       hardcode_minus_L=yes
8556       # see comment about different semantics on the GNU ld section
8557       ld_shlibs=no
8558       ;;
8559
8560     bsdi[45]*)
8561       export_dynamic_flag_spec=-rdynamic
8562       ;;
8563
8564     cygwin* | mingw* | pw32*)
8565       # When not using gcc, we currently assume that we are using
8566       # Microsoft Visual C++.
8567       # hardcode_libdir_flag_spec is actually meaningless, as there is
8568       # no search path for DLLs.
8569       hardcode_libdir_flag_spec=' '
8570       allow_undefined_flag=unsupported
8571       # Tell ltmain to make .lib files, not .a files.
8572       libext=lib
8573       # Tell ltmain to make .dll files, not .so files.
8574       shrext_cmds=".dll"
8575       # FIXME: Setting linknames here is a bad hack.
8576       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8577       # The linker will automatically build a .lib file if we build a DLL.
8578       old_archive_From_new_cmds='true'
8579       # FIXME: Should let the user specify the lib program.
8580       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8581       fix_srcfile_path='`cygpath -w "$srcfile"`'
8582       enable_shared_with_static_runtimes=yes
8583       ;;
8584
8585     darwin* | rhapsody*)
8586       case "$host_os" in
8587         rhapsody* | darwin1.[012])
8588          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8589          ;;
8590        *) # Darwin 1.3 on
8591          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8592            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8593          else
8594            case ${MACOSX_DEPLOYMENT_TARGET} in
8595              10.[012])
8596                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8597                ;;
8598              10.*)
8599                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8600                ;;
8601            esac
8602          fi
8603          ;;
8604       esac
8605       archive_cmds_need_lc=no
8606       hardcode_direct=no
8607       hardcode_automatic=yes
8608       hardcode_shlibpath_var=unsupported
8609       whole_archive_flag_spec=''
8610       link_all_deplibs=yes
8611     if test "$GCC" = yes ; then
8612         output_verbose_link_cmd='echo'
8613         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8614       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8615       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8616       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}'
8617       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}'
8618     else
8619       case $cc_basename in
8620         xlc*)
8621          output_verbose_link_cmd='echo'
8622          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8623          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8624           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8625          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}'
8626           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}'
8627           ;;
8628        *)
8629          ld_shlibs=no
8630           ;;
8631       esac
8632     fi
8633       ;;
8634
8635     dgux*)
8636       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637       hardcode_libdir_flag_spec='-L$libdir'
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     freebsd1*)
8642       ld_shlibs=no
8643       ;;
8644
8645     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8646     # support.  Future versions do this automatically, but an explicit c++rt0.o
8647     # does not break anything, and helps significantly (at the cost of a little
8648     # extra space).
8649     freebsd2.2*)
8650       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8651       hardcode_libdir_flag_spec='-R$libdir'
8652       hardcode_direct=yes
8653       hardcode_shlibpath_var=no
8654       ;;
8655
8656     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8657     freebsd2*)
8658       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8659       hardcode_direct=yes
8660       hardcode_minus_L=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8665     freebsd* | kfreebsd*-gnu | dragonfly*)
8666       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8667       hardcode_libdir_flag_spec='-R$libdir'
8668       hardcode_direct=yes
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     hpux9*)
8673       if test "$GCC" = yes; then
8674         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'
8675       else
8676         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'
8677       fi
8678       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8679       hardcode_libdir_separator=:
8680       hardcode_direct=yes
8681
8682       # hardcode_minus_L: Not really in the search PATH,
8683       # but as the default location of the library.
8684       hardcode_minus_L=yes
8685       export_dynamic_flag_spec='${wl}-E'
8686       ;;
8687
8688     hpux10* | hpux11*)
8689       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8690         case "$host_cpu" in
8691         hppa*64*|ia64*)
8692           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8693           ;;
8694         *)
8695           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8696           ;;
8697         esac
8698       else
8699         case "$host_cpu" in
8700         hppa*64*|ia64*)
8701           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8702           ;;
8703         *)
8704           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8705           ;;
8706         esac
8707       fi
8708       if test "$with_gnu_ld" = no; then
8709         case "$host_cpu" in
8710         hppa*64*)
8711           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8712           hardcode_libdir_flag_spec_ld='+b $libdir'
8713           hardcode_libdir_separator=:
8714           hardcode_direct=no
8715           hardcode_shlibpath_var=no
8716           ;;
8717         ia64*)
8718           hardcode_libdir_flag_spec='-L$libdir'
8719           hardcode_direct=no
8720           hardcode_shlibpath_var=no
8721
8722           # hardcode_minus_L: Not really in the search PATH,
8723           # but as the default location of the library.
8724           hardcode_minus_L=yes
8725           ;;
8726         *)
8727           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8728           hardcode_libdir_separator=:
8729           hardcode_direct=yes
8730           export_dynamic_flag_spec='${wl}-E'
8731
8732           # hardcode_minus_L: Not really in the search PATH,
8733           # but as the default location of the library.
8734           hardcode_minus_L=yes
8735           ;;
8736         esac
8737       fi
8738       ;;
8739
8740     irix5* | irix6* | nonstopux*)
8741       if test "$GCC" = yes; then
8742         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'
8743       else
8744         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'
8745         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8746       fi
8747       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748       hardcode_libdir_separator=:
8749       link_all_deplibs=yes
8750       ;;
8751
8752     netbsd*)
8753       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8754         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8755       else
8756         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8757       fi
8758       hardcode_libdir_flag_spec='-R$libdir'
8759       hardcode_direct=yes
8760       hardcode_shlibpath_var=no
8761       ;;
8762
8763     newsos6)
8764       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8765       hardcode_direct=yes
8766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8767       hardcode_libdir_separator=:
8768       hardcode_shlibpath_var=no
8769       ;;
8770
8771     openbsd*)
8772       hardcode_direct=yes
8773       hardcode_shlibpath_var=no
8774       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8775         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8776         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8777         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8778         export_dynamic_flag_spec='${wl}-E'
8779       else
8780        case $host_os in
8781          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8782            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8783            hardcode_libdir_flag_spec='-R$libdir'
8784            ;;
8785          *)
8786            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8787            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8788            ;;
8789        esac
8790       fi
8791       ;;
8792
8793     os2*)
8794       hardcode_libdir_flag_spec='-L$libdir'
8795       hardcode_minus_L=yes
8796       allow_undefined_flag=unsupported
8797       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'
8798       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8799       ;;
8800
8801     osf3*)
8802       if test "$GCC" = yes; then
8803         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8804         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'
8805       else
8806         allow_undefined_flag=' -expect_unresolved \*'
8807         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'
8808       fi
8809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810       hardcode_libdir_separator=:
8811       ;;
8812
8813     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8814       if test "$GCC" = yes; then
8815         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8816         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'
8817         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8818       else
8819         allow_undefined_flag=' -expect_unresolved \*'
8820         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'
8821         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8822         $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'
8823
8824         # Both c and cxx compiler support -rpath directly
8825         hardcode_libdir_flag_spec='-rpath $libdir'
8826       fi
8827       hardcode_libdir_separator=:
8828       ;;
8829
8830     sco3.2v5*)
8831       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832       hardcode_shlibpath_var=no
8833       export_dynamic_flag_spec='${wl}-Bexport'
8834       runpath_var=LD_RUN_PATH
8835       hardcode_runpath_var=yes
8836       ;;
8837
8838     solaris*)
8839       no_undefined_flag=' -z text'
8840       if test "$GCC" = yes; then
8841         wlarc='${wl}'
8842         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8843         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8844           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8845       else
8846         wlarc=''
8847         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8849         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8850       fi
8851       hardcode_libdir_flag_spec='-R$libdir'
8852       hardcode_shlibpath_var=no
8853       case $host_os in
8854       solaris2.[0-5] | solaris2.[0-5].*) ;;
8855       *)
8856         # The compiler driver will combine linker options so we
8857         # cannot just pass the convience library names through
8858         # without $wl, iff we do not link with $LD.
8859         # Luckily, gcc supports the same syntax we need for Sun Studio.
8860         # Supported since Solaris 2.6 (maybe 2.5.1?)
8861         case $wlarc in
8862         '')
8863           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8864         *)
8865           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' ;;
8866         esac ;;
8867       esac
8868       link_all_deplibs=yes
8869       ;;
8870
8871     sunos4*)
8872       if test "x$host_vendor" = xsequent; then
8873         # Use $CC to link under sequent, because it throws in some extra .o
8874         # files that make .init and .fini sections work.
8875         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8876       else
8877         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8878       fi
8879       hardcode_libdir_flag_spec='-L$libdir'
8880       hardcode_direct=yes
8881       hardcode_minus_L=yes
8882       hardcode_shlibpath_var=no
8883       ;;
8884
8885     sysv4)
8886       case $host_vendor in
8887         sni)
8888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889           hardcode_direct=yes # is this really true???
8890         ;;
8891         siemens)
8892           ## LD is ld it makes a PLAMLIB
8893           ## CC just makes a GrossModule.
8894           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8895           reload_cmds='$CC -r -o $output$reload_objs'
8896           hardcode_direct=no
8897         ;;
8898         motorola)
8899           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8901         ;;
8902       esac
8903       runpath_var='LD_RUN_PATH'
8904       hardcode_shlibpath_var=no
8905       ;;
8906
8907     sysv4.3*)
8908       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909       hardcode_shlibpath_var=no
8910       export_dynamic_flag_spec='-Bexport'
8911       ;;
8912
8913     sysv4*MP*)
8914       if test -d /usr/nec; then
8915         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916         hardcode_shlibpath_var=no
8917         runpath_var=LD_RUN_PATH
8918         hardcode_runpath_var=yes
8919         ld_shlibs=yes
8920       fi
8921       ;;
8922
8923     sysv4.2uw2*)
8924       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8925       hardcode_direct=yes
8926       hardcode_minus_L=no
8927       hardcode_shlibpath_var=no
8928       hardcode_runpath_var=yes
8929       runpath_var=LD_RUN_PATH
8930       ;;
8931
8932    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8933       no_undefined_flag='${wl}-z ${wl}text'
8934       if test "$GCC" = yes; then
8935         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936       else
8937         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8938       fi
8939       runpath_var='LD_RUN_PATH'
8940       hardcode_shlibpath_var=no
8941       ;;
8942
8943     sysv5*)
8944       no_undefined_flag=' -z text'
8945       # $CC -shared without GNU ld will not create a library from C++
8946       # object files and a static libstdc++, better avoid it by now
8947       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8949                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8950       hardcode_libdir_flag_spec=
8951       hardcode_shlibpath_var=no
8952       runpath_var='LD_RUN_PATH'
8953       ;;
8954
8955     uts4*)
8956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957       hardcode_libdir_flag_spec='-L$libdir'
8958       hardcode_shlibpath_var=no
8959       ;;
8960
8961     *)
8962       ld_shlibs=no
8963       ;;
8964     esac
8965   fi
8966
8967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8968 echo "${ECHO_T}$ld_shlibs" >&6
8969 test "$ld_shlibs" = no && can_build_shared=no
8970
8971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8972 if test "$GCC" = yes; then
8973   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8974 fi
8975
8976 #
8977 # Do we need to explicitly link libc?
8978 #
8979 case "x$archive_cmds_need_lc" in
8980 x|xyes)
8981   # Assume -lc should be added
8982   archive_cmds_need_lc=yes
8983
8984   if test "$enable_shared" = yes && test "$GCC" = yes; then
8985     case $archive_cmds in
8986     *'~'*)
8987       # FIXME: we may have to deal with multi-command sequences.
8988       ;;
8989     '$CC '*)
8990       # Test whether the compiler implicitly links with -lc since on some
8991       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8992       # to ld, don't add -lc before -lgcc.
8993       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8995       $rm conftest*
8996       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8997
8998       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999   (eval $ac_compile) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } 2>conftest.err; then
9003         soname=conftest
9004         lib=conftest
9005         libobjs=conftest.$ac_objext
9006         deplibs=
9007         wl=$lt_prog_compiler_wl
9008         compiler_flags=-v
9009         linker_flags=-v
9010         verstring=
9011         output_objdir=.
9012         libname=conftest
9013         lt_save_allow_undefined_flag=$allow_undefined_flag
9014         allow_undefined_flag=
9015         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9016   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }
9020         then
9021           archive_cmds_need_lc=no
9022         else
9023           archive_cmds_need_lc=yes
9024         fi
9025         allow_undefined_flag=$lt_save_allow_undefined_flag
9026       else
9027         cat conftest.err 1>&5
9028       fi
9029       $rm conftest*
9030       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9032       ;;
9033     esac
9034   fi
9035   ;;
9036 esac
9037
9038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9040 library_names_spec=
9041 libname_spec='lib$name'
9042 soname_spec=
9043 shrext_cmds=".so"
9044 postinstall_cmds=
9045 postuninstall_cmds=
9046 finish_cmds=
9047 finish_eval=
9048 shlibpath_var=
9049 shlibpath_overrides_runpath=unknown
9050 version_type=none
9051 dynamic_linker="$host_os ld.so"
9052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9053 if test "$GCC" = yes; then
9054   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9055   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9056     # if the path contains ";" then we assume it to be the separator
9057     # otherwise default to the standard path separator (i.e. ":") - it is
9058     # assumed that no part of a normal pathname contains ";" but that should
9059     # okay in the real world where ";" in dirpaths is itself problematic.
9060     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9061   else
9062     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9063   fi
9064 else
9065   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9066 fi
9067 need_lib_prefix=unknown
9068 hardcode_into_libs=no
9069
9070 # when you set need_version to no, make sure it does not cause -set_version
9071 # flags to be left without arguments
9072 need_version=unknown
9073
9074 case $host_os in
9075 aix3*)
9076   version_type=linux
9077   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9078   shlibpath_var=LIBPATH
9079
9080   # AIX 3 has no versioning support, so we append a major version to the name.
9081   soname_spec='${libname}${release}${shared_ext}$major'
9082   ;;
9083
9084 aix4* | aix5*)
9085   version_type=linux
9086   need_lib_prefix=no
9087   need_version=no
9088   hardcode_into_libs=yes
9089   if test "$host_cpu" = ia64; then
9090     # AIX 5 supports IA64
9091     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9092     shlibpath_var=LD_LIBRARY_PATH
9093   else
9094     # With GCC up to 2.95.x, collect2 would create an import file
9095     # for dependence libraries.  The import file would start with
9096     # the line `#! .'.  This would cause the generated library to
9097     # depend on `.', always an invalid library.  This was fixed in
9098     # development snapshots of GCC prior to 3.0.
9099     case $host_os in
9100       aix4 | aix4.[01] | aix4.[01].*)
9101       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9102            echo ' yes '
9103            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9104         :
9105       else
9106         can_build_shared=no
9107       fi
9108       ;;
9109     esac
9110     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9111     # soname into executable. Probably we can add versioning support to
9112     # collect2, so additional links can be useful in future.
9113     if test "$aix_use_runtimelinking" = yes; then
9114       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9115       # instead of lib<name>.a to let people know that these are not
9116       # typical AIX shared libraries.
9117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118     else
9119       # We preserve .a as extension for shared libraries through AIX4.2
9120       # and later when we are not doing run time linking.
9121       library_names_spec='${libname}${release}.a $libname.a'
9122       soname_spec='${libname}${release}${shared_ext}$major'
9123     fi
9124     shlibpath_var=LIBPATH
9125   fi
9126   ;;
9127
9128 amigaos*)
9129   library_names_spec='$libname.ixlibrary $libname.a'
9130   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9131   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'
9132   ;;
9133
9134 beos*)
9135   library_names_spec='${libname}${shared_ext}'
9136   dynamic_linker="$host_os ld.so"
9137   shlibpath_var=LIBRARY_PATH
9138   ;;
9139
9140 bsdi[45]*)
9141   version_type=linux
9142   need_version=no
9143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144   soname_spec='${libname}${release}${shared_ext}$major'
9145   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9146   shlibpath_var=LD_LIBRARY_PATH
9147   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9148   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9149   # the default ld.so.conf also contains /usr/contrib/lib and
9150   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9151   # libtool to hard-code these into programs
9152   ;;
9153
9154 cygwin* | mingw* | pw32*)
9155   version_type=windows
9156   shrext_cmds=".dll"
9157   need_version=no
9158   need_lib_prefix=no
9159
9160   case $GCC,$host_os in
9161   yes,cygwin* | yes,mingw* | yes,pw32*)
9162     library_names_spec='$libname.dll.a'
9163     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9164     postinstall_cmds='base_file=`basename \${file}`~
9165       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9166       dldir=$destdir/`dirname \$dlpath`~
9167       test -d \$dldir || mkdir -p \$dldir~
9168       $install_prog $dir/$dlname \$dldir/$dlname'
9169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9170       dlpath=$dir/\$dldll~
9171        $rm \$dlpath'
9172     shlibpath_overrides_runpath=yes
9173
9174     case $host_os in
9175     cygwin*)
9176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9178       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9179       ;;
9180     mingw*)
9181       # MinGW DLLs use traditional 'lib' prefix
9182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9183       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9184       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9185         # It is most probably a Windows format PATH printed by
9186         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9187         # path with ; separators, and with drive letters. We can handle the
9188         # drive letters (cygwin fileutils understands them), so leave them,
9189         # especially as we might pass files found there to a mingw objdump,
9190         # which wouldn't understand a cygwinified path. Ahh.
9191         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9192       else
9193         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9194       fi
9195       ;;
9196     pw32*)
9197       # pw32 DLLs use 'pw' prefix rather than 'lib'
9198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9199       ;;
9200     esac
9201     ;;
9202
9203   *)
9204     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9205     ;;
9206   esac
9207   dynamic_linker='Win32 ld.exe'
9208   # FIXME: first we should search . and the directory the executable is in
9209   shlibpath_var=PATH
9210   ;;
9211
9212 darwin* | rhapsody*)
9213   dynamic_linker="$host_os dyld"
9214   version_type=darwin
9215   need_lib_prefix=no
9216   need_version=no
9217   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9218   soname_spec='${libname}${release}${major}$shared_ext'
9219   shlibpath_overrides_runpath=yes
9220   shlibpath_var=DYLD_LIBRARY_PATH
9221   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9222   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9223   if test "$GCC" = yes; then
9224     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"`
9225   else
9226     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9227   fi
9228   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9229   ;;
9230
9231 dgux*)
9232   version_type=linux
9233   need_lib_prefix=no
9234   need_version=no
9235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9236   soname_spec='${libname}${release}${shared_ext}$major'
9237   shlibpath_var=LD_LIBRARY_PATH
9238   ;;
9239
9240 freebsd1*)
9241   dynamic_linker=no
9242   ;;
9243
9244 kfreebsd*-gnu)
9245   version_type=linux
9246   need_lib_prefix=no
9247   need_version=no
9248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9249   soname_spec='${libname}${release}${shared_ext}$major'
9250   shlibpath_var=LD_LIBRARY_PATH
9251   shlibpath_overrides_runpath=no
9252   hardcode_into_libs=yes
9253   dynamic_linker='GNU ld.so'
9254   ;;
9255
9256 freebsd* | dragonfly*)
9257   # DragonFly does not have aout.  When/if they implement a new
9258   # versioning mechanism, adjust this.
9259   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9260   version_type=freebsd-$objformat
9261   case $version_type in
9262     freebsd-elf*)
9263       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9264       need_version=no
9265       need_lib_prefix=no
9266       ;;
9267     freebsd-*)
9268       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9269       need_version=yes
9270       ;;
9271   esac
9272   shlibpath_var=LD_LIBRARY_PATH
9273   case $host_os in
9274   freebsd2*)
9275     shlibpath_overrides_runpath=yes
9276     ;;
9277   freebsd3.[01]* | freebsdelf3.[01]*)
9278     shlibpath_overrides_runpath=yes
9279     hardcode_into_libs=yes
9280     ;;
9281   *) # from 3.2 on
9282     shlibpath_overrides_runpath=no
9283     hardcode_into_libs=yes
9284     ;;
9285   esac
9286   ;;
9287
9288 gnu*)
9289   version_type=linux
9290   need_lib_prefix=no
9291   need_version=no
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   hardcode_into_libs=yes
9296   ;;
9297
9298 hpux9* | hpux10* | hpux11*)
9299   # Give a soname corresponding to the major version so that dld.sl refuses to
9300   # link against other versions.
9301   version_type=sunos
9302   need_lib_prefix=no
9303   need_version=no
9304   case "$host_cpu" in
9305   ia64*)
9306     shrext_cmds='.so'
9307     hardcode_into_libs=yes
9308     dynamic_linker="$host_os dld.so"
9309     shlibpath_var=LD_LIBRARY_PATH
9310     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312     soname_spec='${libname}${release}${shared_ext}$major'
9313     if test "X$HPUX_IA64_MODE" = X32; then
9314       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9315     else
9316       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9317     fi
9318     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9319     ;;
9320    hppa*64*)
9321      shrext_cmds='.sl'
9322      hardcode_into_libs=yes
9323      dynamic_linker="$host_os dld.sl"
9324      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9325      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9326      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327      soname_spec='${libname}${release}${shared_ext}$major'
9328      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9329      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9330      ;;
9331    *)
9332     shrext_cmds='.sl'
9333     dynamic_linker="$host_os dld.sl"
9334     shlibpath_var=SHLIB_PATH
9335     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337     soname_spec='${libname}${release}${shared_ext}$major'
9338     ;;
9339   esac
9340   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9341   postinstall_cmds='chmod 555 $lib'
9342   ;;
9343
9344 irix5* | irix6* | nonstopux*)
9345   case $host_os in
9346     nonstopux*) version_type=nonstopux ;;
9347     *)
9348         if test "$lt_cv_prog_gnu_ld" = yes; then
9349                 version_type=linux
9350         else
9351                 version_type=irix
9352         fi ;;
9353   esac
9354   need_lib_prefix=no
9355   need_version=no
9356   soname_spec='${libname}${release}${shared_ext}$major'
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9358   case $host_os in
9359   irix5* | nonstopux*)
9360     libsuff= shlibsuff=
9361     ;;
9362   *)
9363     case $LD in # libtool.m4 will add one of these switches to LD
9364     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9365       libsuff= shlibsuff= libmagic=32-bit;;
9366     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9367       libsuff=32 shlibsuff=N32 libmagic=N32;;
9368     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9369       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9370     *) libsuff= shlibsuff= libmagic=never-match;;
9371     esac
9372     ;;
9373   esac
9374   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9375   shlibpath_overrides_runpath=no
9376   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9377   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9378   hardcode_into_libs=yes
9379   ;;
9380
9381 # No shared lib support for Linux oldld, aout, or coff.
9382 linux*oldld* | linux*aout* | linux*coff*)
9383   dynamic_linker=no
9384   ;;
9385
9386 # This must be Linux ELF.
9387 linux*)
9388   version_type=linux
9389   need_lib_prefix=no
9390   need_version=no
9391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392   soname_spec='${libname}${release}${shared_ext}$major'
9393   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9394   shlibpath_var=LD_LIBRARY_PATH
9395   shlibpath_overrides_runpath=no
9396   # This implies no fast_install, which is unacceptable.
9397   # Some rework will be needed to allow for fast_install
9398   # before this can be enabled.
9399   hardcode_into_libs=yes
9400
9401   # Append ld.so.conf contents to the search path
9402   if test -f /etc/ld.so.conf; then
9403     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' ' '`
9404     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9405   fi
9406
9407   # We used to test for /lib/ld.so.1 and disable shared libraries on
9408   # powerpc, because MkLinux only supported shared libraries with the
9409   # GNU dynamic linker.  Since this was broken with cross compilers,
9410   # most powerpc-linux boxes support dynamic linking these days and
9411   # people can always --disable-shared, the test was removed, and we
9412   # assume the GNU/Linux dynamic linker is in use.
9413   dynamic_linker='GNU/Linux ld.so'
9414   ;;
9415
9416 knetbsd*-gnu)
9417   version_type=linux
9418   need_lib_prefix=no
9419   need_version=no
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9421   soname_spec='${libname}${release}${shared_ext}$major'
9422   shlibpath_var=LD_LIBRARY_PATH
9423   shlibpath_overrides_runpath=no
9424   hardcode_into_libs=yes
9425   dynamic_linker='GNU ld.so'
9426   ;;
9427
9428 netbsd*)
9429   version_type=sunos
9430   need_lib_prefix=no
9431   need_version=no
9432   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9434     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9435     dynamic_linker='NetBSD (a.out) ld.so'
9436   else
9437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9438     soname_spec='${libname}${release}${shared_ext}$major'
9439     dynamic_linker='NetBSD ld.elf_so'
9440   fi
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   hardcode_into_libs=yes
9444   ;;
9445
9446 newsos6)
9447   version_type=linux
9448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449   shlibpath_var=LD_LIBRARY_PATH
9450   shlibpath_overrides_runpath=yes
9451   ;;
9452
9453 nto-qnx*)
9454   version_type=linux
9455   need_lib_prefix=no
9456   need_version=no
9457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458   soname_spec='${libname}${release}${shared_ext}$major'
9459   shlibpath_var=LD_LIBRARY_PATH
9460   shlibpath_overrides_runpath=yes
9461   ;;
9462
9463 openbsd*)
9464   version_type=sunos
9465   need_lib_prefix=no
9466   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9467   case $host_os in
9468     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9469     *)                         need_version=no  ;;
9470   esac
9471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9472   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9473   shlibpath_var=LD_LIBRARY_PATH
9474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9475     case $host_os in
9476       openbsd2.[89] | openbsd2.[89].*)
9477         shlibpath_overrides_runpath=no
9478         ;;
9479       *)
9480         shlibpath_overrides_runpath=yes
9481         ;;
9482       esac
9483   else
9484     shlibpath_overrides_runpath=yes
9485   fi
9486   ;;
9487
9488 os2*)
9489   libname_spec='$name'
9490   shrext_cmds=".dll"
9491   need_lib_prefix=no
9492   library_names_spec='$libname${shared_ext} $libname.a'
9493   dynamic_linker='OS/2 ld.exe'
9494   shlibpath_var=LIBPATH
9495   ;;
9496
9497 osf3* | osf4* | osf5*)
9498   version_type=osf
9499   need_lib_prefix=no
9500   need_version=no
9501   soname_spec='${libname}${release}${shared_ext}$major'
9502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503   shlibpath_var=LD_LIBRARY_PATH
9504   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9505   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9506   ;;
9507
9508 sco3.2v5*)
9509   version_type=osf
9510   soname_spec='${libname}${release}${shared_ext}$major'
9511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   ;;
9514
9515 solaris*)
9516   version_type=linux
9517   need_lib_prefix=no
9518   need_version=no
9519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520   soname_spec='${libname}${release}${shared_ext}$major'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   shlibpath_overrides_runpath=yes
9523   hardcode_into_libs=yes
9524   # ldd complains unless libraries are executable
9525   postinstall_cmds='chmod +x $lib'
9526   ;;
9527
9528 sunos4*)
9529   version_type=sunos
9530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9532   shlibpath_var=LD_LIBRARY_PATH
9533   shlibpath_overrides_runpath=yes
9534   if test "$with_gnu_ld" = yes; then
9535     need_lib_prefix=no
9536   fi
9537   need_version=yes
9538   ;;
9539
9540 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9541   version_type=linux
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   soname_spec='${libname}${release}${shared_ext}$major'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   case $host_vendor in
9546     sni)
9547       shlibpath_overrides_runpath=no
9548       need_lib_prefix=no
9549       export_dynamic_flag_spec='${wl}-Blargedynsym'
9550       runpath_var=LD_RUN_PATH
9551       ;;
9552     siemens)
9553       need_lib_prefix=no
9554       ;;
9555     motorola)
9556       need_lib_prefix=no
9557       need_version=no
9558       shlibpath_overrides_runpath=no
9559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9560       ;;
9561   esac
9562   ;;
9563
9564 sysv4*MP*)
9565   if test -d /usr/nec ;then
9566     version_type=linux
9567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9568     soname_spec='$libname${shared_ext}.$major'
9569     shlibpath_var=LD_LIBRARY_PATH
9570   fi
9571   ;;
9572
9573 uts4*)
9574   version_type=linux
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   shlibpath_var=LD_LIBRARY_PATH
9578   ;;
9579
9580 *)
9581   dynamic_linker=no
9582   ;;
9583 esac
9584 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9585 echo "${ECHO_T}$dynamic_linker" >&6
9586 test "$dynamic_linker" = no && can_build_shared=no
9587
9588 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9590 hardcode_action=
9591 if test -n "$hardcode_libdir_flag_spec" || \
9592    test -n "$runpath_var" || \
9593    test "X$hardcode_automatic" = "Xyes" ; then
9594
9595   # We can hardcode non-existant directories.
9596   if test "$hardcode_direct" != no &&
9597      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9598      # have to relink, otherwise we might link with an installed library
9599      # when we should be linking with a yet-to-be-installed one
9600      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9601      test "$hardcode_minus_L" != no; then
9602     # Linking always hardcodes the temporary library directory.
9603     hardcode_action=relink
9604   else
9605     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9606     hardcode_action=immediate
9607   fi
9608 else
9609   # We cannot hardcode anything, or else we can only hardcode existing
9610   # directories.
9611   hardcode_action=unsupported
9612 fi
9613 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9614 echo "${ECHO_T}$hardcode_action" >&6
9615
9616 if test "$hardcode_action" = relink; then
9617   # Fast installation is not supported
9618   enable_fast_install=no
9619 elif test "$shlibpath_overrides_runpath" = yes ||
9620      test "$enable_shared" = no; then
9621   # Fast installation is not necessary
9622   enable_fast_install=needless
9623 fi
9624
9625 striplib=
9626 old_striplib=
9627 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9628 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9629 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9630   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9631   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9632   echo "$as_me:$LINENO: result: yes" >&5
9633 echo "${ECHO_T}yes" >&6
9634 else
9635 # FIXME - insert some real tests, host_os isn't really good enough
9636   case $host_os in
9637    darwin*)
9638        if test -n "$STRIP" ; then
9639          striplib="$STRIP -x"
9640          echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9642        else
9643   echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9645 fi
9646        ;;
9647    *)
9648   echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6
9650     ;;
9651   esac
9652 fi
9653
9654 if test "x$enable_dlopen" != xyes; then
9655   enable_dlopen=unknown
9656   enable_dlopen_self=unknown
9657   enable_dlopen_self_static=unknown
9658 else
9659   lt_cv_dlopen=no
9660   lt_cv_dlopen_libs=
9661
9662   case $host_os in
9663   beos*)
9664     lt_cv_dlopen="load_add_on"
9665     lt_cv_dlopen_libs=
9666     lt_cv_dlopen_self=yes
9667     ;;
9668
9669   mingw* | pw32*)
9670     lt_cv_dlopen="LoadLibrary"
9671     lt_cv_dlopen_libs=
9672    ;;
9673
9674   cygwin*)
9675     lt_cv_dlopen="dlopen"
9676     lt_cv_dlopen_libs=
9677    ;;
9678
9679   darwin*)
9680   # if libdl is installed we need to link against it
9681     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9682 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9683 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   ac_check_lib_save_LIBS=$LIBS
9687 LIBS="-ldl  $LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700    builtin and then its argument prototype would still apply.  */
9701 char dlopen ();
9702 int
9703 main ()
9704 {
9705 dlopen ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_c_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_cv_lib_dl_dlopen=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_lib_dl_dlopen=no
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740       conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9745 if test $ac_cv_lib_dl_dlopen = yes; then
9746   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9747 else
9748
9749     lt_cv_dlopen="dyld"
9750     lt_cv_dlopen_libs=
9751     lt_cv_dlopen_self=yes
9752
9753 fi
9754
9755    ;;
9756
9757   *)
9758     echo "$as_me:$LINENO: checking for shl_load" >&5
9759 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9760 if test "${ac_cv_func_shl_load+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9771 #define shl_load innocuous_shl_load
9772
9773 /* System header to define __stub macros and hopefully few prototypes,
9774     which can conflict with char shl_load (); below.
9775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776     <limits.h> exists even on freestanding compilers.  */
9777
9778 #ifdef __STDC__
9779 # include <limits.h>
9780 #else
9781 # include <assert.h>
9782 #endif
9783
9784 #undef shl_load
9785
9786 /* Override any gcc2 internal prototype to avoid an error.  */
9787 #ifdef __cplusplus
9788 extern "C"
9789 {
9790 #endif
9791 /* We use char because int might match the return type of a gcc2
9792    builtin and then its argument prototype would still apply.  */
9793 char shl_load ();
9794 /* The GNU C library defines this for functions which it implements
9795     to always fail with ENOSYS.  Some functions are actually named
9796     something starting with __ and the normal name is an alias.  */
9797 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9798 choke me
9799 #else
9800 char (*f) () = shl_load;
9801 #endif
9802 #ifdef __cplusplus
9803 }
9804 #endif
9805
9806 int
9807 main ()
9808 {
9809 return f != shl_load;
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816   (eval $ac_link) 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag"
9824                          || test ! -s conftest.err'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest$ac_exeext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_cv_func_shl_load=yes
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_cv_func_shl_load=no
9842 fi
9843 rm -f conftest.err conftest.$ac_objext \
9844       conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9848 if test $ac_cv_func_shl_load = yes; then
9849   lt_cv_dlopen="shl_load"
9850 else
9851   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9854   echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856   ac_check_lib_save_LIBS=$LIBS
9857 LIBS="-ldld  $LIBS"
9858 cat >conftest.$ac_ext <<_ACEOF
9859 /* confdefs.h.  */
9860 _ACEOF
9861 cat confdefs.h >>conftest.$ac_ext
9862 cat >>conftest.$ac_ext <<_ACEOF
9863 /* end confdefs.h.  */
9864
9865 /* Override any gcc2 internal prototype to avoid an error.  */
9866 #ifdef __cplusplus
9867 extern "C"
9868 #endif
9869 /* We use char because int might match the return type of a gcc2
9870    builtin and then its argument prototype would still apply.  */
9871 char shl_load ();
9872 int
9873 main ()
9874 {
9875 shl_load ();
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9882   (eval $ac_link) 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_c_werror_flag"
9890                          || test ! -s conftest.err'
9891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892   (eval $ac_try) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; } &&
9896          { ac_try='test -s conftest$ac_exeext'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_lib_dld_shl_load=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_lib_dld_shl_load=no
9908 fi
9909 rm -f conftest.err conftest.$ac_objext \
9910       conftest$ac_exeext conftest.$ac_ext
9911 LIBS=$ac_check_lib_save_LIBS
9912 fi
9913 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9914 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9915 if test $ac_cv_lib_dld_shl_load = yes; then
9916   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9917 else
9918   echo "$as_me:$LINENO: checking for dlopen" >&5
9919 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9920 if test "${ac_cv_func_dlopen+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9931 #define dlopen innocuous_dlopen
9932
9933 /* System header to define __stub macros and hopefully few prototypes,
9934     which can conflict with char dlopen (); below.
9935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9936     <limits.h> exists even on freestanding compilers.  */
9937
9938 #ifdef __STDC__
9939 # include <limits.h>
9940 #else
9941 # include <assert.h>
9942 #endif
9943
9944 #undef dlopen
9945
9946 /* Override any gcc2 internal prototype to avoid an error.  */
9947 #ifdef __cplusplus
9948 extern "C"
9949 {
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952    builtin and then its argument prototype would still apply.  */
9953 char dlopen ();
9954 /* The GNU C library defines this for functions which it implements
9955     to always fail with ENOSYS.  Some functions are actually named
9956     something starting with __ and the normal name is an alias.  */
9957 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9958 choke me
9959 #else
9960 char (*f) () = dlopen;
9961 #endif
9962 #ifdef __cplusplus
9963 }
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 return f != dlopen;
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9976   (eval $ac_link) 2>conftest.er1
9977   ac_status=$?
9978   grep -v '^ *+' conftest.er1 >conftest.err
9979   rm -f conftest.er1
9980   cat conftest.err >&5
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); } &&
9983          { ac_try='test -z "$ac_c_werror_flag"
9984                          || test ! -s conftest.err'
9985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9986   (eval $ac_try) 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; } &&
9990          { ac_try='test -s conftest$ac_exeext'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996   ac_cv_func_dlopen=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001 ac_cv_func_dlopen=no
10002 fi
10003 rm -f conftest.err conftest.$ac_objext \
10004       conftest$ac_exeext conftest.$ac_ext
10005 fi
10006 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10007 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10008 if test $ac_cv_func_dlopen = yes; then
10009   lt_cv_dlopen="dlopen"
10010 else
10011   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10012 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10013 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016   ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ldl  $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h.  */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h.  */
10024
10025 /* Override any gcc2 internal prototype to avoid an error.  */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 /* We use char because int might match the return type of a gcc2
10030    builtin and then its argument prototype would still apply.  */
10031 char dlopen ();
10032 int
10033 main ()
10034 {
10035 dlopen ();
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042   (eval $ac_link) 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } &&
10049          { ac_try='test -z "$ac_c_werror_flag"
10050                          || test ! -s conftest.err'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; } &&
10056          { ac_try='test -s conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   ac_cv_lib_dl_dlopen=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 ac_cv_lib_dl_dlopen=no
10068 fi
10069 rm -f conftest.err conftest.$ac_objext \
10070       conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10072 fi
10073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10075 if test $ac_cv_lib_dl_dlopen = yes; then
10076   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10077 else
10078   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10081   echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083   ac_check_lib_save_LIBS=$LIBS
10084 LIBS="-lsvld  $LIBS"
10085 cat >conftest.$ac_ext <<_ACEOF
10086 /* confdefs.h.  */
10087 _ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h.  */
10091
10092 /* Override any gcc2 internal prototype to avoid an error.  */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 /* We use char because int might match the return type of a gcc2
10097    builtin and then its argument prototype would still apply.  */
10098 char dlopen ();
10099 int
10100 main ()
10101 {
10102 dlopen ();
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag"
10117                          || test ! -s conftest.err'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_lib_svld_dlopen=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_lib_svld_dlopen=no
10135 fi
10136 rm -f conftest.err conftest.$ac_objext \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10141 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10142 if test $ac_cv_lib_svld_dlopen = yes; then
10143   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10144 else
10145   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10146 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10147 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-ldld  $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158
10159 /* Override any gcc2 internal prototype to avoid an error.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 /* We use char because int might match the return type of a gcc2
10164    builtin and then its argument prototype would still apply.  */
10165 char dld_link ();
10166 int
10167 main ()
10168 {
10169 dld_link ();
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176   (eval $ac_link) 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } &&
10183          { ac_try='test -z "$ac_c_werror_flag"
10184                          || test ! -s conftest.err'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; } &&
10190          { ac_try='test -s conftest$ac_exeext'
10191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192   (eval $ac_try) 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; }; then
10196   ac_cv_lib_dld_dld_link=yes
10197 else
10198   echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 ac_cv_lib_dld_dld_link=no
10202 fi
10203 rm -f conftest.err conftest.$ac_objext \
10204       conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10206 fi
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10208 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10209 if test $ac_cv_lib_dld_dld_link = yes; then
10210   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10211 fi
10212
10213
10214 fi
10215
10216
10217 fi
10218
10219
10220 fi
10221
10222
10223 fi
10224
10225
10226 fi
10227
10228     ;;
10229   esac
10230
10231   if test "x$lt_cv_dlopen" != xno; then
10232     enable_dlopen=yes
10233   else
10234     enable_dlopen=no
10235   fi
10236
10237   case $lt_cv_dlopen in
10238   dlopen)
10239     save_CPPFLAGS="$CPPFLAGS"
10240     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10241
10242     save_LDFLAGS="$LDFLAGS"
10243     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10244
10245     save_LIBS="$LIBS"
10246     LIBS="$lt_cv_dlopen_libs $LIBS"
10247
10248     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10249 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10250 if test "${lt_cv_dlopen_self+set}" = set; then
10251   echo $ECHO_N "(cached) $ECHO_C" >&6
10252 else
10253           if test "$cross_compiling" = yes; then :
10254   lt_cv_dlopen_self=cross
10255 else
10256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10257   lt_status=$lt_dlunknown
10258   cat > conftest.$ac_ext <<EOF
10259 #line 10259 "configure"
10260 #include "confdefs.h"
10261
10262 #if HAVE_DLFCN_H
10263 #include <dlfcn.h>
10264 #endif
10265
10266 #include <stdio.h>
10267
10268 #ifdef RTLD_GLOBAL
10269 #  define LT_DLGLOBAL           RTLD_GLOBAL
10270 #else
10271 #  ifdef DL_GLOBAL
10272 #    define LT_DLGLOBAL         DL_GLOBAL
10273 #  else
10274 #    define LT_DLGLOBAL         0
10275 #  endif
10276 #endif
10277
10278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10279    find out it does not work in some platform. */
10280 #ifndef LT_DLLAZY_OR_NOW
10281 #  ifdef RTLD_LAZY
10282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10283 #  else
10284 #    ifdef DL_LAZY
10285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10286 #    else
10287 #      ifdef RTLD_NOW
10288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10289 #      else
10290 #        ifdef DL_NOW
10291 #          define LT_DLLAZY_OR_NOW      DL_NOW
10292 #        else
10293 #          define LT_DLLAZY_OR_NOW      0
10294 #        endif
10295 #      endif
10296 #    endif
10297 #  endif
10298 #endif
10299
10300 #ifdef __cplusplus
10301 extern "C" void exit (int);
10302 #endif
10303
10304 void fnord() { int i=42;}
10305 int main ()
10306 {
10307   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10308   int status = $lt_dlunknown;
10309
10310   if (self)
10311     {
10312       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10313       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10314       /* dlclose (self); */
10315     }
10316
10317     exit (status);
10318 }
10319 EOF
10320   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10321   (eval $ac_link) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10325     (./conftest; exit; ) 2>/dev/null
10326     lt_status=$?
10327     case x$lt_status in
10328       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10329       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10330       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10331     esac
10332   else :
10333     # compilation failed
10334     lt_cv_dlopen_self=no
10335   fi
10336 fi
10337 rm -fr conftest*
10338
10339
10340 fi
10341 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10342 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10343
10344     if test "x$lt_cv_dlopen_self" = xyes; then
10345       LDFLAGS="$LDFLAGS $link_static_flag"
10346       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10347 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10348 if test "${lt_cv_dlopen_self_static+set}" = set; then
10349   echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351           if test "$cross_compiling" = yes; then :
10352   lt_cv_dlopen_self_static=cross
10353 else
10354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10355   lt_status=$lt_dlunknown
10356   cat > conftest.$ac_ext <<EOF
10357 #line 10357 "configure"
10358 #include "confdefs.h"
10359
10360 #if HAVE_DLFCN_H
10361 #include <dlfcn.h>
10362 #endif
10363
10364 #include <stdio.h>
10365
10366 #ifdef RTLD_GLOBAL
10367 #  define LT_DLGLOBAL           RTLD_GLOBAL
10368 #else
10369 #  ifdef DL_GLOBAL
10370 #    define LT_DLGLOBAL         DL_GLOBAL
10371 #  else
10372 #    define LT_DLGLOBAL         0
10373 #  endif
10374 #endif
10375
10376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10377    find out it does not work in some platform. */
10378 #ifndef LT_DLLAZY_OR_NOW
10379 #  ifdef RTLD_LAZY
10380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10381 #  else
10382 #    ifdef DL_LAZY
10383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10384 #    else
10385 #      ifdef RTLD_NOW
10386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10387 #      else
10388 #        ifdef DL_NOW
10389 #          define LT_DLLAZY_OR_NOW      DL_NOW
10390 #        else
10391 #          define LT_DLLAZY_OR_NOW      0
10392 #        endif
10393 #      endif
10394 #    endif
10395 #  endif
10396 #endif
10397
10398 #ifdef __cplusplus
10399 extern "C" void exit (int);
10400 #endif
10401
10402 void fnord() { int i=42;}
10403 int main ()
10404 {
10405   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10406   int status = $lt_dlunknown;
10407
10408   if (self)
10409     {
10410       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10411       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10412       /* dlclose (self); */
10413     }
10414
10415     exit (status);
10416 }
10417 EOF
10418   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10419   (eval $ac_link) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10423     (./conftest; exit; ) 2>/dev/null
10424     lt_status=$?
10425     case x$lt_status in
10426       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10427       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10428       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10429     esac
10430   else :
10431     # compilation failed
10432     lt_cv_dlopen_self_static=no
10433   fi
10434 fi
10435 rm -fr conftest*
10436
10437
10438 fi
10439 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10440 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10441     fi
10442
10443     CPPFLAGS="$save_CPPFLAGS"
10444     LDFLAGS="$save_LDFLAGS"
10445     LIBS="$save_LIBS"
10446     ;;
10447   esac
10448
10449   case $lt_cv_dlopen_self in
10450   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10451   *) enable_dlopen_self=unknown ;;
10452   esac
10453
10454   case $lt_cv_dlopen_self_static in
10455   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10456   *) enable_dlopen_self_static=unknown ;;
10457   esac
10458 fi
10459
10460
10461 # Report which librarie types wil actually be built
10462 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10463 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10464 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10465 echo "${ECHO_T}$can_build_shared" >&6
10466
10467 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10468 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10469 test "$can_build_shared" = "no" && enable_shared=no
10470
10471 # On AIX, shared libraries and static libraries use the same namespace, and
10472 # are all built from PIC.
10473 case "$host_os" in
10474 aix3*)
10475   test "$enable_shared" = yes && enable_static=no
10476   if test -n "$RANLIB"; then
10477     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10478     postinstall_cmds='$RANLIB $lib'
10479   fi
10480   ;;
10481
10482 aix4* | aix5*)
10483   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10484     test "$enable_shared" = yes && enable_static=no
10485   fi
10486     ;;
10487 esac
10488 echo "$as_me:$LINENO: result: $enable_shared" >&5
10489 echo "${ECHO_T}$enable_shared" >&6
10490
10491 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10492 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10493 # Make sure either enable_shared or enable_static is yes.
10494 test "$enable_shared" = yes || enable_static=yes
10495 echo "$as_me:$LINENO: result: $enable_static" >&5
10496 echo "${ECHO_T}$enable_static" >&6
10497
10498 # The else clause should only fire when bootstrapping the
10499 # libtool distribution, otherwise you forgot to ship ltmain.sh
10500 # with your package, and you will get complaints that there are
10501 # no rules to generate ltmain.sh.
10502 if test -f "$ltmain"; then
10503   # See if we are running on zsh, and set the options which allow our commands through
10504   # without removal of \ escapes.
10505   if test -n "${ZSH_VERSION+set}" ; then
10506     setopt NO_GLOB_SUBST
10507   fi
10508   # Now quote all the things that may contain metacharacters while being
10509   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10510   # variables and quote the copies for generation of the libtool script.
10511   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10512     SED SHELL STRIP \
10513     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10514     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10515     deplibs_check_method reload_flag reload_cmds need_locks \
10516     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10517     lt_cv_sys_global_symbol_to_c_name_address \
10518     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10519     old_postinstall_cmds old_postuninstall_cmds \
10520     compiler \
10521     CC \
10522     LD \
10523     lt_prog_compiler_wl \
10524     lt_prog_compiler_pic \
10525     lt_prog_compiler_static \
10526     lt_prog_compiler_no_builtin_flag \
10527     export_dynamic_flag_spec \
10528     thread_safe_flag_spec \
10529     whole_archive_flag_spec \
10530     enable_shared_with_static_runtimes \
10531     old_archive_cmds \
10532     old_archive_from_new_cmds \
10533     predep_objects \
10534     postdep_objects \
10535     predeps \
10536     postdeps \
10537     compiler_lib_search_path \
10538     archive_cmds \
10539     archive_expsym_cmds \
10540     postinstall_cmds \
10541     postuninstall_cmds \
10542     old_archive_from_expsyms_cmds \
10543     allow_undefined_flag \
10544     no_undefined_flag \
10545     export_symbols_cmds \
10546     hardcode_libdir_flag_spec \
10547     hardcode_libdir_flag_spec_ld \
10548     hardcode_libdir_separator \
10549     hardcode_automatic \
10550     module_cmds \
10551     module_expsym_cmds \
10552     lt_cv_prog_compiler_c_o \
10553     exclude_expsyms \
10554     include_expsyms; do
10555
10556     case $var in
10557     old_archive_cmds | \
10558     old_archive_from_new_cmds | \
10559     archive_cmds | \
10560     archive_expsym_cmds | \
10561     module_cmds | \
10562     module_expsym_cmds | \
10563     old_archive_from_expsyms_cmds | \
10564     export_symbols_cmds | \
10565     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10566     postinstall_cmds | postuninstall_cmds | \
10567     old_postinstall_cmds | old_postuninstall_cmds | \
10568     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10569       # Double-quote double-evaled strings.
10570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10571       ;;
10572     *)
10573       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10574       ;;
10575     esac
10576   done
10577
10578   case $lt_echo in
10579   *'\$0 --fallback-echo"')
10580     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10581     ;;
10582   esac
10583
10584 cfgfile="${ofile}T"
10585   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10586   $rm -f "$cfgfile"
10587   { echo "$as_me:$LINENO: creating $ofile" >&5
10588 echo "$as_me: creating $ofile" >&6;}
10589
10590   cat <<__EOF__ >> "$cfgfile"
10591 #! $SHELL
10592
10593 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10594 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10596 #
10597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10598 # Free Software Foundation, Inc.
10599 #
10600 # This file is part of GNU Libtool:
10601 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10602 #
10603 # This program is free software; you can redistribute it and/or modify
10604 # it under the terms of the GNU General Public License as published by
10605 # the Free Software Foundation; either version 2 of the License, or
10606 # (at your option) any later version.
10607 #
10608 # This program is distributed in the hope that it will be useful, but
10609 # WITHOUT ANY WARRANTY; without even the implied warranty of
10610 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10611 # General Public License for more details.
10612 #
10613 # You should have received a copy of the GNU General Public License
10614 # along with this program; if not, write to the Free Software
10615 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10616 #
10617 # As a special exception to the GNU General Public License, if you
10618 # distribute this file as part of a program that contains a
10619 # configuration script generated by Autoconf, you may include it under
10620 # the same distribution terms that you use for the rest of that program.
10621
10622 # A sed program that does not truncate output.
10623 SED=$lt_SED
10624
10625 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10626 Xsed="$SED -e 1s/^X//"
10627
10628 # The HP-UX ksh and POSIX shell print the target directory to stdout
10629 # if CDPATH is set.
10630 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10631
10632 # The names of the tagged configurations supported by this script.
10633 available_tags=
10634
10635 # ### BEGIN LIBTOOL CONFIG
10636
10637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10638
10639 # Shell to use when invoking shell scripts.
10640 SHELL=$lt_SHELL
10641
10642 # Whether or not to build shared libraries.
10643 build_libtool_libs=$enable_shared
10644
10645 # Whether or not to build static libraries.
10646 build_old_libs=$enable_static
10647
10648 # Whether or not to add -lc for building shared libraries.
10649 build_libtool_need_lc=$archive_cmds_need_lc
10650
10651 # Whether or not to disallow shared libs when runtime libs are static
10652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10653
10654 # Whether or not to optimize for fast installation.
10655 fast_install=$enable_fast_install
10656
10657 # The host system.
10658 host_alias=$host_alias
10659 host=$host
10660 host_os=$host_os
10661
10662 # The build system.
10663 build_alias=$build_alias
10664 build=$build
10665 build_os=$build_os
10666
10667 # An echo program that does not interpret backslashes.
10668 echo=$lt_echo
10669
10670 # The archiver.
10671 AR=$lt_AR
10672 AR_FLAGS=$lt_AR_FLAGS
10673
10674 # A C compiler.
10675 LTCC=$lt_LTCC
10676
10677 # A language-specific compiler.
10678 CC=$lt_compiler
10679
10680 # Is the compiler the GNU C compiler?
10681 with_gcc=$GCC
10682
10683 # An ERE matcher.
10684 EGREP=$lt_EGREP
10685
10686 # The linker used to build libraries.
10687 LD=$lt_LD
10688
10689 # Whether we need hard or soft links.
10690 LN_S=$lt_LN_S
10691
10692 # A BSD-compatible nm program.
10693 NM=$lt_NM
10694
10695 # A symbol stripping program
10696 STRIP=$lt_STRIP
10697
10698 # Used to examine libraries when file_magic_cmd begins "file"
10699 MAGIC_CMD=$MAGIC_CMD
10700
10701 # Used on cygwin: DLL creation program.
10702 DLLTOOL="$DLLTOOL"
10703
10704 # Used on cygwin: object dumper.
10705 OBJDUMP="$OBJDUMP"
10706
10707 # Used on cygwin: assembler.
10708 AS="$AS"
10709
10710 # The name of the directory that contains temporary libtool files.
10711 objdir=$objdir
10712
10713 # How to create reloadable object files.
10714 reload_flag=$lt_reload_flag
10715 reload_cmds=$lt_reload_cmds
10716
10717 # How to pass a linker flag through the compiler.
10718 wl=$lt_lt_prog_compiler_wl
10719
10720 # Object file suffix (normally "o").
10721 objext="$ac_objext"
10722
10723 # Old archive suffix (normally "a").
10724 libext="$libext"
10725
10726 # Shared library suffix (normally ".so").
10727 shrext_cmds='$shrext_cmds'
10728
10729 # Executable file suffix (normally "").
10730 exeext="$exeext"
10731
10732 # Additional compiler flags for building library objects.
10733 pic_flag=$lt_lt_prog_compiler_pic
10734 pic_mode=$pic_mode
10735
10736 # What is the maximum length of a command?
10737 max_cmd_len=$lt_cv_sys_max_cmd_len
10738
10739 # Does compiler simultaneously support -c and -o options?
10740 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10741
10742 # Must we lock files when doing compilation?
10743 need_locks=$lt_need_locks
10744
10745 # Do we need the lib prefix for modules?
10746 need_lib_prefix=$need_lib_prefix
10747
10748 # Do we need a version for libraries?
10749 need_version=$need_version
10750
10751 # Whether dlopen is supported.
10752 dlopen_support=$enable_dlopen
10753
10754 # Whether dlopen of programs is supported.
10755 dlopen_self=$enable_dlopen_self
10756
10757 # Whether dlopen of statically linked programs is supported.
10758 dlopen_self_static=$enable_dlopen_self_static
10759
10760 # Compiler flag to prevent dynamic linking.
10761 link_static_flag=$lt_lt_prog_compiler_static
10762
10763 # Compiler flag to turn off builtin functions.
10764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10765
10766 # Compiler flag to allow reflexive dlopens.
10767 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10768
10769 # Compiler flag to generate shared objects directly from archives.
10770 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10771
10772 # Compiler flag to generate thread-safe objects.
10773 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10774
10775 # Library versioning type.
10776 version_type=$version_type
10777
10778 # Format of library name prefix.
10779 libname_spec=$lt_libname_spec
10780
10781 # List of archive names.  First name is the real one, the rest are links.
10782 # The last name is the one that the linker finds with -lNAME.
10783 library_names_spec=$lt_library_names_spec
10784
10785 # The coded name of the library, if different from the real name.
10786 soname_spec=$lt_soname_spec
10787
10788 # Commands used to build and install an old-style archive.
10789 RANLIB=$lt_RANLIB
10790 old_archive_cmds=$lt_old_archive_cmds
10791 old_postinstall_cmds=$lt_old_postinstall_cmds
10792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10793
10794 # Create an old-style archive from a shared archive.
10795 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10796
10797 # Create a temporary old-style archive to link instead of a shared archive.
10798 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10799
10800 # Commands used to build and install a shared archive.
10801 archive_cmds=$lt_archive_cmds
10802 archive_expsym_cmds=$lt_archive_expsym_cmds
10803 postinstall_cmds=$lt_postinstall_cmds
10804 postuninstall_cmds=$lt_postuninstall_cmds
10805
10806 # Commands used to build a loadable module (assumed same as above if empty)
10807 module_cmds=$lt_module_cmds
10808 module_expsym_cmds=$lt_module_expsym_cmds
10809
10810 # Commands to strip libraries.
10811 old_striplib=$lt_old_striplib
10812 striplib=$lt_striplib
10813
10814 # Dependencies to place before the objects being linked to create a
10815 # shared library.
10816 predep_objects=$lt_predep_objects
10817
10818 # Dependencies to place after the objects being linked to create a
10819 # shared library.
10820 postdep_objects=$lt_postdep_objects
10821
10822 # Dependencies to place before the objects being linked to create a
10823 # shared library.
10824 predeps=$lt_predeps
10825
10826 # Dependencies to place after the objects being linked to create a
10827 # shared library.
10828 postdeps=$lt_postdeps
10829
10830 # The library search path used internally by the compiler when linking
10831 # a shared library.
10832 compiler_lib_search_path=$lt_compiler_lib_search_path
10833
10834 # Method to check whether dependent libraries are shared objects.
10835 deplibs_check_method=$lt_deplibs_check_method
10836
10837 # Command to use when deplibs_check_method == file_magic.
10838 file_magic_cmd=$lt_file_magic_cmd
10839
10840 # Flag that allows shared libraries with undefined symbols to be built.
10841 allow_undefined_flag=$lt_allow_undefined_flag
10842
10843 # Flag that forces no undefined symbols.
10844 no_undefined_flag=$lt_no_undefined_flag
10845
10846 # Commands used to finish a libtool library installation in a directory.
10847 finish_cmds=$lt_finish_cmds
10848
10849 # Same as above, but a single script fragment to be evaled but not shown.
10850 finish_eval=$lt_finish_eval
10851
10852 # Take the output of nm and produce a listing of raw symbols and C names.
10853 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10854
10855 # Transform the output of nm in a proper C declaration
10856 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10857
10858 # Transform the output of nm in a C name address pair
10859 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10860
10861 # This is the shared library runtime path variable.
10862 runpath_var=$runpath_var
10863
10864 # This is the shared library path variable.
10865 shlibpath_var=$shlibpath_var
10866
10867 # Is shlibpath searched before the hard-coded library search path?
10868 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10869
10870 # How to hardcode a shared library path into an executable.
10871 hardcode_action=$hardcode_action
10872
10873 # Whether we should hardcode library paths into libraries.
10874 hardcode_into_libs=$hardcode_into_libs
10875
10876 # Flag to hardcode \$libdir into a binary during linking.
10877 # This must work even if \$libdir does not exist.
10878 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10879
10880 # If ld is used when linking, flag to hardcode \$libdir into
10881 # a binary during linking. This must work even if \$libdir does
10882 # not exist.
10883 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10884
10885 # Whether we need a single -rpath flag with a separated argument.
10886 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10887
10888 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10889 # resulting binary.
10890 hardcode_direct=$hardcode_direct
10891
10892 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10893 # resulting binary.
10894 hardcode_minus_L=$hardcode_minus_L
10895
10896 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10897 # the resulting binary.
10898 hardcode_shlibpath_var=$hardcode_shlibpath_var
10899
10900 # Set to yes if building a shared library automatically hardcodes DIR into the library
10901 # and all subsequent libraries and executables linked against it.
10902 hardcode_automatic=$hardcode_automatic
10903
10904 # Variables whose values should be saved in libtool wrapper scripts and
10905 # restored at relink time.
10906 variables_saved_for_relink="$variables_saved_for_relink"
10907
10908 # Whether libtool must link a program against all its dependency libraries.
10909 link_all_deplibs=$link_all_deplibs
10910
10911 # Compile-time system search path for libraries
10912 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10913
10914 # Run-time system search path for libraries
10915 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10916
10917 # Fix the shell variable \$srcfile for the compiler.
10918 fix_srcfile_path="$fix_srcfile_path"
10919
10920 # Set to yes if exported symbols are required.
10921 always_export_symbols=$always_export_symbols
10922
10923 # The commands to list exported symbols.
10924 export_symbols_cmds=$lt_export_symbols_cmds
10925
10926 # The commands to extract the exported symbol list from a shared archive.
10927 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10928
10929 # Symbols that should not be listed in the preloaded symbols.
10930 exclude_expsyms=$lt_exclude_expsyms
10931
10932 # Symbols that must always be exported.
10933 include_expsyms=$lt_include_expsyms
10934
10935 # ### END LIBTOOL CONFIG
10936
10937 __EOF__
10938
10939
10940   case $host_os in
10941   aix3*)
10942     cat <<\EOF >> "$cfgfile"
10943
10944 # AIX sometimes has problems with the GCC collect2 program.  For some
10945 # reason, if we set the COLLECT_NAMES environment variable, the problems
10946 # vanish in a puff of smoke.
10947 if test "X${COLLECT_NAMES+set}" != Xset; then
10948   COLLECT_NAMES=
10949   export COLLECT_NAMES
10950 fi
10951 EOF
10952     ;;
10953   esac
10954
10955   # We use sed instead of cat because bash on DJGPP gets confused if
10956   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10957   # text mode, it properly converts lines to CR/LF.  This bash problem
10958   # is reportedly fixed, but why not run on old versions too?
10959   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10960
10961   mv -f "$cfgfile" "$ofile" || \
10962     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10963   chmod +x "$ofile"
10964
10965 else
10966   # If there is no Makefile yet, we rely on a make rule to execute
10967   # `config.status --recheck' to rerun these tests and create the
10968   # libtool script then.
10969   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10970   if test -f "$ltmain_in"; then
10971     test -f Makefile && make "$ltmain"
10972   fi
10973 fi
10974
10975
10976 ac_ext=c
10977 ac_cpp='$CPP $CPPFLAGS'
10978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10981
10982 CC="$lt_save_CC"
10983
10984
10985 # Check whether --with-tags or --without-tags was given.
10986 if test "${with_tags+set}" = set; then
10987   withval="$with_tags"
10988   tagnames="$withval"
10989 fi;
10990
10991 if test -f "$ltmain" && test -n "$tagnames"; then
10992   if test ! -f "${ofile}"; then
10993     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10994 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10995   fi
10996
10997   if test -z "$LTCC"; then
10998     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10999     if test -z "$LTCC"; then
11000       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11001 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11002     else
11003       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11004 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11005     fi
11006   fi
11007
11008   # Extract list of available tagged configurations in $ofile.
11009   # Note that this assumes the entire list is on one line.
11010   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11011
11012   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11013   for tagname in $tagnames; do
11014     IFS="$lt_save_ifs"
11015     # Check whether tagname contains only valid characters
11016     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11017     "") ;;
11018     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11019 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11020    { (exit 1); exit 1; }; }
11021         ;;
11022     esac
11023
11024     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11025     then
11026       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11027 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11028    { (exit 1); exit 1; }; }
11029     fi
11030
11031     # Update the list of available tags.
11032     if test -n "$tagname"; then
11033       echo appending configuration tag \"$tagname\" to $ofile
11034
11035       case $tagname in
11036       CXX)
11037         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11038             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11039             (test "X$CXX" != "Xg++"))) ; then
11040           :
11041         else
11042           tagname=""
11043         fi
11044         ;;
11045
11046       F77)
11047         if test -n "$F77" && test "X$F77" != "Xno"; then
11048           :
11049         else
11050           tagname=""
11051         fi
11052         ;;
11053
11054       GCJ)
11055         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11056           :
11057         else
11058           tagname=""
11059         fi
11060         ;;
11061
11062       RC)
11063
11064
11065
11066 # Source file extension for RC test sources.
11067 ac_ext=rc
11068
11069 # Object file extension for compiled RC test sources.
11070 objext=o
11071 objext_RC=$objext
11072
11073 # Code to be used in simple compile tests
11074 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11075
11076 # Code to be used in simple link tests
11077 lt_simple_link_test_code="$lt_simple_compile_test_code"
11078
11079 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11080
11081 # If no C compiler was specified, use CC.
11082 LTCC=${LTCC-"$CC"}
11083
11084 # Allow CC to be a program name with arguments.
11085 compiler=$CC
11086
11087
11088 # save warnings/boilerplate of simple test code
11089 ac_outfile=conftest.$ac_objext
11090 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11092 _lt_compiler_boilerplate=`cat conftest.err`
11093 $rm conftest*
11094
11095 ac_outfile=conftest.$ac_objext
11096 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11098 _lt_linker_boilerplate=`cat conftest.err`
11099 $rm conftest*
11100
11101
11102 # Allow CC to be a program name with arguments.
11103 lt_save_CC="$CC"
11104 CC=${RC-"windres"}
11105 compiler=$CC
11106 compiler_RC=$CC
11107 for cc_temp in $compiler""; do
11108   case $cc_temp in
11109     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11110     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11111     \-*) ;;
11112     *) break;;
11113   esac
11114 done
11115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11116
11117 lt_cv_prog_compiler_c_o_RC=yes
11118
11119 # The else clause should only fire when bootstrapping the
11120 # libtool distribution, otherwise you forgot to ship ltmain.sh
11121 # with your package, and you will get complaints that there are
11122 # no rules to generate ltmain.sh.
11123 if test -f "$ltmain"; then
11124   # See if we are running on zsh, and set the options which allow our commands through
11125   # without removal of \ escapes.
11126   if test -n "${ZSH_VERSION+set}" ; then
11127     setopt NO_GLOB_SUBST
11128   fi
11129   # Now quote all the things that may contain metacharacters while being
11130   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11131   # variables and quote the copies for generation of the libtool script.
11132   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11133     SED SHELL STRIP \
11134     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11135     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11136     deplibs_check_method reload_flag reload_cmds need_locks \
11137     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11138     lt_cv_sys_global_symbol_to_c_name_address \
11139     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11140     old_postinstall_cmds old_postuninstall_cmds \
11141     compiler_RC \
11142     CC_RC \
11143     LD_RC \
11144     lt_prog_compiler_wl_RC \
11145     lt_prog_compiler_pic_RC \
11146     lt_prog_compiler_static_RC \
11147     lt_prog_compiler_no_builtin_flag_RC \
11148     export_dynamic_flag_spec_RC \
11149     thread_safe_flag_spec_RC \
11150     whole_archive_flag_spec_RC \
11151     enable_shared_with_static_runtimes_RC \
11152     old_archive_cmds_RC \
11153     old_archive_from_new_cmds_RC \
11154     predep_objects_RC \
11155     postdep_objects_RC \
11156     predeps_RC \
11157     postdeps_RC \
11158     compiler_lib_search_path_RC \
11159     archive_cmds_RC \
11160     archive_expsym_cmds_RC \
11161     postinstall_cmds_RC \
11162     postuninstall_cmds_RC \
11163     old_archive_from_expsyms_cmds_RC \
11164     allow_undefined_flag_RC \
11165     no_undefined_flag_RC \
11166     export_symbols_cmds_RC \
11167     hardcode_libdir_flag_spec_RC \
11168     hardcode_libdir_flag_spec_ld_RC \
11169     hardcode_libdir_separator_RC \
11170     hardcode_automatic_RC \
11171     module_cmds_RC \
11172     module_expsym_cmds_RC \
11173     lt_cv_prog_compiler_c_o_RC \
11174     exclude_expsyms_RC \
11175     include_expsyms_RC; do
11176
11177     case $var in
11178     old_archive_cmds_RC | \
11179     old_archive_from_new_cmds_RC | \
11180     archive_cmds_RC | \
11181     archive_expsym_cmds_RC | \
11182     module_cmds_RC | \
11183     module_expsym_cmds_RC | \
11184     old_archive_from_expsyms_cmds_RC | \
11185     export_symbols_cmds_RC | \
11186     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11187     postinstall_cmds | postuninstall_cmds | \
11188     old_postinstall_cmds | old_postuninstall_cmds | \
11189     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11190       # Double-quote double-evaled strings.
11191       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11192       ;;
11193     *)
11194       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11195       ;;
11196     esac
11197   done
11198
11199   case $lt_echo in
11200   *'\$0 --fallback-echo"')
11201     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11202     ;;
11203   esac
11204
11205 cfgfile="$ofile"
11206
11207   cat <<__EOF__ >> "$cfgfile"
11208 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11209
11210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11211
11212 # Shell to use when invoking shell scripts.
11213 SHELL=$lt_SHELL
11214
11215 # Whether or not to build shared libraries.
11216 build_libtool_libs=$enable_shared
11217
11218 # Whether or not to build static libraries.
11219 build_old_libs=$enable_static
11220
11221 # Whether or not to add -lc for building shared libraries.
11222 build_libtool_need_lc=$archive_cmds_need_lc_RC
11223
11224 # Whether or not to disallow shared libs when runtime libs are static
11225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11226
11227 # Whether or not to optimize for fast installation.
11228 fast_install=$enable_fast_install
11229
11230 # The host system.
11231 host_alias=$host_alias
11232 host=$host
11233 host_os=$host_os
11234
11235 # The build system.
11236 build_alias=$build_alias
11237 build=$build
11238 build_os=$build_os
11239
11240 # An echo program that does not interpret backslashes.
11241 echo=$lt_echo
11242
11243 # The archiver.
11244 AR=$lt_AR
11245 AR_FLAGS=$lt_AR_FLAGS
11246
11247 # A C compiler.
11248 LTCC=$lt_LTCC
11249
11250 # A language-specific compiler.
11251 CC=$lt_compiler_RC
11252
11253 # Is the compiler the GNU C compiler?
11254 with_gcc=$GCC_RC
11255
11256 # An ERE matcher.
11257 EGREP=$lt_EGREP
11258
11259 # The linker used to build libraries.
11260 LD=$lt_LD_RC
11261
11262 # Whether we need hard or soft links.
11263 LN_S=$lt_LN_S
11264
11265 # A BSD-compatible nm program.
11266 NM=$lt_NM
11267
11268 # A symbol stripping program
11269 STRIP=$lt_STRIP
11270
11271 # Used to examine libraries when file_magic_cmd begins "file"
11272 MAGIC_CMD=$MAGIC_CMD
11273
11274 # Used on cygwin: DLL creation program.
11275 DLLTOOL="$DLLTOOL"
11276
11277 # Used on cygwin: object dumper.
11278 OBJDUMP="$OBJDUMP"
11279
11280 # Used on cygwin: assembler.
11281 AS="$AS"
11282
11283 # The name of the directory that contains temporary libtool files.
11284 objdir=$objdir
11285
11286 # How to create reloadable object files.
11287 reload_flag=$lt_reload_flag
11288 reload_cmds=$lt_reload_cmds
11289
11290 # How to pass a linker flag through the compiler.
11291 wl=$lt_lt_prog_compiler_wl_RC
11292
11293 # Object file suffix (normally "o").
11294 objext="$ac_objext"
11295
11296 # Old archive suffix (normally "a").
11297 libext="$libext"
11298
11299 # Shared library suffix (normally ".so").
11300 shrext_cmds='$shrext_cmds'
11301
11302 # Executable file suffix (normally "").
11303 exeext="$exeext"
11304
11305 # Additional compiler flags for building library objects.
11306 pic_flag=$lt_lt_prog_compiler_pic_RC
11307 pic_mode=$pic_mode
11308
11309 # What is the maximum length of a command?
11310 max_cmd_len=$lt_cv_sys_max_cmd_len
11311
11312 # Does compiler simultaneously support -c and -o options?
11313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11314
11315 # Must we lock files when doing compilation?
11316 need_locks=$lt_need_locks
11317
11318 # Do we need the lib prefix for modules?
11319 need_lib_prefix=$need_lib_prefix
11320
11321 # Do we need a version for libraries?
11322 need_version=$need_version
11323
11324 # Whether dlopen is supported.
11325 dlopen_support=$enable_dlopen
11326
11327 # Whether dlopen of programs is supported.
11328 dlopen_self=$enable_dlopen_self
11329
11330 # Whether dlopen of statically linked programs is supported.
11331 dlopen_self_static=$enable_dlopen_self_static
11332
11333 # Compiler flag to prevent dynamic linking.
11334 link_static_flag=$lt_lt_prog_compiler_static_RC
11335
11336 # Compiler flag to turn off builtin functions.
11337 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11338
11339 # Compiler flag to allow reflexive dlopens.
11340 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11341
11342 # Compiler flag to generate shared objects directly from archives.
11343 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11344
11345 # Compiler flag to generate thread-safe objects.
11346 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11347
11348 # Library versioning type.
11349 version_type=$version_type
11350
11351 # Format of library name prefix.
11352 libname_spec=$lt_libname_spec
11353
11354 # List of archive names.  First name is the real one, the rest are links.
11355 # The last name is the one that the linker finds with -lNAME.
11356 library_names_spec=$lt_library_names_spec
11357
11358 # The coded name of the library, if different from the real name.
11359 soname_spec=$lt_soname_spec
11360
11361 # Commands used to build and install an old-style archive.
11362 RANLIB=$lt_RANLIB
11363 old_archive_cmds=$lt_old_archive_cmds_RC
11364 old_postinstall_cmds=$lt_old_postinstall_cmds
11365 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11366
11367 # Create an old-style archive from a shared archive.
11368 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11369
11370 # Create a temporary old-style archive to link instead of a shared archive.
11371 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11372
11373 # Commands used to build and install a shared archive.
11374 archive_cmds=$lt_archive_cmds_RC
11375 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11376 postinstall_cmds=$lt_postinstall_cmds
11377 postuninstall_cmds=$lt_postuninstall_cmds
11378
11379 # Commands used to build a loadable module (assumed same as above if empty)
11380 module_cmds=$lt_module_cmds_RC
11381 module_expsym_cmds=$lt_module_expsym_cmds_RC
11382
11383 # Commands to strip libraries.
11384 old_striplib=$lt_old_striplib
11385 striplib=$lt_striplib
11386
11387 # Dependencies to place before the objects being linked to create a
11388 # shared library.
11389 predep_objects=$lt_predep_objects_RC
11390
11391 # Dependencies to place after the objects being linked to create a
11392 # shared library.
11393 postdep_objects=$lt_postdep_objects_RC
11394
11395 # Dependencies to place before the objects being linked to create a
11396 # shared library.
11397 predeps=$lt_predeps_RC
11398
11399 # Dependencies to place after the objects being linked to create a
11400 # shared library.
11401 postdeps=$lt_postdeps_RC
11402
11403 # The library search path used internally by the compiler when linking
11404 # a shared library.
11405 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11406
11407 # Method to check whether dependent libraries are shared objects.
11408 deplibs_check_method=$lt_deplibs_check_method
11409
11410 # Command to use when deplibs_check_method == file_magic.
11411 file_magic_cmd=$lt_file_magic_cmd
11412
11413 # Flag that allows shared libraries with undefined symbols to be built.
11414 allow_undefined_flag=$lt_allow_undefined_flag_RC
11415
11416 # Flag that forces no undefined symbols.
11417 no_undefined_flag=$lt_no_undefined_flag_RC
11418
11419 # Commands used to finish a libtool library installation in a directory.
11420 finish_cmds=$lt_finish_cmds
11421
11422 # Same as above, but a single script fragment to be evaled but not shown.
11423 finish_eval=$lt_finish_eval
11424
11425 # Take the output of nm and produce a listing of raw symbols and C names.
11426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11427
11428 # Transform the output of nm in a proper C declaration
11429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11430
11431 # Transform the output of nm in a C name address pair
11432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11433
11434 # This is the shared library runtime path variable.
11435 runpath_var=$runpath_var
11436
11437 # This is the shared library path variable.
11438 shlibpath_var=$shlibpath_var
11439
11440 # Is shlibpath searched before the hard-coded library search path?
11441 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11442
11443 # How to hardcode a shared library path into an executable.
11444 hardcode_action=$hardcode_action_RC
11445
11446 # Whether we should hardcode library paths into libraries.
11447 hardcode_into_libs=$hardcode_into_libs
11448
11449 # Flag to hardcode \$libdir into a binary during linking.
11450 # This must work even if \$libdir does not exist.
11451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11452
11453 # If ld is used when linking, flag to hardcode \$libdir into
11454 # a binary during linking. This must work even if \$libdir does
11455 # not exist.
11456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11457
11458 # Whether we need a single -rpath flag with a separated argument.
11459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11460
11461 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11462 # resulting binary.
11463 hardcode_direct=$hardcode_direct_RC
11464
11465 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11466 # resulting binary.
11467 hardcode_minus_L=$hardcode_minus_L_RC
11468
11469 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11470 # the resulting binary.
11471 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11472
11473 # Set to yes if building a shared library automatically hardcodes DIR into the library
11474 # and all subsequent libraries and executables linked against it.
11475 hardcode_automatic=$hardcode_automatic_RC
11476
11477 # Variables whose values should be saved in libtool wrapper scripts and
11478 # restored at relink time.
11479 variables_saved_for_relink="$variables_saved_for_relink"
11480
11481 # Whether libtool must link a program against all its dependency libraries.
11482 link_all_deplibs=$link_all_deplibs_RC
11483
11484 # Compile-time system search path for libraries
11485 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11486
11487 # Run-time system search path for libraries
11488 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11489
11490 # Fix the shell variable \$srcfile for the compiler.
11491 fix_srcfile_path="$fix_srcfile_path_RC"
11492
11493 # Set to yes if exported symbols are required.
11494 always_export_symbols=$always_export_symbols_RC
11495
11496 # The commands to list exported symbols.
11497 export_symbols_cmds=$lt_export_symbols_cmds_RC
11498
11499 # The commands to extract the exported symbol list from a shared archive.
11500 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11501
11502 # Symbols that should not be listed in the preloaded symbols.
11503 exclude_expsyms=$lt_exclude_expsyms_RC
11504
11505 # Symbols that must always be exported.
11506 include_expsyms=$lt_include_expsyms_RC
11507
11508 # ### END LIBTOOL TAG CONFIG: $tagname
11509
11510 __EOF__
11511
11512
11513 else
11514   # If there is no Makefile yet, we rely on a make rule to execute
11515   # `config.status --recheck' to rerun these tests and create the
11516   # libtool script then.
11517   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11518   if test -f "$ltmain_in"; then
11519     test -f Makefile && make "$ltmain"
11520   fi
11521 fi
11522
11523
11524 ac_ext=c
11525 ac_cpp='$CPP $CPPFLAGS'
11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530 CC="$lt_save_CC"
11531
11532         ;;
11533
11534       *)
11535         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11536 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11537    { (exit 1); exit 1; }; }
11538         ;;
11539       esac
11540
11541       # Append the new tag name to the list of available tags.
11542       if test -n "$tagname" ; then
11543       available_tags="$available_tags $tagname"
11544     fi
11545     fi
11546   done
11547   IFS="$lt_save_ifs"
11548
11549   # Now substitute the updated list of available tags.
11550   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11551     mv "${ofile}T" "$ofile"
11552     chmod +x "$ofile"
11553   else
11554     rm -f "${ofile}T"
11555     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11556 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11557    { (exit 1); exit 1; }; }
11558   fi
11559 fi
11560
11561
11562
11563 # This can be used to rebuild libtool when needed
11564 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11565
11566 # Always use our own libtool.
11567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11568
11569 # Prevent multiple expansion
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580 ol_link_perl=no
11581 if test $ol_enable_perl != no ; then
11582         # Extract the first word of "perl", so it can be a program name with args.
11583 set dummy perl; ac_word=$2
11584 echo "$as_me:$LINENO: checking for $ac_word" >&5
11585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11586 if test "${ac_cv_path_PERLBIN+set}" = set; then
11587   echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589   case $PERLBIN in
11590   [\\/]* | ?:[\\/]*)
11591   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11592   ;;
11593   *)
11594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11596 do
11597   IFS=$as_save_IFS
11598   test -z "$as_dir" && as_dir=.
11599   for ac_exec_ext in '' $ac_executable_extensions; do
11600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11603     break 2
11604   fi
11605 done
11606 done
11607
11608   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11609   ;;
11610 esac
11611 fi
11612 PERLBIN=$ac_cv_path_PERLBIN
11613
11614 if test -n "$PERLBIN"; then
11615   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11616 echo "${ECHO_T}$PERLBIN" >&6
11617 else
11618   echo "$as_me:$LINENO: result: no" >&5
11619 echo "${ECHO_T}no" >&6
11620 fi
11621
11622
11623         if test "no$PERLBIN" = "no" ; then
11624                 if test $ol_enable_perl = yes ; then
11625                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11626 echo "$as_me: error: could not locate perl" >&2;}
11627    { (exit 1); exit 1; }; }
11628                 fi
11629
11630         else
11631                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11632                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11633
11634                 if test x"$ol_enable_perl" = "xyes" ; then
11635                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11636                 else
11637                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11638                 fi
11639                                 ol_link_perl=yes
11640         fi
11641 fi
11642
11643 ac_ext=c
11644 ac_cpp='$CPP $CPPFLAGS'
11645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11648 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11650 # On Suns, sometimes $CPP names a directory.
11651 if test -n "$CPP" && test -d "$CPP"; then
11652   CPP=
11653 fi
11654 if test -z "$CPP"; then
11655   if test "${ac_cv_prog_CPP+set}" = set; then
11656   echo $ECHO_N "(cached) $ECHO_C" >&6
11657 else
11658       # Double quotes because CPP needs to be expanded
11659     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11660     do
11661       ac_preproc_ok=false
11662 for ac_c_preproc_warn_flag in '' yes
11663 do
11664   # Use a header file that comes with gcc, so configuring glibc
11665   # with a fresh cross-compiler works.
11666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11667   # <limits.h> exists even on freestanding compilers.
11668   # On the NeXT, cc -E runs the code through the compiler's parser,
11669   # not just through cpp. "Syntax error" is here to catch this case.
11670   cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h.  */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h.  */
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681                      Syntax error
11682 _ACEOF
11683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } >/dev/null; then
11691   if test -s conftest.err; then
11692     ac_cpp_err=$ac_c_preproc_warn_flag
11693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11694   else
11695     ac_cpp_err=
11696   fi
11697 else
11698   ac_cpp_err=yes
11699 fi
11700 if test -z "$ac_cpp_err"; then
11701   :
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706   # Broken: fails on valid input.
11707 continue
11708 fi
11709 rm -f conftest.err conftest.$ac_ext
11710
11711   # OK, works on sane cases.  Now check whether non-existent headers
11712   # can be detected and how.
11713   cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <ac_nonexistent.h>
11720 _ACEOF
11721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } >/dev/null; then
11729   if test -s conftest.err; then
11730     ac_cpp_err=$ac_c_preproc_warn_flag
11731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11732   else
11733     ac_cpp_err=
11734   fi
11735 else
11736   ac_cpp_err=yes
11737 fi
11738 if test -z "$ac_cpp_err"; then
11739   # Broken: success on invalid input.
11740 continue
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745   # Passes both tests.
11746 ac_preproc_ok=:
11747 break
11748 fi
11749 rm -f conftest.err conftest.$ac_ext
11750
11751 done
11752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11753 rm -f conftest.err conftest.$ac_ext
11754 if $ac_preproc_ok; then
11755   break
11756 fi
11757
11758     done
11759     ac_cv_prog_CPP=$CPP
11760
11761 fi
11762   CPP=$ac_cv_prog_CPP
11763 else
11764   ac_cv_prog_CPP=$CPP
11765 fi
11766 echo "$as_me:$LINENO: result: $CPP" >&5
11767 echo "${ECHO_T}$CPP" >&6
11768 ac_preproc_ok=false
11769 for ac_c_preproc_warn_flag in '' yes
11770 do
11771   # Use a header file that comes with gcc, so configuring glibc
11772   # with a fresh cross-compiler works.
11773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11774   # <limits.h> exists even on freestanding compilers.
11775   # On the NeXT, cc -E runs the code through the compiler's parser,
11776   # not just through cpp. "Syntax error" is here to catch this case.
11777   cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h.  */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h.  */
11783 #ifdef __STDC__
11784 # include <limits.h>
11785 #else
11786 # include <assert.h>
11787 #endif
11788                      Syntax error
11789 _ACEOF
11790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11791   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11792   ac_status=$?
11793   grep -v '^ *+' conftest.er1 >conftest.err
11794   rm -f conftest.er1
11795   cat conftest.err >&5
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } >/dev/null; then
11798   if test -s conftest.err; then
11799     ac_cpp_err=$ac_c_preproc_warn_flag
11800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11801   else
11802     ac_cpp_err=
11803   fi
11804 else
11805   ac_cpp_err=yes
11806 fi
11807 if test -z "$ac_cpp_err"; then
11808   :
11809 else
11810   echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11812
11813   # Broken: fails on valid input.
11814 continue
11815 fi
11816 rm -f conftest.err conftest.$ac_ext
11817
11818   # OK, works on sane cases.  Now check whether non-existent headers
11819   # can be detected and how.
11820   cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826 #include <ac_nonexistent.h>
11827 _ACEOF
11828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } >/dev/null; then
11836   if test -s conftest.err; then
11837     ac_cpp_err=$ac_c_preproc_warn_flag
11838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11839   else
11840     ac_cpp_err=
11841   fi
11842 else
11843   ac_cpp_err=yes
11844 fi
11845 if test -z "$ac_cpp_err"; then
11846   # Broken: success on invalid input.
11847 continue
11848 else
11849   echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11851
11852   # Passes both tests.
11853 ac_preproc_ok=:
11854 break
11855 fi
11856 rm -f conftest.err conftest.$ac_ext
11857
11858 done
11859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11860 rm -f conftest.err conftest.$ac_ext
11861 if $ac_preproc_ok; then
11862   :
11863 else
11864   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11865 See \`config.log' for more details." >&5
11866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11867 See \`config.log' for more details." >&2;}
11868    { (exit 1); exit 1; }; }
11869 fi
11870
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876
11877
11878 case $host_os in
11879   *mingw32* ) ac_cv_mingw32=yes ;;
11880   *cygwin* ) ac_cv_cygwin=yes ;;
11881 esac
11882
11883
11884
11885
11886 cat >>confdefs.h <<_ACEOF
11887 #define EXEEXT "${EXEEXT}"
11888 _ACEOF
11889
11890
11891 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11892 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11893 if test "${ac_cv_lib_be_be_app+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lbe -lroot -lnet $LIBS"
11898 cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904
11905 /* Override any gcc2 internal prototype to avoid an error.  */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 /* We use char because int might match the return type of a gcc2
11910    builtin and then its argument prototype would still apply.  */
11911 char be_app ();
11912 int
11913 main ()
11914 {
11915 be_app ();
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922   (eval $ac_link) 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -z "$ac_c_werror_flag"
11930                          || test ! -s conftest.err'
11931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932   (eval $ac_try) 2>&5
11933   ac_status=$?
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); }; } &&
11936          { ac_try='test -s conftest$ac_exeext'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_cv_lib_be_be_app=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_lib_be_be_app=no
11948 fi
11949 rm -f conftest.err conftest.$ac_objext \
11950       conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11952 fi
11953 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11954 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11955 if test $ac_cv_lib_be_be_app = yes; then
11956   LIBS="$LIBS -lbe -lroot -lnet"
11957 else
11958   :
11959 fi
11960
11961
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967 if test -n "$ac_tool_prefix"; then
11968   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11970 echo "$as_me:$LINENO: checking for $ac_word" >&5
11971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11972 if test "${ac_cv_prog_CC+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   if test -n "$CC"; then
11976   ac_cv_prog_CC="$CC" # Let the user override the test.
11977 else
11978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11979 for as_dir in $PATH
11980 do
11981   IFS=$as_save_IFS
11982   test -z "$as_dir" && as_dir=.
11983   for ac_exec_ext in '' $ac_executable_extensions; do
11984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11985     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11987     break 2
11988   fi
11989 done
11990 done
11991
11992 fi
11993 fi
11994 CC=$ac_cv_prog_CC
11995 if test -n "$CC"; then
11996   echo "$as_me:$LINENO: result: $CC" >&5
11997 echo "${ECHO_T}$CC" >&6
11998 else
11999   echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6
12001 fi
12002
12003 fi
12004 if test -z "$ac_cv_prog_CC"; then
12005   ac_ct_CC=$CC
12006   # Extract the first word of "gcc", so it can be a program name with args.
12007 set dummy gcc; ac_word=$2
12008 echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   if test -n "$ac_ct_CC"; then
12014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12015 else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019   IFS=$as_save_IFS
12020   test -z "$as_dir" && as_dir=.
12021   for ac_exec_ext in '' $ac_executable_extensions; do
12022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023     ac_cv_prog_ac_ct_CC="gcc"
12024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12025     break 2
12026   fi
12027 done
12028 done
12029
12030 fi
12031 fi
12032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12033 if test -n "$ac_ct_CC"; then
12034   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12035 echo "${ECHO_T}$ac_ct_CC" >&6
12036 else
12037   echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6
12039 fi
12040
12041   CC=$ac_ct_CC
12042 else
12043   CC="$ac_cv_prog_CC"
12044 fi
12045
12046 if test -z "$CC"; then
12047   if test -n "$ac_tool_prefix"; then
12048   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}cc; ac_word=$2
12050 echo "$as_me:$LINENO: checking for $ac_word" >&5
12051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12052 if test "${ac_cv_prog_CC+set}" = set; then
12053   echo $ECHO_N "(cached) $ECHO_C" >&6
12054 else
12055   if test -n "$CC"; then
12056   ac_cv_prog_CC="$CC" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063   for ac_exec_ext in '' $ac_executable_extensions; do
12064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065     ac_cv_prog_CC="${ac_tool_prefix}cc"
12066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070 done
12071
12072 fi
12073 fi
12074 CC=$ac_cv_prog_CC
12075 if test -n "$CC"; then
12076   echo "$as_me:$LINENO: result: $CC" >&5
12077 echo "${ECHO_T}$CC" >&6
12078 else
12079   echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6
12081 fi
12082
12083 fi
12084 if test -z "$ac_cv_prog_CC"; then
12085   ac_ct_CC=$CC
12086   # Extract the first word of "cc", so it can be a program name with args.
12087 set dummy cc; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   if test -n "$ac_ct_CC"; then
12094   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12095 else
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12098 do
12099   IFS=$as_save_IFS
12100   test -z "$as_dir" && as_dir=.
12101   for ac_exec_ext in '' $ac_executable_extensions; do
12102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103     ac_cv_prog_ac_ct_CC="cc"
12104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12105     break 2
12106   fi
12107 done
12108 done
12109
12110 fi
12111 fi
12112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12113 if test -n "$ac_ct_CC"; then
12114   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12115 echo "${ECHO_T}$ac_ct_CC" >&6
12116 else
12117   echo "$as_me:$LINENO: result: no" >&5
12118 echo "${ECHO_T}no" >&6
12119 fi
12120
12121   CC=$ac_ct_CC
12122 else
12123   CC="$ac_cv_prog_CC"
12124 fi
12125
12126 fi
12127 if test -z "$CC"; then
12128   # Extract the first word of "cc", so it can be a program name with args.
12129 set dummy cc; ac_word=$2
12130 echo "$as_me:$LINENO: checking for $ac_word" >&5
12131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12132 if test "${ac_cv_prog_CC+set}" = set; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135   if test -n "$CC"; then
12136   ac_cv_prog_CC="$CC" # Let the user override the test.
12137 else
12138   ac_prog_rejected=no
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12141 do
12142   IFS=$as_save_IFS
12143   test -z "$as_dir" && as_dir=.
12144   for ac_exec_ext in '' $ac_executable_extensions; do
12145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12147        ac_prog_rejected=yes
12148        continue
12149      fi
12150     ac_cv_prog_CC="cc"
12151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12152     break 2
12153   fi
12154 done
12155 done
12156
12157 if test $ac_prog_rejected = yes; then
12158   # We found a bogon in the path, so make sure we never use it.
12159   set dummy $ac_cv_prog_CC
12160   shift
12161   if test $# != 0; then
12162     # We chose a different compiler from the bogus one.
12163     # However, it has the same basename, so the bogon will be chosen
12164     # first if we set CC to just the basename; use the full file name.
12165     shift
12166     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12167   fi
12168 fi
12169 fi
12170 fi
12171 CC=$ac_cv_prog_CC
12172 if test -n "$CC"; then
12173   echo "$as_me:$LINENO: result: $CC" >&5
12174 echo "${ECHO_T}$CC" >&6
12175 else
12176   echo "$as_me:$LINENO: result: no" >&5
12177 echo "${ECHO_T}no" >&6
12178 fi
12179
12180 fi
12181 if test -z "$CC"; then
12182   if test -n "$ac_tool_prefix"; then
12183   for ac_prog in cl
12184   do
12185     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_CC+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   if test -n "$CC"; then
12193   ac_cv_prog_CC="$CC" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200   for ac_exec_ext in '' $ac_executable_extensions; do
12201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207 done
12208
12209 fi
12210 fi
12211 CC=$ac_cv_prog_CC
12212 if test -n "$CC"; then
12213   echo "$as_me:$LINENO: result: $CC" >&5
12214 echo "${ECHO_T}$CC" >&6
12215 else
12216   echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12218 fi
12219
12220     test -n "$CC" && break
12221   done
12222 fi
12223 if test -z "$CC"; then
12224   ac_ct_CC=$CC
12225   for ac_prog in cl
12226 do
12227   # Extract the first word of "$ac_prog", so it can be a program name with args.
12228 set dummy $ac_prog; ac_word=$2
12229 echo "$as_me:$LINENO: checking for $ac_word" >&5
12230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   if test -n "$ac_ct_CC"; then
12235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12236 else
12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238 for as_dir in $PATH
12239 do
12240   IFS=$as_save_IFS
12241   test -z "$as_dir" && as_dir=.
12242   for ac_exec_ext in '' $ac_executable_extensions; do
12243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12244     ac_cv_prog_ac_ct_CC="$ac_prog"
12245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12246     break 2
12247   fi
12248 done
12249 done
12250
12251 fi
12252 fi
12253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12254 if test -n "$ac_ct_CC"; then
12255   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12256 echo "${ECHO_T}$ac_ct_CC" >&6
12257 else
12258   echo "$as_me:$LINENO: result: no" >&5
12259 echo "${ECHO_T}no" >&6
12260 fi
12261
12262   test -n "$ac_ct_CC" && break
12263 done
12264
12265   CC=$ac_ct_CC
12266 fi
12267
12268 fi
12269
12270
12271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12272 See \`config.log' for more details." >&5
12273 echo "$as_me: error: no acceptable C compiler found in \$PATH
12274 See \`config.log' for more details." >&2;}
12275    { (exit 1); exit 1; }; }
12276
12277 # Provide some information about the compiler.
12278 echo "$as_me:$LINENO:" \
12279      "checking for C compiler version" >&5
12280 ac_compiler=`set X $ac_compile; echo $2`
12281 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12282   (eval $ac_compiler --version </dev/null >&5) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); }
12286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12287   (eval $ac_compiler -v </dev/null >&5) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }
12291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12292   (eval $ac_compiler -V </dev/null >&5) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }
12296
12297 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12298 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12299 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h.  */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h.  */
12308
12309 int
12310 main ()
12311 {
12312 #ifndef __GNUC__
12313        choke me
12314 #endif
12315
12316   ;
12317   return 0;
12318 }
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12322   (eval $ac_compile) 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -z "$ac_c_werror_flag"
12330                          || test ! -s conftest.err'
12331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332   (eval $ac_try) 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }; } &&
12336          { ac_try='test -s conftest.$ac_objext'
12337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338   (eval $ac_try) 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; }; then
12342   ac_compiler_gnu=yes
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 ac_compiler_gnu=no
12348 fi
12349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12351
12352 fi
12353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12355 GCC=`test $ac_compiler_gnu = yes && echo yes`
12356 ac_test_CFLAGS=${CFLAGS+set}
12357 ac_save_CFLAGS=$CFLAGS
12358 CFLAGS="-g"
12359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12361 if test "${ac_cv_prog_cc_g+set}" = set; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371 int
12372 main ()
12373 {
12374
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381   (eval $ac_compile) 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag"
12389                          || test ! -s conftest.err'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; } &&
12395          { ac_try='test -s conftest.$ac_objext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_prog_cc_g=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_cv_prog_cc_g=no
12407 fi
12408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12411 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12412 if test "$ac_test_CFLAGS" = set; then
12413   CFLAGS=$ac_save_CFLAGS
12414 elif test $ac_cv_prog_cc_g = yes; then
12415   if test "$GCC" = yes; then
12416     CFLAGS="-g -O2"
12417   else
12418     CFLAGS="-g"
12419   fi
12420 else
12421   if test "$GCC" = yes; then
12422     CFLAGS="-O2"
12423   else
12424     CFLAGS=
12425   fi
12426 fi
12427 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12428 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12429 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12430   echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432   ac_cv_prog_cc_stdc=no
12433 ac_save_CC=$CC
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 #include <stdarg.h>
12441 #include <stdio.h>
12442 #include <sys/types.h>
12443 #include <sys/stat.h>
12444 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12445 struct buf { int x; };
12446 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12447 static char *e (p, i)
12448      char **p;
12449      int i;
12450 {
12451   return p[i];
12452 }
12453 static char *f (char * (*g) (char **, int), char **p, ...)
12454 {
12455   char *s;
12456   va_list v;
12457   va_start (v,p);
12458   s = g (p, va_arg (v,int));
12459   va_end (v);
12460   return s;
12461 }
12462
12463 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12464    function prototypes and stuff, but not '\xHH' hex character constants.
12465    These don't provoke an error unfortunately, instead are silently treated
12466    as 'x'.  The following induces an error, until -std1 is added to get
12467    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12468    array size at least.  It's necessary to write '\x00'==0 to get something
12469    that's true only with -std1.  */
12470 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12471
12472 int test (int i, double x);
12473 struct s1 {int (*f) (int a);};
12474 struct s2 {int (*f) (double a);};
12475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12476 int argc;
12477 char **argv;
12478 int
12479 main ()
12480 {
12481 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 # Don't try gcc -ansi; that turns off useful extensions and
12487 # breaks some systems' header files.
12488 # AIX                   -qlanglvl=ansi
12489 # Ultrix and OSF/1      -std1
12490 # HP-UX 10.20 and later -Ae
12491 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12492 # SVR4                  -Xc -D__EXTENSIONS__
12493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12494 do
12495   CC="$ac_save_CC $ac_arg"
12496   rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498   (eval $ac_compile) 2>conftest.er1
12499   ac_status=$?
12500   grep -v '^ *+' conftest.er1 >conftest.err
12501   rm -f conftest.er1
12502   cat conftest.err >&5
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); } &&
12505          { ac_try='test -z "$ac_c_werror_flag"
12506                          || test ! -s conftest.err'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_cv_prog_cc_stdc=$ac_arg
12519 break
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 fi
12525 rm -f conftest.err conftest.$ac_objext
12526 done
12527 rm -f conftest.$ac_ext conftest.$ac_objext
12528 CC=$ac_save_CC
12529
12530 fi
12531
12532 case "x$ac_cv_prog_cc_stdc" in
12533   x|xno)
12534     echo "$as_me:$LINENO: result: none needed" >&5
12535 echo "${ECHO_T}none needed" >&6 ;;
12536   *)
12537     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12538 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12539     CC="$CC $ac_cv_prog_cc_stdc" ;;
12540 esac
12541
12542 # Some people use a C++ compiler to compile C.  Since we use `exit',
12543 # in C++ we need to declare it.  In case someone uses the same compiler
12544 # for both compiling C and C++ we need to have the C++ compiler decide
12545 # the declaration of exit, since it's the most demanding environment.
12546 cat >conftest.$ac_ext <<_ACEOF
12547 #ifndef __cplusplus
12548   choke me
12549 #endif
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest.$ac_objext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   for ac_declaration in \
12574    '' \
12575    'extern "C" void std::exit (int) throw (); using std::exit;' \
12576    'extern "C" void std::exit (int); using std::exit;' \
12577    'extern "C" void exit (int) throw ();' \
12578    'extern "C" void exit (int);' \
12579    'void exit (int);'
12580 do
12581   cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587 $ac_declaration
12588 #include <stdlib.h>
12589 int
12590 main ()
12591 {
12592 exit (42);
12593   ;
12594   return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599   (eval $ac_compile) 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } &&
12606          { ac_try='test -z "$ac_c_werror_flag"
12607                          || test ! -s conftest.err'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; } &&
12613          { ac_try='test -s conftest.$ac_objext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   :
12620 else
12621   echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 continue
12625 fi
12626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627   cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 $ac_declaration
12634 int
12635 main ()
12636 {
12637 exit (42);
12638   ;
12639   return 0;
12640 }
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12644   (eval $ac_compile) 2>conftest.er1
12645   ac_status=$?
12646   grep -v '^ *+' conftest.er1 >conftest.err
12647   rm -f conftest.er1
12648   cat conftest.err >&5
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); } &&
12651          { ac_try='test -z "$ac_c_werror_flag"
12652                          || test ! -s conftest.err'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; } &&
12658          { ac_try='test -s conftest.$ac_objext'
12659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660   (eval $ac_try) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   break
12665 else
12666   echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669 fi
12670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671 done
12672 rm -f conftest*
12673 if test -n "$ac_declaration"; then
12674   echo '#ifdef __cplusplus' >>confdefs.h
12675   echo $ac_declaration      >>confdefs.h
12676   echo '#endif'             >>confdefs.h
12677 fi
12678
12679 else
12680   echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12682
12683 fi
12684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12685 ac_ext=c
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12690
12691 depcc="$CC"   am_compiler_list=
12692
12693 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12694 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12696   echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12699   # We make a subdir and do the tests there.  Otherwise we can end up
12700   # making bogus files that we don't know about and never remove.  For
12701   # instance it was reported that on HP-UX the gcc test will end up
12702   # making a dummy file named `D' -- because `-MD' means `put the output
12703   # in D'.
12704   mkdir conftest.dir
12705   # Copy depcomp to subdir because otherwise we won't find it if we're
12706   # using a relative directory.
12707   cp "$am_depcomp" conftest.dir
12708   cd conftest.dir
12709   # We will build objects and dependencies in a subdirectory because
12710   # it helps to detect inapplicable dependency modes.  For instance
12711   # both Tru64's cc and ICC support -MD to output dependencies as a
12712   # side effect of compilation, but ICC will put the dependencies in
12713   # the current directory while Tru64 will put them in the object
12714   # directory.
12715   mkdir sub
12716
12717   am_cv_CC_dependencies_compiler_type=none
12718   if test "$am_compiler_list" = ""; then
12719      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12720   fi
12721   for depmode in $am_compiler_list; do
12722     # Setup a source with many dependencies, because some compilers
12723     # like to wrap large dependency lists on column 80 (with \), and
12724     # we should not choose a depcomp mode which is confused by this.
12725     #
12726     # We need to recreate these files for each test, as the compiler may
12727     # overwrite some of them when testing with obscure command lines.
12728     # This happens at least with the AIX C compiler.
12729     : > sub/conftest.c
12730     for i in 1 2 3 4 5 6; do
12731       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12732       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12733       # Solaris 8's {/usr,}/bin/sh.
12734       touch sub/conftst$i.h
12735     done
12736     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12737
12738     case $depmode in
12739     nosideeffect)
12740       # after this tag, mechanisms are not by side-effect, so they'll
12741       # only be used when explicitly requested
12742       if test "x$enable_dependency_tracking" = xyes; then
12743         continue
12744       else
12745         break
12746       fi
12747       ;;
12748     none) break ;;
12749     esac
12750     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12751     # mode.  It turns out that the SunPro C++ compiler does not properly
12752     # handle `-M -o', and we need to detect this.
12753     if depmode=$depmode \
12754        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12755        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12756        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12757          >/dev/null 2>conftest.err &&
12758        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12759        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12760        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12761       # icc doesn't choke on unknown options, it will just issue warnings
12762       # or remarks (even with -Werror).  So we grep stderr for any message
12763       # that says an option was ignored or not supported.
12764       # When given -MP, icc 7.0 and 7.1 complain thusly:
12765       #   icc: Command line warning: ignoring option '-M'; no argument required
12766       # The diagnosis changed in icc 8.0:
12767       #   icc: Command line remark: option '-MP' not supported
12768       if (grep 'ignoring option' conftest.err ||
12769           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12770         am_cv_CC_dependencies_compiler_type=$depmode
12771         break
12772       fi
12773     fi
12774   done
12775
12776   cd ..
12777   rm -rf conftest.dir
12778 else
12779   am_cv_CC_dependencies_compiler_type=none
12780 fi
12781
12782 fi
12783 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12784 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12785 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12786
12787
12788
12789 if
12790   test "x$enable_dependency_tracking" != xno \
12791   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12792   am__fastdepCC_TRUE=
12793   am__fastdepCC_FALSE='#'
12794 else
12795   am__fastdepCC_TRUE='#'
12796   am__fastdepCC_FALSE=
12797 fi
12798
12799
12800 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12801         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12802 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12803    { (exit 1); exit 1; }; }
12804 fi
12805
12806 # test for make depend flag
12807 OL_MKDEP=
12808 OL_MKDEP_FLAGS=
12809 if test -z "${MKDEP}"; then
12810         OL_MKDEP="${CC-cc}"
12811         if test -z "${MKDEP_FLAGS}"; then
12812                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12813 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12814 if test "${ol_cv_mkdep+set}" = set; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817
12818                         ol_cv_mkdep=no
12819                         for flag in "-M" "-xM"; do
12820                                 cat > conftest.c <<EOF
12821  noCode;
12822 EOF
12823                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825   (eval $ac_try) 2>&5
12826   ac_status=$?
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); }; } \
12829                                         | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12830                                 then
12831                                         if test ! -f conftest."${ac_object}" ; then
12832                                                 ol_cv_mkdep=$flag
12833                                                 OL_MKDEP_FLAGS="$flag"
12834                                                 break
12835                                         fi
12836                                 fi
12837                         done
12838                         rm -f conftest*
12839
12840 fi
12841 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12842 echo "${ECHO_T}$ol_cv_mkdep" >&6
12843         else
12844                 cc_cv_mkdep=yes
12845                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12846         fi
12847 else
12848         cc_cv_mkdep=yes
12849         OL_MKDEP="${MKDEP}"
12850         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12851 fi
12852
12853
12854
12855 if test "${ol_cv_mkdep}" = no ; then
12856         # this will soon become an error
12857         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12858 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12859 fi
12860
12861 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12862 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12863 if test "${ac_cv_lib_s_afopen+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   ac_check_lib_save_LIBS=$LIBS
12867 LIBS="-ls  $LIBS"
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874
12875 /* Override any gcc2 internal prototype to avoid an error.  */
12876 #ifdef __cplusplus
12877 extern "C"
12878 #endif
12879 /* We use char because int might match the return type of a gcc2
12880    builtin and then its argument prototype would still apply.  */
12881 char afopen ();
12882 int
12883 main ()
12884 {
12885 afopen ();
12886   ;
12887   return 0;
12888 }
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12892   (eval $ac_link) 2>conftest.er1
12893   ac_status=$?
12894   grep -v '^ *+' conftest.er1 >conftest.err
12895   rm -f conftest.er1
12896   cat conftest.err >&5
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } &&
12899          { ac_try='test -z "$ac_c_werror_flag"
12900                          || test ! -s conftest.err'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; } &&
12906          { ac_try='test -s conftest$ac_exeext'
12907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908   (eval $ac_try) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; }; then
12912   ac_cv_lib_s_afopen=yes
12913 else
12914   echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12916
12917 ac_cv_lib_s_afopen=no
12918 fi
12919 rm -f conftest.err conftest.$ac_objext \
12920       conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12922 fi
12923 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12924 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12925 if test $ac_cv_lib_s_afopen = yes; then
12926
12927         AUTH_LIBS=-ls
12928
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_AIX_SECURITY 1
12931 _ACEOF
12932
12933
12934 fi
12935
12936
12937 case "$target" in
12938 *-ibm-openedition)
12939         ac_cv_func_getopt=no
12940
12941 cat >>confdefs.h <<\_ACEOF
12942 #define BOTH_STRINGS_H 1
12943 _ACEOF
12944
12945         ;;
12946 esac
12947
12948 ol_link_modules=no
12949 WITH_MODULES_ENABLED=no
12950 if test $ol_enable_modules != no ; then
12951
12952 for ac_header in ltdl.h
12953 do
12954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12956   echo "$as_me:$LINENO: checking for $ac_header" >&5
12957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 fi
12961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12963 else
12964   # Is the header compilable?
12965 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h.  */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h.  */
12973 $ac_includes_default
12974 #include <$ac_header>
12975 _ACEOF
12976 rm -f conftest.$ac_objext
12977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12978   (eval $ac_compile) 2>conftest.er1
12979   ac_status=$?
12980   grep -v '^ *+' conftest.er1 >conftest.err
12981   rm -f conftest.er1
12982   cat conftest.err >&5
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); } &&
12985          { ac_try='test -z "$ac_c_werror_flag"
12986                          || test ! -s conftest.err'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; } &&
12992          { ac_try='test -s conftest.$ac_objext'
12993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994   (eval $ac_try) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); }; }; then
12998   ac_header_compiler=yes
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003 ac_header_compiler=no
13004 fi
13005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13007 echo "${ECHO_T}$ac_header_compiler" >&6
13008
13009 # Is the header present?
13010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 #include <$ac_header>
13019 _ACEOF
13020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13021   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13022   ac_status=$?
13023   grep -v '^ *+' conftest.er1 >conftest.err
13024   rm -f conftest.er1
13025   cat conftest.err >&5
13026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027   (exit $ac_status); } >/dev/null; then
13028   if test -s conftest.err; then
13029     ac_cpp_err=$ac_c_preproc_warn_flag
13030     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13031   else
13032     ac_cpp_err=
13033   fi
13034 else
13035   ac_cpp_err=yes
13036 fi
13037 if test -z "$ac_cpp_err"; then
13038   ac_header_preproc=yes
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043   ac_header_preproc=no
13044 fi
13045 rm -f conftest.err conftest.$ac_ext
13046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13047 echo "${ECHO_T}$ac_header_preproc" >&6
13048
13049 # So?  What about this header?
13050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13051   yes:no: )
13052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13056     ac_header_preproc=yes
13057     ;;
13058   no:yes:* )
13059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13071     (
13072       cat <<\_ASBOX
13073 ## ------------------------------------------ ##
13074 ## Report this to the AC_PACKAGE_NAME lists.  ##
13075 ## ------------------------------------------ ##
13076 _ASBOX
13077     ) |
13078       sed "s/^/$as_me: WARNING:     /" >&2
13079     ;;
13080 esac
13081 echo "$as_me:$LINENO: checking for $ac_header" >&5
13082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13084   echo $ECHO_N "(cached) $ECHO_C" >&6
13085 else
13086   eval "$as_ac_Header=\$ac_header_preproc"
13087 fi
13088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13090
13091 fi
13092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13093   cat >>confdefs.h <<_ACEOF
13094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13095 _ACEOF
13096
13097 fi
13098
13099 done
13100
13101
13102         if test $ac_cv_header_ltdl_h = no ; then
13103                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13104 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13105    { (exit 1); exit 1; }; }
13106         fi
13107
13108         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13109 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13110 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-lltdl  $LIBS"
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121
13122 /* Override any gcc2 internal prototype to avoid an error.  */
13123 #ifdef __cplusplus
13124 extern "C"
13125 #endif
13126 /* We use char because int might match the return type of a gcc2
13127    builtin and then its argument prototype would still apply.  */
13128 char lt_dlinit ();
13129 int
13130 main ()
13131 {
13132 lt_dlinit ();
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13139   (eval $ac_link) 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } &&
13146          { ac_try='test -z "$ac_c_werror_flag"
13147                          || test ! -s conftest.err'
13148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13149   (eval $ac_try) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); }; } &&
13153          { ac_try='test -s conftest$ac_exeext'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_cv_lib_ltdl_lt_dlinit=yes
13160 else
13161   echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164 ac_cv_lib_ltdl_lt_dlinit=no
13165 fi
13166 rm -f conftest.err conftest.$ac_objext \
13167       conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13171 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13172 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13173
13174                 MODULES_LIBS=-lltdl
13175
13176 cat >>confdefs.h <<\_ACEOF
13177 #define HAVE_LIBLTDL 1
13178 _ACEOF
13179
13180
13181 fi
13182
13183
13184         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13185                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13186 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13187    { (exit 1); exit 1; }; }
13188         fi
13189         ol_link_modules=yes
13190         WITH_MODULES_ENABLED=yes
13191
13192 else
13193         for i in $Backends; do
13194                 eval "ol_tmp=\$ol_enable_$i"
13195                 if test $ol_tmp = mod ; then
13196                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13197 echo "$as_me: WARNING: building static $i backend" >&2;}
13198                         eval "ol_enable_$i=yes"
13199                 fi
13200         done
13201         for i in $Overlays; do
13202                 eval "ol_tmp=\$ol_enable_$i"
13203                 if test $ol_tmp = mod ; then
13204                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13205 echo "$as_me: WARNING: building static $i overlay" >&2;}
13206                         eval "ol_enable_$i=yes"
13207                 fi
13208         done
13209 fi
13210
13211 # test for EBCDIC
13212 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13213 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13214 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217
13218         cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224
13225 #if !('M' == 0xd4)
13226 #include <__ASCII__/generate_error.h>
13227 #endif
13228
13229 _ACEOF
13230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } >/dev/null; then
13238   if test -s conftest.err; then
13239     ac_cpp_err=$ac_c_preproc_warn_flag
13240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13241   else
13242     ac_cpp_err=
13243   fi
13244 else
13245   ac_cpp_err=yes
13246 fi
13247 if test -z "$ac_cpp_err"; then
13248   ol_cv_cpp_ebcdic=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253   ol_cv_cpp_ebcdic=no
13254 fi
13255 rm -f conftest.err conftest.$ac_ext
13256 fi
13257 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13258 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13259 if test $ol_cv_cpp_ebcdic = yes ; then
13260
13261 cat >>confdefs.h <<\_ACEOF
13262 #define HAVE_EBCDIC 1
13263 _ACEOF
13264
13265 fi
13266
13267 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13268 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13269 if test "${ol_cv_header_stdc+set}" = set; then
13270   echo $ECHO_N "(cached) $ECHO_C" >&6
13271 else
13272   cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 #include <stdlib.h>
13279 #include <stdarg.h>
13280 #include <string.h>
13281 #include <float.h>
13282 _ACEOF
13283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13284   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13285   ac_status=$?
13286   grep -v '^ *+' conftest.er1 >conftest.err
13287   rm -f conftest.er1
13288   cat conftest.err >&5
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); } >/dev/null; then
13291   if test -s conftest.err; then
13292     ac_cpp_err=$ac_c_preproc_warn_flag
13293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13294   else
13295     ac_cpp_err=
13296   fi
13297 else
13298   ac_cpp_err=yes
13299 fi
13300 if test -z "$ac_cpp_err"; then
13301   ol_cv_header_stdc=yes
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306   ol_cv_header_stdc=no
13307 fi
13308 rm -f conftest.err conftest.$ac_ext
13309
13310 if test $ol_cv_header_stdc = yes; then
13311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13312 cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 #include <string.h>
13319
13320 _ACEOF
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322   $EGREP "memchr" >/dev/null 2>&1; then
13323   :
13324 else
13325   ol_cv_header_stdc=no
13326 fi
13327 rm -f conftest*
13328
13329 fi
13330
13331 if test $ol_cv_header_stdc = yes; then
13332   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13333 cat >conftest.$ac_ext <<_ACEOF
13334 /* confdefs.h.  */
13335 _ACEOF
13336 cat confdefs.h >>conftest.$ac_ext
13337 cat >>conftest.$ac_ext <<_ACEOF
13338 /* end confdefs.h.  */
13339 #include <stdlib.h>
13340
13341 _ACEOF
13342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13343   $EGREP "free" >/dev/null 2>&1; then
13344   :
13345 else
13346   ol_cv_header_stdc=no
13347 fi
13348 rm -f conftest*
13349
13350 fi
13351
13352 if test $ol_cv_header_stdc = yes; then
13353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13354 if test "$cross_compiling" = yes; then
13355   :
13356 else
13357   cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363 #include <ctype.h>
13364 #ifndef HAVE_EBCDIC
13365 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13366 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13367 #else
13368 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13369                 || ('j' <= (c) && (c) <= 'r') \
13370                 || ('s' <= (c) && (c) <= 'z'))
13371 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13372 #endif
13373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13374 int main () { int i; for (i = 0; i < 256; i++)
13375 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13376 exit (0); }
13377
13378 _ACEOF
13379 rm -f conftest$ac_exeext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381   (eval $ac_link) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386   (eval $ac_try) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   :
13391 else
13392   echo "$as_me: program exited with status $ac_status" >&5
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ( exit $ac_status )
13397 ol_cv_header_stdc=no
13398 fi
13399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 fi
13402 fi
13403 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13404 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13405 if test $ol_cv_header_stdc = yes; then
13406   cat >>confdefs.h <<\_ACEOF
13407 #define STDC_HEADERS 1
13408 _ACEOF
13409
13410 fi
13411 ac_cv_header_stdc=disable
13412
13413
13414 if test $ol_cv_header_stdc != yes; then
13415         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13416 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13417 fi
13418
13419
13420
13421
13422
13423
13424 ac_header_dirent=no
13425 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13426   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13427 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13428 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   cat >conftest.$ac_ext <<_ACEOF
13433 /* confdefs.h.  */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h.  */
13438 #include <sys/types.h>
13439 #include <$ac_hdr>
13440
13441 int
13442 main ()
13443 {
13444 if ((DIR *) 0)
13445 return 0;
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452   (eval $ac_compile) 2>conftest.er1
13453   ac_status=$?
13454   grep -v '^ *+' conftest.er1 >conftest.err
13455   rm -f conftest.er1
13456   cat conftest.err >&5
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); } &&
13459          { ac_try='test -z "$ac_c_werror_flag"
13460                          || test ! -s conftest.err'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; } &&
13466          { ac_try='test -s conftest.$ac_objext'
13467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13468   (eval $ac_try) 2>&5
13469   ac_status=$?
13470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471   (exit $ac_status); }; }; then
13472   eval "$as_ac_Header=yes"
13473 else
13474   echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 eval "$as_ac_Header=no"
13478 fi
13479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480 fi
13481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13484   cat >>confdefs.h <<_ACEOF
13485 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13486 _ACEOF
13487
13488 ac_header_dirent=$ac_hdr; break
13489 fi
13490
13491 done
13492 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13493 if test $ac_header_dirent = dirent.h; then
13494   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13495 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13496 if test "${ac_cv_search_opendir+set}" = set; then
13497   echo $ECHO_N "(cached) $ECHO_C" >&6
13498 else
13499   ac_func_search_save_LIBS=$LIBS
13500 ac_cv_search_opendir=no
13501 cat >conftest.$ac_ext <<_ACEOF
13502 /* confdefs.h.  */
13503 _ACEOF
13504 cat confdefs.h >>conftest.$ac_ext
13505 cat >>conftest.$ac_ext <<_ACEOF
13506 /* end confdefs.h.  */
13507
13508 /* Override any gcc2 internal prototype to avoid an error.  */
13509 #ifdef __cplusplus
13510 extern "C"
13511 #endif
13512 /* We use char because int might match the return type of a gcc2
13513    builtin and then its argument prototype would still apply.  */
13514 char opendir ();
13515 int
13516 main ()
13517 {
13518 opendir ();
13519   ;
13520   return 0;
13521 }
13522 _ACEOF
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525   (eval $ac_link) 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } &&
13532          { ac_try='test -z "$ac_c_werror_flag"
13533                          || test ! -s conftest.err'
13534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535   (eval $ac_try) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest$ac_exeext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   ac_cv_search_opendir="none required"
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 fi
13551 rm -f conftest.err conftest.$ac_objext \
13552       conftest$ac_exeext conftest.$ac_ext
13553 if test "$ac_cv_search_opendir" = no; then
13554   for ac_lib in dir; do
13555     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13556     cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562
13563 /* Override any gcc2 internal prototype to avoid an error.  */
13564 #ifdef __cplusplus
13565 extern "C"
13566 #endif
13567 /* We use char because int might match the return type of a gcc2
13568    builtin and then its argument prototype would still apply.  */
13569 char opendir ();
13570 int
13571 main ()
13572 {
13573 opendir ();
13574   ;
13575   return 0;
13576 }
13577 _ACEOF
13578 rm -f conftest.$ac_objext conftest$ac_exeext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13580   (eval $ac_link) 2>conftest.er1
13581   ac_status=$?
13582   grep -v '^ *+' conftest.er1 >conftest.err
13583   rm -f conftest.er1
13584   cat conftest.err >&5
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); } &&
13587          { ac_try='test -z "$ac_c_werror_flag"
13588                          || test ! -s conftest.err'
13589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590   (eval $ac_try) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; } &&
13594          { ac_try='test -s conftest$ac_exeext'
13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596   (eval $ac_try) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600   ac_cv_search_opendir="-l$ac_lib"
13601 break
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 fi
13607 rm -f conftest.err conftest.$ac_objext \
13608       conftest$ac_exeext conftest.$ac_ext
13609   done
13610 fi
13611 LIBS=$ac_func_search_save_LIBS
13612 fi
13613 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13614 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13615 if test "$ac_cv_search_opendir" != no; then
13616   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13617
13618 fi
13619
13620 else
13621   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13622 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13623 if test "${ac_cv_search_opendir+set}" = set; then
13624   echo $ECHO_N "(cached) $ECHO_C" >&6
13625 else
13626   ac_func_search_save_LIBS=$LIBS
13627 ac_cv_search_opendir=no
13628 cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634
13635 /* Override any gcc2 internal prototype to avoid an error.  */
13636 #ifdef __cplusplus
13637 extern "C"
13638 #endif
13639 /* We use char because int might match the return type of a gcc2
13640    builtin and then its argument prototype would still apply.  */
13641 char opendir ();
13642 int
13643 main ()
13644 {
13645 opendir ();
13646   ;
13647   return 0;
13648 }
13649 _ACEOF
13650 rm -f conftest.$ac_objext conftest$ac_exeext
13651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13652   (eval $ac_link) 2>conftest.er1
13653   ac_status=$?
13654   grep -v '^ *+' conftest.er1 >conftest.err
13655   rm -f conftest.er1
13656   cat conftest.err >&5
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); } &&
13659          { ac_try='test -z "$ac_c_werror_flag"
13660                          || test ! -s conftest.err'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; } &&
13666          { ac_try='test -s conftest$ac_exeext'
13667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668   (eval $ac_try) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); }; }; then
13672   ac_cv_search_opendir="none required"
13673 else
13674   echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 fi
13678 rm -f conftest.err conftest.$ac_objext \
13679       conftest$ac_exeext conftest.$ac_ext
13680 if test "$ac_cv_search_opendir" = no; then
13681   for ac_lib in x; do
13682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13683     cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689
13690 /* Override any gcc2 internal prototype to avoid an error.  */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 /* We use char because int might match the return type of a gcc2
13695    builtin and then its argument prototype would still apply.  */
13696 char opendir ();
13697 int
13698 main ()
13699 {
13700 opendir ();
13701   ;
13702   return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707   (eval $ac_link) 2>conftest.er1
13708   ac_status=$?
13709   grep -v '^ *+' conftest.er1 >conftest.err
13710   rm -f conftest.er1
13711   cat conftest.err >&5
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); } &&
13714          { ac_try='test -z "$ac_c_werror_flag"
13715                          || test ! -s conftest.err'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; } &&
13721          { ac_try='test -s conftest$ac_exeext'
13722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723   (eval $ac_try) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); }; }; then
13727   ac_cv_search_opendir="-l$ac_lib"
13728 break
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733 fi
13734 rm -f conftest.err conftest.$ac_objext \
13735       conftest$ac_exeext conftest.$ac_ext
13736   done
13737 fi
13738 LIBS=$ac_func_search_save_LIBS
13739 fi
13740 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13741 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13742 if test "$ac_cv_search_opendir" != no; then
13743   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13744
13745 fi
13746
13747 fi
13748
13749 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13750 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13751 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13752   echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754   cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h.  */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h.  */
13760 #include <sys/types.h>
13761 #include <sys/wait.h>
13762 #ifndef WEXITSTATUS
13763 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13764 #endif
13765 #ifndef WIFEXITED
13766 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13767 #endif
13768
13769 int
13770 main ()
13771 {
13772   int s;
13773   wait (&s);
13774   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext
13780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13781   (eval $ac_compile) 2>conftest.er1
13782   ac_status=$?
13783   grep -v '^ *+' conftest.er1 >conftest.err
13784   rm -f conftest.er1
13785   cat conftest.err >&5
13786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787   (exit $ac_status); } &&
13788          { ac_try='test -z "$ac_c_werror_flag"
13789                          || test ! -s conftest.err'
13790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791   (eval $ac_try) 2>&5
13792   ac_status=$?
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); }; } &&
13795          { ac_try='test -s conftest.$ac_objext'
13796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797   (eval $ac_try) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); }; }; then
13801   ac_cv_header_sys_wait_h=yes
13802 else
13803   echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_cv_header_sys_wait_h=no
13807 fi
13808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13809 fi
13810 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13811 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13812 if test $ac_cv_header_sys_wait_h = yes; then
13813
13814 cat >>confdefs.h <<\_ACEOF
13815 #define HAVE_SYS_WAIT_H 1
13816 _ACEOF
13817
13818 fi
13819
13820 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13821 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13822 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13823   echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825   cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831 #include <sys/types.h>
13832 #include <termios.h>
13833 #ifdef TIOCGWINSZ
13834   yes
13835 #endif
13836
13837 _ACEOF
13838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13839   $EGREP "yes" >/dev/null 2>&1; then
13840   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13841 else
13842   ac_cv_sys_tiocgwinsz_in_termios_h=no
13843 fi
13844 rm -f conftest*
13845
13846 fi
13847 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13848 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13849
13850 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13851   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13852 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13853 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13854   echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856   cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13862 #include <sys/types.h>
13863 #include <sys/ioctl.h>
13864 #ifdef TIOCGWINSZ
13865   yes
13866 #endif
13867
13868 _ACEOF
13869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13870   $EGREP "yes" >/dev/null 2>&1; then
13871   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13872 else
13873   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13874 fi
13875 rm -f conftest*
13876
13877 fi
13878 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13879 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13880
13881   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13882
13883 cat >>confdefs.h <<\_ACEOF
13884 #define GWINSZ_IN_SYS_IOCTL 1
13885 _ACEOF
13886
13887   fi
13888 fi
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
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938 for ac_header in \
13939         arpa/inet.h             \
13940         arpa/nameser.h          \
13941         assert.h                \
13942         bits/types.h            \
13943         conio.h                 \
13944         crypt.h                 \
13945         direct.h                \
13946         errno.h                 \
13947         fcntl.h                 \
13948         filio.h                 \
13949         getopt.h                \
13950         grp.h                   \
13951         io.h                    \
13952         libutil.h               \
13953         limits.h                \
13954         locale.h                \
13955         netinet/tcp.h           \
13956         malloc.h                \
13957         memory.h                \
13958         psap.h                  \
13959         pwd.h                   \
13960         process.h               \
13961         sgtty.h                 \
13962         shadow.h                \
13963         stddef.h                \
13964         string.h                \
13965         strings.h               \
13966         sysexits.h              \
13967         sys/file.h              \
13968         sys/filio.h             \
13969         sys/errno.h             \
13970         sys/ioctl.h             \
13971         sys/param.h             \
13972         sys/resource.h          \
13973         sys/select.h            \
13974         sys/socket.h            \
13975         sys/stat.h              \
13976         sys/syslog.h            \
13977         sys/time.h              \
13978         sys/types.h             \
13979         sys/uio.h               \
13980         syslog.h                \
13981         termios.h               \
13982         unistd.h                \
13983         utime.h                 \
13984         winsock.h               \
13985         winsock2.h              \
13986
13987 do
13988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13990   echo "$as_me:$LINENO: checking for $ac_header" >&5
13991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 fi
13995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13997 else
13998   # Is the header compilable?
13999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h.  */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h.  */
14007 $ac_includes_default
14008 #include <$ac_header>
14009 _ACEOF
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012   (eval $ac_compile) 2>conftest.er1
14013   ac_status=$?
14014   grep -v '^ *+' conftest.er1 >conftest.err
14015   rm -f conftest.er1
14016   cat conftest.err >&5
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); } &&
14019          { ac_try='test -z "$ac_c_werror_flag"
14020                          || test ! -s conftest.err'
14021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14022   (eval $ac_try) 2>&5
14023   ac_status=$?
14024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025   (exit $ac_status); }; } &&
14026          { ac_try='test -s conftest.$ac_objext'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; }; then
14032   ac_header_compiler=yes
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037 ac_header_compiler=no
14038 fi
14039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6
14042
14043 # Is the header present?
14044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 #include <$ac_header>
14053 _ACEOF
14054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14056   ac_status=$?
14057   grep -v '^ *+' conftest.er1 >conftest.err
14058   rm -f conftest.er1
14059   cat conftest.err >&5
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } >/dev/null; then
14062   if test -s conftest.err; then
14063     ac_cpp_err=$ac_c_preproc_warn_flag
14064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14065   else
14066     ac_cpp_err=
14067   fi
14068 else
14069   ac_cpp_err=yes
14070 fi
14071 if test -z "$ac_cpp_err"; then
14072   ac_header_preproc=yes
14073 else
14074   echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077   ac_header_preproc=no
14078 fi
14079 rm -f conftest.err conftest.$ac_ext
14080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 echo "${ECHO_T}$ac_header_preproc" >&6
14082
14083 # So?  What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085   yes:no: )
14086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14090     ac_header_preproc=yes
14091     ;;
14092   no:yes:* )
14093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14105     (
14106       cat <<\_ASBOX
14107 ## ------------------------------------------ ##
14108 ## Report this to the AC_PACKAGE_NAME lists.  ##
14109 ## ------------------------------------------ ##
14110 _ASBOX
14111     ) |
14112       sed "s/^/$as_me: WARNING:     /" >&2
14113     ;;
14114 esac
14115 echo "$as_me:$LINENO: checking for $ac_header" >&5
14116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14118   echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120   eval "$as_ac_Header=\$ac_header_preproc"
14121 fi
14122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124
14125 fi
14126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14127   cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14129 _ACEOF
14130
14131 fi
14132
14133 done
14134
14135
14136
14137 for ac_header in resolv.h
14138 do
14139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14140 echo "$as_me:$LINENO: checking for $ac_header" >&5
14141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   cat >conftest.$ac_ext <<_ACEOF
14146 /* confdefs.h.  */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h.  */
14151 $ac_includes_default
14152 #include <netinet/in.h>
14153
14154
14155 #include <$ac_header>
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159   (eval $ac_compile) 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -z "$ac_c_werror_flag"
14167                          || test ! -s conftest.err'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; } &&
14173          { ac_try='test -s conftest.$ac_objext'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   eval "$as_ac_Header=yes"
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 eval "$as_ac_Header=no"
14185 fi
14186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187 fi
14188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14191   cat >>confdefs.h <<_ACEOF
14192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14193 _ACEOF
14194
14195 fi
14196
14197 done
14198
14199
14200
14201 for ac_header in sys/ucred.h
14202 do
14203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14204 echo "$as_me:$LINENO: checking for $ac_header" >&5
14205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14207   echo $ECHO_N "(cached) $ECHO_C" >&6
14208 else
14209   cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215 $ac_includes_default
14216 #ifdef HAVE_SYS_PARAM_H
14217 #include <sys/param.h>
14218 #endif
14219
14220
14221 #include <$ac_header>
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225   (eval $ac_compile) 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } &&
14232          { ac_try='test -z "$ac_c_werror_flag"
14233                          || test ! -s conftest.err'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; } &&
14239          { ac_try='test -s conftest.$ac_objext'
14240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241   (eval $ac_try) 2>&5
14242   ac_status=$?
14243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244   (exit $ac_status); }; }; then
14245   eval "$as_ac_Header=yes"
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 eval "$as_ac_Header=no"
14251 fi
14252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14253 fi
14254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257   cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14259 _ACEOF
14260
14261 fi
14262
14263 done
14264
14265
14266
14267
14268
14269 for ac_func in sigaction sigset
14270 do
14271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14272 echo "$as_me:$LINENO: checking for $ac_func" >&5
14273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14274 if eval "test \"\${$as_ac_var+set}\" = set"; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14285 #define $ac_func innocuous_$ac_func
14286
14287 /* System header to define __stub macros and hopefully few prototypes,
14288     which can conflict with char $ac_func (); below.
14289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14290     <limits.h> exists even on freestanding compilers.  */
14291
14292 #ifdef __STDC__
14293 # include <limits.h>
14294 #else
14295 # include <assert.h>
14296 #endif
14297
14298 #undef $ac_func
14299
14300 /* Override any gcc2 internal prototype to avoid an error.  */
14301 #ifdef __cplusplus
14302 extern "C"
14303 {
14304 #endif
14305 /* We use char because int might match the return type of a gcc2
14306    builtin and then its argument prototype would still apply.  */
14307 char $ac_func ();
14308 /* The GNU C library defines this for functions which it implements
14309     to always fail with ENOSYS.  Some functions are actually named
14310     something starting with __ and the normal name is an alias.  */
14311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14312 choke me
14313 #else
14314 char (*f) () = $ac_func;
14315 #endif
14316 #ifdef __cplusplus
14317 }
14318 #endif
14319
14320 int
14321 main ()
14322 {
14323 return f != $ac_func;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330   (eval $ac_link) 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag"
14338                          || test ! -s conftest.err'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest$ac_exeext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   eval "$as_ac_var=yes"
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 eval "$as_ac_var=no"
14356 fi
14357 rm -f conftest.err conftest.$ac_objext \
14358       conftest$ac_exeext conftest.$ac_ext
14359 fi
14360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14362 if test `eval echo '${'$as_ac_var'}'` = yes; then
14363   cat >>confdefs.h <<_ACEOF
14364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14365 _ACEOF
14366
14367 fi
14368 done
14369
14370
14371 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14372
14373 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14374 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14375 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   ac_check_lib_save_LIBS=$LIBS
14379 LIBS="-lV3  $LIBS"
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386
14387 /* Override any gcc2 internal prototype to avoid an error.  */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 /* We use char because int might match the return type of a gcc2
14392    builtin and then its argument prototype would still apply.  */
14393 char sigset ();
14394 int
14395 main ()
14396 {
14397 sigset ();
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404   (eval $ac_link) 2>conftest.er1
14405   ac_status=$?
14406   grep -v '^ *+' conftest.er1 >conftest.err
14407   rm -f conftest.er1
14408   cat conftest.err >&5
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -z "$ac_c_werror_flag"
14412                          || test ! -s conftest.err'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; } &&
14418          { ac_try='test -s conftest$ac_exeext'
14419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420   (eval $ac_try) 2>&5
14421   ac_status=$?
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); }; }; then
14424   ac_cv_lib_V3_sigset=yes
14425 else
14426   echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14428
14429 ac_cv_lib_V3_sigset=no
14430 fi
14431 rm -f conftest.err conftest.$ac_objext \
14432       conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14434 fi
14435 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14436 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14437 if test $ac_cv_lib_V3_sigset = yes; then
14438   cat >>confdefs.h <<_ACEOF
14439 #define HAVE_LIBV3 1
14440 _ACEOF
14441
14442   LIBS="-lV3 $LIBS"
14443
14444 fi
14445
14446 fi
14447
14448 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14449 echo "$as_me:$LINENO: checking for winsock" >&5
14450 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14451 if test "${ol_cv_winsock+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   save_LIBS="$LIBS"
14455 for curlib in ws2_32 wsock32; do
14456         LIBS="$LIBS -l$curlib"
14457         cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <winsock.h>
14464
14465 int
14466 main ()
14467 {
14468
14469                         socket(0,0,0);
14470                         select(0,NULL,NULL,NULL,NULL);
14471                         closesocket(0);
14472                         gethostname(NULL,0);
14473
14474   ;
14475   return 0;
14476 }
14477 _ACEOF
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480   (eval $ac_link) 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag"
14488                          || test ! -s conftest.err'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; } &&
14494          { ac_try='test -s conftest$ac_exeext'
14495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496   (eval $ac_try) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); }; }; then
14500   ol_cv_winsock=yes
14501 else
14502   echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 ol_cv_winsock=no
14506 fi
14507 rm -f conftest.err conftest.$ac_objext \
14508       conftest$ac_exeext conftest.$ac_ext
14509
14510         if test $ol_cv_winsock = yes; then
14511
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_WINSOCK 1
14514 _ACEOF
14515
14516                 ac_cv_func_socket=yes
14517                 ac_cv_func_select=yes
14518                 ac_cv_func_closesocket=yes
14519                 ac_cv_func_gethostname=yes
14520                 if test $curlib = ws2_32; then
14521                         ol_cv_winsock=winsock2
14522
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_WINSOCK2 1
14525 _ACEOF
14526
14527                 fi
14528                 break
14529         fi
14530         LIBS="$save_LIBS"
14531 done
14532 fi
14533 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14534 echo "${ECHO_T}$ol_cv_winsock" >&6
14535 fi
14536
14537
14538 echo "$as_me:$LINENO: checking for socket" >&5
14539 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14540 if test "${ac_cv_func_socket+set}" = set; then
14541   echo $ECHO_N "(cached) $ECHO_C" >&6
14542 else
14543   cat >conftest.$ac_ext <<_ACEOF
14544 /* confdefs.h.  */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h.  */
14549 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14551 #define socket innocuous_socket
14552
14553 /* System header to define __stub macros and hopefully few prototypes,
14554     which can conflict with char socket (); below.
14555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14556     <limits.h> exists even on freestanding compilers.  */
14557
14558 #ifdef __STDC__
14559 # include <limits.h>
14560 #else
14561 # include <assert.h>
14562 #endif
14563
14564 #undef socket
14565
14566 /* Override any gcc2 internal prototype to avoid an error.  */
14567 #ifdef __cplusplus
14568 extern "C"
14569 {
14570 #endif
14571 /* We use char because int might match the return type of a gcc2
14572    builtin and then its argument prototype would still apply.  */
14573 char socket ();
14574 /* The GNU C library defines this for functions which it implements
14575     to always fail with ENOSYS.  Some functions are actually named
14576     something starting with __ and the normal name is an alias.  */
14577 #if defined (__stub_socket) || defined (__stub___socket)
14578 choke me
14579 #else
14580 char (*f) () = socket;
14581 #endif
14582 #ifdef __cplusplus
14583 }
14584 #endif
14585
14586 int
14587 main ()
14588 {
14589 return f != socket;
14590   ;
14591   return 0;
14592 }
14593 _ACEOF
14594 rm -f conftest.$ac_objext conftest$ac_exeext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14596   (eval $ac_link) 2>conftest.er1
14597   ac_status=$?
14598   grep -v '^ *+' conftest.er1 >conftest.err
14599   rm -f conftest.er1
14600   cat conftest.err >&5
14601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602   (exit $ac_status); } &&
14603          { ac_try='test -z "$ac_c_werror_flag"
14604                          || test ! -s conftest.err'
14605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606   (eval $ac_try) 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; } &&
14610          { ac_try='test -s conftest$ac_exeext'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; }; then
14616   ac_cv_func_socket=yes
14617 else
14618   echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.$ac_ext >&5
14620
14621 ac_cv_func_socket=no
14622 fi
14623 rm -f conftest.err conftest.$ac_objext \
14624       conftest$ac_exeext conftest.$ac_ext
14625 fi
14626 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14627 echo "${ECHO_T}$ac_cv_func_socket" >&6
14628 if test $ac_cv_func_socket = yes; then
14629   :
14630 else
14631
14632
14633 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14634 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14635 if test "${ac_cv_lib_socket_main+set}" = set; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   ac_check_lib_save_LIBS=$LIBS
14639 LIBS="-lsocket  $LIBS"
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646
14647
14648 int
14649 main ()
14650 {
14651 main ();
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext conftest$ac_exeext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14658   (eval $ac_link) 2>conftest.er1
14659   ac_status=$?
14660   grep -v '^ *+' conftest.er1 >conftest.err
14661   rm -f conftest.er1
14662   cat conftest.err >&5
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); } &&
14665          { ac_try='test -z "$ac_c_werror_flag"
14666                          || test ! -s conftest.err'
14667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668   (eval $ac_try) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); }; } &&
14672          { ac_try='test -s conftest$ac_exeext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   ac_cv_lib_socket_main=yes
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 ac_cv_lib_socket_main=no
14684 fi
14685 rm -f conftest.err conftest.$ac_objext \
14686       conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14688 fi
14689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14690 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14691 if test $ac_cv_lib_socket_main = yes; then
14692   cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBSOCKET 1
14694 _ACEOF
14695
14696   LIBS="-lsocket $LIBS"
14697
14698 fi
14699
14700
14701 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14702 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14703 if test "${ac_cv_lib_net_main+set}" = set; then
14704   echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706   ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-lnet  $LIBS"
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714
14715
14716 int
14717 main ()
14718 {
14719 main ();
14720   ;
14721   return 0;
14722 }
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14726   (eval $ac_link) 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag"
14734                          || test ! -s conftest.err'
14735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14736   (eval $ac_try) 2>&5
14737   ac_status=$?
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); }; } &&
14740          { ac_try='test -s conftest$ac_exeext'
14741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742   (eval $ac_try) 2>&5
14743   ac_status=$?
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   (exit $ac_status); }; }; then
14746   ac_cv_lib_net_main=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751 ac_cv_lib_net_main=no
14752 fi
14753 rm -f conftest.err conftest.$ac_objext \
14754       conftest$ac_exeext conftest.$ac_ext
14755 LIBS=$ac_check_lib_save_LIBS
14756 fi
14757 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14758 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14759 if test $ac_cv_lib_net_main = yes; then
14760   cat >>confdefs.h <<_ACEOF
14761 #define HAVE_LIBNET 1
14762 _ACEOF
14763
14764   LIBS="-lnet $LIBS"
14765
14766 fi
14767
14768
14769 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14770 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14771 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   ac_check_lib_save_LIBS=$LIBS
14775 LIBS="-lnsl_s  $LIBS"
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782
14783
14784 int
14785 main ()
14786 {
14787 main ();
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794   (eval $ac_link) 2>conftest.er1
14795   ac_status=$?
14796   grep -v '^ *+' conftest.er1 >conftest.err
14797   rm -f conftest.er1
14798   cat conftest.err >&5
14799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800   (exit $ac_status); } &&
14801          { ac_try='test -z "$ac_c_werror_flag"
14802                          || test ! -s conftest.err'
14803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804   (eval $ac_try) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); }; } &&
14808          { ac_try='test -s conftest$ac_exeext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814   ac_cv_lib_nsl_s_main=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_cv_lib_nsl_s_main=no
14820 fi
14821 rm -f conftest.err conftest.$ac_objext \
14822       conftest$ac_exeext conftest.$ac_ext
14823 LIBS=$ac_check_lib_save_LIBS
14824 fi
14825 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14826 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14827 if test $ac_cv_lib_nsl_s_main = yes; then
14828   cat >>confdefs.h <<_ACEOF
14829 #define HAVE_LIBNSL_S 1
14830 _ACEOF
14831
14832   LIBS="-lnsl_s $LIBS"
14833
14834 fi
14835
14836
14837 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14838 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14839 if test "${ac_cv_lib_nsl_main+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lnsl  $LIBS"
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850
14851
14852 int
14853 main ()
14854 {
14855 main ();
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14862   (eval $ac_link) 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } &&
14869          { ac_try='test -z "$ac_c_werror_flag"
14870                          || test ! -s conftest.err'
14871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872   (eval $ac_try) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); }; } &&
14876          { ac_try='test -s conftest$ac_exeext'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; }; then
14882   ac_cv_lib_nsl_main=yes
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887 ac_cv_lib_nsl_main=no
14888 fi
14889 rm -f conftest.err conftest.$ac_objext \
14890       conftest$ac_exeext conftest.$ac_ext
14891 LIBS=$ac_check_lib_save_LIBS
14892 fi
14893 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14894 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14895 if test $ac_cv_lib_nsl_main = yes; then
14896   cat >>confdefs.h <<_ACEOF
14897 #define HAVE_LIBNSL 1
14898 _ACEOF
14899
14900   LIBS="-lnsl $LIBS"
14901
14902 fi
14903
14904
14905 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14906 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14907 if test "${ac_cv_lib_inet_socket+set}" = set; then
14908   echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910   ac_check_lib_save_LIBS=$LIBS
14911 LIBS="-linet  $LIBS"
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h.  */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h.  */
14918
14919 /* Override any gcc2 internal prototype to avoid an error.  */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 /* We use char because int might match the return type of a gcc2
14924    builtin and then its argument prototype would still apply.  */
14925 char socket ();
14926 int
14927 main ()
14928 {
14929 socket ();
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936   (eval $ac_link) 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -z "$ac_c_werror_flag"
14944                          || test ! -s conftest.err'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest$ac_exeext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_cv_lib_inet_socket=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 ac_cv_lib_inet_socket=no
14962 fi
14963 rm -f conftest.err conftest.$ac_objext \
14964       conftest$ac_exeext conftest.$ac_ext
14965 LIBS=$ac_check_lib_save_LIBS
14966 fi
14967 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14968 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14969 if test $ac_cv_lib_inet_socket = yes; then
14970   cat >>confdefs.h <<_ACEOF
14971 #define HAVE_LIBINET 1
14972 _ACEOF
14973
14974   LIBS="-linet $LIBS"
14975
14976 fi
14977
14978
14979 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14980 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14981 if test "${ac_cv_lib_gen_main+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lgen  $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h.  */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h.  */
14992
14993
14994 int
14995 main ()
14996 {
14997 main ();
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004   (eval $ac_link) 2>conftest.er1
15005   ac_status=$?
15006   grep -v '^ *+' conftest.er1 >conftest.err
15007   rm -f conftest.er1
15008   cat conftest.err >&5
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); } &&
15011          { ac_try='test -z "$ac_c_werror_flag"
15012                          || test ! -s conftest.err'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; } &&
15018          { ac_try='test -s conftest$ac_exeext'
15019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020   (eval $ac_try) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); }; }; then
15024   ac_cv_lib_gen_main=yes
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_cv_lib_gen_main=no
15030 fi
15031 rm -f conftest.err conftest.$ac_objext \
15032       conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15036 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15037 if test $ac_cv_lib_gen_main = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBGEN 1
15040 _ACEOF
15041
15042   LIBS="-lgen $LIBS"
15043
15044 fi
15045
15046
15047 fi
15048
15049
15050 echo "$as_me:$LINENO: checking for select" >&5
15051 echo $ECHO_N "checking for select... $ECHO_C" >&6
15052 if test "${ac_cv_func_select+set}" = set; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 /* Define select to an innocuous variant, in case <limits.h> declares select.
15062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15063 #define select innocuous_select
15064
15065 /* System header to define __stub macros and hopefully few prototypes,
15066     which can conflict with char select (); below.
15067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15068     <limits.h> exists even on freestanding compilers.  */
15069
15070 #ifdef __STDC__
15071 # include <limits.h>
15072 #else
15073 # include <assert.h>
15074 #endif
15075
15076 #undef select
15077
15078 /* Override any gcc2 internal prototype to avoid an error.  */
15079 #ifdef __cplusplus
15080 extern "C"
15081 {
15082 #endif
15083 /* We use char because int might match the return type of a gcc2
15084    builtin and then its argument prototype would still apply.  */
15085 char select ();
15086 /* The GNU C library defines this for functions which it implements
15087     to always fail with ENOSYS.  Some functions are actually named
15088     something starting with __ and the normal name is an alias.  */
15089 #if defined (__stub_select) || defined (__stub___select)
15090 choke me
15091 #else
15092 char (*f) () = select;
15093 #endif
15094 #ifdef __cplusplus
15095 }
15096 #endif
15097
15098 int
15099 main ()
15100 {
15101 return f != select;
15102   ;
15103   return 0;
15104 }
15105 _ACEOF
15106 rm -f conftest.$ac_objext conftest$ac_exeext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15108   (eval $ac_link) 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -z "$ac_c_werror_flag"
15116                          || test ! -s conftest.err'
15117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118   (eval $ac_try) 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; } &&
15122          { ac_try='test -s conftest$ac_exeext'
15123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124   (eval $ac_try) 2>&5
15125   ac_status=$?
15126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127   (exit $ac_status); }; }; then
15128   ac_cv_func_select=yes
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_cv_func_select=no
15134 fi
15135 rm -f conftest.err conftest.$ac_objext \
15136       conftest$ac_exeext conftest.$ac_ext
15137 fi
15138 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15139 echo "${ECHO_T}$ac_cv_func_select" >&6
15140 if test $ac_cv_func_select = yes; then
15141   :
15142 else
15143   { { echo "$as_me:$LINENO: error: select() required." >&5
15144 echo "$as_me: error: select() required." >&2;}
15145    { (exit 1); exit 1; }; }
15146 fi
15147
15148
15149 if test "${ac_cv_header_winsock_h}" != yes; then
15150
15151
15152 for ac_header in sys/select.h sys/socket.h
15153 do
15154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15156   echo "$as_me:$LINENO: checking for $ac_header" >&5
15157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15159   echo $ECHO_N "(cached) $ECHO_C" >&6
15160 fi
15161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15163 else
15164   # Is the header compilable?
15165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 $ac_includes_default
15174 #include <$ac_header>
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15178   (eval $ac_compile) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest.$ac_objext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_header_compiler=yes
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 ac_header_compiler=no
15204 fi
15205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15207 echo "${ECHO_T}$ac_header_compiler" >&6
15208
15209 # Is the header present?
15210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 #include <$ac_header>
15219 _ACEOF
15220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15221   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } >/dev/null; then
15228   if test -s conftest.err; then
15229     ac_cpp_err=$ac_c_preproc_warn_flag
15230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15231   else
15232     ac_cpp_err=
15233   fi
15234 else
15235   ac_cpp_err=yes
15236 fi
15237 if test -z "$ac_cpp_err"; then
15238   ac_header_preproc=yes
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243   ac_header_preproc=no
15244 fi
15245 rm -f conftest.err conftest.$ac_ext
15246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15247 echo "${ECHO_T}$ac_header_preproc" >&6
15248
15249 # So?  What about this header?
15250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15251   yes:no: )
15252     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15256     ac_header_preproc=yes
15257     ;;
15258   no:yes:* )
15259     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15261     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15262 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15263     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15265     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15266 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15269     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15271     (
15272       cat <<\_ASBOX
15273 ## ------------------------------------------ ##
15274 ## Report this to the AC_PACKAGE_NAME lists.  ##
15275 ## ------------------------------------------ ##
15276 _ASBOX
15277     ) |
15278       sed "s/^/$as_me: WARNING:     /" >&2
15279     ;;
15280 esac
15281 echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   eval "$as_ac_Header=\$ac_header_preproc"
15287 fi
15288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15290
15291 fi
15292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15293   cat >>confdefs.h <<_ACEOF
15294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15295 _ACEOF
15296
15297 fi
15298
15299 done
15300
15301 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15302 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15303 if test "${ac_cv_func_select_args+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15307  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15308   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15309    cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h.  */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h.  */
15315 $ac_includes_default
15316 #if HAVE_SYS_SELECT_H
15317 # include <sys/select.h>
15318 #endif
15319 #if HAVE_SYS_SOCKET_H
15320 # include <sys/socket.h>
15321 #endif
15322
15323 int
15324 main ()
15325 {
15326 extern int select ($ac_arg1,
15327                                             $ac_arg234, $ac_arg234, $ac_arg234,
15328                                             $ac_arg5);
15329   ;
15330   return 0;
15331 }
15332 _ACEOF
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335   (eval $ac_compile) 2>conftest.er1
15336   ac_status=$?
15337   grep -v '^ *+' conftest.er1 >conftest.err
15338   rm -f conftest.er1
15339   cat conftest.err >&5
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); } &&
15342          { ac_try='test -z "$ac_c_werror_flag"
15343                          || test ! -s conftest.err'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; } &&
15349          { ac_try='test -s conftest.$ac_objext'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; }; then
15355   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 fi
15361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15362   done
15363  done
15364 done
15365 # Provide a safe default value.
15366 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15367
15368 fi
15369 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15370 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15371 ac_save_IFS=$IFS; IFS=','
15372 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15373 IFS=$ac_save_IFS
15374 shift
15375
15376 cat >>confdefs.h <<_ACEOF
15377 #define SELECT_TYPE_ARG1 $1
15378 _ACEOF
15379
15380
15381 cat >>confdefs.h <<_ACEOF
15382 #define SELECT_TYPE_ARG234 ($2)
15383 _ACEOF
15384
15385
15386 cat >>confdefs.h <<_ACEOF
15387 #define SELECT_TYPE_ARG5 ($3)
15388 _ACEOF
15389
15390 rm -f conftest*
15391
15392 fi
15393
15394
15395
15396 for ac_func in poll
15397 do
15398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15399 echo "$as_me:$LINENO: checking for $ac_func" >&5
15400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15401 if eval "test \"\${$as_ac_var+set}\" = set"; then
15402   echo $ECHO_N "(cached) $ECHO_C" >&6
15403 else
15404   cat >conftest.$ac_ext <<_ACEOF
15405 /* confdefs.h.  */
15406 _ACEOF
15407 cat confdefs.h >>conftest.$ac_ext
15408 cat >>conftest.$ac_ext <<_ACEOF
15409 /* end confdefs.h.  */
15410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15412 #define $ac_func innocuous_$ac_func
15413
15414 /* System header to define __stub macros and hopefully few prototypes,
15415     which can conflict with char $ac_func (); below.
15416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15417     <limits.h> exists even on freestanding compilers.  */
15418
15419 #ifdef __STDC__
15420 # include <limits.h>
15421 #else
15422 # include <assert.h>
15423 #endif
15424
15425 #undef $ac_func
15426
15427 /* Override any gcc2 internal prototype to avoid an error.  */
15428 #ifdef __cplusplus
15429 extern "C"
15430 {
15431 #endif
15432 /* We use char because int might match the return type of a gcc2
15433    builtin and then its argument prototype would still apply.  */
15434 char $ac_func ();
15435 /* The GNU C library defines this for functions which it implements
15436     to always fail with ENOSYS.  Some functions are actually named
15437     something starting with __ and the normal name is an alias.  */
15438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15439 choke me
15440 #else
15441 char (*f) () = $ac_func;
15442 #endif
15443 #ifdef __cplusplus
15444 }
15445 #endif
15446
15447 int
15448 main ()
15449 {
15450 return f != $ac_func;
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext conftest$ac_exeext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15457   (eval $ac_link) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest$ac_exeext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   eval "$as_ac_var=yes"
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 eval "$as_ac_var=no"
15483 fi
15484 rm -f conftest.err conftest.$ac_objext \
15485       conftest$ac_exeext conftest.$ac_ext
15486 fi
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15489 if test `eval echo '${'$as_ac_var'}'` = yes; then
15490   cat >>confdefs.h <<_ACEOF
15491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 _ACEOF
15493
15494 fi
15495 done
15496
15497
15498 for ac_header in poll.h
15499 do
15500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15502   echo "$as_me:$LINENO: checking for $ac_header" >&5
15503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 fi
15507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15508 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15509 else
15510   # Is the header compilable?
15511 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 $ac_includes_default
15520 #include <$ac_header>
15521 _ACEOF
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524   (eval $ac_compile) 2>conftest.er1
15525   ac_status=$?
15526   grep -v '^ *+' conftest.er1 >conftest.err
15527   rm -f conftest.er1
15528   cat conftest.err >&5
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -z "$ac_c_werror_flag"
15532                          || test ! -s conftest.err'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; } &&
15538          { ac_try='test -s conftest.$ac_objext'
15539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540   (eval $ac_try) 2>&5
15541   ac_status=$?
15542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543   (exit $ac_status); }; }; then
15544   ac_header_compiler=yes
15545 else
15546   echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15548
15549 ac_header_compiler=no
15550 fi
15551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15553 echo "${ECHO_T}$ac_header_compiler" >&6
15554
15555 # Is the header present?
15556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 #include <$ac_header>
15565 _ACEOF
15566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15567   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } >/dev/null; then
15574   if test -s conftest.err; then
15575     ac_cpp_err=$ac_c_preproc_warn_flag
15576     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15577   else
15578     ac_cpp_err=
15579   fi
15580 else
15581   ac_cpp_err=yes
15582 fi
15583 if test -z "$ac_cpp_err"; then
15584   ac_header_preproc=yes
15585 else
15586   echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15588
15589   ac_header_preproc=no
15590 fi
15591 rm -f conftest.err conftest.$ac_ext
15592 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15593 echo "${ECHO_T}$ac_header_preproc" >&6
15594
15595 # So?  What about this header?
15596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15597   yes:no: )
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15602     ac_header_preproc=yes
15603     ;;
15604   no:yes:* )
15605     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15607     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15608 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15609     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15611     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15612 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15615     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15617     (
15618       cat <<\_ASBOX
15619 ## ------------------------------------------ ##
15620 ## Report this to the AC_PACKAGE_NAME lists.  ##
15621 ## ------------------------------------------ ##
15622 _ASBOX
15623     ) |
15624       sed "s/^/$as_me: WARNING:     /" >&2
15625     ;;
15626 esac
15627 echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632   eval "$as_ac_Header=\$ac_header_preproc"
15633 fi
15634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15636
15637 fi
15638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15639   cat >>confdefs.h <<_ACEOF
15640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15641 _ACEOF
15642
15643 fi
15644
15645 done
15646
15647
15648
15649 for ac_header in sys/epoll.h
15650 do
15651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15653   echo "$as_me:$LINENO: checking for $ac_header" >&5
15654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15656   echo $ECHO_N "(cached) $ECHO_C" >&6
15657 fi
15658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15660 else
15661   # Is the header compilable?
15662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670 $ac_includes_default
15671 #include <$ac_header>
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675   (eval $ac_compile) 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -z "$ac_c_werror_flag"
15683                          || test ! -s conftest.err'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; } &&
15689          { ac_try='test -s conftest.$ac_objext'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }; then
15695   ac_header_compiler=yes
15696 else
15697   echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15699
15700 ac_header_compiler=no
15701 fi
15702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6
15705
15706 # Is the header present?
15707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h.  */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h.  */
15715 #include <$ac_header>
15716 _ACEOF
15717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15719   ac_status=$?
15720   grep -v '^ *+' conftest.er1 >conftest.err
15721   rm -f conftest.er1
15722   cat conftest.err >&5
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); } >/dev/null; then
15725   if test -s conftest.err; then
15726     ac_cpp_err=$ac_c_preproc_warn_flag
15727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15728   else
15729     ac_cpp_err=
15730   fi
15731 else
15732   ac_cpp_err=yes
15733 fi
15734 if test -z "$ac_cpp_err"; then
15735   ac_header_preproc=yes
15736 else
15737   echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740   ac_header_preproc=no
15741 fi
15742 rm -f conftest.err conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15744 echo "${ECHO_T}$ac_header_preproc" >&6
15745
15746 # So?  What about this header?
15747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15748   yes:no: )
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15753     ac_header_preproc=yes
15754     ;;
15755   no:yes:* )
15756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15768     (
15769       cat <<\_ASBOX
15770 ## ------------------------------------------ ##
15771 ## Report this to the AC_PACKAGE_NAME lists.  ##
15772 ## ------------------------------------------ ##
15773 _ASBOX
15774     ) |
15775       sed "s/^/$as_me: WARNING:     /" >&2
15776     ;;
15777 esac
15778 echo "$as_me:$LINENO: checking for $ac_header" >&5
15779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15781   echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783   eval "$as_ac_Header=\$ac_header_preproc"
15784 fi
15785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15787
15788 fi
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790   cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15792 _ACEOF
15793
15794 fi
15795
15796 done
15797
15798 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15799 echo "$as_me:$LINENO: checking for epoll system call" >&5
15800 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15801 if test "$cross_compiling" = yes; then
15802   echo "$as_me:$LINENO: result: no" >&5
15803 echo "${ECHO_T}no" >&6
15804 else
15805   cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 int main(int argc, char *argv)
15812 {
15813         int epfd = epoll_create(256);
15814         exit (epfd == -1 ? 1 : 0);
15815 }
15816 _ACEOF
15817 rm -f conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819   (eval $ac_link) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; }; then
15828   echo "$as_me:$LINENO: result: yes" >&5
15829 echo "${ECHO_T}yes" >&6
15830
15831 cat >>confdefs.h <<\_ACEOF
15832 #define HAVE_EPOLL 1
15833 _ACEOF
15834
15835 else
15836   echo "$as_me: program exited with status $ac_status" >&5
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 ( exit $ac_status )
15841 echo "$as_me:$LINENO: result: no" >&5
15842 echo "${ECHO_T}no" >&6
15843 fi
15844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15845 fi
15846 fi
15847
15848 # strerror checks
15849 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15850 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15851 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15852   echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854
15855         cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861
15862 #include <stdio.h>
15863 #include <sys/types.h>
15864 #include <errno.h>
15865 #ifdef WINNT
15866 #include <stdlib.h>
15867 #endif
15868 int
15869 main ()
15870 {
15871 char *c = (char *) *sys_errlist
15872   ;
15873   return 0;
15874 }
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878   (eval $ac_compile) 2>conftest.er1
15879   ac_status=$?
15880   grep -v '^ *+' conftest.er1 >conftest.err
15881   rm -f conftest.er1
15882   cat conftest.err >&5
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); } &&
15885          { ac_try='test -z "$ac_c_werror_flag"
15886                          || test ! -s conftest.err'
15887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888   (eval $ac_try) 2>&5
15889   ac_status=$?
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); }; } &&
15892          { ac_try='test -s conftest.$ac_objext'
15893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894   (eval $ac_try) 2>&5
15895   ac_status=$?
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); }; }; then
15898   ol_cv_dcl_sys_errlist=yes
15899         ol_cv_have_sys_errlist=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ol_cv_dcl_sys_errlist=no
15905 fi
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907 fi
15908 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15909 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15910 #
15911 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15912 if test $ol_cv_dcl_sys_errlist = no ; then
15913
15914 cat >>confdefs.h <<\_ACEOF
15915 #define DECL_SYS_ERRLIST 1
15916 _ACEOF
15917
15918
15919         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15920 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15921 if test "${ol_cv_have_sys_errlist+set}" = set; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924
15925                 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931 #include <errno.h>
15932 int
15933 main ()
15934 {
15935 char *c = (char *) *sys_errlist
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942   (eval $ac_link) 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } &&
15949          { ac_try='test -z "$ac_c_werror_flag"
15950                          || test ! -s conftest.err'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; } &&
15956          { ac_try='test -s conftest$ac_exeext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   ol_cv_have_sys_errlist=yes
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ol_cv_have_sys_errlist=no
15968 fi
15969 rm -f conftest.err conftest.$ac_objext \
15970       conftest$ac_exeext conftest.$ac_ext
15971 fi
15972 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15973 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15974 fi
15975 if test $ol_cv_have_sys_errlist = yes ; then
15976
15977 cat >>confdefs.h <<\_ACEOF
15978 #define HAVE_SYS_ERRLIST 1
15979 _ACEOF
15980
15981 fi
15982
15983
15984 for ac_func in strerror strerror_r
15985 do
15986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15987 echo "$as_me:$LINENO: checking for $ac_func" >&5
15988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15989 if eval "test \"\${$as_ac_var+set}\" = set"; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16000 #define $ac_func innocuous_$ac_func
16001
16002 /* System header to define __stub macros and hopefully few prototypes,
16003     which can conflict with char $ac_func (); below.
16004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005     <limits.h> exists even on freestanding compilers.  */
16006
16007 #ifdef __STDC__
16008 # include <limits.h>
16009 #else
16010 # include <assert.h>
16011 #endif
16012
16013 #undef $ac_func
16014
16015 /* Override any gcc2 internal prototype to avoid an error.  */
16016 #ifdef __cplusplus
16017 extern "C"
16018 {
16019 #endif
16020 /* We use char because int might match the return type of a gcc2
16021    builtin and then its argument prototype would still apply.  */
16022 char $ac_func ();
16023 /* The GNU C library defines this for functions which it implements
16024     to always fail with ENOSYS.  Some functions are actually named
16025     something starting with __ and the normal name is an alias.  */
16026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16027 choke me
16028 #else
16029 char (*f) () = $ac_func;
16030 #endif
16031 #ifdef __cplusplus
16032 }
16033 #endif
16034
16035 int
16036 main ()
16037 {
16038 return f != $ac_func;
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045   (eval $ac_link) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"
16053                          || test ! -s conftest.err'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } &&
16059          { ac_try='test -s conftest$ac_exeext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   eval "$as_ac_var=yes"
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 eval "$as_ac_var=no"
16071 fi
16072 rm -f conftest.err conftest.$ac_objext \
16073       conftest$ac_exeext conftest.$ac_ext
16074 fi
16075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16077 if test `eval echo '${'$as_ac_var'}'` = yes; then
16078   cat >>confdefs.h <<_ACEOF
16079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16080 _ACEOF
16081
16082 fi
16083 done
16084
16085 ol_cv_func_strerror_r=no
16086 if test "${ac_cv_func_strerror_r}" = yes ; then
16087         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16088 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16089 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092
16093         cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099 #include <string.h>
16100 _ACEOF
16101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16102   $EGREP "strerror_r" >/dev/null 2>&1; then
16103   ol_decl_strerror_r=yes
16104 else
16105   ol_decl_strerror_r=no
16106 fi
16107 rm -f conftest*
16108
16109         if test $ol_decl_strerror_r = yes ; then
16110                 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h.  */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h.  */
16116 #include <string.h>
16117 int
16118 main ()
16119 {
16120    /* from autoconf 2.59 */
16121                                 char buf[100];
16122                                 char x = *strerror_r (0, buf, sizeof buf);
16123                                 char *p = strerror_r (0, buf, sizeof buf);
16124
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 rm -f conftest.$ac_objext
16130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16131   (eval $ac_compile) 2>conftest.er1
16132   ac_status=$?
16133   grep -v '^ *+' conftest.er1 >conftest.err
16134   rm -f conftest.er1
16135   cat conftest.err >&5
16136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137   (exit $ac_status); } &&
16138          { ac_try='test -z "$ac_c_werror_flag"
16139                          || test ! -s conftest.err'
16140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141   (eval $ac_try) 2>&5
16142   ac_status=$?
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); }; } &&
16145          { ac_try='test -s conftest.$ac_objext'
16146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147   (eval $ac_try) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151   ol_cv_nonposix_strerror_r=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 ol_cv_nonposix_strerror_r=no
16157 fi
16158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16159         else
16160                 if test "$cross_compiling" = yes; then
16161   ol_cv_nonposix_strerror=no
16162 else
16163   cat >conftest.$ac_ext <<_ACEOF
16164 /* confdefs.h.  */
16165 _ACEOF
16166 cat confdefs.h >>conftest.$ac_ext
16167 cat >>conftest.$ac_ext <<_ACEOF
16168 /* end confdefs.h.  */
16169
16170                         main() {
16171                                 char buf[100];
16172                                 buf[0] = 0;
16173                                 strerror_r( 1, buf, sizeof buf );
16174                                 exit( buf[0] == 0 );
16175                         }
16176
16177 _ACEOF
16178 rm -f conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180   (eval $ac_link) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185   (eval $ac_try) 2>&5
16186   ac_status=$?
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); }; }; then
16189   ol_cv_nonposix_strerror_r=yes
16190 else
16191   echo "$as_me: program exited with status $ac_status" >&5
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 ( exit $ac_status )
16196 ol_cv_nonposix_strerror=no
16197 fi
16198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16199 fi
16200         fi
16201
16202 fi
16203 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16204 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16205 if test $ol_cv_nonposix_strerror_r = yes ; then
16206
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE_NONPOSIX_STRERROR_R 1
16209 _ACEOF
16210
16211 fi
16212
16213 elif test "${ac_cv_func_strerror}" = no ; then
16214         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16215 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16216 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16217   echo $ECHO_N "(cached) $ECHO_C" >&6
16218 else
16219
16220         cat >conftest.$ac_ext <<_ACEOF
16221 /* confdefs.h.  */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h.  */
16226
16227 #include <stdio.h>
16228 #include <sys/types.h>
16229 #include <errno.h>
16230 #ifdef WINNT
16231 #include <stdlib.h>
16232 #endif
16233 int
16234 main ()
16235 {
16236 char *c = (char *) *sys_errlist
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext
16242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16243   (eval $ac_compile) 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
16247   cat conftest.err >&5
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -z "$ac_c_werror_flag"
16251                          || test ! -s conftest.err'
16252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253   (eval $ac_try) 2>&5
16254   ac_status=$?
16255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); }; } &&
16257          { ac_try='test -s conftest.$ac_objext'
16258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259   (eval $ac_try) 2>&5
16260   ac_status=$?
16261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262   (exit $ac_status); }; }; then
16263   ol_cv_dcl_sys_errlist=yes
16264         ol_cv_have_sys_errlist=yes
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ol_cv_dcl_sys_errlist=no
16270 fi
16271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16272 fi
16273 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16274 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16275 #
16276 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16277 if test $ol_cv_dcl_sys_errlist = no ; then
16278
16279 cat >>confdefs.h <<\_ACEOF
16280 #define DECL_SYS_ERRLIST 1
16281 _ACEOF
16282
16283
16284         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16285 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16286 if test "${ol_cv_have_sys_errlist+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289
16290                 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 #include <errno.h>
16297 int
16298 main ()
16299 {
16300 char *c = (char *) *sys_errlist
16301   ;
16302   return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16307   (eval $ac_link) 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } &&
16314          { ac_try='test -z "$ac_c_werror_flag"
16315                          || test ! -s conftest.err'
16316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317   (eval $ac_try) 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; } &&
16321          { ac_try='test -s conftest$ac_exeext'
16322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323   (eval $ac_try) 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; }; then
16327   ol_cv_have_sys_errlist=yes
16328 else
16329   echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332 ol_cv_have_sys_errlist=no
16333 fi
16334 rm -f conftest.err conftest.$ac_objext \
16335       conftest$ac_exeext conftest.$ac_ext
16336 fi
16337 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16338 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16339 fi
16340 if test $ol_cv_have_sys_errlist = yes ; then
16341
16342 cat >>confdefs.h <<\_ACEOF
16343 #define HAVE_SYS_ERRLIST 1
16344 _ACEOF
16345
16346 fi
16347
16348 fi
16349
16350
16351
16352 for ac_header in regex.h
16353 do
16354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16356   echo "$as_me:$LINENO: checking for $ac_header" >&5
16357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 fi
16361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16363 else
16364   # Is the header compilable?
16365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 $ac_includes_default
16374 #include <$ac_header>
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378   (eval $ac_compile) 2>conftest.er1
16379   ac_status=$?
16380   grep -v '^ *+' conftest.er1 >conftest.err
16381   rm -f conftest.er1
16382   cat conftest.err >&5
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -z "$ac_c_werror_flag"
16386                          || test ! -s conftest.err'
16387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388   (eval $ac_try) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   ac_header_compiler=yes
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 ac_header_compiler=no
16404 fi
16405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6
16408
16409 # Is the header present?
16410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 #include <$ac_header>
16419 _ACEOF
16420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16422   ac_status=$?
16423   grep -v '^ *+' conftest.er1 >conftest.err
16424   rm -f conftest.er1
16425   cat conftest.err >&5
16426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427   (exit $ac_status); } >/dev/null; then
16428   if test -s conftest.err; then
16429     ac_cpp_err=$ac_c_preproc_warn_flag
16430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16431   else
16432     ac_cpp_err=
16433   fi
16434 else
16435   ac_cpp_err=yes
16436 fi
16437 if test -z "$ac_cpp_err"; then
16438   ac_header_preproc=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443   ac_header_preproc=no
16444 fi
16445 rm -f conftest.err conftest.$ac_ext
16446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6
16448
16449 # So?  What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451   yes:no: )
16452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456     ac_header_preproc=yes
16457     ;;
16458   no:yes:* )
16459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471     (
16472       cat <<\_ASBOX
16473 ## ------------------------------------------ ##
16474 ## Report this to the AC_PACKAGE_NAME lists.  ##
16475 ## ------------------------------------------ ##
16476 _ASBOX
16477     ) |
16478       sed "s/^/$as_me: WARNING:     /" >&2
16479     ;;
16480 esac
16481 echo "$as_me:$LINENO: checking for $ac_header" >&5
16482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16484   echo $ECHO_N "(cached) $ECHO_C" >&6
16485 else
16486   eval "$as_ac_Header=\$ac_header_preproc"
16487 fi
16488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16490
16491 fi
16492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16493   cat >>confdefs.h <<_ACEOF
16494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16495 _ACEOF
16496
16497 fi
16498
16499 done
16500
16501 if test "$ac_cv_header_regex_h" != yes ; then
16502         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16503 echo "$as_me: error: POSIX regex.h required." >&2;}
16504    { (exit 1); exit 1; }; }
16505 fi
16506 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16507 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16508 if test "${ac_cv_search_regfree+set}" = set; then
16509   echo $ECHO_N "(cached) $ECHO_C" >&6
16510 else
16511   ac_func_search_save_LIBS=$LIBS
16512 ac_cv_search_regfree=no
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h.  */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h.  */
16519
16520 /* Override any gcc2 internal prototype to avoid an error.  */
16521 #ifdef __cplusplus
16522 extern "C"
16523 #endif
16524 /* We use char because int might match the return type of a gcc2
16525    builtin and then its argument prototype would still apply.  */
16526 char regfree ();
16527 int
16528 main ()
16529 {
16530 regfree ();
16531   ;
16532   return 0;
16533 }
16534 _ACEOF
16535 rm -f conftest.$ac_objext conftest$ac_exeext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16537   (eval $ac_link) 2>conftest.er1
16538   ac_status=$?
16539   grep -v '^ *+' conftest.er1 >conftest.err
16540   rm -f conftest.er1
16541   cat conftest.err >&5
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); } &&
16544          { ac_try='test -z "$ac_c_werror_flag"
16545                          || test ! -s conftest.err'
16546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547   (eval $ac_try) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); }; } &&
16551          { ac_try='test -s conftest$ac_exeext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   ac_cv_search_regfree="none required"
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 fi
16563 rm -f conftest.err conftest.$ac_objext \
16564       conftest$ac_exeext conftest.$ac_ext
16565 if test "$ac_cv_search_regfree" = no; then
16566   for ac_lib in regex gnuregex; do
16567     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16568     cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574
16575 /* Override any gcc2 internal prototype to avoid an error.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 #endif
16579 /* We use char because int might match the return type of a gcc2
16580    builtin and then its argument prototype would still apply.  */
16581 char regfree ();
16582 int
16583 main ()
16584 {
16585 regfree ();
16586   ;
16587   return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592   (eval $ac_link) 2>conftest.er1
16593   ac_status=$?
16594   grep -v '^ *+' conftest.er1 >conftest.err
16595   rm -f conftest.er1
16596   cat conftest.err >&5
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } &&
16599          { ac_try='test -z "$ac_c_werror_flag"
16600                          || test ! -s conftest.err'
16601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602   (eval $ac_try) 2>&5
16603   ac_status=$?
16604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605   (exit $ac_status); }; } &&
16606          { ac_try='test -s conftest$ac_exeext'
16607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608   (eval $ac_try) 2>&5
16609   ac_status=$?
16610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; }; then
16612   ac_cv_search_regfree="-l$ac_lib"
16613 break
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 fi
16619 rm -f conftest.err conftest.$ac_objext \
16620       conftest$ac_exeext conftest.$ac_ext
16621   done
16622 fi
16623 LIBS=$ac_func_search_save_LIBS
16624 fi
16625 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16626 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16627 if test "$ac_cv_search_regfree" != no; then
16628   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16629   :
16630 else
16631   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16632 echo "$as_me: error: POSIX regex required." >&2;}
16633    { (exit 1); exit 1; }; }
16634 fi
16635
16636
16637
16638 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16639 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16640 if test "${ol_cv_c_posix_regex+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643
16644         if test "$cross_compiling" = yes; then
16645   ol_cv_c_posix_regex=cross
16646 else
16647   cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653
16654 #include <sys/types.h>
16655 #include <regex.h>
16656 static char *pattern, *string;
16657 main()
16658 {
16659         int rc;
16660         regex_t re;
16661
16662         pattern = "^A";
16663
16664         if(regcomp(&re, pattern, 0)) {
16665                 return -1;
16666         }
16667
16668         string = "ALL MATCH";
16669
16670         rc = regexec(&re, string, 0, (void*)0, 0);
16671
16672         regfree(&re);
16673
16674         return rc;
16675 }
16676 _ACEOF
16677 rm -f conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679   (eval $ac_link) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684   (eval $ac_try) 2>&5
16685   ac_status=$?
16686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); }; }; then
16688   ol_cv_c_posix_regex=yes
16689 else
16690   echo "$as_me: program exited with status $ac_status" >&5
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 ( exit $ac_status )
16695 ol_cv_c_posix_regex=no
16696 fi
16697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16698 fi
16699 fi
16700 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16701 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16702
16703 if test "$ol_cv_c_posix_regex" = no ; then
16704         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16705 echo "$as_me: error: broken POSIX regex!" >&2;}
16706    { (exit 1); exit 1; }; }
16707 fi
16708
16709
16710 have_uuid=no
16711
16712 for ac_header in sys/uuid.h
16713 do
16714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16716   echo "$as_me:$LINENO: checking for $ac_header" >&5
16717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16719   echo $ECHO_N "(cached) $ECHO_C" >&6
16720 fi
16721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16723 else
16724   # Is the header compilable?
16725 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16727 cat >conftest.$ac_ext <<_ACEOF
16728 /* confdefs.h.  */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h.  */
16733 $ac_includes_default
16734 #include <$ac_header>
16735 _ACEOF
16736 rm -f conftest.$ac_objext
16737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16738   (eval $ac_compile) 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } &&
16745          { ac_try='test -z "$ac_c_werror_flag"
16746                          || test ! -s conftest.err'
16747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748   (eval $ac_try) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; } &&
16752          { ac_try='test -s conftest.$ac_objext'
16753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16754   (eval $ac_try) 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; }; then
16758   ac_header_compiler=yes
16759 else
16760   echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763 ac_header_compiler=no
16764 fi
16765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16767 echo "${ECHO_T}$ac_header_compiler" >&6
16768
16769 # Is the header present?
16770 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16772 cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 #include <$ac_header>
16779 _ACEOF
16780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16782   ac_status=$?
16783   grep -v '^ *+' conftest.er1 >conftest.err
16784   rm -f conftest.er1
16785   cat conftest.err >&5
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); } >/dev/null; then
16788   if test -s conftest.err; then
16789     ac_cpp_err=$ac_c_preproc_warn_flag
16790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16791   else
16792     ac_cpp_err=
16793   fi
16794 else
16795   ac_cpp_err=yes
16796 fi
16797 if test -z "$ac_cpp_err"; then
16798   ac_header_preproc=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803   ac_header_preproc=no
16804 fi
16805 rm -f conftest.err conftest.$ac_ext
16806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16807 echo "${ECHO_T}$ac_header_preproc" >&6
16808
16809 # So?  What about this header?
16810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16811   yes:no: )
16812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16816     ac_header_preproc=yes
16817     ;;
16818   no:yes:* )
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16831     (
16832       cat <<\_ASBOX
16833 ## ------------------------------------------ ##
16834 ## Report this to the AC_PACKAGE_NAME lists.  ##
16835 ## ------------------------------------------ ##
16836 _ASBOX
16837     ) |
16838       sed "s/^/$as_me: WARNING:     /" >&2
16839     ;;
16840 esac
16841 echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846   eval "$as_ac_Header=\$ac_header_preproc"
16847 fi
16848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16850
16851 fi
16852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16853   cat >>confdefs.h <<_ACEOF
16854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16855 _ACEOF
16856
16857 fi
16858
16859 done
16860
16861 if test $ac_cv_header_sys_uuid_h = yes ; then
16862         save_LIBS="$LIBS"
16863         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16864 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16865 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   ac_func_search_save_LIBS=$LIBS
16869 ac_cv_search_uuid_to_str=no
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any gcc2 internal prototype to avoid an error.  */
16878 #ifdef __cplusplus
16879 extern "C"
16880 #endif
16881 /* We use char because int might match the return type of a gcc2
16882    builtin and then its argument prototype would still apply.  */
16883 char uuid_to_str ();
16884 int
16885 main ()
16886 {
16887 uuid_to_str ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16894   (eval $ac_link) 2>conftest.er1
16895   ac_status=$?
16896   grep -v '^ *+' conftest.er1 >conftest.err
16897   rm -f conftest.er1
16898   cat conftest.err >&5
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); } &&
16901          { ac_try='test -z "$ac_c_werror_flag"
16902                          || test ! -s conftest.err'
16903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904   (eval $ac_try) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; } &&
16908          { ac_try='test -s conftest$ac_exeext'
16909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910   (eval $ac_try) 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_cv_search_uuid_to_str="none required"
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919 fi
16920 rm -f conftest.err conftest.$ac_objext \
16921       conftest$ac_exeext conftest.$ac_ext
16922 if test "$ac_cv_search_uuid_to_str" = no; then
16923   for ac_lib in uuid; do
16924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16925     cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931
16932 /* Override any gcc2 internal prototype to avoid an error.  */
16933 #ifdef __cplusplus
16934 extern "C"
16935 #endif
16936 /* We use char because int might match the return type of a gcc2
16937    builtin and then its argument prototype would still apply.  */
16938 char uuid_to_str ();
16939 int
16940 main ()
16941 {
16942 uuid_to_str ();
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949   (eval $ac_link) 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag"
16957                          || test ! -s conftest.err'
16958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16959   (eval $ac_try) 2>&5
16960   ac_status=$?
16961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }; } &&
16963          { ac_try='test -s conftest$ac_exeext'
16964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968   (exit $ac_status); }; }; then
16969   ac_cv_search_uuid_to_str="-l$ac_lib"
16970 break
16971 else
16972   echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 fi
16976 rm -f conftest.err conftest.$ac_objext \
16977       conftest$ac_exeext conftest.$ac_ext
16978   done
16979 fi
16980 LIBS=$ac_func_search_save_LIBS
16981 fi
16982 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16983 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16984 if test "$ac_cv_search_uuid_to_str" != no; then
16985   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16986   have_uuid=yes
16987 else
16988   :
16989 fi
16990
16991         LIBS="$save_LIBS"
16992
16993         if test have_uuid = yes ; then
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_UUID_TO_STR 1
16997 _ACEOF
16998
16999
17000                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17001                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17002         fi
17003 fi
17004
17005 if test $have_uuid = no ; then
17006         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17007 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17008         save_LIBS="$LIBS"
17009         LIBS="$LIBS -lrpcrt4"
17010         cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016
17017                 int __stdcall UuidCreate(void *);
17018                 int __stdcall UuidToStringA(void *,void **);
17019
17020 int
17021 main ()
17022 {
17023
17024                 UuidCreate(0);
17025                 UuidToStringA(0,0);
17026
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033   (eval $ac_link) 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -z "$ac_c_werror_flag"
17041                          || test ! -s conftest.err'
17042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043   (eval $ac_try) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   need_rpcrt=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 need_rpcrt=no
17059 fi
17060 rm -f conftest.err conftest.$ac_objext \
17061       conftest$ac_exeext conftest.$ac_ext
17062         if test $need_rpcrt = yes; then
17063                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17064         fi
17065         LIBS="$save_LIBS"
17066         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17067 echo "${ECHO_T}$need_rpcrt" >&6
17068 fi
17069
17070 ol_cv_lib_resolver=no
17071 if test $ol_cv_lib_resolver = no ; then
17072         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17073 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17074 if test "${ol_cv_resolver_none+set}" = set; then
17075   echo $ECHO_N "(cached) $ECHO_C" >&6
17076 else
17077
17078         ol_RESOLVER_LIB=
17079         ol_LIBS=$LIBS
17080         LIBS="$ol_RESOLVER_LIB $LIBS"
17081
17082         cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h.  */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h.  */
17088
17089 #ifdef HAVE_SYS_TYPES_H
17090 #       include <sys/types.h>
17091 #endif
17092 #include <netinet/in.h>
17093 #ifdef HAVE_ARPA_NAMESER_H
17094 #       include <arpa/nameser.h>
17095 #endif
17096 #ifdef HAVE_RESOLV_H
17097 #       include <resolv.h>
17098 #endif
17099
17100 int
17101 main ()
17102 {
17103 {
17104         int len, status;
17105         char *request = NULL;
17106         unsigned char reply[64*1024];
17107         unsigned char host[64*1024];
17108         unsigned char *p;
17109
17110 #ifdef NS_HFIXEDSZ
17111         /* Bind 8/9 interface */
17112         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17113 #else
17114         /* Bind 4 interface */
17115 # ifndef T_SRV
17116 #  define T_SRV 33
17117 # endif
17118         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17119 #endif
17120         p = reply;
17121 #ifdef NS_HFIXEDSZ
17122         /* Bind 8/9 interface */
17123         p += NS_HFIXEDSZ;
17124 #elif defined(HFIXEDSZ)
17125         /* Bind 4 interface w/ HFIXEDSZ */
17126         p += HFIXEDSZ;
17127 #else
17128         /* Bind 4 interface w/o HFIXEDSZ */
17129         p += sizeof(HEADER);
17130 #endif
17131         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17132 }
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139   (eval $ac_link) 2>conftest.er1
17140   ac_status=$?
17141   grep -v '^ *+' conftest.er1 >conftest.err
17142   rm -f conftest.er1
17143   cat conftest.err >&5
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -z "$ac_c_werror_flag"
17147                          || test ! -s conftest.err'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; } &&
17153          { ac_try='test -s conftest$ac_exeext'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; }; then
17159   ol_cv_resolver_none=yes
17160 else
17161   echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ol_cv_resolver_none=no
17165 fi
17166 rm -f conftest.err conftest.$ac_objext \
17167       conftest$ac_exeext conftest.$ac_ext
17168
17169         LIBS="$ol_LIBS"
17170
17171 fi
17172 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17173 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17174
17175         if test $ol_cv_resolver_none = yes ; then
17176                 ol_cv_lib_resolver=yes
17177         fi
17178 fi
17179
17180 if test $ol_cv_lib_resolver = no ; then
17181         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17182 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17183 if test "${ol_cv_resolver_resolv+set}" = set; then
17184   echo $ECHO_N "(cached) $ECHO_C" >&6
17185 else
17186
17187         ol_RESOLVER_LIB=-lresolv
17188         ol_LIBS=$LIBS
17189         LIBS="$ol_RESOLVER_LIB $LIBS"
17190
17191         cat >conftest.$ac_ext <<_ACEOF
17192 /* confdefs.h.  */
17193 _ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h.  */
17197
17198 #ifdef HAVE_SYS_TYPES_H
17199 #       include <sys/types.h>
17200 #endif
17201 #include <netinet/in.h>
17202 #ifdef HAVE_ARPA_NAMESER_H
17203 #       include <arpa/nameser.h>
17204 #endif
17205 #ifdef HAVE_RESOLV_H
17206 #       include <resolv.h>
17207 #endif
17208
17209 int
17210 main ()
17211 {
17212 {
17213         int len, status;
17214         char *request = NULL;
17215         unsigned char reply[64*1024];
17216         unsigned char host[64*1024];
17217         unsigned char *p;
17218
17219 #ifdef NS_HFIXEDSZ
17220         /* Bind 8/9 interface */
17221         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17222 #else
17223         /* Bind 4 interface */
17224 # ifndef T_SRV
17225 #  define T_SRV 33
17226 # endif
17227         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17228 #endif
17229         p = reply;
17230 #ifdef NS_HFIXEDSZ
17231         /* Bind 8/9 interface */
17232         p += NS_HFIXEDSZ;
17233 #elif defined(HFIXEDSZ)
17234         /* Bind 4 interface w/ HFIXEDSZ */
17235         p += HFIXEDSZ;
17236 #else
17237         /* Bind 4 interface w/o HFIXEDSZ */
17238         p += sizeof(HEADER);
17239 #endif
17240         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17241 }
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248   (eval $ac_link) 2>conftest.er1
17249   ac_status=$?
17250   grep -v '^ *+' conftest.er1 >conftest.err
17251   rm -f conftest.er1
17252   cat conftest.err >&5
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); } &&
17255          { ac_try='test -z "$ac_c_werror_flag"
17256                          || test ! -s conftest.err'
17257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258   (eval $ac_try) 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; } &&
17262          { ac_try='test -s conftest$ac_exeext'
17263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264   (eval $ac_try) 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; }; then
17268   ol_cv_resolver_resolv=yes
17269 else
17270   echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17272
17273 ol_cv_resolver_resolv=no
17274 fi
17275 rm -f conftest.err conftest.$ac_objext \
17276       conftest$ac_exeext conftest.$ac_ext
17277
17278         LIBS="$ol_LIBS"
17279
17280 fi
17281 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17282 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17283
17284         if test $ol_cv_resolver_resolv = yes ; then
17285                 ol_cv_lib_resolver=-lresolv
17286         fi
17287 fi
17288
17289 if test $ol_cv_lib_resolver = no ; then
17290         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17291 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17292 if test "${ol_cv_resolver_bind+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295
17296         ol_RESOLVER_LIB=-lbind
17297         ol_LIBS=$LIBS
17298         LIBS="$ol_RESOLVER_LIB $LIBS"
17299
17300         cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h.  */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h.  */
17306
17307 #ifdef HAVE_SYS_TYPES_H
17308 #       include <sys/types.h>
17309 #endif
17310 #include <netinet/in.h>
17311 #ifdef HAVE_ARPA_NAMESER_H
17312 #       include <arpa/nameser.h>
17313 #endif
17314 #ifdef HAVE_RESOLV_H
17315 #       include <resolv.h>
17316 #endif
17317
17318 int
17319 main ()
17320 {
17321 {
17322         int len, status;
17323         char *request = NULL;
17324         unsigned char reply[64*1024];
17325         unsigned char host[64*1024];
17326         unsigned char *p;
17327
17328 #ifdef NS_HFIXEDSZ
17329         /* Bind 8/9 interface */
17330         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17331 #else
17332         /* Bind 4 interface */
17333 # ifndef T_SRV
17334 #  define T_SRV 33
17335 # endif
17336         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17337 #endif
17338         p = reply;
17339 #ifdef NS_HFIXEDSZ
17340         /* Bind 8/9 interface */
17341         p += NS_HFIXEDSZ;
17342 #elif defined(HFIXEDSZ)
17343         /* Bind 4 interface w/ HFIXEDSZ */
17344         p += HFIXEDSZ;
17345 #else
17346         /* Bind 4 interface w/o HFIXEDSZ */
17347         p += sizeof(HEADER);
17348 #endif
17349         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17350 }
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17357   (eval $ac_link) 2>conftest.er1
17358   ac_status=$?
17359   grep -v '^ *+' conftest.er1 >conftest.err
17360   rm -f conftest.er1
17361   cat conftest.err >&5
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } &&
17364          { ac_try='test -z "$ac_c_werror_flag"
17365                          || test ! -s conftest.err'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; } &&
17371          { ac_try='test -s conftest$ac_exeext'
17372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373   (eval $ac_try) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; }; then
17377   ol_cv_resolver_bind=yes
17378 else
17379   echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 ol_cv_resolver_bind=no
17383 fi
17384 rm -f conftest.err conftest.$ac_objext \
17385       conftest$ac_exeext conftest.$ac_ext
17386
17387         LIBS="$ol_LIBS"
17388
17389 fi
17390 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17391 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17392
17393         if test $ol_cv_resolver_bind = yes ; then
17394                 ol_cv_lib_resolver=-lbind
17395         fi
17396 fi
17397
17398
17399
17400 ol_link_dnssrv=no
17401 if test "$ol_cv_lib_resolver" != no ; then
17402
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_RES_QUERY 1
17405 _ACEOF
17406
17407
17408         if test "$ol_enable_dnssrv" != no ; then
17409                 ol_link_dnssrv=yes
17410         fi
17411
17412         if test "$ol_cv_lib_resolver" != yes ; then
17413                 LIBS="$ol_cv_lib_resolver $LIBS"
17414         fi
17415 fi
17416
17417 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
17418         if test "$ol_link_dnssrv" = no ; then
17419                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17420 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17421    { (exit 1); exit 1; }; }
17422         fi
17423 else
17424         ol_enable_dnssrv=no
17425 fi
17426
17427
17428 for ac_func in hstrerror
17429 do
17430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17431 echo "$as_me:$LINENO: checking for $ac_func" >&5
17432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17433 if eval "test \"\${$as_ac_var+set}\" = set"; then
17434   echo $ECHO_N "(cached) $ECHO_C" >&6
17435 else
17436   cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h.  */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h.  */
17442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17444 #define $ac_func innocuous_$ac_func
17445
17446 /* System header to define __stub macros and hopefully few prototypes,
17447     which can conflict with char $ac_func (); below.
17448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17449     <limits.h> exists even on freestanding compilers.  */
17450
17451 #ifdef __STDC__
17452 # include <limits.h>
17453 #else
17454 # include <assert.h>
17455 #endif
17456
17457 #undef $ac_func
17458
17459 /* Override any gcc2 internal prototype to avoid an error.  */
17460 #ifdef __cplusplus
17461 extern "C"
17462 {
17463 #endif
17464 /* We use char because int might match the return type of a gcc2
17465    builtin and then its argument prototype would still apply.  */
17466 char $ac_func ();
17467 /* The GNU C library defines this for functions which it implements
17468     to always fail with ENOSYS.  Some functions are actually named
17469     something starting with __ and the normal name is an alias.  */
17470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17471 choke me
17472 #else
17473 char (*f) () = $ac_func;
17474 #endif
17475 #ifdef __cplusplus
17476 }
17477 #endif
17478
17479 int
17480 main ()
17481 {
17482 return f != $ac_func;
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 rm -f conftest.$ac_objext conftest$ac_exeext
17488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17489   (eval $ac_link) 2>conftest.er1
17490   ac_status=$?
17491   grep -v '^ *+' conftest.er1 >conftest.err
17492   rm -f conftest.er1
17493   cat conftest.err >&5
17494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495   (exit $ac_status); } &&
17496          { ac_try='test -z "$ac_c_werror_flag"
17497                          || test ! -s conftest.err'
17498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499   (eval $ac_try) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); }; } &&
17503          { ac_try='test -s conftest$ac_exeext'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   eval "$as_ac_var=yes"
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514 eval "$as_ac_var=no"
17515 fi
17516 rm -f conftest.err conftest.$ac_objext \
17517       conftest$ac_exeext conftest.$ac_ext
17518 fi
17519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17521 if test `eval echo '${'$as_ac_var'}'` = yes; then
17522   cat >>confdefs.h <<_ACEOF
17523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17524 _ACEOF
17525
17526 fi
17527 done
17528
17529
17530
17531
17532
17533
17534 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17535 do
17536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17537 echo "$as_me:$LINENO: checking for $ac_func" >&5
17538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17539 if eval "test \"\${$as_ac_var+set}\" = set"; then
17540   echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542   cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17550 #define $ac_func innocuous_$ac_func
17551
17552 /* System header to define __stub macros and hopefully few prototypes,
17553     which can conflict with char $ac_func (); below.
17554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17555     <limits.h> exists even on freestanding compilers.  */
17556
17557 #ifdef __STDC__
17558 # include <limits.h>
17559 #else
17560 # include <assert.h>
17561 #endif
17562
17563 #undef $ac_func
17564
17565 /* Override any gcc2 internal prototype to avoid an error.  */
17566 #ifdef __cplusplus
17567 extern "C"
17568 {
17569 #endif
17570 /* We use char because int might match the return type of a gcc2
17571    builtin and then its argument prototype would still apply.  */
17572 char $ac_func ();
17573 /* The GNU C library defines this for functions which it implements
17574     to always fail with ENOSYS.  Some functions are actually named
17575     something starting with __ and the normal name is an alias.  */
17576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17577 choke me
17578 #else
17579 char (*f) () = $ac_func;
17580 #endif
17581 #ifdef __cplusplus
17582 }
17583 #endif
17584
17585 int
17586 main ()
17587 {
17588 return f != $ac_func;
17589   ;
17590   return 0;
17591 }
17592 _ACEOF
17593 rm -f conftest.$ac_objext conftest$ac_exeext
17594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17595   (eval $ac_link) 2>conftest.er1
17596   ac_status=$?
17597   grep -v '^ *+' conftest.er1 >conftest.err
17598   rm -f conftest.er1
17599   cat conftest.err >&5
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); } &&
17602          { ac_try='test -z "$ac_c_werror_flag"
17603                          || test ! -s conftest.err'
17604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605   (eval $ac_try) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; } &&
17609          { ac_try='test -s conftest$ac_exeext'
17610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611   (eval $ac_try) 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; }; then
17615   eval "$as_ac_var=yes"
17616 else
17617   echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 eval "$as_ac_var=no"
17621 fi
17622 rm -f conftest.err conftest.$ac_objext \
17623       conftest$ac_exeext conftest.$ac_ext
17624 fi
17625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17627 if test `eval echo '${'$as_ac_var'}'` = yes; then
17628   cat >>confdefs.h <<_ACEOF
17629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 _ACEOF
17631
17632 fi
17633 done
17634
17635
17636 ol_link_ipv6=no
17637 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
17638         if test $ol_enable_ipv6 = yes ; then
17639                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17640 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17641    { (exit 1); exit 1; }; }
17642         fi
17643 elif test $ol_enable_ipv6 != no ; then
17644         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17645 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17646 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 else
17649
17650                 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h.  */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h.  */
17656
17657 #                       include <netinet/in.h>
17658 #                       ifdef INET6_ADDRSTRLEN
17659                                 __has_inet6_addrstrlen__;
17660 #                       endif
17661
17662 _ACEOF
17663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17664   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17665   ol_cv_inet6_addrstrlen=yes
17666 else
17667   ol_cv_inet6_addrstrlen=no
17668 fi
17669 rm -f conftest*
17670
17671 fi
17672 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17673 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17674
17675
17676         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17677 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17678 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681
17682                 cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 #include <sys/types.h>
17690 #include <sys/socket.h>
17691
17692 int
17693 main ()
17694 {
17695
17696                         struct sockaddr_storage ss;
17697
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704   (eval $ac_compile) 2>conftest.er1
17705   ac_status=$?
17706   grep -v '^ *+' conftest.er1 >conftest.err
17707   rm -f conftest.er1
17708   cat conftest.err >&5
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } &&
17711          { ac_try='test -z "$ac_c_werror_flag"
17712                          || test ! -s conftest.err'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; } &&
17718          { ac_try='test -s conftest.$ac_objext'
17719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720   (eval $ac_try) 2>&5
17721   ac_status=$?
17722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723   (exit $ac_status); }; }; then
17724   ol_cv_struct_sockaddr_storage=yes
17725 else
17726   echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 ol_cv_struct_sockaddr_storage=no
17730 fi
17731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17732 fi
17733 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17734 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17735
17736         if test $ol_cv_inet6_addrstrlen = yes \
17737                 -a $ol_cv_struct_sockaddr_storage = yes ; then
17738                 ol_link_ipv6=yes
17739         elif test $ol_enable_ipv6 = yes \
17740                         -a $ol_cv_inet6_addrstrlen = no ; then
17741                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17742 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17743    { (exit 1); exit 1; }; }
17744         elif test $ol_enable_ipv6 = yes \
17745                         -a $ol_cv_struct_sockaddr_storage = no ; then
17746                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17747 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17748    { (exit 1); exit 1; }; }
17749         fi
17750 fi
17751
17752 if test $ol_enable_local != no ; then
17753
17754 for ac_header in sys/un.h
17755 do
17756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17758   echo "$as_me:$LINENO: checking for $ac_header" >&5
17759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17761   echo $ECHO_N "(cached) $ECHO_C" >&6
17762 fi
17763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17765 else
17766   # Is the header compilable?
17767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h.  */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h.  */
17775 $ac_includes_default
17776 #include <$ac_header>
17777 _ACEOF
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780   (eval $ac_compile) 2>conftest.er1
17781   ac_status=$?
17782   grep -v '^ *+' conftest.er1 >conftest.err
17783   rm -f conftest.er1
17784   cat conftest.err >&5
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -z "$ac_c_werror_flag"
17788                          || test ! -s conftest.err'
17789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790   (eval $ac_try) 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; } &&
17794          { ac_try='test -s conftest.$ac_objext'
17795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796   (eval $ac_try) 2>&5
17797   ac_status=$?
17798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799   (exit $ac_status); }; }; then
17800   ac_header_compiler=yes
17801 else
17802   echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17804
17805 ac_header_compiler=no
17806 fi
17807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17808 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6
17810
17811 # Is the header present?
17812 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17814 cat >conftest.$ac_ext <<_ACEOF
17815 /* confdefs.h.  */
17816 _ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h.  */
17820 #include <$ac_header>
17821 _ACEOF
17822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17824   ac_status=$?
17825   grep -v '^ *+' conftest.er1 >conftest.err
17826   rm -f conftest.er1
17827   cat conftest.err >&5
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); } >/dev/null; then
17830   if test -s conftest.err; then
17831     ac_cpp_err=$ac_c_preproc_warn_flag
17832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17833   else
17834     ac_cpp_err=
17835   fi
17836 else
17837   ac_cpp_err=yes
17838 fi
17839 if test -z "$ac_cpp_err"; then
17840   ac_header_preproc=yes
17841 else
17842   echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17844
17845   ac_header_preproc=no
17846 fi
17847 rm -f conftest.err conftest.$ac_ext
17848 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17849 echo "${ECHO_T}$ac_header_preproc" >&6
17850
17851 # So?  What about this header?
17852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17853   yes:no: )
17854     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17858     ac_header_preproc=yes
17859     ;;
17860   no:yes:* )
17861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17863     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17864 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17865     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17867     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17868 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17871     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17873     (
17874       cat <<\_ASBOX
17875 ## ------------------------------------------ ##
17876 ## Report this to the AC_PACKAGE_NAME lists.  ##
17877 ## ------------------------------------------ ##
17878 _ASBOX
17879     ) |
17880       sed "s/^/$as_me: WARNING:     /" >&2
17881     ;;
17882 esac
17883 echo "$as_me:$LINENO: checking for $ac_header" >&5
17884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17886   echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888   eval "$as_ac_Header=\$ac_header_preproc"
17889 fi
17890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17892
17893 fi
17894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17895   cat >>confdefs.h <<_ACEOF
17896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17897 _ACEOF
17898
17899 fi
17900
17901 done
17902
17903
17904         if test $ol_enable_local = auto ; then
17905                 ol_enable_local=$ac_cv_header_sys_un_h
17906         elif test $ac_cv_header_sys_un_h = no ; then
17907                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17908 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17909    { (exit 1); exit 1; }; }
17910         fi
17911 fi
17912
17913 ol_link_kbind=no
17914 ol_link_krb5=no
17915 ol_link_krb4=no
17916
17917 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
17918         -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
17919         -o $ol_with_kerberos = k425 ; then
17920
17921
17922 for ac_header in krb5.h
17923 do
17924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17926   echo "$as_me:$LINENO: checking for $ac_header" >&5
17927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 fi
17931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17933 else
17934   # Is the header compilable?
17935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943 $ac_includes_default
17944 #include <$ac_header>
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948   (eval $ac_compile) 2>conftest.er1
17949   ac_status=$?
17950   grep -v '^ *+' conftest.er1 >conftest.err
17951   rm -f conftest.er1
17952   cat conftest.err >&5
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); } &&
17955          { ac_try='test -z "$ac_c_werror_flag"
17956                          || test ! -s conftest.err'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; } &&
17962          { ac_try='test -s conftest.$ac_objext'
17963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964   (eval $ac_try) 2>&5
17965   ac_status=$?
17966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967   (exit $ac_status); }; }; then
17968   ac_header_compiler=yes
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 ac_header_compiler=no
17974 fi
17975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17977 echo "${ECHO_T}$ac_header_compiler" >&6
17978
17979 # Is the header present?
17980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988 #include <$ac_header>
17989 _ACEOF
17990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } >/dev/null; then
17998   if test -s conftest.err; then
17999     ac_cpp_err=$ac_c_preproc_warn_flag
18000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18001   else
18002     ac_cpp_err=
18003   fi
18004 else
18005   ac_cpp_err=yes
18006 fi
18007 if test -z "$ac_cpp_err"; then
18008   ac_header_preproc=yes
18009 else
18010   echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013   ac_header_preproc=no
18014 fi
18015 rm -f conftest.err conftest.$ac_ext
18016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18017 echo "${ECHO_T}$ac_header_preproc" >&6
18018
18019 # So?  What about this header?
18020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18021   yes:no: )
18022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18026     ac_header_preproc=yes
18027     ;;
18028   no:yes:* )
18029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18041     (
18042       cat <<\_ASBOX
18043 ## ------------------------------------------ ##
18044 ## Report this to the AC_PACKAGE_NAME lists.  ##
18045 ## ------------------------------------------ ##
18046 _ASBOX
18047     ) |
18048       sed "s/^/$as_me: WARNING:     /" >&2
18049     ;;
18050 esac
18051 echo "$as_me:$LINENO: checking for $ac_header" >&5
18052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   eval "$as_ac_Header=\$ac_header_preproc"
18057 fi
18058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18060
18061 fi
18062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18063   cat >>confdefs.h <<_ACEOF
18064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18065 _ACEOF
18066
18067 fi
18068
18069 done
18070
18071
18072         if test $ac_cv_header_krb5_h = yes ; then
18073
18074 for ac_header in heim_err.h
18075 do
18076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18078   echo "$as_me:$LINENO: checking for $ac_header" >&5
18079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18081   echo $ECHO_N "(cached) $ECHO_C" >&6
18082 fi
18083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18085 else
18086   # Is the header compilable?
18087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18089 cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 $ac_includes_default
18096 #include <$ac_header>
18097 _ACEOF
18098 rm -f conftest.$ac_objext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18100   (eval $ac_compile) 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } &&
18107          { ac_try='test -z "$ac_c_werror_flag"
18108                          || test ! -s conftest.err'
18109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110   (eval $ac_try) 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; } &&
18114          { ac_try='test -s conftest.$ac_objext'
18115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116   (eval $ac_try) 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120   ac_header_compiler=yes
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_header_compiler=no
18126 fi
18127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18129 echo "${ECHO_T}$ac_header_compiler" >&6
18130
18131 # Is the header present?
18132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 #include <$ac_header>
18141 _ACEOF
18142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18144   ac_status=$?
18145   grep -v '^ *+' conftest.er1 >conftest.err
18146   rm -f conftest.er1
18147   cat conftest.err >&5
18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149   (exit $ac_status); } >/dev/null; then
18150   if test -s conftest.err; then
18151     ac_cpp_err=$ac_c_preproc_warn_flag
18152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18153   else
18154     ac_cpp_err=
18155   fi
18156 else
18157   ac_cpp_err=yes
18158 fi
18159 if test -z "$ac_cpp_err"; then
18160   ac_header_preproc=yes
18161 else
18162   echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165   ac_header_preproc=no
18166 fi
18167 rm -f conftest.err conftest.$ac_ext
18168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18169 echo "${ECHO_T}$ac_header_preproc" >&6
18170
18171 # So?  What about this header?
18172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18173   yes:no: )
18174     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18178     ac_header_preproc=yes
18179     ;;
18180   no:yes:* )
18181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18183     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18184 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18185     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18187     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18188 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18191     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18193     (
18194       cat <<\_ASBOX
18195 ## ------------------------------------------ ##
18196 ## Report this to the AC_PACKAGE_NAME lists.  ##
18197 ## ------------------------------------------ ##
18198 _ASBOX
18199     ) |
18200       sed "s/^/$as_me: WARNING:     /" >&2
18201     ;;
18202 esac
18203 echo "$as_me:$LINENO: checking for $ac_header" >&5
18204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   eval "$as_ac_Header=\$ac_header_preproc"
18209 fi
18210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18212
18213 fi
18214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18215   cat >>confdefs.h <<_ACEOF
18216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18217 _ACEOF
18218
18219 fi
18220
18221 done
18222
18223                 if test $ac_cv_header_heim_err_h = yes ; then
18224                         krb5_impl=heimdal
18225                 else
18226                         krb5_impl=mit
18227                 fi
18228
18229                 if test $krb5_impl = mit; then
18230                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18231 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18232 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18233   echo $ECHO_N "(cached) $ECHO_C" >&6
18234 else
18235   ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-lk5crypto  $LIBS"
18237 cat >conftest.$ac_ext <<_ACEOF
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244
18245 int
18246 main ()
18247 {
18248 main ();
18249   ;
18250   return 0;
18251 }
18252 _ACEOF
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255   (eval $ac_link) 2>conftest.er1
18256   ac_status=$?
18257   grep -v '^ *+' conftest.er1 >conftest.err
18258   rm -f conftest.er1
18259   cat conftest.err >&5
18260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261   (exit $ac_status); } &&
18262          { ac_try='test -z "$ac_c_werror_flag"
18263                          || test ! -s conftest.err'
18264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265   (eval $ac_try) 2>&5
18266   ac_status=$?
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); }; } &&
18269          { ac_try='test -s conftest$ac_exeext'
18270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271   (eval $ac_try) 2>&5
18272   ac_status=$?
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); }; }; then
18275   ac_cv_lib_k5crypto_main=yes
18276 else
18277   echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280 ac_cv_lib_k5crypto_main=no
18281 fi
18282 rm -f conftest.err conftest.$ac_objext \
18283       conftest$ac_exeext conftest.$ac_ext
18284 LIBS=$ac_check_lib_save_LIBS
18285 fi
18286 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18287 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18288 if test $ac_cv_lib_k5crypto_main = yes; then
18289   krb5crypto=k5crypto
18290 else
18291   krb5crypto=crypto
18292 fi
18293
18294
18295                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18296 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18297 if test "${ac_cv_lib_krb5_main+set}" = set; then
18298   echo $ECHO_N "(cached) $ECHO_C" >&6
18299 else
18300   ac_check_lib_save_LIBS=$LIBS
18301 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308
18309
18310 int
18311 main ()
18312 {
18313 main ();
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320   (eval $ac_link) 2>conftest.er1
18321   ac_status=$?
18322   grep -v '^ *+' conftest.er1 >conftest.err
18323   rm -f conftest.er1
18324   cat conftest.err >&5
18325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326   (exit $ac_status); } &&
18327          { ac_try='test -z "$ac_c_werror_flag"
18328                          || test ! -s conftest.err'
18329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330   (eval $ac_try) 2>&5
18331   ac_status=$?
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); }; } &&
18334          { ac_try='test -s conftest$ac_exeext'
18335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336   (eval $ac_try) 2>&5
18337   ac_status=$?
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); }; }; then
18340   ac_cv_lib_krb5_main=yes
18341 else
18342   echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_cv_lib_krb5_main=no
18346 fi
18347 rm -f conftest.err conftest.$ac_objext \
18348       conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18350 fi
18351 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18352 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18353 if test $ac_cv_lib_krb5_main = yes; then
18354   have_krb5=yes
18355                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18356 else
18357   have_krb5=no
18358 fi
18359
18360
18361                 elif test $krb5_impl = heimdal; then
18362                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18363 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18364 if test "${ac_cv_lib_des_main+set}" = set; then
18365   echo $ECHO_N "(cached) $ECHO_C" >&6
18366 else
18367   ac_check_lib_save_LIBS=$LIBS
18368 LIBS="-ldes  $LIBS"
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375
18376
18377 int
18378 main ()
18379 {
18380 main ();
18381   ;
18382   return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387   (eval $ac_link) 2>conftest.er1
18388   ac_status=$?
18389   grep -v '^ *+' conftest.er1 >conftest.err
18390   rm -f conftest.er1
18391   cat conftest.err >&5
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); } &&
18394          { ac_try='test -z "$ac_c_werror_flag"
18395                          || test ! -s conftest.err'
18396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397   (eval $ac_try) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; } &&
18401          { ac_try='test -s conftest$ac_exeext'
18402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403   (eval $ac_try) 2>&5
18404   ac_status=$?
18405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406   (exit $ac_status); }; }; then
18407   ac_cv_lib_des_main=yes
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_lib_des_main=no
18413 fi
18414 rm -f conftest.err conftest.$ac_objext \
18415       conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18417 fi
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18419 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18420 if test $ac_cv_lib_des_main = yes; then
18421   krb5crypto=des
18422 else
18423   krb5crypto=crypto
18424 fi
18425
18426
18427                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18428 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18429 if test "${ac_cv_lib_krb5_main+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440
18441
18442 int
18443 main ()
18444 {
18445 main ();
18446   ;
18447   return 0;
18448 }
18449 _ACEOF
18450 rm -f conftest.$ac_objext conftest$ac_exeext
18451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18452   (eval $ac_link) 2>conftest.er1
18453   ac_status=$?
18454   grep -v '^ *+' conftest.er1 >conftest.err
18455   rm -f conftest.er1
18456   cat conftest.err >&5
18457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458   (exit $ac_status); } &&
18459          { ac_try='test -z "$ac_c_werror_flag"
18460                          || test ! -s conftest.err'
18461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462   (eval $ac_try) 2>&5
18463   ac_status=$?
18464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); }; } &&
18466          { ac_try='test -s conftest$ac_exeext'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; }; then
18472   ac_cv_lib_krb5_main=yes
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_lib_krb5_main=no
18478 fi
18479 rm -f conftest.err conftest.$ac_objext \
18480       conftest$ac_exeext conftest.$ac_ext
18481 LIBS=$ac_check_lib_save_LIBS
18482 fi
18483 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18484 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18485 if test $ac_cv_lib_krb5_main = yes; then
18486   have_krb5=yes
18487                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18488 else
18489   have_krb5=no
18490 fi
18491
18492
18493
18494 cat >>confdefs.h <<\_ACEOF
18495 #define HAVE_HEIMDAL_KERBEROS 1
18496 _ACEOF
18497
18498
18499                 else
18500                         have_krb5=no
18501                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18502 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18503                 fi
18504
18505                 if test $have_krb5 = yes ; then
18506                         ol_link_krb5=yes
18507
18508
18509 cat >>confdefs.h <<\_ACEOF
18510 #define HAVE_KRB5 1
18511 _ACEOF
18512
18513
18514                         if test $ol_with_kerberos = k5only ; then
18515                                 ol_with_kerberos=found
18516                         fi
18517
18518                 elif test $ol_with_kerberos != auto ; then
18519                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18520 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18521    { (exit 1); exit 1; }; }
18522                 fi
18523
18524         fi
18525 fi
18526
18527 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
18528         $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
18529
18530
18531
18532 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18533 do
18534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18536   echo "$as_me:$LINENO: checking for $ac_header" >&5
18537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18539   echo $ECHO_N "(cached) $ECHO_C" >&6
18540 fi
18541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18543 else
18544   # Is the header compilable?
18545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18547 cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h.  */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h.  */
18553 $ac_includes_default
18554 #include <$ac_header>
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18558   (eval $ac_compile) 2>conftest.er1
18559   ac_status=$?
18560   grep -v '^ *+' conftest.er1 >conftest.err
18561   rm -f conftest.er1
18562   cat conftest.err >&5
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); } &&
18565          { ac_try='test -z "$ac_c_werror_flag"
18566                          || test ! -s conftest.err'
18567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568   (eval $ac_try) 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; } &&
18572          { ac_try='test -s conftest.$ac_objext'
18573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574   (eval $ac_try) 2>&5
18575   ac_status=$?
18576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); }; }; then
18578   ac_header_compiler=yes
18579 else
18580   echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583 ac_header_compiler=no
18584 fi
18585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18587 echo "${ECHO_T}$ac_header_compiler" >&6
18588
18589 # Is the header present?
18590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h.  */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h.  */
18598 #include <$ac_header>
18599 _ACEOF
18600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18602   ac_status=$?
18603   grep -v '^ *+' conftest.er1 >conftest.err
18604   rm -f conftest.er1
18605   cat conftest.err >&5
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } >/dev/null; then
18608   if test -s conftest.err; then
18609     ac_cpp_err=$ac_c_preproc_warn_flag
18610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18611   else
18612     ac_cpp_err=
18613   fi
18614 else
18615   ac_cpp_err=yes
18616 fi
18617 if test -z "$ac_cpp_err"; then
18618   ac_header_preproc=yes
18619 else
18620   echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18622
18623   ac_header_preproc=no
18624 fi
18625 rm -f conftest.err conftest.$ac_ext
18626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18627 echo "${ECHO_T}$ac_header_preproc" >&6
18628
18629 # So?  What about this header?
18630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18631   yes:no: )
18632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18636     ac_header_preproc=yes
18637     ;;
18638   no:yes:* )
18639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18651     (
18652       cat <<\_ASBOX
18653 ## ------------------------------------------ ##
18654 ## Report this to the AC_PACKAGE_NAME lists.  ##
18655 ## ------------------------------------------ ##
18656 _ASBOX
18657     ) |
18658       sed "s/^/$as_me: WARNING:     /" >&2
18659     ;;
18660 esac
18661 echo "$as_me:$LINENO: checking for $ac_header" >&5
18662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18664   echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666   eval "$as_ac_Header=\$ac_header_preproc"
18667 fi
18668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18670
18671 fi
18672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18673   cat >>confdefs.h <<_ACEOF
18674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18675 _ACEOF
18676
18677 fi
18678
18679 done
18680
18681
18682         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18683                 if test $krb5_impl = mit; then
18684                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18685 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18686 if test "${ac_cv_lib_krb4_main+set}" = set; then
18687   echo $ECHO_N "(cached) $ECHO_C" >&6
18688 else
18689   ac_check_lib_save_LIBS=$LIBS
18690 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18691 cat >conftest.$ac_ext <<_ACEOF
18692 /* confdefs.h.  */
18693 _ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h.  */
18697
18698
18699 int
18700 main ()
18701 {
18702 main ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18709   (eval $ac_link) 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } &&
18716          { ac_try='test -z "$ac_c_werror_flag"
18717                          || test ! -s conftest.err'
18718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719   (eval $ac_try) 2>&5
18720   ac_status=$?
18721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); }; } &&
18723          { ac_try='test -s conftest$ac_exeext'
18724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725   (eval $ac_try) 2>&5
18726   ac_status=$?
18727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728   (exit $ac_status); }; }; then
18729   ac_cv_lib_krb4_main=yes
18730 else
18731   echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734 ac_cv_lib_krb4_main=no
18735 fi
18736 rm -f conftest.err conftest.$ac_objext \
18737       conftest$ac_exeext conftest.$ac_ext
18738 LIBS=$ac_check_lib_save_LIBS
18739 fi
18740 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18741 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18742 if test $ac_cv_lib_krb4_main = yes; then
18743   have_k425=yes
18744                                 KRB4_LIBS="-lkrb4 -ldes425"
18745 else
18746   have_k425=no
18747 fi
18748
18749
18750                 elif test $krb5_impl = heimdal; then
18751                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18752 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18753 if test "${ac_cv_lib_krb4_main+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h.  */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h.  */
18764
18765
18766 int
18767 main ()
18768 {
18769 main ();
18770   ;
18771   return 0;
18772 }
18773 _ACEOF
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18776   (eval $ac_link) 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } &&
18783          { ac_try='test -z "$ac_c_werror_flag"
18784                          || test ! -s conftest.err'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; } &&
18790          { ac_try='test -s conftest$ac_exeext'
18791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792   (eval $ac_try) 2>&5
18793   ac_status=$?
18794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795   (exit $ac_status); }; }; then
18796   ac_cv_lib_krb4_main=yes
18797 else
18798   echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18800
18801 ac_cv_lib_krb4_main=no
18802 fi
18803 rm -f conftest.err conftest.$ac_objext \
18804       conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18806 fi
18807 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18808 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18809 if test $ac_cv_lib_krb4_main = yes; then
18810   have_k425=yes
18811                                 KRB4_LIBS="-lkrb4"
18812 else
18813   have_k425=no
18814 fi
18815
18816
18817                 else
18818                         have_425=no
18819                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18820 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18821                 fi
18822
18823                 if test $have_k425 = yes ; then
18824                         ol_with_kerberos=found
18825                         ol_link_krb4=yes
18826
18827
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_KRB425 1
18830 _ACEOF
18831
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define HAVE_KRB4 1
18835 _ACEOF
18836
18837
18838                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18839 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18840 if test "${ol_cv_var_des_debug+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843
18844                                                                 save_LIBS="$LIBS"
18845                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18846                                 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852
18853 #include <kerberosIV/krb.h>
18854 #include <kerberosIV/des.h>
18855 extern int des_debug;
18856
18857 int
18858 main ()
18859 {
18860
18861 des_debug = 1;
18862
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18869   (eval $ac_link) 2>conftest.er1
18870   ac_status=$?
18871   grep -v '^ *+' conftest.er1 >conftest.err
18872   rm -f conftest.er1
18873   cat conftest.err >&5
18874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875   (exit $ac_status); } &&
18876          { ac_try='test -z "$ac_c_werror_flag"
18877                          || test ! -s conftest.err'
18878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879   (eval $ac_try) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); }; } &&
18883          { ac_try='test -s conftest$ac_exeext'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; }; then
18889   ol_cv_var_des_debug=yes
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ol_cv_var_des_debug=no
18895 fi
18896 rm -f conftest.err conftest.$ac_objext \
18897       conftest$ac_exeext conftest.$ac_ext
18898                                                                 LIBS="$save_LIBS"
18899
18900 fi
18901 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18902 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18903
18904                         if test $ol_cv_var_des_debug = yes ; then
18905
18906 cat >>confdefs.h <<\_ACEOF
18907 #define HAVE_DES_DEBUG 1
18908 _ACEOF
18909
18910                         fi
18911
18912                         LIBS="$save_LIBS"
18913                 fi
18914         fi
18915 fi
18916
18917 if test $ol_link_krb5 = yes ; then
18918         ol_with_kerberos=found
18919 fi
18920
18921 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
18922         -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
18923
18924
18925
18926
18927 for ac_header in krb.h des.h krb-archaeology.h
18928 do
18929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18931   echo "$as_me:$LINENO: checking for $ac_header" >&5
18932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 fi
18936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18938 else
18939   # Is the header compilable?
18940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h.  */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h.  */
18948 $ac_includes_default
18949 #include <$ac_header>
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953   (eval $ac_compile) 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } &&
18960          { ac_try='test -z "$ac_c_werror_flag"
18961                          || test ! -s conftest.err'
18962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963   (eval $ac_try) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; } &&
18967          { ac_try='test -s conftest.$ac_objext'
18968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969   (eval $ac_try) 2>&5
18970   ac_status=$?
18971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972   (exit $ac_status); }; }; then
18973   ac_header_compiler=yes
18974 else
18975   echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18977
18978 ac_header_compiler=no
18979 fi
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18982 echo "${ECHO_T}$ac_header_compiler" >&6
18983
18984 # Is the header present?
18985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18987 cat >conftest.$ac_ext <<_ACEOF
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993 #include <$ac_header>
18994 _ACEOF
18995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18997   ac_status=$?
18998   grep -v '^ *+' conftest.er1 >conftest.err
18999   rm -f conftest.er1
19000   cat conftest.err >&5
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); } >/dev/null; then
19003   if test -s conftest.err; then
19004     ac_cpp_err=$ac_c_preproc_warn_flag
19005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19006   else
19007     ac_cpp_err=
19008   fi
19009 else
19010   ac_cpp_err=yes
19011 fi
19012 if test -z "$ac_cpp_err"; then
19013   ac_header_preproc=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018   ac_header_preproc=no
19019 fi
19020 rm -f conftest.err conftest.$ac_ext
19021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19022 echo "${ECHO_T}$ac_header_preproc" >&6
19023
19024 # So?  What about this header?
19025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19026   yes:no: )
19027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19031     ac_header_preproc=yes
19032     ;;
19033   no:yes:* )
19034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19046     (
19047       cat <<\_ASBOX
19048 ## ------------------------------------------ ##
19049 ## Report this to the AC_PACKAGE_NAME lists.  ##
19050 ## ------------------------------------------ ##
19051 _ASBOX
19052     ) |
19053       sed "s/^/$as_me: WARNING:     /" >&2
19054     ;;
19055 esac
19056 echo "$as_me:$LINENO: checking for $ac_header" >&5
19057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19059   echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061   eval "$as_ac_Header=\$ac_header_preproc"
19062 fi
19063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19065
19066 fi
19067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19068   cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19070 _ACEOF
19071
19072 fi
19073
19074 done
19075
19076
19077         if test $ac_cv_header_krb_h = yes ; then
19078                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19079 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19080 if test "${ac_cv_lib_krb_main+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   ac_check_lib_save_LIBS=$LIBS
19084 LIBS="-lkrb -ldes $LIBS"
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091
19092
19093 int
19094 main ()
19095 {
19096 main ();
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103   (eval $ac_link) 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -z "$ac_c_werror_flag"
19111                          || test ! -s conftest.err'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; } &&
19117          { ac_try='test -s conftest$ac_exeext'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_lib_krb_main=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_krb_main=no
19129 fi
19130 rm -f conftest.err conftest.$ac_objext \
19131       conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19135 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19136 if test $ac_cv_lib_krb_main = yes; then
19137   have_k4=yes
19138 else
19139   have_k4=no
19140 fi
19141
19142
19143                 if test $have_k4 = yes ; then
19144                         ol_with_kerberos=found
19145                         ol_link_krb4=yes
19146
19147
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_KRB4 1
19150 _ACEOF
19151
19152
19153                         KRB4_LIBS="-lkrb -ldes"
19154
19155                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19156
19157 cat >>confdefs.h <<\_ACEOF
19158 #define HAVE_KTH_KERBEROS 1
19159 _ACEOF
19160
19161                         fi
19162                 fi
19163         fi
19164 fi
19165
19166 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
19167         ol_link_kbind=yes
19168
19169 elif test $ol_enable_kbind = yes ; then
19170         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19171 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19172    { (exit 1); exit 1; }; }
19173 fi
19174
19175 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
19176
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_KERBEROS 1
19179 _ACEOF
19180
19181
19182 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
19183         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19184 echo "$as_me: error: Kerberos detection failed" >&2;}
19185    { (exit 1); exit 1; }; }
19186 fi
19187
19188
19189 ol_link_tls=no
19190 if test $ol_with_tls != no ; then
19191
19192
19193 for ac_header in openssl/ssl.h ssl.h
19194 do
19195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19197   echo "$as_me:$LINENO: checking for $ac_header" >&5
19198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19200   echo $ECHO_N "(cached) $ECHO_C" >&6
19201 fi
19202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19204 else
19205   # Is the header compilable?
19206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h.  */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h.  */
19214 $ac_includes_default
19215 #include <$ac_header>
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219   (eval $ac_compile) 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } &&
19226          { ac_try='test -z "$ac_c_werror_flag"
19227                          || test ! -s conftest.err'
19228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229   (eval $ac_try) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); }; } &&
19233          { ac_try='test -s conftest.$ac_objext'
19234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235   (eval $ac_try) 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; }; then
19239   ac_header_compiler=yes
19240 else
19241   echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ac_header_compiler=no
19245 fi
19246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248 echo "${ECHO_T}$ac_header_compiler" >&6
19249
19250 # Is the header present?
19251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259 #include <$ac_header>
19260 _ACEOF
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263   ac_status=$?
19264   grep -v '^ *+' conftest.er1 >conftest.err
19265   rm -f conftest.er1
19266   cat conftest.err >&5
19267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268   (exit $ac_status); } >/dev/null; then
19269   if test -s conftest.err; then
19270     ac_cpp_err=$ac_c_preproc_warn_flag
19271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19272   else
19273     ac_cpp_err=
19274   fi
19275 else
19276   ac_cpp_err=yes
19277 fi
19278 if test -z "$ac_cpp_err"; then
19279   ac_header_preproc=yes
19280 else
19281   echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284   ac_header_preproc=no
19285 fi
19286 rm -f conftest.err conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288 echo "${ECHO_T}$ac_header_preproc" >&6
19289
19290 # So?  What about this header?
19291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19292   yes:no: )
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19297     ac_header_preproc=yes
19298     ;;
19299   no:yes:* )
19300     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19302     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19303 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19304     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19306     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19307 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19310     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19312     (
19313       cat <<\_ASBOX
19314 ## ------------------------------------------ ##
19315 ## Report this to the AC_PACKAGE_NAME lists.  ##
19316 ## ------------------------------------------ ##
19317 _ASBOX
19318     ) |
19319       sed "s/^/$as_me: WARNING:     /" >&2
19320     ;;
19321 esac
19322 echo "$as_me:$LINENO: checking for $ac_header" >&5
19323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19325   echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327   eval "$as_ac_Header=\$ac_header_preproc"
19328 fi
19329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19331
19332 fi
19333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19334   cat >>confdefs.h <<_ACEOF
19335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19336 _ACEOF
19337
19338 fi
19339
19340 done
19341
19342
19343         if test $ac_cv_header_openssl_ssl_h = yes \
19344                 -o $ac_cv_header_ssl_h = yes ; then
19345                 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
19346 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
19347 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   ac_check_lib_save_LIBS=$LIBS
19351 LIBS="-lssl -lcrypto $LIBS"
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358
19359 /* Override any gcc2 internal prototype to avoid an error.  */
19360 #ifdef __cplusplus
19361 extern "C"
19362 #endif
19363 /* We use char because int might match the return type of a gcc2
19364    builtin and then its argument prototype would still apply.  */
19365 char SSLeay_add_ssl_algorithms ();
19366 int
19367 main ()
19368 {
19369 SSLeay_add_ssl_algorithms ();
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext conftest$ac_exeext
19375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19376   (eval $ac_link) 2>conftest.er1
19377   ac_status=$?
19378   grep -v '^ *+' conftest.er1 >conftest.err
19379   rm -f conftest.er1
19380   cat conftest.err >&5
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } &&
19383          { ac_try='test -z "$ac_c_werror_flag"
19384                          || test ! -s conftest.err'
19385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386   (eval $ac_try) 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; } &&
19390          { ac_try='test -s conftest$ac_exeext'
19391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392   (eval $ac_try) 2>&5
19393   ac_status=$?
19394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395   (exit $ac_status); }; }; then
19396   ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
19397 else
19398   echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19400
19401 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
19402 fi
19403 rm -f conftest.err conftest.$ac_objext \
19404       conftest$ac_exeext conftest.$ac_ext
19405 LIBS=$ac_check_lib_save_LIBS
19406 fi
19407 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
19408 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
19409 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
19410   have_ssleay=yes
19411                         need_rsaref=no
19412 else
19413   have_ssleay=no
19414 fi
19415
19416
19417                 if test $have_ssleay = no ; then
19418                         echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19419 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19420 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19421   echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423   ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lssl -lcrypto $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h.  */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h.  */
19431
19432 /* Override any gcc2 internal prototype to avoid an error.  */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 /* We use char because int might match the return type of a gcc2
19437    builtin and then its argument prototype would still apply.  */
19438 char SSL_library_init ();
19439 int
19440 main ()
19441 {
19442 SSL_library_init ();
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19449   (eval $ac_link) 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } &&
19456          { ac_try='test -z "$ac_c_werror_flag"
19457                          || test ! -s conftest.err'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; } &&
19463          { ac_try='test -s conftest$ac_exeext'
19464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465   (eval $ac_try) 2>&5
19466   ac_status=$?
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); }; }; then
19469   ac_cv_lib_ssl_SSL_library_init=yes
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474 ac_cv_lib_ssl_SSL_library_init=no
19475 fi
19476 rm -f conftest.err conftest.$ac_objext \
19477       conftest$ac_exeext conftest.$ac_ext
19478 LIBS=$ac_check_lib_save_LIBS
19479 fi
19480 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19481 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19482 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19483   have_ssleay=yes
19484                                 need_rsaref=no
19485 else
19486   have_ssleay=no
19487 fi
19488
19489                 fi
19490
19491                 if test $have_ssleay = no ; then
19492                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19493 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19494 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497   ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h.  */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h.  */
19505
19506 /* Override any gcc2 internal prototype to avoid an error.  */
19507 #ifdef __cplusplus
19508 extern "C"
19509 #endif
19510 /* We use char because int might match the return type of a gcc2
19511    builtin and then its argument prototype would still apply.  */
19512 char ssl3_accept ();
19513 int
19514 main ()
19515 {
19516 ssl3_accept ();
19517   ;
19518   return 0;
19519 }
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523   (eval $ac_link) 2>conftest.er1
19524   ac_status=$?
19525   grep -v '^ *+' conftest.er1 >conftest.err
19526   rm -f conftest.er1
19527   cat conftest.err >&5
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); } &&
19530          { ac_try='test -z "$ac_c_werror_flag"
19531                          || test ! -s conftest.err'
19532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533   (eval $ac_try) 2>&5
19534   ac_status=$?
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); }; } &&
19537          { ac_try='test -s conftest$ac_exeext'
19538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539   (eval $ac_try) 2>&5
19540   ac_status=$?
19541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542   (exit $ac_status); }; }; then
19543   ac_cv_lib_ssl_ssl3_accept=yes
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548 ac_cv_lib_ssl_ssl3_accept=no
19549 fi
19550 rm -f conftest.err conftest.$ac_objext \
19551       conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19553 fi
19554 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19555 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19556 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19557   have_ssleay=yes
19558                                 need_rsaref=yes
19559 else
19560   have_ssleay=no
19561 fi
19562
19563                 fi
19564
19565                 if test $have_ssleay = yes ; then
19566                         ol_with_tls=found
19567                         ol_link_tls=yes
19568
19569
19570 cat >>confdefs.h <<\_ACEOF
19571 #define HAVE_SSLEAY 1
19572 _ACEOF
19573
19574
19575                         if test $need_rsaref = yes; then
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define HAVE_RSAREF 1
19579 _ACEOF
19580
19581
19582                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19583                         else
19584                                 TLS_LIBS="-lssl -lcrypto"
19585                         fi
19586                 fi
19587                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19588 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19589 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592
19593         cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599
19600 #ifdef HAVE_OPENSSL_SSL_H
19601 #include <openssl/ssl.h>
19602 #else
19603 #include <ssl.h>
19604 #endif
19605
19606 /* Require 0.9.7d+ */
19607 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19608         char *__ssl_compat = "0.9.7d";
19609 #endif
19610
19611 _ACEOF
19612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19613   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19614   ol_cv_ssl_crl_compat=yes
19615 else
19616   ol_cv_ssl_crl_compat=no
19617 fi
19618 rm -f conftest*
19619
19620 fi
19621 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19622 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19623
19624                 if test $ol_cv_ssl_crl_compat = no ; then
19625                         ol_link_ssl=no
19626                 else
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define HAVE_OPENSSL_CRL 1
19630 _ACEOF
19631
19632                 fi
19633         fi
19634
19635 else
19636         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19637 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19638 fi
19639
19640 WITH_TLS=no
19641 if test $ol_link_tls = yes ; then
19642
19643 cat >>confdefs.h <<\_ACEOF
19644 #define HAVE_TLS 1
19645 _ACEOF
19646
19647         WITH_TLS=yes
19648
19649 elif test $ol_with_tls = auto ; then
19650         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19651 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19652         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19653 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19654
19655 elif test $ol_with_tls != no ; then
19656         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19657 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19658    { (exit 1); exit 1; }; }
19659 fi
19660
19661 if test $ol_enable_lmpasswd != no; then
19662         if test $ol_link_tls != yes ; then
19663                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19664 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19665    { (exit 1); exit 1; }; }
19666         fi
19667
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define SLAPD_LMHASH 1
19671 _ACEOF
19672
19673 fi
19674
19675 ol_link_threads=no
19676
19677 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19678         -o $ol_with_threads = nt ; then
19679
19680
19681         echo "$as_me:$LINENO: checking for _beginthread" >&5
19682 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19683 if test "${ac_cv_func__beginthread+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19694 #define _beginthread innocuous__beginthread
19695
19696 /* System header to define __stub macros and hopefully few prototypes,
19697     which can conflict with char _beginthread (); below.
19698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699     <limits.h> exists even on freestanding compilers.  */
19700
19701 #ifdef __STDC__
19702 # include <limits.h>
19703 #else
19704 # include <assert.h>
19705 #endif
19706
19707 #undef _beginthread
19708
19709 /* Override any gcc2 internal prototype to avoid an error.  */
19710 #ifdef __cplusplus
19711 extern "C"
19712 {
19713 #endif
19714 /* We use char because int might match the return type of a gcc2
19715    builtin and then its argument prototype would still apply.  */
19716 char _beginthread ();
19717 /* The GNU C library defines this for functions which it implements
19718     to always fail with ENOSYS.  Some functions are actually named
19719     something starting with __ and the normal name is an alias.  */
19720 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19721 choke me
19722 #else
19723 char (*f) () = _beginthread;
19724 #endif
19725 #ifdef __cplusplus
19726 }
19727 #endif
19728
19729 int
19730 main ()
19731 {
19732 return f != _beginthread;
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19739   (eval $ac_link) 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } &&
19746          { ac_try='test -z "$ac_c_werror_flag"
19747                          || test ! -s conftest.err'
19748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749   (eval $ac_try) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; } &&
19753          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19759   ac_cv_func__beginthread=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_cv_func__beginthread=no
19765 fi
19766 rm -f conftest.err conftest.$ac_objext \
19767       conftest$ac_exeext conftest.$ac_ext
19768 fi
19769 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19770 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19771
19772
19773         if test $ac_cv_func__beginthread = yes ; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_NT_THREADS 1
19777 _ACEOF
19778
19779                 ol_cv_nt_threads=yes
19780         fi
19781
19782
19783         if test "$ol_cv_nt_threads" = yes ; then
19784                 ol_link_threads=nt
19785                 ol_with_threads=found
19786                 ol_with_yielding_select=yes
19787
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_NT_SERVICE_MANAGER 1
19791 _ACEOF
19792
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_NT_EVENT_LOG 1
19796 _ACEOF
19797
19798         fi
19799
19800         if test $ol_with_threads = nt ; then
19801                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19802 echo "$as_me: error: could not locate NT Threads" >&2;}
19803    { (exit 1); exit 1; }; }
19804         fi
19805 fi
19806
19807 if test $ol_with_threads = auto -o $ol_with_threads = yes \
19808         -o $ol_with_threads = posix ; then
19809
19810
19811 for ac_header in pthread.h
19812 do
19813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19815   echo "$as_me:$LINENO: checking for $ac_header" >&5
19816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19818   echo $ECHO_N "(cached) $ECHO_C" >&6
19819 fi
19820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19822 else
19823   # Is the header compilable?
19824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19826 cat >conftest.$ac_ext <<_ACEOF
19827 /* confdefs.h.  */
19828 _ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h.  */
19832 $ac_includes_default
19833 #include <$ac_header>
19834 _ACEOF
19835 rm -f conftest.$ac_objext
19836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19837   (eval $ac_compile) 2>conftest.er1
19838   ac_status=$?
19839   grep -v '^ *+' conftest.er1 >conftest.err
19840   rm -f conftest.er1
19841   cat conftest.err >&5
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); } &&
19844          { ac_try='test -z "$ac_c_werror_flag"
19845                          || test ! -s conftest.err'
19846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847   (eval $ac_try) 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; } &&
19851          { ac_try='test -s conftest.$ac_objext'
19852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853   (eval $ac_try) 2>&5
19854   ac_status=$?
19855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856   (exit $ac_status); }; }; then
19857   ac_header_compiler=yes
19858 else
19859   echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 ac_header_compiler=no
19863 fi
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19866 echo "${ECHO_T}$ac_header_compiler" >&6
19867
19868 # Is the header present?
19869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19871 cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 #include <$ac_header>
19878 _ACEOF
19879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } >/dev/null; then
19887   if test -s conftest.err; then
19888     ac_cpp_err=$ac_c_preproc_warn_flag
19889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19890   else
19891     ac_cpp_err=
19892   fi
19893 else
19894   ac_cpp_err=yes
19895 fi
19896 if test -z "$ac_cpp_err"; then
19897   ac_header_preproc=yes
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902   ac_header_preproc=no
19903 fi
19904 rm -f conftest.err conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19906 echo "${ECHO_T}$ac_header_preproc" >&6
19907
19908 # So?  What about this header?
19909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19910   yes:no: )
19911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19915     ac_header_preproc=yes
19916     ;;
19917   no:yes:* )
19918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19930     (
19931       cat <<\_ASBOX
19932 ## ------------------------------------------ ##
19933 ## Report this to the AC_PACKAGE_NAME lists.  ##
19934 ## ------------------------------------------ ##
19935 _ASBOX
19936     ) |
19937       sed "s/^/$as_me: WARNING:     /" >&2
19938     ;;
19939 esac
19940 echo "$as_me:$LINENO: checking for $ac_header" >&5
19941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   eval "$as_ac_Header=\$ac_header_preproc"
19946 fi
19947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19949
19950 fi
19951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19952   cat >>confdefs.h <<_ACEOF
19953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19954 _ACEOF
19955
19956 fi
19957
19958 done
19959
19960
19961         if test $ac_cv_header_pthread_h = yes ; then
19962                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19963 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19964 if test "${ol_cv_pthread_version+set}" = set; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967
19968         cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h.  */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h.  */
19974
19975 #               include <pthread.h>
19976
19977 int
19978 main ()
19979 {
19980
19981                 int i = PTHREAD_CREATE_JOINABLE;
19982
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989   (eval $ac_compile) 2>conftest.er1
19990   ac_status=$?
19991   grep -v '^ *+' conftest.er1 >conftest.err
19992   rm -f conftest.er1
19993   cat conftest.err >&5
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); } &&
19996          { ac_try='test -z "$ac_c_werror_flag"
19997                          || test ! -s conftest.err'
19998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999   (eval $ac_try) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); }; } &&
20003          { ac_try='test -s conftest.$ac_objext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009
20010         cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 #include <pthread.h>
20017
20018 _ACEOF
20019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20020   $EGREP "pthread_detach" >/dev/null 2>&1; then
20021   ol_cv_pthread_version=10
20022 else
20023   ol_cv_pthread_version=8
20024 fi
20025 rm -f conftest*
20026
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031
20032         cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h.  */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h.  */
20038
20039 #               include <pthread.h>
20040 #               ifdef PTHREAD_CREATE_UNDETACHED
20041                 draft7
20042 #               endif
20043
20044 _ACEOF
20045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20046   $EGREP "draft7" >/dev/null 2>&1; then
20047   ol_cv_pthread_version=7
20048 else
20049
20050         cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 #include <pthread.h>
20057
20058 _ACEOF
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20061   ol_cv_pthread_version=6
20062 else
20063
20064         cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070
20071 #               include <pthread.h>
20072 #ifdef          PTHREAD_MUTEX_INITIALIZER
20073                 draft5
20074 #endif
20075
20076 _ACEOF
20077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20078   $EGREP "draft5" >/dev/null 2>&1; then
20079   ol_cv_pthread_version=5
20080 else
20081   ol_cv_pthread_version=4
20082 fi
20083 rm -f conftest*
20084
20085 fi
20086 rm -f conftest*
20087
20088 fi
20089 rm -f conftest*
20090
20091 fi
20092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20093
20094 fi
20095 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20096 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20097
20098
20099                 if test $ol_cv_pthread_version != 0 ; then
20100
20101 cat >>confdefs.h <<_ACEOF
20102 #define HAVE_PTHREADS $ol_cv_pthread_version
20103 _ACEOF
20104
20105                 else
20106                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20107 echo "$as_me: error: unknown pthread version" >&2;}
20108    { (exit 1); exit 1; }; }
20109                 fi
20110
20111                 # consider threads found
20112                 ol_with_threads=found
20113
20114
20115         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20116 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20117 if test "${ol_cv_header_linux_threads+set}" = set; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120   cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 #include <pthread.h>
20127 _ACEOF
20128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20129   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20130   ol_cv_header_linux_threads=yes
20131 else
20132   ol_cv_header_linux_threads=no
20133 fi
20134 rm -f conftest*
20135
20136
20137 fi
20138 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20139 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20140         if test $ol_cv_header_linux_threads = yes; then
20141
20142 cat >>confdefs.h <<\_ACEOF
20143 #define HAVE_LINUX_THREADS 1
20144 _ACEOF
20145
20146         fi
20147
20148
20149         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20150 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20151 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20152   echo $ECHO_N "(cached) $ECHO_C" >&6
20153 else
20154   cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160 #include <pthread.h>
20161 #ifdef _POSIX_THREAD_IS_GNU_PTH
20162         __gnu_pth__;
20163 #endif
20164
20165 _ACEOF
20166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20167   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20168   ol_cv_header_gnu_pth_pthread_h=yes
20169 else
20170   ol_cv_header_gnu_pth_pthread_h=no
20171 fi
20172 rm -f conftest*
20173
20174
20175 fi
20176 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20177 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20178
20179
20180                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20181
20182 for ac_header in sched.h
20183 do
20184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20186   echo "$as_me:$LINENO: checking for $ac_header" >&5
20187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 fi
20191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20193 else
20194   # Is the header compilable?
20195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h.  */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h.  */
20203 $ac_includes_default
20204 #include <$ac_header>
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208   (eval $ac_compile) 2>conftest.er1
20209   ac_status=$?
20210   grep -v '^ *+' conftest.er1 >conftest.err
20211   rm -f conftest.er1
20212   cat conftest.err >&5
20213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214   (exit $ac_status); } &&
20215          { ac_try='test -z "$ac_c_werror_flag"
20216                          || test ! -s conftest.err'
20217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218   (eval $ac_try) 2>&5
20219   ac_status=$?
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); }; } &&
20222          { ac_try='test -s conftest.$ac_objext'
20223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224   (eval $ac_try) 2>&5
20225   ac_status=$?
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); }; }; then
20228   ac_header_compiler=yes
20229 else
20230   echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 ac_header_compiler=no
20234 fi
20235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6
20238
20239 # Is the header present?
20240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 #include <$ac_header>
20249 _ACEOF
20250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20252   ac_status=$?
20253   grep -v '^ *+' conftest.er1 >conftest.err
20254   rm -f conftest.er1
20255   cat conftest.err >&5
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); } >/dev/null; then
20258   if test -s conftest.err; then
20259     ac_cpp_err=$ac_c_preproc_warn_flag
20260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20261   else
20262     ac_cpp_err=
20263   fi
20264 else
20265   ac_cpp_err=yes
20266 fi
20267 if test -z "$ac_cpp_err"; then
20268   ac_header_preproc=yes
20269 else
20270   echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273   ac_header_preproc=no
20274 fi
20275 rm -f conftest.err conftest.$ac_ext
20276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20277 echo "${ECHO_T}$ac_header_preproc" >&6
20278
20279 # So?  What about this header?
20280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20281   yes:no: )
20282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20286     ac_header_preproc=yes
20287     ;;
20288   no:yes:* )
20289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20301     (
20302       cat <<\_ASBOX
20303 ## ------------------------------------------ ##
20304 ## Report this to the AC_PACKAGE_NAME lists.  ##
20305 ## ------------------------------------------ ##
20306 _ASBOX
20307     ) |
20308       sed "s/^/$as_me: WARNING:     /" >&2
20309     ;;
20310 esac
20311 echo "$as_me:$LINENO: checking for $ac_header" >&5
20312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20314   echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316   eval "$as_ac_Header=\$ac_header_preproc"
20317 fi
20318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20320
20321 fi
20322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20323   cat >>confdefs.h <<_ACEOF
20324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20325 _ACEOF
20326
20327 fi
20328
20329 done
20330
20331                 fi
20332
20333
20334                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20335 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20336 if test "${ol_cv_pthread_create+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339
20340                         if test "$cross_compiling" = yes; then
20341   cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347
20348 /* pthread test headers */
20349 #include <pthread.h>
20350 #if HAVE_PTHREADS < 7
20351 #include <errno.h>
20352 #endif
20353 #ifndef NULL
20354 #define NULL (void*)0
20355 #endif
20356
20357 static void *task(p)
20358         void *p;
20359 {
20360         return (void *) (p == NULL);
20361 }
20362
20363 int
20364 main ()
20365 {
20366
20367         /* pthread test function */
20368 #ifndef PTHREAD_CREATE_DETACHED
20369 #define PTHREAD_CREATE_DETACHED 1
20370 #endif
20371         pthread_t t;
20372         int status;
20373         int detach = PTHREAD_CREATE_DETACHED;
20374
20375 #if HAVE_PTHREADS > 4
20376         /* Final pthreads */
20377         pthread_attr_t attr;
20378
20379         status = pthread_attr_init(&attr);
20380         if( status ) return status;
20381
20382 #if HAVE_PTHREADS < 7
20383         status = pthread_attr_setdetachstate(&attr, &detach);
20384         if( status < 0 ) status = errno;
20385 #else
20386         status = pthread_attr_setdetachstate(&attr, detach);
20387 #endif
20388         if( status ) return status;
20389         status = pthread_create( &t, &attr, task, NULL );
20390 #if HAVE_PTHREADS < 7
20391         if( status < 0 ) status = errno;
20392 #endif
20393         if( status ) return status;
20394 #else
20395         /* Draft 4 pthreads */
20396         status = pthread_create( &t, pthread_attr_default, task, NULL );
20397         if( status ) return errno;
20398
20399         /* give thread a chance to complete */
20400         /* it should remain joinable and hence detachable */
20401         sleep( 1 );
20402
20403         status = pthread_detach( &t );
20404         if( status ) return errno;
20405 #endif
20406
20407 #ifdef HAVE_LINUX_THREADS
20408         pthread_kill_other_threads_np();
20409 #endif
20410
20411         return 0;
20412
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 rm -f conftest.$ac_objext conftest$ac_exeext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20419   (eval $ac_link) 2>conftest.er1
20420   ac_status=$?
20421   grep -v '^ *+' conftest.er1 >conftest.err
20422   rm -f conftest.er1
20423   cat conftest.err >&5
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); } &&
20426          { ac_try='test -z "$ac_c_werror_flag"
20427                          || test ! -s conftest.err'
20428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429   (eval $ac_try) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } &&
20433          { ac_try='test -s conftest$ac_exeext'
20434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435   (eval $ac_try) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   ol_cv_pthread_create=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444 ol_cv_pthread_create=no
20445 fi
20446 rm -f conftest.err conftest.$ac_objext \
20447       conftest$ac_exeext conftest.$ac_ext
20448 else
20449   cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455
20456 /* pthread test headers */
20457 #include <pthread.h>
20458 #if HAVE_PTHREADS < 7
20459 #include <errno.h>
20460 #endif
20461 #ifndef NULL
20462 #define NULL (void*)0
20463 #endif
20464
20465 static void *task(p)
20466         void *p;
20467 {
20468         return (void *) (p == NULL);
20469 }
20470
20471
20472 int main(argc, argv)
20473         int argc;
20474         char **argv;
20475 {
20476
20477         /* pthread test function */
20478 #ifndef PTHREAD_CREATE_DETACHED
20479 #define PTHREAD_CREATE_DETACHED 1
20480 #endif
20481         pthread_t t;
20482         int status;
20483         int detach = PTHREAD_CREATE_DETACHED;
20484
20485 #if HAVE_PTHREADS > 4
20486         /* Final pthreads */
20487         pthread_attr_t attr;
20488
20489         status = pthread_attr_init(&attr);
20490         if( status ) return status;
20491
20492 #if HAVE_PTHREADS < 7
20493         status = pthread_attr_setdetachstate(&attr, &detach);
20494         if( status < 0 ) status = errno;
20495 #else
20496         status = pthread_attr_setdetachstate(&attr, detach);
20497 #endif
20498         if( status ) return status;
20499         status = pthread_create( &t, &attr, task, NULL );
20500 #if HAVE_PTHREADS < 7
20501         if( status < 0 ) status = errno;
20502 #endif
20503         if( status ) return status;
20504 #else
20505         /* Draft 4 pthreads */
20506         status = pthread_create( &t, pthread_attr_default, task, NULL );
20507         if( status ) return errno;
20508
20509         /* give thread a chance to complete */
20510         /* it should remain joinable and hence detachable */
20511         sleep( 1 );
20512
20513         status = pthread_detach( &t );
20514         if( status ) return errno;
20515 #endif
20516
20517 #ifdef HAVE_LINUX_THREADS
20518         pthread_kill_other_threads_np();
20519 #endif
20520
20521         return 0;
20522
20523 }
20524
20525 _ACEOF
20526 rm -f conftest$ac_exeext
20527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20528   (eval $ac_link) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533   (eval $ac_try) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; }; then
20537   ol_cv_pthread_create=yes
20538 else
20539   echo "$as_me: program exited with status $ac_status" >&5
20540 echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20542
20543 ( exit $ac_status )
20544 ol_cv_pthread_create=no
20545 fi
20546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20547 fi
20548 fi
20549 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20550 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20551
20552                 if test $ol_cv_pthread_create != no ; then
20553                         ol_link_threads=posix
20554                         ol_link_pthreads=""
20555                 fi
20556
20557                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20558 if test "$ol_link_threads" = no ; then
20559         # try -kthread
20560         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20561 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20562 if test "${ol_cv_pthread_kthread+set}" = set; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565
20566                 # save the flags
20567                 ol_LIBS="$LIBS"
20568                 LIBS="-kthread $LIBS"
20569
20570                 if test "$cross_compiling" = yes; then
20571   cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h.  */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h.  */
20577
20578 /* pthread test headers */
20579 #include <pthread.h>
20580 #if HAVE_PTHREADS < 7
20581 #include <errno.h>
20582 #endif
20583 #ifndef NULL
20584 #define NULL (void*)0
20585 #endif
20586
20587 static void *task(p)
20588         void *p;
20589 {
20590         return (void *) (p == NULL);
20591 }
20592
20593 int
20594 main ()
20595 {
20596
20597         /* pthread test function */
20598 #ifndef PTHREAD_CREATE_DETACHED
20599 #define PTHREAD_CREATE_DETACHED 1
20600 #endif
20601         pthread_t t;
20602         int status;
20603         int detach = PTHREAD_CREATE_DETACHED;
20604
20605 #if HAVE_PTHREADS > 4
20606         /* Final pthreads */
20607         pthread_attr_t attr;
20608
20609         status = pthread_attr_init(&attr);
20610         if( status ) return status;
20611
20612 #if HAVE_PTHREADS < 7
20613         status = pthread_attr_setdetachstate(&attr, &detach);
20614         if( status < 0 ) status = errno;
20615 #else
20616         status = pthread_attr_setdetachstate(&attr, detach);
20617 #endif
20618         if( status ) return status;
20619         status = pthread_create( &t, &attr, task, NULL );
20620 #if HAVE_PTHREADS < 7
20621         if( status < 0 ) status = errno;
20622 #endif
20623         if( status ) return status;
20624 #else
20625         /* Draft 4 pthreads */
20626         status = pthread_create( &t, pthread_attr_default, task, NULL );
20627         if( status ) return errno;
20628
20629         /* give thread a chance to complete */
20630         /* it should remain joinable and hence detachable */
20631         sleep( 1 );
20632
20633         status = pthread_detach( &t );
20634         if( status ) return errno;
20635 #endif
20636
20637 #ifdef HAVE_LINUX_THREADS
20638         pthread_kill_other_threads_np();
20639 #endif
20640
20641         return 0;
20642
20643   ;
20644   return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20649   (eval $ac_link) 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } &&
20656          { ac_try='test -z "$ac_c_werror_flag"
20657                          || test ! -s conftest.err'
20658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659   (eval $ac_try) 2>&5
20660   ac_status=$?
20661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); }; } &&
20663          { ac_try='test -s conftest$ac_exeext'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; }; then
20669   ol_cv_pthread_kthread=yes
20670 else
20671   echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20673
20674 ol_cv_pthread_kthread=no
20675 fi
20676 rm -f conftest.err conftest.$ac_objext \
20677       conftest$ac_exeext conftest.$ac_ext
20678 else
20679   cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h.  */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h.  */
20685
20686 /* pthread test headers */
20687 #include <pthread.h>
20688 #if HAVE_PTHREADS < 7
20689 #include <errno.h>
20690 #endif
20691 #ifndef NULL
20692 #define NULL (void*)0
20693 #endif
20694
20695 static void *task(p)
20696         void *p;
20697 {
20698         return (void *) (p == NULL);
20699 }
20700
20701
20702 int main(argc, argv)
20703         int argc;
20704         char **argv;
20705 {
20706
20707         /* pthread test function */
20708 #ifndef PTHREAD_CREATE_DETACHED
20709 #define PTHREAD_CREATE_DETACHED 1
20710 #endif
20711         pthread_t t;
20712         int status;
20713         int detach = PTHREAD_CREATE_DETACHED;
20714
20715 #if HAVE_PTHREADS > 4
20716         /* Final pthreads */
20717         pthread_attr_t attr;
20718
20719         status = pthread_attr_init(&attr);
20720         if( status ) return status;
20721
20722 #if HAVE_PTHREADS < 7
20723         status = pthread_attr_setdetachstate(&attr, &detach);
20724         if( status < 0 ) status = errno;
20725 #else
20726         status = pthread_attr_setdetachstate(&attr, detach);
20727 #endif
20728         if( status ) return status;
20729         status = pthread_create( &t, &attr, task, NULL );
20730 #if HAVE_PTHREADS < 7
20731         if( status < 0 ) status = errno;
20732 #endif
20733         if( status ) return status;
20734 #else
20735         /* Draft 4 pthreads */
20736         status = pthread_create( &t, pthread_attr_default, task, NULL );
20737         if( status ) return errno;
20738
20739         /* give thread a chance to complete */
20740         /* it should remain joinable and hence detachable */
20741         sleep( 1 );
20742
20743         status = pthread_detach( &t );
20744         if( status ) return errno;
20745 #endif
20746
20747 #ifdef HAVE_LINUX_THREADS
20748         pthread_kill_other_threads_np();
20749 #endif
20750
20751         return 0;
20752
20753 }
20754
20755 _ACEOF
20756 rm -f conftest$ac_exeext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20758   (eval $ac_link) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763   (eval $ac_try) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   ol_cv_pthread_kthread=yes
20768 else
20769   echo "$as_me: program exited with status $ac_status" >&5
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 ( exit $ac_status )
20774 ol_cv_pthread_kthread=no
20775 fi
20776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20777 fi
20778
20779                 # restore the LIBS
20780                 LIBS="$ol_LIBS"
20781
20782 fi
20783 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20784 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20785
20786         if test $ol_cv_pthread_kthread = yes ; then
20787                 ol_link_pthreads="-kthread"
20788                 ol_link_threads=posix
20789         fi
20790 fi
20791
20792                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20793 if test "$ol_link_threads" = no ; then
20794         # try -pthread
20795         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20796 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20797 if test "${ol_cv_pthread_pthread+set}" = set; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800
20801                 # save the flags
20802                 ol_LIBS="$LIBS"
20803                 LIBS="-pthread $LIBS"
20804
20805                 if test "$cross_compiling" = yes; then
20806   cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h.  */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h.  */
20812
20813 /* pthread test headers */
20814 #include <pthread.h>
20815 #if HAVE_PTHREADS < 7
20816 #include <errno.h>
20817 #endif
20818 #ifndef NULL
20819 #define NULL (void*)0
20820 #endif
20821
20822 static void *task(p)
20823         void *p;
20824 {
20825         return (void *) (p == NULL);
20826 }
20827
20828 int
20829 main ()
20830 {
20831
20832         /* pthread test function */
20833 #ifndef PTHREAD_CREATE_DETACHED
20834 #define PTHREAD_CREATE_DETACHED 1
20835 #endif
20836         pthread_t t;
20837         int status;
20838         int detach = PTHREAD_CREATE_DETACHED;
20839
20840 #if HAVE_PTHREADS > 4
20841         /* Final pthreads */
20842         pthread_attr_t attr;
20843
20844         status = pthread_attr_init(&attr);
20845         if( status ) return status;
20846
20847 #if HAVE_PTHREADS < 7
20848         status = pthread_attr_setdetachstate(&attr, &detach);
20849         if( status < 0 ) status = errno;
20850 #else
20851         status = pthread_attr_setdetachstate(&attr, detach);
20852 #endif
20853         if( status ) return status;
20854         status = pthread_create( &t, &attr, task, NULL );
20855 #if HAVE_PTHREADS < 7
20856         if( status < 0 ) status = errno;
20857 #endif
20858         if( status ) return status;
20859 #else
20860         /* Draft 4 pthreads */
20861         status = pthread_create( &t, pthread_attr_default, task, NULL );
20862         if( status ) return errno;
20863
20864         /* give thread a chance to complete */
20865         /* it should remain joinable and hence detachable */
20866         sleep( 1 );
20867
20868         status = pthread_detach( &t );
20869         if( status ) return errno;
20870 #endif
20871
20872 #ifdef HAVE_LINUX_THREADS
20873         pthread_kill_other_threads_np();
20874 #endif
20875
20876         return 0;
20877
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20884   (eval $ac_link) 2>conftest.er1
20885   ac_status=$?
20886   grep -v '^ *+' conftest.er1 >conftest.err
20887   rm -f conftest.er1
20888   cat conftest.err >&5
20889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890   (exit $ac_status); } &&
20891          { ac_try='test -z "$ac_c_werror_flag"
20892                          || test ! -s conftest.err'
20893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894   (eval $ac_try) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); }; } &&
20898          { ac_try='test -s conftest$ac_exeext'
20899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900   (eval $ac_try) 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; }; then
20904   ol_cv_pthread_pthread=yes
20905 else
20906   echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ol_cv_pthread_pthread=no
20910 fi
20911 rm -f conftest.err conftest.$ac_objext \
20912       conftest$ac_exeext conftest.$ac_ext
20913 else
20914   cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920
20921 /* pthread test headers */
20922 #include <pthread.h>
20923 #if HAVE_PTHREADS < 7
20924 #include <errno.h>
20925 #endif
20926 #ifndef NULL
20927 #define NULL (void*)0
20928 #endif
20929
20930 static void *task(p)
20931         void *p;
20932 {
20933         return (void *) (p == NULL);
20934 }
20935
20936
20937 int main(argc, argv)
20938         int argc;
20939         char **argv;
20940 {
20941
20942         /* pthread test function */
20943 #ifndef PTHREAD_CREATE_DETACHED
20944 #define PTHREAD_CREATE_DETACHED 1
20945 #endif
20946         pthread_t t;
20947         int status;
20948         int detach = PTHREAD_CREATE_DETACHED;
20949
20950 #if HAVE_PTHREADS > 4
20951         /* Final pthreads */
20952         pthread_attr_t attr;
20953
20954         status = pthread_attr_init(&attr);
20955         if( status ) return status;
20956
20957 #if HAVE_PTHREADS < 7
20958         status = pthread_attr_setdetachstate(&attr, &detach);
20959         if( status < 0 ) status = errno;
20960 #else
20961         status = pthread_attr_setdetachstate(&attr, detach);
20962 #endif
20963         if( status ) return status;
20964         status = pthread_create( &t, &attr, task, NULL );
20965 #if HAVE_PTHREADS < 7
20966         if( status < 0 ) status = errno;
20967 #endif
20968         if( status ) return status;
20969 #else
20970         /* Draft 4 pthreads */
20971         status = pthread_create( &t, pthread_attr_default, task, NULL );
20972         if( status ) return errno;
20973
20974         /* give thread a chance to complete */
20975         /* it should remain joinable and hence detachable */
20976         sleep( 1 );
20977
20978         status = pthread_detach( &t );
20979         if( status ) return errno;
20980 #endif
20981
20982 #ifdef HAVE_LINUX_THREADS
20983         pthread_kill_other_threads_np();
20984 #endif
20985
20986         return 0;
20987
20988 }
20989
20990 _ACEOF
20991 rm -f conftest$ac_exeext
20992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20993   (eval $ac_link) 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998   (eval $ac_try) 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); }; }; then
21002   ol_cv_pthread_pthread=yes
21003 else
21004   echo "$as_me: program exited with status $ac_status" >&5
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ( exit $ac_status )
21009 ol_cv_pthread_pthread=no
21010 fi
21011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21012 fi
21013
21014                 # restore the LIBS
21015                 LIBS="$ol_LIBS"
21016
21017 fi
21018 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21019 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21020
21021         if test $ol_cv_pthread_pthread = yes ; then
21022                 ol_link_pthreads="-pthread"
21023                 ol_link_threads=posix
21024         fi
21025 fi
21026
21027                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21028 if test "$ol_link_threads" = no ; then
21029         # try -pthreads
21030         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21031 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21032 if test "${ol_cv_pthread_pthreads+set}" = set; then
21033   echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035
21036                 # save the flags
21037                 ol_LIBS="$LIBS"
21038                 LIBS="-pthreads $LIBS"
21039
21040                 if test "$cross_compiling" = yes; then
21041   cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h.  */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h.  */
21047
21048 /* pthread test headers */
21049 #include <pthread.h>
21050 #if HAVE_PTHREADS < 7
21051 #include <errno.h>
21052 #endif
21053 #ifndef NULL
21054 #define NULL (void*)0
21055 #endif
21056
21057 static void *task(p)
21058         void *p;
21059 {
21060         return (void *) (p == NULL);
21061 }
21062
21063 int
21064 main ()
21065 {
21066
21067         /* pthread test function */
21068 #ifndef PTHREAD_CREATE_DETACHED
21069 #define PTHREAD_CREATE_DETACHED 1
21070 #endif
21071         pthread_t t;
21072         int status;
21073         int detach = PTHREAD_CREATE_DETACHED;
21074
21075 #if HAVE_PTHREADS > 4
21076         /* Final pthreads */
21077         pthread_attr_t attr;
21078
21079         status = pthread_attr_init(&attr);
21080         if( status ) return status;
21081
21082 #if HAVE_PTHREADS < 7
21083         status = pthread_attr_setdetachstate(&attr, &detach);
21084         if( status < 0 ) status = errno;
21085 #else
21086         status = pthread_attr_setdetachstate(&attr, detach);
21087 #endif
21088         if( status ) return status;
21089         status = pthread_create( &t, &attr, task, NULL );
21090 #if HAVE_PTHREADS < 7
21091         if( status < 0 ) status = errno;
21092 #endif
21093         if( status ) return status;
21094 #else
21095         /* Draft 4 pthreads */
21096         status = pthread_create( &t, pthread_attr_default, task, NULL );
21097         if( status ) return errno;
21098
21099         /* give thread a chance to complete */
21100         /* it should remain joinable and hence detachable */
21101         sleep( 1 );
21102
21103         status = pthread_detach( &t );
21104         if( status ) return errno;
21105 #endif
21106
21107 #ifdef HAVE_LINUX_THREADS
21108         pthread_kill_other_threads_np();
21109 #endif
21110
21111         return 0;
21112
21113   ;
21114   return 0;
21115 }
21116 _ACEOF
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21119   (eval $ac_link) 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } &&
21126          { ac_try='test -z "$ac_c_werror_flag"
21127                          || test ! -s conftest.err'
21128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129   (eval $ac_try) 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; } &&
21133          { ac_try='test -s conftest$ac_exeext'
21134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135   (eval $ac_try) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; }; then
21139   ol_cv_pthread_pthreads=yes
21140 else
21141   echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 ol_cv_pthread_pthreads=no
21145 fi
21146 rm -f conftest.err conftest.$ac_objext \
21147       conftest$ac_exeext conftest.$ac_ext
21148 else
21149   cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155
21156 /* pthread test headers */
21157 #include <pthread.h>
21158 #if HAVE_PTHREADS < 7
21159 #include <errno.h>
21160 #endif
21161 #ifndef NULL
21162 #define NULL (void*)0
21163 #endif
21164
21165 static void *task(p)
21166         void *p;
21167 {
21168         return (void *) (p == NULL);
21169 }
21170
21171
21172 int main(argc, argv)
21173         int argc;
21174         char **argv;
21175 {
21176
21177         /* pthread test function */
21178 #ifndef PTHREAD_CREATE_DETACHED
21179 #define PTHREAD_CREATE_DETACHED 1
21180 #endif
21181         pthread_t t;
21182         int status;
21183         int detach = PTHREAD_CREATE_DETACHED;
21184
21185 #if HAVE_PTHREADS > 4
21186         /* Final pthreads */
21187         pthread_attr_t attr;
21188
21189         status = pthread_attr_init(&attr);
21190         if( status ) return status;
21191
21192 #if HAVE_PTHREADS < 7
21193         status = pthread_attr_setdetachstate(&attr, &detach);
21194         if( status < 0 ) status = errno;
21195 #else
21196         status = pthread_attr_setdetachstate(&attr, detach);
21197 #endif
21198         if( status ) return status;
21199         status = pthread_create( &t, &attr, task, NULL );
21200 #if HAVE_PTHREADS < 7
21201         if( status < 0 ) status = errno;
21202 #endif
21203         if( status ) return status;
21204 #else
21205         /* Draft 4 pthreads */
21206         status = pthread_create( &t, pthread_attr_default, task, NULL );
21207         if( status ) return errno;
21208
21209         /* give thread a chance to complete */
21210         /* it should remain joinable and hence detachable */
21211         sleep( 1 );
21212
21213         status = pthread_detach( &t );
21214         if( status ) return errno;
21215 #endif
21216
21217 #ifdef HAVE_LINUX_THREADS
21218         pthread_kill_other_threads_np();
21219 #endif
21220
21221         return 0;
21222
21223 }
21224
21225 _ACEOF
21226 rm -f conftest$ac_exeext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21228   (eval $ac_link) 2>&5
21229   ac_status=$?
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; }; then
21237   ol_cv_pthread_pthreads=yes
21238 else
21239   echo "$as_me: program exited with status $ac_status" >&5
21240 echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243 ( exit $ac_status )
21244 ol_cv_pthread_pthreads=no
21245 fi
21246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21247 fi
21248
21249                 # restore the LIBS
21250                 LIBS="$ol_LIBS"
21251
21252 fi
21253 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21254 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21255
21256         if test $ol_cv_pthread_pthreads = yes ; then
21257                 ol_link_pthreads="-pthreads"
21258                 ol_link_threads=posix
21259         fi
21260 fi
21261
21262                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21263 if test "$ol_link_threads" = no ; then
21264         # try -mthreads
21265         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21266 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21267 if test "${ol_cv_pthread_mthreads+set}" = set; then
21268   echo $ECHO_N "(cached) $ECHO_C" >&6
21269 else
21270
21271                 # save the flags
21272                 ol_LIBS="$LIBS"
21273                 LIBS="-mthreads $LIBS"
21274
21275                 if test "$cross_compiling" = yes; then
21276   cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283 /* pthread test headers */
21284 #include <pthread.h>
21285 #if HAVE_PTHREADS < 7
21286 #include <errno.h>
21287 #endif
21288 #ifndef NULL
21289 #define NULL (void*)0
21290 #endif
21291
21292 static void *task(p)
21293         void *p;
21294 {
21295         return (void *) (p == NULL);
21296 }
21297
21298 int
21299 main ()
21300 {
21301
21302         /* pthread test function */
21303 #ifndef PTHREAD_CREATE_DETACHED
21304 #define PTHREAD_CREATE_DETACHED 1
21305 #endif
21306         pthread_t t;
21307         int status;
21308         int detach = PTHREAD_CREATE_DETACHED;
21309
21310 #if HAVE_PTHREADS > 4
21311         /* Final pthreads */
21312         pthread_attr_t attr;
21313
21314         status = pthread_attr_init(&attr);
21315         if( status ) return status;
21316
21317 #if HAVE_PTHREADS < 7
21318         status = pthread_attr_setdetachstate(&attr, &detach);
21319         if( status < 0 ) status = errno;
21320 #else
21321         status = pthread_attr_setdetachstate(&attr, detach);
21322 #endif
21323         if( status ) return status;
21324         status = pthread_create( &t, &attr, task, NULL );
21325 #if HAVE_PTHREADS < 7
21326         if( status < 0 ) status = errno;
21327 #endif
21328         if( status ) return status;
21329 #else
21330         /* Draft 4 pthreads */
21331         status = pthread_create( &t, pthread_attr_default, task, NULL );
21332         if( status ) return errno;
21333
21334         /* give thread a chance to complete */
21335         /* it should remain joinable and hence detachable */
21336         sleep( 1 );
21337
21338         status = pthread_detach( &t );
21339         if( status ) return errno;
21340 #endif
21341
21342 #ifdef HAVE_LINUX_THREADS
21343         pthread_kill_other_threads_np();
21344 #endif
21345
21346         return 0;
21347
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21354   (eval $ac_link) 2>conftest.er1
21355   ac_status=$?
21356   grep -v '^ *+' conftest.er1 >conftest.err
21357   rm -f conftest.er1
21358   cat conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } &&
21361          { ac_try='test -z "$ac_c_werror_flag"
21362                          || test ! -s conftest.err'
21363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364   (eval $ac_try) 2>&5
21365   ac_status=$?
21366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367   (exit $ac_status); }; } &&
21368          { ac_try='test -s conftest$ac_exeext'
21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370   (eval $ac_try) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; }; then
21374   ol_cv_pthread_mthreads=yes
21375 else
21376   echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21378
21379 ol_cv_pthread_mthreads=no
21380 fi
21381 rm -f conftest.err conftest.$ac_objext \
21382       conftest$ac_exeext conftest.$ac_ext
21383 else
21384   cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h.  */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h.  */
21390
21391 /* pthread test headers */
21392 #include <pthread.h>
21393 #if HAVE_PTHREADS < 7
21394 #include <errno.h>
21395 #endif
21396 #ifndef NULL
21397 #define NULL (void*)0
21398 #endif
21399
21400 static void *task(p)
21401         void *p;
21402 {
21403         return (void *) (p == NULL);
21404 }
21405
21406
21407 int main(argc, argv)
21408         int argc;
21409         char **argv;
21410 {
21411
21412         /* pthread test function */
21413 #ifndef PTHREAD_CREATE_DETACHED
21414 #define PTHREAD_CREATE_DETACHED 1
21415 #endif
21416         pthread_t t;
21417         int status;
21418         int detach = PTHREAD_CREATE_DETACHED;
21419
21420 #if HAVE_PTHREADS > 4
21421         /* Final pthreads */
21422         pthread_attr_t attr;
21423
21424         status = pthread_attr_init(&attr);
21425         if( status ) return status;
21426
21427 #if HAVE_PTHREADS < 7
21428         status = pthread_attr_setdetachstate(&attr, &detach);
21429         if( status < 0 ) status = errno;
21430 #else
21431         status = pthread_attr_setdetachstate(&attr, detach);
21432 #endif
21433         if( status ) return status;
21434         status = pthread_create( &t, &attr, task, NULL );
21435 #if HAVE_PTHREADS < 7
21436         if( status < 0 ) status = errno;
21437 #endif
21438         if( status ) return status;
21439 #else
21440         /* Draft 4 pthreads */
21441         status = pthread_create( &t, pthread_attr_default, task, NULL );
21442         if( status ) return errno;
21443
21444         /* give thread a chance to complete */
21445         /* it should remain joinable and hence detachable */
21446         sleep( 1 );
21447
21448         status = pthread_detach( &t );
21449         if( status ) return errno;
21450 #endif
21451
21452 #ifdef HAVE_LINUX_THREADS
21453         pthread_kill_other_threads_np();
21454 #endif
21455
21456         return 0;
21457
21458 }
21459
21460 _ACEOF
21461 rm -f conftest$ac_exeext
21462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21463   (eval $ac_link) 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468   (eval $ac_try) 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); }; }; then
21472   ol_cv_pthread_mthreads=yes
21473 else
21474   echo "$as_me: program exited with status $ac_status" >&5
21475 echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478 ( exit $ac_status )
21479 ol_cv_pthread_mthreads=no
21480 fi
21481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21482 fi
21483
21484                 # restore the LIBS
21485                 LIBS="$ol_LIBS"
21486
21487 fi
21488 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21489 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21490
21491         if test $ol_cv_pthread_mthreads = yes ; then
21492                 ol_link_pthreads="-mthreads"
21493                 ol_link_threads=posix
21494         fi
21495 fi
21496
21497                 # Pthread try link: -thread (ol_cv_pthread_thread)
21498 if test "$ol_link_threads" = no ; then
21499         # try -thread
21500         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21501 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21502 if test "${ol_cv_pthread_thread+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505
21506                 # save the flags
21507                 ol_LIBS="$LIBS"
21508                 LIBS="-thread $LIBS"
21509
21510                 if test "$cross_compiling" = yes; then
21511   cat >conftest.$ac_ext <<_ACEOF
21512 /* confdefs.h.  */
21513 _ACEOF
21514 cat confdefs.h >>conftest.$ac_ext
21515 cat >>conftest.$ac_ext <<_ACEOF
21516 /* end confdefs.h.  */
21517
21518 /* pthread test headers */
21519 #include <pthread.h>
21520 #if HAVE_PTHREADS < 7
21521 #include <errno.h>
21522 #endif
21523 #ifndef NULL
21524 #define NULL (void*)0
21525 #endif
21526
21527 static void *task(p)
21528         void *p;
21529 {
21530         return (void *) (p == NULL);
21531 }
21532
21533 int
21534 main ()
21535 {
21536
21537         /* pthread test function */
21538 #ifndef PTHREAD_CREATE_DETACHED
21539 #define PTHREAD_CREATE_DETACHED 1
21540 #endif
21541         pthread_t t;
21542         int status;
21543         int detach = PTHREAD_CREATE_DETACHED;
21544
21545 #if HAVE_PTHREADS > 4
21546         /* Final pthreads */
21547         pthread_attr_t attr;
21548
21549         status = pthread_attr_init(&attr);
21550         if( status ) return status;
21551
21552 #if HAVE_PTHREADS < 7
21553         status = pthread_attr_setdetachstate(&attr, &detach);
21554         if( status < 0 ) status = errno;
21555 #else
21556         status = pthread_attr_setdetachstate(&attr, detach);
21557 #endif
21558         if( status ) return status;
21559         status = pthread_create( &t, &attr, task, NULL );
21560 #if HAVE_PTHREADS < 7
21561         if( status < 0 ) status = errno;
21562 #endif
21563         if( status ) return status;
21564 #else
21565         /* Draft 4 pthreads */
21566         status = pthread_create( &t, pthread_attr_default, task, NULL );
21567         if( status ) return errno;
21568
21569         /* give thread a chance to complete */
21570         /* it should remain joinable and hence detachable */
21571         sleep( 1 );
21572
21573         status = pthread_detach( &t );
21574         if( status ) return errno;
21575 #endif
21576
21577 #ifdef HAVE_LINUX_THREADS
21578         pthread_kill_other_threads_np();
21579 #endif
21580
21581         return 0;
21582
21583   ;
21584   return 0;
21585 }
21586 _ACEOF
21587 rm -f conftest.$ac_objext conftest$ac_exeext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21589   (eval $ac_link) 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_c_werror_flag"
21597                          || test ! -s conftest.err'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; } &&
21603          { ac_try='test -s conftest$ac_exeext'
21604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); }; }; then
21609   ol_cv_pthread_thread=yes
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ol_cv_pthread_thread=no
21615 fi
21616 rm -f conftest.err conftest.$ac_objext \
21617       conftest$ac_exeext conftest.$ac_ext
21618 else
21619   cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625
21626 /* pthread test headers */
21627 #include <pthread.h>
21628 #if HAVE_PTHREADS < 7
21629 #include <errno.h>
21630 #endif
21631 #ifndef NULL
21632 #define NULL (void*)0
21633 #endif
21634
21635 static void *task(p)
21636         void *p;
21637 {
21638         return (void *) (p == NULL);
21639 }
21640
21641
21642 int main(argc, argv)
21643         int argc;
21644         char **argv;
21645 {
21646
21647         /* pthread test function */
21648 #ifndef PTHREAD_CREATE_DETACHED
21649 #define PTHREAD_CREATE_DETACHED 1
21650 #endif
21651         pthread_t t;
21652         int status;
21653         int detach = PTHREAD_CREATE_DETACHED;
21654
21655 #if HAVE_PTHREADS > 4
21656         /* Final pthreads */
21657         pthread_attr_t attr;
21658
21659         status = pthread_attr_init(&attr);
21660         if( status ) return status;
21661
21662 #if HAVE_PTHREADS < 7
21663         status = pthread_attr_setdetachstate(&attr, &detach);
21664         if( status < 0 ) status = errno;
21665 #else
21666         status = pthread_attr_setdetachstate(&attr, detach);
21667 #endif
21668         if( status ) return status;
21669         status = pthread_create( &t, &attr, task, NULL );
21670 #if HAVE_PTHREADS < 7
21671         if( status < 0 ) status = errno;
21672 #endif
21673         if( status ) return status;
21674 #else
21675         /* Draft 4 pthreads */
21676         status = pthread_create( &t, pthread_attr_default, task, NULL );
21677         if( status ) return errno;
21678
21679         /* give thread a chance to complete */
21680         /* it should remain joinable and hence detachable */
21681         sleep( 1 );
21682
21683         status = pthread_detach( &t );
21684         if( status ) return errno;
21685 #endif
21686
21687 #ifdef HAVE_LINUX_THREADS
21688         pthread_kill_other_threads_np();
21689 #endif
21690
21691         return 0;
21692
21693 }
21694
21695 _ACEOF
21696 rm -f conftest$ac_exeext
21697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21698   (eval $ac_link) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21703   (eval $ac_try) 2>&5
21704   ac_status=$?
21705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706   (exit $ac_status); }; }; then
21707   ol_cv_pthread_thread=yes
21708 else
21709   echo "$as_me: program exited with status $ac_status" >&5
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ( exit $ac_status )
21714 ol_cv_pthread_thread=no
21715 fi
21716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 fi
21718
21719                 # restore the LIBS
21720                 LIBS="$ol_LIBS"
21721
21722 fi
21723 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21724 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21725
21726         if test $ol_cv_pthread_thread = yes ; then
21727                 ol_link_pthreads="-thread"
21728                 ol_link_threads=posix
21729         fi
21730 fi
21731
21732
21733                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21734 if test "$ol_link_threads" = no ; then
21735         # try -lpthread -lmach -lexc -lc_r
21736         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21737 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21738 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21739   echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741
21742                 # save the flags
21743                 ol_LIBS="$LIBS"
21744                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21745
21746                 if test "$cross_compiling" = yes; then
21747   cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753
21754 /* pthread test headers */
21755 #include <pthread.h>
21756 #if HAVE_PTHREADS < 7
21757 #include <errno.h>
21758 #endif
21759 #ifndef NULL
21760 #define NULL (void*)0
21761 #endif
21762
21763 static void *task(p)
21764         void *p;
21765 {
21766         return (void *) (p == NULL);
21767 }
21768
21769 int
21770 main ()
21771 {
21772
21773         /* pthread test function */
21774 #ifndef PTHREAD_CREATE_DETACHED
21775 #define PTHREAD_CREATE_DETACHED 1
21776 #endif
21777         pthread_t t;
21778         int status;
21779         int detach = PTHREAD_CREATE_DETACHED;
21780
21781 #if HAVE_PTHREADS > 4
21782         /* Final pthreads */
21783         pthread_attr_t attr;
21784
21785         status = pthread_attr_init(&attr);
21786         if( status ) return status;
21787
21788 #if HAVE_PTHREADS < 7
21789         status = pthread_attr_setdetachstate(&attr, &detach);
21790         if( status < 0 ) status = errno;
21791 #else
21792         status = pthread_attr_setdetachstate(&attr, detach);
21793 #endif
21794         if( status ) return status;
21795         status = pthread_create( &t, &attr, task, NULL );
21796 #if HAVE_PTHREADS < 7
21797         if( status < 0 ) status = errno;
21798 #endif
21799         if( status ) return status;
21800 #else
21801         /* Draft 4 pthreads */
21802         status = pthread_create( &t, pthread_attr_default, task, NULL );
21803         if( status ) return errno;
21804
21805         /* give thread a chance to complete */
21806         /* it should remain joinable and hence detachable */
21807         sleep( 1 );
21808
21809         status = pthread_detach( &t );
21810         if( status ) return errno;
21811 #endif
21812
21813 #ifdef HAVE_LINUX_THREADS
21814         pthread_kill_other_threads_np();
21815 #endif
21816
21817         return 0;
21818
21819   ;
21820   return 0;
21821 }
21822 _ACEOF
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825   (eval $ac_link) 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } &&
21832          { ac_try='test -z "$ac_c_werror_flag"
21833                          || test ! -s conftest.err'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; } &&
21839          { ac_try='test -s conftest$ac_exeext'
21840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841   (eval $ac_try) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); }; }; then
21845   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21846 else
21847   echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21849
21850 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21851 fi
21852 rm -f conftest.err conftest.$ac_objext \
21853       conftest$ac_exeext conftest.$ac_ext
21854 else
21855   cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h.  */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h.  */
21861
21862 /* pthread test headers */
21863 #include <pthread.h>
21864 #if HAVE_PTHREADS < 7
21865 #include <errno.h>
21866 #endif
21867 #ifndef NULL
21868 #define NULL (void*)0
21869 #endif
21870
21871 static void *task(p)
21872         void *p;
21873 {
21874         return (void *) (p == NULL);
21875 }
21876
21877
21878 int main(argc, argv)
21879         int argc;
21880         char **argv;
21881 {
21882
21883         /* pthread test function */
21884 #ifndef PTHREAD_CREATE_DETACHED
21885 #define PTHREAD_CREATE_DETACHED 1
21886 #endif
21887         pthread_t t;
21888         int status;
21889         int detach = PTHREAD_CREATE_DETACHED;
21890
21891 #if HAVE_PTHREADS > 4
21892         /* Final pthreads */
21893         pthread_attr_t attr;
21894
21895         status = pthread_attr_init(&attr);
21896         if( status ) return status;
21897
21898 #if HAVE_PTHREADS < 7
21899         status = pthread_attr_setdetachstate(&attr, &detach);
21900         if( status < 0 ) status = errno;
21901 #else
21902         status = pthread_attr_setdetachstate(&attr, detach);
21903 #endif
21904         if( status ) return status;
21905         status = pthread_create( &t, &attr, task, NULL );
21906 #if HAVE_PTHREADS < 7
21907         if( status < 0 ) status = errno;
21908 #endif
21909         if( status ) return status;
21910 #else
21911         /* Draft 4 pthreads */
21912         status = pthread_create( &t, pthread_attr_default, task, NULL );
21913         if( status ) return errno;
21914
21915         /* give thread a chance to complete */
21916         /* it should remain joinable and hence detachable */
21917         sleep( 1 );
21918
21919         status = pthread_detach( &t );
21920         if( status ) return errno;
21921 #endif
21922
21923 #ifdef HAVE_LINUX_THREADS
21924         pthread_kill_other_threads_np();
21925 #endif
21926
21927         return 0;
21928
21929 }
21930
21931 _ACEOF
21932 rm -f conftest$ac_exeext
21933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21934   (eval $ac_link) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939   (eval $ac_try) 2>&5
21940   ac_status=$?
21941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942   (exit $ac_status); }; }; then
21943   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21944 else
21945   echo "$as_me: program exited with status $ac_status" >&5
21946 echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ( exit $ac_status )
21950 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21951 fi
21952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21953 fi
21954
21955                 # restore the LIBS
21956                 LIBS="$ol_LIBS"
21957
21958 fi
21959 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21960 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21961
21962         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21963                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21964                 ol_link_threads=posix
21965         fi
21966 fi
21967
21968                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21969 if test "$ol_link_threads" = no ; then
21970         # try -lpthread -lmach -lexc
21971         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21972 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21973 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21974   echo $ECHO_N "(cached) $ECHO_C" >&6
21975 else
21976
21977                 # save the flags
21978                 ol_LIBS="$LIBS"
21979                 LIBS="-lpthread -lmach -lexc $LIBS"
21980
21981                 if test "$cross_compiling" = yes; then
21982   cat >conftest.$ac_ext <<_ACEOF
21983 /* confdefs.h.  */
21984 _ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h.  */
21988
21989 /* pthread test headers */
21990 #include <pthread.h>
21991 #if HAVE_PTHREADS < 7
21992 #include <errno.h>
21993 #endif
21994 #ifndef NULL
21995 #define NULL (void*)0
21996 #endif
21997
21998 static void *task(p)
21999         void *p;
22000 {
22001         return (void *) (p == NULL);
22002 }
22003
22004 int
22005 main ()
22006 {
22007
22008         /* pthread test function */
22009 #ifndef PTHREAD_CREATE_DETACHED
22010 #define PTHREAD_CREATE_DETACHED 1
22011 #endif
22012         pthread_t t;
22013         int status;
22014         int detach = PTHREAD_CREATE_DETACHED;
22015
22016 #if HAVE_PTHREADS > 4
22017         /* Final pthreads */
22018         pthread_attr_t attr;
22019
22020         status = pthread_attr_init(&attr);
22021         if( status ) return status;
22022
22023 #if HAVE_PTHREADS < 7
22024         status = pthread_attr_setdetachstate(&attr, &detach);
22025         if( status < 0 ) status = errno;
22026 #else
22027         status = pthread_attr_setdetachstate(&attr, detach);
22028 #endif
22029         if( status ) return status;
22030         status = pthread_create( &t, &attr, task, NULL );
22031 #if HAVE_PTHREADS < 7
22032         if( status < 0 ) status = errno;
22033 #endif
22034         if( status ) return status;
22035 #else
22036         /* Draft 4 pthreads */
22037         status = pthread_create( &t, pthread_attr_default, task, NULL );
22038         if( status ) return errno;
22039
22040         /* give thread a chance to complete */
22041         /* it should remain joinable and hence detachable */
22042         sleep( 1 );
22043
22044         status = pthread_detach( &t );
22045         if( status ) return errno;
22046 #endif
22047
22048 #ifdef HAVE_LINUX_THREADS
22049         pthread_kill_other_threads_np();
22050 #endif
22051
22052         return 0;
22053
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22060   (eval $ac_link) 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } &&
22067          { ac_try='test -z "$ac_c_werror_flag"
22068                          || test ! -s conftest.err'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; } &&
22074          { ac_try='test -s conftest$ac_exeext'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; }; then
22080   ol_cv_pthread_lpthread_lmach_lexc=yes
22081 else
22082   echo "$as_me: failed program was:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22084
22085 ol_cv_pthread_lpthread_lmach_lexc=no
22086 fi
22087 rm -f conftest.err conftest.$ac_objext \
22088       conftest$ac_exeext conftest.$ac_ext
22089 else
22090   cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096
22097 /* pthread test headers */
22098 #include <pthread.h>
22099 #if HAVE_PTHREADS < 7
22100 #include <errno.h>
22101 #endif
22102 #ifndef NULL
22103 #define NULL (void*)0
22104 #endif
22105
22106 static void *task(p)
22107         void *p;
22108 {
22109         return (void *) (p == NULL);
22110 }
22111
22112
22113 int main(argc, argv)
22114         int argc;
22115         char **argv;
22116 {
22117
22118         /* pthread test function */
22119 #ifndef PTHREAD_CREATE_DETACHED
22120 #define PTHREAD_CREATE_DETACHED 1
22121 #endif
22122         pthread_t t;
22123         int status;
22124         int detach = PTHREAD_CREATE_DETACHED;
22125
22126 #if HAVE_PTHREADS > 4
22127         /* Final pthreads */
22128         pthread_attr_t attr;
22129
22130         status = pthread_attr_init(&attr);
22131         if( status ) return status;
22132
22133 #if HAVE_PTHREADS < 7
22134         status = pthread_attr_setdetachstate(&attr, &detach);
22135         if( status < 0 ) status = errno;
22136 #else
22137         status = pthread_attr_setdetachstate(&attr, detach);
22138 #endif
22139         if( status ) return status;
22140         status = pthread_create( &t, &attr, task, NULL );
22141 #if HAVE_PTHREADS < 7
22142         if( status < 0 ) status = errno;
22143 #endif
22144         if( status ) return status;
22145 #else
22146         /* Draft 4 pthreads */
22147         status = pthread_create( &t, pthread_attr_default, task, NULL );
22148         if( status ) return errno;
22149
22150         /* give thread a chance to complete */
22151         /* it should remain joinable and hence detachable */
22152         sleep( 1 );
22153
22154         status = pthread_detach( &t );
22155         if( status ) return errno;
22156 #endif
22157
22158 #ifdef HAVE_LINUX_THREADS
22159         pthread_kill_other_threads_np();
22160 #endif
22161
22162         return 0;
22163
22164 }
22165
22166 _ACEOF
22167 rm -f conftest$ac_exeext
22168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22169   (eval $ac_link) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); }; }; then
22178   ol_cv_pthread_lpthread_lmach_lexc=yes
22179 else
22180   echo "$as_me: program exited with status $ac_status" >&5
22181 echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184 ( exit $ac_status )
22185 ol_cv_pthread_lpthread_lmach_lexc=no
22186 fi
22187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22188 fi
22189
22190                 # restore the LIBS
22191                 LIBS="$ol_LIBS"
22192
22193 fi
22194 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22195 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22196
22197         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22198                 ol_link_pthreads="-lpthread -lmach -lexc"
22199                 ol_link_threads=posix
22200         fi
22201 fi
22202
22203
22204                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22205 if test "$ol_link_threads" = no ; then
22206         # try -lpthread -Wl,-woff,85
22207         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22208 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22209 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22210   echo $ECHO_N "(cached) $ECHO_C" >&6
22211 else
22212
22213                 # save the flags
22214                 ol_LIBS="$LIBS"
22215                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22216
22217                 if test "$cross_compiling" = yes; then
22218   cat >conftest.$ac_ext <<_ACEOF
22219 /* confdefs.h.  */
22220 _ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h.  */
22224
22225 /* pthread test headers */
22226 #include <pthread.h>
22227 #if HAVE_PTHREADS < 7
22228 #include <errno.h>
22229 #endif
22230 #ifndef NULL
22231 #define NULL (void*)0
22232 #endif
22233
22234 static void *task(p)
22235         void *p;
22236 {
22237         return (void *) (p == NULL);
22238 }
22239
22240 int
22241 main ()
22242 {
22243
22244         /* pthread test function */
22245 #ifndef PTHREAD_CREATE_DETACHED
22246 #define PTHREAD_CREATE_DETACHED 1
22247 #endif
22248         pthread_t t;
22249         int status;
22250         int detach = PTHREAD_CREATE_DETACHED;
22251
22252 #if HAVE_PTHREADS > 4
22253         /* Final pthreads */
22254         pthread_attr_t attr;
22255
22256         status = pthread_attr_init(&attr);
22257         if( status ) return status;
22258
22259 #if HAVE_PTHREADS < 7
22260         status = pthread_attr_setdetachstate(&attr, &detach);
22261         if( status < 0 ) status = errno;
22262 #else
22263         status = pthread_attr_setdetachstate(&attr, detach);
22264 #endif
22265         if( status ) return status;
22266         status = pthread_create( &t, &attr, task, NULL );
22267 #if HAVE_PTHREADS < 7
22268         if( status < 0 ) status = errno;
22269 #endif
22270         if( status ) return status;
22271 #else
22272         /* Draft 4 pthreads */
22273         status = pthread_create( &t, pthread_attr_default, task, NULL );
22274         if( status ) return errno;
22275
22276         /* give thread a chance to complete */
22277         /* it should remain joinable and hence detachable */
22278         sleep( 1 );
22279
22280         status = pthread_detach( &t );
22281         if( status ) return errno;
22282 #endif
22283
22284 #ifdef HAVE_LINUX_THREADS
22285         pthread_kill_other_threads_np();
22286 #endif
22287
22288         return 0;
22289
22290   ;
22291   return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22296   (eval $ac_link) 2>conftest.er1
22297   ac_status=$?
22298   grep -v '^ *+' conftest.er1 >conftest.err
22299   rm -f conftest.er1
22300   cat conftest.err >&5
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); } &&
22303          { ac_try='test -z "$ac_c_werror_flag"
22304                          || test ! -s conftest.err'
22305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306   (eval $ac_try) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; } &&
22310          { ac_try='test -s conftest$ac_exeext'
22311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); }; }; then
22316   ol_cv_pthread_lib_lpthread_woff=yes
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321 ol_cv_pthread_lib_lpthread_woff=no
22322 fi
22323 rm -f conftest.err conftest.$ac_objext \
22324       conftest$ac_exeext conftest.$ac_ext
22325 else
22326   cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332
22333 /* pthread test headers */
22334 #include <pthread.h>
22335 #if HAVE_PTHREADS < 7
22336 #include <errno.h>
22337 #endif
22338 #ifndef NULL
22339 #define NULL (void*)0
22340 #endif
22341
22342 static void *task(p)
22343         void *p;
22344 {
22345         return (void *) (p == NULL);
22346 }
22347
22348
22349 int main(argc, argv)
22350         int argc;
22351         char **argv;
22352 {
22353
22354         /* pthread test function */
22355 #ifndef PTHREAD_CREATE_DETACHED
22356 #define PTHREAD_CREATE_DETACHED 1
22357 #endif
22358         pthread_t t;
22359         int status;
22360         int detach = PTHREAD_CREATE_DETACHED;
22361
22362 #if HAVE_PTHREADS > 4
22363         /* Final pthreads */
22364         pthread_attr_t attr;
22365
22366         status = pthread_attr_init(&attr);
22367         if( status ) return status;
22368
22369 #if HAVE_PTHREADS < 7
22370         status = pthread_attr_setdetachstate(&attr, &detach);
22371         if( status < 0 ) status = errno;
22372 #else
22373         status = pthread_attr_setdetachstate(&attr, detach);
22374 #endif
22375         if( status ) return status;
22376         status = pthread_create( &t, &attr, task, NULL );
22377 #if HAVE_PTHREADS < 7
22378         if( status < 0 ) status = errno;
22379 #endif
22380         if( status ) return status;
22381 #else
22382         /* Draft 4 pthreads */
22383         status = pthread_create( &t, pthread_attr_default, task, NULL );
22384         if( status ) return errno;
22385
22386         /* give thread a chance to complete */
22387         /* it should remain joinable and hence detachable */
22388         sleep( 1 );
22389
22390         status = pthread_detach( &t );
22391         if( status ) return errno;
22392 #endif
22393
22394 #ifdef HAVE_LINUX_THREADS
22395         pthread_kill_other_threads_np();
22396 #endif
22397
22398         return 0;
22399
22400 }
22401
22402 _ACEOF
22403 rm -f conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405   (eval $ac_link) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410   (eval $ac_try) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; }; then
22414   ol_cv_pthread_lib_lpthread_woff=yes
22415 else
22416   echo "$as_me: program exited with status $ac_status" >&5
22417 echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420 ( exit $ac_status )
22421 ol_cv_pthread_lib_lpthread_woff=no
22422 fi
22423 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22424 fi
22425
22426                 # restore the LIBS
22427                 LIBS="$ol_LIBS"
22428
22429 fi
22430 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22431 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22432
22433         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22434                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22435                 ol_link_threads=posix
22436         fi
22437 fi
22438
22439
22440                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22441 if test "$ol_link_threads" = no ; then
22442         # try -lpthread
22443         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22444 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22445 if test "${ol_cv_pthread_lpthread+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448
22449                 # save the flags
22450                 ol_LIBS="$LIBS"
22451                 LIBS="-lpthread $LIBS"
22452
22453                 if test "$cross_compiling" = yes; then
22454   cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h.  */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h.  */
22460
22461 /* pthread test headers */
22462 #include <pthread.h>
22463 #if HAVE_PTHREADS < 7
22464 #include <errno.h>
22465 #endif
22466 #ifndef NULL
22467 #define NULL (void*)0
22468 #endif
22469
22470 static void *task(p)
22471         void *p;
22472 {
22473         return (void *) (p == NULL);
22474 }
22475
22476 int
22477 main ()
22478 {
22479
22480         /* pthread test function */
22481 #ifndef PTHREAD_CREATE_DETACHED
22482 #define PTHREAD_CREATE_DETACHED 1
22483 #endif
22484         pthread_t t;
22485         int status;
22486         int detach = PTHREAD_CREATE_DETACHED;
22487
22488 #if HAVE_PTHREADS > 4
22489         /* Final pthreads */
22490         pthread_attr_t attr;
22491
22492         status = pthread_attr_init(&attr);
22493         if( status ) return status;
22494
22495 #if HAVE_PTHREADS < 7
22496         status = pthread_attr_setdetachstate(&attr, &detach);
22497         if( status < 0 ) status = errno;
22498 #else
22499         status = pthread_attr_setdetachstate(&attr, detach);
22500 #endif
22501         if( status ) return status;
22502         status = pthread_create( &t, &attr, task, NULL );
22503 #if HAVE_PTHREADS < 7
22504         if( status < 0 ) status = errno;
22505 #endif
22506         if( status ) return status;
22507 #else
22508         /* Draft 4 pthreads */
22509         status = pthread_create( &t, pthread_attr_default, task, NULL );
22510         if( status ) return errno;
22511
22512         /* give thread a chance to complete */
22513         /* it should remain joinable and hence detachable */
22514         sleep( 1 );
22515
22516         status = pthread_detach( &t );
22517         if( status ) return errno;
22518 #endif
22519
22520 #ifdef HAVE_LINUX_THREADS
22521         pthread_kill_other_threads_np();
22522 #endif
22523
22524         return 0;
22525
22526   ;
22527   return 0;
22528 }
22529 _ACEOF
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532   (eval $ac_link) 2>conftest.er1
22533   ac_status=$?
22534   grep -v '^ *+' conftest.er1 >conftest.err
22535   rm -f conftest.er1
22536   cat conftest.err >&5
22537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538   (exit $ac_status); } &&
22539          { ac_try='test -z "$ac_c_werror_flag"
22540                          || test ! -s conftest.err'
22541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542   (eval $ac_try) 2>&5
22543   ac_status=$?
22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545   (exit $ac_status); }; } &&
22546          { ac_try='test -s conftest$ac_exeext'
22547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548   (eval $ac_try) 2>&5
22549   ac_status=$?
22550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551   (exit $ac_status); }; }; then
22552   ol_cv_pthread_lpthread=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557 ol_cv_pthread_lpthread=no
22558 fi
22559 rm -f conftest.err conftest.$ac_objext \
22560       conftest$ac_exeext conftest.$ac_ext
22561 else
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568
22569 /* pthread test headers */
22570 #include <pthread.h>
22571 #if HAVE_PTHREADS < 7
22572 #include <errno.h>
22573 #endif
22574 #ifndef NULL
22575 #define NULL (void*)0
22576 #endif
22577
22578 static void *task(p)
22579         void *p;
22580 {
22581         return (void *) (p == NULL);
22582 }
22583
22584
22585 int main(argc, argv)
22586         int argc;
22587         char **argv;
22588 {
22589
22590         /* pthread test function */
22591 #ifndef PTHREAD_CREATE_DETACHED
22592 #define PTHREAD_CREATE_DETACHED 1
22593 #endif
22594         pthread_t t;
22595         int status;
22596         int detach = PTHREAD_CREATE_DETACHED;
22597
22598 #if HAVE_PTHREADS > 4
22599         /* Final pthreads */
22600         pthread_attr_t attr;
22601
22602         status = pthread_attr_init(&attr);
22603         if( status ) return status;
22604
22605 #if HAVE_PTHREADS < 7
22606         status = pthread_attr_setdetachstate(&attr, &detach);
22607         if( status < 0 ) status = errno;
22608 #else
22609         status = pthread_attr_setdetachstate(&attr, detach);
22610 #endif
22611         if( status ) return status;
22612         status = pthread_create( &t, &attr, task, NULL );
22613 #if HAVE_PTHREADS < 7
22614         if( status < 0 ) status = errno;
22615 #endif
22616         if( status ) return status;
22617 #else
22618         /* Draft 4 pthreads */
22619         status = pthread_create( &t, pthread_attr_default, task, NULL );
22620         if( status ) return errno;
22621
22622         /* give thread a chance to complete */
22623         /* it should remain joinable and hence detachable */
22624         sleep( 1 );
22625
22626         status = pthread_detach( &t );
22627         if( status ) return errno;
22628 #endif
22629
22630 #ifdef HAVE_LINUX_THREADS
22631         pthread_kill_other_threads_np();
22632 #endif
22633
22634         return 0;
22635
22636 }
22637
22638 _ACEOF
22639 rm -f conftest$ac_exeext
22640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22641   (eval $ac_link) 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646   (eval $ac_try) 2>&5
22647   ac_status=$?
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); }; }; then
22650   ol_cv_pthread_lpthread=yes
22651 else
22652   echo "$as_me: program exited with status $ac_status" >&5
22653 echo "$as_me: failed program was:" >&5
22654 sed 's/^/| /' conftest.$ac_ext >&5
22655
22656 ( exit $ac_status )
22657 ol_cv_pthread_lpthread=no
22658 fi
22659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22660 fi
22661
22662                 # restore the LIBS
22663                 LIBS="$ol_LIBS"
22664
22665 fi
22666 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22667 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22668
22669         if test $ol_cv_pthread_lpthread = yes ; then
22670                 ol_link_pthreads="-lpthread"
22671                 ol_link_threads=posix
22672         fi
22673 fi
22674
22675                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22676 if test "$ol_link_threads" = no ; then
22677         # try -lc_r
22678         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22679 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22680 if test "${ol_cv_pthread_lc_r+set}" = set; then
22681   echo $ECHO_N "(cached) $ECHO_C" >&6
22682 else
22683
22684                 # save the flags
22685                 ol_LIBS="$LIBS"
22686                 LIBS="-lc_r $LIBS"
22687
22688                 if test "$cross_compiling" = yes; then
22689   cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h.  */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h.  */
22695
22696 /* pthread test headers */
22697 #include <pthread.h>
22698 #if HAVE_PTHREADS < 7
22699 #include <errno.h>
22700 #endif
22701 #ifndef NULL
22702 #define NULL (void*)0
22703 #endif
22704
22705 static void *task(p)
22706         void *p;
22707 {
22708         return (void *) (p == NULL);
22709 }
22710
22711 int
22712 main ()
22713 {
22714
22715         /* pthread test function */
22716 #ifndef PTHREAD_CREATE_DETACHED
22717 #define PTHREAD_CREATE_DETACHED 1
22718 #endif
22719         pthread_t t;
22720         int status;
22721         int detach = PTHREAD_CREATE_DETACHED;
22722
22723 #if HAVE_PTHREADS > 4
22724         /* Final pthreads */
22725         pthread_attr_t attr;
22726
22727         status = pthread_attr_init(&attr);
22728         if( status ) return status;
22729
22730 #if HAVE_PTHREADS < 7
22731         status = pthread_attr_setdetachstate(&attr, &detach);
22732         if( status < 0 ) status = errno;
22733 #else
22734         status = pthread_attr_setdetachstate(&attr, detach);
22735 #endif
22736         if( status ) return status;
22737         status = pthread_create( &t, &attr, task, NULL );
22738 #if HAVE_PTHREADS < 7
22739         if( status < 0 ) status = errno;
22740 #endif
22741         if( status ) return status;
22742 #else
22743         /* Draft 4 pthreads */
22744         status = pthread_create( &t, pthread_attr_default, task, NULL );
22745         if( status ) return errno;
22746
22747         /* give thread a chance to complete */
22748         /* it should remain joinable and hence detachable */
22749         sleep( 1 );
22750
22751         status = pthread_detach( &t );
22752         if( status ) return errno;
22753 #endif
22754
22755 #ifdef HAVE_LINUX_THREADS
22756         pthread_kill_other_threads_np();
22757 #endif
22758
22759         return 0;
22760
22761   ;
22762   return 0;
22763 }
22764 _ACEOF
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22767   (eval $ac_link) 2>conftest.er1
22768   ac_status=$?
22769   grep -v '^ *+' conftest.er1 >conftest.err
22770   rm -f conftest.er1
22771   cat conftest.err >&5
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); } &&
22774          { ac_try='test -z "$ac_c_werror_flag"
22775                          || test ! -s conftest.err'
22776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777   (eval $ac_try) 2>&5
22778   ac_status=$?
22779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); }; } &&
22781          { ac_try='test -s conftest$ac_exeext'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; }; then
22787   ol_cv_pthread_lc_r=yes
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 ol_cv_pthread_lc_r=no
22793 fi
22794 rm -f conftest.err conftest.$ac_objext \
22795       conftest$ac_exeext conftest.$ac_ext
22796 else
22797   cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h.  */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h.  */
22803
22804 /* pthread test headers */
22805 #include <pthread.h>
22806 #if HAVE_PTHREADS < 7
22807 #include <errno.h>
22808 #endif
22809 #ifndef NULL
22810 #define NULL (void*)0
22811 #endif
22812
22813 static void *task(p)
22814         void *p;
22815 {
22816         return (void *) (p == NULL);
22817 }
22818
22819
22820 int main(argc, argv)
22821         int argc;
22822         char **argv;
22823 {
22824
22825         /* pthread test function */
22826 #ifndef PTHREAD_CREATE_DETACHED
22827 #define PTHREAD_CREATE_DETACHED 1
22828 #endif
22829         pthread_t t;
22830         int status;
22831         int detach = PTHREAD_CREATE_DETACHED;
22832
22833 #if HAVE_PTHREADS > 4
22834         /* Final pthreads */
22835         pthread_attr_t attr;
22836
22837         status = pthread_attr_init(&attr);
22838         if( status ) return status;
22839
22840 #if HAVE_PTHREADS < 7
22841         status = pthread_attr_setdetachstate(&attr, &detach);
22842         if( status < 0 ) status = errno;
22843 #else
22844         status = pthread_attr_setdetachstate(&attr, detach);
22845 #endif
22846         if( status ) return status;
22847         status = pthread_create( &t, &attr, task, NULL );
22848 #if HAVE_PTHREADS < 7
22849         if( status < 0 ) status = errno;
22850 #endif
22851         if( status ) return status;
22852 #else
22853         /* Draft 4 pthreads */
22854         status = pthread_create( &t, pthread_attr_default, task, NULL );
22855         if( status ) return errno;
22856
22857         /* give thread a chance to complete */
22858         /* it should remain joinable and hence detachable */
22859         sleep( 1 );
22860
22861         status = pthread_detach( &t );
22862         if( status ) return errno;
22863 #endif
22864
22865 #ifdef HAVE_LINUX_THREADS
22866         pthread_kill_other_threads_np();
22867 #endif
22868
22869         return 0;
22870
22871 }
22872
22873 _ACEOF
22874 rm -f conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876   (eval $ac_link) 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881   (eval $ac_try) 2>&5
22882   ac_status=$?
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); }; }; then
22885   ol_cv_pthread_lc_r=yes
22886 else
22887   echo "$as_me: program exited with status $ac_status" >&5
22888 echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891 ( exit $ac_status )
22892 ol_cv_pthread_lc_r=no
22893 fi
22894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22895 fi
22896
22897                 # restore the LIBS
22898                 LIBS="$ol_LIBS"
22899
22900 fi
22901 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22902 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22903
22904         if test $ol_cv_pthread_lc_r = yes ; then
22905                 ol_link_pthreads="-lc_r"
22906                 ol_link_threads=posix
22907         fi
22908 fi
22909
22910
22911                 # Pthread try link: -threads (ol_cv_pthread_threads)
22912 if test "$ol_link_threads" = no ; then
22913         # try -threads
22914         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22915 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22916 if test "${ol_cv_pthread_threads+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919
22920                 # save the flags
22921                 ol_LIBS="$LIBS"
22922                 LIBS="-threads $LIBS"
22923
22924                 if test "$cross_compiling" = yes; then
22925   cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931
22932 /* pthread test headers */
22933 #include <pthread.h>
22934 #if HAVE_PTHREADS < 7
22935 #include <errno.h>
22936 #endif
22937 #ifndef NULL
22938 #define NULL (void*)0
22939 #endif
22940
22941 static void *task(p)
22942         void *p;
22943 {
22944         return (void *) (p == NULL);
22945 }
22946
22947 int
22948 main ()
22949 {
22950
22951         /* pthread test function */
22952 #ifndef PTHREAD_CREATE_DETACHED
22953 #define PTHREAD_CREATE_DETACHED 1
22954 #endif
22955         pthread_t t;
22956         int status;
22957         int detach = PTHREAD_CREATE_DETACHED;
22958
22959 #if HAVE_PTHREADS > 4
22960         /* Final pthreads */
22961         pthread_attr_t attr;
22962
22963         status = pthread_attr_init(&attr);
22964         if( status ) return status;
22965
22966 #if HAVE_PTHREADS < 7
22967         status = pthread_attr_setdetachstate(&attr, &detach);
22968         if( status < 0 ) status = errno;
22969 #else
22970         status = pthread_attr_setdetachstate(&attr, detach);
22971 #endif
22972         if( status ) return status;
22973         status = pthread_create( &t, &attr, task, NULL );
22974 #if HAVE_PTHREADS < 7
22975         if( status < 0 ) status = errno;
22976 #endif
22977         if( status ) return status;
22978 #else
22979         /* Draft 4 pthreads */
22980         status = pthread_create( &t, pthread_attr_default, task, NULL );
22981         if( status ) return errno;
22982
22983         /* give thread a chance to complete */
22984         /* it should remain joinable and hence detachable */
22985         sleep( 1 );
22986
22987         status = pthread_detach( &t );
22988         if( status ) return errno;
22989 #endif
22990
22991 #ifdef HAVE_LINUX_THREADS
22992         pthread_kill_other_threads_np();
22993 #endif
22994
22995         return 0;
22996
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext conftest$ac_exeext
23002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23003   (eval $ac_link) 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } &&
23010          { ac_try='test -z "$ac_c_werror_flag"
23011                          || test ! -s conftest.err'
23012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013   (eval $ac_try) 2>&5
23014   ac_status=$?
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); }; } &&
23017          { ac_try='test -s conftest$ac_exeext'
23018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019   (eval $ac_try) 2>&5
23020   ac_status=$?
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); }; }; then
23023   ol_cv_pthread_threads=yes
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028 ol_cv_pthread_threads=no
23029 fi
23030 rm -f conftest.err conftest.$ac_objext \
23031       conftest$ac_exeext conftest.$ac_ext
23032 else
23033   cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039
23040 /* pthread test headers */
23041 #include <pthread.h>
23042 #if HAVE_PTHREADS < 7
23043 #include <errno.h>
23044 #endif
23045 #ifndef NULL
23046 #define NULL (void*)0
23047 #endif
23048
23049 static void *task(p)
23050         void *p;
23051 {
23052         return (void *) (p == NULL);
23053 }
23054
23055
23056 int main(argc, argv)
23057         int argc;
23058         char **argv;
23059 {
23060
23061         /* pthread test function */
23062 #ifndef PTHREAD_CREATE_DETACHED
23063 #define PTHREAD_CREATE_DETACHED 1
23064 #endif
23065         pthread_t t;
23066         int status;
23067         int detach = PTHREAD_CREATE_DETACHED;
23068
23069 #if HAVE_PTHREADS > 4
23070         /* Final pthreads */
23071         pthread_attr_t attr;
23072
23073         status = pthread_attr_init(&attr);
23074         if( status ) return status;
23075
23076 #if HAVE_PTHREADS < 7
23077         status = pthread_attr_setdetachstate(&attr, &detach);
23078         if( status < 0 ) status = errno;
23079 #else
23080         status = pthread_attr_setdetachstate(&attr, detach);
23081 #endif
23082         if( status ) return status;
23083         status = pthread_create( &t, &attr, task, NULL );
23084 #if HAVE_PTHREADS < 7
23085         if( status < 0 ) status = errno;
23086 #endif
23087         if( status ) return status;
23088 #else
23089         /* Draft 4 pthreads */
23090         status = pthread_create( &t, pthread_attr_default, task, NULL );
23091         if( status ) return errno;
23092
23093         /* give thread a chance to complete */
23094         /* it should remain joinable and hence detachable */
23095         sleep( 1 );
23096
23097         status = pthread_detach( &t );
23098         if( status ) return errno;
23099 #endif
23100
23101 #ifdef HAVE_LINUX_THREADS
23102         pthread_kill_other_threads_np();
23103 #endif
23104
23105         return 0;
23106
23107 }
23108
23109 _ACEOF
23110 rm -f conftest$ac_exeext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23112   (eval $ac_link) 2>&5
23113   ac_status=$?
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117   (eval $ac_try) 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ol_cv_pthread_threads=yes
23122 else
23123   echo "$as_me: program exited with status $ac_status" >&5
23124 echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127 ( exit $ac_status )
23128 ol_cv_pthread_threads=no
23129 fi
23130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23131 fi
23132
23133                 # restore the LIBS
23134                 LIBS="$ol_LIBS"
23135
23136 fi
23137 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23138 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23139
23140         if test $ol_cv_pthread_threads = yes ; then
23141                 ol_link_pthreads="-threads"
23142                 ol_link_threads=posix
23143         fi
23144 fi
23145
23146
23147                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23148 if test "$ol_link_threads" = no ; then
23149         # try -lpthreads -lmach -lexc -lc_r
23150         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23151 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23152 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155
23156                 # save the flags
23157                 ol_LIBS="$LIBS"
23158                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23159
23160                 if test "$cross_compiling" = yes; then
23161   cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167
23168 /* pthread test headers */
23169 #include <pthread.h>
23170 #if HAVE_PTHREADS < 7
23171 #include <errno.h>
23172 #endif
23173 #ifndef NULL
23174 #define NULL (void*)0
23175 #endif
23176
23177 static void *task(p)
23178         void *p;
23179 {
23180         return (void *) (p == NULL);
23181 }
23182
23183 int
23184 main ()
23185 {
23186
23187         /* pthread test function */
23188 #ifndef PTHREAD_CREATE_DETACHED
23189 #define PTHREAD_CREATE_DETACHED 1
23190 #endif
23191         pthread_t t;
23192         int status;
23193         int detach = PTHREAD_CREATE_DETACHED;
23194
23195 #if HAVE_PTHREADS > 4
23196         /* Final pthreads */
23197         pthread_attr_t attr;
23198
23199         status = pthread_attr_init(&attr);
23200         if( status ) return status;
23201
23202 #if HAVE_PTHREADS < 7
23203         status = pthread_attr_setdetachstate(&attr, &detach);
23204         if( status < 0 ) status = errno;
23205 #else
23206         status = pthread_attr_setdetachstate(&attr, detach);
23207 #endif
23208         if( status ) return status;
23209         status = pthread_create( &t, &attr, task, NULL );
23210 #if HAVE_PTHREADS < 7
23211         if( status < 0 ) status = errno;
23212 #endif
23213         if( status ) return status;
23214 #else
23215         /* Draft 4 pthreads */
23216         status = pthread_create( &t, pthread_attr_default, task, NULL );
23217         if( status ) return errno;
23218
23219         /* give thread a chance to complete */
23220         /* it should remain joinable and hence detachable */
23221         sleep( 1 );
23222
23223         status = pthread_detach( &t );
23224         if( status ) return errno;
23225 #endif
23226
23227 #ifdef HAVE_LINUX_THREADS
23228         pthread_kill_other_threads_np();
23229 #endif
23230
23231         return 0;
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext conftest$ac_exeext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23239   (eval $ac_link) 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } &&
23246          { ac_try='test -z "$ac_c_werror_flag"
23247                          || test ! -s conftest.err'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; } &&
23253          { ac_try='test -s conftest$ac_exeext'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; }; then
23259   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23265 fi
23266 rm -f conftest.err conftest.$ac_objext \
23267       conftest$ac_exeext conftest.$ac_ext
23268 else
23269   cat >conftest.$ac_ext <<_ACEOF
23270 /* confdefs.h.  */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h.  */
23275
23276 /* pthread test headers */
23277 #include <pthread.h>
23278 #if HAVE_PTHREADS < 7
23279 #include <errno.h>
23280 #endif
23281 #ifndef NULL
23282 #define NULL (void*)0
23283 #endif
23284
23285 static void *task(p)
23286         void *p;
23287 {
23288         return (void *) (p == NULL);
23289 }
23290
23291
23292 int main(argc, argv)
23293         int argc;
23294         char **argv;
23295 {
23296
23297         /* pthread test function */
23298 #ifndef PTHREAD_CREATE_DETACHED
23299 #define PTHREAD_CREATE_DETACHED 1
23300 #endif
23301         pthread_t t;
23302         int status;
23303         int detach = PTHREAD_CREATE_DETACHED;
23304
23305 #if HAVE_PTHREADS > 4
23306         /* Final pthreads */
23307         pthread_attr_t attr;
23308
23309         status = pthread_attr_init(&attr);
23310         if( status ) return status;
23311
23312 #if HAVE_PTHREADS < 7
23313         status = pthread_attr_setdetachstate(&attr, &detach);
23314         if( status < 0 ) status = errno;
23315 #else
23316         status = pthread_attr_setdetachstate(&attr, detach);
23317 #endif
23318         if( status ) return status;
23319         status = pthread_create( &t, &attr, task, NULL );
23320 #if HAVE_PTHREADS < 7
23321         if( status < 0 ) status = errno;
23322 #endif
23323         if( status ) return status;
23324 #else
23325         /* Draft 4 pthreads */
23326         status = pthread_create( &t, pthread_attr_default, task, NULL );
23327         if( status ) return errno;
23328
23329         /* give thread a chance to complete */
23330         /* it should remain joinable and hence detachable */
23331         sleep( 1 );
23332
23333         status = pthread_detach( &t );
23334         if( status ) return errno;
23335 #endif
23336
23337 #ifdef HAVE_LINUX_THREADS
23338         pthread_kill_other_threads_np();
23339 #endif
23340
23341         return 0;
23342
23343 }
23344
23345 _ACEOF
23346 rm -f conftest$ac_exeext
23347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23348   (eval $ac_link) 2>&5
23349   ac_status=$?
23350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; }; then
23357   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23358 else
23359   echo "$as_me: program exited with status $ac_status" >&5
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ( exit $ac_status )
23364 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23365 fi
23366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23367 fi
23368
23369                 # restore the LIBS
23370                 LIBS="$ol_LIBS"
23371
23372 fi
23373 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23374 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23375
23376         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23377                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23378                 ol_link_threads=posix
23379         fi
23380 fi
23381
23382                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23383 if test "$ol_link_threads" = no ; then
23384         # try -lpthreads -lmach -lexc
23385         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23386 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23387 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390
23391                 # save the flags
23392                 ol_LIBS="$LIBS"
23393                 LIBS="-lpthreads -lmach -lexc $LIBS"
23394
23395                 if test "$cross_compiling" = yes; then
23396   cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402
23403 /* pthread test headers */
23404 #include <pthread.h>
23405 #if HAVE_PTHREADS < 7
23406 #include <errno.h>
23407 #endif
23408 #ifndef NULL
23409 #define NULL (void*)0
23410 #endif
23411
23412 static void *task(p)
23413         void *p;
23414 {
23415         return (void *) (p == NULL);
23416 }
23417
23418 int
23419 main ()
23420 {
23421
23422         /* pthread test function */
23423 #ifndef PTHREAD_CREATE_DETACHED
23424 #define PTHREAD_CREATE_DETACHED 1
23425 #endif
23426         pthread_t t;
23427         int status;
23428         int detach = PTHREAD_CREATE_DETACHED;
23429
23430 #if HAVE_PTHREADS > 4
23431         /* Final pthreads */
23432         pthread_attr_t attr;
23433
23434         status = pthread_attr_init(&attr);
23435         if( status ) return status;
23436
23437 #if HAVE_PTHREADS < 7
23438         status = pthread_attr_setdetachstate(&attr, &detach);
23439         if( status < 0 ) status = errno;
23440 #else
23441         status = pthread_attr_setdetachstate(&attr, detach);
23442 #endif
23443         if( status ) return status;
23444         status = pthread_create( &t, &attr, task, NULL );
23445 #if HAVE_PTHREADS < 7
23446         if( status < 0 ) status = errno;
23447 #endif
23448         if( status ) return status;
23449 #else
23450         /* Draft 4 pthreads */
23451         status = pthread_create( &t, pthread_attr_default, task, NULL );
23452         if( status ) return errno;
23453
23454         /* give thread a chance to complete */
23455         /* it should remain joinable and hence detachable */
23456         sleep( 1 );
23457
23458         status = pthread_detach( &t );
23459         if( status ) return errno;
23460 #endif
23461
23462 #ifdef HAVE_LINUX_THREADS
23463         pthread_kill_other_threads_np();
23464 #endif
23465
23466         return 0;
23467
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23474   (eval $ac_link) 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } &&
23481          { ac_try='test -z "$ac_c_werror_flag"
23482                          || test ! -s conftest.err'
23483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484   (eval $ac_try) 2>&5
23485   ac_status=$?
23486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487   (exit $ac_status); }; } &&
23488          { ac_try='test -s conftest$ac_exeext'
23489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490   (eval $ac_try) 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); }; }; then
23494   ol_cv_pthread_lpthreads_lmach_lexc=yes
23495 else
23496   echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499 ol_cv_pthread_lpthreads_lmach_lexc=no
23500 fi
23501 rm -f conftest.err conftest.$ac_objext \
23502       conftest$ac_exeext conftest.$ac_ext
23503 else
23504   cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h.  */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h.  */
23510
23511 /* pthread test headers */
23512 #include <pthread.h>
23513 #if HAVE_PTHREADS < 7
23514 #include <errno.h>
23515 #endif
23516 #ifndef NULL
23517 #define NULL (void*)0
23518 #endif
23519
23520 static void *task(p)
23521         void *p;
23522 {
23523         return (void *) (p == NULL);
23524 }
23525
23526
23527 int main(argc, argv)
23528         int argc;
23529         char **argv;
23530 {
23531
23532         /* pthread test function */
23533 #ifndef PTHREAD_CREATE_DETACHED
23534 #define PTHREAD_CREATE_DETACHED 1
23535 #endif
23536         pthread_t t;
23537         int status;
23538         int detach = PTHREAD_CREATE_DETACHED;
23539
23540 #if HAVE_PTHREADS > 4
23541         /* Final pthreads */
23542         pthread_attr_t attr;
23543
23544         status = pthread_attr_init(&attr);
23545         if( status ) return status;
23546
23547 #if HAVE_PTHREADS < 7
23548         status = pthread_attr_setdetachstate(&attr, &detach);
23549         if( status < 0 ) status = errno;
23550 #else
23551         status = pthread_attr_setdetachstate(&attr, detach);
23552 #endif
23553         if( status ) return status;
23554         status = pthread_create( &t, &attr, task, NULL );
23555 #if HAVE_PTHREADS < 7
23556         if( status < 0 ) status = errno;
23557 #endif
23558         if( status ) return status;
23559 #else
23560         /* Draft 4 pthreads */
23561         status = pthread_create( &t, pthread_attr_default, task, NULL );
23562         if( status ) return errno;
23563
23564         /* give thread a chance to complete */
23565         /* it should remain joinable and hence detachable */
23566         sleep( 1 );
23567
23568         status = pthread_detach( &t );
23569         if( status ) return errno;
23570 #endif
23571
23572 #ifdef HAVE_LINUX_THREADS
23573         pthread_kill_other_threads_np();
23574 #endif
23575
23576         return 0;
23577
23578 }
23579
23580 _ACEOF
23581 rm -f conftest$ac_exeext
23582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23583   (eval $ac_link) 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588   (eval $ac_try) 2>&5
23589   ac_status=$?
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); }; }; then
23592   ol_cv_pthread_lpthreads_lmach_lexc=yes
23593 else
23594   echo "$as_me: program exited with status $ac_status" >&5
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23597
23598 ( exit $ac_status )
23599 ol_cv_pthread_lpthreads_lmach_lexc=no
23600 fi
23601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23602 fi
23603
23604                 # restore the LIBS
23605                 LIBS="$ol_LIBS"
23606
23607 fi
23608 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23609 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23610
23611         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23612                 ol_link_pthreads="-lpthreads -lmach -lexc"
23613                 ol_link_threads=posix
23614         fi
23615 fi
23616
23617                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23618 if test "$ol_link_threads" = no ; then
23619         # try -lpthreads -lexc
23620         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23621 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23622 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23623   echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23625
23626                 # save the flags
23627                 ol_LIBS="$LIBS"
23628                 LIBS="-lpthreads -lexc $LIBS"
23629
23630                 if test "$cross_compiling" = yes; then
23631   cat >conftest.$ac_ext <<_ACEOF
23632 /* confdefs.h.  */
23633 _ACEOF
23634 cat confdefs.h >>conftest.$ac_ext
23635 cat >>conftest.$ac_ext <<_ACEOF
23636 /* end confdefs.h.  */
23637
23638 /* pthread test headers */
23639 #include <pthread.h>
23640 #if HAVE_PTHREADS < 7
23641 #include <errno.h>
23642 #endif
23643 #ifndef NULL
23644 #define NULL (void*)0
23645 #endif
23646
23647 static void *task(p)
23648         void *p;
23649 {
23650         return (void *) (p == NULL);
23651 }
23652
23653 int
23654 main ()
23655 {
23656
23657         /* pthread test function */
23658 #ifndef PTHREAD_CREATE_DETACHED
23659 #define PTHREAD_CREATE_DETACHED 1
23660 #endif
23661         pthread_t t;
23662         int status;
23663         int detach = PTHREAD_CREATE_DETACHED;
23664
23665 #if HAVE_PTHREADS > 4
23666         /* Final pthreads */
23667         pthread_attr_t attr;
23668
23669         status = pthread_attr_init(&attr);
23670         if( status ) return status;
23671
23672 #if HAVE_PTHREADS < 7
23673         status = pthread_attr_setdetachstate(&attr, &detach);
23674         if( status < 0 ) status = errno;
23675 #else
23676         status = pthread_attr_setdetachstate(&attr, detach);
23677 #endif
23678         if( status ) return status;
23679         status = pthread_create( &t, &attr, task, NULL );
23680 #if HAVE_PTHREADS < 7
23681         if( status < 0 ) status = errno;
23682 #endif
23683         if( status ) return status;
23684 #else
23685         /* Draft 4 pthreads */
23686         status = pthread_create( &t, pthread_attr_default, task, NULL );
23687         if( status ) return errno;
23688
23689         /* give thread a chance to complete */
23690         /* it should remain joinable and hence detachable */
23691         sleep( 1 );
23692
23693         status = pthread_detach( &t );
23694         if( status ) return errno;
23695 #endif
23696
23697 #ifdef HAVE_LINUX_THREADS
23698         pthread_kill_other_threads_np();
23699 #endif
23700
23701         return 0;
23702
23703   ;
23704   return 0;
23705 }
23706 _ACEOF
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23709   (eval $ac_link) 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } &&
23716          { ac_try='test -z "$ac_c_werror_flag"
23717                          || test ! -s conftest.err'
23718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722   (exit $ac_status); }; } &&
23723          { ac_try='test -s conftest$ac_exeext'
23724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725   (eval $ac_try) 2>&5
23726   ac_status=$?
23727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728   (exit $ac_status); }; }; then
23729   ol_cv_pthread_lpthreads_lexc=yes
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734 ol_cv_pthread_lpthreads_lexc=no
23735 fi
23736 rm -f conftest.err conftest.$ac_objext \
23737       conftest$ac_exeext conftest.$ac_ext
23738 else
23739   cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745
23746 /* pthread test headers */
23747 #include <pthread.h>
23748 #if HAVE_PTHREADS < 7
23749 #include <errno.h>
23750 #endif
23751 #ifndef NULL
23752 #define NULL (void*)0
23753 #endif
23754
23755 static void *task(p)
23756         void *p;
23757 {
23758         return (void *) (p == NULL);
23759 }
23760
23761
23762 int main(argc, argv)
23763         int argc;
23764         char **argv;
23765 {
23766
23767         /* pthread test function */
23768 #ifndef PTHREAD_CREATE_DETACHED
23769 #define PTHREAD_CREATE_DETACHED 1
23770 #endif
23771         pthread_t t;
23772         int status;
23773         int detach = PTHREAD_CREATE_DETACHED;
23774
23775 #if HAVE_PTHREADS > 4
23776         /* Final pthreads */
23777         pthread_attr_t attr;
23778
23779         status = pthread_attr_init(&attr);
23780         if( status ) return status;
23781
23782 #if HAVE_PTHREADS < 7
23783         status = pthread_attr_setdetachstate(&attr, &detach);
23784         if( status < 0 ) status = errno;
23785 #else
23786         status = pthread_attr_setdetachstate(&attr, detach);
23787 #endif
23788         if( status ) return status;
23789         status = pthread_create( &t, &attr, task, NULL );
23790 #if HAVE_PTHREADS < 7
23791         if( status < 0 ) status = errno;
23792 #endif
23793         if( status ) return status;
23794 #else
23795         /* Draft 4 pthreads */
23796         status = pthread_create( &t, pthread_attr_default, task, NULL );
23797         if( status ) return errno;
23798
23799         /* give thread a chance to complete */
23800         /* it should remain joinable and hence detachable */
23801         sleep( 1 );
23802
23803         status = pthread_detach( &t );
23804         if( status ) return errno;
23805 #endif
23806
23807 #ifdef HAVE_LINUX_THREADS
23808         pthread_kill_other_threads_np();
23809 #endif
23810
23811         return 0;
23812
23813 }
23814
23815 _ACEOF
23816 rm -f conftest$ac_exeext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23818   (eval $ac_link) 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823   (eval $ac_try) 2>&5
23824   ac_status=$?
23825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826   (exit $ac_status); }; }; then
23827   ol_cv_pthread_lpthreads_lexc=yes
23828 else
23829   echo "$as_me: program exited with status $ac_status" >&5
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23832
23833 ( exit $ac_status )
23834 ol_cv_pthread_lpthreads_lexc=no
23835 fi
23836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23837 fi
23838
23839                 # restore the LIBS
23840                 LIBS="$ol_LIBS"
23841
23842 fi
23843 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23844 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23845
23846         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23847                 ol_link_pthreads="-lpthreads -lexc"
23848                 ol_link_threads=posix
23849         fi
23850 fi
23851
23852
23853                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23854 if test "$ol_link_threads" = no ; then
23855         # try -lpthreads
23856         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23857 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23858 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23859   echo $ECHO_N "(cached) $ECHO_C" >&6
23860 else
23861
23862                 # save the flags
23863                 ol_LIBS="$LIBS"
23864                 LIBS="-lpthreads $LIBS"
23865
23866                 if test "$cross_compiling" = yes; then
23867   cat >conftest.$ac_ext <<_ACEOF
23868 /* confdefs.h.  */
23869 _ACEOF
23870 cat confdefs.h >>conftest.$ac_ext
23871 cat >>conftest.$ac_ext <<_ACEOF
23872 /* end confdefs.h.  */
23873
23874 /* pthread test headers */
23875 #include <pthread.h>
23876 #if HAVE_PTHREADS < 7
23877 #include <errno.h>
23878 #endif
23879 #ifndef NULL
23880 #define NULL (void*)0
23881 #endif
23882
23883 static void *task(p)
23884         void *p;
23885 {
23886         return (void *) (p == NULL);
23887 }
23888
23889 int
23890 main ()
23891 {
23892
23893         /* pthread test function */
23894 #ifndef PTHREAD_CREATE_DETACHED
23895 #define PTHREAD_CREATE_DETACHED 1
23896 #endif
23897         pthread_t t;
23898         int status;
23899         int detach = PTHREAD_CREATE_DETACHED;
23900
23901 #if HAVE_PTHREADS > 4
23902         /* Final pthreads */
23903         pthread_attr_t attr;
23904
23905         status = pthread_attr_init(&attr);
23906         if( status ) return status;
23907
23908 #if HAVE_PTHREADS < 7
23909         status = pthread_attr_setdetachstate(&attr, &detach);
23910         if( status < 0 ) status = errno;
23911 #else
23912         status = pthread_attr_setdetachstate(&attr, detach);
23913 #endif
23914         if( status ) return status;
23915         status = pthread_create( &t, &attr, task, NULL );
23916 #if HAVE_PTHREADS < 7
23917         if( status < 0 ) status = errno;
23918 #endif
23919         if( status ) return status;
23920 #else
23921         /* Draft 4 pthreads */
23922         status = pthread_create( &t, pthread_attr_default, task, NULL );
23923         if( status ) return errno;
23924
23925         /* give thread a chance to complete */
23926         /* it should remain joinable and hence detachable */
23927         sleep( 1 );
23928
23929         status = pthread_detach( &t );
23930         if( status ) return errno;
23931 #endif
23932
23933 #ifdef HAVE_LINUX_THREADS
23934         pthread_kill_other_threads_np();
23935 #endif
23936
23937         return 0;
23938
23939   ;
23940   return 0;
23941 }
23942 _ACEOF
23943 rm -f conftest.$ac_objext conftest$ac_exeext
23944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23945   (eval $ac_link) 2>conftest.er1
23946   ac_status=$?
23947   grep -v '^ *+' conftest.er1 >conftest.err
23948   rm -f conftest.er1
23949   cat conftest.err >&5
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); } &&
23952          { ac_try='test -z "$ac_c_werror_flag"
23953                          || test ! -s conftest.err'
23954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955   (eval $ac_try) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); }; } &&
23959          { ac_try='test -s conftest$ac_exeext'
23960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961   (eval $ac_try) 2>&5
23962   ac_status=$?
23963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964   (exit $ac_status); }; }; then
23965   ol_cv_pthread_lib_lpthreads=yes
23966 else
23967   echo "$as_me: failed program was:" >&5
23968 sed 's/^/| /' conftest.$ac_ext >&5
23969
23970 ol_cv_pthread_lib_lpthreads=no
23971 fi
23972 rm -f conftest.err conftest.$ac_objext \
23973       conftest$ac_exeext conftest.$ac_ext
23974 else
23975   cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h.  */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h.  */
23981
23982 /* pthread test headers */
23983 #include <pthread.h>
23984 #if HAVE_PTHREADS < 7
23985 #include <errno.h>
23986 #endif
23987 #ifndef NULL
23988 #define NULL (void*)0
23989 #endif
23990
23991 static void *task(p)
23992         void *p;
23993 {
23994         return (void *) (p == NULL);
23995 }
23996
23997
23998 int main(argc, argv)
23999         int argc;
24000         char **argv;
24001 {
24002
24003         /* pthread test function */
24004 #ifndef PTHREAD_CREATE_DETACHED
24005 #define PTHREAD_CREATE_DETACHED 1
24006 #endif
24007         pthread_t t;
24008         int status;
24009         int detach = PTHREAD_CREATE_DETACHED;
24010
24011 #if HAVE_PTHREADS > 4
24012         /* Final pthreads */
24013         pthread_attr_t attr;
24014
24015         status = pthread_attr_init(&attr);
24016         if( status ) return status;
24017
24018 #if HAVE_PTHREADS < 7
24019         status = pthread_attr_setdetachstate(&attr, &detach);
24020         if( status < 0 ) status = errno;
24021 #else
24022         status = pthread_attr_setdetachstate(&attr, detach);
24023 #endif
24024         if( status ) return status;
24025         status = pthread_create( &t, &attr, task, NULL );
24026 #if HAVE_PTHREADS < 7
24027         if( status < 0 ) status = errno;
24028 #endif
24029         if( status ) return status;
24030 #else
24031         /* Draft 4 pthreads */
24032         status = pthread_create( &t, pthread_attr_default, task, NULL );
24033         if( status ) return errno;
24034
24035         /* give thread a chance to complete */
24036         /* it should remain joinable and hence detachable */
24037         sleep( 1 );
24038
24039         status = pthread_detach( &t );
24040         if( status ) return errno;
24041 #endif
24042
24043 #ifdef HAVE_LINUX_THREADS
24044         pthread_kill_other_threads_np();
24045 #endif
24046
24047         return 0;
24048
24049 }
24050
24051 _ACEOF
24052 rm -f conftest$ac_exeext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24054   (eval $ac_link) 2>&5
24055   ac_status=$?
24056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059   (eval $ac_try) 2>&5
24060   ac_status=$?
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); }; }; then
24063   ol_cv_pthread_lib_lpthreads=yes
24064 else
24065   echo "$as_me: program exited with status $ac_status" >&5
24066 echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068
24069 ( exit $ac_status )
24070 ol_cv_pthread_lib_lpthreads=no
24071 fi
24072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24073 fi
24074
24075                 # restore the LIBS
24076                 LIBS="$ol_LIBS"
24077
24078 fi
24079 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24080 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24081
24082         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24083                 ol_link_pthreads="-lpthreads"
24084                 ol_link_threads=posix
24085         fi
24086 fi
24087
24088
24089                 if test $ol_link_threads != no ; then
24090                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24091
24092                                                 save_CPPFLAGS="$CPPFLAGS"
24093                         save_LIBS="$LIBS"
24094                         LIBS="$LTHREAD_LIBS $LIBS"
24095
24096
24097
24098
24099 for ac_func in sched_yield pthread_yield thr_yield
24100 do
24101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24102 echo "$as_me:$LINENO: checking for $ac_func" >&5
24103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24104 if eval "test \"\${$as_ac_var+set}\" = set"; then
24105   echo $ECHO_N "(cached) $ECHO_C" >&6
24106 else
24107   cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24115 #define $ac_func innocuous_$ac_func
24116
24117 /* System header to define __stub macros and hopefully few prototypes,
24118     which can conflict with char $ac_func (); below.
24119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24120     <limits.h> exists even on freestanding compilers.  */
24121
24122 #ifdef __STDC__
24123 # include <limits.h>
24124 #else
24125 # include <assert.h>
24126 #endif
24127
24128 #undef $ac_func
24129
24130 /* Override any gcc2 internal prototype to avoid an error.  */
24131 #ifdef __cplusplus
24132 extern "C"
24133 {
24134 #endif
24135 /* We use char because int might match the return type of a gcc2
24136    builtin and then its argument prototype would still apply.  */
24137 char $ac_func ();
24138 /* The GNU C library defines this for functions which it implements
24139     to always fail with ENOSYS.  Some functions are actually named
24140     something starting with __ and the normal name is an alias.  */
24141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24142 choke me
24143 #else
24144 char (*f) () = $ac_func;
24145 #endif
24146 #ifdef __cplusplus
24147 }
24148 #endif
24149
24150 int
24151 main ()
24152 {
24153 return f != $ac_func;
24154   ;
24155   return 0;
24156 }
24157 _ACEOF
24158 rm -f conftest.$ac_objext conftest$ac_exeext
24159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160   (eval $ac_link) 2>conftest.er1
24161   ac_status=$?
24162   grep -v '^ *+' conftest.er1 >conftest.err
24163   rm -f conftest.er1
24164   cat conftest.err >&5
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } &&
24167          { ac_try='test -z "$ac_c_werror_flag"
24168                          || test ! -s conftest.err'
24169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170   (eval $ac_try) 2>&5
24171   ac_status=$?
24172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173   (exit $ac_status); }; } &&
24174          { ac_try='test -s conftest$ac_exeext'
24175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176   (eval $ac_try) 2>&5
24177   ac_status=$?
24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179   (exit $ac_status); }; }; then
24180   eval "$as_ac_var=yes"
24181 else
24182   echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185 eval "$as_ac_var=no"
24186 fi
24187 rm -f conftest.err conftest.$ac_objext \
24188       conftest$ac_exeext conftest.$ac_ext
24189 fi
24190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24192 if test `eval echo '${'$as_ac_var'}'` = yes; then
24193   cat >>confdefs.h <<_ACEOF
24194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24195 _ACEOF
24196
24197 fi
24198 done
24199
24200
24201                         if test $ac_cv_func_sched_yield = no -a \
24202                                 $ac_cv_func_pthread_yield = no -a \
24203                                 $ac_cv_func_thr_yield = no ; then
24204                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24205 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24206 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24207   echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209   ac_check_lib_save_LIBS=$LIBS
24210 LIBS="-lrt  $LIBS"
24211 cat >conftest.$ac_ext <<_ACEOF
24212 /* confdefs.h.  */
24213 _ACEOF
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h.  */
24217
24218 /* Override any gcc2 internal prototype to avoid an error.  */
24219 #ifdef __cplusplus
24220 extern "C"
24221 #endif
24222 /* We use char because int might match the return type of a gcc2
24223    builtin and then its argument prototype would still apply.  */
24224 char sched_yield ();
24225 int
24226 main ()
24227 {
24228 sched_yield ();
24229   ;
24230   return 0;
24231 }
24232 _ACEOF
24233 rm -f conftest.$ac_objext conftest$ac_exeext
24234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24235   (eval $ac_link) 2>conftest.er1
24236   ac_status=$?
24237   grep -v '^ *+' conftest.er1 >conftest.err
24238   rm -f conftest.er1
24239   cat conftest.err >&5
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } &&
24242          { ac_try='test -z "$ac_c_werror_flag"
24243                          || test ! -s conftest.err'
24244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245   (eval $ac_try) 2>&5
24246   ac_status=$?
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); }; } &&
24249          { ac_try='test -s conftest$ac_exeext'
24250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251   (eval $ac_try) 2>&5
24252   ac_status=$?
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); }; }; then
24255   ac_cv_lib_rt_sched_yield=yes
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 ac_cv_lib_rt_sched_yield=no
24261 fi
24262 rm -f conftest.err conftest.$ac_objext \
24263       conftest$ac_exeext conftest.$ac_ext
24264 LIBS=$ac_check_lib_save_LIBS
24265 fi
24266 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24267 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24268 if test $ac_cv_lib_rt_sched_yield = yes; then
24269   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24270
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_SCHED_YIELD 1
24273 _ACEOF
24274
24275                                         ac_cv_func_sched_yield=yes
24276 else
24277   ac_cv_func_sched_yield=no
24278 fi
24279
24280                         fi
24281                         if test $ac_cv_func_sched_yield = no -a \
24282                                 $ac_cv_func_pthread_yield = no -a \
24283                                 "$ac_cv_func_thr_yield" = no ; then
24284                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24285 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24286                         fi
24287
24288
24289
24290 for ac_func in pthread_kill pthread_rwlock_destroy
24291 do
24292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24293 echo "$as_me:$LINENO: checking for $ac_func" >&5
24294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24295 if eval "test \"\${$as_ac_var+set}\" = set"; then
24296   echo $ECHO_N "(cached) $ECHO_C" >&6
24297 else
24298   cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24306 #define $ac_func innocuous_$ac_func
24307
24308 /* System header to define __stub macros and hopefully few prototypes,
24309     which can conflict with char $ac_func (); below.
24310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24311     <limits.h> exists even on freestanding compilers.  */
24312
24313 #ifdef __STDC__
24314 # include <limits.h>
24315 #else
24316 # include <assert.h>
24317 #endif
24318
24319 #undef $ac_func
24320
24321 /* Override any gcc2 internal prototype to avoid an error.  */
24322 #ifdef __cplusplus
24323 extern "C"
24324 {
24325 #endif
24326 /* We use char because int might match the return type of a gcc2
24327    builtin and then its argument prototype would still apply.  */
24328 char $ac_func ();
24329 /* The GNU C library defines this for functions which it implements
24330     to always fail with ENOSYS.  Some functions are actually named
24331     something starting with __ and the normal name is an alias.  */
24332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24333 choke me
24334 #else
24335 char (*f) () = $ac_func;
24336 #endif
24337 #ifdef __cplusplus
24338 }
24339 #endif
24340
24341 int
24342 main ()
24343 {
24344 return f != $ac_func;
24345   ;
24346   return 0;
24347 }
24348 _ACEOF
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24351   (eval $ac_link) 2>conftest.er1
24352   ac_status=$?
24353   grep -v '^ *+' conftest.er1 >conftest.err
24354   rm -f conftest.er1
24355   cat conftest.err >&5
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); } &&
24358          { ac_try='test -z "$ac_c_werror_flag"
24359                          || test ! -s conftest.err'
24360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361   (eval $ac_try) 2>&5
24362   ac_status=$?
24363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364   (exit $ac_status); }; } &&
24365          { ac_try='test -s conftest$ac_exeext'
24366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367   (eval $ac_try) 2>&5
24368   ac_status=$?
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); }; }; then
24371   eval "$as_ac_var=yes"
24372 else
24373   echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376 eval "$as_ac_var=no"
24377 fi
24378 rm -f conftest.err conftest.$ac_objext \
24379       conftest$ac_exeext conftest.$ac_ext
24380 fi
24381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24383 if test `eval echo '${'$as_ac_var'}'` = yes; then
24384   cat >>confdefs.h <<_ACEOF
24385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24386 _ACEOF
24387
24388 fi
24389 done
24390
24391
24392                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24393 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24394 if test "${ol_cv_func_pthread_detach+set}" = set; then
24395   echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397
24398                                                                 cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h.  */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h.  */
24404
24405 #include <pthread.h>
24406 #ifndef NULL
24407 #define NULL (void*)0
24408 #endif
24409
24410 int
24411 main ()
24412 {
24413 pthread_detach(NULL);
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420   (eval $ac_link) 2>conftest.er1
24421   ac_status=$?
24422   grep -v '^ *+' conftest.er1 >conftest.err
24423   rm -f conftest.er1
24424   cat conftest.err >&5
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } &&
24427          { ac_try='test -z "$ac_c_werror_flag"
24428                          || test ! -s conftest.err'
24429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   ol_cv_func_pthread_detach=yes
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ol_cv_func_pthread_detach=no
24446 fi
24447 rm -f conftest.err conftest.$ac_objext \
24448       conftest$ac_exeext conftest.$ac_ext
24449
24450 fi
24451 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24452 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24453
24454                         if test $ol_cv_func_pthread_detach = no ; then
24455                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24456 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24457    { (exit 1); exit 1; }; }
24458                         fi
24459
24460
24461 cat >>confdefs.h <<\_ACEOF
24462 #define HAVE_PTHREAD_DETACH 1
24463 _ACEOF
24464
24465
24466
24467
24468
24469
24470 for ac_func in \
24471                                 pthread_setconcurrency \
24472                                 pthread_getconcurrency \
24473                                 thr_setconcurrency \
24474                                 thr_getconcurrency \
24475
24476 do
24477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24478 echo "$as_me:$LINENO: checking for $ac_func" >&5
24479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24480 if eval "test \"\${$as_ac_var+set}\" = set"; then
24481   echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483   cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24491 #define $ac_func innocuous_$ac_func
24492
24493 /* System header to define __stub macros and hopefully few prototypes,
24494     which can conflict with char $ac_func (); below.
24495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496     <limits.h> exists even on freestanding compilers.  */
24497
24498 #ifdef __STDC__
24499 # include <limits.h>
24500 #else
24501 # include <assert.h>
24502 #endif
24503
24504 #undef $ac_func
24505
24506 /* Override any gcc2 internal prototype to avoid an error.  */
24507 #ifdef __cplusplus
24508 extern "C"
24509 {
24510 #endif
24511 /* We use char because int might match the return type of a gcc2
24512    builtin and then its argument prototype would still apply.  */
24513 char $ac_func ();
24514 /* The GNU C library defines this for functions which it implements
24515     to always fail with ENOSYS.  Some functions are actually named
24516     something starting with __ and the normal name is an alias.  */
24517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24518 choke me
24519 #else
24520 char (*f) () = $ac_func;
24521 #endif
24522 #ifdef __cplusplus
24523 }
24524 #endif
24525
24526 int
24527 main ()
24528 {
24529 return f != $ac_func;
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536   (eval $ac_link) 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } &&
24543          { ac_try='test -z "$ac_c_werror_flag"
24544                          || test ! -s conftest.err'
24545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); }; } &&
24550          { ac_try='test -s conftest$ac_exeext'
24551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552   (eval $ac_try) 2>&5
24553   ac_status=$?
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); }; }; then
24556   eval "$as_ac_var=yes"
24557 else
24558   echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561 eval "$as_ac_var=no"
24562 fi
24563 rm -f conftest.err conftest.$ac_objext \
24564       conftest$ac_exeext conftest.$ac_ext
24565 fi
24566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24568 if test `eval echo '${'$as_ac_var'}'` = yes; then
24569   cat >>confdefs.h <<_ACEOF
24570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24571 _ACEOF
24572
24573 fi
24574 done
24575
24576
24577
24578
24579 for ac_func in pthread_kill_other_threads_np
24580 do
24581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24582 echo "$as_me:$LINENO: checking for $ac_func" >&5
24583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24584 if eval "test \"\${$as_ac_var+set}\" = set"; then
24585   echo $ECHO_N "(cached) $ECHO_C" >&6
24586 else
24587   cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24595 #define $ac_func innocuous_$ac_func
24596
24597 /* System header to define __stub macros and hopefully few prototypes,
24598     which can conflict with char $ac_func (); below.
24599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24600     <limits.h> exists even on freestanding compilers.  */
24601
24602 #ifdef __STDC__
24603 # include <limits.h>
24604 #else
24605 # include <assert.h>
24606 #endif
24607
24608 #undef $ac_func
24609
24610 /* Override any gcc2 internal prototype to avoid an error.  */
24611 #ifdef __cplusplus
24612 extern "C"
24613 {
24614 #endif
24615 /* We use char because int might match the return type of a gcc2
24616    builtin and then its argument prototype would still apply.  */
24617 char $ac_func ();
24618 /* The GNU C library defines this for functions which it implements
24619     to always fail with ENOSYS.  Some functions are actually named
24620     something starting with __ and the normal name is an alias.  */
24621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24622 choke me
24623 #else
24624 char (*f) () = $ac_func;
24625 #endif
24626 #ifdef __cplusplus
24627 }
24628 #endif
24629
24630 int
24631 main ()
24632 {
24633 return f != $ac_func;
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24640   (eval $ac_link) 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } &&
24647          { ac_try='test -z "$ac_c_werror_flag"
24648                          || test ! -s conftest.err'
24649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650   (eval $ac_try) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; } &&
24654          { ac_try='test -s conftest$ac_exeext'
24655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656   (eval $ac_try) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; }; then
24660   eval "$as_ac_var=yes"
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 eval "$as_ac_var=no"
24666 fi
24667 rm -f conftest.err conftest.$ac_objext \
24668       conftest$ac_exeext conftest.$ac_ext
24669 fi
24670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24672 if test `eval echo '${'$as_ac_var'}'` = yes; then
24673   cat >>confdefs.h <<_ACEOF
24674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24675 _ACEOF
24676
24677 fi
24678 done
24679
24680         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24681 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24682 if test "${ol_cv_sys_linux_threads+set}" = set; then
24683   echo $ECHO_N "(cached) $ECHO_C" >&6
24684 else
24685   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24686 fi
24687 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24688 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24689
24690
24691
24692
24693         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24694 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24695 if test "${ol_cv_linux_threads+set}" = set; then
24696   echo $ECHO_N "(cached) $ECHO_C" >&6
24697 else
24698
24699                 if test $ol_cv_header_linux_threads = yes -a \
24700                         $ol_cv_sys_linux_threads = yes; then
24701                         ol_cv_linux_threads=yes
24702                 elif test $ol_cv_header_linux_threads = no -a \
24703                         $ol_cv_sys_linux_threads = no; then
24704                         ol_cv_linux_threads=no
24705                 else
24706                         ol_cv_linux_threads=error
24707                 fi
24708
24709 fi
24710 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24711 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24712
24713
24714                         if test $ol_cv_linux_threads = error; then
24715                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24716 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24717    { (exit 1); exit 1; }; };
24718                         fi
24719
24720                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24721 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24722 if test "${ol_cv_pthread_create_works+set}" = set; then
24723   echo $ECHO_N "(cached) $ECHO_C" >&6
24724 else
24725
24726                         if test "$cross_compiling" = yes; then
24727                                 ol_cv_pthread_create_works=yes
24728 else
24729   cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h.  */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h.  */
24735
24736 /* pthread test headers */
24737 #include <pthread.h>
24738 #if HAVE_PTHREADS < 7
24739 #include <errno.h>
24740 #endif
24741 #ifndef NULL
24742 #define NULL (void*)0
24743 #endif
24744
24745 static void *task(p)
24746         void *p;
24747 {
24748         return (void *) (p == NULL);
24749 }
24750
24751
24752 int main(argc, argv)
24753         int argc;
24754         char **argv;
24755 {
24756
24757         /* pthread test function */
24758 #ifndef PTHREAD_CREATE_DETACHED
24759 #define PTHREAD_CREATE_DETACHED 1
24760 #endif
24761         pthread_t t;
24762         int status;
24763         int detach = PTHREAD_CREATE_DETACHED;
24764
24765 #if HAVE_PTHREADS > 4
24766         /* Final pthreads */
24767         pthread_attr_t attr;
24768
24769         status = pthread_attr_init(&attr);
24770         if( status ) return status;
24771
24772 #if HAVE_PTHREADS < 7
24773         status = pthread_attr_setdetachstate(&attr, &detach);
24774         if( status < 0 ) status = errno;
24775 #else
24776         status = pthread_attr_setdetachstate(&attr, detach);
24777 #endif
24778         if( status ) return status;
24779         status = pthread_create( &t, &attr, task, NULL );
24780 #if HAVE_PTHREADS < 7
24781         if( status < 0 ) status = errno;
24782 #endif
24783         if( status ) return status;
24784 #else
24785         /* Draft 4 pthreads */
24786         status = pthread_create( &t, pthread_attr_default, task, NULL );
24787         if( status ) return errno;
24788
24789         /* give thread a chance to complete */
24790         /* it should remain joinable and hence detachable */
24791         sleep( 1 );
24792
24793         status = pthread_detach( &t );
24794         if( status ) return errno;
24795 #endif
24796
24797 #ifdef HAVE_LINUX_THREADS
24798         pthread_kill_other_threads_np();
24799 #endif
24800
24801         return 0;
24802
24803 }
24804
24805 _ACEOF
24806 rm -f conftest$ac_exeext
24807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24808   (eval $ac_link) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813   (eval $ac_try) 2>&5
24814   ac_status=$?
24815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816   (exit $ac_status); }; }; then
24817   ol_cv_pthread_create_works=yes
24818 else
24819   echo "$as_me: program exited with status $ac_status" >&5
24820 echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24822
24823 ( exit $ac_status )
24824 ol_cv_pthread_create_works=no
24825 fi
24826 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24827 fi
24828 fi
24829 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24830 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24831
24832                         if test $ol_cv_pthread_create_works = no ; then
24833                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24834 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24835    { (exit 1); exit 1; }; }
24836                         fi
24837
24838                                                 if test $ol_with_yielding_select = auto ; then
24839                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24840 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24841 if test "${ol_cv_pthread_select_yields+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844
24845                                 if test "$cross_compiling" = yes; then
24846   ol_cv_pthread_select_yields=cross
24847 else
24848   cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854
24855 #include <sys/types.h>
24856 #include <sys/time.h>
24857 #include <unistd.h>
24858 #include <pthread.h>
24859 #ifndef NULL
24860 #define NULL (void*) 0
24861 #endif
24862
24863 static int fildes[2];
24864
24865 static void *task(p)
24866         void *p;
24867 {
24868         int i;
24869         struct timeval tv;
24870
24871         fd_set rfds;
24872
24873         tv.tv_sec=10;
24874         tv.tv_usec=0;
24875
24876         FD_ZERO(&rfds);
24877         FD_SET(fildes[0], &rfds);
24878
24879         /* we're not interested in any fds */
24880         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24881
24882         if(i < 0) {
24883                 perror("select");
24884                 exit(10);
24885         }
24886
24887         exit(0); /* if we exit here, the select blocked the whole process */
24888 }
24889
24890 int main(argc, argv)
24891         int argc;
24892         char **argv;
24893 {
24894         pthread_t t;
24895
24896         /* create a pipe to select */
24897         if(pipe(&fildes[0])) {
24898                 perror("select");
24899                 exit(1);
24900         }
24901
24902 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24903         (void) pthread_setconcurrency(2);
24904 #else
24905 #ifdef HAVE_THR_SETCONCURRENCY
24906         /* Set Solaris LWP concurrency to 2 */
24907         thr_setconcurrency(2);
24908 #endif
24909 #endif
24910
24911 #if HAVE_PTHREADS < 6
24912         pthread_create(&t, pthread_attr_default, task, NULL);
24913 #else
24914         pthread_create(&t, NULL, task, NULL);
24915 #endif
24916
24917         /* make sure task runs first */
24918 #if HAVE_THR_YIELD
24919         thr_yield();
24920 #elif defined( HAVE_SCHED_YIELD )
24921         sched_yield();
24922 #elif defined( HAVE_PTHREAD_YIELD )
24923         pthread_yield();
24924 #endif
24925
24926         exit(2);
24927 }
24928 _ACEOF
24929 rm -f conftest$ac_exeext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24931   (eval $ac_link) 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936   (eval $ac_try) 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ol_cv_pthread_select_yields=no
24941 else
24942   echo "$as_me: program exited with status $ac_status" >&5
24943 echo "$as_me: failed program was:" >&5
24944 sed 's/^/| /' conftest.$ac_ext >&5
24945
24946 ( exit $ac_status )
24947 ol_cv_pthread_select_yields=yes
24948 fi
24949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24950 fi
24951 fi
24952 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24953 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24954
24955                                 if test $ol_cv_pthread_select_yields = cross ; then
24956                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24957 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24958    { (exit 1); exit 1; }; }
24959                                 fi
24960
24961                                 if test $ol_cv_pthread_select_yields = yes ; then
24962                                         ol_with_yielding_select=yes
24963                                 fi
24964                         fi
24965
24966                                                 CPPFLAGS="$save_CPPFLAGS"
24967                         LIBS="$save_LIBS"
24968                 else
24969                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24970 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24971    { (exit 1); exit 1; }; }
24972                 fi
24973         fi
24974
24975         if test $ol_with_threads = posix ; then
24976                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24977 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24978    { (exit 1); exit 1; }; }
24979         fi
24980 fi
24981
24982 if test $ol_with_threads = auto -o $ol_with_threads = yes \
24983         -o $ol_with_threads = mach ; then
24984
24985
24986
24987 for ac_header in mach/cthreads.h cthreads.h
24988 do
24989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24991   echo "$as_me:$LINENO: checking for $ac_header" >&5
24992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24994   echo $ECHO_N "(cached) $ECHO_C" >&6
24995 fi
24996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24998 else
24999   # Is the header compilable?
25000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25002 cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h.  */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h.  */
25008 $ac_includes_default
25009 #include <$ac_header>
25010 _ACEOF
25011 rm -f conftest.$ac_objext
25012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25013   (eval $ac_compile) 2>conftest.er1
25014   ac_status=$?
25015   grep -v '^ *+' conftest.er1 >conftest.err
25016   rm -f conftest.er1
25017   cat conftest.err >&5
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); } &&
25020          { ac_try='test -z "$ac_c_werror_flag"
25021                          || test ! -s conftest.err'
25022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023   (eval $ac_try) 2>&5
25024   ac_status=$?
25025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026   (exit $ac_status); }; } &&
25027          { ac_try='test -s conftest.$ac_objext'
25028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029   (eval $ac_try) 2>&5
25030   ac_status=$?
25031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032   (exit $ac_status); }; }; then
25033   ac_header_compiler=yes
25034 else
25035   echo "$as_me: failed program was:" >&5
25036 sed 's/^/| /' conftest.$ac_ext >&5
25037
25038 ac_header_compiler=no
25039 fi
25040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25042 echo "${ECHO_T}$ac_header_compiler" >&6
25043
25044 # Is the header present?
25045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25047 cat >conftest.$ac_ext <<_ACEOF
25048 /* confdefs.h.  */
25049 _ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h.  */
25053 #include <$ac_header>
25054 _ACEOF
25055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } >/dev/null; then
25063   if test -s conftest.err; then
25064     ac_cpp_err=$ac_c_preproc_warn_flag
25065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25066   else
25067     ac_cpp_err=
25068   fi
25069 else
25070   ac_cpp_err=yes
25071 fi
25072 if test -z "$ac_cpp_err"; then
25073   ac_header_preproc=yes
25074 else
25075   echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25077
25078   ac_header_preproc=no
25079 fi
25080 rm -f conftest.err conftest.$ac_ext
25081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25082 echo "${ECHO_T}$ac_header_preproc" >&6
25083
25084 # So?  What about this header?
25085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25086   yes:no: )
25087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25091     ac_header_preproc=yes
25092     ;;
25093   no:yes:* )
25094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25106     (
25107       cat <<\_ASBOX
25108 ## ------------------------------------------ ##
25109 ## Report this to the AC_PACKAGE_NAME lists.  ##
25110 ## ------------------------------------------ ##
25111 _ASBOX
25112     ) |
25113       sed "s/^/$as_me: WARNING:     /" >&2
25114     ;;
25115 esac
25116 echo "$as_me:$LINENO: checking for $ac_header" >&5
25117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25119   echo $ECHO_N "(cached) $ECHO_C" >&6
25120 else
25121   eval "$as_ac_Header=\$ac_header_preproc"
25122 fi
25123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25125
25126 fi
25127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25128   cat >>confdefs.h <<_ACEOF
25129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25130 _ACEOF
25131
25132 fi
25133
25134 done
25135
25136         if test $ac_cv_header_mach_cthreads_h = yes ; then
25137                 ol_with_threads=found
25138
25139                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25140 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25141 if test "${ac_cv_func_cthread_fork+set}" = set; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144   cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h.  */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h.  */
25150 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25152 #define cthread_fork innocuous_cthread_fork
25153
25154 /* System header to define __stub macros and hopefully few prototypes,
25155     which can conflict with char cthread_fork (); below.
25156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25157     <limits.h> exists even on freestanding compilers.  */
25158
25159 #ifdef __STDC__
25160 # include <limits.h>
25161 #else
25162 # include <assert.h>
25163 #endif
25164
25165 #undef cthread_fork
25166
25167 /* Override any gcc2 internal prototype to avoid an error.  */
25168 #ifdef __cplusplus
25169 extern "C"
25170 {
25171 #endif
25172 /* We use char because int might match the return type of a gcc2
25173    builtin and then its argument prototype would still apply.  */
25174 char cthread_fork ();
25175 /* The GNU C library defines this for functions which it implements
25176     to always fail with ENOSYS.  Some functions are actually named
25177     something starting with __ and the normal name is an alias.  */
25178 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25179 choke me
25180 #else
25181 char (*f) () = cthread_fork;
25182 #endif
25183 #ifdef __cplusplus
25184 }
25185 #endif
25186
25187 int
25188 main ()
25189 {
25190 return f != cthread_fork;
25191   ;
25192   return 0;
25193 }
25194 _ACEOF
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25197   (eval $ac_link) 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } &&
25204          { ac_try='test -z "$ac_c_werror_flag"
25205                          || test ! -s conftest.err'
25206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207   (eval $ac_try) 2>&5
25208   ac_status=$?
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); }; } &&
25211          { ac_try='test -s conftest$ac_exeext'
25212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213   (eval $ac_try) 2>&5
25214   ac_status=$?
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); }; }; then
25217   ac_cv_func_cthread_fork=yes
25218 else
25219   echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25221
25222 ac_cv_func_cthread_fork=no
25223 fi
25224 rm -f conftest.err conftest.$ac_objext \
25225       conftest$ac_exeext conftest.$ac_ext
25226 fi
25227 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25228 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25229 if test $ac_cv_func_cthread_fork = yes; then
25230   ol_link_threads=yes
25231 fi
25232
25233
25234                 if test $ol_link_threads = no ; then
25235                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25236 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25237 if test "${ol_cv_cthread_all_load+set}" = set; then
25238   echo $ECHO_N "(cached) $ECHO_C" >&6
25239 else
25240
25241                                                                 save_LIBS="$LIBS"
25242                                 LIBS="-all_load $LIBS"
25243                                 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249 #include <mach/cthreads.h>
25250 int
25251 main ()
25252 {
25253
25254                                         cthread_fork((void *)0, (void *)0);
25255
25256   ;
25257   return 0;
25258 }
25259 _ACEOF
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25262   (eval $ac_link) 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } &&
25269          { ac_try='test -z "$ac_c_werror_flag"
25270                          || test ! -s conftest.err'
25271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25272   (eval $ac_try) 2>&5
25273   ac_status=$?
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); }; } &&
25276          { ac_try='test -s conftest$ac_exeext'
25277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25278   (eval $ac_try) 2>&5
25279   ac_status=$?
25280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25281   (exit $ac_status); }; }; then
25282   ol_cv_cthread_all_load=yes
25283 else
25284   echo "$as_me: failed program was:" >&5
25285 sed 's/^/| /' conftest.$ac_ext >&5
25286
25287 ol_cv_cthread_all_load=no
25288 fi
25289 rm -f conftest.err conftest.$ac_objext \
25290       conftest$ac_exeext conftest.$ac_ext
25291                                                                 LIBS="$save_LIBS"
25292
25293 fi
25294 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25295 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25296
25297                         if test $ol_cv_cthread_all_load = yes ; then
25298                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25299                                 ol_link_threads=mach
25300                                 ol_with_threads=found
25301                         fi
25302                 fi
25303
25304         elif test $ac_cv_header_cthreads_h = yes ; then
25305
25306                 ol_with_threads=found
25307
25308                                 save_LIBS="$LIBS"
25309                 LIBS="$LIBS -lthreads"
25310                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25311 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25312 if test "${ac_cv_func_cthread_fork+set}" = set; then
25313   echo $ECHO_N "(cached) $ECHO_C" >&6
25314 else
25315   cat >conftest.$ac_ext <<_ACEOF
25316 /* confdefs.h.  */
25317 _ACEOF
25318 cat confdefs.h >>conftest.$ac_ext
25319 cat >>conftest.$ac_ext <<_ACEOF
25320 /* end confdefs.h.  */
25321 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25323 #define cthread_fork innocuous_cthread_fork
25324
25325 /* System header to define __stub macros and hopefully few prototypes,
25326     which can conflict with char cthread_fork (); below.
25327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25328     <limits.h> exists even on freestanding compilers.  */
25329
25330 #ifdef __STDC__
25331 # include <limits.h>
25332 #else
25333 # include <assert.h>
25334 #endif
25335
25336 #undef cthread_fork
25337
25338 /* Override any gcc2 internal prototype to avoid an error.  */
25339 #ifdef __cplusplus
25340 extern "C"
25341 {
25342 #endif
25343 /* We use char because int might match the return type of a gcc2
25344    builtin and then its argument prototype would still apply.  */
25345 char cthread_fork ();
25346 /* The GNU C library defines this for functions which it implements
25347     to always fail with ENOSYS.  Some functions are actually named
25348     something starting with __ and the normal name is an alias.  */
25349 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25350 choke me
25351 #else
25352 char (*f) () = cthread_fork;
25353 #endif
25354 #ifdef __cplusplus
25355 }
25356 #endif
25357
25358 int
25359 main ()
25360 {
25361 return f != cthread_fork;
25362   ;
25363   return 0;
25364 }
25365 _ACEOF
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25368   (eval $ac_link) 2>conftest.er1
25369   ac_status=$?
25370   grep -v '^ *+' conftest.er1 >conftest.err
25371   rm -f conftest.er1
25372   cat conftest.err >&5
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } &&
25375          { ac_try='test -z "$ac_c_werror_flag"
25376                          || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest$ac_exeext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   ac_cv_func_cthread_fork=yes
25389 else
25390   echo "$as_me: failed program was:" >&5
25391 sed 's/^/| /' conftest.$ac_ext >&5
25392
25393 ac_cv_func_cthread_fork=no
25394 fi
25395 rm -f conftest.err conftest.$ac_objext \
25396       conftest$ac_exeext conftest.$ac_ext
25397 fi
25398 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25399 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25400 if test $ac_cv_func_cthread_fork = yes; then
25401   ol_link_threads=yes
25402 fi
25403
25404                 LIBS="$save_LIBS"
25405
25406                 if test $ol_link_threads = yes ; then
25407                         LTHREAD_LIBS="-lthreads"
25408                         ol_link_threads=mach
25409                         ol_with_threads=found
25410                 else
25411                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25412 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25413    { (exit 1); exit 1; }; }
25414                 fi
25415
25416         elif test $ol_with_threads = mach ; then
25417                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25418 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25419    { (exit 1); exit 1; }; }
25420         fi
25421
25422         if test $ol_link_threads = mach ; then
25423
25424 cat >>confdefs.h <<\_ACEOF
25425 #define HAVE_MACH_CTHREADS 1
25426 _ACEOF
25427
25428         elif test $ol_with_threads = found ; then
25429                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25430 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25431    { (exit 1); exit 1; }; }
25432         fi
25433 fi
25434
25435 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25436         -o $ol_with_threads = pth ; then
25437
25438
25439 for ac_header in pth.h
25440 do
25441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25443   echo "$as_me:$LINENO: checking for $ac_header" >&5
25444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25446   echo $ECHO_N "(cached) $ECHO_C" >&6
25447 fi
25448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25450 else
25451   # Is the header compilable?
25452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460 $ac_includes_default
25461 #include <$ac_header>
25462 _ACEOF
25463 rm -f conftest.$ac_objext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25465   (eval $ac_compile) 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } &&
25472          { ac_try='test -z "$ac_c_werror_flag"
25473                          || test ! -s conftest.err'
25474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475   (eval $ac_try) 2>&5
25476   ac_status=$?
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); }; } &&
25479          { ac_try='test -s conftest.$ac_objext'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; }; then
25485   ac_header_compiler=yes
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 ac_header_compiler=no
25491 fi
25492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25494 echo "${ECHO_T}$ac_header_compiler" >&6
25495
25496 # Is the header present?
25497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25499 cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h.  */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h.  */
25505 #include <$ac_header>
25506 _ACEOF
25507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25509   ac_status=$?
25510   grep -v '^ *+' conftest.er1 >conftest.err
25511   rm -f conftest.er1
25512   cat conftest.err >&5
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } >/dev/null; then
25515   if test -s conftest.err; then
25516     ac_cpp_err=$ac_c_preproc_warn_flag
25517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25518   else
25519     ac_cpp_err=
25520   fi
25521 else
25522   ac_cpp_err=yes
25523 fi
25524 if test -z "$ac_cpp_err"; then
25525   ac_header_preproc=yes
25526 else
25527   echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25529
25530   ac_header_preproc=no
25531 fi
25532 rm -f conftest.err conftest.$ac_ext
25533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25534 echo "${ECHO_T}$ac_header_preproc" >&6
25535
25536 # So?  What about this header?
25537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25538   yes:no: )
25539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25543     ac_header_preproc=yes
25544     ;;
25545   no:yes:* )
25546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25558     (
25559       cat <<\_ASBOX
25560 ## ------------------------------------------ ##
25561 ## Report this to the AC_PACKAGE_NAME lists.  ##
25562 ## ------------------------------------------ ##
25563 _ASBOX
25564     ) |
25565       sed "s/^/$as_me: WARNING:     /" >&2
25566     ;;
25567 esac
25568 echo "$as_me:$LINENO: checking for $ac_header" >&5
25569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571   echo $ECHO_N "(cached) $ECHO_C" >&6
25572 else
25573   eval "$as_ac_Header=\$ac_header_preproc"
25574 fi
25575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25577
25578 fi
25579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25580   cat >>confdefs.h <<_ACEOF
25581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25582 _ACEOF
25583
25584 fi
25585
25586 done
25587
25588
25589         if test $ac_cv_header_pth_h = yes ; then
25590                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25591 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25592 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   ac_check_lib_save_LIBS=$LIBS
25596 LIBS="-lpth  $LIBS"
25597 cat >conftest.$ac_ext <<_ACEOF
25598 /* confdefs.h.  */
25599 _ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h.  */
25603
25604 /* Override any gcc2 internal prototype to avoid an error.  */
25605 #ifdef __cplusplus
25606 extern "C"
25607 #endif
25608 /* We use char because int might match the return type of a gcc2
25609    builtin and then its argument prototype would still apply.  */
25610 char pth_version ();
25611 int
25612 main ()
25613 {
25614 pth_version ();
25615   ;
25616   return 0;
25617 }
25618 _ACEOF
25619 rm -f conftest.$ac_objext conftest$ac_exeext
25620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25621   (eval $ac_link) 2>conftest.er1
25622   ac_status=$?
25623   grep -v '^ *+' conftest.er1 >conftest.err
25624   rm -f conftest.er1
25625   cat conftest.err >&5
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); } &&
25628          { ac_try='test -z "$ac_c_werror_flag"
25629                          || test ! -s conftest.err'
25630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25631   (eval $ac_try) 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; } &&
25635          { ac_try='test -s conftest$ac_exeext'
25636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637   (eval $ac_try) 2>&5
25638   ac_status=$?
25639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640   (exit $ac_status); }; }; then
25641   ac_cv_lib_pth_pth_version=yes
25642 else
25643   echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25645
25646 ac_cv_lib_pth_pth_version=no
25647 fi
25648 rm -f conftest.err conftest.$ac_objext \
25649       conftest$ac_exeext conftest.$ac_ext
25650 LIBS=$ac_check_lib_save_LIBS
25651 fi
25652 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25653 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25654 if test $ac_cv_lib_pth_pth_version = yes; then
25655   have_pth=yes
25656 else
25657   have_pth=no
25658 fi
25659
25660
25661                 if test $have_pth = yes ; then
25662
25663 cat >>confdefs.h <<\_ACEOF
25664 #define HAVE_GNU_PTH 1
25665 _ACEOF
25666
25667                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25668                         ol_link_threads=pth
25669                         ol_with_threads=found
25670
25671                         if test $ol_with_yielding_select = auto ; then
25672                                 ol_with_yielding_select=yes
25673                         fi
25674                 fi
25675         fi
25676 fi
25677
25678 if test $ol_with_threads = auto -o $ol_with_threads = yes \
25679         -o $ol_with_threads = lwp ; then
25680
25681
25682
25683 for ac_header in thread.h synch.h
25684 do
25685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25687   echo "$as_me:$LINENO: checking for $ac_header" >&5
25688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690   echo $ECHO_N "(cached) $ECHO_C" >&6
25691 fi
25692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25694 else
25695   # Is the header compilable?
25696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25699 /* confdefs.h.  */
25700 _ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h.  */
25704 $ac_includes_default
25705 #include <$ac_header>
25706 _ACEOF
25707 rm -f conftest.$ac_objext
25708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25709   (eval $ac_compile) 2>conftest.er1
25710   ac_status=$?
25711   grep -v '^ *+' conftest.er1 >conftest.err
25712   rm -f conftest.er1
25713   cat conftest.err >&5
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); } &&
25716          { ac_try='test -z "$ac_c_werror_flag"
25717                          || test ! -s conftest.err'
25718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25719   (eval $ac_try) 2>&5
25720   ac_status=$?
25721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722   (exit $ac_status); }; } &&
25723          { ac_try='test -s conftest.$ac_objext'
25724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25725   (eval $ac_try) 2>&5
25726   ac_status=$?
25727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728   (exit $ac_status); }; }; then
25729   ac_header_compiler=yes
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 ac_header_compiler=no
25735 fi
25736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25738 echo "${ECHO_T}$ac_header_compiler" >&6
25739
25740 # Is the header present?
25741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25743 cat >conftest.$ac_ext <<_ACEOF
25744 /* confdefs.h.  */
25745 _ACEOF
25746 cat confdefs.h >>conftest.$ac_ext
25747 cat >>conftest.$ac_ext <<_ACEOF
25748 /* end confdefs.h.  */
25749 #include <$ac_header>
25750 _ACEOF
25751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25753   ac_status=$?
25754   grep -v '^ *+' conftest.er1 >conftest.err
25755   rm -f conftest.er1
25756   cat conftest.err >&5
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } >/dev/null; then
25759   if test -s conftest.err; then
25760     ac_cpp_err=$ac_c_preproc_warn_flag
25761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25762   else
25763     ac_cpp_err=
25764   fi
25765 else
25766   ac_cpp_err=yes
25767 fi
25768 if test -z "$ac_cpp_err"; then
25769   ac_header_preproc=yes
25770 else
25771   echo "$as_me: failed program was:" >&5
25772 sed 's/^/| /' conftest.$ac_ext >&5
25773
25774   ac_header_preproc=no
25775 fi
25776 rm -f conftest.err conftest.$ac_ext
25777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25778 echo "${ECHO_T}$ac_header_preproc" >&6
25779
25780 # So?  What about this header?
25781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25782   yes:no: )
25783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25787     ac_header_preproc=yes
25788     ;;
25789   no:yes:* )
25790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25802     (
25803       cat <<\_ASBOX
25804 ## ------------------------------------------ ##
25805 ## Report this to the AC_PACKAGE_NAME lists.  ##
25806 ## ------------------------------------------ ##
25807 _ASBOX
25808     ) |
25809       sed "s/^/$as_me: WARNING:     /" >&2
25810     ;;
25811 esac
25812 echo "$as_me:$LINENO: checking for $ac_header" >&5
25813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817   eval "$as_ac_Header=\$ac_header_preproc"
25818 fi
25819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25821
25822 fi
25823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25824   cat >>confdefs.h <<_ACEOF
25825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25826 _ACEOF
25827
25828 fi
25829
25830 done
25831
25832         if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
25833                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25834 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25835 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25836   echo $ECHO_N "(cached) $ECHO_C" >&6
25837 else
25838   ac_check_lib_save_LIBS=$LIBS
25839 LIBS="-lthread  $LIBS"
25840 cat >conftest.$ac_ext <<_ACEOF
25841 /* confdefs.h.  */
25842 _ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h.  */
25846
25847 /* Override any gcc2 internal prototype to avoid an error.  */
25848 #ifdef __cplusplus
25849 extern "C"
25850 #endif
25851 /* We use char because int might match the return type of a gcc2
25852    builtin and then its argument prototype would still apply.  */
25853 char thr_create ();
25854 int
25855 main ()
25856 {
25857 thr_create ();
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext conftest$ac_exeext
25863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25864   (eval $ac_link) 2>conftest.er1
25865   ac_status=$?
25866   grep -v '^ *+' conftest.er1 >conftest.err
25867   rm -f conftest.er1
25868   cat conftest.err >&5
25869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870   (exit $ac_status); } &&
25871          { ac_try='test -z "$ac_c_werror_flag"
25872                          || test ! -s conftest.err'
25873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874   (eval $ac_try) 2>&5
25875   ac_status=$?
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); }; } &&
25878          { ac_try='test -s conftest$ac_exeext'
25879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880   (eval $ac_try) 2>&5
25881   ac_status=$?
25882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); }; }; then
25884   ac_cv_lib_thread_thr_create=yes
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889 ac_cv_lib_thread_thr_create=no
25890 fi
25891 rm -f conftest.err conftest.$ac_objext \
25892       conftest$ac_exeext conftest.$ac_ext
25893 LIBS=$ac_check_lib_save_LIBS
25894 fi
25895 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25896 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25897 if test $ac_cv_lib_thread_thr_create = yes; then
25898   have_thr=yes
25899 else
25900   have_thr=no
25901 fi
25902
25903
25904                 if test $have_thr = yes ; then
25905
25906 cat >>confdefs.h <<\_ACEOF
25907 #define HAVE_THR 1
25908 _ACEOF
25909
25910                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25911                         ol_link_threads=thr
25912
25913                         if test $ol_with_yielding_select = auto ; then
25914                                 ol_with_yielding_select=yes
25915                         fi
25916
25917
25918
25919 for ac_func in \
25920                                 thr_setconcurrency \
25921                                 thr_getconcurrency \
25922
25923 do
25924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25925 echo "$as_me:$LINENO: checking for $ac_func" >&5
25926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25927 if eval "test \"\${$as_ac_var+set}\" = set"; then
25928   echo $ECHO_N "(cached) $ECHO_C" >&6
25929 else
25930   cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25938 #define $ac_func innocuous_$ac_func
25939
25940 /* System header to define __stub macros and hopefully few prototypes,
25941     which can conflict with char $ac_func (); below.
25942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25943     <limits.h> exists even on freestanding compilers.  */
25944
25945 #ifdef __STDC__
25946 # include <limits.h>
25947 #else
25948 # include <assert.h>
25949 #endif
25950
25951 #undef $ac_func
25952
25953 /* Override any gcc2 internal prototype to avoid an error.  */
25954 #ifdef __cplusplus
25955 extern "C"
25956 {
25957 #endif
25958 /* We use char because int might match the return type of a gcc2
25959    builtin and then its argument prototype would still apply.  */
25960 char $ac_func ();
25961 /* The GNU C library defines this for functions which it implements
25962     to always fail with ENOSYS.  Some functions are actually named
25963     something starting with __ and the normal name is an alias.  */
25964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25965 choke me
25966 #else
25967 char (*f) () = $ac_func;
25968 #endif
25969 #ifdef __cplusplus
25970 }
25971 #endif
25972
25973 int
25974 main ()
25975 {
25976 return f != $ac_func;
25977   ;
25978   return 0;
25979 }
25980 _ACEOF
25981 rm -f conftest.$ac_objext conftest$ac_exeext
25982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25983   (eval $ac_link) 2>conftest.er1
25984   ac_status=$?
25985   grep -v '^ *+' conftest.er1 >conftest.err
25986   rm -f conftest.er1
25987   cat conftest.err >&5
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); } &&
25990          { ac_try='test -z "$ac_c_werror_flag"
25991                          || test ! -s conftest.err'
25992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993   (eval $ac_try) 2>&5
25994   ac_status=$?
25995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996   (exit $ac_status); }; } &&
25997          { ac_try='test -s conftest$ac_exeext'
25998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999   (eval $ac_try) 2>&5
26000   ac_status=$?
26001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002   (exit $ac_status); }; }; then
26003   eval "$as_ac_var=yes"
26004 else
26005   echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26007
26008 eval "$as_ac_var=no"
26009 fi
26010 rm -f conftest.err conftest.$ac_objext \
26011       conftest$ac_exeext conftest.$ac_ext
26012 fi
26013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26015 if test `eval echo '${'$as_ac_var'}'` = yes; then
26016   cat >>confdefs.h <<_ACEOF
26017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26018 _ACEOF
26019
26020 fi
26021 done
26022
26023                 fi
26024         fi
26025
26026
26027 for ac_header in lwp/lwp.h
26028 do
26029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26031   echo "$as_me:$LINENO: checking for $ac_header" >&5
26032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26034   echo $ECHO_N "(cached) $ECHO_C" >&6
26035 fi
26036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26038 else
26039   # Is the header compilable?
26040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26042 cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h.  */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h.  */
26048 $ac_includes_default
26049 #include <$ac_header>
26050 _ACEOF
26051 rm -f conftest.$ac_objext
26052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053   (eval $ac_compile) 2>conftest.er1
26054   ac_status=$?
26055   grep -v '^ *+' conftest.er1 >conftest.err
26056   rm -f conftest.er1
26057   cat conftest.err >&5
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } &&
26060          { ac_try='test -z "$ac_c_werror_flag"
26061                          || test ! -s conftest.err'
26062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063   (eval $ac_try) 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; } &&
26067          { ac_try='test -s conftest.$ac_objext'
26068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069   (eval $ac_try) 2>&5
26070   ac_status=$?
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); }; }; then
26073   ac_header_compiler=yes
26074 else
26075   echo "$as_me: failed program was:" >&5
26076 sed 's/^/| /' conftest.$ac_ext >&5
26077
26078 ac_header_compiler=no
26079 fi
26080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26082 echo "${ECHO_T}$ac_header_compiler" >&6
26083
26084 # Is the header present?
26085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26087 cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h.  */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
26092 /* end confdefs.h.  */
26093 #include <$ac_header>
26094 _ACEOF
26095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } >/dev/null; then
26103   if test -s conftest.err; then
26104     ac_cpp_err=$ac_c_preproc_warn_flag
26105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26106   else
26107     ac_cpp_err=
26108   fi
26109 else
26110   ac_cpp_err=yes
26111 fi
26112 if test -z "$ac_cpp_err"; then
26113   ac_header_preproc=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118   ac_header_preproc=no
26119 fi
26120 rm -f conftest.err conftest.$ac_ext
26121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26122 echo "${ECHO_T}$ac_header_preproc" >&6
26123
26124 # So?  What about this header?
26125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26126   yes:no: )
26127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26131     ac_header_preproc=yes
26132     ;;
26133   no:yes:* )
26134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26146     (
26147       cat <<\_ASBOX
26148 ## ------------------------------------------ ##
26149 ## Report this to the AC_PACKAGE_NAME lists.  ##
26150 ## ------------------------------------------ ##
26151 _ASBOX
26152     ) |
26153       sed "s/^/$as_me: WARNING:     /" >&2
26154     ;;
26155 esac
26156 echo "$as_me:$LINENO: checking for $ac_header" >&5
26157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26159   echo $ECHO_N "(cached) $ECHO_C" >&6
26160 else
26161   eval "$as_ac_Header=\$ac_header_preproc"
26162 fi
26163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26165
26166 fi
26167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26168   cat >>confdefs.h <<_ACEOF
26169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26170 _ACEOF
26171
26172 fi
26173
26174 done
26175
26176         if test $ac_cv_header_lwp_lwp_h = yes ; then
26177                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26178 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26179 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26180   echo $ECHO_N "(cached) $ECHO_C" >&6
26181 else
26182   ac_check_lib_save_LIBS=$LIBS
26183 LIBS="-llwp  $LIBS"
26184 cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190
26191 /* Override any gcc2 internal prototype to avoid an error.  */
26192 #ifdef __cplusplus
26193 extern "C"
26194 #endif
26195 /* We use char because int might match the return type of a gcc2
26196    builtin and then its argument prototype would still apply.  */
26197 char lwp_create ();
26198 int
26199 main ()
26200 {
26201 lwp_create ();
26202   ;
26203   return 0;
26204 }
26205 _ACEOF
26206 rm -f conftest.$ac_objext conftest$ac_exeext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26208   (eval $ac_link) 2>conftest.er1
26209   ac_status=$?
26210   grep -v '^ *+' conftest.er1 >conftest.err
26211   rm -f conftest.er1
26212   cat conftest.err >&5
26213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214   (exit $ac_status); } &&
26215          { ac_try='test -z "$ac_c_werror_flag"
26216                          || test ! -s conftest.err'
26217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26218   (eval $ac_try) 2>&5
26219   ac_status=$?
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); }; } &&
26222          { ac_try='test -s conftest$ac_exeext'
26223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26224   (eval $ac_try) 2>&5
26225   ac_status=$?
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); }; }; then
26228   ac_cv_lib_lwp_lwp_create=yes
26229 else
26230   echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26232
26233 ac_cv_lib_lwp_lwp_create=no
26234 fi
26235 rm -f conftest.err conftest.$ac_objext \
26236       conftest$ac_exeext conftest.$ac_ext
26237 LIBS=$ac_check_lib_save_LIBS
26238 fi
26239 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26240 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26241 if test $ac_cv_lib_lwp_lwp_create = yes; then
26242   have_lwp=yes
26243 else
26244   have_lwp=no
26245 fi
26246
26247
26248                 if test $have_lwp = yes ; then
26249
26250 cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_LWP 1
26252 _ACEOF
26253
26254                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26255                         ol_link_threads=lwp
26256
26257                         if test $ol_with_yielding_select = auto ; then
26258                                 ol_with_yielding_select=no
26259                         fi
26260                 fi
26261         fi
26262 fi
26263
26264 if test $ol_with_yielding_select = yes ; then
26265
26266 cat >>confdefs.h <<\_ACEOF
26267 #define HAVE_YIELDING_SELECT 1
26268 _ACEOF
26269
26270 fi
26271
26272 if test $ol_with_threads = manual ; then
26273                 ol_link_threads=yes
26274
26275         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26276 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26277
26278
26279
26280 for ac_header in pthread.h sched.h
26281 do
26282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284   echo "$as_me:$LINENO: checking for $ac_header" >&5
26285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287   echo $ECHO_N "(cached) $ECHO_C" >&6
26288 fi
26289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26291 else
26292   # Is the header compilable?
26293 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26295 cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 $ac_includes_default
26302 #include <$ac_header>
26303 _ACEOF
26304 rm -f conftest.$ac_objext
26305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306   (eval $ac_compile) 2>conftest.er1
26307   ac_status=$?
26308   grep -v '^ *+' conftest.er1 >conftest.err
26309   rm -f conftest.er1
26310   cat conftest.err >&5
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); } &&
26313          { ac_try='test -z "$ac_c_werror_flag"
26314                          || test ! -s conftest.err'
26315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316   (eval $ac_try) 2>&5
26317   ac_status=$?
26318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319   (exit $ac_status); }; } &&
26320          { ac_try='test -s conftest.$ac_objext'
26321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322   (eval $ac_try) 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); }; }; then
26326   ac_header_compiler=yes
26327 else
26328   echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331 ac_header_compiler=no
26332 fi
26333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335 echo "${ECHO_T}$ac_header_compiler" >&6
26336
26337 # Is the header present?
26338 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26340 cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 #include <$ac_header>
26347 _ACEOF
26348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } >/dev/null; then
26356   if test -s conftest.err; then
26357     ac_cpp_err=$ac_c_preproc_warn_flag
26358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26359   else
26360     ac_cpp_err=
26361   fi
26362 else
26363   ac_cpp_err=yes
26364 fi
26365 if test -z "$ac_cpp_err"; then
26366   ac_header_preproc=yes
26367 else
26368   echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26370
26371   ac_header_preproc=no
26372 fi
26373 rm -f conftest.err conftest.$ac_ext
26374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375 echo "${ECHO_T}$ac_header_preproc" >&6
26376
26377 # So?  What about this header?
26378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26379   yes:no: )
26380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384     ac_header_preproc=yes
26385     ;;
26386   no:yes:* )
26387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26399     (
26400       cat <<\_ASBOX
26401 ## ------------------------------------------ ##
26402 ## Report this to the AC_PACKAGE_NAME lists.  ##
26403 ## ------------------------------------------ ##
26404 _ASBOX
26405     ) |
26406       sed "s/^/$as_me: WARNING:     /" >&2
26407     ;;
26408 esac
26409 echo "$as_me:$LINENO: checking for $ac_header" >&5
26410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412   echo $ECHO_N "(cached) $ECHO_C" >&6
26413 else
26414   eval "$as_ac_Header=\$ac_header_preproc"
26415 fi
26416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26418
26419 fi
26420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26421   cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26423 _ACEOF
26424
26425 fi
26426
26427 done
26428
26429
26430
26431 for ac_func in sched_yield pthread_yield
26432 do
26433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26434 echo "$as_me:$LINENO: checking for $ac_func" >&5
26435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26436 if eval "test \"\${$as_ac_var+set}\" = set"; then
26437   echo $ECHO_N "(cached) $ECHO_C" >&6
26438 else
26439   cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26447 #define $ac_func innocuous_$ac_func
26448
26449 /* System header to define __stub macros and hopefully few prototypes,
26450     which can conflict with char $ac_func (); below.
26451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26452     <limits.h> exists even on freestanding compilers.  */
26453
26454 #ifdef __STDC__
26455 # include <limits.h>
26456 #else
26457 # include <assert.h>
26458 #endif
26459
26460 #undef $ac_func
26461
26462 /* Override any gcc2 internal prototype to avoid an error.  */
26463 #ifdef __cplusplus
26464 extern "C"
26465 {
26466 #endif
26467 /* We use char because int might match the return type of a gcc2
26468    builtin and then its argument prototype would still apply.  */
26469 char $ac_func ();
26470 /* The GNU C library defines this for functions which it implements
26471     to always fail with ENOSYS.  Some functions are actually named
26472     something starting with __ and the normal name is an alias.  */
26473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26474 choke me
26475 #else
26476 char (*f) () = $ac_func;
26477 #endif
26478 #ifdef __cplusplus
26479 }
26480 #endif
26481
26482 int
26483 main ()
26484 {
26485 return f != $ac_func;
26486   ;
26487   return 0;
26488 }
26489 _ACEOF
26490 rm -f conftest.$ac_objext conftest$ac_exeext
26491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26492   (eval $ac_link) 2>conftest.er1
26493   ac_status=$?
26494   grep -v '^ *+' conftest.er1 >conftest.err
26495   rm -f conftest.er1
26496   cat conftest.err >&5
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); } &&
26499          { ac_try='test -z "$ac_c_werror_flag"
26500                          || test ! -s conftest.err'
26501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26502   (eval $ac_try) 2>&5
26503   ac_status=$?
26504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505   (exit $ac_status); }; } &&
26506          { ac_try='test -s conftest$ac_exeext'
26507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508   (eval $ac_try) 2>&5
26509   ac_status=$?
26510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511   (exit $ac_status); }; }; then
26512   eval "$as_ac_var=yes"
26513 else
26514   echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26516
26517 eval "$as_ac_var=no"
26518 fi
26519 rm -f conftest.err conftest.$ac_objext \
26520       conftest$ac_exeext conftest.$ac_ext
26521 fi
26522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26524 if test `eval echo '${'$as_ac_var'}'` = yes; then
26525   cat >>confdefs.h <<_ACEOF
26526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26527 _ACEOF
26528
26529 fi
26530 done
26531
26532
26533         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26534 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26535 if test "${ol_cv_header_linux_threads+set}" = set; then
26536   echo $ECHO_N "(cached) $ECHO_C" >&6
26537 else
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 <pthread.h>
26545 _ACEOF
26546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26547   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26548   ol_cv_header_linux_threads=yes
26549 else
26550   ol_cv_header_linux_threads=no
26551 fi
26552 rm -f conftest*
26553
26554
26555 fi
26556 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26557 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26558         if test $ol_cv_header_linux_threads = yes; then
26559
26560 cat >>confdefs.h <<\_ACEOF
26561 #define HAVE_LINUX_THREADS 1
26562 _ACEOF
26563
26564         fi
26565
26566
26567
26568 for ac_header in mach/cthreads.h
26569 do
26570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26572   echo "$as_me:$LINENO: checking for $ac_header" >&5
26573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26575   echo $ECHO_N "(cached) $ECHO_C" >&6
26576 fi
26577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26579 else
26580   # Is the header compilable?
26581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26583 cat >conftest.$ac_ext <<_ACEOF
26584 /* confdefs.h.  */
26585 _ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h.  */
26589 $ac_includes_default
26590 #include <$ac_header>
26591 _ACEOF
26592 rm -f conftest.$ac_objext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26594   (eval $ac_compile) 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } &&
26601          { ac_try='test -z "$ac_c_werror_flag"
26602                          || test ! -s conftest.err'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; } &&
26608          { ac_try='test -s conftest.$ac_objext'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; }; then
26614   ac_header_compiler=yes
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 ac_header_compiler=no
26620 fi
26621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6
26624
26625 # Is the header present?
26626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26628 cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h.  */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h.  */
26634 #include <$ac_header>
26635 _ACEOF
26636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } >/dev/null; then
26644   if test -s conftest.err; then
26645     ac_cpp_err=$ac_c_preproc_warn_flag
26646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26647   else
26648     ac_cpp_err=
26649   fi
26650 else
26651   ac_cpp_err=yes
26652 fi
26653 if test -z "$ac_cpp_err"; then
26654   ac_header_preproc=yes
26655 else
26656   echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26658
26659   ac_header_preproc=no
26660 fi
26661 rm -f conftest.err conftest.$ac_ext
26662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26663 echo "${ECHO_T}$ac_header_preproc" >&6
26664
26665 # So?  What about this header?
26666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26667   yes:no: )
26668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26672     ac_header_preproc=yes
26673     ;;
26674   no:yes:* )
26675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26687     (
26688       cat <<\_ASBOX
26689 ## ------------------------------------------ ##
26690 ## Report this to the AC_PACKAGE_NAME lists.  ##
26691 ## ------------------------------------------ ##
26692 _ASBOX
26693     ) |
26694       sed "s/^/$as_me: WARNING:     /" >&2
26695     ;;
26696 esac
26697 echo "$as_me:$LINENO: checking for $ac_header" >&5
26698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26700   echo $ECHO_N "(cached) $ECHO_C" >&6
26701 else
26702   eval "$as_ac_Header=\$ac_header_preproc"
26703 fi
26704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26706
26707 fi
26708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26709   cat >>confdefs.h <<_ACEOF
26710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26711 _ACEOF
26712
26713 fi
26714
26715 done
26716
26717
26718 for ac_header in lwp/lwp.h
26719 do
26720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26722   echo "$as_me:$LINENO: checking for $ac_header" >&5
26723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26725   echo $ECHO_N "(cached) $ECHO_C" >&6
26726 fi
26727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26729 else
26730   # Is the header compilable?
26731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26733 cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739 $ac_includes_default
26740 #include <$ac_header>
26741 _ACEOF
26742 rm -f conftest.$ac_objext
26743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26744   (eval $ac_compile) 2>conftest.er1
26745   ac_status=$?
26746   grep -v '^ *+' conftest.er1 >conftest.err
26747   rm -f conftest.er1
26748   cat conftest.err >&5
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); } &&
26751          { ac_try='test -z "$ac_c_werror_flag"
26752                          || test ! -s conftest.err'
26753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754   (eval $ac_try) 2>&5
26755   ac_status=$?
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); }; } &&
26758          { ac_try='test -s conftest.$ac_objext'
26759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760   (eval $ac_try) 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; }; then
26764   ac_header_compiler=yes
26765 else
26766   echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769 ac_header_compiler=no
26770 fi
26771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26773 echo "${ECHO_T}$ac_header_compiler" >&6
26774
26775 # Is the header present?
26776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26778 cat >conftest.$ac_ext <<_ACEOF
26779 /* confdefs.h.  */
26780 _ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h.  */
26784 #include <$ac_header>
26785 _ACEOF
26786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26788   ac_status=$?
26789   grep -v '^ *+' conftest.er1 >conftest.err
26790   rm -f conftest.er1
26791   cat conftest.err >&5
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); } >/dev/null; then
26794   if test -s conftest.err; then
26795     ac_cpp_err=$ac_c_preproc_warn_flag
26796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26797   else
26798     ac_cpp_err=
26799   fi
26800 else
26801   ac_cpp_err=yes
26802 fi
26803 if test -z "$ac_cpp_err"; then
26804   ac_header_preproc=yes
26805 else
26806   echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809   ac_header_preproc=no
26810 fi
26811 rm -f conftest.err conftest.$ac_ext
26812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26813 echo "${ECHO_T}$ac_header_preproc" >&6
26814
26815 # So?  What about this header?
26816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26817   yes:no: )
26818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26822     ac_header_preproc=yes
26823     ;;
26824   no:yes:* )
26825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26837     (
26838       cat <<\_ASBOX
26839 ## ------------------------------------------ ##
26840 ## Report this to the AC_PACKAGE_NAME lists.  ##
26841 ## ------------------------------------------ ##
26842 _ASBOX
26843     ) |
26844       sed "s/^/$as_me: WARNING:     /" >&2
26845     ;;
26846 esac
26847 echo "$as_me:$LINENO: checking for $ac_header" >&5
26848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26850   echo $ECHO_N "(cached) $ECHO_C" >&6
26851 else
26852   eval "$as_ac_Header=\$ac_header_preproc"
26853 fi
26854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26856
26857 fi
26858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26859   cat >>confdefs.h <<_ACEOF
26860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26861 _ACEOF
26862
26863 fi
26864
26865 done
26866
26867
26868
26869 for ac_header in thread.h synch.h
26870 do
26871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26873   echo "$as_me:$LINENO: checking for $ac_header" >&5
26874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26876   echo $ECHO_N "(cached) $ECHO_C" >&6
26877 fi
26878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26880 else
26881   # Is the header compilable?
26882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26884 cat >conftest.$ac_ext <<_ACEOF
26885 /* confdefs.h.  */
26886 _ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h.  */
26890 $ac_includes_default
26891 #include <$ac_header>
26892 _ACEOF
26893 rm -f conftest.$ac_objext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26895   (eval $ac_compile) 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } &&
26902          { ac_try='test -z "$ac_c_werror_flag"
26903                          || test ! -s conftest.err'
26904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905   (eval $ac_try) 2>&5
26906   ac_status=$?
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); }; } &&
26909          { ac_try='test -s conftest.$ac_objext'
26910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911   (eval $ac_try) 2>&5
26912   ac_status=$?
26913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914   (exit $ac_status); }; }; then
26915   ac_header_compiler=yes
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920 ac_header_compiler=no
26921 fi
26922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26923 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26924 echo "${ECHO_T}$ac_header_compiler" >&6
26925
26926 # Is the header present?
26927 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26930 /* confdefs.h.  */
26931 _ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h.  */
26935 #include <$ac_header>
26936 _ACEOF
26937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } >/dev/null; then
26945   if test -s conftest.err; then
26946     ac_cpp_err=$ac_c_preproc_warn_flag
26947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26948   else
26949     ac_cpp_err=
26950   fi
26951 else
26952   ac_cpp_err=yes
26953 fi
26954 if test -z "$ac_cpp_err"; then
26955   ac_header_preproc=yes
26956 else
26957   echo "$as_me: failed program was:" >&5
26958 sed 's/^/| /' conftest.$ac_ext >&5
26959
26960   ac_header_preproc=no
26961 fi
26962 rm -f conftest.err conftest.$ac_ext
26963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26964 echo "${ECHO_T}$ac_header_preproc" >&6
26965
26966 # So?  What about this header?
26967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26968   yes:no: )
26969     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26971     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26973     ac_header_preproc=yes
26974     ;;
26975   no:yes:* )
26976     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26978     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26979 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26980     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26982     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26983 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26986     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26988     (
26989       cat <<\_ASBOX
26990 ## ------------------------------------------ ##
26991 ## Report this to the AC_PACKAGE_NAME lists.  ##
26992 ## ------------------------------------------ ##
26993 _ASBOX
26994     ) |
26995       sed "s/^/$as_me: WARNING:     /" >&2
26996     ;;
26997 esac
26998 echo "$as_me:$LINENO: checking for $ac_header" >&5
26999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27001   echo $ECHO_N "(cached) $ECHO_C" >&6
27002 else
27003   eval "$as_ac_Header=\$ac_header_preproc"
27004 fi
27005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27007
27008 fi
27009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27010   cat >>confdefs.h <<_ACEOF
27011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27012 _ACEOF
27013
27014 fi
27015
27016 done
27017
27018 fi
27019
27020 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
27021                         cat >>confdefs.h <<\_ACEOF
27022 #define REENTRANT 1
27023 _ACEOF
27024
27025         cat >>confdefs.h <<\_ACEOF
27026 #define _REENTRANT 1
27027 _ACEOF
27028
27029         cat >>confdefs.h <<\_ACEOF
27030 #define THREAD_SAFE 1
27031 _ACEOF
27032
27033         cat >>confdefs.h <<\_ACEOF
27034 #define _THREAD_SAFE 1
27035 _ACEOF
27036
27037         cat >>confdefs.h <<\_ACEOF
27038 #define THREADSAFE 1
27039 _ACEOF
27040
27041         cat >>confdefs.h <<\_ACEOF
27042 #define _THREADSAFE 1
27043 _ACEOF
27044
27045         cat >>confdefs.h <<\_ACEOF
27046 #define _SGI_MP_SOURCE 1
27047 _ACEOF
27048
27049
27050                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27051 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27052 if test "${ol_cv_errno_thread_specific+set}" = set; then
27053   echo $ECHO_N "(cached) $ECHO_C" >&6
27054 else
27055
27056                 cat >conftest.$ac_ext <<_ACEOF
27057 /* confdefs.h.  */
27058 _ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h.  */
27062 #include <errno.h>
27063 int
27064 main ()
27065 {
27066 errno = 0;
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext conftest$ac_exeext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27073   (eval $ac_link) 2>conftest.er1
27074   ac_status=$?
27075   grep -v '^ *+' conftest.er1 >conftest.err
27076   rm -f conftest.er1
27077   cat conftest.err >&5
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } &&
27080          { ac_try='test -z "$ac_c_werror_flag"
27081                          || test ! -s conftest.err'
27082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083   (eval $ac_try) 2>&5
27084   ac_status=$?
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); }; } &&
27087          { ac_try='test -s conftest$ac_exeext'
27088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089   (eval $ac_try) 2>&5
27090   ac_status=$?
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); }; }; then
27093   ol_cv_errno_thread_specific=yes
27094 else
27095   echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27097
27098 ol_cv_errno_thread_specific=no
27099 fi
27100 rm -f conftest.err conftest.$ac_objext \
27101       conftest$ac_exeext conftest.$ac_ext
27102
27103 fi
27104 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27105 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27106
27107                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27108 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27109 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27110   echo $ECHO_N "(cached) $ECHO_C" >&6
27111 else
27112
27113                 cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119 #include <netdb.h>
27120 int
27121 main ()
27122 {
27123 h_errno = 0;
27124   ;
27125   return 0;
27126 }
27127 _ACEOF
27128 rm -f conftest.$ac_objext conftest$ac_exeext
27129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27130   (eval $ac_link) 2>conftest.er1
27131   ac_status=$?
27132   grep -v '^ *+' conftest.er1 >conftest.err
27133   rm -f conftest.er1
27134   cat conftest.err >&5
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); } &&
27137          { ac_try='test -z "$ac_c_werror_flag"
27138                          || test ! -s conftest.err'
27139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140   (eval $ac_try) 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; } &&
27144          { ac_try='test -s conftest$ac_exeext'
27145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146   (eval $ac_try) 2>&5
27147   ac_status=$?
27148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149   (exit $ac_status); }; }; then
27150   ol_cv_h_errno_thread_specific=yes
27151 else
27152   echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 ol_cv_h_errno_thread_specific=no
27156 fi
27157 rm -f conftest.err conftest.$ac_objext \
27158       conftest$ac_exeext conftest.$ac_ext
27159
27160 fi
27161 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27162 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27163
27164         if test $ol_cv_errno_thread_specific != yes \
27165                 -o $ol_cv_h_errno_thread_specific != yes ; then
27166                 LIBS="$LTHREAD_LIBS $LIBS"
27167                 LTHREAD_LIBS=""
27168         fi
27169
27170 fi
27171
27172 if test $ol_link_threads = no ; then
27173         if test $ol_with_threads = yes ; then
27174                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27175 echo "$as_me: error: no suitable thread support" >&2;}
27176    { (exit 1); exit 1; }; }
27177         fi
27178
27179         if test $ol_with_threads = auto ; then
27180                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27181 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27182                 ol_with_threads=no
27183         fi
27184
27185
27186 cat >>confdefs.h <<\_ACEOF
27187 #define NO_THREADS 1
27188 _ACEOF
27189
27190         LTHREAD_LIBS=""
27191 fi
27192
27193 if test $ol_link_threads != no ; then
27194
27195 cat >>confdefs.h <<\_ACEOF
27196 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27197 _ACEOF
27198
27199 fi
27200
27201
27202
27203
27204 for ac_func in \
27205         ctime_r                 \
27206         gethostbyname_r gethostbyaddr_r \
27207
27208 do
27209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27210 echo "$as_me:$LINENO: checking for $ac_func" >&5
27211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27212 if eval "test \"\${$as_ac_var+set}\" = set"; then
27213   echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215   cat >conftest.$ac_ext <<_ACEOF
27216 /* confdefs.h.  */
27217 _ACEOF
27218 cat confdefs.h >>conftest.$ac_ext
27219 cat >>conftest.$ac_ext <<_ACEOF
27220 /* end confdefs.h.  */
27221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27223 #define $ac_func innocuous_$ac_func
27224
27225 /* System header to define __stub macros and hopefully few prototypes,
27226     which can conflict with char $ac_func (); below.
27227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27228     <limits.h> exists even on freestanding compilers.  */
27229
27230 #ifdef __STDC__
27231 # include <limits.h>
27232 #else
27233 # include <assert.h>
27234 #endif
27235
27236 #undef $ac_func
27237
27238 /* Override any gcc2 internal prototype to avoid an error.  */
27239 #ifdef __cplusplus
27240 extern "C"
27241 {
27242 #endif
27243 /* We use char because int might match the return type of a gcc2
27244    builtin and then its argument prototype would still apply.  */
27245 char $ac_func ();
27246 /* The GNU C library defines this for functions which it implements
27247     to always fail with ENOSYS.  Some functions are actually named
27248     something starting with __ and the normal name is an alias.  */
27249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27250 choke me
27251 #else
27252 char (*f) () = $ac_func;
27253 #endif
27254 #ifdef __cplusplus
27255 }
27256 #endif
27257
27258 int
27259 main ()
27260 {
27261 return f != $ac_func;
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 rm -f conftest.$ac_objext conftest$ac_exeext
27267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27268   (eval $ac_link) 2>conftest.er1
27269   ac_status=$?
27270   grep -v '^ *+' conftest.er1 >conftest.err
27271   rm -f conftest.er1
27272   cat conftest.err >&5
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); } &&
27275          { ac_try='test -z "$ac_c_werror_flag"
27276                          || test ! -s conftest.err'
27277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278   (eval $ac_try) 2>&5
27279   ac_status=$?
27280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281   (exit $ac_status); }; } &&
27282          { ac_try='test -s conftest$ac_exeext'
27283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27284   (eval $ac_try) 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; }; then
27288   eval "$as_ac_var=yes"
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293 eval "$as_ac_var=no"
27294 fi
27295 rm -f conftest.err conftest.$ac_objext \
27296       conftest$ac_exeext conftest.$ac_ext
27297 fi
27298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27300 if test `eval echo '${'$as_ac_var'}'` = yes; then
27301   cat >>confdefs.h <<_ACEOF
27302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27303 _ACEOF
27304
27305 fi
27306 done
27307
27308
27309 if test "$ac_cv_func_ctime_r" = no ; then
27310         ol_cv_func_ctime_r_nargs=0
27311 else
27312         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27313 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27314 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27315   echo $ECHO_N "(cached) $ECHO_C" >&6
27316 else
27317   cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h.  */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h.  */
27323 #include <time.h>
27324 int
27325 main ()
27326 {
27327 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27328   ;
27329   return 0;
27330 }
27331 _ACEOF
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334   (eval $ac_compile) 2>conftest.er1
27335   ac_status=$?
27336   grep -v '^ *+' conftest.er1 >conftest.err
27337   rm -f conftest.er1
27338   cat conftest.err >&5
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); } &&
27341          { ac_try='test -z "$ac_c_werror_flag"
27342                          || test ! -s conftest.err'
27343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344   (eval $ac_try) 2>&5
27345   ac_status=$?
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); }; } &&
27348          { ac_try='test -s conftest.$ac_objext'
27349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350   (eval $ac_try) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); }; }; then
27354   ol_cv_func_ctime_r_nargs3=yes
27355 else
27356   echo "$as_me: failed program was:" >&5
27357 sed 's/^/| /' conftest.$ac_ext >&5
27358
27359 ol_cv_func_ctime_r_nargs3=no
27360 fi
27361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27362
27363         cat >conftest.$ac_ext <<_ACEOF
27364 /* confdefs.h.  */
27365 _ACEOF
27366 cat confdefs.h >>conftest.$ac_ext
27367 cat >>conftest.$ac_ext <<_ACEOF
27368 /* end confdefs.h.  */
27369 #include <time.h>
27370 int
27371 main ()
27372 {
27373 time_t ti; char *buffer; ctime_r(&ti,buffer);
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_ctime_r_nargs2=yes
27401 else
27402   echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27404
27405 ol_cv_func_ctime_r_nargs2=no
27406 fi
27407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27408
27409         if test $ol_cv_func_ctime_r_nargs3 = yes -a \
27410                 $ol_cv_func_ctime_r_nargs2 = no ; then
27411
27412                 ol_cv_func_ctime_r_nargs=3
27413
27414         elif test $ol_cv_func_ctime_r_nargs3 = no -a \
27415                 $ol_cv_func_ctime_r_nargs2 = yes ; then
27416
27417                 ol_cv_func_ctime_r_nargs=2
27418
27419         else
27420                 ol_cv_func_ctime_r_nargs=0
27421         fi
27422
27423 fi
27424 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27425 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27426
27427   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27431 _ACEOF
27432
27433   fi
27434
27435 fi
27436
27437 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27438         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27439 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27440 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449 #include <sys/types.h>
27450 #include <sys/socket.h>
27451 #include <netinet/in.h>
27452 #include <netdb.h>
27453 #define BUFSIZE (sizeof(struct hostent)+10)
27454 int
27455 main ()
27456 {
27457 struct hostent hent; char buffer[BUFSIZE];
27458                 int bufsize=BUFSIZE;int h_errno;
27459                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27460                         buffer, bufsize, &h_errno);
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27467   (eval $ac_compile) 2>conftest.er1
27468   ac_status=$?
27469   grep -v '^ *+' conftest.er1 >conftest.err
27470   rm -f conftest.er1
27471   cat conftest.err >&5
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); } &&
27474          { ac_try='test -z "$ac_c_werror_flag"
27475                          || test ! -s conftest.err'
27476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27477   (eval $ac_try) 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; } &&
27481          { ac_try='test -s conftest.$ac_objext'
27482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27483   (eval $ac_try) 2>&5
27484   ac_status=$?
27485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); }; }; then
27487   ol_cv_func_gethostbyname_r_nargs5=yes
27488 else
27489   echo "$as_me: failed program was:" >&5
27490 sed 's/^/| /' conftest.$ac_ext >&5
27491
27492 ol_cv_func_gethostbyname_r_nargs5=no
27493 fi
27494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27495
27496         cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502 #include <sys/types.h>
27503 #include <sys/socket.h>
27504 #include <netinet/in.h>
27505 #include <netdb.h>
27506 #define BUFSIZE (sizeof(struct hostent)+10)
27507 int
27508 main ()
27509 {
27510 struct hostent hent;struct hostent *rhent;
27511                 char buffer[BUFSIZE];
27512                 int bufsize=BUFSIZE;int h_errno;
27513                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27514                         &rhent, &h_errno);
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 rm -f conftest.$ac_objext
27520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27521   (eval $ac_compile) 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } &&
27528          { ac_try='test -z "$ac_c_werror_flag"
27529                          || test ! -s conftest.err'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; } &&
27535          { ac_try='test -s conftest.$ac_objext'
27536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27537   (eval $ac_try) 2>&5
27538   ac_status=$?
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); }; }; then
27541   ol_cv_func_gethostbyname_r_nargs6=yes
27542 else
27543   echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546 ol_cv_func_gethostbyname_r_nargs6=no
27547 fi
27548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27549
27550         if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
27551                 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27552
27553                 ol_cv_func_gethostbyname_r_nargs=5
27554
27555         elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
27556                 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27557
27558                 ol_cv_func_gethostbyname_r_nargs=6
27559
27560         else
27561                 ol_cv_func_gethostbyname_r_nargs=0
27562         fi
27563
27564 fi
27565 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27566 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27567   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27568
27569 cat >>confdefs.h <<_ACEOF
27570 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27571 _ACEOF
27572
27573   fi
27574
27575 else
27576         ol_cv_func_gethostbyname_r_nargs=0
27577 fi
27578
27579 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27580         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27581 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27582 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h.  */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h.  */
27591 #include <sys/types.h>
27592 #include <sys/socket.h>
27593 #include <netinet/in.h>
27594 #include <netdb.h>
27595 #define BUFSIZE (sizeof(struct hostent)+10)
27596 int
27597 main ()
27598 {
27599 struct hostent hent; char buffer[BUFSIZE];
27600             struct in_addr add;
27601             size_t alen=sizeof(struct in_addr);
27602             int bufsize=BUFSIZE;int h_errno;
27603                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27604                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27605   ;
27606   return 0;
27607 }
27608 _ACEOF
27609 rm -f conftest.$ac_objext
27610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27611   (eval $ac_compile) 2>conftest.er1
27612   ac_status=$?
27613   grep -v '^ *+' conftest.er1 >conftest.err
27614   rm -f conftest.er1
27615   cat conftest.err >&5
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); } &&
27618          { ac_try='test -z "$ac_c_werror_flag"
27619                          || test ! -s conftest.err'
27620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621   (eval $ac_try) 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; } &&
27625          { ac_try='test -s conftest.$ac_objext'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; }; then
27631   ol_cv_func_gethostbyaddr_r_nargs7=yes
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636 ol_cv_func_gethostbyaddr_r_nargs7=no
27637 fi
27638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27639
27640         cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646 #include <sys/types.h>
27647 #include <sys/socket.h>
27648 #include <netinet/in.h>
27649 #include <netdb.h>
27650 #define BUFSIZE (sizeof(struct hostent)+10)
27651 int
27652 main ()
27653 {
27654 struct hostent hent;
27655                 struct hostent *rhent; char buffer[BUFSIZE];
27656                 struct in_addr add;
27657                 size_t alen=sizeof(struct in_addr);
27658                 int bufsize=BUFSIZE;int h_errno;
27659                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27660                         alen, AF_INET, &hent, buffer, bufsize,
27661                         &rhent, &h_errno);
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext
27667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27668   (eval $ac_compile) 2>conftest.er1
27669   ac_status=$?
27670   grep -v '^ *+' conftest.er1 >conftest.err
27671   rm -f conftest.er1
27672   cat conftest.err >&5
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); } &&
27675          { ac_try='test -z "$ac_c_werror_flag"
27676                          || test ! -s conftest.err'
27677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27678   (eval $ac_try) 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; } &&
27682          { ac_try='test -s conftest.$ac_objext'
27683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27684   (eval $ac_try) 2>&5
27685   ac_status=$?
27686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687   (exit $ac_status); }; }; then
27688   ol_cv_func_gethostbyaddr_r_nargs8=yes
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693 ol_cv_func_gethostbyaddr_r_nargs8=no
27694 fi
27695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27696
27697         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
27698                 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27699
27700                 ol_cv_func_gethostbyaddr_r_nargs=7
27701
27702         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
27703                 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27704
27705                 ol_cv_func_gethostbyaddr_r_nargs=8
27706
27707         else
27708                 ol_cv_func_gethostbyaddr_r_nargs=0
27709         fi
27710
27711 fi
27712 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27713 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27714   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27715
27716 cat >>confdefs.h <<_ACEOF
27717 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27718 _ACEOF
27719
27720   fi
27721
27722 else
27723         ol_cv_func_gethostbyaddr_r_nargs=0
27724 fi
27725
27726 ol_link_ldbm=no
27727
27728 if test $ol_enable_ldbm_api = auto \
27729         -o $ol_enable_ldbm_api = berkeley \
27730         -o $ol_enable_ldbm_api = bcompat ; then
27731
27732         if test $ol_enable_ldbm_api = bcompat; then \
27733
27734
27735 for ac_header in db_185.h db.h
27736 do
27737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27739   echo "$as_me:$LINENO: checking for $ac_header" >&5
27740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27742   echo $ECHO_N "(cached) $ECHO_C" >&6
27743 fi
27744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27746 else
27747   # Is the header compilable?
27748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27751 /* confdefs.h.  */
27752 _ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h.  */
27756 $ac_includes_default
27757 #include <$ac_header>
27758 _ACEOF
27759 rm -f conftest.$ac_objext
27760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27761   (eval $ac_compile) 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -z "$ac_c_werror_flag"
27769                          || test ! -s conftest.err'
27770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27771   (eval $ac_try) 2>&5
27772   ac_status=$?
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); }; } &&
27775          { ac_try='test -s conftest.$ac_objext'
27776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777   (eval $ac_try) 2>&5
27778   ac_status=$?
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); }; }; then
27781   ac_header_compiler=yes
27782 else
27783   echo "$as_me: failed program was:" >&5
27784 sed 's/^/| /' conftest.$ac_ext >&5
27785
27786 ac_header_compiler=no
27787 fi
27788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27790 echo "${ECHO_T}$ac_header_compiler" >&6
27791
27792 # Is the header present?
27793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27795 cat >conftest.$ac_ext <<_ACEOF
27796 /* confdefs.h.  */
27797 _ACEOF
27798 cat confdefs.h >>conftest.$ac_ext
27799 cat >>conftest.$ac_ext <<_ACEOF
27800 /* end confdefs.h.  */
27801 #include <$ac_header>
27802 _ACEOF
27803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27805   ac_status=$?
27806   grep -v '^ *+' conftest.er1 >conftest.err
27807   rm -f conftest.er1
27808   cat conftest.err >&5
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } >/dev/null; then
27811   if test -s conftest.err; then
27812     ac_cpp_err=$ac_c_preproc_warn_flag
27813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27814   else
27815     ac_cpp_err=
27816   fi
27817 else
27818   ac_cpp_err=yes
27819 fi
27820 if test -z "$ac_cpp_err"; then
27821   ac_header_preproc=yes
27822 else
27823   echo "$as_me: failed program was:" >&5
27824 sed 's/^/| /' conftest.$ac_ext >&5
27825
27826   ac_header_preproc=no
27827 fi
27828 rm -f conftest.err conftest.$ac_ext
27829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27830 echo "${ECHO_T}$ac_header_preproc" >&6
27831
27832 # So?  What about this header?
27833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27834   yes:no: )
27835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27839     ac_header_preproc=yes
27840     ;;
27841   no:yes:* )
27842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27854     (
27855       cat <<\_ASBOX
27856 ## ------------------------------------------ ##
27857 ## Report this to the AC_PACKAGE_NAME lists.  ##
27858 ## ------------------------------------------ ##
27859 _ASBOX
27860     ) |
27861       sed "s/^/$as_me: WARNING:     /" >&2
27862     ;;
27863 esac
27864 echo "$as_me:$LINENO: checking for $ac_header" >&5
27865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27867   echo $ECHO_N "(cached) $ECHO_C" >&6
27868 else
27869   eval "$as_ac_Header=\$ac_header_preproc"
27870 fi
27871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27873
27874 fi
27875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27876   cat >>confdefs.h <<_ACEOF
27877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27878 _ACEOF
27879
27880 fi
27881
27882 done
27883
27884 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
27885         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27886 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27887 if test "${ol_cv_header_db1+set}" = set; then
27888   echo $ECHO_N "(cached) $ECHO_C" >&6
27889 else
27890
27891                 cat >conftest.$ac_ext <<_ACEOF
27892 /* confdefs.h.  */
27893 _ACEOF
27894 cat confdefs.h >>conftest.$ac_ext
27895 cat >>conftest.$ac_ext <<_ACEOF
27896 /* end confdefs.h.  */
27897
27898 #if HAVE_DB_185_H
27899 #       include <db_185.h>
27900 #else
27901 #       include <db.h>
27902 #endif
27903
27904  /* this check could be improved */
27905 #ifndef DB_VERSION_MAJOR
27906 #       define DB_VERSION_MAJOR 1
27907 #endif
27908
27909 #if DB_VERSION_MAJOR == 1
27910         __db_version_1
27911 #endif
27912
27913 _ACEOF
27914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27915   $EGREP "__db_version_1" >/dev/null 2>&1; then
27916   ol_cv_header_db1=yes
27917 else
27918   ol_cv_header_db1=no
27919 fi
27920 rm -f conftest*
27921
27922 fi
27923 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27924 echo "${ECHO_T}$ol_cv_header_db1" >&6
27925
27926         if test $ol_cv_header_db1 = yes ; then
27927                 ol_cv_lib_db=no
27928 if test $ol_cv_lib_db = no ; then
27929         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27930 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27931 if test "${ol_cv_db_none+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934
27935         ol_DB_LIB=
27936         ol_LIBS=$LIBS
27937         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27938
27939         cat >conftest.$ac_ext <<_ACEOF
27940 /* confdefs.h.  */
27941 _ACEOF
27942 cat confdefs.h >>conftest.$ac_ext
27943 cat >>conftest.$ac_ext <<_ACEOF
27944 /* end confdefs.h.  */
27945
27946 #ifdef HAVE_DB_185_H
27947 # include <db_185.h>
27948 #else
27949 # include <db.h>
27950 #endif
27951
27952 #ifndef DB_VERSION_MAJOR
27953 # define DB_VERSION_MAJOR 1
27954 #endif
27955
27956 #ifndef NULL
27957 #define NULL ((void*)0)
27958 #endif
27959
27960 int
27961 main ()
27962 {
27963
27964 #if DB_VERSION_MAJOR > 1
27965         {
27966                 char *version;
27967                 int major, minor, patch;
27968
27969                 version = db_version( &major, &minor, &patch );
27970
27971                 if( major != DB_VERSION_MAJOR ||
27972                         minor < DB_VERSION_MINOR )
27973                 {
27974                         printf("Berkeley DB version mismatch\n"
27975                                 "\theader: %s\n\tlibrary: %s\n",
27976                                 DB_VERSION_STRING, version);
27977                         return 1;
27978                 }
27979         }
27980 #endif
27981
27982 #if DB_VERSION_MAJOR > 2
27983         db_env_create( NULL, 0 );
27984 #elif DB_VERSION_MAJOR > 1
27985         db_appexit( NULL );
27986 #else
27987         (void) dbopen( NULL, 0, 0, 0, NULL);
27988 #endif
27989
27990   ;
27991   return 0;
27992 }
27993 _ACEOF
27994 rm -f conftest.$ac_objext conftest$ac_exeext
27995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27996   (eval $ac_link) 2>conftest.er1
27997   ac_status=$?
27998   grep -v '^ *+' conftest.er1 >conftest.err
27999   rm -f conftest.er1
28000   cat conftest.err >&5
28001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002   (exit $ac_status); } &&
28003          { ac_try='test -z "$ac_c_werror_flag"
28004                          || test ! -s conftest.err'
28005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006   (eval $ac_try) 2>&5
28007   ac_status=$?
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); }; } &&
28010          { ac_try='test -s conftest$ac_exeext'
28011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012   (eval $ac_try) 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; }; then
28016   ol_cv_db_none=yes
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021 ol_cv_db_none=no
28022 fi
28023 rm -f conftest.err conftest.$ac_objext \
28024       conftest$ac_exeext conftest.$ac_ext
28025
28026         LIBS="$ol_LIBS"
28027
28028 fi
28029 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28030 echo "${ECHO_T}$ol_cv_db_none" >&6
28031
28032         if test $ol_cv_db_none = yes ; then
28033                 ol_cv_lib_db=yes
28034         fi
28035 fi
28036
28037 if test $ol_cv_lib_db = no ; then
28038         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28039 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28040 if test "${ol_cv_db_db43+set}" = set; then
28041   echo $ECHO_N "(cached) $ECHO_C" >&6
28042 else
28043
28044         ol_DB_LIB=-ldb43
28045         ol_LIBS=$LIBS
28046         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28047
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 #ifdef HAVE_DB_185_H
28056 # include <db_185.h>
28057 #else
28058 # include <db.h>
28059 #endif
28060
28061 #ifndef DB_VERSION_MAJOR
28062 # define DB_VERSION_MAJOR 1
28063 #endif
28064
28065 #ifndef NULL
28066 #define NULL ((void*)0)
28067 #endif
28068
28069 int
28070 main ()
28071 {
28072
28073 #if DB_VERSION_MAJOR > 1
28074         {
28075                 char *version;
28076                 int major, minor, patch;
28077
28078                 version = db_version( &major, &minor, &patch );
28079
28080                 if( major != DB_VERSION_MAJOR ||
28081                         minor < DB_VERSION_MINOR )
28082                 {
28083                         printf("Berkeley DB version mismatch\n"
28084                                 "\theader: %s\n\tlibrary: %s\n",
28085                                 DB_VERSION_STRING, version);
28086                         return 1;
28087                 }
28088         }
28089 #endif
28090
28091 #if DB_VERSION_MAJOR > 2
28092         db_env_create( NULL, 0 );
28093 #elif DB_VERSION_MAJOR > 1
28094         db_appexit( NULL );
28095 #else
28096         (void) dbopen( NULL, 0, 0, 0, NULL);
28097 #endif
28098
28099   ;
28100   return 0;
28101 }
28102 _ACEOF
28103 rm -f conftest.$ac_objext conftest$ac_exeext
28104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28105   (eval $ac_link) 2>conftest.er1
28106   ac_status=$?
28107   grep -v '^ *+' conftest.er1 >conftest.err
28108   rm -f conftest.er1
28109   cat conftest.err >&5
28110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111   (exit $ac_status); } &&
28112          { ac_try='test -z "$ac_c_werror_flag"
28113                          || test ! -s conftest.err'
28114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115   (eval $ac_try) 2>&5
28116   ac_status=$?
28117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118   (exit $ac_status); }; } &&
28119          { ac_try='test -s conftest$ac_exeext'
28120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28121   (eval $ac_try) 2>&5
28122   ac_status=$?
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); }; }; then
28125   ol_cv_db_db43=yes
28126 else
28127   echo "$as_me: failed program was:" >&5
28128 sed 's/^/| /' conftest.$ac_ext >&5
28129
28130 ol_cv_db_db43=no
28131 fi
28132 rm -f conftest.err conftest.$ac_objext \
28133       conftest$ac_exeext conftest.$ac_ext
28134
28135         LIBS="$ol_LIBS"
28136
28137 fi
28138 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28139 echo "${ECHO_T}$ol_cv_db_db43" >&6
28140
28141         if test $ol_cv_db_db43 = yes ; then
28142                 ol_cv_lib_db=-ldb43
28143         fi
28144 fi
28145
28146 if test $ol_cv_lib_db = no ; then
28147         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28148 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28149 if test "${ol_cv_db_db_43+set}" = set; then
28150   echo $ECHO_N "(cached) $ECHO_C" >&6
28151 else
28152
28153         ol_DB_LIB=-ldb-43
28154         ol_LIBS=$LIBS
28155         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28156
28157         cat >conftest.$ac_ext <<_ACEOF
28158 /* confdefs.h.  */
28159 _ACEOF
28160 cat confdefs.h >>conftest.$ac_ext
28161 cat >>conftest.$ac_ext <<_ACEOF
28162 /* end confdefs.h.  */
28163
28164 #ifdef HAVE_DB_185_H
28165 # include <db_185.h>
28166 #else
28167 # include <db.h>
28168 #endif
28169
28170 #ifndef DB_VERSION_MAJOR
28171 # define DB_VERSION_MAJOR 1
28172 #endif
28173
28174 #ifndef NULL
28175 #define NULL ((void*)0)
28176 #endif
28177
28178 int
28179 main ()
28180 {
28181
28182 #if DB_VERSION_MAJOR > 1
28183         {
28184                 char *version;
28185                 int major, minor, patch;
28186
28187                 version = db_version( &major, &minor, &patch );
28188
28189                 if( major != DB_VERSION_MAJOR ||
28190                         minor < DB_VERSION_MINOR )
28191                 {
28192                         printf("Berkeley DB version mismatch\n"
28193                                 "\theader: %s\n\tlibrary: %s\n",
28194                                 DB_VERSION_STRING, version);
28195                         return 1;
28196                 }
28197         }
28198 #endif
28199
28200 #if DB_VERSION_MAJOR > 2
28201         db_env_create( NULL, 0 );
28202 #elif DB_VERSION_MAJOR > 1
28203         db_appexit( NULL );
28204 #else
28205         (void) dbopen( NULL, 0, 0, 0, NULL);
28206 #endif
28207
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 rm -f conftest.$ac_objext conftest$ac_exeext
28213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28214   (eval $ac_link) 2>conftest.er1
28215   ac_status=$?
28216   grep -v '^ *+' conftest.er1 >conftest.err
28217   rm -f conftest.er1
28218   cat conftest.err >&5
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); } &&
28221          { ac_try='test -z "$ac_c_werror_flag"
28222                          || test ! -s conftest.err'
28223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224   (eval $ac_try) 2>&5
28225   ac_status=$?
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); }; } &&
28228          { ac_try='test -s conftest$ac_exeext'
28229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230   (eval $ac_try) 2>&5
28231   ac_status=$?
28232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233   (exit $ac_status); }; }; then
28234   ol_cv_db_db_43=yes
28235 else
28236   echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28238
28239 ol_cv_db_db_43=no
28240 fi
28241 rm -f conftest.err conftest.$ac_objext \
28242       conftest$ac_exeext conftest.$ac_ext
28243
28244         LIBS="$ol_LIBS"
28245
28246 fi
28247 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28248 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28249
28250         if test $ol_cv_db_db_43 = yes ; then
28251                 ol_cv_lib_db=-ldb-43
28252         fi
28253 fi
28254
28255 if test $ol_cv_lib_db = no ; then
28256         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28257 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28258 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28259   echo $ECHO_N "(cached) $ECHO_C" >&6
28260 else
28261
28262         ol_DB_LIB=-ldb-4.3
28263         ol_LIBS=$LIBS
28264         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28265
28266         cat >conftest.$ac_ext <<_ACEOF
28267 /* confdefs.h.  */
28268 _ACEOF
28269 cat confdefs.h >>conftest.$ac_ext
28270 cat >>conftest.$ac_ext <<_ACEOF
28271 /* end confdefs.h.  */
28272
28273 #ifdef HAVE_DB_185_H
28274 # include <db_185.h>
28275 #else
28276 # include <db.h>
28277 #endif
28278
28279 #ifndef DB_VERSION_MAJOR
28280 # define DB_VERSION_MAJOR 1
28281 #endif
28282
28283 #ifndef NULL
28284 #define NULL ((void*)0)
28285 #endif
28286
28287 int
28288 main ()
28289 {
28290
28291 #if DB_VERSION_MAJOR > 1
28292         {
28293                 char *version;
28294                 int major, minor, patch;
28295
28296                 version = db_version( &major, &minor, &patch );
28297
28298                 if( major != DB_VERSION_MAJOR ||
28299                         minor < DB_VERSION_MINOR )
28300                 {
28301                         printf("Berkeley DB version mismatch\n"
28302                                 "\theader: %s\n\tlibrary: %s\n",
28303                                 DB_VERSION_STRING, version);
28304                         return 1;
28305                 }
28306         }
28307 #endif
28308
28309 #if DB_VERSION_MAJOR > 2
28310         db_env_create( NULL, 0 );
28311 #elif DB_VERSION_MAJOR > 1
28312         db_appexit( NULL );
28313 #else
28314         (void) dbopen( NULL, 0, 0, 0, NULL);
28315 #endif
28316
28317   ;
28318   return 0;
28319 }
28320 _ACEOF
28321 rm -f conftest.$ac_objext conftest$ac_exeext
28322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28323   (eval $ac_link) 2>conftest.er1
28324   ac_status=$?
28325   grep -v '^ *+' conftest.er1 >conftest.err
28326   rm -f conftest.er1
28327   cat conftest.err >&5
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); } &&
28330          { ac_try='test -z "$ac_c_werror_flag"
28331                          || test ! -s conftest.err'
28332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28333   (eval $ac_try) 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; } &&
28337          { ac_try='test -s conftest$ac_exeext'
28338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339   (eval $ac_try) 2>&5
28340   ac_status=$?
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); }; }; then
28343   ol_cv_db_db_4_dot_3=yes
28344 else
28345   echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28347
28348 ol_cv_db_db_4_dot_3=no
28349 fi
28350 rm -f conftest.err conftest.$ac_objext \
28351       conftest$ac_exeext conftest.$ac_ext
28352
28353         LIBS="$ol_LIBS"
28354
28355 fi
28356 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28357 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28358
28359         if test $ol_cv_db_db_4_dot_3 = yes ; then
28360                 ol_cv_lib_db=-ldb-4.3
28361         fi
28362 fi
28363
28364 if test $ol_cv_lib_db = no ; then
28365         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28366 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28367 if test "${ol_cv_db_db_4_3+set}" = set; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370
28371         ol_DB_LIB=-ldb-4-3
28372         ol_LIBS=$LIBS
28373         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28374
28375         cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381
28382 #ifdef HAVE_DB_185_H
28383 # include <db_185.h>
28384 #else
28385 # include <db.h>
28386 #endif
28387
28388 #ifndef DB_VERSION_MAJOR
28389 # define DB_VERSION_MAJOR 1
28390 #endif
28391
28392 #ifndef NULL
28393 #define NULL ((void*)0)
28394 #endif
28395
28396 int
28397 main ()
28398 {
28399
28400 #if DB_VERSION_MAJOR > 1
28401         {
28402                 char *version;
28403                 int major, minor, patch;
28404
28405                 version = db_version( &major, &minor, &patch );
28406
28407                 if( major != DB_VERSION_MAJOR ||
28408                         minor < DB_VERSION_MINOR )
28409                 {
28410                         printf("Berkeley DB version mismatch\n"
28411                                 "\theader: %s\n\tlibrary: %s\n",
28412                                 DB_VERSION_STRING, version);
28413                         return 1;
28414                 }
28415         }
28416 #endif
28417
28418 #if DB_VERSION_MAJOR > 2
28419         db_env_create( NULL, 0 );
28420 #elif DB_VERSION_MAJOR > 1
28421         db_appexit( NULL );
28422 #else
28423         (void) dbopen( NULL, 0, 0, 0, NULL);
28424 #endif
28425
28426   ;
28427   return 0;
28428 }
28429 _ACEOF
28430 rm -f conftest.$ac_objext conftest$ac_exeext
28431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28432   (eval $ac_link) 2>conftest.er1
28433   ac_status=$?
28434   grep -v '^ *+' conftest.er1 >conftest.err
28435   rm -f conftest.er1
28436   cat conftest.err >&5
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); } &&
28439          { ac_try='test -z "$ac_c_werror_flag"
28440                          || test ! -s conftest.err'
28441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442   (eval $ac_try) 2>&5
28443   ac_status=$?
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); }; } &&
28446          { ac_try='test -s conftest$ac_exeext'
28447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28448   (eval $ac_try) 2>&5
28449   ac_status=$?
28450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451   (exit $ac_status); }; }; then
28452   ol_cv_db_db_4_3=yes
28453 else
28454   echo "$as_me: failed program was:" >&5
28455 sed 's/^/| /' conftest.$ac_ext >&5
28456
28457 ol_cv_db_db_4_3=no
28458 fi
28459 rm -f conftest.err conftest.$ac_objext \
28460       conftest$ac_exeext conftest.$ac_ext
28461
28462         LIBS="$ol_LIBS"
28463
28464 fi
28465 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28466 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28467
28468         if test $ol_cv_db_db_4_3 = yes ; then
28469                 ol_cv_lib_db=-ldb-4-3
28470         fi
28471 fi
28472
28473 if test $ol_cv_lib_db = no ; then
28474         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28475 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28476 if test "${ol_cv_db_db42+set}" = set; then
28477   echo $ECHO_N "(cached) $ECHO_C" >&6
28478 else
28479
28480         ol_DB_LIB=-ldb42
28481         ol_LIBS=$LIBS
28482         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28483
28484         cat >conftest.$ac_ext <<_ACEOF
28485 /* confdefs.h.  */
28486 _ACEOF
28487 cat confdefs.h >>conftest.$ac_ext
28488 cat >>conftest.$ac_ext <<_ACEOF
28489 /* end confdefs.h.  */
28490
28491 #ifdef HAVE_DB_185_H
28492 # include <db_185.h>
28493 #else
28494 # include <db.h>
28495 #endif
28496
28497 #ifndef DB_VERSION_MAJOR
28498 # define DB_VERSION_MAJOR 1
28499 #endif
28500
28501 #ifndef NULL
28502 #define NULL ((void*)0)
28503 #endif
28504
28505 int
28506 main ()
28507 {
28508
28509 #if DB_VERSION_MAJOR > 1
28510         {
28511                 char *version;
28512                 int major, minor, patch;
28513
28514                 version = db_version( &major, &minor, &patch );
28515
28516                 if( major != DB_VERSION_MAJOR ||
28517                         minor < DB_VERSION_MINOR )
28518                 {
28519                         printf("Berkeley DB version mismatch\n"
28520                                 "\theader: %s\n\tlibrary: %s\n",
28521                                 DB_VERSION_STRING, version);
28522                         return 1;
28523                 }
28524         }
28525 #endif
28526
28527 #if DB_VERSION_MAJOR > 2
28528         db_env_create( NULL, 0 );
28529 #elif DB_VERSION_MAJOR > 1
28530         db_appexit( NULL );
28531 #else
28532         (void) dbopen( NULL, 0, 0, 0, NULL);
28533 #endif
28534
28535   ;
28536   return 0;
28537 }
28538 _ACEOF
28539 rm -f conftest.$ac_objext conftest$ac_exeext
28540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28541   (eval $ac_link) 2>conftest.er1
28542   ac_status=$?
28543   grep -v '^ *+' conftest.er1 >conftest.err
28544   rm -f conftest.er1
28545   cat conftest.err >&5
28546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547   (exit $ac_status); } &&
28548          { ac_try='test -z "$ac_c_werror_flag"
28549                          || test ! -s conftest.err'
28550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551   (eval $ac_try) 2>&5
28552   ac_status=$?
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); }; } &&
28555          { ac_try='test -s conftest$ac_exeext'
28556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28557   (eval $ac_try) 2>&5
28558   ac_status=$?
28559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560   (exit $ac_status); }; }; then
28561   ol_cv_db_db42=yes
28562 else
28563   echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28565
28566 ol_cv_db_db42=no
28567 fi
28568 rm -f conftest.err conftest.$ac_objext \
28569       conftest$ac_exeext conftest.$ac_ext
28570
28571         LIBS="$ol_LIBS"
28572
28573 fi
28574 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28575 echo "${ECHO_T}$ol_cv_db_db42" >&6
28576
28577         if test $ol_cv_db_db42 = yes ; then
28578                 ol_cv_lib_db=-ldb42
28579         fi
28580 fi
28581
28582 if test $ol_cv_lib_db = no ; then
28583         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28584 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28585 if test "${ol_cv_db_db_42+set}" = set; then
28586   echo $ECHO_N "(cached) $ECHO_C" >&6
28587 else
28588
28589         ol_DB_LIB=-ldb-42
28590         ol_LIBS=$LIBS
28591         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28592
28593         cat >conftest.$ac_ext <<_ACEOF
28594 /* confdefs.h.  */
28595 _ACEOF
28596 cat confdefs.h >>conftest.$ac_ext
28597 cat >>conftest.$ac_ext <<_ACEOF
28598 /* end confdefs.h.  */
28599
28600 #ifdef HAVE_DB_185_H
28601 # include <db_185.h>
28602 #else
28603 # include <db.h>
28604 #endif
28605
28606 #ifndef DB_VERSION_MAJOR
28607 # define DB_VERSION_MAJOR 1
28608 #endif
28609
28610 #ifndef NULL
28611 #define NULL ((void*)0)
28612 #endif
28613
28614 int
28615 main ()
28616 {
28617
28618 #if DB_VERSION_MAJOR > 1
28619         {
28620                 char *version;
28621                 int major, minor, patch;
28622
28623                 version = db_version( &major, &minor, &patch );
28624
28625                 if( major != DB_VERSION_MAJOR ||
28626                         minor < DB_VERSION_MINOR )
28627                 {
28628                         printf("Berkeley DB version mismatch\n"
28629                                 "\theader: %s\n\tlibrary: %s\n",
28630                                 DB_VERSION_STRING, version);
28631                         return 1;
28632                 }
28633         }
28634 #endif
28635
28636 #if DB_VERSION_MAJOR > 2
28637         db_env_create( NULL, 0 );
28638 #elif DB_VERSION_MAJOR > 1
28639         db_appexit( NULL );
28640 #else
28641         (void) dbopen( NULL, 0, 0, 0, NULL);
28642 #endif
28643
28644   ;
28645   return 0;
28646 }
28647 _ACEOF
28648 rm -f conftest.$ac_objext conftest$ac_exeext
28649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28650   (eval $ac_link) 2>conftest.er1
28651   ac_status=$?
28652   grep -v '^ *+' conftest.er1 >conftest.err
28653   rm -f conftest.er1
28654   cat conftest.err >&5
28655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656   (exit $ac_status); } &&
28657          { ac_try='test -z "$ac_c_werror_flag"
28658                          || test ! -s conftest.err'
28659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28660   (eval $ac_try) 2>&5
28661   ac_status=$?
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); }; } &&
28664          { ac_try='test -s conftest$ac_exeext'
28665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28666   (eval $ac_try) 2>&5
28667   ac_status=$?
28668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28669   (exit $ac_status); }; }; then
28670   ol_cv_db_db_42=yes
28671 else
28672   echo "$as_me: failed program was:" >&5
28673 sed 's/^/| /' conftest.$ac_ext >&5
28674
28675 ol_cv_db_db_42=no
28676 fi
28677 rm -f conftest.err conftest.$ac_objext \
28678       conftest$ac_exeext conftest.$ac_ext
28679
28680         LIBS="$ol_LIBS"
28681
28682 fi
28683 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28684 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28685
28686         if test $ol_cv_db_db_42 = yes ; then
28687                 ol_cv_lib_db=-ldb-42
28688         fi
28689 fi
28690
28691 if test $ol_cv_lib_db = no ; then
28692         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28693 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28694 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28695   echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697
28698         ol_DB_LIB=-ldb-4.2
28699         ol_LIBS=$LIBS
28700         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28701
28702         cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708
28709 #ifdef HAVE_DB_185_H
28710 # include <db_185.h>
28711 #else
28712 # include <db.h>
28713 #endif
28714
28715 #ifndef DB_VERSION_MAJOR
28716 # define DB_VERSION_MAJOR 1
28717 #endif
28718
28719 #ifndef NULL
28720 #define NULL ((void*)0)
28721 #endif
28722
28723 int
28724 main ()
28725 {
28726
28727 #if DB_VERSION_MAJOR > 1
28728         {
28729                 char *version;
28730                 int major, minor, patch;
28731
28732                 version = db_version( &major, &minor, &patch );
28733
28734                 if( major != DB_VERSION_MAJOR ||
28735                         minor < DB_VERSION_MINOR )
28736                 {
28737                         printf("Berkeley DB version mismatch\n"
28738                                 "\theader: %s\n\tlibrary: %s\n",
28739                                 DB_VERSION_STRING, version);
28740                         return 1;
28741                 }
28742         }
28743 #endif
28744
28745 #if DB_VERSION_MAJOR > 2
28746         db_env_create( NULL, 0 );
28747 #elif DB_VERSION_MAJOR > 1
28748         db_appexit( NULL );
28749 #else
28750         (void) dbopen( NULL, 0, 0, 0, NULL);
28751 #endif
28752
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext conftest$ac_exeext
28758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28759   (eval $ac_link) 2>conftest.er1
28760   ac_status=$?
28761   grep -v '^ *+' conftest.er1 >conftest.err
28762   rm -f conftest.er1
28763   cat conftest.err >&5
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -z "$ac_c_werror_flag"
28767                          || test ! -s conftest.err'
28768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769   (eval $ac_try) 2>&5
28770   ac_status=$?
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); }; } &&
28773          { ac_try='test -s conftest$ac_exeext'
28774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775   (eval $ac_try) 2>&5
28776   ac_status=$?
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); }; }; then
28779   ol_cv_db_db_4_dot_2=yes
28780 else
28781   echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28783
28784 ol_cv_db_db_4_dot_2=no
28785 fi
28786 rm -f conftest.err conftest.$ac_objext \
28787       conftest$ac_exeext conftest.$ac_ext
28788
28789         LIBS="$ol_LIBS"
28790
28791 fi
28792 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28793 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28794
28795         if test $ol_cv_db_db_4_dot_2 = yes ; then
28796                 ol_cv_lib_db=-ldb-4.2
28797         fi
28798 fi
28799
28800 if test $ol_cv_lib_db = no ; then
28801         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28802 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28803 if test "${ol_cv_db_db_4_2+set}" = set; then
28804   echo $ECHO_N "(cached) $ECHO_C" >&6
28805 else
28806
28807         ol_DB_LIB=-ldb-4-2
28808         ol_LIBS=$LIBS
28809         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28810
28811         cat >conftest.$ac_ext <<_ACEOF
28812 /* confdefs.h.  */
28813 _ACEOF
28814 cat confdefs.h >>conftest.$ac_ext
28815 cat >>conftest.$ac_ext <<_ACEOF
28816 /* end confdefs.h.  */
28817
28818 #ifdef HAVE_DB_185_H
28819 # include <db_185.h>
28820 #else
28821 # include <db.h>
28822 #endif
28823
28824 #ifndef DB_VERSION_MAJOR
28825 # define DB_VERSION_MAJOR 1
28826 #endif
28827
28828 #ifndef NULL
28829 #define NULL ((void*)0)
28830 #endif
28831
28832 int
28833 main ()
28834 {
28835
28836 #if DB_VERSION_MAJOR > 1
28837         {
28838                 char *version;
28839                 int major, minor, patch;
28840
28841                 version = db_version( &major, &minor, &patch );
28842
28843                 if( major != DB_VERSION_MAJOR ||
28844                         minor < DB_VERSION_MINOR )
28845                 {
28846                         printf("Berkeley DB version mismatch\n"
28847                                 "\theader: %s\n\tlibrary: %s\n",
28848                                 DB_VERSION_STRING, version);
28849                         return 1;
28850                 }
28851         }
28852 #endif
28853
28854 #if DB_VERSION_MAJOR > 2
28855         db_env_create( NULL, 0 );
28856 #elif DB_VERSION_MAJOR > 1
28857         db_appexit( NULL );
28858 #else
28859         (void) dbopen( NULL, 0, 0, 0, NULL);
28860 #endif
28861
28862   ;
28863   return 0;
28864 }
28865 _ACEOF
28866 rm -f conftest.$ac_objext conftest$ac_exeext
28867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28868   (eval $ac_link) 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } &&
28875          { ac_try='test -z "$ac_c_werror_flag"
28876                          || test ! -s conftest.err'
28877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878   (eval $ac_try) 2>&5
28879   ac_status=$?
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); }; } &&
28882          { ac_try='test -s conftest$ac_exeext'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; }; then
28888   ol_cv_db_db_4_2=yes
28889 else
28890   echo "$as_me: failed program was:" >&5
28891 sed 's/^/| /' conftest.$ac_ext >&5
28892
28893 ol_cv_db_db_4_2=no
28894 fi
28895 rm -f conftest.err conftest.$ac_objext \
28896       conftest$ac_exeext conftest.$ac_ext
28897
28898         LIBS="$ol_LIBS"
28899
28900 fi
28901 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28902 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28903
28904         if test $ol_cv_db_db_4_2 = yes ; then
28905                 ol_cv_lib_db=-ldb-4-2
28906         fi
28907 fi
28908
28909 if test $ol_cv_lib_db = no ; then
28910         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28911 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28912 if test "${ol_cv_db_db_4+set}" = set; then
28913   echo $ECHO_N "(cached) $ECHO_C" >&6
28914 else
28915
28916         ol_DB_LIB=-ldb-4
28917         ol_LIBS=$LIBS
28918         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28919
28920         cat >conftest.$ac_ext <<_ACEOF
28921 /* confdefs.h.  */
28922 _ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h.  */
28926
28927 #ifdef HAVE_DB_185_H
28928 # include <db_185.h>
28929 #else
28930 # include <db.h>
28931 #endif
28932
28933 #ifndef DB_VERSION_MAJOR
28934 # define DB_VERSION_MAJOR 1
28935 #endif
28936
28937 #ifndef NULL
28938 #define NULL ((void*)0)
28939 #endif
28940
28941 int
28942 main ()
28943 {
28944
28945 #if DB_VERSION_MAJOR > 1
28946         {
28947                 char *version;
28948                 int major, minor, patch;
28949
28950                 version = db_version( &major, &minor, &patch );
28951
28952                 if( major != DB_VERSION_MAJOR ||
28953                         minor < DB_VERSION_MINOR )
28954                 {
28955                         printf("Berkeley DB version mismatch\n"
28956                                 "\theader: %s\n\tlibrary: %s\n",
28957                                 DB_VERSION_STRING, version);
28958                         return 1;
28959                 }
28960         }
28961 #endif
28962
28963 #if DB_VERSION_MAJOR > 2
28964         db_env_create( NULL, 0 );
28965 #elif DB_VERSION_MAJOR > 1
28966         db_appexit( NULL );
28967 #else
28968         (void) dbopen( NULL, 0, 0, 0, NULL);
28969 #endif
28970
28971   ;
28972   return 0;
28973 }
28974 _ACEOF
28975 rm -f conftest.$ac_objext conftest$ac_exeext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28977   (eval $ac_link) 2>conftest.er1
28978   ac_status=$?
28979   grep -v '^ *+' conftest.er1 >conftest.err
28980   rm -f conftest.er1
28981   cat conftest.err >&5
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); } &&
28984          { ac_try='test -z "$ac_c_werror_flag"
28985                          || test ! -s conftest.err'
28986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987   (eval $ac_try) 2>&5
28988   ac_status=$?
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); }; } &&
28991          { ac_try='test -s conftest$ac_exeext'
28992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993   (eval $ac_try) 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; }; then
28997   ol_cv_db_db_4=yes
28998 else
28999   echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29001
29002 ol_cv_db_db_4=no
29003 fi
29004 rm -f conftest.err conftest.$ac_objext \
29005       conftest$ac_exeext conftest.$ac_ext
29006
29007         LIBS="$ol_LIBS"
29008
29009 fi
29010 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29011 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29012
29013         if test $ol_cv_db_db_4 = yes ; then
29014                 ol_cv_lib_db=-ldb-4
29015         fi
29016 fi
29017
29018 if test $ol_cv_lib_db = no ; then
29019         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29020 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29021 if test "${ol_cv_db_db4+set}" = set; then
29022   echo $ECHO_N "(cached) $ECHO_C" >&6
29023 else
29024
29025         ol_DB_LIB=-ldb4
29026         ol_LIBS=$LIBS
29027         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29028
29029         cat >conftest.$ac_ext <<_ACEOF
29030 /* confdefs.h.  */
29031 _ACEOF
29032 cat confdefs.h >>conftest.$ac_ext
29033 cat >>conftest.$ac_ext <<_ACEOF
29034 /* end confdefs.h.  */
29035
29036 #ifdef HAVE_DB_185_H
29037 # include <db_185.h>
29038 #else
29039 # include <db.h>
29040 #endif
29041
29042 #ifndef DB_VERSION_MAJOR
29043 # define DB_VERSION_MAJOR 1
29044 #endif
29045
29046 #ifndef NULL
29047 #define NULL ((void*)0)
29048 #endif
29049
29050 int
29051 main ()
29052 {
29053
29054 #if DB_VERSION_MAJOR > 1
29055         {
29056                 char *version;
29057                 int major, minor, patch;
29058
29059                 version = db_version( &major, &minor, &patch );
29060
29061                 if( major != DB_VERSION_MAJOR ||
29062                         minor < DB_VERSION_MINOR )
29063                 {
29064                         printf("Berkeley DB version mismatch\n"
29065                                 "\theader: %s\n\tlibrary: %s\n",
29066                                 DB_VERSION_STRING, version);
29067                         return 1;
29068                 }
29069         }
29070 #endif
29071
29072 #if DB_VERSION_MAJOR > 2
29073         db_env_create( NULL, 0 );
29074 #elif DB_VERSION_MAJOR > 1
29075         db_appexit( NULL );
29076 #else
29077         (void) dbopen( NULL, 0, 0, 0, NULL);
29078 #endif
29079
29080   ;
29081   return 0;
29082 }
29083 _ACEOF
29084 rm -f conftest.$ac_objext conftest$ac_exeext
29085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29086   (eval $ac_link) 2>conftest.er1
29087   ac_status=$?
29088   grep -v '^ *+' conftest.er1 >conftest.err
29089   rm -f conftest.er1
29090   cat conftest.err >&5
29091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092   (exit $ac_status); } &&
29093          { ac_try='test -z "$ac_c_werror_flag"
29094                          || test ! -s conftest.err'
29095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096   (eval $ac_try) 2>&5
29097   ac_status=$?
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); }; } &&
29100          { ac_try='test -s conftest$ac_exeext'
29101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102   (eval $ac_try) 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ol_cv_db_db4=yes
29107 else
29108   echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29110
29111 ol_cv_db_db4=no
29112 fi
29113 rm -f conftest.err conftest.$ac_objext \
29114       conftest$ac_exeext conftest.$ac_ext
29115
29116         LIBS="$ol_LIBS"
29117
29118 fi
29119 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29120 echo "${ECHO_T}$ol_cv_db_db4" >&6
29121
29122         if test $ol_cv_db_db4 = yes ; then
29123                 ol_cv_lib_db=-ldb4
29124         fi
29125 fi
29126
29127 if test $ol_cv_lib_db = no ; then
29128         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29129 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29130 if test "${ol_cv_db_db+set}" = set; then
29131   echo $ECHO_N "(cached) $ECHO_C" >&6
29132 else
29133
29134         ol_DB_LIB=-ldb
29135         ol_LIBS=$LIBS
29136         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29137
29138         cat >conftest.$ac_ext <<_ACEOF
29139 /* confdefs.h.  */
29140 _ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h.  */
29144
29145 #ifdef HAVE_DB_185_H
29146 # include <db_185.h>
29147 #else
29148 # include <db.h>
29149 #endif
29150
29151 #ifndef DB_VERSION_MAJOR
29152 # define DB_VERSION_MAJOR 1
29153 #endif
29154
29155 #ifndef NULL
29156 #define NULL ((void*)0)
29157 #endif
29158
29159 int
29160 main ()
29161 {
29162
29163 #if DB_VERSION_MAJOR > 1
29164         {
29165                 char *version;
29166                 int major, minor, patch;
29167
29168                 version = db_version( &major, &minor, &patch );
29169
29170                 if( major != DB_VERSION_MAJOR ||
29171                         minor < DB_VERSION_MINOR )
29172                 {
29173                         printf("Berkeley DB version mismatch\n"
29174                                 "\theader: %s\n\tlibrary: %s\n",
29175                                 DB_VERSION_STRING, version);
29176                         return 1;
29177                 }
29178         }
29179 #endif
29180
29181 #if DB_VERSION_MAJOR > 2
29182         db_env_create( NULL, 0 );
29183 #elif DB_VERSION_MAJOR > 1
29184         db_appexit( NULL );
29185 #else
29186         (void) dbopen( NULL, 0, 0, 0, NULL);
29187 #endif
29188
29189   ;
29190   return 0;
29191 }
29192 _ACEOF
29193 rm -f conftest.$ac_objext conftest$ac_exeext
29194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29195   (eval $ac_link) 2>conftest.er1
29196   ac_status=$?
29197   grep -v '^ *+' conftest.er1 >conftest.err
29198   rm -f conftest.er1
29199   cat conftest.err >&5
29200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201   (exit $ac_status); } &&
29202          { ac_try='test -z "$ac_c_werror_flag"
29203                          || test ! -s conftest.err'
29204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205   (eval $ac_try) 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); }; } &&
29209          { ac_try='test -s conftest$ac_exeext'
29210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211   (eval $ac_try) 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; }; then
29215   ol_cv_db_db=yes
29216 else
29217   echo "$as_me: failed program was:" >&5
29218 sed 's/^/| /' conftest.$ac_ext >&5
29219
29220 ol_cv_db_db=no
29221 fi
29222 rm -f conftest.err conftest.$ac_objext \
29223       conftest$ac_exeext conftest.$ac_ext
29224
29225         LIBS="$ol_LIBS"
29226
29227 fi
29228 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29229 echo "${ECHO_T}$ol_cv_db_db" >&6
29230
29231         if test $ol_cv_db_db = yes ; then
29232                 ol_cv_lib_db=-ldb
29233         fi
29234 fi
29235
29236 if test $ol_cv_lib_db = no ; then
29237         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29238 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29239 if test "${ol_cv_db_db41+set}" = set; then
29240   echo $ECHO_N "(cached) $ECHO_C" >&6
29241 else
29242
29243         ol_DB_LIB=-ldb41
29244         ol_LIBS=$LIBS
29245         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29246
29247         cat >conftest.$ac_ext <<_ACEOF
29248 /* confdefs.h.  */
29249 _ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h.  */
29253
29254 #ifdef HAVE_DB_185_H
29255 # include <db_185.h>
29256 #else
29257 # include <db.h>
29258 #endif
29259
29260 #ifndef DB_VERSION_MAJOR
29261 # define DB_VERSION_MAJOR 1
29262 #endif
29263
29264 #ifndef NULL
29265 #define NULL ((void*)0)
29266 #endif
29267
29268 int
29269 main ()
29270 {
29271
29272 #if DB_VERSION_MAJOR > 1
29273         {
29274                 char *version;
29275                 int major, minor, patch;
29276
29277                 version = db_version( &major, &minor, &patch );
29278
29279                 if( major != DB_VERSION_MAJOR ||
29280                         minor < DB_VERSION_MINOR )
29281                 {
29282                         printf("Berkeley DB version mismatch\n"
29283                                 "\theader: %s\n\tlibrary: %s\n",
29284                                 DB_VERSION_STRING, version);
29285                         return 1;
29286                 }
29287         }
29288 #endif
29289
29290 #if DB_VERSION_MAJOR > 2
29291         db_env_create( NULL, 0 );
29292 #elif DB_VERSION_MAJOR > 1
29293         db_appexit( NULL );
29294 #else
29295         (void) dbopen( NULL, 0, 0, 0, NULL);
29296 #endif
29297
29298   ;
29299   return 0;
29300 }
29301 _ACEOF
29302 rm -f conftest.$ac_objext conftest$ac_exeext
29303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29304   (eval $ac_link) 2>conftest.er1
29305   ac_status=$?
29306   grep -v '^ *+' conftest.er1 >conftest.err
29307   rm -f conftest.er1
29308   cat conftest.err >&5
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } &&
29311          { ac_try='test -z "$ac_c_werror_flag"
29312                          || test ! -s conftest.err'
29313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314   (eval $ac_try) 2>&5
29315   ac_status=$?
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); }; } &&
29318          { ac_try='test -s conftest$ac_exeext'
29319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320   (eval $ac_try) 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; }; then
29324   ol_cv_db_db41=yes
29325 else
29326   echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329 ol_cv_db_db41=no
29330 fi
29331 rm -f conftest.err conftest.$ac_objext \
29332       conftest$ac_exeext conftest.$ac_ext
29333
29334         LIBS="$ol_LIBS"
29335
29336 fi
29337 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29338 echo "${ECHO_T}$ol_cv_db_db41" >&6
29339
29340         if test $ol_cv_db_db41 = yes ; then
29341                 ol_cv_lib_db=-ldb41
29342         fi
29343 fi
29344
29345 if test $ol_cv_lib_db = no ; then
29346         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29347 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29348 if test "${ol_cv_db_db_41+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351
29352         ol_DB_LIB=-ldb-41
29353         ol_LIBS=$LIBS
29354         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29355
29356         cat >conftest.$ac_ext <<_ACEOF
29357 /* confdefs.h.  */
29358 _ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h.  */
29362
29363 #ifdef HAVE_DB_185_H
29364 # include <db_185.h>
29365 #else
29366 # include <db.h>
29367 #endif
29368
29369 #ifndef DB_VERSION_MAJOR
29370 # define DB_VERSION_MAJOR 1
29371 #endif
29372
29373 #ifndef NULL
29374 #define NULL ((void*)0)
29375 #endif
29376
29377 int
29378 main ()
29379 {
29380
29381 #if DB_VERSION_MAJOR > 1
29382         {
29383                 char *version;
29384                 int major, minor, patch;
29385
29386                 version = db_version( &major, &minor, &patch );
29387
29388                 if( major != DB_VERSION_MAJOR ||
29389                         minor < DB_VERSION_MINOR )
29390                 {
29391                         printf("Berkeley DB version mismatch\n"
29392                                 "\theader: %s\n\tlibrary: %s\n",
29393                                 DB_VERSION_STRING, version);
29394                         return 1;
29395                 }
29396         }
29397 #endif
29398
29399 #if DB_VERSION_MAJOR > 2
29400         db_env_create( NULL, 0 );
29401 #elif DB_VERSION_MAJOR > 1
29402         db_appexit( NULL );
29403 #else
29404         (void) dbopen( NULL, 0, 0, 0, NULL);
29405 #endif
29406
29407   ;
29408   return 0;
29409 }
29410 _ACEOF
29411 rm -f conftest.$ac_objext conftest$ac_exeext
29412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29413   (eval $ac_link) 2>conftest.er1
29414   ac_status=$?
29415   grep -v '^ *+' conftest.er1 >conftest.err
29416   rm -f conftest.er1
29417   cat conftest.err >&5
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); } &&
29420          { ac_try='test -z "$ac_c_werror_flag"
29421                          || test ! -s conftest.err'
29422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29423   (eval $ac_try) 2>&5
29424   ac_status=$?
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); }; } &&
29427          { ac_try='test -s conftest$ac_exeext'
29428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29429   (eval $ac_try) 2>&5
29430   ac_status=$?
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); }; }; then
29433   ol_cv_db_db_41=yes
29434 else
29435   echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 ol_cv_db_db_41=no
29439 fi
29440 rm -f conftest.err conftest.$ac_objext \
29441       conftest$ac_exeext conftest.$ac_ext
29442
29443         LIBS="$ol_LIBS"
29444
29445 fi
29446 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29447 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29448
29449         if test $ol_cv_db_db_41 = yes ; then
29450                 ol_cv_lib_db=-ldb-41
29451         fi
29452 fi
29453
29454 if test $ol_cv_lib_db = no ; then
29455         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29456 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29457 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29458   echo $ECHO_N "(cached) $ECHO_C" >&6
29459 else
29460
29461         ol_DB_LIB=-ldb-4.1
29462         ol_LIBS=$LIBS
29463         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29464
29465         cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h.  */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h.  */
29471
29472 #ifdef HAVE_DB_185_H
29473 # include <db_185.h>
29474 #else
29475 # include <db.h>
29476 #endif
29477
29478 #ifndef DB_VERSION_MAJOR
29479 # define DB_VERSION_MAJOR 1
29480 #endif
29481
29482 #ifndef NULL
29483 #define NULL ((void*)0)
29484 #endif
29485
29486 int
29487 main ()
29488 {
29489
29490 #if DB_VERSION_MAJOR > 1
29491         {
29492                 char *version;
29493                 int major, minor, patch;
29494
29495                 version = db_version( &major, &minor, &patch );
29496
29497                 if( major != DB_VERSION_MAJOR ||
29498                         minor < DB_VERSION_MINOR )
29499                 {
29500                         printf("Berkeley DB version mismatch\n"
29501                                 "\theader: %s\n\tlibrary: %s\n",
29502                                 DB_VERSION_STRING, version);
29503                         return 1;
29504                 }
29505         }
29506 #endif
29507
29508 #if DB_VERSION_MAJOR > 2
29509         db_env_create( NULL, 0 );
29510 #elif DB_VERSION_MAJOR > 1
29511         db_appexit( NULL );
29512 #else
29513         (void) dbopen( NULL, 0, 0, 0, NULL);
29514 #endif
29515
29516   ;
29517   return 0;
29518 }
29519 _ACEOF
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29522   (eval $ac_link) 2>conftest.er1
29523   ac_status=$?
29524   grep -v '^ *+' conftest.er1 >conftest.err
29525   rm -f conftest.er1
29526   cat conftest.err >&5
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); } &&
29529          { ac_try='test -z "$ac_c_werror_flag"
29530                          || test ! -s conftest.err'
29531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532   (eval $ac_try) 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); }; } &&
29536          { ac_try='test -s conftest$ac_exeext'
29537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538   (eval $ac_try) 2>&5
29539   ac_status=$?
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); }; }; then
29542   ol_cv_db_db_4_dot_1=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547 ol_cv_db_db_4_dot_1=no
29548 fi
29549 rm -f conftest.err conftest.$ac_objext \
29550       conftest$ac_exeext conftest.$ac_ext
29551
29552         LIBS="$ol_LIBS"
29553
29554 fi
29555 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29556 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29557
29558         if test $ol_cv_db_db_4_dot_1 = yes ; then
29559                 ol_cv_lib_db=-ldb-4.1
29560         fi
29561 fi
29562
29563 if test $ol_cv_lib_db = no ; then
29564         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29565 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29566 if test "${ol_cv_db_db_4_1+set}" = set; then
29567   echo $ECHO_N "(cached) $ECHO_C" >&6
29568 else
29569
29570         ol_DB_LIB=-ldb-4-1
29571         ol_LIBS=$LIBS
29572         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29573
29574         cat >conftest.$ac_ext <<_ACEOF
29575 /* confdefs.h.  */
29576 _ACEOF
29577 cat confdefs.h >>conftest.$ac_ext
29578 cat >>conftest.$ac_ext <<_ACEOF
29579 /* end confdefs.h.  */
29580
29581 #ifdef HAVE_DB_185_H
29582 # include <db_185.h>
29583 #else
29584 # include <db.h>
29585 #endif
29586
29587 #ifndef DB_VERSION_MAJOR
29588 # define DB_VERSION_MAJOR 1
29589 #endif
29590
29591 #ifndef NULL
29592 #define NULL ((void*)0)
29593 #endif
29594
29595 int
29596 main ()
29597 {
29598
29599 #if DB_VERSION_MAJOR > 1
29600         {
29601                 char *version;
29602                 int major, minor, patch;
29603
29604                 version = db_version( &major, &minor, &patch );
29605
29606                 if( major != DB_VERSION_MAJOR ||
29607                         minor < DB_VERSION_MINOR )
29608                 {
29609                         printf("Berkeley DB version mismatch\n"
29610                                 "\theader: %s\n\tlibrary: %s\n",
29611                                 DB_VERSION_STRING, version);
29612                         return 1;
29613                 }
29614         }
29615 #endif
29616
29617 #if DB_VERSION_MAJOR > 2
29618         db_env_create( NULL, 0 );
29619 #elif DB_VERSION_MAJOR > 1
29620         db_appexit( NULL );
29621 #else
29622         (void) dbopen( NULL, 0, 0, 0, NULL);
29623 #endif
29624
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 rm -f conftest.$ac_objext conftest$ac_exeext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29631   (eval $ac_link) 2>conftest.er1
29632   ac_status=$?
29633   grep -v '^ *+' conftest.er1 >conftest.err
29634   rm -f conftest.er1
29635   cat conftest.err >&5
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); } &&
29638          { ac_try='test -z "$ac_c_werror_flag"
29639                          || test ! -s conftest.err'
29640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641   (eval $ac_try) 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; } &&
29645          { ac_try='test -s conftest$ac_exeext'
29646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647   (eval $ac_try) 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; }; then
29651   ol_cv_db_db_4_1=yes
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656 ol_cv_db_db_4_1=no
29657 fi
29658 rm -f conftest.err conftest.$ac_objext \
29659       conftest$ac_exeext conftest.$ac_ext
29660
29661         LIBS="$ol_LIBS"
29662
29663 fi
29664 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29665 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29666
29667         if test $ol_cv_db_db_4_1 = yes ; then
29668                 ol_cv_lib_db=-ldb-4-1
29669         fi
29670 fi
29671
29672 if test $ol_cv_lib_db = no ; then
29673         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29674 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29675 if test "${ol_cv_db_db3+set}" = set; then
29676   echo $ECHO_N "(cached) $ECHO_C" >&6
29677 else
29678
29679         ol_DB_LIB=-ldb3
29680         ol_LIBS=$LIBS
29681         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29682
29683         cat >conftest.$ac_ext <<_ACEOF
29684 /* confdefs.h.  */
29685 _ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h.  */
29689
29690 #ifdef HAVE_DB_185_H
29691 # include <db_185.h>
29692 #else
29693 # include <db.h>
29694 #endif
29695
29696 #ifndef DB_VERSION_MAJOR
29697 # define DB_VERSION_MAJOR 1
29698 #endif
29699
29700 #ifndef NULL
29701 #define NULL ((void*)0)
29702 #endif
29703
29704 int
29705 main ()
29706 {
29707
29708 #if DB_VERSION_MAJOR > 1
29709         {
29710                 char *version;
29711                 int major, minor, patch;
29712
29713                 version = db_version( &major, &minor, &patch );
29714
29715                 if( major != DB_VERSION_MAJOR ||
29716                         minor < DB_VERSION_MINOR )
29717                 {
29718                         printf("Berkeley DB version mismatch\n"
29719                                 "\theader: %s\n\tlibrary: %s\n",
29720                                 DB_VERSION_STRING, version);
29721                         return 1;
29722                 }
29723         }
29724 #endif
29725
29726 #if DB_VERSION_MAJOR > 2
29727         db_env_create( NULL, 0 );
29728 #elif DB_VERSION_MAJOR > 1
29729         db_appexit( NULL );
29730 #else
29731         (void) dbopen( NULL, 0, 0, 0, NULL);
29732 #endif
29733
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29740   (eval $ac_link) 2>conftest.er1
29741   ac_status=$?
29742   grep -v '^ *+' conftest.er1 >conftest.err
29743   rm -f conftest.er1
29744   cat conftest.err >&5
29745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746   (exit $ac_status); } &&
29747          { ac_try='test -z "$ac_c_werror_flag"
29748                          || test ! -s conftest.err'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; } &&
29754          { ac_try='test -s conftest$ac_exeext'
29755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756   (eval $ac_try) 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); }; }; then
29760   ol_cv_db_db3=yes
29761 else
29762   echo "$as_me: failed program was:" >&5
29763 sed 's/^/| /' conftest.$ac_ext >&5
29764
29765 ol_cv_db_db3=no
29766 fi
29767 rm -f conftest.err conftest.$ac_objext \
29768       conftest$ac_exeext conftest.$ac_ext
29769
29770         LIBS="$ol_LIBS"
29771
29772 fi
29773 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29774 echo "${ECHO_T}$ol_cv_db_db3" >&6
29775
29776         if test $ol_cv_db_db3 = yes ; then
29777                 ol_cv_lib_db=-ldb3
29778         fi
29779 fi
29780
29781 if test $ol_cv_lib_db = no ; then
29782         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29783 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29784 if test "${ol_cv_db_db_3+set}" = set; then
29785   echo $ECHO_N "(cached) $ECHO_C" >&6
29786 else
29787
29788         ol_DB_LIB=-ldb-3
29789         ol_LIBS=$LIBS
29790         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29791
29792         cat >conftest.$ac_ext <<_ACEOF
29793 /* confdefs.h.  */
29794 _ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h.  */
29798
29799 #ifdef HAVE_DB_185_H
29800 # include <db_185.h>
29801 #else
29802 # include <db.h>
29803 #endif
29804
29805 #ifndef DB_VERSION_MAJOR
29806 # define DB_VERSION_MAJOR 1
29807 #endif
29808
29809 #ifndef NULL
29810 #define NULL ((void*)0)
29811 #endif
29812
29813 int
29814 main ()
29815 {
29816
29817 #if DB_VERSION_MAJOR > 1
29818         {
29819                 char *version;
29820                 int major, minor, patch;
29821
29822                 version = db_version( &major, &minor, &patch );
29823
29824                 if( major != DB_VERSION_MAJOR ||
29825                         minor < DB_VERSION_MINOR )
29826                 {
29827                         printf("Berkeley DB version mismatch\n"
29828                                 "\theader: %s\n\tlibrary: %s\n",
29829                                 DB_VERSION_STRING, version);
29830                         return 1;
29831                 }
29832         }
29833 #endif
29834
29835 #if DB_VERSION_MAJOR > 2
29836         db_env_create( NULL, 0 );
29837 #elif DB_VERSION_MAJOR > 1
29838         db_appexit( NULL );
29839 #else
29840         (void) dbopen( NULL, 0, 0, 0, NULL);
29841 #endif
29842
29843   ;
29844   return 0;
29845 }
29846 _ACEOF
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29849   (eval $ac_link) 2>conftest.er1
29850   ac_status=$?
29851   grep -v '^ *+' conftest.er1 >conftest.err
29852   rm -f conftest.er1
29853   cat conftest.err >&5
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } &&
29856          { ac_try='test -z "$ac_c_werror_flag"
29857                          || test ! -s conftest.err'
29858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859   (eval $ac_try) 2>&5
29860   ac_status=$?
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); }; } &&
29863          { ac_try='test -s conftest$ac_exeext'
29864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865   (eval $ac_try) 2>&5
29866   ac_status=$?
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); }; }; then
29869   ol_cv_db_db_3=yes
29870 else
29871   echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29873
29874 ol_cv_db_db_3=no
29875 fi
29876 rm -f conftest.err conftest.$ac_objext \
29877       conftest$ac_exeext conftest.$ac_ext
29878
29879         LIBS="$ol_LIBS"
29880
29881 fi
29882 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29883 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29884
29885         if test $ol_cv_db_db_3 = yes ; then
29886                 ol_cv_lib_db=-ldb-3
29887         fi
29888 fi
29889
29890 if test $ol_cv_lib_db = no ; then
29891         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29892 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29893 if test "${ol_cv_db_db2+set}" = set; then
29894   echo $ECHO_N "(cached) $ECHO_C" >&6
29895 else
29896
29897         ol_DB_LIB=-ldb2
29898         ol_LIBS=$LIBS
29899         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29900
29901         cat >conftest.$ac_ext <<_ACEOF
29902 /* confdefs.h.  */
29903 _ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h.  */
29907
29908 #ifdef HAVE_DB_185_H
29909 # include <db_185.h>
29910 #else
29911 # include <db.h>
29912 #endif
29913
29914 #ifndef DB_VERSION_MAJOR
29915 # define DB_VERSION_MAJOR 1
29916 #endif
29917
29918 #ifndef NULL
29919 #define NULL ((void*)0)
29920 #endif
29921
29922 int
29923 main ()
29924 {
29925
29926 #if DB_VERSION_MAJOR > 1
29927         {
29928                 char *version;
29929                 int major, minor, patch;
29930
29931                 version = db_version( &major, &minor, &patch );
29932
29933                 if( major != DB_VERSION_MAJOR ||
29934                         minor < DB_VERSION_MINOR )
29935                 {
29936                         printf("Berkeley DB version mismatch\n"
29937                                 "\theader: %s\n\tlibrary: %s\n",
29938                                 DB_VERSION_STRING, version);
29939                         return 1;
29940                 }
29941         }
29942 #endif
29943
29944 #if DB_VERSION_MAJOR > 2
29945         db_env_create( NULL, 0 );
29946 #elif DB_VERSION_MAJOR > 1
29947         db_appexit( NULL );
29948 #else
29949         (void) dbopen( NULL, 0, 0, 0, NULL);
29950 #endif
29951
29952   ;
29953   return 0;
29954 }
29955 _ACEOF
29956 rm -f conftest.$ac_objext conftest$ac_exeext
29957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29958   (eval $ac_link) 2>conftest.er1
29959   ac_status=$?
29960   grep -v '^ *+' conftest.er1 >conftest.err
29961   rm -f conftest.er1
29962   cat conftest.err >&5
29963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964   (exit $ac_status); } &&
29965          { ac_try='test -z "$ac_c_werror_flag"
29966                          || test ! -s conftest.err'
29967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968   (eval $ac_try) 2>&5
29969   ac_status=$?
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); }; } &&
29972          { ac_try='test -s conftest$ac_exeext'
29973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974   (eval $ac_try) 2>&5
29975   ac_status=$?
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); }; }; then
29978   ol_cv_db_db2=yes
29979 else
29980   echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29982
29983 ol_cv_db_db2=no
29984 fi
29985 rm -f conftest.err conftest.$ac_objext \
29986       conftest$ac_exeext conftest.$ac_ext
29987
29988         LIBS="$ol_LIBS"
29989
29990 fi
29991 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29992 echo "${ECHO_T}$ol_cv_db_db2" >&6
29993
29994         if test $ol_cv_db_db2 = yes ; then
29995                 ol_cv_lib_db=-ldb2
29996         fi
29997 fi
29998
29999 if test $ol_cv_lib_db = no ; then
30000         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30001 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30002 if test "${ol_cv_db_db_2+set}" = set; then
30003   echo $ECHO_N "(cached) $ECHO_C" >&6
30004 else
30005
30006         ol_DB_LIB=-ldb-2
30007         ol_LIBS=$LIBS
30008         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30009
30010         cat >conftest.$ac_ext <<_ACEOF
30011 /* confdefs.h.  */
30012 _ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h.  */
30016
30017 #ifdef HAVE_DB_185_H
30018 # include <db_185.h>
30019 #else
30020 # include <db.h>
30021 #endif
30022
30023 #ifndef DB_VERSION_MAJOR
30024 # define DB_VERSION_MAJOR 1
30025 #endif
30026
30027 #ifndef NULL
30028 #define NULL ((void*)0)
30029 #endif
30030
30031 int
30032 main ()
30033 {
30034
30035 #if DB_VERSION_MAJOR > 1
30036         {
30037                 char *version;
30038                 int major, minor, patch;
30039
30040                 version = db_version( &major, &minor, &patch );
30041
30042                 if( major != DB_VERSION_MAJOR ||
30043                         minor < DB_VERSION_MINOR )
30044                 {
30045                         printf("Berkeley DB version mismatch\n"
30046                                 "\theader: %s\n\tlibrary: %s\n",
30047                                 DB_VERSION_STRING, version);
30048                         return 1;
30049                 }
30050         }
30051 #endif
30052
30053 #if DB_VERSION_MAJOR > 2
30054         db_env_create( NULL, 0 );
30055 #elif DB_VERSION_MAJOR > 1
30056         db_appexit( NULL );
30057 #else
30058         (void) dbopen( NULL, 0, 0, 0, NULL);
30059 #endif
30060
30061   ;
30062   return 0;
30063 }
30064 _ACEOF
30065 rm -f conftest.$ac_objext conftest$ac_exeext
30066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30067   (eval $ac_link) 2>conftest.er1
30068   ac_status=$?
30069   grep -v '^ *+' conftest.er1 >conftest.err
30070   rm -f conftest.er1
30071   cat conftest.err >&5
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); } &&
30074          { ac_try='test -z "$ac_c_werror_flag"
30075                          || test ! -s conftest.err'
30076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30077   (eval $ac_try) 2>&5
30078   ac_status=$?
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); }; } &&
30081          { ac_try='test -s conftest$ac_exeext'
30082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30083   (eval $ac_try) 2>&5
30084   ac_status=$?
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); }; }; then
30087   ol_cv_db_db_2=yes
30088 else
30089   echo "$as_me: failed program was:" >&5
30090 sed 's/^/| /' conftest.$ac_ext >&5
30091
30092 ol_cv_db_db_2=no
30093 fi
30094 rm -f conftest.err conftest.$ac_objext \
30095       conftest$ac_exeext conftest.$ac_ext
30096
30097         LIBS="$ol_LIBS"
30098
30099 fi
30100 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30101 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30102
30103         if test $ol_cv_db_db_2 = yes ; then
30104                 ol_cv_lib_db=-ldb-2
30105         fi
30106 fi
30107
30108 if test $ol_cv_lib_db = no ; then
30109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30110 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30111 if test "${ol_cv_db_db1+set}" = set; then
30112   echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114
30115         ol_DB_LIB=-ldb1
30116         ol_LIBS=$LIBS
30117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30118
30119         cat >conftest.$ac_ext <<_ACEOF
30120 /* confdefs.h.  */
30121 _ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h.  */
30125
30126 #ifdef HAVE_DB_185_H
30127 # include <db_185.h>
30128 #else
30129 # include <db.h>
30130 #endif
30131
30132 #ifndef DB_VERSION_MAJOR
30133 # define DB_VERSION_MAJOR 1
30134 #endif
30135
30136 #ifndef NULL
30137 #define NULL ((void*)0)
30138 #endif
30139
30140 int
30141 main ()
30142 {
30143
30144 #if DB_VERSION_MAJOR > 1
30145         {
30146                 char *version;
30147                 int major, minor, patch;
30148
30149                 version = db_version( &major, &minor, &patch );
30150
30151                 if( major != DB_VERSION_MAJOR ||
30152                         minor < DB_VERSION_MINOR )
30153                 {
30154                         printf("Berkeley DB version mismatch\n"
30155                                 "\theader: %s\n\tlibrary: %s\n",
30156                                 DB_VERSION_STRING, version);
30157                         return 1;
30158                 }
30159         }
30160 #endif
30161
30162 #if DB_VERSION_MAJOR > 2
30163         db_env_create( NULL, 0 );
30164 #elif DB_VERSION_MAJOR > 1
30165         db_appexit( NULL );
30166 #else
30167         (void) dbopen( NULL, 0, 0, 0, NULL);
30168 #endif
30169
30170   ;
30171   return 0;
30172 }
30173 _ACEOF
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30176   (eval $ac_link) 2>conftest.er1
30177   ac_status=$?
30178   grep -v '^ *+' conftest.er1 >conftest.err
30179   rm -f conftest.er1
30180   cat conftest.err >&5
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } &&
30183          { ac_try='test -z "$ac_c_werror_flag"
30184                          || test ! -s conftest.err'
30185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186   (eval $ac_try) 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest$ac_exeext'
30191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192   (eval $ac_try) 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; }; then
30196   ol_cv_db_db1=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201 ol_cv_db_db1=no
30202 fi
30203 rm -f conftest.err conftest.$ac_objext \
30204       conftest$ac_exeext conftest.$ac_ext
30205
30206         LIBS="$ol_LIBS"
30207
30208 fi
30209 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30210 echo "${ECHO_T}$ol_cv_db_db1" >&6
30211
30212         if test $ol_cv_db_db1 = yes ; then
30213                 ol_cv_lib_db=-ldb1
30214         fi
30215 fi
30216
30217 if test $ol_cv_lib_db = no ; then
30218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30219 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30220 if test "${ol_cv_db_db_1+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223
30224         ol_DB_LIB=-ldb-1
30225         ol_LIBS=$LIBS
30226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30227
30228         cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h.  */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h.  */
30234
30235 #ifdef HAVE_DB_185_H
30236 # include <db_185.h>
30237 #else
30238 # include <db.h>
30239 #endif
30240
30241 #ifndef DB_VERSION_MAJOR
30242 # define DB_VERSION_MAJOR 1
30243 #endif
30244
30245 #ifndef NULL
30246 #define NULL ((void*)0)
30247 #endif
30248
30249 int
30250 main ()
30251 {
30252
30253 #if DB_VERSION_MAJOR > 1
30254         {
30255                 char *version;
30256                 int major, minor, patch;
30257
30258                 version = db_version( &major, &minor, &patch );
30259
30260                 if( major != DB_VERSION_MAJOR ||
30261                         minor < DB_VERSION_MINOR )
30262                 {
30263                         printf("Berkeley DB version mismatch\n"
30264                                 "\theader: %s\n\tlibrary: %s\n",
30265                                 DB_VERSION_STRING, version);
30266                         return 1;
30267                 }
30268         }
30269 #endif
30270
30271 #if DB_VERSION_MAJOR > 2
30272         db_env_create( NULL, 0 );
30273 #elif DB_VERSION_MAJOR > 1
30274         db_appexit( NULL );
30275 #else
30276         (void) dbopen( NULL, 0, 0, 0, NULL);
30277 #endif
30278
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285   (eval $ac_link) 2>conftest.er1
30286   ac_status=$?
30287   grep -v '^ *+' conftest.er1 >conftest.err
30288   rm -f conftest.er1
30289   cat conftest.err >&5
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); } &&
30292          { ac_try='test -z "$ac_c_werror_flag"
30293                          || test ! -s conftest.err'
30294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295   (eval $ac_try) 2>&5
30296   ac_status=$?
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); }; } &&
30299          { ac_try='test -s conftest$ac_exeext'
30300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301   (eval $ac_try) 2>&5
30302   ac_status=$?
30303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); }; }; then
30305   ol_cv_db_db_1=yes
30306 else
30307   echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30309
30310 ol_cv_db_db_1=no
30311 fi
30312 rm -f conftest.err conftest.$ac_objext \
30313       conftest$ac_exeext conftest.$ac_ext
30314
30315         LIBS="$ol_LIBS"
30316
30317 fi
30318 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30319 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30320
30321         if test $ol_cv_db_db_1 = yes ; then
30322                 ol_cv_lib_db=-ldb-1
30323         fi
30324 fi
30325
30326
30327                 if test "$ol_cv_lib_db" != no ; then
30328                         ol_cv_berkeley_db=yes
30329                 fi
30330         fi
30331 fi
30332
30333         else
30334                 ol_cv_berkeley_db=no
30335
30336 for ac_header in db.h
30337 do
30338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30340   echo "$as_me:$LINENO: checking for $ac_header" >&5
30341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30343   echo $ECHO_N "(cached) $ECHO_C" >&6
30344 fi
30345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30347 else
30348   # Is the header compilable?
30349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30351 cat >conftest.$ac_ext <<_ACEOF
30352 /* confdefs.h.  */
30353 _ACEOF
30354 cat confdefs.h >>conftest.$ac_ext
30355 cat >>conftest.$ac_ext <<_ACEOF
30356 /* end confdefs.h.  */
30357 $ac_includes_default
30358 #include <$ac_header>
30359 _ACEOF
30360 rm -f conftest.$ac_objext
30361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30362   (eval $ac_compile) 2>conftest.er1
30363   ac_status=$?
30364   grep -v '^ *+' conftest.er1 >conftest.err
30365   rm -f conftest.er1
30366   cat conftest.err >&5
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); } &&
30369          { ac_try='test -z "$ac_c_werror_flag"
30370                          || test ! -s conftest.err'
30371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372   (eval $ac_try) 2>&5
30373   ac_status=$?
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); }; } &&
30376          { ac_try='test -s conftest.$ac_objext'
30377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378   (eval $ac_try) 2>&5
30379   ac_status=$?
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); }; }; then
30382   ac_header_compiler=yes
30383 else
30384   echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30386
30387 ac_header_compiler=no
30388 fi
30389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391 echo "${ECHO_T}$ac_header_compiler" >&6
30392
30393 # Is the header present?
30394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30396 cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402 #include <$ac_header>
30403 _ACEOF
30404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30406   ac_status=$?
30407   grep -v '^ *+' conftest.er1 >conftest.err
30408   rm -f conftest.er1
30409   cat conftest.err >&5
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); } >/dev/null; then
30412   if test -s conftest.err; then
30413     ac_cpp_err=$ac_c_preproc_warn_flag
30414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30415   else
30416     ac_cpp_err=
30417   fi
30418 else
30419   ac_cpp_err=yes
30420 fi
30421 if test -z "$ac_cpp_err"; then
30422   ac_header_preproc=yes
30423 else
30424   echo "$as_me: failed program was:" >&5
30425 sed 's/^/| /' conftest.$ac_ext >&5
30426
30427   ac_header_preproc=no
30428 fi
30429 rm -f conftest.err conftest.$ac_ext
30430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30431 echo "${ECHO_T}$ac_header_preproc" >&6
30432
30433 # So?  What about this header?
30434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30435   yes:no: )
30436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30440     ac_header_preproc=yes
30441     ;;
30442   no:yes:* )
30443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30455     (
30456       cat <<\_ASBOX
30457 ## ------------------------------------------ ##
30458 ## Report this to the AC_PACKAGE_NAME lists.  ##
30459 ## ------------------------------------------ ##
30460 _ASBOX
30461     ) |
30462       sed "s/^/$as_me: WARNING:     /" >&2
30463     ;;
30464 esac
30465 echo "$as_me:$LINENO: checking for $ac_header" >&5
30466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30468   echo $ECHO_N "(cached) $ECHO_C" >&6
30469 else
30470   eval "$as_ac_Header=\$ac_header_preproc"
30471 fi
30472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30474
30475 fi
30476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477   cat >>confdefs.h <<_ACEOF
30478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30479 _ACEOF
30480
30481 fi
30482
30483 done
30484
30485 if test $ac_cv_header_db_h = yes; then
30486         ol_cv_lib_db=no
30487 if test $ol_cv_lib_db = no ; then
30488         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30489 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30490 if test "${ol_cv_db_none+set}" = set; then
30491   echo $ECHO_N "(cached) $ECHO_C" >&6
30492 else
30493
30494         ol_DB_LIB=
30495         ol_LIBS=$LIBS
30496         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30497
30498         cat >conftest.$ac_ext <<_ACEOF
30499 /* confdefs.h.  */
30500 _ACEOF
30501 cat confdefs.h >>conftest.$ac_ext
30502 cat >>conftest.$ac_ext <<_ACEOF
30503 /* end confdefs.h.  */
30504
30505 #ifdef HAVE_DB_185_H
30506 # include <db_185.h>
30507 #else
30508 # include <db.h>
30509 #endif
30510
30511 #ifndef DB_VERSION_MAJOR
30512 # define DB_VERSION_MAJOR 1
30513 #endif
30514
30515 #ifndef NULL
30516 #define NULL ((void*)0)
30517 #endif
30518
30519 int
30520 main ()
30521 {
30522
30523 #if DB_VERSION_MAJOR > 1
30524         {
30525                 char *version;
30526                 int major, minor, patch;
30527
30528                 version = db_version( &major, &minor, &patch );
30529
30530                 if( major != DB_VERSION_MAJOR ||
30531                         minor < DB_VERSION_MINOR )
30532                 {
30533                         printf("Berkeley DB version mismatch\n"
30534                                 "\theader: %s\n\tlibrary: %s\n",
30535                                 DB_VERSION_STRING, version);
30536                         return 1;
30537                 }
30538         }
30539 #endif
30540
30541 #if DB_VERSION_MAJOR > 2
30542         db_env_create( NULL, 0 );
30543 #elif DB_VERSION_MAJOR > 1
30544         db_appexit( NULL );
30545 #else
30546         (void) dbopen( NULL, 0, 0, 0, NULL);
30547 #endif
30548
30549   ;
30550   return 0;
30551 }
30552 _ACEOF
30553 rm -f conftest.$ac_objext conftest$ac_exeext
30554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30555   (eval $ac_link) 2>conftest.er1
30556   ac_status=$?
30557   grep -v '^ *+' conftest.er1 >conftest.err
30558   rm -f conftest.er1
30559   cat conftest.err >&5
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); } &&
30562          { ac_try='test -z "$ac_c_werror_flag"
30563                          || test ! -s conftest.err'
30564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565   (eval $ac_try) 2>&5
30566   ac_status=$?
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); }; } &&
30569          { ac_try='test -s conftest$ac_exeext'
30570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571   (eval $ac_try) 2>&5
30572   ac_status=$?
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); }; }; then
30575   ol_cv_db_none=yes
30576 else
30577   echo "$as_me: failed program was:" >&5
30578 sed 's/^/| /' conftest.$ac_ext >&5
30579
30580 ol_cv_db_none=no
30581 fi
30582 rm -f conftest.err conftest.$ac_objext \
30583       conftest$ac_exeext conftest.$ac_ext
30584
30585         LIBS="$ol_LIBS"
30586
30587 fi
30588 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30589 echo "${ECHO_T}$ol_cv_db_none" >&6
30590
30591         if test $ol_cv_db_none = yes ; then
30592                 ol_cv_lib_db=yes
30593         fi
30594 fi
30595
30596 if test $ol_cv_lib_db = no ; then
30597         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30598 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30599 if test "${ol_cv_db_db43+set}" = set; then
30600   echo $ECHO_N "(cached) $ECHO_C" >&6
30601 else
30602
30603         ol_DB_LIB=-ldb43
30604         ol_LIBS=$LIBS
30605         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30606
30607         cat >conftest.$ac_ext <<_ACEOF
30608 /* confdefs.h.  */
30609 _ACEOF
30610 cat confdefs.h >>conftest.$ac_ext
30611 cat >>conftest.$ac_ext <<_ACEOF
30612 /* end confdefs.h.  */
30613
30614 #ifdef HAVE_DB_185_H
30615 # include <db_185.h>
30616 #else
30617 # include <db.h>
30618 #endif
30619
30620 #ifndef DB_VERSION_MAJOR
30621 # define DB_VERSION_MAJOR 1
30622 #endif
30623
30624 #ifndef NULL
30625 #define NULL ((void*)0)
30626 #endif
30627
30628 int
30629 main ()
30630 {
30631
30632 #if DB_VERSION_MAJOR > 1
30633         {
30634                 char *version;
30635                 int major, minor, patch;
30636
30637                 version = db_version( &major, &minor, &patch );
30638
30639                 if( major != DB_VERSION_MAJOR ||
30640                         minor < DB_VERSION_MINOR )
30641                 {
30642                         printf("Berkeley DB version mismatch\n"
30643                                 "\theader: %s\n\tlibrary: %s\n",
30644                                 DB_VERSION_STRING, version);
30645                         return 1;
30646                 }
30647         }
30648 #endif
30649
30650 #if DB_VERSION_MAJOR > 2
30651         db_env_create( NULL, 0 );
30652 #elif DB_VERSION_MAJOR > 1
30653         db_appexit( NULL );
30654 #else
30655         (void) dbopen( NULL, 0, 0, 0, NULL);
30656 #endif
30657
30658   ;
30659   return 0;
30660 }
30661 _ACEOF
30662 rm -f conftest.$ac_objext conftest$ac_exeext
30663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30664   (eval $ac_link) 2>conftest.er1
30665   ac_status=$?
30666   grep -v '^ *+' conftest.er1 >conftest.err
30667   rm -f conftest.er1
30668   cat conftest.err >&5
30669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670   (exit $ac_status); } &&
30671          { ac_try='test -z "$ac_c_werror_flag"
30672                          || test ! -s conftest.err'
30673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30674   (eval $ac_try) 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); }; } &&
30678          { ac_try='test -s conftest$ac_exeext'
30679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680   (eval $ac_try) 2>&5
30681   ac_status=$?
30682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683   (exit $ac_status); }; }; then
30684   ol_cv_db_db43=yes
30685 else
30686   echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30688
30689 ol_cv_db_db43=no
30690 fi
30691 rm -f conftest.err conftest.$ac_objext \
30692       conftest$ac_exeext conftest.$ac_ext
30693
30694         LIBS="$ol_LIBS"
30695
30696 fi
30697 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30698 echo "${ECHO_T}$ol_cv_db_db43" >&6
30699
30700         if test $ol_cv_db_db43 = yes ; then
30701                 ol_cv_lib_db=-ldb43
30702         fi
30703 fi
30704
30705 if test $ol_cv_lib_db = no ; then
30706         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30707 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30708 if test "${ol_cv_db_db_43+set}" = set; then
30709   echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711
30712         ol_DB_LIB=-ldb-43
30713         ol_LIBS=$LIBS
30714         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30715
30716         cat >conftest.$ac_ext <<_ACEOF
30717 /* confdefs.h.  */
30718 _ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h.  */
30722
30723 #ifdef HAVE_DB_185_H
30724 # include <db_185.h>
30725 #else
30726 # include <db.h>
30727 #endif
30728
30729 #ifndef DB_VERSION_MAJOR
30730 # define DB_VERSION_MAJOR 1
30731 #endif
30732
30733 #ifndef NULL
30734 #define NULL ((void*)0)
30735 #endif
30736
30737 int
30738 main ()
30739 {
30740
30741 #if DB_VERSION_MAJOR > 1
30742         {
30743                 char *version;
30744                 int major, minor, patch;
30745
30746                 version = db_version( &major, &minor, &patch );
30747
30748                 if( major != DB_VERSION_MAJOR ||
30749                         minor < DB_VERSION_MINOR )
30750                 {
30751                         printf("Berkeley DB version mismatch\n"
30752                                 "\theader: %s\n\tlibrary: %s\n",
30753                                 DB_VERSION_STRING, version);
30754                         return 1;
30755                 }
30756         }
30757 #endif
30758
30759 #if DB_VERSION_MAJOR > 2
30760         db_env_create( NULL, 0 );
30761 #elif DB_VERSION_MAJOR > 1
30762         db_appexit( NULL );
30763 #else
30764         (void) dbopen( NULL, 0, 0, 0, NULL);
30765 #endif
30766
30767   ;
30768   return 0;
30769 }
30770 _ACEOF
30771 rm -f conftest.$ac_objext conftest$ac_exeext
30772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30773   (eval $ac_link) 2>conftest.er1
30774   ac_status=$?
30775   grep -v '^ *+' conftest.er1 >conftest.err
30776   rm -f conftest.er1
30777   cat conftest.err >&5
30778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779   (exit $ac_status); } &&
30780          { ac_try='test -z "$ac_c_werror_flag"
30781                          || test ! -s conftest.err'
30782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783   (eval $ac_try) 2>&5
30784   ac_status=$?
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); }; } &&
30787          { ac_try='test -s conftest$ac_exeext'
30788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30789   (eval $ac_try) 2>&5
30790   ac_status=$?
30791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792   (exit $ac_status); }; }; then
30793   ol_cv_db_db_43=yes
30794 else
30795   echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30797
30798 ol_cv_db_db_43=no
30799 fi
30800 rm -f conftest.err conftest.$ac_objext \
30801       conftest$ac_exeext conftest.$ac_ext
30802
30803         LIBS="$ol_LIBS"
30804
30805 fi
30806 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30807 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30808
30809         if test $ol_cv_db_db_43 = yes ; then
30810                 ol_cv_lib_db=-ldb-43
30811         fi
30812 fi
30813
30814 if test $ol_cv_lib_db = no ; then
30815         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30816 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30817 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30818   echo $ECHO_N "(cached) $ECHO_C" >&6
30819 else
30820
30821         ol_DB_LIB=-ldb-4.3
30822         ol_LIBS=$LIBS
30823         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30824
30825         cat >conftest.$ac_ext <<_ACEOF
30826 /* confdefs.h.  */
30827 _ACEOF
30828 cat confdefs.h >>conftest.$ac_ext
30829 cat >>conftest.$ac_ext <<_ACEOF
30830 /* end confdefs.h.  */
30831
30832 #ifdef HAVE_DB_185_H
30833 # include <db_185.h>
30834 #else
30835 # include <db.h>
30836 #endif
30837
30838 #ifndef DB_VERSION_MAJOR
30839 # define DB_VERSION_MAJOR 1
30840 #endif
30841
30842 #ifndef NULL
30843 #define NULL ((void*)0)
30844 #endif
30845
30846 int
30847 main ()
30848 {
30849
30850 #if DB_VERSION_MAJOR > 1
30851         {
30852                 char *version;
30853                 int major, minor, patch;
30854
30855                 version = db_version( &major, &minor, &patch );
30856
30857                 if( major != DB_VERSION_MAJOR ||
30858                         minor < DB_VERSION_MINOR )
30859                 {
30860                         printf("Berkeley DB version mismatch\n"
30861                                 "\theader: %s\n\tlibrary: %s\n",
30862                                 DB_VERSION_STRING, version);
30863                         return 1;
30864                 }
30865         }
30866 #endif
30867
30868 #if DB_VERSION_MAJOR > 2
30869         db_env_create( NULL, 0 );
30870 #elif DB_VERSION_MAJOR > 1
30871         db_appexit( NULL );
30872 #else
30873         (void) dbopen( NULL, 0, 0, 0, NULL);
30874 #endif
30875
30876   ;
30877   return 0;
30878 }
30879 _ACEOF
30880 rm -f conftest.$ac_objext conftest$ac_exeext
30881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30882   (eval $ac_link) 2>conftest.er1
30883   ac_status=$?
30884   grep -v '^ *+' conftest.er1 >conftest.err
30885   rm -f conftest.er1
30886   cat conftest.err >&5
30887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888   (exit $ac_status); } &&
30889          { ac_try='test -z "$ac_c_werror_flag"
30890                          || test ! -s conftest.err'
30891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892   (eval $ac_try) 2>&5
30893   ac_status=$?
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); }; } &&
30896          { ac_try='test -s conftest$ac_exeext'
30897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30898   (eval $ac_try) 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); }; }; then
30902   ol_cv_db_db_4_dot_3=yes
30903 else
30904   echo "$as_me: failed program was:" >&5
30905 sed 's/^/| /' conftest.$ac_ext >&5
30906
30907 ol_cv_db_db_4_dot_3=no
30908 fi
30909 rm -f conftest.err conftest.$ac_objext \
30910       conftest$ac_exeext conftest.$ac_ext
30911
30912         LIBS="$ol_LIBS"
30913
30914 fi
30915 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30916 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30917
30918         if test $ol_cv_db_db_4_dot_3 = yes ; then
30919                 ol_cv_lib_db=-ldb-4.3
30920         fi
30921 fi
30922
30923 if test $ol_cv_lib_db = no ; then
30924         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30925 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30926 if test "${ol_cv_db_db_4_3+set}" = set; then
30927   echo $ECHO_N "(cached) $ECHO_C" >&6
30928 else
30929
30930         ol_DB_LIB=-ldb-4-3
30931         ol_LIBS=$LIBS
30932         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30933
30934         cat >conftest.$ac_ext <<_ACEOF
30935 /* confdefs.h.  */
30936 _ACEOF
30937 cat confdefs.h >>conftest.$ac_ext
30938 cat >>conftest.$ac_ext <<_ACEOF
30939 /* end confdefs.h.  */
30940
30941 #ifdef HAVE_DB_185_H
30942 # include <db_185.h>
30943 #else
30944 # include <db.h>
30945 #endif
30946
30947 #ifndef DB_VERSION_MAJOR
30948 # define DB_VERSION_MAJOR 1
30949 #endif
30950
30951 #ifndef NULL
30952 #define NULL ((void*)0)
30953 #endif
30954
30955 int
30956 main ()
30957 {
30958
30959 #if DB_VERSION_MAJOR > 1
30960         {
30961                 char *version;
30962                 int major, minor, patch;
30963
30964                 version = db_version( &major, &minor, &patch );
30965
30966                 if( major != DB_VERSION_MAJOR ||
30967                         minor < DB_VERSION_MINOR )
30968                 {
30969                         printf("Berkeley DB version mismatch\n"
30970                                 "\theader: %s\n\tlibrary: %s\n",
30971                                 DB_VERSION_STRING, version);
30972                         return 1;
30973                 }
30974         }
30975 #endif
30976
30977 #if DB_VERSION_MAJOR > 2
30978         db_env_create( NULL, 0 );
30979 #elif DB_VERSION_MAJOR > 1
30980         db_appexit( NULL );
30981 #else
30982         (void) dbopen( NULL, 0, 0, 0, NULL);
30983 #endif
30984
30985   ;
30986   return 0;
30987 }
30988 _ACEOF
30989 rm -f conftest.$ac_objext conftest$ac_exeext
30990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30991   (eval $ac_link) 2>conftest.er1
30992   ac_status=$?
30993   grep -v '^ *+' conftest.er1 >conftest.err
30994   rm -f conftest.er1
30995   cat conftest.err >&5
30996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997   (exit $ac_status); } &&
30998          { ac_try='test -z "$ac_c_werror_flag"
30999                          || test ! -s conftest.err'
31000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31001   (eval $ac_try) 2>&5
31002   ac_status=$?
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); }; } &&
31005          { ac_try='test -s conftest$ac_exeext'
31006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31007   (eval $ac_try) 2>&5
31008   ac_status=$?
31009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010   (exit $ac_status); }; }; then
31011   ol_cv_db_db_4_3=yes
31012 else
31013   echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31015
31016 ol_cv_db_db_4_3=no
31017 fi
31018 rm -f conftest.err conftest.$ac_objext \
31019       conftest$ac_exeext conftest.$ac_ext
31020
31021         LIBS="$ol_LIBS"
31022
31023 fi
31024 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
31025 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
31026
31027         if test $ol_cv_db_db_4_3 = yes ; then
31028                 ol_cv_lib_db=-ldb-4-3
31029         fi
31030 fi
31031
31032 if test $ol_cv_lib_db = no ; then
31033         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
31034 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
31035 if test "${ol_cv_db_db42+set}" = set; then
31036   echo $ECHO_N "(cached) $ECHO_C" >&6
31037 else
31038
31039         ol_DB_LIB=-ldb42
31040         ol_LIBS=$LIBS
31041         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31042
31043         cat >conftest.$ac_ext <<_ACEOF
31044 /* confdefs.h.  */
31045 _ACEOF
31046 cat confdefs.h >>conftest.$ac_ext
31047 cat >>conftest.$ac_ext <<_ACEOF
31048 /* end confdefs.h.  */
31049
31050 #ifdef HAVE_DB_185_H
31051 # include <db_185.h>
31052 #else
31053 # include <db.h>
31054 #endif
31055
31056 #ifndef DB_VERSION_MAJOR
31057 # define DB_VERSION_MAJOR 1
31058 #endif
31059
31060 #ifndef NULL
31061 #define NULL ((void*)0)
31062 #endif
31063
31064 int
31065 main ()
31066 {
31067
31068 #if DB_VERSION_MAJOR > 1
31069         {
31070                 char *version;
31071                 int major, minor, patch;
31072
31073                 version = db_version( &major, &minor, &patch );
31074
31075                 if( major != DB_VERSION_MAJOR ||
31076                         minor < DB_VERSION_MINOR )
31077                 {
31078                         printf("Berkeley DB version mismatch\n"
31079                                 "\theader: %s\n\tlibrary: %s\n",
31080                                 DB_VERSION_STRING, version);
31081                         return 1;
31082                 }
31083         }
31084 #endif
31085
31086 #if DB_VERSION_MAJOR > 2
31087         db_env_create( NULL, 0 );
31088 #elif DB_VERSION_MAJOR > 1
31089         db_appexit( NULL );
31090 #else
31091         (void) dbopen( NULL, 0, 0, 0, NULL);
31092 #endif
31093
31094   ;
31095   return 0;
31096 }
31097 _ACEOF
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31100   (eval $ac_link) 2>conftest.er1
31101   ac_status=$?
31102   grep -v '^ *+' conftest.er1 >conftest.err
31103   rm -f conftest.er1
31104   cat conftest.err >&5
31105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106   (exit $ac_status); } &&
31107          { ac_try='test -z "$ac_c_werror_flag"
31108                          || test ! -s conftest.err'
31109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110   (eval $ac_try) 2>&5
31111   ac_status=$?
31112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113   (exit $ac_status); }; } &&
31114          { ac_try='test -s conftest$ac_exeext'
31115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116   (eval $ac_try) 2>&5
31117   ac_status=$?
31118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119   (exit $ac_status); }; }; then
31120   ol_cv_db_db42=yes
31121 else
31122   echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31124
31125 ol_cv_db_db42=no
31126 fi
31127 rm -f conftest.err conftest.$ac_objext \
31128       conftest$ac_exeext conftest.$ac_ext
31129
31130         LIBS="$ol_LIBS"
31131
31132 fi
31133 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31134 echo "${ECHO_T}$ol_cv_db_db42" >&6
31135
31136         if test $ol_cv_db_db42 = yes ; then
31137                 ol_cv_lib_db=-ldb42
31138         fi
31139 fi
31140
31141 if test $ol_cv_lib_db = no ; then
31142         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31143 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31144 if test "${ol_cv_db_db_42+set}" = set; then
31145   echo $ECHO_N "(cached) $ECHO_C" >&6
31146 else
31147
31148         ol_DB_LIB=-ldb-42
31149         ol_LIBS=$LIBS
31150         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31151
31152         cat >conftest.$ac_ext <<_ACEOF
31153 /* confdefs.h.  */
31154 _ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h.  */
31158
31159 #ifdef HAVE_DB_185_H
31160 # include <db_185.h>
31161 #else
31162 # include <db.h>
31163 #endif
31164
31165 #ifndef DB_VERSION_MAJOR
31166 # define DB_VERSION_MAJOR 1
31167 #endif
31168
31169 #ifndef NULL
31170 #define NULL ((void*)0)
31171 #endif
31172
31173 int
31174 main ()
31175 {
31176
31177 #if DB_VERSION_MAJOR > 1
31178         {
31179                 char *version;
31180                 int major, minor, patch;
31181
31182                 version = db_version( &major, &minor, &patch );
31183
31184                 if( major != DB_VERSION_MAJOR ||
31185                         minor < DB_VERSION_MINOR )
31186                 {
31187                         printf("Berkeley DB version mismatch\n"
31188                                 "\theader: %s\n\tlibrary: %s\n",
31189                                 DB_VERSION_STRING, version);
31190                         return 1;
31191                 }
31192         }
31193 #endif
31194
31195 #if DB_VERSION_MAJOR > 2
31196         db_env_create( NULL, 0 );
31197 #elif DB_VERSION_MAJOR > 1
31198         db_appexit( NULL );
31199 #else
31200         (void) dbopen( NULL, 0, 0, 0, NULL);
31201 #endif
31202
31203   ;
31204   return 0;
31205 }
31206 _ACEOF
31207 rm -f conftest.$ac_objext conftest$ac_exeext
31208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31209   (eval $ac_link) 2>conftest.er1
31210   ac_status=$?
31211   grep -v '^ *+' conftest.er1 >conftest.err
31212   rm -f conftest.er1
31213   cat conftest.err >&5
31214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215   (exit $ac_status); } &&
31216          { ac_try='test -z "$ac_c_werror_flag"
31217                          || test ! -s conftest.err'
31218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219   (eval $ac_try) 2>&5
31220   ac_status=$?
31221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222   (exit $ac_status); }; } &&
31223          { ac_try='test -s conftest$ac_exeext'
31224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225   (eval $ac_try) 2>&5
31226   ac_status=$?
31227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228   (exit $ac_status); }; }; then
31229   ol_cv_db_db_42=yes
31230 else
31231   echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31233
31234 ol_cv_db_db_42=no
31235 fi
31236 rm -f conftest.err conftest.$ac_objext \
31237       conftest$ac_exeext conftest.$ac_ext
31238
31239         LIBS="$ol_LIBS"
31240
31241 fi
31242 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31243 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31244
31245         if test $ol_cv_db_db_42 = yes ; then
31246                 ol_cv_lib_db=-ldb-42
31247         fi
31248 fi
31249
31250 if test $ol_cv_lib_db = no ; then
31251         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31252 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31253 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31254   echo $ECHO_N "(cached) $ECHO_C" >&6
31255 else
31256
31257         ol_DB_LIB=-ldb-4.2
31258         ol_LIBS=$LIBS
31259         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31260
31261         cat >conftest.$ac_ext <<_ACEOF
31262 /* confdefs.h.  */
31263 _ACEOF
31264 cat confdefs.h >>conftest.$ac_ext
31265 cat >>conftest.$ac_ext <<_ACEOF
31266 /* end confdefs.h.  */
31267
31268 #ifdef HAVE_DB_185_H
31269 # include <db_185.h>
31270 #else
31271 # include <db.h>
31272 #endif
31273
31274 #ifndef DB_VERSION_MAJOR
31275 # define DB_VERSION_MAJOR 1
31276 #endif
31277
31278 #ifndef NULL
31279 #define NULL ((void*)0)
31280 #endif
31281
31282 int
31283 main ()
31284 {
31285
31286 #if DB_VERSION_MAJOR > 1
31287         {
31288                 char *version;
31289                 int major, minor, patch;
31290
31291                 version = db_version( &major, &minor, &patch );
31292
31293                 if( major != DB_VERSION_MAJOR ||
31294                         minor < DB_VERSION_MINOR )
31295                 {
31296                         printf("Berkeley DB version mismatch\n"
31297                                 "\theader: %s\n\tlibrary: %s\n",
31298                                 DB_VERSION_STRING, version);
31299                         return 1;
31300                 }
31301         }
31302 #endif
31303
31304 #if DB_VERSION_MAJOR > 2
31305         db_env_create( NULL, 0 );
31306 #elif DB_VERSION_MAJOR > 1
31307         db_appexit( NULL );
31308 #else
31309         (void) dbopen( NULL, 0, 0, 0, NULL);
31310 #endif
31311
31312   ;
31313   return 0;
31314 }
31315 _ACEOF
31316 rm -f conftest.$ac_objext conftest$ac_exeext
31317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31318   (eval $ac_link) 2>conftest.er1
31319   ac_status=$?
31320   grep -v '^ *+' conftest.er1 >conftest.err
31321   rm -f conftest.er1
31322   cat conftest.err >&5
31323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324   (exit $ac_status); } &&
31325          { ac_try='test -z "$ac_c_werror_flag"
31326                          || test ! -s conftest.err'
31327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328   (eval $ac_try) 2>&5
31329   ac_status=$?
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); }; } &&
31332          { ac_try='test -s conftest$ac_exeext'
31333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31334   (eval $ac_try) 2>&5
31335   ac_status=$?
31336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31337   (exit $ac_status); }; }; then
31338   ol_cv_db_db_4_dot_2=yes
31339 else
31340   echo "$as_me: failed program was:" >&5
31341 sed 's/^/| /' conftest.$ac_ext >&5
31342
31343 ol_cv_db_db_4_dot_2=no
31344 fi
31345 rm -f conftest.err conftest.$ac_objext \
31346       conftest$ac_exeext conftest.$ac_ext
31347
31348         LIBS="$ol_LIBS"
31349
31350 fi
31351 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31352 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31353
31354         if test $ol_cv_db_db_4_dot_2 = yes ; then
31355                 ol_cv_lib_db=-ldb-4.2
31356         fi
31357 fi
31358
31359 if test $ol_cv_lib_db = no ; then
31360         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31361 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31362 if test "${ol_cv_db_db_4_2+set}" = set; then
31363   echo $ECHO_N "(cached) $ECHO_C" >&6
31364 else
31365
31366         ol_DB_LIB=-ldb-4-2
31367         ol_LIBS=$LIBS
31368         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31369
31370         cat >conftest.$ac_ext <<_ACEOF
31371 /* confdefs.h.  */
31372 _ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h.  */
31376
31377 #ifdef HAVE_DB_185_H
31378 # include <db_185.h>
31379 #else
31380 # include <db.h>
31381 #endif
31382
31383 #ifndef DB_VERSION_MAJOR
31384 # define DB_VERSION_MAJOR 1
31385 #endif
31386
31387 #ifndef NULL
31388 #define NULL ((void*)0)
31389 #endif
31390
31391 int
31392 main ()
31393 {
31394
31395 #if DB_VERSION_MAJOR > 1
31396         {
31397                 char *version;
31398                 int major, minor, patch;
31399
31400                 version = db_version( &major, &minor, &patch );
31401
31402                 if( major != DB_VERSION_MAJOR ||
31403                         minor < DB_VERSION_MINOR )
31404                 {
31405                         printf("Berkeley DB version mismatch\n"
31406                                 "\theader: %s\n\tlibrary: %s\n",
31407                                 DB_VERSION_STRING, version);
31408                         return 1;
31409                 }
31410         }
31411 #endif
31412
31413 #if DB_VERSION_MAJOR > 2
31414         db_env_create( NULL, 0 );
31415 #elif DB_VERSION_MAJOR > 1
31416         db_appexit( NULL );
31417 #else
31418         (void) dbopen( NULL, 0, 0, 0, NULL);
31419 #endif
31420
31421   ;
31422   return 0;
31423 }
31424 _ACEOF
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31427   (eval $ac_link) 2>conftest.er1
31428   ac_status=$?
31429   grep -v '^ *+' conftest.er1 >conftest.err
31430   rm -f conftest.er1
31431   cat conftest.err >&5
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); } &&
31434          { ac_try='test -z "$ac_c_werror_flag"
31435                          || test ! -s conftest.err'
31436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437   (eval $ac_try) 2>&5
31438   ac_status=$?
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); }; } &&
31441          { ac_try='test -s conftest$ac_exeext'
31442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31443   (eval $ac_try) 2>&5
31444   ac_status=$?
31445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); }; }; then
31447   ol_cv_db_db_4_2=yes
31448 else
31449   echo "$as_me: failed program was:" >&5
31450 sed 's/^/| /' conftest.$ac_ext >&5
31451
31452 ol_cv_db_db_4_2=no
31453 fi
31454 rm -f conftest.err conftest.$ac_objext \
31455       conftest$ac_exeext conftest.$ac_ext
31456
31457         LIBS="$ol_LIBS"
31458
31459 fi
31460 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31461 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31462
31463         if test $ol_cv_db_db_4_2 = yes ; then
31464                 ol_cv_lib_db=-ldb-4-2
31465         fi
31466 fi
31467
31468 if test $ol_cv_lib_db = no ; then
31469         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31470 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31471 if test "${ol_cv_db_db_4+set}" = set; then
31472   echo $ECHO_N "(cached) $ECHO_C" >&6
31473 else
31474
31475         ol_DB_LIB=-ldb-4
31476         ol_LIBS=$LIBS
31477         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31478
31479         cat >conftest.$ac_ext <<_ACEOF
31480 /* confdefs.h.  */
31481 _ACEOF
31482 cat confdefs.h >>conftest.$ac_ext
31483 cat >>conftest.$ac_ext <<_ACEOF
31484 /* end confdefs.h.  */
31485
31486 #ifdef HAVE_DB_185_H
31487 # include <db_185.h>
31488 #else
31489 # include <db.h>
31490 #endif
31491
31492 #ifndef DB_VERSION_MAJOR
31493 # define DB_VERSION_MAJOR 1
31494 #endif
31495
31496 #ifndef NULL
31497 #define NULL ((void*)0)
31498 #endif
31499
31500 int
31501 main ()
31502 {
31503
31504 #if DB_VERSION_MAJOR > 1
31505         {
31506                 char *version;
31507                 int major, minor, patch;
31508
31509                 version = db_version( &major, &minor, &patch );
31510
31511                 if( major != DB_VERSION_MAJOR ||
31512                         minor < DB_VERSION_MINOR )
31513                 {
31514                         printf("Berkeley DB version mismatch\n"
31515                                 "\theader: %s\n\tlibrary: %s\n",
31516                                 DB_VERSION_STRING, version);
31517                         return 1;
31518                 }
31519         }
31520 #endif
31521
31522 #if DB_VERSION_MAJOR > 2
31523         db_env_create( NULL, 0 );
31524 #elif DB_VERSION_MAJOR > 1
31525         db_appexit( NULL );
31526 #else
31527         (void) dbopen( NULL, 0, 0, 0, NULL);
31528 #endif
31529
31530   ;
31531   return 0;
31532 }
31533 _ACEOF
31534 rm -f conftest.$ac_objext conftest$ac_exeext
31535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31536   (eval $ac_link) 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } &&
31543          { ac_try='test -z "$ac_c_werror_flag"
31544                          || test ! -s conftest.err'
31545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546   (eval $ac_try) 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; } &&
31550          { ac_try='test -s conftest$ac_exeext'
31551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552   (eval $ac_try) 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; }; then
31556   ol_cv_db_db_4=yes
31557 else
31558   echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560
31561 ol_cv_db_db_4=no
31562 fi
31563 rm -f conftest.err conftest.$ac_objext \
31564       conftest$ac_exeext conftest.$ac_ext
31565
31566         LIBS="$ol_LIBS"
31567
31568 fi
31569 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31570 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31571
31572         if test $ol_cv_db_db_4 = yes ; then
31573                 ol_cv_lib_db=-ldb-4
31574         fi
31575 fi
31576
31577 if test $ol_cv_lib_db = no ; then
31578         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31579 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31580 if test "${ol_cv_db_db4+set}" = set; then
31581   echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31583
31584         ol_DB_LIB=-ldb4
31585         ol_LIBS=$LIBS
31586         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31587
31588         cat >conftest.$ac_ext <<_ACEOF
31589 /* confdefs.h.  */
31590 _ACEOF
31591 cat confdefs.h >>conftest.$ac_ext
31592 cat >>conftest.$ac_ext <<_ACEOF
31593 /* end confdefs.h.  */
31594
31595 #ifdef HAVE_DB_185_H
31596 # include <db_185.h>
31597 #else
31598 # include <db.h>
31599 #endif
31600
31601 #ifndef DB_VERSION_MAJOR
31602 # define DB_VERSION_MAJOR 1
31603 #endif
31604
31605 #ifndef NULL
31606 #define NULL ((void*)0)
31607 #endif
31608
31609 int
31610 main ()
31611 {
31612
31613 #if DB_VERSION_MAJOR > 1
31614         {
31615                 char *version;
31616                 int major, minor, patch;
31617
31618                 version = db_version( &major, &minor, &patch );
31619
31620                 if( major != DB_VERSION_MAJOR ||
31621                         minor < DB_VERSION_MINOR )
31622                 {
31623                         printf("Berkeley DB version mismatch\n"
31624                                 "\theader: %s\n\tlibrary: %s\n",
31625                                 DB_VERSION_STRING, version);
31626                         return 1;
31627                 }
31628         }
31629 #endif
31630
31631 #if DB_VERSION_MAJOR > 2
31632         db_env_create( NULL, 0 );
31633 #elif DB_VERSION_MAJOR > 1
31634         db_appexit( NULL );
31635 #else
31636         (void) dbopen( NULL, 0, 0, 0, NULL);
31637 #endif
31638
31639   ;
31640   return 0;
31641 }
31642 _ACEOF
31643 rm -f conftest.$ac_objext conftest$ac_exeext
31644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31645   (eval $ac_link) 2>conftest.er1
31646   ac_status=$?
31647   grep -v '^ *+' conftest.er1 >conftest.err
31648   rm -f conftest.er1
31649   cat conftest.err >&5
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); } &&
31652          { ac_try='test -z "$ac_c_werror_flag"
31653                          || test ! -s conftest.err'
31654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655   (eval $ac_try) 2>&5
31656   ac_status=$?
31657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658   (exit $ac_status); }; } &&
31659          { ac_try='test -s conftest$ac_exeext'
31660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661   (eval $ac_try) 2>&5
31662   ac_status=$?
31663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664   (exit $ac_status); }; }; then
31665   ol_cv_db_db4=yes
31666 else
31667   echo "$as_me: failed program was:" >&5
31668 sed 's/^/| /' conftest.$ac_ext >&5
31669
31670 ol_cv_db_db4=no
31671 fi
31672 rm -f conftest.err conftest.$ac_objext \
31673       conftest$ac_exeext conftest.$ac_ext
31674
31675         LIBS="$ol_LIBS"
31676
31677 fi
31678 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31679 echo "${ECHO_T}$ol_cv_db_db4" >&6
31680
31681         if test $ol_cv_db_db4 = yes ; then
31682                 ol_cv_lib_db=-ldb4
31683         fi
31684 fi
31685
31686 if test $ol_cv_lib_db = no ; then
31687         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31688 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31689 if test "${ol_cv_db_db+set}" = set; then
31690   echo $ECHO_N "(cached) $ECHO_C" >&6
31691 else
31692
31693         ol_DB_LIB=-ldb
31694         ol_LIBS=$LIBS
31695         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31696
31697         cat >conftest.$ac_ext <<_ACEOF
31698 /* confdefs.h.  */
31699 _ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h.  */
31703
31704 #ifdef HAVE_DB_185_H
31705 # include <db_185.h>
31706 #else
31707 # include <db.h>
31708 #endif
31709
31710 #ifndef DB_VERSION_MAJOR
31711 # define DB_VERSION_MAJOR 1
31712 #endif
31713
31714 #ifndef NULL
31715 #define NULL ((void*)0)
31716 #endif
31717
31718 int
31719 main ()
31720 {
31721
31722 #if DB_VERSION_MAJOR > 1
31723         {
31724                 char *version;
31725                 int major, minor, patch;
31726
31727                 version = db_version( &major, &minor, &patch );
31728
31729                 if( major != DB_VERSION_MAJOR ||
31730                         minor < DB_VERSION_MINOR )
31731                 {
31732                         printf("Berkeley DB version mismatch\n"
31733                                 "\theader: %s\n\tlibrary: %s\n",
31734                                 DB_VERSION_STRING, version);
31735                         return 1;
31736                 }
31737         }
31738 #endif
31739
31740 #if DB_VERSION_MAJOR > 2
31741         db_env_create( NULL, 0 );
31742 #elif DB_VERSION_MAJOR > 1
31743         db_appexit( NULL );
31744 #else
31745         (void) dbopen( NULL, 0, 0, 0, NULL);
31746 #endif
31747
31748   ;
31749   return 0;
31750 }
31751 _ACEOF
31752 rm -f conftest.$ac_objext conftest$ac_exeext
31753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31754   (eval $ac_link) 2>conftest.er1
31755   ac_status=$?
31756   grep -v '^ *+' conftest.er1 >conftest.err
31757   rm -f conftest.er1
31758   cat conftest.err >&5
31759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760   (exit $ac_status); } &&
31761          { ac_try='test -z "$ac_c_werror_flag"
31762                          || test ! -s conftest.err'
31763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31764   (eval $ac_try) 2>&5
31765   ac_status=$?
31766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767   (exit $ac_status); }; } &&
31768          { ac_try='test -s conftest$ac_exeext'
31769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31770   (eval $ac_try) 2>&5
31771   ac_status=$?
31772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773   (exit $ac_status); }; }; then
31774   ol_cv_db_db=yes
31775 else
31776   echo "$as_me: failed program was:" >&5
31777 sed 's/^/| /' conftest.$ac_ext >&5
31778
31779 ol_cv_db_db=no
31780 fi
31781 rm -f conftest.err conftest.$ac_objext \
31782       conftest$ac_exeext conftest.$ac_ext
31783
31784         LIBS="$ol_LIBS"
31785
31786 fi
31787 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31788 echo "${ECHO_T}$ol_cv_db_db" >&6
31789
31790         if test $ol_cv_db_db = yes ; then
31791                 ol_cv_lib_db=-ldb
31792         fi
31793 fi
31794
31795 if test $ol_cv_lib_db = no ; then
31796         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31797 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31798 if test "${ol_cv_db_db41+set}" = set; then
31799   echo $ECHO_N "(cached) $ECHO_C" >&6
31800 else
31801
31802         ol_DB_LIB=-ldb41
31803         ol_LIBS=$LIBS
31804         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31805
31806         cat >conftest.$ac_ext <<_ACEOF
31807 /* confdefs.h.  */
31808 _ACEOF
31809 cat confdefs.h >>conftest.$ac_ext
31810 cat >>conftest.$ac_ext <<_ACEOF
31811 /* end confdefs.h.  */
31812
31813 #ifdef HAVE_DB_185_H
31814 # include <db_185.h>
31815 #else
31816 # include <db.h>
31817 #endif
31818
31819 #ifndef DB_VERSION_MAJOR
31820 # define DB_VERSION_MAJOR 1
31821 #endif
31822
31823 #ifndef NULL
31824 #define NULL ((void*)0)
31825 #endif
31826
31827 int
31828 main ()
31829 {
31830
31831 #if DB_VERSION_MAJOR > 1
31832         {
31833                 char *version;
31834                 int major, minor, patch;
31835
31836                 version = db_version( &major, &minor, &patch );
31837
31838                 if( major != DB_VERSION_MAJOR ||
31839                         minor < DB_VERSION_MINOR )
31840                 {
31841                         printf("Berkeley DB version mismatch\n"
31842                                 "\theader: %s\n\tlibrary: %s\n",
31843                                 DB_VERSION_STRING, version);
31844                         return 1;
31845                 }
31846         }
31847 #endif
31848
31849 #if DB_VERSION_MAJOR > 2
31850         db_env_create( NULL, 0 );
31851 #elif DB_VERSION_MAJOR > 1
31852         db_appexit( NULL );
31853 #else
31854         (void) dbopen( NULL, 0, 0, 0, NULL);
31855 #endif
31856
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31863   (eval $ac_link) 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } &&
31870          { ac_try='test -z "$ac_c_werror_flag"
31871                          || test ! -s conftest.err'
31872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873   (eval $ac_try) 2>&5
31874   ac_status=$?
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); }; } &&
31877          { ac_try='test -s conftest$ac_exeext'
31878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879   (eval $ac_try) 2>&5
31880   ac_status=$?
31881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882   (exit $ac_status); }; }; then
31883   ol_cv_db_db41=yes
31884 else
31885   echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31887
31888 ol_cv_db_db41=no
31889 fi
31890 rm -f conftest.err conftest.$ac_objext \
31891       conftest$ac_exeext conftest.$ac_ext
31892
31893         LIBS="$ol_LIBS"
31894
31895 fi
31896 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31897 echo "${ECHO_T}$ol_cv_db_db41" >&6
31898
31899         if test $ol_cv_db_db41 = yes ; then
31900                 ol_cv_lib_db=-ldb41
31901         fi
31902 fi
31903
31904 if test $ol_cv_lib_db = no ; then
31905         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31906 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31907 if test "${ol_cv_db_db_41+set}" = set; then
31908   echo $ECHO_N "(cached) $ECHO_C" >&6
31909 else
31910
31911         ol_DB_LIB=-ldb-41
31912         ol_LIBS=$LIBS
31913         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31914
31915         cat >conftest.$ac_ext <<_ACEOF
31916 /* confdefs.h.  */
31917 _ACEOF
31918 cat confdefs.h >>conftest.$ac_ext
31919 cat >>conftest.$ac_ext <<_ACEOF
31920 /* end confdefs.h.  */
31921
31922 #ifdef HAVE_DB_185_H
31923 # include <db_185.h>
31924 #else
31925 # include <db.h>
31926 #endif
31927
31928 #ifndef DB_VERSION_MAJOR
31929 # define DB_VERSION_MAJOR 1
31930 #endif
31931
31932 #ifndef NULL
31933 #define NULL ((void*)0)
31934 #endif
31935
31936 int
31937 main ()
31938 {
31939
31940 #if DB_VERSION_MAJOR > 1
31941         {
31942                 char *version;
31943                 int major, minor, patch;
31944
31945                 version = db_version( &major, &minor, &patch );
31946
31947                 if( major != DB_VERSION_MAJOR ||
31948                         minor < DB_VERSION_MINOR )
31949                 {
31950                         printf("Berkeley DB version mismatch\n"
31951                                 "\theader: %s\n\tlibrary: %s\n",
31952                                 DB_VERSION_STRING, version);
31953                         return 1;
31954                 }
31955         }
31956 #endif
31957
31958 #if DB_VERSION_MAJOR > 2
31959         db_env_create( NULL, 0 );
31960 #elif DB_VERSION_MAJOR > 1
31961         db_appexit( NULL );
31962 #else
31963         (void) dbopen( NULL, 0, 0, 0, NULL);
31964 #endif
31965
31966   ;
31967   return 0;
31968 }
31969 _ACEOF
31970 rm -f conftest.$ac_objext conftest$ac_exeext
31971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31972   (eval $ac_link) 2>conftest.er1
31973   ac_status=$?
31974   grep -v '^ *+' conftest.er1 >conftest.err
31975   rm -f conftest.er1
31976   cat conftest.err >&5
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); } &&
31979          { ac_try='test -z "$ac_c_werror_flag"
31980                          || test ! -s conftest.err'
31981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982   (eval $ac_try) 2>&5
31983   ac_status=$?
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); }; } &&
31986          { ac_try='test -s conftest$ac_exeext'
31987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988   (eval $ac_try) 2>&5
31989   ac_status=$?
31990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991   (exit $ac_status); }; }; then
31992   ol_cv_db_db_41=yes
31993 else
31994   echo "$as_me: failed program was:" >&5
31995 sed 's/^/| /' conftest.$ac_ext >&5
31996
31997 ol_cv_db_db_41=no
31998 fi
31999 rm -f conftest.err conftest.$ac_objext \
32000       conftest$ac_exeext conftest.$ac_ext
32001
32002         LIBS="$ol_LIBS"
32003
32004 fi
32005 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
32006 echo "${ECHO_T}$ol_cv_db_db_41" >&6
32007
32008         if test $ol_cv_db_db_41 = yes ; then
32009                 ol_cv_lib_db=-ldb-41
32010         fi
32011 fi
32012
32013 if test $ol_cv_lib_db = no ; then
32014         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
32015 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
32016 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
32017   echo $ECHO_N "(cached) $ECHO_C" >&6
32018 else
32019
32020         ol_DB_LIB=-ldb-4.1
32021         ol_LIBS=$LIBS
32022         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32023
32024         cat >conftest.$ac_ext <<_ACEOF
32025 /* confdefs.h.  */
32026 _ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h.  */
32030
32031 #ifdef HAVE_DB_185_H
32032 # include <db_185.h>
32033 #else
32034 # include <db.h>
32035 #endif
32036
32037 #ifndef DB_VERSION_MAJOR
32038 # define DB_VERSION_MAJOR 1
32039 #endif
32040
32041 #ifndef NULL
32042 #define NULL ((void*)0)
32043 #endif
32044
32045 int
32046 main ()
32047 {
32048
32049 #if DB_VERSION_MAJOR > 1
32050         {
32051                 char *version;
32052                 int major, minor, patch;
32053
32054                 version = db_version( &major, &minor, &patch );
32055
32056                 if( major != DB_VERSION_MAJOR ||
32057                         minor < DB_VERSION_MINOR )
32058                 {
32059                         printf("Berkeley DB version mismatch\n"
32060                                 "\theader: %s\n\tlibrary: %s\n",
32061                                 DB_VERSION_STRING, version);
32062                         return 1;
32063                 }
32064         }
32065 #endif
32066
32067 #if DB_VERSION_MAJOR > 2
32068         db_env_create( NULL, 0 );
32069 #elif DB_VERSION_MAJOR > 1
32070         db_appexit( NULL );
32071 #else
32072         (void) dbopen( NULL, 0, 0, 0, NULL);
32073 #endif
32074
32075   ;
32076   return 0;
32077 }
32078 _ACEOF
32079 rm -f conftest.$ac_objext conftest$ac_exeext
32080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32081   (eval $ac_link) 2>conftest.er1
32082   ac_status=$?
32083   grep -v '^ *+' conftest.er1 >conftest.err
32084   rm -f conftest.er1
32085   cat conftest.err >&5
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); } &&
32088          { ac_try='test -z "$ac_c_werror_flag"
32089                          || test ! -s conftest.err'
32090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32091   (eval $ac_try) 2>&5
32092   ac_status=$?
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); }; } &&
32095          { ac_try='test -s conftest$ac_exeext'
32096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097   (eval $ac_try) 2>&5
32098   ac_status=$?
32099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100   (exit $ac_status); }; }; then
32101   ol_cv_db_db_4_dot_1=yes
32102 else
32103   echo "$as_me: failed program was:" >&5
32104 sed 's/^/| /' conftest.$ac_ext >&5
32105
32106 ol_cv_db_db_4_dot_1=no
32107 fi
32108 rm -f conftest.err conftest.$ac_objext \
32109       conftest$ac_exeext conftest.$ac_ext
32110
32111         LIBS="$ol_LIBS"
32112
32113 fi
32114 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32115 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32116
32117         if test $ol_cv_db_db_4_dot_1 = yes ; then
32118                 ol_cv_lib_db=-ldb-4.1
32119         fi
32120 fi
32121
32122 if test $ol_cv_lib_db = no ; then
32123         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32124 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32125 if test "${ol_cv_db_db_4_1+set}" = set; then
32126   echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128
32129         ol_DB_LIB=-ldb-4-1
32130         ol_LIBS=$LIBS
32131         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32132
32133         cat >conftest.$ac_ext <<_ACEOF
32134 /* confdefs.h.  */
32135 _ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h.  */
32139
32140 #ifdef HAVE_DB_185_H
32141 # include <db_185.h>
32142 #else
32143 # include <db.h>
32144 #endif
32145
32146 #ifndef DB_VERSION_MAJOR
32147 # define DB_VERSION_MAJOR 1
32148 #endif
32149
32150 #ifndef NULL
32151 #define NULL ((void*)0)
32152 #endif
32153
32154 int
32155 main ()
32156 {
32157
32158 #if DB_VERSION_MAJOR > 1
32159         {
32160                 char *version;
32161                 int major, minor, patch;
32162
32163                 version = db_version( &major, &minor, &patch );
32164
32165                 if( major != DB_VERSION_MAJOR ||
32166                         minor < DB_VERSION_MINOR )
32167                 {
32168                         printf("Berkeley DB version mismatch\n"
32169                                 "\theader: %s\n\tlibrary: %s\n",
32170                                 DB_VERSION_STRING, version);
32171                         return 1;
32172                 }
32173         }
32174 #endif
32175
32176 #if DB_VERSION_MAJOR > 2
32177         db_env_create( NULL, 0 );
32178 #elif DB_VERSION_MAJOR > 1
32179         db_appexit( NULL );
32180 #else
32181         (void) dbopen( NULL, 0, 0, 0, NULL);
32182 #endif
32183
32184   ;
32185   return 0;
32186 }
32187 _ACEOF
32188 rm -f conftest.$ac_objext conftest$ac_exeext
32189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32190   (eval $ac_link) 2>conftest.er1
32191   ac_status=$?
32192   grep -v '^ *+' conftest.er1 >conftest.err
32193   rm -f conftest.er1
32194   cat conftest.err >&5
32195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32196   (exit $ac_status); } &&
32197          { ac_try='test -z "$ac_c_werror_flag"
32198                          || test ! -s conftest.err'
32199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32200   (eval $ac_try) 2>&5
32201   ac_status=$?
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); }; } &&
32204          { ac_try='test -s conftest$ac_exeext'
32205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206   (eval $ac_try) 2>&5
32207   ac_status=$?
32208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209   (exit $ac_status); }; }; then
32210   ol_cv_db_db_4_1=yes
32211 else
32212   echo "$as_me: failed program was:" >&5
32213 sed 's/^/| /' conftest.$ac_ext >&5
32214
32215 ol_cv_db_db_4_1=no
32216 fi
32217 rm -f conftest.err conftest.$ac_objext \
32218       conftest$ac_exeext conftest.$ac_ext
32219
32220         LIBS="$ol_LIBS"
32221
32222 fi
32223 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32224 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32225
32226         if test $ol_cv_db_db_4_1 = yes ; then
32227                 ol_cv_lib_db=-ldb-4-1
32228         fi
32229 fi
32230
32231 if test $ol_cv_lib_db = no ; then
32232         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32233 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32234 if test "${ol_cv_db_db3+set}" = set; then
32235   echo $ECHO_N "(cached) $ECHO_C" >&6
32236 else
32237
32238         ol_DB_LIB=-ldb3
32239         ol_LIBS=$LIBS
32240         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32241
32242         cat >conftest.$ac_ext <<_ACEOF
32243 /* confdefs.h.  */
32244 _ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h.  */
32248
32249 #ifdef HAVE_DB_185_H
32250 # include <db_185.h>
32251 #else
32252 # include <db.h>
32253 #endif
32254
32255 #ifndef DB_VERSION_MAJOR
32256 # define DB_VERSION_MAJOR 1
32257 #endif
32258
32259 #ifndef NULL
32260 #define NULL ((void*)0)
32261 #endif
32262
32263 int
32264 main ()
32265 {
32266
32267 #if DB_VERSION_MAJOR > 1
32268         {
32269                 char *version;
32270                 int major, minor, patch;
32271
32272                 version = db_version( &major, &minor, &patch );
32273
32274                 if( major != DB_VERSION_MAJOR ||
32275                         minor < DB_VERSION_MINOR )
32276                 {
32277                         printf("Berkeley DB version mismatch\n"
32278                                 "\theader: %s\n\tlibrary: %s\n",
32279                                 DB_VERSION_STRING, version);
32280                         return 1;
32281                 }
32282         }
32283 #endif
32284
32285 #if DB_VERSION_MAJOR > 2
32286         db_env_create( NULL, 0 );
32287 #elif DB_VERSION_MAJOR > 1
32288         db_appexit( NULL );
32289 #else
32290         (void) dbopen( NULL, 0, 0, 0, NULL);
32291 #endif
32292
32293   ;
32294   return 0;
32295 }
32296 _ACEOF
32297 rm -f conftest.$ac_objext conftest$ac_exeext
32298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32299   (eval $ac_link) 2>conftest.er1
32300   ac_status=$?
32301   grep -v '^ *+' conftest.er1 >conftest.err
32302   rm -f conftest.er1
32303   cat conftest.err >&5
32304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305   (exit $ac_status); } &&
32306          { ac_try='test -z "$ac_c_werror_flag"
32307                          || test ! -s conftest.err'
32308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309   (eval $ac_try) 2>&5
32310   ac_status=$?
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); }; } &&
32313          { ac_try='test -s conftest$ac_exeext'
32314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32315   (eval $ac_try) 2>&5
32316   ac_status=$?
32317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318   (exit $ac_status); }; }; then
32319   ol_cv_db_db3=yes
32320 else
32321   echo "$as_me: failed program was:" >&5
32322 sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 ol_cv_db_db3=no
32325 fi
32326 rm -f conftest.err conftest.$ac_objext \
32327       conftest$ac_exeext conftest.$ac_ext
32328
32329         LIBS="$ol_LIBS"
32330
32331 fi
32332 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32333 echo "${ECHO_T}$ol_cv_db_db3" >&6
32334
32335         if test $ol_cv_db_db3 = yes ; then
32336                 ol_cv_lib_db=-ldb3
32337         fi
32338 fi
32339
32340 if test $ol_cv_lib_db = no ; then
32341         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32342 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32343 if test "${ol_cv_db_db_3+set}" = set; then
32344   echo $ECHO_N "(cached) $ECHO_C" >&6
32345 else
32346
32347         ol_DB_LIB=-ldb-3
32348         ol_LIBS=$LIBS
32349         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32350
32351         cat >conftest.$ac_ext <<_ACEOF
32352 /* confdefs.h.  */
32353 _ACEOF
32354 cat confdefs.h >>conftest.$ac_ext
32355 cat >>conftest.$ac_ext <<_ACEOF
32356 /* end confdefs.h.  */
32357
32358 #ifdef HAVE_DB_185_H
32359 # include <db_185.h>
32360 #else
32361 # include <db.h>
32362 #endif
32363
32364 #ifndef DB_VERSION_MAJOR
32365 # define DB_VERSION_MAJOR 1
32366 #endif
32367
32368 #ifndef NULL
32369 #define NULL ((void*)0)
32370 #endif
32371
32372 int
32373 main ()
32374 {
32375
32376 #if DB_VERSION_MAJOR > 1
32377         {
32378                 char *version;
32379                 int major, minor, patch;
32380
32381                 version = db_version( &major, &minor, &patch );
32382
32383                 if( major != DB_VERSION_MAJOR ||
32384                         minor < DB_VERSION_MINOR )
32385                 {
32386                         printf("Berkeley DB version mismatch\n"
32387                                 "\theader: %s\n\tlibrary: %s\n",
32388                                 DB_VERSION_STRING, version);
32389                         return 1;
32390                 }
32391         }
32392 #endif
32393
32394 #if DB_VERSION_MAJOR > 2
32395         db_env_create( NULL, 0 );
32396 #elif DB_VERSION_MAJOR > 1
32397         db_appexit( NULL );
32398 #else
32399         (void) dbopen( NULL, 0, 0, 0, NULL);
32400 #endif
32401
32402   ;
32403   return 0;
32404 }
32405 _ACEOF
32406 rm -f conftest.$ac_objext conftest$ac_exeext
32407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32408   (eval $ac_link) 2>conftest.er1
32409   ac_status=$?
32410   grep -v '^ *+' conftest.er1 >conftest.err
32411   rm -f conftest.er1
32412   cat conftest.err >&5
32413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414   (exit $ac_status); } &&
32415          { ac_try='test -z "$ac_c_werror_flag"
32416                          || test ! -s conftest.err'
32417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418   (eval $ac_try) 2>&5
32419   ac_status=$?
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); }; } &&
32422          { ac_try='test -s conftest$ac_exeext'
32423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424   (eval $ac_try) 2>&5
32425   ac_status=$?
32426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427   (exit $ac_status); }; }; then
32428   ol_cv_db_db_3=yes
32429 else
32430   echo "$as_me: failed program was:" >&5
32431 sed 's/^/| /' conftest.$ac_ext >&5
32432
32433 ol_cv_db_db_3=no
32434 fi
32435 rm -f conftest.err conftest.$ac_objext \
32436       conftest$ac_exeext conftest.$ac_ext
32437
32438         LIBS="$ol_LIBS"
32439
32440 fi
32441 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32442 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32443
32444         if test $ol_cv_db_db_3 = yes ; then
32445                 ol_cv_lib_db=-ldb-3
32446         fi
32447 fi
32448
32449 if test $ol_cv_lib_db = no ; then
32450         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32451 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32452 if test "${ol_cv_db_db2+set}" = set; then
32453   echo $ECHO_N "(cached) $ECHO_C" >&6
32454 else
32455
32456         ol_DB_LIB=-ldb2
32457         ol_LIBS=$LIBS
32458         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32459
32460         cat >conftest.$ac_ext <<_ACEOF
32461 /* confdefs.h.  */
32462 _ACEOF
32463 cat confdefs.h >>conftest.$ac_ext
32464 cat >>conftest.$ac_ext <<_ACEOF
32465 /* end confdefs.h.  */
32466
32467 #ifdef HAVE_DB_185_H
32468 # include <db_185.h>
32469 #else
32470 # include <db.h>
32471 #endif
32472
32473 #ifndef DB_VERSION_MAJOR
32474 # define DB_VERSION_MAJOR 1
32475 #endif
32476
32477 #ifndef NULL
32478 #define NULL ((void*)0)
32479 #endif
32480
32481 int
32482 main ()
32483 {
32484
32485 #if DB_VERSION_MAJOR > 1
32486         {
32487                 char *version;
32488                 int major, minor, patch;
32489
32490                 version = db_version( &major, &minor, &patch );
32491
32492                 if( major != DB_VERSION_MAJOR ||
32493                         minor < DB_VERSION_MINOR )
32494                 {
32495                         printf("Berkeley DB version mismatch\n"
32496                                 "\theader: %s\n\tlibrary: %s\n",
32497                                 DB_VERSION_STRING, version);
32498                         return 1;
32499                 }
32500         }
32501 #endif
32502
32503 #if DB_VERSION_MAJOR > 2
32504         db_env_create( NULL, 0 );
32505 #elif DB_VERSION_MAJOR > 1
32506         db_appexit( NULL );
32507 #else
32508         (void) dbopen( NULL, 0, 0, 0, NULL);
32509 #endif
32510
32511   ;
32512   return 0;
32513 }
32514 _ACEOF
32515 rm -f conftest.$ac_objext conftest$ac_exeext
32516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32517   (eval $ac_link) 2>conftest.er1
32518   ac_status=$?
32519   grep -v '^ *+' conftest.er1 >conftest.err
32520   rm -f conftest.er1
32521   cat conftest.err >&5
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); } &&
32524          { ac_try='test -z "$ac_c_werror_flag"
32525                          || test ! -s conftest.err'
32526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527   (eval $ac_try) 2>&5
32528   ac_status=$?
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); }; } &&
32531          { ac_try='test -s conftest$ac_exeext'
32532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32533   (eval $ac_try) 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; }; then
32537   ol_cv_db_db2=yes
32538 else
32539   echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32541
32542 ol_cv_db_db2=no
32543 fi
32544 rm -f conftest.err conftest.$ac_objext \
32545       conftest$ac_exeext conftest.$ac_ext
32546
32547         LIBS="$ol_LIBS"
32548
32549 fi
32550 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32551 echo "${ECHO_T}$ol_cv_db_db2" >&6
32552
32553         if test $ol_cv_db_db2 = yes ; then
32554                 ol_cv_lib_db=-ldb2
32555         fi
32556 fi
32557
32558 if test $ol_cv_lib_db = no ; then
32559         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32560 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32561 if test "${ol_cv_db_db_2+set}" = set; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 else
32564
32565         ol_DB_LIB=-ldb-2
32566         ol_LIBS=$LIBS
32567         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32568
32569         cat >conftest.$ac_ext <<_ACEOF
32570 /* confdefs.h.  */
32571 _ACEOF
32572 cat confdefs.h >>conftest.$ac_ext
32573 cat >>conftest.$ac_ext <<_ACEOF
32574 /* end confdefs.h.  */
32575
32576 #ifdef HAVE_DB_185_H
32577 # include <db_185.h>
32578 #else
32579 # include <db.h>
32580 #endif
32581
32582 #ifndef DB_VERSION_MAJOR
32583 # define DB_VERSION_MAJOR 1
32584 #endif
32585
32586 #ifndef NULL
32587 #define NULL ((void*)0)
32588 #endif
32589
32590 int
32591 main ()
32592 {
32593
32594 #if DB_VERSION_MAJOR > 1
32595         {
32596                 char *version;
32597                 int major, minor, patch;
32598
32599                 version = db_version( &major, &minor, &patch );
32600
32601                 if( major != DB_VERSION_MAJOR ||
32602                         minor < DB_VERSION_MINOR )
32603                 {
32604                         printf("Berkeley DB version mismatch\n"
32605                                 "\theader: %s\n\tlibrary: %s\n",
32606                                 DB_VERSION_STRING, version);
32607                         return 1;
32608                 }
32609         }
32610 #endif
32611
32612 #if DB_VERSION_MAJOR > 2
32613         db_env_create( NULL, 0 );
32614 #elif DB_VERSION_MAJOR > 1
32615         db_appexit( NULL );
32616 #else
32617         (void) dbopen( NULL, 0, 0, 0, NULL);
32618 #endif
32619
32620   ;
32621   return 0;
32622 }
32623 _ACEOF
32624 rm -f conftest.$ac_objext conftest$ac_exeext
32625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32626   (eval $ac_link) 2>conftest.er1
32627   ac_status=$?
32628   grep -v '^ *+' conftest.er1 >conftest.err
32629   rm -f conftest.er1
32630   cat conftest.err >&5
32631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632   (exit $ac_status); } &&
32633          { ac_try='test -z "$ac_c_werror_flag"
32634                          || test ! -s conftest.err'
32635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636   (eval $ac_try) 2>&5
32637   ac_status=$?
32638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639   (exit $ac_status); }; } &&
32640          { ac_try='test -s conftest$ac_exeext'
32641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642   (eval $ac_try) 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; }; then
32646   ol_cv_db_db_2=yes
32647 else
32648   echo "$as_me: failed program was:" >&5
32649 sed 's/^/| /' conftest.$ac_ext >&5
32650
32651 ol_cv_db_db_2=no
32652 fi
32653 rm -f conftest.err conftest.$ac_objext \
32654       conftest$ac_exeext conftest.$ac_ext
32655
32656         LIBS="$ol_LIBS"
32657
32658 fi
32659 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32660 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32661
32662         if test $ol_cv_db_db_2 = yes ; then
32663                 ol_cv_lib_db=-ldb-2
32664         fi
32665 fi
32666
32667 if test $ol_cv_lib_db = no ; then
32668         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32669 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32670 if test "${ol_cv_db_db1+set}" = set; then
32671   echo $ECHO_N "(cached) $ECHO_C" >&6
32672 else
32673
32674         ol_DB_LIB=-ldb1
32675         ol_LIBS=$LIBS
32676         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32677
32678         cat >conftest.$ac_ext <<_ACEOF
32679 /* confdefs.h.  */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h.  */
32684
32685 #ifdef HAVE_DB_185_H
32686 # include <db_185.h>
32687 #else
32688 # include <db.h>
32689 #endif
32690
32691 #ifndef DB_VERSION_MAJOR
32692 # define DB_VERSION_MAJOR 1
32693 #endif
32694
32695 #ifndef NULL
32696 #define NULL ((void*)0)
32697 #endif
32698
32699 int
32700 main ()
32701 {
32702
32703 #if DB_VERSION_MAJOR > 1
32704         {
32705                 char *version;
32706                 int major, minor, patch;
32707
32708                 version = db_version( &major, &minor, &patch );
32709
32710                 if( major != DB_VERSION_MAJOR ||
32711                         minor < DB_VERSION_MINOR )
32712                 {
32713                         printf("Berkeley DB version mismatch\n"
32714                                 "\theader: %s\n\tlibrary: %s\n",
32715                                 DB_VERSION_STRING, version);
32716                         return 1;
32717                 }
32718         }
32719 #endif
32720
32721 #if DB_VERSION_MAJOR > 2
32722         db_env_create( NULL, 0 );
32723 #elif DB_VERSION_MAJOR > 1
32724         db_appexit( NULL );
32725 #else
32726         (void) dbopen( NULL, 0, 0, 0, NULL);
32727 #endif
32728
32729   ;
32730   return 0;
32731 }
32732 _ACEOF
32733 rm -f conftest.$ac_objext conftest$ac_exeext
32734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32735   (eval $ac_link) 2>conftest.er1
32736   ac_status=$?
32737   grep -v '^ *+' conftest.er1 >conftest.err
32738   rm -f conftest.er1
32739   cat conftest.err >&5
32740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741   (exit $ac_status); } &&
32742          { ac_try='test -z "$ac_c_werror_flag"
32743                          || test ! -s conftest.err'
32744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32745   (eval $ac_try) 2>&5
32746   ac_status=$?
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); }; } &&
32749          { ac_try='test -s conftest$ac_exeext'
32750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751   (eval $ac_try) 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; }; then
32755   ol_cv_db_db1=yes
32756 else
32757   echo "$as_me: failed program was:" >&5
32758 sed 's/^/| /' conftest.$ac_ext >&5
32759
32760 ol_cv_db_db1=no
32761 fi
32762 rm -f conftest.err conftest.$ac_objext \
32763       conftest$ac_exeext conftest.$ac_ext
32764
32765         LIBS="$ol_LIBS"
32766
32767 fi
32768 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32769 echo "${ECHO_T}$ol_cv_db_db1" >&6
32770
32771         if test $ol_cv_db_db1 = yes ; then
32772                 ol_cv_lib_db=-ldb1
32773         fi
32774 fi
32775
32776 if test $ol_cv_lib_db = no ; then
32777         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32778 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32779 if test "${ol_cv_db_db_1+set}" = set; then
32780   echo $ECHO_N "(cached) $ECHO_C" >&6
32781 else
32782
32783         ol_DB_LIB=-ldb-1
32784         ol_LIBS=$LIBS
32785         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32786
32787         cat >conftest.$ac_ext <<_ACEOF
32788 /* confdefs.h.  */
32789 _ACEOF
32790 cat confdefs.h >>conftest.$ac_ext
32791 cat >>conftest.$ac_ext <<_ACEOF
32792 /* end confdefs.h.  */
32793
32794 #ifdef HAVE_DB_185_H
32795 # include <db_185.h>
32796 #else
32797 # include <db.h>
32798 #endif
32799
32800 #ifndef DB_VERSION_MAJOR
32801 # define DB_VERSION_MAJOR 1
32802 #endif
32803
32804 #ifndef NULL
32805 #define NULL ((void*)0)
32806 #endif
32807
32808 int
32809 main ()
32810 {
32811
32812 #if DB_VERSION_MAJOR > 1
32813         {
32814                 char *version;
32815                 int major, minor, patch;
32816
32817                 version = db_version( &major, &minor, &patch );
32818
32819                 if( major != DB_VERSION_MAJOR ||
32820                         minor < DB_VERSION_MINOR )
32821                 {
32822                         printf("Berkeley DB version mismatch\n"
32823                                 "\theader: %s\n\tlibrary: %s\n",
32824                                 DB_VERSION_STRING, version);
32825                         return 1;
32826                 }
32827         }
32828 #endif
32829
32830 #if DB_VERSION_MAJOR > 2
32831         db_env_create( NULL, 0 );
32832 #elif DB_VERSION_MAJOR > 1
32833         db_appexit( NULL );
32834 #else
32835         (void) dbopen( NULL, 0, 0, 0, NULL);
32836 #endif
32837
32838   ;
32839   return 0;
32840 }
32841 _ACEOF
32842 rm -f conftest.$ac_objext conftest$ac_exeext
32843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32844   (eval $ac_link) 2>conftest.er1
32845   ac_status=$?
32846   grep -v '^ *+' conftest.er1 >conftest.err
32847   rm -f conftest.er1
32848   cat conftest.err >&5
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); } &&
32851          { ac_try='test -z "$ac_c_werror_flag"
32852                          || test ! -s conftest.err'
32853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32854   (eval $ac_try) 2>&5
32855   ac_status=$?
32856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857   (exit $ac_status); }; } &&
32858          { ac_try='test -s conftest$ac_exeext'
32859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860   (eval $ac_try) 2>&5
32861   ac_status=$?
32862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863   (exit $ac_status); }; }; then
32864   ol_cv_db_db_1=yes
32865 else
32866   echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32868
32869 ol_cv_db_db_1=no
32870 fi
32871 rm -f conftest.err conftest.$ac_objext \
32872       conftest$ac_exeext conftest.$ac_ext
32873
32874         LIBS="$ol_LIBS"
32875
32876 fi
32877 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32878 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32879
32880         if test $ol_cv_db_db_1 = yes ; then
32881                 ol_cv_lib_db=-ldb-1
32882         fi
32883 fi
32884
32885
32886         if test "$ol_cv_lib_db" != no ; then
32887                 ol_cv_berkeley_db=yes
32888                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32889 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32890 if test "${ol_cv_berkeley_db_version+set}" = set; then
32891   echo $ECHO_N "(cached) $ECHO_C" >&6
32892 else
32893
32894         ol_LIBS="$LIBS"
32895         LIBS="$LTHREAD_LIBS $LIBS"
32896         if test $ol_cv_lib_db != yes ; then
32897                 LIBS="$ol_cv_lib_db $LIBS"
32898         fi
32899
32900         if test "$cross_compiling" = yes; then
32901   ol_cv_berkeley_db_version=cross
32902 else
32903   cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909
32910 #ifdef HAVE_DB_185_H
32911         choke me;
32912 #else
32913 #include <db.h>
32914 #endif
32915 #ifndef DB_VERSION_MAJOR
32916 # define DB_VERSION_MAJOR 1
32917 #endif
32918 #ifndef NULL
32919 #define NULL ((void *)0)
32920 #endif
32921 main()
32922 {
32923 #if DB_VERSION_MAJOR > 1
32924         char *version;
32925         int major, minor, patch;
32926
32927         version = db_version( &major, &minor, &patch );
32928
32929         if( major != DB_VERSION_MAJOR ||
32930                 minor != DB_VERSION_MINOR ||
32931                 patch != DB_VERSION_PATCH )
32932         {
32933                 printf("Berkeley DB version mismatch\n"
32934                         "\theader: %s\n\tlibrary: %s\n",
32935                         DB_VERSION_STRING, version);
32936                 return 1;
32937         }
32938 #endif
32939
32940         return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945   (eval $ac_link) 2>&5
32946   ac_status=$?
32947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950   (eval $ac_try) 2>&5
32951   ac_status=$?
32952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); }; }; then
32954   ol_cv_berkeley_db_version=yes
32955 else
32956   echo "$as_me: program exited with status $ac_status" >&5
32957 echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960 ( exit $ac_status )
32961 ol_cv_berkeley_db_version=no
32962 fi
32963 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32964 fi
32965
32966         LIBS="$ol_LIBS"
32967
32968 fi
32969 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32970 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32971
32972         if test $ol_cv_berkeley_db_version = no ; then
32973                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32974 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32975    { (exit 1); exit 1; }; }
32976         fi
32977
32978                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32979 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32980 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32981   echo $ECHO_N "(cached) $ECHO_C" >&6
32982 else
32983
32984         ol_LIBS="$LIBS"
32985         LIBS="$LTHREAD_LIBS $LIBS"
32986         if test $ol_cv_lib_db != yes ; then
32987                 LIBS="$ol_cv_lib_db $LIBS"
32988         fi
32989
32990         if test "$cross_compiling" = yes; then
32991   ol_cv_berkeley_db_thread=cross
32992 else
32993   cat >conftest.$ac_ext <<_ACEOF
32994 /* confdefs.h.  */
32995 _ACEOF
32996 cat confdefs.h >>conftest.$ac_ext
32997 cat >>conftest.$ac_ext <<_ACEOF
32998 /* end confdefs.h.  */
32999
33000 #ifdef HAVE_DB_185_H
33001         choke me;
33002 #else
33003 #include <db.h>
33004 #endif
33005 #ifndef NULL
33006 #define NULL ((void *)0)
33007 #endif
33008 main()
33009 {
33010         int rc;
33011         u_int32_t flags = DB_CREATE |
33012 #ifdef DB_PRIVATE
33013                 DB_PRIVATE |
33014 #endif
33015                 DB_THREAD;
33016
33017 #if DB_VERSION_MAJOR > 2
33018         DB_ENV *env = NULL;
33019
33020         rc = db_env_create( &env, 0 );
33021
33022         flags |= DB_INIT_MPOOL;
33023 #ifdef DB_MPOOL_PRIVATE
33024         flags |= DB_MPOOL_PRIVATE;
33025 #endif
33026
33027         if( rc ) {
33028                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33029                 return rc;
33030         }
33031
33032 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
33033         rc = env->open( env, NULL, flags, 0 );
33034 #else
33035         rc = env->open( env, NULL, NULL, flags, 0 );
33036 #endif
33037
33038         if ( rc == 0 ) {
33039                 rc = env->close( env, 0 );
33040         }
33041
33042         if( rc ) {
33043                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
33044                 return rc;
33045         }
33046
33047 #else
33048         DB_ENV env;
33049         memset( &env, '\0', sizeof(env) );
33050
33051         rc = db_appinit( NULL, NULL, &env, flags );
33052
33053         if( rc == 0 ) {
33054                 db_appexit( &env );
33055         }
33056
33057         unlink("__db_mpool.share");
33058         unlink("__db_lock.share");
33059 #endif
33060
33061         return rc;
33062 }
33063 _ACEOF
33064 rm -f conftest$ac_exeext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33066   (eval $ac_link) 2>&5
33067   ac_status=$?
33068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33071   (eval $ac_try) 2>&5
33072   ac_status=$?
33073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074   (exit $ac_status); }; }; then
33075   ol_cv_berkeley_db_thread=yes
33076 else
33077   echo "$as_me: program exited with status $ac_status" >&5
33078 echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081 ( exit $ac_status )
33082 ol_cv_berkeley_db_thread=no
33083 fi
33084 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33085 fi
33086
33087         LIBS="$ol_LIBS"
33088
33089 fi
33090 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
33091 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
33092
33093         if test $ol_cv_berkeley_db_thread != no ; then
33094
33095 cat >>confdefs.h <<\_ACEOF
33096 #define HAVE_BERKELEY_DB_THREAD 1
33097 _ACEOF
33098
33099         fi
33100
33101         fi
33102 fi
33103
33104         fi
33105
33106         if test $ol_cv_berkeley_db != no ; then
33107
33108 cat >>confdefs.h <<\_ACEOF
33109 #define HAVE_BERKELEY_DB 1
33110 _ACEOF
33111
33112
33113                 ol_link_ldbm=berkeley
33114                 ol_enable_ldbm_api=berkeley
33115
33116                 if test $ol_enable_ldbm_type = hash ; then
33117
33118 cat >>confdefs.h <<\_ACEOF
33119 #define LDBM_USE_DBHASH 1
33120 _ACEOF
33121
33122                 else
33123
33124 cat >>confdefs.h <<\_ACEOF
33125 #define LDBM_USE_DBBTREE 1
33126 _ACEOF
33127
33128                 fi
33129
33130                                                 if test $ol_cv_lib_db != yes ; then
33131                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33132                 fi
33133         fi
33134 fi
33135
33136 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
33137         if test $ol_link_ldbm != berkeley ; then
33138                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33139 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33140    { (exit 1); exit 1; }; }
33141         else
33142                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33143 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33144 if test "${ol_cv_bdb_compat+set}" = set; then
33145   echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147
33148         cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h.  */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h.  */
33154
33155 #include <db.h>
33156
33157  /* this check could be improved */
33158 #ifndef DB_VERSION_MAJOR
33159 #       define DB_VERSION_MAJOR 1
33160 #endif
33161 #ifndef DB_VERSION_MINOR
33162 #       define DB_VERSION_MINOR 0
33163 #endif
33164
33165 /* require 4.2 or later */
33166 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33167         __db_version_compat
33168 #endif
33169
33170 _ACEOF
33171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33172   $EGREP "__db_version_compat" >/dev/null 2>&1; then
33173   ol_cv_bdb_compat=yes
33174 else
33175   ol_cv_bdb_compat=no
33176 fi
33177 rm -f conftest*
33178
33179 fi
33180 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33181 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33182
33183
33184                 if test $ol_cv_bdb_compat != yes ; then
33185                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33186 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33187    { (exit 1); exit 1; }; }
33188                 fi
33189         fi
33190 fi
33191
33192 if test $ol_link_ldbm = no -a $ol_enable_ldbm_type = btree ; then
33193         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33194 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33195         ol_enable_ldbm_api=none
33196 fi
33197
33198 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = mdbm ; then
33199         echo "$as_me:$LINENO: checking for MDBM library" >&5
33200 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33201 if test "${ol_cv_lib_mdbm+set}" = set; then
33202   echo $ECHO_N "(cached) $ECHO_C" >&6
33203 else
33204         ol_LIBS="$LIBS"
33205         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33206 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33207 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33208   echo $ECHO_N "(cached) $ECHO_C" >&6
33209 else
33210   cat >conftest.$ac_ext <<_ACEOF
33211 /* confdefs.h.  */
33212 _ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h.  */
33216 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33218 #define mdbm_set_chain innocuous_mdbm_set_chain
33219
33220 /* System header to define __stub macros and hopefully few prototypes,
33221     which can conflict with char mdbm_set_chain (); below.
33222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33223     <limits.h> exists even on freestanding compilers.  */
33224
33225 #ifdef __STDC__
33226 # include <limits.h>
33227 #else
33228 # include <assert.h>
33229 #endif
33230
33231 #undef mdbm_set_chain
33232
33233 /* Override any gcc2 internal prototype to avoid an error.  */
33234 #ifdef __cplusplus
33235 extern "C"
33236 {
33237 #endif
33238 /* We use char because int might match the return type of a gcc2
33239    builtin and then its argument prototype would still apply.  */
33240 char mdbm_set_chain ();
33241 /* The GNU C library defines this for functions which it implements
33242     to always fail with ENOSYS.  Some functions are actually named
33243     something starting with __ and the normal name is an alias.  */
33244 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33245 choke me
33246 #else
33247 char (*f) () = mdbm_set_chain;
33248 #endif
33249 #ifdef __cplusplus
33250 }
33251 #endif
33252
33253 int
33254 main ()
33255 {
33256 return f != mdbm_set_chain;
33257   ;
33258   return 0;
33259 }
33260 _ACEOF
33261 rm -f conftest.$ac_objext conftest$ac_exeext
33262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33263   (eval $ac_link) 2>conftest.er1
33264   ac_status=$?
33265   grep -v '^ *+' conftest.er1 >conftest.err
33266   rm -f conftest.er1
33267   cat conftest.err >&5
33268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269   (exit $ac_status); } &&
33270          { ac_try='test -z "$ac_c_werror_flag"
33271                          || test ! -s conftest.err'
33272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33273   (eval $ac_try) 2>&5
33274   ac_status=$?
33275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276   (exit $ac_status); }; } &&
33277          { ac_try='test -s conftest$ac_exeext'
33278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279   (eval $ac_try) 2>&5
33280   ac_status=$?
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); }; }; then
33283   ac_cv_func_mdbm_set_chain=yes
33284 else
33285   echo "$as_me: failed program was:" >&5
33286 sed 's/^/| /' conftest.$ac_ext >&5
33287
33288 ac_cv_func_mdbm_set_chain=no
33289 fi
33290 rm -f conftest.err conftest.$ac_objext \
33291       conftest$ac_exeext conftest.$ac_ext
33292 fi
33293 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33294 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33295 if test $ac_cv_func_mdbm_set_chain = yes; then
33296   ol_cv_lib_mdbm=yes
33297 else
33298
33299                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33300 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33301 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33302   echo $ECHO_N "(cached) $ECHO_C" >&6
33303 else
33304   ac_check_lib_save_LIBS=$LIBS
33305 LIBS="-lmdbm  $LIBS"
33306 cat >conftest.$ac_ext <<_ACEOF
33307 /* confdefs.h.  */
33308 _ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h.  */
33312
33313 /* Override any gcc2 internal prototype to avoid an error.  */
33314 #ifdef __cplusplus
33315 extern "C"
33316 #endif
33317 /* We use char because int might match the return type of a gcc2
33318    builtin and then its argument prototype would still apply.  */
33319 char mdbm_set_chain ();
33320 int
33321 main ()
33322 {
33323 mdbm_set_chain ();
33324   ;
33325   return 0;
33326 }
33327 _ACEOF
33328 rm -f conftest.$ac_objext conftest$ac_exeext
33329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33330   (eval $ac_link) 2>conftest.er1
33331   ac_status=$?
33332   grep -v '^ *+' conftest.er1 >conftest.err
33333   rm -f conftest.er1
33334   cat conftest.err >&5
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); } &&
33337          { ac_try='test -z "$ac_c_werror_flag"
33338                          || test ! -s conftest.err'
33339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33340   (eval $ac_try) 2>&5
33341   ac_status=$?
33342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33343   (exit $ac_status); }; } &&
33344          { ac_try='test -s conftest$ac_exeext'
33345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33346   (eval $ac_try) 2>&5
33347   ac_status=$?
33348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349   (exit $ac_status); }; }; then
33350   ac_cv_lib_mdbm_mdbm_set_chain=yes
33351 else
33352   echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33354
33355 ac_cv_lib_mdbm_mdbm_set_chain=no
33356 fi
33357 rm -f conftest.err conftest.$ac_objext \
33358       conftest$ac_exeext conftest.$ac_ext
33359 LIBS=$ac_check_lib_save_LIBS
33360 fi
33361 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33362 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33363 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33364   ol_cv_lib_mdbm=-lmdbm
33365 else
33366   ol_cv_lib_mdbm=no
33367 fi
33368
33369
33370 fi
33371
33372         LIBS="$ol_LIBS"
33373
33374 fi
33375 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33376 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33377
33378
33379
33380 for ac_header in mdbm.h
33381 do
33382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33384   echo "$as_me:$LINENO: checking for $ac_header" >&5
33385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33387   echo $ECHO_N "(cached) $ECHO_C" >&6
33388 fi
33389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33391 else
33392   # Is the header compilable?
33393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33395 cat >conftest.$ac_ext <<_ACEOF
33396 /* confdefs.h.  */
33397 _ACEOF
33398 cat confdefs.h >>conftest.$ac_ext
33399 cat >>conftest.$ac_ext <<_ACEOF
33400 /* end confdefs.h.  */
33401 $ac_includes_default
33402 #include <$ac_header>
33403 _ACEOF
33404 rm -f conftest.$ac_objext
33405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33406   (eval $ac_compile) 2>conftest.er1
33407   ac_status=$?
33408   grep -v '^ *+' conftest.er1 >conftest.err
33409   rm -f conftest.er1
33410   cat conftest.err >&5
33411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412   (exit $ac_status); } &&
33413          { ac_try='test -z "$ac_c_werror_flag"
33414                          || test ! -s conftest.err'
33415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416   (eval $ac_try) 2>&5
33417   ac_status=$?
33418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419   (exit $ac_status); }; } &&
33420          { ac_try='test -s conftest.$ac_objext'
33421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422   (eval $ac_try) 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; }; then
33426   ac_header_compiler=yes
33427 else
33428   echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33430
33431 ac_header_compiler=no
33432 fi
33433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33435 echo "${ECHO_T}$ac_header_compiler" >&6
33436
33437 # Is the header present?
33438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33440 cat >conftest.$ac_ext <<_ACEOF
33441 /* confdefs.h.  */
33442 _ACEOF
33443 cat confdefs.h >>conftest.$ac_ext
33444 cat >>conftest.$ac_ext <<_ACEOF
33445 /* end confdefs.h.  */
33446 #include <$ac_header>
33447 _ACEOF
33448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33450   ac_status=$?
33451   grep -v '^ *+' conftest.er1 >conftest.err
33452   rm -f conftest.er1
33453   cat conftest.err >&5
33454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455   (exit $ac_status); } >/dev/null; then
33456   if test -s conftest.err; then
33457     ac_cpp_err=$ac_c_preproc_warn_flag
33458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33459   else
33460     ac_cpp_err=
33461   fi
33462 else
33463   ac_cpp_err=yes
33464 fi
33465 if test -z "$ac_cpp_err"; then
33466   ac_header_preproc=yes
33467 else
33468   echo "$as_me: failed program was:" >&5
33469 sed 's/^/| /' conftest.$ac_ext >&5
33470
33471   ac_header_preproc=no
33472 fi
33473 rm -f conftest.err conftest.$ac_ext
33474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33475 echo "${ECHO_T}$ac_header_preproc" >&6
33476
33477 # So?  What about this header?
33478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33479   yes:no: )
33480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33484     ac_header_preproc=yes
33485     ;;
33486   no:yes:* )
33487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33499     (
33500       cat <<\_ASBOX
33501 ## ------------------------------------------ ##
33502 ## Report this to the AC_PACKAGE_NAME lists.  ##
33503 ## ------------------------------------------ ##
33504 _ASBOX
33505     ) |
33506       sed "s/^/$as_me: WARNING:     /" >&2
33507     ;;
33508 esac
33509 echo "$as_me:$LINENO: checking for $ac_header" >&5
33510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33512   echo $ECHO_N "(cached) $ECHO_C" >&6
33513 else
33514   eval "$as_ac_Header=\$ac_header_preproc"
33515 fi
33516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33518
33519 fi
33520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33521   cat >>confdefs.h <<_ACEOF
33522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33523 _ACEOF
33524
33525 fi
33526
33527 done
33528
33529  echo "$as_me:$LINENO: checking for db" >&5
33530 echo $ECHO_N "checking for db... $ECHO_C" >&6
33531 if test "${ol_cv_mdbm+set}" = set; then
33532   echo $ECHO_N "(cached) $ECHO_C" >&6
33533 else
33534
33535         if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
33536                 ol_cv_mdbm=no
33537         else
33538                 ol_cv_mdbm=yes
33539         fi
33540
33541 fi
33542 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33543 echo "${ECHO_T}$ol_cv_mdbm" >&6
33544  if test $ol_cv_mdbm = yes ; then
33545
33546 cat >>confdefs.h <<\_ACEOF
33547 #define HAVE_MDBM 1
33548 _ACEOF
33549
33550  fi
33551
33552
33553         if test $ol_cv_mdbm = yes ; then
33554                 ol_link_ldbm=mdbm
33555                 ol_enable_ldbm_api=mdbm
33556                 if test $ol_cv_lib_mdbm != yes ; then
33557                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33558                 fi
33559         fi
33560 fi
33561
33562 if test $ol_enable_ldbm_api = auto -o $ol_enable_ldbm_api = gdbm ; then
33563         echo "$as_me:$LINENO: checking for GDBM library" >&5
33564 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33565 if test "${ol_cv_lib_gdbm+set}" = set; then
33566   echo $ECHO_N "(cached) $ECHO_C" >&6
33567 else
33568         ol_LIBS="$LIBS"
33569         echo "$as_me:$LINENO: checking for gdbm_open" >&5
33570 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33571 if test "${ac_cv_func_gdbm_open+set}" = set; then
33572   echo $ECHO_N "(cached) $ECHO_C" >&6
33573 else
33574   cat >conftest.$ac_ext <<_ACEOF
33575 /* confdefs.h.  */
33576 _ACEOF
33577 cat confdefs.h >>conftest.$ac_ext
33578 cat >>conftest.$ac_ext <<_ACEOF
33579 /* end confdefs.h.  */
33580 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33582 #define gdbm_open innocuous_gdbm_open
33583
33584 /* System header to define __stub macros and hopefully few prototypes,
33585     which can conflict with char gdbm_open (); below.
33586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33587     <limits.h> exists even on freestanding compilers.  */
33588
33589 #ifdef __STDC__
33590 # include <limits.h>
33591 #else
33592 # include <assert.h>
33593 #endif
33594
33595 #undef gdbm_open
33596
33597 /* Override any gcc2 internal prototype to avoid an error.  */
33598 #ifdef __cplusplus
33599 extern "C"
33600 {
33601 #endif
33602 /* We use char because int might match the return type of a gcc2
33603    builtin and then its argument prototype would still apply.  */
33604 char gdbm_open ();
33605 /* The GNU C library defines this for functions which it implements
33606     to always fail with ENOSYS.  Some functions are actually named
33607     something starting with __ and the normal name is an alias.  */
33608 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33609 choke me
33610 #else
33611 char (*f) () = gdbm_open;
33612 #endif
33613 #ifdef __cplusplus
33614 }
33615 #endif
33616
33617 int
33618 main ()
33619 {
33620 return f != gdbm_open;
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext conftest$ac_exeext
33626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33627   (eval $ac_link) 2>conftest.er1
33628   ac_status=$?
33629   grep -v '^ *+' conftest.er1 >conftest.err
33630   rm -f conftest.er1
33631   cat conftest.err >&5
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } &&
33634          { ac_try='test -z "$ac_c_werror_flag"
33635                          || test ! -s conftest.err'
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); }; } &&
33641          { ac_try='test -s conftest$ac_exeext'
33642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643   (eval $ac_try) 2>&5
33644   ac_status=$?
33645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646   (exit $ac_status); }; }; then
33647   ac_cv_func_gdbm_open=yes
33648 else
33649   echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33651
33652 ac_cv_func_gdbm_open=no
33653 fi
33654 rm -f conftest.err conftest.$ac_objext \
33655       conftest$ac_exeext conftest.$ac_ext
33656 fi
33657 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33658 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33659 if test $ac_cv_func_gdbm_open = yes; then
33660   ol_cv_lib_gdbm=yes
33661 else
33662
33663                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33664 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33665 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33666   echo $ECHO_N "(cached) $ECHO_C" >&6
33667 else
33668   ac_check_lib_save_LIBS=$LIBS
33669 LIBS="-lgdbm  $LIBS"
33670 cat >conftest.$ac_ext <<_ACEOF
33671 /* confdefs.h.  */
33672 _ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h.  */
33676
33677 /* Override any gcc2 internal prototype to avoid an error.  */
33678 #ifdef __cplusplus
33679 extern "C"
33680 #endif
33681 /* We use char because int might match the return type of a gcc2
33682    builtin and then its argument prototype would still apply.  */
33683 char gdbm_open ();
33684 int
33685 main ()
33686 {
33687 gdbm_open ();
33688   ;
33689   return 0;
33690 }
33691 _ACEOF
33692 rm -f conftest.$ac_objext conftest$ac_exeext
33693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33694   (eval $ac_link) 2>conftest.er1
33695   ac_status=$?
33696   grep -v '^ *+' conftest.er1 >conftest.err
33697   rm -f conftest.er1
33698   cat conftest.err >&5
33699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700   (exit $ac_status); } &&
33701          { ac_try='test -z "$ac_c_werror_flag"
33702                          || test ! -s conftest.err'
33703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704   (eval $ac_try) 2>&5
33705   ac_status=$?
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); }; } &&
33708          { ac_try='test -s conftest$ac_exeext'
33709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710   (eval $ac_try) 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); }; }; then
33714   ac_cv_lib_gdbm_gdbm_open=yes
33715 else
33716   echo "$as_me: failed program was:" >&5
33717 sed 's/^/| /' conftest.$ac_ext >&5
33718
33719 ac_cv_lib_gdbm_gdbm_open=no
33720 fi
33721 rm -f conftest.err conftest.$ac_objext \
33722       conftest$ac_exeext conftest.$ac_ext
33723 LIBS=$ac_check_lib_save_LIBS
33724 fi
33725 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33726 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33727 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33728   ol_cv_lib_gdbm=-lgdbm
33729 else
33730   ol_cv_lib_gdbm=no
33731 fi
33732
33733
33734 fi
33735
33736         LIBS="$ol_LIBS"
33737
33738 fi
33739 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33740 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33741
33742
33743
33744 for ac_header in gdbm.h
33745 do
33746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33748   echo "$as_me:$LINENO: checking for $ac_header" >&5
33749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33751   echo $ECHO_N "(cached) $ECHO_C" >&6
33752 fi
33753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33755 else
33756   # Is the header compilable?
33757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33759 cat >conftest.$ac_ext <<_ACEOF
33760 /* confdefs.h.  */
33761 _ACEOF
33762 cat confdefs.h >>conftest.$ac_ext
33763 cat >>conftest.$ac_ext <<_ACEOF
33764 /* end confdefs.h.  */
33765 $ac_includes_default
33766 #include <$ac_header>
33767 _ACEOF
33768 rm -f conftest.$ac_objext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33770   (eval $ac_compile) 2>conftest.er1
33771   ac_status=$?
33772   grep -v '^ *+' conftest.er1 >conftest.err
33773   rm -f conftest.er1
33774   cat conftest.err >&5
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); } &&
33777          { ac_try='test -z "$ac_c_werror_flag"
33778                          || test ! -s conftest.err'
33779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780   (eval $ac_try) 2>&5
33781   ac_status=$?
33782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783   (exit $ac_status); }; } &&
33784          { ac_try='test -s conftest.$ac_objext'
33785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786   (eval $ac_try) 2>&5
33787   ac_status=$?
33788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789   (exit $ac_status); }; }; then
33790   ac_header_compiler=yes
33791 else
33792   echo "$as_me: failed program was:" >&5
33793 sed 's/^/| /' conftest.$ac_ext >&5
33794
33795 ac_header_compiler=no
33796 fi
33797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33799 echo "${ECHO_T}$ac_header_compiler" >&6
33800
33801 # Is the header present?
33802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33804 cat >conftest.$ac_ext <<_ACEOF
33805 /* confdefs.h.  */
33806 _ACEOF
33807 cat confdefs.h >>conftest.$ac_ext
33808 cat >>conftest.$ac_ext <<_ACEOF
33809 /* end confdefs.h.  */
33810 #include <$ac_header>
33811 _ACEOF
33812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33814   ac_status=$?
33815   grep -v '^ *+' conftest.er1 >conftest.err
33816   rm -f conftest.er1
33817   cat conftest.err >&5
33818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33819   (exit $ac_status); } >/dev/null; then
33820   if test -s conftest.err; then
33821     ac_cpp_err=$ac_c_preproc_warn_flag
33822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33823   else
33824     ac_cpp_err=
33825   fi
33826 else
33827   ac_cpp_err=yes
33828 fi
33829 if test -z "$ac_cpp_err"; then
33830   ac_header_preproc=yes
33831 else
33832   echo "$as_me: failed program was:" >&5
33833 sed 's/^/| /' conftest.$ac_ext >&5
33834
33835   ac_header_preproc=no
33836 fi
33837 rm -f conftest.err conftest.$ac_ext
33838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33839 echo "${ECHO_T}$ac_header_preproc" >&6
33840
33841 # So?  What about this header?
33842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33843   yes:no: )
33844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33848     ac_header_preproc=yes
33849     ;;
33850   no:yes:* )
33851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33863     (
33864       cat <<\_ASBOX
33865 ## ------------------------------------------ ##
33866 ## Report this to the AC_PACKAGE_NAME lists.  ##
33867 ## ------------------------------------------ ##
33868 _ASBOX
33869     ) |
33870       sed "s/^/$as_me: WARNING:     /" >&2
33871     ;;
33872 esac
33873 echo "$as_me:$LINENO: checking for $ac_header" >&5
33874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33876   echo $ECHO_N "(cached) $ECHO_C" >&6
33877 else
33878   eval "$as_ac_Header=\$ac_header_preproc"
33879 fi
33880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33882
33883 fi
33884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33885   cat >>confdefs.h <<_ACEOF
33886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33887 _ACEOF
33888
33889 fi
33890
33891 done
33892
33893  echo "$as_me:$LINENO: checking for db" >&5
33894 echo $ECHO_N "checking for db... $ECHO_C" >&6
33895 if test "${ol_cv_gdbm+set}" = set; then
33896   echo $ECHO_N "(cached) $ECHO_C" >&6
33897 else
33898
33899         if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
33900                 ol_cv_gdbm=no
33901         else
33902                 ol_cv_gdbm=yes
33903         fi
33904
33905 fi
33906 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33907 echo "${ECHO_T}$ol_cv_gdbm" >&6
33908  if test $ol_cv_gdbm = yes ; then
33909
33910 cat >>confdefs.h <<\_ACEOF
33911 #define HAVE_GDBM 1
33912 _ACEOF
33913
33914  fi
33915
33916
33917         if test $ol_cv_gdbm = yes ; then
33918                 ol_link_ldbm=gdbm
33919                 ol_enable_ldbm_api=gdbm
33920
33921                 if test $ol_cv_lib_gdbm != yes ; then
33922                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33923                 fi
33924         fi
33925 fi
33926
33927 if test $ol_enable_ldbm_api = ndbm ; then
33928         echo "$as_me:$LINENO: checking for NDBM library" >&5
33929 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33930 if test "${ol_cv_lib_ndbm+set}" = set; then
33931   echo $ECHO_N "(cached) $ECHO_C" >&6
33932 else
33933         ol_LIBS="$LIBS"
33934         echo "$as_me:$LINENO: checking for dbm_open" >&5
33935 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33936 if test "${ac_cv_func_dbm_open+set}" = set; then
33937   echo $ECHO_N "(cached) $ECHO_C" >&6
33938 else
33939   cat >conftest.$ac_ext <<_ACEOF
33940 /* confdefs.h.  */
33941 _ACEOF
33942 cat confdefs.h >>conftest.$ac_ext
33943 cat >>conftest.$ac_ext <<_ACEOF
33944 /* end confdefs.h.  */
33945 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33947 #define dbm_open innocuous_dbm_open
33948
33949 /* System header to define __stub macros and hopefully few prototypes,
33950     which can conflict with char dbm_open (); below.
33951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33952     <limits.h> exists even on freestanding compilers.  */
33953
33954 #ifdef __STDC__
33955 # include <limits.h>
33956 #else
33957 # include <assert.h>
33958 #endif
33959
33960 #undef dbm_open
33961
33962 /* Override any gcc2 internal prototype to avoid an error.  */
33963 #ifdef __cplusplus
33964 extern "C"
33965 {
33966 #endif
33967 /* We use char because int might match the return type of a gcc2
33968    builtin and then its argument prototype would still apply.  */
33969 char dbm_open ();
33970 /* The GNU C library defines this for functions which it implements
33971     to always fail with ENOSYS.  Some functions are actually named
33972     something starting with __ and the normal name is an alias.  */
33973 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33974 choke me
33975 #else
33976 char (*f) () = dbm_open;
33977 #endif
33978 #ifdef __cplusplus
33979 }
33980 #endif
33981
33982 int
33983 main ()
33984 {
33985 return f != dbm_open;
33986   ;
33987   return 0;
33988 }
33989 _ACEOF
33990 rm -f conftest.$ac_objext conftest$ac_exeext
33991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33992   (eval $ac_link) 2>conftest.er1
33993   ac_status=$?
33994   grep -v '^ *+' conftest.er1 >conftest.err
33995   rm -f conftest.er1
33996   cat conftest.err >&5
33997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998   (exit $ac_status); } &&
33999          { ac_try='test -z "$ac_c_werror_flag"
34000                          || test ! -s conftest.err'
34001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002   (eval $ac_try) 2>&5
34003   ac_status=$?
34004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005   (exit $ac_status); }; } &&
34006          { ac_try='test -s conftest$ac_exeext'
34007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34008   (eval $ac_try) 2>&5
34009   ac_status=$?
34010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34011   (exit $ac_status); }; }; then
34012   ac_cv_func_dbm_open=yes
34013 else
34014   echo "$as_me: failed program was:" >&5
34015 sed 's/^/| /' conftest.$ac_ext >&5
34016
34017 ac_cv_func_dbm_open=no
34018 fi
34019 rm -f conftest.err conftest.$ac_objext \
34020       conftest$ac_exeext conftest.$ac_ext
34021 fi
34022 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
34023 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
34024 if test $ac_cv_func_dbm_open = yes; then
34025   ol_cv_lib_ndbm=yes
34026 else
34027
34028                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
34029 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
34030 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
34031   echo $ECHO_N "(cached) $ECHO_C" >&6
34032 else
34033   ac_check_lib_save_LIBS=$LIBS
34034 LIBS="-lndbm  $LIBS"
34035 cat >conftest.$ac_ext <<_ACEOF
34036 /* confdefs.h.  */
34037 _ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h.  */
34041
34042 /* Override any gcc2 internal prototype to avoid an error.  */
34043 #ifdef __cplusplus
34044 extern "C"
34045 #endif
34046 /* We use char because int might match the return type of a gcc2
34047    builtin and then its argument prototype would still apply.  */
34048 char dbm_open ();
34049 int
34050 main ()
34051 {
34052 dbm_open ();
34053   ;
34054   return 0;
34055 }
34056 _ACEOF
34057 rm -f conftest.$ac_objext conftest$ac_exeext
34058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34059   (eval $ac_link) 2>conftest.er1
34060   ac_status=$?
34061   grep -v '^ *+' conftest.er1 >conftest.err
34062   rm -f conftest.er1
34063   cat conftest.err >&5
34064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065   (exit $ac_status); } &&
34066          { ac_try='test -z "$ac_c_werror_flag"
34067                          || test ! -s conftest.err'
34068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34069   (eval $ac_try) 2>&5
34070   ac_status=$?
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); }; } &&
34073          { ac_try='test -s conftest$ac_exeext'
34074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075   (eval $ac_try) 2>&5
34076   ac_status=$?
34077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078   (exit $ac_status); }; }; then
34079   ac_cv_lib_ndbm_dbm_open=yes
34080 else
34081   echo "$as_me: failed program was:" >&5
34082 sed 's/^/| /' conftest.$ac_ext >&5
34083
34084 ac_cv_lib_ndbm_dbm_open=no
34085 fi
34086 rm -f conftest.err conftest.$ac_objext \
34087       conftest$ac_exeext conftest.$ac_ext
34088 LIBS=$ac_check_lib_save_LIBS
34089 fi
34090 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
34091 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
34092 if test $ac_cv_lib_ndbm_dbm_open = yes; then
34093   ol_cv_lib_ndbm=-lndbm
34094 else
34095
34096                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
34097 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
34098 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
34099   echo $ECHO_N "(cached) $ECHO_C" >&6
34100 else
34101   ac_check_lib_save_LIBS=$LIBS
34102 LIBS="-ldbm  $LIBS"
34103 cat >conftest.$ac_ext <<_ACEOF
34104 /* confdefs.h.  */
34105 _ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h.  */
34109
34110 /* Override any gcc2 internal prototype to avoid an error.  */
34111 #ifdef __cplusplus
34112 extern "C"
34113 #endif
34114 /* We use char because int might match the return type of a gcc2
34115    builtin and then its argument prototype would still apply.  */
34116 char dbm_open ();
34117 int
34118 main ()
34119 {
34120 dbm_open ();
34121   ;
34122   return 0;
34123 }
34124 _ACEOF
34125 rm -f conftest.$ac_objext conftest$ac_exeext
34126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34127   (eval $ac_link) 2>conftest.er1
34128   ac_status=$?
34129   grep -v '^ *+' conftest.er1 >conftest.err
34130   rm -f conftest.er1
34131   cat conftest.err >&5
34132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133   (exit $ac_status); } &&
34134          { ac_try='test -z "$ac_c_werror_flag"
34135                          || test ! -s conftest.err'
34136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137   (eval $ac_try) 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; } &&
34141          { ac_try='test -s conftest$ac_exeext'
34142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143   (eval $ac_try) 2>&5
34144   ac_status=$?
34145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146   (exit $ac_status); }; }; then
34147   ac_cv_lib_dbm_dbm_open=yes
34148 else
34149   echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152 ac_cv_lib_dbm_dbm_open=no
34153 fi
34154 rm -f conftest.err conftest.$ac_objext \
34155       conftest$ac_exeext conftest.$ac_ext
34156 LIBS=$ac_check_lib_save_LIBS
34157 fi
34158 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34159 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34160 if test $ac_cv_lib_dbm_dbm_open = yes; then
34161   ol_cv_lib_ndbm=-ldbm
34162 else
34163   ol_cv_lib_ndbm=no
34164 fi
34165
34166 fi
34167
34168
34169 fi
34170
34171         LIBS="$ol_LIBS"
34172
34173 fi
34174 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34175 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34176
34177
34178
34179 for ac_header in ndbm.h
34180 do
34181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34183   echo "$as_me:$LINENO: checking for $ac_header" >&5
34184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34186   echo $ECHO_N "(cached) $ECHO_C" >&6
34187 fi
34188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34190 else
34191   # Is the header compilable?
34192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34194 cat >conftest.$ac_ext <<_ACEOF
34195 /* confdefs.h.  */
34196 _ACEOF
34197 cat confdefs.h >>conftest.$ac_ext
34198 cat >>conftest.$ac_ext <<_ACEOF
34199 /* end confdefs.h.  */
34200 $ac_includes_default
34201 #include <$ac_header>
34202 _ACEOF
34203 rm -f conftest.$ac_objext
34204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34205   (eval $ac_compile) 2>conftest.er1
34206   ac_status=$?
34207   grep -v '^ *+' conftest.er1 >conftest.err
34208   rm -f conftest.er1
34209   cat conftest.err >&5
34210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211   (exit $ac_status); } &&
34212          { ac_try='test -z "$ac_c_werror_flag"
34213                          || test ! -s conftest.err'
34214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215   (eval $ac_try) 2>&5
34216   ac_status=$?
34217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218   (exit $ac_status); }; } &&
34219          { ac_try='test -s conftest.$ac_objext'
34220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221   (eval $ac_try) 2>&5
34222   ac_status=$?
34223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224   (exit $ac_status); }; }; then
34225   ac_header_compiler=yes
34226 else
34227   echo "$as_me: failed program was:" >&5
34228 sed 's/^/| /' conftest.$ac_ext >&5
34229
34230 ac_header_compiler=no
34231 fi
34232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34234 echo "${ECHO_T}$ac_header_compiler" >&6
34235
34236 # Is the header present?
34237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34239 cat >conftest.$ac_ext <<_ACEOF
34240 /* confdefs.h.  */
34241 _ACEOF
34242 cat confdefs.h >>conftest.$ac_ext
34243 cat >>conftest.$ac_ext <<_ACEOF
34244 /* end confdefs.h.  */
34245 #include <$ac_header>
34246 _ACEOF
34247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34249   ac_status=$?
34250   grep -v '^ *+' conftest.er1 >conftest.err
34251   rm -f conftest.er1
34252   cat conftest.err >&5
34253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254   (exit $ac_status); } >/dev/null; then
34255   if test -s conftest.err; then
34256     ac_cpp_err=$ac_c_preproc_warn_flag
34257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34258   else
34259     ac_cpp_err=
34260   fi
34261 else
34262   ac_cpp_err=yes
34263 fi
34264 if test -z "$ac_cpp_err"; then
34265   ac_header_preproc=yes
34266 else
34267   echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34269
34270   ac_header_preproc=no
34271 fi
34272 rm -f conftest.err conftest.$ac_ext
34273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34274 echo "${ECHO_T}$ac_header_preproc" >&6
34275
34276 # So?  What about this header?
34277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34278   yes:no: )
34279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34283     ac_header_preproc=yes
34284     ;;
34285   no:yes:* )
34286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34298     (
34299       cat <<\_ASBOX
34300 ## ------------------------------------------ ##
34301 ## Report this to the AC_PACKAGE_NAME lists.  ##
34302 ## ------------------------------------------ ##
34303 _ASBOX
34304     ) |
34305       sed "s/^/$as_me: WARNING:     /" >&2
34306     ;;
34307 esac
34308 echo "$as_me:$LINENO: checking for $ac_header" >&5
34309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34311   echo $ECHO_N "(cached) $ECHO_C" >&6
34312 else
34313   eval "$as_ac_Header=\$ac_header_preproc"
34314 fi
34315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34317
34318 fi
34319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34320   cat >>confdefs.h <<_ACEOF
34321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34322 _ACEOF
34323
34324 fi
34325
34326 done
34327
34328  echo "$as_me:$LINENO: checking for db" >&5
34329 echo $ECHO_N "checking for db... $ECHO_C" >&6
34330 if test "${ol_cv_ndbm+set}" = set; then
34331   echo $ECHO_N "(cached) $ECHO_C" >&6
34332 else
34333
34334         if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
34335                 ol_cv_ndbm=no
34336         else
34337                 ol_cv_ndbm=yes
34338         fi
34339
34340 fi
34341 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34342 echo "${ECHO_T}$ol_cv_ndbm" >&6
34343  if test $ol_cv_ndbm = yes ; then
34344
34345 cat >>confdefs.h <<\_ACEOF
34346 #define HAVE_NDBM 1
34347 _ACEOF
34348
34349  fi
34350
34351
34352         if test $ol_cv_ndbm = yes ; then
34353                 ol_link_ldbm=ndbm
34354                 ol_enable_ldbm_api=ndbm
34355
34356                 if test $ol_cv_lib_ndbm != yes ; then
34357                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34358                 fi
34359         fi
34360 fi
34361
34362 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
34363         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34364 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34365    { (exit 1); exit 1; }; }
34366 fi
34367
34368 if test $ol_enable_bdb = yes -o \
34369         $ol_enable_hdb = yes -o \
34370         $ol_enable_ldbm = yes ; then
34371         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34372 fi
34373
34374
34375 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
34376         BUILD_LIBS_DYNAMIC=shared
34377
34378 cat >>confdefs.h <<\_ACEOF
34379 #define LDAP_LIBS_DYNAMIC 1
34380 _ACEOF
34381
34382         LTSTATIC=""
34383 else
34384         BUILD_LIBS_DYNAMIC=static
34385         LTSTATIC="-static"
34386 fi
34387
34388 if test $ol_enable_wrappers != no ; then
34389
34390 for ac_header in tcpd.h
34391 do
34392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34394   echo "$as_me:$LINENO: checking for $ac_header" >&5
34395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34397   echo $ECHO_N "(cached) $ECHO_C" >&6
34398 fi
34399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34401 else
34402   # Is the header compilable?
34403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34405 cat >conftest.$ac_ext <<_ACEOF
34406 /* confdefs.h.  */
34407 _ACEOF
34408 cat confdefs.h >>conftest.$ac_ext
34409 cat >>conftest.$ac_ext <<_ACEOF
34410 /* end confdefs.h.  */
34411 $ac_includes_default
34412 #include <$ac_header>
34413 _ACEOF
34414 rm -f conftest.$ac_objext
34415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34416   (eval $ac_compile) 2>conftest.er1
34417   ac_status=$?
34418   grep -v '^ *+' conftest.er1 >conftest.err
34419   rm -f conftest.er1
34420   cat conftest.err >&5
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); } &&
34423          { ac_try='test -z "$ac_c_werror_flag"
34424                          || test ! -s conftest.err'
34425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34426   (eval $ac_try) 2>&5
34427   ac_status=$?
34428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429   (exit $ac_status); }; } &&
34430          { ac_try='test -s conftest.$ac_objext'
34431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34432   (eval $ac_try) 2>&5
34433   ac_status=$?
34434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34435   (exit $ac_status); }; }; then
34436   ac_header_compiler=yes
34437 else
34438   echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34440
34441 ac_header_compiler=no
34442 fi
34443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34445 echo "${ECHO_T}$ac_header_compiler" >&6
34446
34447 # Is the header present?
34448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
34457 _ACEOF
34458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34459   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34460   ac_status=$?
34461   grep -v '^ *+' conftest.er1 >conftest.err
34462   rm -f conftest.er1
34463   cat conftest.err >&5
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); } >/dev/null; then
34466   if test -s conftest.err; then
34467     ac_cpp_err=$ac_c_preproc_warn_flag
34468     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34469   else
34470     ac_cpp_err=
34471   fi
34472 else
34473   ac_cpp_err=yes
34474 fi
34475 if test -z "$ac_cpp_err"; then
34476   ac_header_preproc=yes
34477 else
34478   echo "$as_me: failed program was:" >&5
34479 sed 's/^/| /' conftest.$ac_ext >&5
34480
34481   ac_header_preproc=no
34482 fi
34483 rm -f conftest.err conftest.$ac_ext
34484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34485 echo "${ECHO_T}$ac_header_preproc" >&6
34486
34487 # So?  What about this header?
34488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34489   yes:no: )
34490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34494     ac_header_preproc=yes
34495     ;;
34496   no:yes:* )
34497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34509     (
34510       cat <<\_ASBOX
34511 ## ------------------------------------------ ##
34512 ## Report this to the AC_PACKAGE_NAME lists.  ##
34513 ## ------------------------------------------ ##
34514 _ASBOX
34515     ) |
34516       sed "s/^/$as_me: WARNING:     /" >&2
34517     ;;
34518 esac
34519 echo "$as_me:$LINENO: checking for $ac_header" >&5
34520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34522   echo $ECHO_N "(cached) $ECHO_C" >&6
34523 else
34524   eval "$as_ac_Header=\$ac_header_preproc"
34525 fi
34526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34528
34529 fi
34530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34531   cat >>confdefs.h <<_ACEOF
34532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34533 _ACEOF
34534
34535                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34536 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34537                 save_LIBS="$LIBS"
34538                 LIBS="$LIBS -lwrap"
34539                 cat >conftest.$ac_ext <<_ACEOF
34540 /* confdefs.h.  */
34541 _ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h.  */
34545
34546 #include <tcpd.h>
34547 int allow_severity = 0;
34548 int deny_severity  = 0;
34549
34550 struct request_info *req;
34551
34552 int
34553 main ()
34554 {
34555
34556 hosts_access(req)
34557
34558   ;
34559   return 0;
34560 }
34561 _ACEOF
34562 rm -f conftest.$ac_objext conftest$ac_exeext
34563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34564   (eval $ac_link) 2>conftest.er1
34565   ac_status=$?
34566   grep -v '^ *+' conftest.er1 >conftest.err
34567   rm -f conftest.er1
34568   cat conftest.err >&5
34569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570   (exit $ac_status); } &&
34571          { ac_try='test -z "$ac_c_werror_flag"
34572                          || test ! -s conftest.err'
34573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574   (eval $ac_try) 2>&5
34575   ac_status=$?
34576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577   (exit $ac_status); }; } &&
34578          { ac_try='test -s conftest$ac_exeext'
34579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580   (eval $ac_try) 2>&5
34581   ac_status=$?
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); }; }; then
34584   echo "$as_me:$LINENO: result: -lwrap" >&5
34585 echo "${ECHO_T}-lwrap" >&6
34586                 have_wrappers=yes
34587                 LIBS="$save_LIBS"
34588 else
34589   echo "$as_me: failed program was:" >&5
34590 sed 's/^/| /' conftest.$ac_ext >&5
34591
34592
34593                                 LIBS="$LIBS -lnsl"
34594                 cat >conftest.$ac_ext <<_ACEOF
34595 /* confdefs.h.  */
34596 _ACEOF
34597 cat confdefs.h >>conftest.$ac_ext
34598 cat >>conftest.$ac_ext <<_ACEOF
34599 /* end confdefs.h.  */
34600
34601 #include <tcpd.h>
34602 int allow_severity = 0;
34603 int deny_severity  = 0;
34604
34605 struct request_info *req;
34606
34607 int
34608 main ()
34609 {
34610
34611 hosts_access(req)
34612
34613   ;
34614   return 0;
34615 }
34616 _ACEOF
34617 rm -f conftest.$ac_objext conftest$ac_exeext
34618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34619   (eval $ac_link) 2>conftest.er1
34620   ac_status=$?
34621   grep -v '^ *+' conftest.er1 >conftest.err
34622   rm -f conftest.er1
34623   cat conftest.err >&5
34624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625   (exit $ac_status); } &&
34626          { ac_try='test -z "$ac_c_werror_flag"
34627                          || test ! -s conftest.err'
34628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34629   (eval $ac_try) 2>&5
34630   ac_status=$?
34631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34632   (exit $ac_status); }; } &&
34633          { ac_try='test -s conftest$ac_exeext'
34634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34635   (eval $ac_try) 2>&5
34636   ac_status=$?
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); }; }; then
34639   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34640 echo "${ECHO_T}-lwrap -lnsl" >&6
34641                 have_wrappers=yes
34642                 LIBS="$save_LIBS -lnsl"
34643 else
34644   echo "$as_me: failed program was:" >&5
34645 sed 's/^/| /' conftest.$ac_ext >&5
34646
34647
34648                 echo "$as_me:$LINENO: result: no" >&5
34649 echo "${ECHO_T}no" >&6
34650                 have_wrappers=no
34651                 LIBS=$save_LIBS
34652 fi
34653 rm -f conftest.err conftest.$ac_objext \
34654       conftest$ac_exeext conftest.$ac_ext
34655 fi
34656 rm -f conftest.err conftest.$ac_objext \
34657       conftest$ac_exeext conftest.$ac_ext
34658 else
34659   have_wrappers=no
34660 fi
34661
34662 done
34663
34664
34665         if test $have_wrappers = yes ; then
34666
34667 cat >>confdefs.h <<\_ACEOF
34668 #define HAVE_TCPD 1
34669 _ACEOF
34670
34671                 WRAP_LIBS="-lwrap"
34672         elif test $ol_enable_wrappers = yes ; then
34673                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34674 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34675    { (exit 1); exit 1; }; }
34676         else
34677                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34678 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34679                 WRAP_LIBS=""
34680         fi
34681 fi
34682
34683 if test $ol_enable_syslog != no ; then
34684         echo "$as_me:$LINENO: checking for openlog" >&5
34685 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34686 if test "${ac_cv_func_openlog+set}" = set; then
34687   echo $ECHO_N "(cached) $ECHO_C" >&6
34688 else
34689   cat >conftest.$ac_ext <<_ACEOF
34690 /* confdefs.h.  */
34691 _ACEOF
34692 cat confdefs.h >>conftest.$ac_ext
34693 cat >>conftest.$ac_ext <<_ACEOF
34694 /* end confdefs.h.  */
34695 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34697 #define openlog innocuous_openlog
34698
34699 /* System header to define __stub macros and hopefully few prototypes,
34700     which can conflict with char openlog (); below.
34701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34702     <limits.h> exists even on freestanding compilers.  */
34703
34704 #ifdef __STDC__
34705 # include <limits.h>
34706 #else
34707 # include <assert.h>
34708 #endif
34709
34710 #undef openlog
34711
34712 /* Override any gcc2 internal prototype to avoid an error.  */
34713 #ifdef __cplusplus
34714 extern "C"
34715 {
34716 #endif
34717 /* We use char because int might match the return type of a gcc2
34718    builtin and then its argument prototype would still apply.  */
34719 char openlog ();
34720 /* The GNU C library defines this for functions which it implements
34721     to always fail with ENOSYS.  Some functions are actually named
34722     something starting with __ and the normal name is an alias.  */
34723 #if defined (__stub_openlog) || defined (__stub___openlog)
34724 choke me
34725 #else
34726 char (*f) () = openlog;
34727 #endif
34728 #ifdef __cplusplus
34729 }
34730 #endif
34731
34732 int
34733 main ()
34734 {
34735 return f != openlog;
34736   ;
34737   return 0;
34738 }
34739 _ACEOF
34740 rm -f conftest.$ac_objext conftest$ac_exeext
34741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34742   (eval $ac_link) 2>conftest.er1
34743   ac_status=$?
34744   grep -v '^ *+' conftest.er1 >conftest.err
34745   rm -f conftest.er1
34746   cat conftest.err >&5
34747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748   (exit $ac_status); } &&
34749          { ac_try='test -z "$ac_c_werror_flag"
34750                          || test ! -s conftest.err'
34751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34752   (eval $ac_try) 2>&5
34753   ac_status=$?
34754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34755   (exit $ac_status); }; } &&
34756          { ac_try='test -s conftest$ac_exeext'
34757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34758   (eval $ac_try) 2>&5
34759   ac_status=$?
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); }; }; then
34762   ac_cv_func_openlog=yes
34763 else
34764   echo "$as_me: failed program was:" >&5
34765 sed 's/^/| /' conftest.$ac_ext >&5
34766
34767 ac_cv_func_openlog=no
34768 fi
34769 rm -f conftest.err conftest.$ac_objext \
34770       conftest$ac_exeext conftest.$ac_ext
34771 fi
34772 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34773 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34774
34775         if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
34776                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34777 echo "$as_me: error: could not find syslog" >&2;}
34778    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34779         fi
34780         ol_enable_syslog=$ac_cv_func_openlog
34781 fi
34782
34783 ol_link_sql=no
34784 if test $ol_enable_sql != no ; then
34785
34786
34787 for ac_header in sql.h sqlext.h
34788 do
34789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34791   echo "$as_me:$LINENO: checking for $ac_header" >&5
34792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34794   echo $ECHO_N "(cached) $ECHO_C" >&6
34795 fi
34796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34798 else
34799   # Is the header compilable?
34800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34802 cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 $ac_includes_default
34809 #include <$ac_header>
34810 _ACEOF
34811 rm -f conftest.$ac_objext
34812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34813   (eval $ac_compile) 2>conftest.er1
34814   ac_status=$?
34815   grep -v '^ *+' conftest.er1 >conftest.err
34816   rm -f conftest.er1
34817   cat conftest.err >&5
34818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819   (exit $ac_status); } &&
34820          { ac_try='test -z "$ac_c_werror_flag"
34821                          || test ! -s conftest.err'
34822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34823   (eval $ac_try) 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); }; } &&
34827          { ac_try='test -s conftest.$ac_objext'
34828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34829   (eval $ac_try) 2>&5
34830   ac_status=$?
34831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832   (exit $ac_status); }; }; then
34833   ac_header_compiler=yes
34834 else
34835   echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34837
34838 ac_header_compiler=no
34839 fi
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34842 echo "${ECHO_T}$ac_header_compiler" >&6
34843
34844 # Is the header present?
34845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34847 cat >conftest.$ac_ext <<_ACEOF
34848 /* confdefs.h.  */
34849 _ACEOF
34850 cat confdefs.h >>conftest.$ac_ext
34851 cat >>conftest.$ac_ext <<_ACEOF
34852 /* end confdefs.h.  */
34853 #include <$ac_header>
34854 _ACEOF
34855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34857   ac_status=$?
34858   grep -v '^ *+' conftest.er1 >conftest.err
34859   rm -f conftest.er1
34860   cat conftest.err >&5
34861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862   (exit $ac_status); } >/dev/null; then
34863   if test -s conftest.err; then
34864     ac_cpp_err=$ac_c_preproc_warn_flag
34865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34866   else
34867     ac_cpp_err=
34868   fi
34869 else
34870   ac_cpp_err=yes
34871 fi
34872 if test -z "$ac_cpp_err"; then
34873   ac_header_preproc=yes
34874 else
34875   echo "$as_me: failed program was:" >&5
34876 sed 's/^/| /' conftest.$ac_ext >&5
34877
34878   ac_header_preproc=no
34879 fi
34880 rm -f conftest.err conftest.$ac_ext
34881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34882 echo "${ECHO_T}$ac_header_preproc" >&6
34883
34884 # So?  What about this header?
34885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34886   yes:no: )
34887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34891     ac_header_preproc=yes
34892     ;;
34893   no:yes:* )
34894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34906     (
34907       cat <<\_ASBOX
34908 ## ------------------------------------------ ##
34909 ## Report this to the AC_PACKAGE_NAME lists.  ##
34910 ## ------------------------------------------ ##
34911 _ASBOX
34912     ) |
34913       sed "s/^/$as_me: WARNING:     /" >&2
34914     ;;
34915 esac
34916 echo "$as_me:$LINENO: checking for $ac_header" >&5
34917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34919   echo $ECHO_N "(cached) $ECHO_C" >&6
34920 else
34921   eval "$as_ac_Header=\$ac_header_preproc"
34922 fi
34923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34925
34926 fi
34927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34928   cat >>confdefs.h <<_ACEOF
34929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34930 _ACEOF
34931
34932 else
34933
34934                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34935 echo "$as_me: error: could not locate SQL headers" >&2;}
34936    { (exit 1); exit 1; }; }
34937
34938 fi
34939
34940 done
34941
34942
34943         sql_LIBS="$LIBS"
34944         LIBS="$LTHREAD_LIBS"
34945
34946         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34947 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34948 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34949   echo $ECHO_N "(cached) $ECHO_C" >&6
34950 else
34951   ac_check_lib_save_LIBS=$LIBS
34952 LIBS="-liodbc  $LIBS"
34953 cat >conftest.$ac_ext <<_ACEOF
34954 /* confdefs.h.  */
34955 _ACEOF
34956 cat confdefs.h >>conftest.$ac_ext
34957 cat >>conftest.$ac_ext <<_ACEOF
34958 /* end confdefs.h.  */
34959
34960 /* Override any gcc2 internal prototype to avoid an error.  */
34961 #ifdef __cplusplus
34962 extern "C"
34963 #endif
34964 /* We use char because int might match the return type of a gcc2
34965    builtin and then its argument prototype would still apply.  */
34966 char SQLDriverConnect ();
34967 int
34968 main ()
34969 {
34970 SQLDriverConnect ();
34971   ;
34972   return 0;
34973 }
34974 _ACEOF
34975 rm -f conftest.$ac_objext conftest$ac_exeext
34976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34977   (eval $ac_link) 2>conftest.er1
34978   ac_status=$?
34979   grep -v '^ *+' conftest.er1 >conftest.err
34980   rm -f conftest.er1
34981   cat conftest.err >&5
34982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34983   (exit $ac_status); } &&
34984          { ac_try='test -z "$ac_c_werror_flag"
34985                          || test ! -s conftest.err'
34986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34987   (eval $ac_try) 2>&5
34988   ac_status=$?
34989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990   (exit $ac_status); }; } &&
34991          { ac_try='test -s conftest$ac_exeext'
34992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34993   (eval $ac_try) 2>&5
34994   ac_status=$?
34995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996   (exit $ac_status); }; }; then
34997   ac_cv_lib_iodbc_SQLDriverConnect=yes
34998 else
34999   echo "$as_me: failed program was:" >&5
35000 sed 's/^/| /' conftest.$ac_ext >&5
35001
35002 ac_cv_lib_iodbc_SQLDriverConnect=no
35003 fi
35004 rm -f conftest.err conftest.$ac_objext \
35005       conftest$ac_exeext conftest.$ac_ext
35006 LIBS=$ac_check_lib_save_LIBS
35007 fi
35008 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
35009 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
35010 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
35011   have_iodbc=yes
35012 else
35013   have_iodbc=no
35014 fi
35015
35016         if test $have_iodbc = yes ; then
35017                 ol_link_sql="-liodbc"
35018         else
35019                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
35020 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
35021 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
35022   echo $ECHO_N "(cached) $ECHO_C" >&6
35023 else
35024   ac_check_lib_save_LIBS=$LIBS
35025 LIBS="-lodbc  $LIBS"
35026 cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032
35033 /* Override any gcc2 internal prototype to avoid an error.  */
35034 #ifdef __cplusplus
35035 extern "C"
35036 #endif
35037 /* We use char because int might match the return type of a gcc2
35038    builtin and then its argument prototype would still apply.  */
35039 char SQLDriverConnect ();
35040 int
35041 main ()
35042 {
35043 SQLDriverConnect ();
35044   ;
35045   return 0;
35046 }
35047 _ACEOF
35048 rm -f conftest.$ac_objext conftest$ac_exeext
35049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35050   (eval $ac_link) 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } &&
35057          { ac_try='test -z "$ac_c_werror_flag"
35058                          || test ! -s conftest.err'
35059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35060   (eval $ac_try) 2>&5
35061   ac_status=$?
35062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063   (exit $ac_status); }; } &&
35064          { ac_try='test -s conftest$ac_exeext'
35065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066   (eval $ac_try) 2>&5
35067   ac_status=$?
35068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069   (exit $ac_status); }; }; then
35070   ac_cv_lib_odbc_SQLDriverConnect=yes
35071 else
35072   echo "$as_me: failed program was:" >&5
35073 sed 's/^/| /' conftest.$ac_ext >&5
35074
35075 ac_cv_lib_odbc_SQLDriverConnect=no
35076 fi
35077 rm -f conftest.err conftest.$ac_objext \
35078       conftest$ac_exeext conftest.$ac_ext
35079 LIBS=$ac_check_lib_save_LIBS
35080 fi
35081 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
35082 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
35083 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
35084   have_odbc=yes
35085 else
35086   have_odbc=no
35087 fi
35088
35089                 if test $have_odbc = yes ; then
35090                         ol_link_sql="-lodbc"
35091                 fi
35092         fi
35093
35094         LIBS="$sql_LIBS"
35095
35096         if test $ol_link_sql != no ; then
35097                 SLAPD_SQL_LIBS="$ol_link_sql"
35098
35099         elif test $ol_enable_sql != auto ; then
35100                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35101 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35102    { (exit 1); exit 1; }; }
35103         fi
35104 fi
35105
35106 WITH_SASL=no
35107 ol_link_sasl=no
35108 ol_link_spasswd=no
35109 if test $ol_with_cyrus_sasl != no ; then
35110
35111
35112 for ac_header in sasl/sasl.h sasl.h
35113 do
35114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35116   echo "$as_me:$LINENO: checking for $ac_header" >&5
35117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35119   echo $ECHO_N "(cached) $ECHO_C" >&6
35120 fi
35121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35123 else
35124   # Is the header compilable?
35125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35127 cat >conftest.$ac_ext <<_ACEOF
35128 /* confdefs.h.  */
35129 _ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h.  */
35133 $ac_includes_default
35134 #include <$ac_header>
35135 _ACEOF
35136 rm -f conftest.$ac_objext
35137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35138   (eval $ac_compile) 2>conftest.er1
35139   ac_status=$?
35140   grep -v '^ *+' conftest.er1 >conftest.err
35141   rm -f conftest.er1
35142   cat conftest.err >&5
35143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144   (exit $ac_status); } &&
35145          { ac_try='test -z "$ac_c_werror_flag"
35146                          || test ! -s conftest.err'
35147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35148   (eval $ac_try) 2>&5
35149   ac_status=$?
35150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151   (exit $ac_status); }; } &&
35152          { ac_try='test -s conftest.$ac_objext'
35153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154   (eval $ac_try) 2>&5
35155   ac_status=$?
35156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157   (exit $ac_status); }; }; then
35158   ac_header_compiler=yes
35159 else
35160   echo "$as_me: failed program was:" >&5
35161 sed 's/^/| /' conftest.$ac_ext >&5
35162
35163 ac_header_compiler=no
35164 fi
35165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35167 echo "${ECHO_T}$ac_header_compiler" >&6
35168
35169 # Is the header present?
35170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35172 cat >conftest.$ac_ext <<_ACEOF
35173 /* confdefs.h.  */
35174 _ACEOF
35175 cat confdefs.h >>conftest.$ac_ext
35176 cat >>conftest.$ac_ext <<_ACEOF
35177 /* end confdefs.h.  */
35178 #include <$ac_header>
35179 _ACEOF
35180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35182   ac_status=$?
35183   grep -v '^ *+' conftest.er1 >conftest.err
35184   rm -f conftest.er1
35185   cat conftest.err >&5
35186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187   (exit $ac_status); } >/dev/null; then
35188   if test -s conftest.err; then
35189     ac_cpp_err=$ac_c_preproc_warn_flag
35190     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35191   else
35192     ac_cpp_err=
35193   fi
35194 else
35195   ac_cpp_err=yes
35196 fi
35197 if test -z "$ac_cpp_err"; then
35198   ac_header_preproc=yes
35199 else
35200   echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35202
35203   ac_header_preproc=no
35204 fi
35205 rm -f conftest.err conftest.$ac_ext
35206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35207 echo "${ECHO_T}$ac_header_preproc" >&6
35208
35209 # So?  What about this header?
35210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35211   yes:no: )
35212     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35216     ac_header_preproc=yes
35217     ;;
35218   no:yes:* )
35219     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35221     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35222 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35223     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35225     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35226 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35229     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35231     (
35232       cat <<\_ASBOX
35233 ## ------------------------------------------ ##
35234 ## Report this to the AC_PACKAGE_NAME lists.  ##
35235 ## ------------------------------------------ ##
35236 _ASBOX
35237     ) |
35238       sed "s/^/$as_me: WARNING:     /" >&2
35239     ;;
35240 esac
35241 echo "$as_me:$LINENO: checking for $ac_header" >&5
35242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35244   echo $ECHO_N "(cached) $ECHO_C" >&6
35245 else
35246   eval "$as_ac_Header=\$ac_header_preproc"
35247 fi
35248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35250
35251 fi
35252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35253   cat >>confdefs.h <<_ACEOF
35254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35255 _ACEOF
35256
35257 fi
35258
35259 done
35260
35261
35262         if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
35263                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35264 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35265 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35266   echo $ECHO_N "(cached) $ECHO_C" >&6
35267 else
35268   ac_check_lib_save_LIBS=$LIBS
35269 LIBS="-lsasl2  $LIBS"
35270 cat >conftest.$ac_ext <<_ACEOF
35271 /* confdefs.h.  */
35272 _ACEOF
35273 cat confdefs.h >>conftest.$ac_ext
35274 cat >>conftest.$ac_ext <<_ACEOF
35275 /* end confdefs.h.  */
35276
35277 /* Override any gcc2 internal prototype to avoid an error.  */
35278 #ifdef __cplusplus
35279 extern "C"
35280 #endif
35281 /* We use char because int might match the return type of a gcc2
35282    builtin and then its argument prototype would still apply.  */
35283 char sasl_client_init ();
35284 int
35285 main ()
35286 {
35287 sasl_client_init ();
35288   ;
35289   return 0;
35290 }
35291 _ACEOF
35292 rm -f conftest.$ac_objext conftest$ac_exeext
35293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35294   (eval $ac_link) 2>conftest.er1
35295   ac_status=$?
35296   grep -v '^ *+' conftest.er1 >conftest.err
35297   rm -f conftest.er1
35298   cat conftest.err >&5
35299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35300   (exit $ac_status); } &&
35301          { ac_try='test -z "$ac_c_werror_flag"
35302                          || test ! -s conftest.err'
35303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304   (eval $ac_try) 2>&5
35305   ac_status=$?
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); }; } &&
35308          { ac_try='test -s conftest$ac_exeext'
35309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310   (eval $ac_try) 2>&5
35311   ac_status=$?
35312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313   (exit $ac_status); }; }; then
35314   ac_cv_lib_sasl2_sasl_client_init=yes
35315 else
35316   echo "$as_me: failed program was:" >&5
35317 sed 's/^/| /' conftest.$ac_ext >&5
35318
35319 ac_cv_lib_sasl2_sasl_client_init=no
35320 fi
35321 rm -f conftest.err conftest.$ac_objext \
35322       conftest$ac_exeext conftest.$ac_ext
35323 LIBS=$ac_check_lib_save_LIBS
35324 fi
35325 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35326 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35327 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35328   ol_link_sasl="-lsasl2"
35329 else
35330   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35331 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35332 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35333   echo $ECHO_N "(cached) $ECHO_C" >&6
35334 else
35335   ac_check_lib_save_LIBS=$LIBS
35336 LIBS="-lsasl  $LIBS"
35337 cat >conftest.$ac_ext <<_ACEOF
35338 /* confdefs.h.  */
35339 _ACEOF
35340 cat confdefs.h >>conftest.$ac_ext
35341 cat >>conftest.$ac_ext <<_ACEOF
35342 /* end confdefs.h.  */
35343
35344 /* Override any gcc2 internal prototype to avoid an error.  */
35345 #ifdef __cplusplus
35346 extern "C"
35347 #endif
35348 /* We use char because int might match the return type of a gcc2
35349    builtin and then its argument prototype would still apply.  */
35350 char sasl_client_init ();
35351 int
35352 main ()
35353 {
35354 sasl_client_init ();
35355   ;
35356   return 0;
35357 }
35358 _ACEOF
35359 rm -f conftest.$ac_objext conftest$ac_exeext
35360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35361   (eval $ac_link) 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); } &&
35368          { ac_try='test -z "$ac_c_werror_flag"
35369                          || test ! -s conftest.err'
35370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371   (eval $ac_try) 2>&5
35372   ac_status=$?
35373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374   (exit $ac_status); }; } &&
35375          { ac_try='test -s conftest$ac_exeext'
35376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377   (eval $ac_try) 2>&5
35378   ac_status=$?
35379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380   (exit $ac_status); }; }; then
35381   ac_cv_lib_sasl_sasl_client_init=yes
35382 else
35383   echo "$as_me: failed program was:" >&5
35384 sed 's/^/| /' conftest.$ac_ext >&5
35385
35386 ac_cv_lib_sasl_sasl_client_init=no
35387 fi
35388 rm -f conftest.err conftest.$ac_objext \
35389       conftest$ac_exeext conftest.$ac_ext
35390 LIBS=$ac_check_lib_save_LIBS
35391 fi
35392 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35393 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35394 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35395   ol_link_sasl="-lsasl"
35396 fi
35397
35398 fi
35399
35400         fi
35401
35402         if test $ol_link_sasl = no ; then
35403                 if test $ol_with_cyrus_sasl != auto ; then
35404                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35405 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35406    { (exit 1); exit 1; }; }
35407                 else
35408                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35409 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35410                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35411 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35412                         if test $ol_link_tls = no ; then
35413                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35414 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35415                         fi
35416                 fi
35417         else
35418                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35419 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35420 if test "${ol_cv_sasl_compat+set}" = set; then
35421   echo $ECHO_N "(cached) $ECHO_C" >&6
35422 else
35423
35424         cat >conftest.$ac_ext <<_ACEOF
35425 /* confdefs.h.  */
35426 _ACEOF
35427 cat confdefs.h >>conftest.$ac_ext
35428 cat >>conftest.$ac_ext <<_ACEOF
35429 /* end confdefs.h.  */
35430
35431 #ifdef HAVE_SASL_SASL_H
35432 #include <sasl/sasl.h>
35433 #else
35434 #include <sasl.h>
35435 #endif
35436
35437 /* Require 2.1.15+ */
35438 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35439         char *__sasl_compat = "2.2+ or better okay (we guess)";
35440 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35441         && SASL_VERSION_STEP >=15
35442         char *__sasl_compat = "2.1.15+ or better okay";
35443 #endif
35444
35445 _ACEOF
35446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35447   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35448   ol_cv_sasl_compat=yes
35449 else
35450   ol_cv_sasl_compat=no
35451 fi
35452 rm -f conftest*
35453
35454 fi
35455 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35456 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35457
35458                 if test $ol_cv_sasl_compat = no ; then
35459                         ol_link_sasl=no
35460                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35461 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35462    { (exit 1); exit 1; }; }
35463                 fi
35464
35465
35466 cat >>confdefs.h <<\_ACEOF
35467 #define HAVE_CYRUS_SASL 1
35468 _ACEOF
35469
35470                 SASL_LIBS="$ol_link_sasl"
35471                 if test $ol_enable_spasswd != no ; then
35472                         ol_link_spasswd=yes
35473                 fi
35474
35475                 ac_save_LIBS="$LIBS"
35476                 LIBS="$LIBS $ol_link_sasl"
35477                 echo "$as_me:$LINENO: checking for sasl_version" >&5
35478 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35479 if test "${ac_cv_func_sasl_version+set}" = set; then
35480   echo $ECHO_N "(cached) $ECHO_C" >&6
35481 else
35482   cat >conftest.$ac_ext <<_ACEOF
35483 /* confdefs.h.  */
35484 _ACEOF
35485 cat confdefs.h >>conftest.$ac_ext
35486 cat >>conftest.$ac_ext <<_ACEOF
35487 /* end confdefs.h.  */
35488 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35490 #define sasl_version innocuous_sasl_version
35491
35492 /* System header to define __stub macros and hopefully few prototypes,
35493     which can conflict with char sasl_version (); below.
35494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35495     <limits.h> exists even on freestanding compilers.  */
35496
35497 #ifdef __STDC__
35498 # include <limits.h>
35499 #else
35500 # include <assert.h>
35501 #endif
35502
35503 #undef sasl_version
35504
35505 /* Override any gcc2 internal prototype to avoid an error.  */
35506 #ifdef __cplusplus
35507 extern "C"
35508 {
35509 #endif
35510 /* We use char because int might match the return type of a gcc2
35511    builtin and then its argument prototype would still apply.  */
35512 char sasl_version ();
35513 /* The GNU C library defines this for functions which it implements
35514     to always fail with ENOSYS.  Some functions are actually named
35515     something starting with __ and the normal name is an alias.  */
35516 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35517 choke me
35518 #else
35519 char (*f) () = sasl_version;
35520 #endif
35521 #ifdef __cplusplus
35522 }
35523 #endif
35524
35525 int
35526 main ()
35527 {
35528 return f != sasl_version;
35529   ;
35530   return 0;
35531 }
35532 _ACEOF
35533 rm -f conftest.$ac_objext conftest$ac_exeext
35534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35535   (eval $ac_link) 2>conftest.er1
35536   ac_status=$?
35537   grep -v '^ *+' conftest.er1 >conftest.err
35538   rm -f conftest.er1
35539   cat conftest.err >&5
35540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541   (exit $ac_status); } &&
35542          { ac_try='test -z "$ac_c_werror_flag"
35543                          || test ! -s conftest.err'
35544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545   (eval $ac_try) 2>&5
35546   ac_status=$?
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); }; } &&
35549          { ac_try='test -s conftest$ac_exeext'
35550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551   (eval $ac_try) 2>&5
35552   ac_status=$?
35553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554   (exit $ac_status); }; }; then
35555   ac_cv_func_sasl_version=yes
35556 else
35557   echo "$as_me: failed program was:" >&5
35558 sed 's/^/| /' conftest.$ac_ext >&5
35559
35560 ac_cv_func_sasl_version=no
35561 fi
35562 rm -f conftest.err conftest.$ac_objext \
35563       conftest$ac_exeext conftest.$ac_ext
35564 fi
35565 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35566 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35567 if test $ac_cv_func_sasl_version = yes; then
35568
35569 cat >>confdefs.h <<\_ACEOF
35570 #define HAVE_SASL_VERSION 1
35571 _ACEOF
35572
35573 fi
35574
35575                 LIBS="$ac_save_LIBS"
35576
35577                 WITH_SASL=yes
35578         fi
35579
35580 else
35581         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35582 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35583         if test $ol_link_tls = no ; then
35584                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35585 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35586         fi
35587 fi
35588
35589 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
35590         dev=no
35591         if test -r /dev/urandom ; then
35592                 dev="/dev/urandom";
35593         elif test -r /idev/urandom ; then
35594                 dev="/idev/urandom";
35595         elif test -r /dev/srandom ; then
35596                 dev="/dev/srandom";
35597         elif test -r /dev/random ; then
35598                 dev="/dev/random";
35599         elif test -r /idev/random ; then
35600                 dev="/idev/random";
35601         fi
35602
35603         if test $dev != no ; then
35604
35605 cat >>confdefs.h <<_ACEOF
35606 #define URANDOM_DEVICE "$dev"
35607 _ACEOF
35608
35609         fi
35610 fi
35611
35612 ol_link_fetch=no
35613 if test $ol_with_fetch != no ; then
35614         ol_LIBS=$LIBS
35615 LIBS="-lfetch -lcom_err $LIBS"
35616 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35617 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35618 if test "${ol_cv_lib_fetch+set}" = set; then
35619   echo $ECHO_N "(cached) $ECHO_C" >&6
35620 else
35621
35622         cat >conftest.$ac_ext <<_ACEOF
35623 /* confdefs.h.  */
35624 _ACEOF
35625 cat confdefs.h >>conftest.$ac_ext
35626 cat >>conftest.$ac_ext <<_ACEOF
35627 /* end confdefs.h.  */
35628
35629 #include <sys/param.h>
35630 #include <stdio.h>
35631 #include <fetch.h>
35632 int
35633 main ()
35634 {
35635 struct url *u = fetchParseURL("file:///");
35636   ;
35637   return 0;
35638 }
35639 _ACEOF
35640 rm -f conftest.$ac_objext conftest$ac_exeext
35641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35642   (eval $ac_link) 2>conftest.er1
35643   ac_status=$?
35644   grep -v '^ *+' conftest.er1 >conftest.err
35645   rm -f conftest.er1
35646   cat conftest.err >&5
35647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648   (exit $ac_status); } &&
35649          { ac_try='test -z "$ac_c_werror_flag"
35650                          || test ! -s conftest.err'
35651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35652   (eval $ac_try) 2>&5
35653   ac_status=$?
35654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35655   (exit $ac_status); }; } &&
35656          { ac_try='test -s conftest$ac_exeext'
35657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35658   (eval $ac_try) 2>&5
35659   ac_status=$?
35660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661   (exit $ac_status); }; }; then
35662   ol_cv_lib_fetch=yes
35663 else
35664   echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35666
35667 ol_cv_lib_fetch=no
35668 fi
35669 rm -f conftest.err conftest.$ac_objext \
35670       conftest$ac_exeext conftest.$ac_ext
35671 fi
35672 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35673 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35674 LIBS=$ol_LIBS
35675 if test $ol_cv_lib_fetch != no ; then
35676         ol_link_fetch="-lfetch -lcom_err"
35677
35678 cat >>confdefs.h <<\_ACEOF
35679 #define HAVE_FETCH 1
35680 _ACEOF
35681
35682 fi
35683
35684
35685         if test $ol_cv_lib_fetch != no ; then
35686                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35687                 ol_link_fetch=freebsd
35688
35689         elif test $ol_with_fetch != auto ; then
35690                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35691 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35692    { (exit 1); exit 1; }; }
35693         fi
35694 fi
35695
35696 if test $ol_enable_crypt != no ; then
35697         save_LIBS="$LIBS"
35698         LIBS="$TLS_LIBS $LIBS"
35699
35700         echo "$as_me:$LINENO: checking for crypt" >&5
35701 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35702 if test "${ac_cv_func_crypt+set}" = set; then
35703   echo $ECHO_N "(cached) $ECHO_C" >&6
35704 else
35705   cat >conftest.$ac_ext <<_ACEOF
35706 /* confdefs.h.  */
35707 _ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h.  */
35711 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35713 #define crypt innocuous_crypt
35714
35715 /* System header to define __stub macros and hopefully few prototypes,
35716     which can conflict with char crypt (); below.
35717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35718     <limits.h> exists even on freestanding compilers.  */
35719
35720 #ifdef __STDC__
35721 # include <limits.h>
35722 #else
35723 # include <assert.h>
35724 #endif
35725
35726 #undef crypt
35727
35728 /* Override any gcc2 internal prototype to avoid an error.  */
35729 #ifdef __cplusplus
35730 extern "C"
35731 {
35732 #endif
35733 /* We use char because int might match the return type of a gcc2
35734    builtin and then its argument prototype would still apply.  */
35735 char crypt ();
35736 /* The GNU C library defines this for functions which it implements
35737     to always fail with ENOSYS.  Some functions are actually named
35738     something starting with __ and the normal name is an alias.  */
35739 #if defined (__stub_crypt) || defined (__stub___crypt)
35740 choke me
35741 #else
35742 char (*f) () = crypt;
35743 #endif
35744 #ifdef __cplusplus
35745 }
35746 #endif
35747
35748 int
35749 main ()
35750 {
35751 return f != crypt;
35752   ;
35753   return 0;
35754 }
35755 _ACEOF
35756 rm -f conftest.$ac_objext conftest$ac_exeext
35757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35758   (eval $ac_link) 2>conftest.er1
35759   ac_status=$?
35760   grep -v '^ *+' conftest.er1 >conftest.err
35761   rm -f conftest.er1
35762   cat conftest.err >&5
35763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); } &&
35765          { ac_try='test -z "$ac_c_werror_flag"
35766                          || test ! -s conftest.err'
35767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768   (eval $ac_try) 2>&5
35769   ac_status=$?
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); }; } &&
35772          { ac_try='test -s conftest$ac_exeext'
35773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774   (eval $ac_try) 2>&5
35775   ac_status=$?
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); }; }; then
35778   ac_cv_func_crypt=yes
35779 else
35780   echo "$as_me: failed program was:" >&5
35781 sed 's/^/| /' conftest.$ac_ext >&5
35782
35783 ac_cv_func_crypt=no
35784 fi
35785 rm -f conftest.err conftest.$ac_objext \
35786       conftest$ac_exeext conftest.$ac_ext
35787 fi
35788 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35789 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35790 if test $ac_cv_func_crypt = yes; then
35791   have_crypt=yes
35792 else
35793
35794                 LIBS="$save_LIBS"
35795                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35796 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35797 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35798   echo $ECHO_N "(cached) $ECHO_C" >&6
35799 else
35800   ac_check_lib_save_LIBS=$LIBS
35801 LIBS="-lcrypt  $LIBS"
35802 cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h.  */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h.  */
35808
35809 /* Override any gcc2 internal prototype to avoid an error.  */
35810 #ifdef __cplusplus
35811 extern "C"
35812 #endif
35813 /* We use char because int might match the return type of a gcc2
35814    builtin and then its argument prototype would still apply.  */
35815 char crypt ();
35816 int
35817 main ()
35818 {
35819 crypt ();
35820   ;
35821   return 0;
35822 }
35823 _ACEOF
35824 rm -f conftest.$ac_objext conftest$ac_exeext
35825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35826   (eval $ac_link) 2>conftest.er1
35827   ac_status=$?
35828   grep -v '^ *+' conftest.er1 >conftest.err
35829   rm -f conftest.er1
35830   cat conftest.err >&5
35831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832   (exit $ac_status); } &&
35833          { ac_try='test -z "$ac_c_werror_flag"
35834                          || test ! -s conftest.err'
35835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35836   (eval $ac_try) 2>&5
35837   ac_status=$?
35838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839   (exit $ac_status); }; } &&
35840          { ac_try='test -s conftest$ac_exeext'
35841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842   (eval $ac_try) 2>&5
35843   ac_status=$?
35844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); }; }; then
35846   ac_cv_lib_crypt_crypt=yes
35847 else
35848   echo "$as_me: failed program was:" >&5
35849 sed 's/^/| /' conftest.$ac_ext >&5
35850
35851 ac_cv_lib_crypt_crypt=no
35852 fi
35853 rm -f conftest.err conftest.$ac_objext \
35854       conftest$ac_exeext conftest.$ac_ext
35855 LIBS=$ac_check_lib_save_LIBS
35856 fi
35857 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35858 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35859 if test $ac_cv_lib_crypt_crypt = yes; then
35860   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35861                         have_crypt=yes
35862 else
35863   have_crypt=no
35864 fi
35865
35866 fi
35867
35868
35869         LIBS="$save_LIBS"
35870
35871         if test $have_crypt = yes ; then
35872
35873 cat >>confdefs.h <<\_ACEOF
35874 #define HAVE_CRYPT 1
35875 _ACEOF
35876
35877         else
35878                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35879 echo "$as_me: WARNING: could not find crypt" >&2;}
35880                 if test $ol_enable_crypt = yes ; then
35881                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35882 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35883    { (exit 1); exit 1; }; }
35884                 fi
35885
35886                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35887 echo "$as_me: WARNING: disabling crypt support" >&2;}
35888                 ol_enable_crypt=no
35889         fi
35890 fi
35891
35892 if test $ol_enable_proctitle != no ; then
35893         echo "$as_me:$LINENO: checking for setproctitle" >&5
35894 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35895 if test "${ac_cv_func_setproctitle+set}" = set; then
35896   echo $ECHO_N "(cached) $ECHO_C" >&6
35897 else
35898   cat >conftest.$ac_ext <<_ACEOF
35899 /* confdefs.h.  */
35900 _ACEOF
35901 cat confdefs.h >>conftest.$ac_ext
35902 cat >>conftest.$ac_ext <<_ACEOF
35903 /* end confdefs.h.  */
35904 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35906 #define setproctitle innocuous_setproctitle
35907
35908 /* System header to define __stub macros and hopefully few prototypes,
35909     which can conflict with char setproctitle (); below.
35910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35911     <limits.h> exists even on freestanding compilers.  */
35912
35913 #ifdef __STDC__
35914 # include <limits.h>
35915 #else
35916 # include <assert.h>
35917 #endif
35918
35919 #undef setproctitle
35920
35921 /* Override any gcc2 internal prototype to avoid an error.  */
35922 #ifdef __cplusplus
35923 extern "C"
35924 {
35925 #endif
35926 /* We use char because int might match the return type of a gcc2
35927    builtin and then its argument prototype would still apply.  */
35928 char setproctitle ();
35929 /* The GNU C library defines this for functions which it implements
35930     to always fail with ENOSYS.  Some functions are actually named
35931     something starting with __ and the normal name is an alias.  */
35932 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35933 choke me
35934 #else
35935 char (*f) () = setproctitle;
35936 #endif
35937 #ifdef __cplusplus
35938 }
35939 #endif
35940
35941 int
35942 main ()
35943 {
35944 return f != setproctitle;
35945   ;
35946   return 0;
35947 }
35948 _ACEOF
35949 rm -f conftest.$ac_objext conftest$ac_exeext
35950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35951   (eval $ac_link) 2>conftest.er1
35952   ac_status=$?
35953   grep -v '^ *+' conftest.er1 >conftest.err
35954   rm -f conftest.er1
35955   cat conftest.err >&5
35956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957   (exit $ac_status); } &&
35958          { ac_try='test -z "$ac_c_werror_flag"
35959                          || test ! -s conftest.err'
35960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961   (eval $ac_try) 2>&5
35962   ac_status=$?
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); }; } &&
35965          { ac_try='test -s conftest$ac_exeext'
35966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967   (eval $ac_try) 2>&5
35968   ac_status=$?
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); }; }; then
35971   ac_cv_func_setproctitle=yes
35972 else
35973   echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35975
35976 ac_cv_func_setproctitle=no
35977 fi
35978 rm -f conftest.err conftest.$ac_objext \
35979       conftest$ac_exeext conftest.$ac_ext
35980 fi
35981 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35982 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35983 if test $ac_cv_func_setproctitle = yes; then
35984   have_setproctitle=yes
35985 else
35986
35987                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35988 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35989 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35990   echo $ECHO_N "(cached) $ECHO_C" >&6
35991 else
35992   ac_check_lib_save_LIBS=$LIBS
35993 LIBS="-lutil  $LIBS"
35994 cat >conftest.$ac_ext <<_ACEOF
35995 /* confdefs.h.  */
35996 _ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h.  */
36000
36001 /* Override any gcc2 internal prototype to avoid an error.  */
36002 #ifdef __cplusplus
36003 extern "C"
36004 #endif
36005 /* We use char because int might match the return type of a gcc2
36006    builtin and then its argument prototype would still apply.  */
36007 char setproctitle ();
36008 int
36009 main ()
36010 {
36011 setproctitle ();
36012   ;
36013   return 0;
36014 }
36015 _ACEOF
36016 rm -f conftest.$ac_objext conftest$ac_exeext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36018   (eval $ac_link) 2>conftest.er1
36019   ac_status=$?
36020   grep -v '^ *+' conftest.er1 >conftest.err
36021   rm -f conftest.er1
36022   cat conftest.err >&5
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); } &&
36025          { ac_try='test -z "$ac_c_werror_flag"
36026                          || test ! -s conftest.err'
36027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36028   (eval $ac_try) 2>&5
36029   ac_status=$?
36030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031   (exit $ac_status); }; } &&
36032          { ac_try='test -s conftest$ac_exeext'
36033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034   (eval $ac_try) 2>&5
36035   ac_status=$?
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); }; }; then
36038   ac_cv_lib_util_setproctitle=yes
36039 else
36040   echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36042
36043 ac_cv_lib_util_setproctitle=no
36044 fi
36045 rm -f conftest.err conftest.$ac_objext \
36046       conftest$ac_exeext conftest.$ac_ext
36047 LIBS=$ac_check_lib_save_LIBS
36048 fi
36049 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
36050 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
36051 if test $ac_cv_lib_util_setproctitle = yes; then
36052   have_setproctitle=yes
36053                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
36054 else
36055   have_setproctitle=no
36056                         case $LIBOBJS in
36057     "setproctitle.$ac_objext"   | \
36058   *" setproctitle.$ac_objext"   | \
36059     "setproctitle.$ac_objext "* | \
36060   *" setproctitle.$ac_objext "* ) ;;
36061   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
36062 esac
36063
36064                         LIBSRCS="$LIBSRCS setproctitle.c"
36065 fi
36066
36067 fi
36068
36069
36070         if test $have_setproctitle = yes ; then
36071
36072 cat >>confdefs.h <<\_ACEOF
36073 #define HAVE_SETPROCTITLE 1
36074 _ACEOF
36075
36076         fi
36077 fi
36078
36079 if test $ol_enable_slp != no ; then
36080
36081 for ac_header in slp.h
36082 do
36083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36085   echo "$as_me:$LINENO: checking for $ac_header" >&5
36086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36088   echo $ECHO_N "(cached) $ECHO_C" >&6
36089 fi
36090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36092 else
36093   # Is the header compilable?
36094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36096 cat >conftest.$ac_ext <<_ACEOF
36097 /* confdefs.h.  */
36098 _ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h.  */
36102 $ac_includes_default
36103 #include <$ac_header>
36104 _ACEOF
36105 rm -f conftest.$ac_objext
36106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36107   (eval $ac_compile) 2>conftest.er1
36108   ac_status=$?
36109   grep -v '^ *+' conftest.er1 >conftest.err
36110   rm -f conftest.er1
36111   cat conftest.err >&5
36112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113   (exit $ac_status); } &&
36114          { ac_try='test -z "$ac_c_werror_flag"
36115                          || test ! -s conftest.err'
36116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36117   (eval $ac_try) 2>&5
36118   ac_status=$?
36119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120   (exit $ac_status); }; } &&
36121          { ac_try='test -s conftest.$ac_objext'
36122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123   (eval $ac_try) 2>&5
36124   ac_status=$?
36125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126   (exit $ac_status); }; }; then
36127   ac_header_compiler=yes
36128 else
36129   echo "$as_me: failed program was:" >&5
36130 sed 's/^/| /' conftest.$ac_ext >&5
36131
36132 ac_header_compiler=no
36133 fi
36134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36136 echo "${ECHO_T}$ac_header_compiler" >&6
36137
36138 # Is the header present?
36139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36141 cat >conftest.$ac_ext <<_ACEOF
36142 /* confdefs.h.  */
36143 _ACEOF
36144 cat confdefs.h >>conftest.$ac_ext
36145 cat >>conftest.$ac_ext <<_ACEOF
36146 /* end confdefs.h.  */
36147 #include <$ac_header>
36148 _ACEOF
36149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36151   ac_status=$?
36152   grep -v '^ *+' conftest.er1 >conftest.err
36153   rm -f conftest.er1
36154   cat conftest.err >&5
36155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156   (exit $ac_status); } >/dev/null; then
36157   if test -s conftest.err; then
36158     ac_cpp_err=$ac_c_preproc_warn_flag
36159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36160   else
36161     ac_cpp_err=
36162   fi
36163 else
36164   ac_cpp_err=yes
36165 fi
36166 if test -z "$ac_cpp_err"; then
36167   ac_header_preproc=yes
36168 else
36169   echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172   ac_header_preproc=no
36173 fi
36174 rm -f conftest.err conftest.$ac_ext
36175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36176 echo "${ECHO_T}$ac_header_preproc" >&6
36177
36178 # So?  What about this header?
36179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36180   yes:no: )
36181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36185     ac_header_preproc=yes
36186     ;;
36187   no:yes:* )
36188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36200     (
36201       cat <<\_ASBOX
36202 ## ------------------------------------------ ##
36203 ## Report this to the AC_PACKAGE_NAME lists.  ##
36204 ## ------------------------------------------ ##
36205 _ASBOX
36206     ) |
36207       sed "s/^/$as_me: WARNING:     /" >&2
36208     ;;
36209 esac
36210 echo "$as_me:$LINENO: checking for $ac_header" >&5
36211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36213   echo $ECHO_N "(cached) $ECHO_C" >&6
36214 else
36215   eval "$as_ac_Header=\$ac_header_preproc"
36216 fi
36217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36219
36220 fi
36221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36222   cat >>confdefs.h <<_ACEOF
36223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36224 _ACEOF
36225
36226 fi
36227
36228 done
36229
36230
36231         if test $ac_cv_header_slp_h = yes ; then
36232                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36233 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36234 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36235   echo $ECHO_N "(cached) $ECHO_C" >&6
36236 else
36237   ac_check_lib_save_LIBS=$LIBS
36238 LIBS="-lslp  $LIBS"
36239 cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245
36246 /* Override any gcc2 internal prototype to avoid an error.  */
36247 #ifdef __cplusplus
36248 extern "C"
36249 #endif
36250 /* We use char because int might match the return type of a gcc2
36251    builtin and then its argument prototype would still apply.  */
36252 char SLPOpen ();
36253 int
36254 main ()
36255 {
36256 SLPOpen ();
36257   ;
36258   return 0;
36259 }
36260 _ACEOF
36261 rm -f conftest.$ac_objext conftest$ac_exeext
36262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36263   (eval $ac_link) 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } &&
36270          { ac_try='test -z "$ac_c_werror_flag"
36271                          || test ! -s conftest.err'
36272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273   (eval $ac_try) 2>&5
36274   ac_status=$?
36275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276   (exit $ac_status); }; } &&
36277          { ac_try='test -s conftest$ac_exeext'
36278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279   (eval $ac_try) 2>&5
36280   ac_status=$?
36281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282   (exit $ac_status); }; }; then
36283   ac_cv_lib_slp_SLPOpen=yes
36284 else
36285   echo "$as_me: failed program was:" >&5
36286 sed 's/^/| /' conftest.$ac_ext >&5
36287
36288 ac_cv_lib_slp_SLPOpen=no
36289 fi
36290 rm -f conftest.err conftest.$ac_objext \
36291       conftest$ac_exeext conftest.$ac_ext
36292 LIBS=$ac_check_lib_save_LIBS
36293 fi
36294 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36295 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36296 if test $ac_cv_lib_slp_SLPOpen = yes; then
36297   have_slp=yes
36298 else
36299   have_slp=no
36300 fi
36301
36302                 if test $have_slp = yes ; then
36303
36304 cat >>confdefs.h <<\_ACEOF
36305 #define HAVE_SLP 1
36306 _ACEOF
36307
36308                         SLAPD_SLP_LIBS=-lslp
36309                 fi
36310
36311         elif test $ol_enable_slp = yes ; then
36312                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36313 echo "$as_me: error: SLP not found" >&2;}
36314    { (exit 1); exit 1; }; }
36315         fi
36316 fi
36317
36318 if test "$ol_with_multiple_precision" != "no" ; then
36319         ol_have_bignum=no
36320         ol_have_gmp=no
36321
36322
36323
36324 for ac_header in openssl/bn.h bn.h
36325 do
36326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36328   echo "$as_me:$LINENO: checking for $ac_header" >&5
36329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36331   echo $ECHO_N "(cached) $ECHO_C" >&6
36332 fi
36333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36335 else
36336   # Is the header compilable?
36337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36339 cat >conftest.$ac_ext <<_ACEOF
36340 /* confdefs.h.  */
36341 _ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h.  */
36345 $ac_includes_default
36346 #include <$ac_header>
36347 _ACEOF
36348 rm -f conftest.$ac_objext
36349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36350   (eval $ac_compile) 2>conftest.er1
36351   ac_status=$?
36352   grep -v '^ *+' conftest.er1 >conftest.err
36353   rm -f conftest.er1
36354   cat conftest.err >&5
36355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356   (exit $ac_status); } &&
36357          { ac_try='test -z "$ac_c_werror_flag"
36358                          || test ! -s conftest.err'
36359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36360   (eval $ac_try) 2>&5
36361   ac_status=$?
36362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363   (exit $ac_status); }; } &&
36364          { ac_try='test -s conftest.$ac_objext'
36365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366   (eval $ac_try) 2>&5
36367   ac_status=$?
36368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369   (exit $ac_status); }; }; then
36370   ac_header_compiler=yes
36371 else
36372   echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36374
36375 ac_header_compiler=no
36376 fi
36377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36379 echo "${ECHO_T}$ac_header_compiler" >&6
36380
36381 # Is the header present?
36382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36384 cat >conftest.$ac_ext <<_ACEOF
36385 /* confdefs.h.  */
36386 _ACEOF
36387 cat confdefs.h >>conftest.$ac_ext
36388 cat >>conftest.$ac_ext <<_ACEOF
36389 /* end confdefs.h.  */
36390 #include <$ac_header>
36391 _ACEOF
36392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36394   ac_status=$?
36395   grep -v '^ *+' conftest.er1 >conftest.err
36396   rm -f conftest.er1
36397   cat conftest.err >&5
36398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399   (exit $ac_status); } >/dev/null; then
36400   if test -s conftest.err; then
36401     ac_cpp_err=$ac_c_preproc_warn_flag
36402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36403   else
36404     ac_cpp_err=
36405   fi
36406 else
36407   ac_cpp_err=yes
36408 fi
36409 if test -z "$ac_cpp_err"; then
36410   ac_header_preproc=yes
36411 else
36412   echo "$as_me: failed program was:" >&5
36413 sed 's/^/| /' conftest.$ac_ext >&5
36414
36415   ac_header_preproc=no
36416 fi
36417 rm -f conftest.err conftest.$ac_ext
36418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36419 echo "${ECHO_T}$ac_header_preproc" >&6
36420
36421 # So?  What about this header?
36422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36423   yes:no: )
36424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36428     ac_header_preproc=yes
36429     ;;
36430   no:yes:* )
36431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36443     (
36444       cat <<\_ASBOX
36445 ## ------------------------------------------ ##
36446 ## Report this to the AC_PACKAGE_NAME lists.  ##
36447 ## ------------------------------------------ ##
36448 _ASBOX
36449     ) |
36450       sed "s/^/$as_me: WARNING:     /" >&2
36451     ;;
36452 esac
36453 echo "$as_me:$LINENO: checking for $ac_header" >&5
36454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36456   echo $ECHO_N "(cached) $ECHO_C" >&6
36457 else
36458   eval "$as_ac_Header=\$ac_header_preproc"
36459 fi
36460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36462
36463 fi
36464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36465   cat >>confdefs.h <<_ACEOF
36466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36467 _ACEOF
36468
36469 fi
36470
36471 done
36472
36473
36474
36475 for ac_header in openssl/crypto.h crypto.h
36476 do
36477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36479   echo "$as_me:$LINENO: checking for $ac_header" >&5
36480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36482   echo $ECHO_N "(cached) $ECHO_C" >&6
36483 fi
36484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36486 else
36487   # Is the header compilable?
36488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36490 cat >conftest.$ac_ext <<_ACEOF
36491 /* confdefs.h.  */
36492 _ACEOF
36493 cat confdefs.h >>conftest.$ac_ext
36494 cat >>conftest.$ac_ext <<_ACEOF
36495 /* end confdefs.h.  */
36496 $ac_includes_default
36497 #include <$ac_header>
36498 _ACEOF
36499 rm -f conftest.$ac_objext
36500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36501   (eval $ac_compile) 2>conftest.er1
36502   ac_status=$?
36503   grep -v '^ *+' conftest.er1 >conftest.err
36504   rm -f conftest.er1
36505   cat conftest.err >&5
36506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } &&
36508          { ac_try='test -z "$ac_c_werror_flag"
36509                          || test ! -s conftest.err'
36510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511   (eval $ac_try) 2>&5
36512   ac_status=$?
36513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514   (exit $ac_status); }; } &&
36515          { ac_try='test -s conftest.$ac_objext'
36516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517   (eval $ac_try) 2>&5
36518   ac_status=$?
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); }; }; then
36521   ac_header_compiler=yes
36522 else
36523   echo "$as_me: failed program was:" >&5
36524 sed 's/^/| /' conftest.$ac_ext >&5
36525
36526 ac_header_compiler=no
36527 fi
36528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36530 echo "${ECHO_T}$ac_header_compiler" >&6
36531
36532 # Is the header present?
36533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36535 cat >conftest.$ac_ext <<_ACEOF
36536 /* confdefs.h.  */
36537 _ACEOF
36538 cat confdefs.h >>conftest.$ac_ext
36539 cat >>conftest.$ac_ext <<_ACEOF
36540 /* end confdefs.h.  */
36541 #include <$ac_header>
36542 _ACEOF
36543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36545   ac_status=$?
36546   grep -v '^ *+' conftest.er1 >conftest.err
36547   rm -f conftest.er1
36548   cat conftest.err >&5
36549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550   (exit $ac_status); } >/dev/null; then
36551   if test -s conftest.err; then
36552     ac_cpp_err=$ac_c_preproc_warn_flag
36553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36554   else
36555     ac_cpp_err=
36556   fi
36557 else
36558   ac_cpp_err=yes
36559 fi
36560 if test -z "$ac_cpp_err"; then
36561   ac_header_preproc=yes
36562 else
36563   echo "$as_me: failed program was:" >&5
36564 sed 's/^/| /' conftest.$ac_ext >&5
36565
36566   ac_header_preproc=no
36567 fi
36568 rm -f conftest.err conftest.$ac_ext
36569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36570 echo "${ECHO_T}$ac_header_preproc" >&6
36571
36572 # So?  What about this header?
36573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36574   yes:no: )
36575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36579     ac_header_preproc=yes
36580     ;;
36581   no:yes:* )
36582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36594     (
36595       cat <<\_ASBOX
36596 ## ------------------------------------------ ##
36597 ## Report this to the AC_PACKAGE_NAME lists.  ##
36598 ## ------------------------------------------ ##
36599 _ASBOX
36600     ) |
36601       sed "s/^/$as_me: WARNING:     /" >&2
36602     ;;
36603 esac
36604 echo "$as_me:$LINENO: checking for $ac_header" >&5
36605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36607   echo $ECHO_N "(cached) $ECHO_C" >&6
36608 else
36609   eval "$as_ac_Header=\$ac_header_preproc"
36610 fi
36611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36613
36614 fi
36615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36616   cat >>confdefs.h <<_ACEOF
36617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36618 _ACEOF
36619
36620 fi
36621
36622 done
36623
36624
36625 for ac_header in gmp.h
36626 do
36627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36629   echo "$as_me:$LINENO: checking for $ac_header" >&5
36630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36632   echo $ECHO_N "(cached) $ECHO_C" >&6
36633 fi
36634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36636 else
36637   # Is the header compilable?
36638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36640 cat >conftest.$ac_ext <<_ACEOF
36641 /* confdefs.h.  */
36642 _ACEOF
36643 cat confdefs.h >>conftest.$ac_ext
36644 cat >>conftest.$ac_ext <<_ACEOF
36645 /* end confdefs.h.  */
36646 $ac_includes_default
36647 #include <$ac_header>
36648 _ACEOF
36649 rm -f conftest.$ac_objext
36650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36651   (eval $ac_compile) 2>conftest.er1
36652   ac_status=$?
36653   grep -v '^ *+' conftest.er1 >conftest.err
36654   rm -f conftest.er1
36655   cat conftest.err >&5
36656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657   (exit $ac_status); } &&
36658          { ac_try='test -z "$ac_c_werror_flag"
36659                          || test ! -s conftest.err'
36660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661   (eval $ac_try) 2>&5
36662   ac_status=$?
36663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664   (exit $ac_status); }; } &&
36665          { ac_try='test -s conftest.$ac_objext'
36666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667   (eval $ac_try) 2>&5
36668   ac_status=$?
36669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670   (exit $ac_status); }; }; then
36671   ac_header_compiler=yes
36672 else
36673   echo "$as_me: failed program was:" >&5
36674 sed 's/^/| /' conftest.$ac_ext >&5
36675
36676 ac_header_compiler=no
36677 fi
36678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36680 echo "${ECHO_T}$ac_header_compiler" >&6
36681
36682 # Is the header present?
36683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36685 cat >conftest.$ac_ext <<_ACEOF
36686 /* confdefs.h.  */
36687 _ACEOF
36688 cat confdefs.h >>conftest.$ac_ext
36689 cat >>conftest.$ac_ext <<_ACEOF
36690 /* end confdefs.h.  */
36691 #include <$ac_header>
36692 _ACEOF
36693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36695   ac_status=$?
36696   grep -v '^ *+' conftest.er1 >conftest.err
36697   rm -f conftest.er1
36698   cat conftest.err >&5
36699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700   (exit $ac_status); } >/dev/null; then
36701   if test -s conftest.err; then
36702     ac_cpp_err=$ac_c_preproc_warn_flag
36703     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36704   else
36705     ac_cpp_err=
36706   fi
36707 else
36708   ac_cpp_err=yes
36709 fi
36710 if test -z "$ac_cpp_err"; then
36711   ac_header_preproc=yes
36712 else
36713   echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36715
36716   ac_header_preproc=no
36717 fi
36718 rm -f conftest.err conftest.$ac_ext
36719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36720 echo "${ECHO_T}$ac_header_preproc" >&6
36721
36722 # So?  What about this header?
36723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36724   yes:no: )
36725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36729     ac_header_preproc=yes
36730     ;;
36731   no:yes:* )
36732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36744     (
36745       cat <<\_ASBOX
36746 ## ------------------------------------------ ##
36747 ## Report this to the AC_PACKAGE_NAME lists.  ##
36748 ## ------------------------------------------ ##
36749 _ASBOX
36750     ) |
36751       sed "s/^/$as_me: WARNING:     /" >&2
36752     ;;
36753 esac
36754 echo "$as_me:$LINENO: checking for $ac_header" >&5
36755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36757   echo $ECHO_N "(cached) $ECHO_C" >&6
36758 else
36759   eval "$as_ac_Header=\$ac_header_preproc"
36760 fi
36761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36763
36764 fi
36765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36766   cat >>confdefs.h <<_ACEOF
36767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36768 _ACEOF
36769
36770 fi
36771
36772 done
36773
36774
36775         if test "$ol_with_tls" = "found" ; then
36776                 ol_have_bn_h=no
36777                 ol_have_crypto_h=no
36778
36779                 if test "$ac_cv_header_openssl_bn_h" = "yes" \
36780                                 -o "$ac_cv_header_bn_h" = "yes" ; then
36781                         ol_have_bn_h=yes
36782                 fi
36783
36784                 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
36785                                 -o "$ac_cv_header_crypto_h" = "yes" ; then
36786                         ol_have_crypto_h=yes
36787                 fi
36788
36789                 if test "$ol_have_bn_h" = "yes" \
36790                                 -a "$ol_have_crypto_h" = "yes" ; then
36791                         ol_have_bignum=yes
36792                 fi
36793         fi
36794
36795         if test $ac_cv_header_gmp_h = yes ; then
36796                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36797 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36798 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36799   echo $ECHO_N "(cached) $ECHO_C" >&6
36800 else
36801   ac_check_lib_save_LIBS=$LIBS
36802 LIBS="-lgmp  $LIBS"
36803 cat >conftest.$ac_ext <<_ACEOF
36804 /* confdefs.h.  */
36805 _ACEOF
36806 cat confdefs.h >>conftest.$ac_ext
36807 cat >>conftest.$ac_ext <<_ACEOF
36808 /* end confdefs.h.  */
36809
36810 /* Override any gcc2 internal prototype to avoid an error.  */
36811 #ifdef __cplusplus
36812 extern "C"
36813 #endif
36814 /* We use char because int might match the return type of a gcc2
36815    builtin and then its argument prototype would still apply.  */
36816 char __gmpz_add_ui ();
36817 int
36818 main ()
36819 {
36820 __gmpz_add_ui ();
36821   ;
36822   return 0;
36823 }
36824 _ACEOF
36825 rm -f conftest.$ac_objext conftest$ac_exeext
36826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36827   (eval $ac_link) 2>conftest.er1
36828   ac_status=$?
36829   grep -v '^ *+' conftest.er1 >conftest.err
36830   rm -f conftest.er1
36831   cat conftest.err >&5
36832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833   (exit $ac_status); } &&
36834          { ac_try='test -z "$ac_c_werror_flag"
36835                          || test ! -s conftest.err'
36836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36837   (eval $ac_try) 2>&5
36838   ac_status=$?
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); }; } &&
36841          { ac_try='test -s conftest$ac_exeext'
36842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36843   (eval $ac_try) 2>&5
36844   ac_status=$?
36845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846   (exit $ac_status); }; }; then
36847   ac_cv_lib_gmp___gmpz_add_ui=yes
36848 else
36849   echo "$as_me: failed program was:" >&5
36850 sed 's/^/| /' conftest.$ac_ext >&5
36851
36852 ac_cv_lib_gmp___gmpz_add_ui=no
36853 fi
36854 rm -f conftest.err conftest.$ac_objext \
36855       conftest$ac_exeext conftest.$ac_ext
36856 LIBS=$ac_check_lib_save_LIBS
36857 fi
36858 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36859 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36860 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36861   have_gmp=yes
36862 else
36863   have_gmp=no
36864 fi
36865
36866                 if test $have_gmp = yes ; then
36867                         ol_have_gmp=yes
36868                 fi
36869         fi
36870
36871         echo "$as_me:$LINENO: checking for multiple precision support" >&5
36872 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36873
36874         ol_mp_support="none"
36875         case "$ol_with_multiple_precision" in
36876         auto)
36877                                                                                 if test "$ol_have_bignum" = "yes" ; then
36878                         ol_mp_support="bignum"
36879                 else
36880                         if test "$ol_have_gmp" = "yes" ; then
36881                                 ol_mp_support="gmp"
36882                         fi
36883                 fi
36884                 ;;
36885         bignum)
36886                 if test "$ol_have_bignum" != "yes" ; then
36887                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36888 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36889    { (exit 1); exit 1; }; }
36890                 fi
36891                 ol_mp_support="bignum"
36892                 ;;
36893         gmp)
36894                 if test "$ol_have_gmp" != "yes" ; then
36895                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
36896 echo "$as_me: error: GMP not available" >&2;}
36897    { (exit 1); exit 1; }; }
36898                 fi
36899                 ol_mp_support="gmp"
36900                 ;;
36901         yes)
36902                 if test "$ol_have_bignum" = "yes" ; then
36903                         ol_mp_support="bignum"
36904                 elif test "$ol_have_gmp" = "yes" ; then
36905                         ol_mp_support="gmp"
36906                 else
36907                         { { echo "$as_me:$LINENO: error: not available" >&5
36908 echo "$as_me: error: not available" >&2;}
36909    { (exit 1); exit 1; }; }
36910                 fi
36911                 ;;
36912         esac
36913
36914         case "$ol_mp_support" in
36915         bignum)
36916
36917 cat >>confdefs.h <<\_ACEOF
36918 #define HAVE_BIGNUM 1
36919 _ACEOF
36920
36921                 ;;
36922         gmp)
36923
36924 cat >>confdefs.h <<\_ACEOF
36925 #define HAVE_GMP 1
36926 _ACEOF
36927
36928                 SLAPD_GMP_LIBS=-lgmp
36929                 ;;
36930         none)
36931                 ;;
36932         esac
36933
36934         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36935 echo "${ECHO_T}$ol_mp_support" >&6
36936 fi
36937
36938
36939 echo "$as_me:$LINENO: checking for mode_t" >&5
36940 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36941 if test "${ac_cv_type_mode_t+set}" = set; then
36942   echo $ECHO_N "(cached) $ECHO_C" >&6
36943 else
36944   cat >conftest.$ac_ext <<_ACEOF
36945 /* confdefs.h.  */
36946 _ACEOF
36947 cat confdefs.h >>conftest.$ac_ext
36948 cat >>conftest.$ac_ext <<_ACEOF
36949 /* end confdefs.h.  */
36950 $ac_includes_default
36951 int
36952 main ()
36953 {
36954 if ((mode_t *) 0)
36955   return 0;
36956 if (sizeof (mode_t))
36957   return 0;
36958   ;
36959   return 0;
36960 }
36961 _ACEOF
36962 rm -f conftest.$ac_objext
36963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36964   (eval $ac_compile) 2>conftest.er1
36965   ac_status=$?
36966   grep -v '^ *+' conftest.er1 >conftest.err
36967   rm -f conftest.er1
36968   cat conftest.err >&5
36969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970   (exit $ac_status); } &&
36971          { ac_try='test -z "$ac_c_werror_flag"
36972                          || test ! -s conftest.err'
36973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974   (eval $ac_try) 2>&5
36975   ac_status=$?
36976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977   (exit $ac_status); }; } &&
36978          { ac_try='test -s conftest.$ac_objext'
36979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980   (eval $ac_try) 2>&5
36981   ac_status=$?
36982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983   (exit $ac_status); }; }; then
36984   ac_cv_type_mode_t=yes
36985 else
36986   echo "$as_me: failed program was:" >&5
36987 sed 's/^/| /' conftest.$ac_ext >&5
36988
36989 ac_cv_type_mode_t=no
36990 fi
36991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36992 fi
36993 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36994 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36995 if test $ac_cv_type_mode_t = yes; then
36996   :
36997 else
36998
36999 cat >>confdefs.h <<_ACEOF
37000 #define mode_t int
37001 _ACEOF
37002
37003 fi
37004
37005 echo "$as_me:$LINENO: checking for off_t" >&5
37006 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
37007 if test "${ac_cv_type_off_t+set}" = set; then
37008   echo $ECHO_N "(cached) $ECHO_C" >&6
37009 else
37010   cat >conftest.$ac_ext <<_ACEOF
37011 /* confdefs.h.  */
37012 _ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h.  */
37016 $ac_includes_default
37017 int
37018 main ()
37019 {
37020 if ((off_t *) 0)
37021   return 0;
37022 if (sizeof (off_t))
37023   return 0;
37024   ;
37025   return 0;
37026 }
37027 _ACEOF
37028 rm -f conftest.$ac_objext
37029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37030   (eval $ac_compile) 2>conftest.er1
37031   ac_status=$?
37032   grep -v '^ *+' conftest.er1 >conftest.err
37033   rm -f conftest.er1
37034   cat conftest.err >&5
37035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036   (exit $ac_status); } &&
37037          { ac_try='test -z "$ac_c_werror_flag"
37038                          || test ! -s conftest.err'
37039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040   (eval $ac_try) 2>&5
37041   ac_status=$?
37042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043   (exit $ac_status); }; } &&
37044          { ac_try='test -s conftest.$ac_objext'
37045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046   (eval $ac_try) 2>&5
37047   ac_status=$?
37048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049   (exit $ac_status); }; }; then
37050   ac_cv_type_off_t=yes
37051 else
37052   echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37054
37055 ac_cv_type_off_t=no
37056 fi
37057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37058 fi
37059 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37060 echo "${ECHO_T}$ac_cv_type_off_t" >&6
37061 if test $ac_cv_type_off_t = yes; then
37062   :
37063 else
37064
37065 cat >>confdefs.h <<_ACEOF
37066 #define off_t long
37067 _ACEOF
37068
37069 fi
37070
37071 echo "$as_me:$LINENO: checking for pid_t" >&5
37072 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
37073 if test "${ac_cv_type_pid_t+set}" = set; then
37074   echo $ECHO_N "(cached) $ECHO_C" >&6
37075 else
37076   cat >conftest.$ac_ext <<_ACEOF
37077 /* confdefs.h.  */
37078 _ACEOF
37079 cat confdefs.h >>conftest.$ac_ext
37080 cat >>conftest.$ac_ext <<_ACEOF
37081 /* end confdefs.h.  */
37082 $ac_includes_default
37083 int
37084 main ()
37085 {
37086 if ((pid_t *) 0)
37087   return 0;
37088 if (sizeof (pid_t))
37089   return 0;
37090   ;
37091   return 0;
37092 }
37093 _ACEOF
37094 rm -f conftest.$ac_objext
37095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37096   (eval $ac_compile) 2>conftest.er1
37097   ac_status=$?
37098   grep -v '^ *+' conftest.er1 >conftest.err
37099   rm -f conftest.er1
37100   cat conftest.err >&5
37101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); } &&
37103          { ac_try='test -z "$ac_c_werror_flag"
37104                          || test ! -s conftest.err'
37105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106   (eval $ac_try) 2>&5
37107   ac_status=$?
37108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109   (exit $ac_status); }; } &&
37110          { ac_try='test -s conftest.$ac_objext'
37111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112   (eval $ac_try) 2>&5
37113   ac_status=$?
37114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115   (exit $ac_status); }; }; then
37116   ac_cv_type_pid_t=yes
37117 else
37118   echo "$as_me: failed program was:" >&5
37119 sed 's/^/| /' conftest.$ac_ext >&5
37120
37121 ac_cv_type_pid_t=no
37122 fi
37123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37124 fi
37125 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37126 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37127 if test $ac_cv_type_pid_t = yes; then
37128   :
37129 else
37130
37131 cat >>confdefs.h <<_ACEOF
37132 #define pid_t int
37133 _ACEOF
37134
37135 fi
37136
37137 echo "$as_me:$LINENO: checking for ssize_t" >&5
37138 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37139 if test "${ac_cv_type_ssize_t+set}" = set; then
37140   echo $ECHO_N "(cached) $ECHO_C" >&6
37141 else
37142   cat >conftest.$ac_ext <<_ACEOF
37143 /* confdefs.h.  */
37144 _ACEOF
37145 cat confdefs.h >>conftest.$ac_ext
37146 cat >>conftest.$ac_ext <<_ACEOF
37147 /* end confdefs.h.  */
37148 $ac_includes_default
37149 int
37150 main ()
37151 {
37152 if ((ssize_t *) 0)
37153   return 0;
37154 if (sizeof (ssize_t))
37155   return 0;
37156   ;
37157   return 0;
37158 }
37159 _ACEOF
37160 rm -f conftest.$ac_objext
37161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37162   (eval $ac_compile) 2>conftest.er1
37163   ac_status=$?
37164   grep -v '^ *+' conftest.er1 >conftest.err
37165   rm -f conftest.er1
37166   cat conftest.err >&5
37167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168   (exit $ac_status); } &&
37169          { ac_try='test -z "$ac_c_werror_flag"
37170                          || test ! -s conftest.err'
37171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172   (eval $ac_try) 2>&5
37173   ac_status=$?
37174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175   (exit $ac_status); }; } &&
37176          { ac_try='test -s conftest.$ac_objext'
37177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178   (eval $ac_try) 2>&5
37179   ac_status=$?
37180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181   (exit $ac_status); }; }; then
37182   ac_cv_type_ssize_t=yes
37183 else
37184   echo "$as_me: failed program was:" >&5
37185 sed 's/^/| /' conftest.$ac_ext >&5
37186
37187 ac_cv_type_ssize_t=no
37188 fi
37189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37190 fi
37191 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37192 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37193 if test $ac_cv_type_ssize_t = yes; then
37194   :
37195 else
37196
37197 cat >>confdefs.h <<_ACEOF
37198 #define ssize_t signed int
37199 _ACEOF
37200
37201 fi
37202
37203 echo "$as_me:$LINENO: checking for caddr_t" >&5
37204 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37205 if test "${ac_cv_type_caddr_t+set}" = set; then
37206   echo $ECHO_N "(cached) $ECHO_C" >&6
37207 else
37208   cat >conftest.$ac_ext <<_ACEOF
37209 /* confdefs.h.  */
37210 _ACEOF
37211 cat confdefs.h >>conftest.$ac_ext
37212 cat >>conftest.$ac_ext <<_ACEOF
37213 /* end confdefs.h.  */
37214 $ac_includes_default
37215 int
37216 main ()
37217 {
37218 if ((caddr_t *) 0)
37219   return 0;
37220 if (sizeof (caddr_t))
37221   return 0;
37222   ;
37223   return 0;
37224 }
37225 _ACEOF
37226 rm -f conftest.$ac_objext
37227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37228   (eval $ac_compile) 2>conftest.er1
37229   ac_status=$?
37230   grep -v '^ *+' conftest.er1 >conftest.err
37231   rm -f conftest.er1
37232   cat conftest.err >&5
37233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234   (exit $ac_status); } &&
37235          { ac_try='test -z "$ac_c_werror_flag"
37236                          || test ! -s conftest.err'
37237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238   (eval $ac_try) 2>&5
37239   ac_status=$?
37240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241   (exit $ac_status); }; } &&
37242          { ac_try='test -s conftest.$ac_objext'
37243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244   (eval $ac_try) 2>&5
37245   ac_status=$?
37246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247   (exit $ac_status); }; }; then
37248   ac_cv_type_caddr_t=yes
37249 else
37250   echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37252
37253 ac_cv_type_caddr_t=no
37254 fi
37255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37256 fi
37257 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37258 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37259 if test $ac_cv_type_caddr_t = yes; then
37260   :
37261 else
37262
37263 cat >>confdefs.h <<_ACEOF
37264 #define caddr_t char *
37265 _ACEOF
37266
37267 fi
37268
37269 echo "$as_me:$LINENO: checking for size_t" >&5
37270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37271 if test "${ac_cv_type_size_t+set}" = set; then
37272   echo $ECHO_N "(cached) $ECHO_C" >&6
37273 else
37274   cat >conftest.$ac_ext <<_ACEOF
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280 $ac_includes_default
37281 int
37282 main ()
37283 {
37284 if ((size_t *) 0)
37285   return 0;
37286 if (sizeof (size_t))
37287   return 0;
37288   ;
37289   return 0;
37290 }
37291 _ACEOF
37292 rm -f conftest.$ac_objext
37293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37294   (eval $ac_compile) 2>conftest.er1
37295   ac_status=$?
37296   grep -v '^ *+' conftest.er1 >conftest.err
37297   rm -f conftest.er1
37298   cat conftest.err >&5
37299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300   (exit $ac_status); } &&
37301          { ac_try='test -z "$ac_c_werror_flag"
37302                          || test ! -s conftest.err'
37303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37304   (eval $ac_try) 2>&5
37305   ac_status=$?
37306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37307   (exit $ac_status); }; } &&
37308          { ac_try='test -s conftest.$ac_objext'
37309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37310   (eval $ac_try) 2>&5
37311   ac_status=$?
37312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37313   (exit $ac_status); }; }; then
37314   ac_cv_type_size_t=yes
37315 else
37316   echo "$as_me: failed program was:" >&5
37317 sed 's/^/| /' conftest.$ac_ext >&5
37318
37319 ac_cv_type_size_t=no
37320 fi
37321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37322 fi
37323 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37324 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37325 if test $ac_cv_type_size_t = yes; then
37326   :
37327 else
37328
37329 cat >>confdefs.h <<_ACEOF
37330 #define size_t unsigned
37331 _ACEOF
37332
37333 fi
37334
37335
37336 echo "$as_me:$LINENO: checking for long long" >&5
37337 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37338 if test "${ac_cv_type_long_long+set}" = set; then
37339   echo $ECHO_N "(cached) $ECHO_C" >&6
37340 else
37341   cat >conftest.$ac_ext <<_ACEOF
37342 /* confdefs.h.  */
37343 _ACEOF
37344 cat confdefs.h >>conftest.$ac_ext
37345 cat >>conftest.$ac_ext <<_ACEOF
37346 /* end confdefs.h.  */
37347 $ac_includes_default
37348 int
37349 main ()
37350 {
37351 if ((long long *) 0)
37352   return 0;
37353 if (sizeof (long long))
37354   return 0;
37355   ;
37356   return 0;
37357 }
37358 _ACEOF
37359 rm -f conftest.$ac_objext
37360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37361   (eval $ac_compile) 2>conftest.er1
37362   ac_status=$?
37363   grep -v '^ *+' conftest.er1 >conftest.err
37364   rm -f conftest.er1
37365   cat conftest.err >&5
37366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37367   (exit $ac_status); } &&
37368          { ac_try='test -z "$ac_c_werror_flag"
37369                          || test ! -s conftest.err'
37370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37371   (eval $ac_try) 2>&5
37372   ac_status=$?
37373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37374   (exit $ac_status); }; } &&
37375          { ac_try='test -s conftest.$ac_objext'
37376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377   (eval $ac_try) 2>&5
37378   ac_status=$?
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); }; }; then
37381   ac_cv_type_long_long=yes
37382 else
37383   echo "$as_me: failed program was:" >&5
37384 sed 's/^/| /' conftest.$ac_ext >&5
37385
37386 ac_cv_type_long_long=no
37387 fi
37388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37389 fi
37390 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37391 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37392 if test $ac_cv_type_long_long = yes; then
37393
37394 cat >>confdefs.h <<_ACEOF
37395 #define HAVE_LONG_LONG 1
37396 _ACEOF
37397
37398
37399 fi
37400
37401 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37402 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37403 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37404   echo $ECHO_N "(cached) $ECHO_C" >&6
37405 else
37406   cat >conftest.$ac_ext <<_ACEOF
37407 /* confdefs.h.  */
37408 _ACEOF
37409 cat confdefs.h >>conftest.$ac_ext
37410 cat >>conftest.$ac_ext <<_ACEOF
37411 /* end confdefs.h.  */
37412 $ac_includes_default
37413 int
37414 main ()
37415 {
37416 if ((ptrdiff_t *) 0)
37417   return 0;
37418 if (sizeof (ptrdiff_t))
37419   return 0;
37420   ;
37421   return 0;
37422 }
37423 _ACEOF
37424 rm -f conftest.$ac_objext
37425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37426   (eval $ac_compile) 2>conftest.er1
37427   ac_status=$?
37428   grep -v '^ *+' conftest.er1 >conftest.err
37429   rm -f conftest.er1
37430   cat conftest.err >&5
37431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432   (exit $ac_status); } &&
37433          { ac_try='test -z "$ac_c_werror_flag"
37434                          || test ! -s conftest.err'
37435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436   (eval $ac_try) 2>&5
37437   ac_status=$?
37438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439   (exit $ac_status); }; } &&
37440          { ac_try='test -s conftest.$ac_objext'
37441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442   (eval $ac_try) 2>&5
37443   ac_status=$?
37444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445   (exit $ac_status); }; }; then
37446   ac_cv_type_ptrdiff_t=yes
37447 else
37448   echo "$as_me: failed program was:" >&5
37449 sed 's/^/| /' conftest.$ac_ext >&5
37450
37451 ac_cv_type_ptrdiff_t=no
37452 fi
37453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37454 fi
37455 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37456 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37457 if test $ac_cv_type_ptrdiff_t = yes; then
37458
37459 cat >>confdefs.h <<_ACEOF
37460 #define HAVE_PTRDIFF_T 1
37461 _ACEOF
37462
37463
37464 fi
37465
37466
37467 echo "$as_me:$LINENO: checking for socklen_t" >&5
37468 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37469 if test "${ac_cv_type_socklen_t+set}" = set; then
37470   echo $ECHO_N "(cached) $ECHO_C" >&6
37471 else
37472   cat >conftest.$ac_ext <<_ACEOF
37473 /* confdefs.h.  */
37474 _ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h.  */
37478 $ac_includes_default
37479 #ifdef HAVE_SYS_SOCKET_H
37480 #include <sys/socket.h>
37481 #endif
37482
37483
37484 int
37485 main ()
37486 {
37487 if ((socklen_t *) 0)
37488   return 0;
37489 if (sizeof (socklen_t))
37490   return 0;
37491   ;
37492   return 0;
37493 }
37494 _ACEOF
37495 rm -f conftest.$ac_objext
37496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37497   (eval $ac_compile) 2>conftest.er1
37498   ac_status=$?
37499   grep -v '^ *+' conftest.er1 >conftest.err
37500   rm -f conftest.er1
37501   cat conftest.err >&5
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); } &&
37504          { ac_try='test -z "$ac_c_werror_flag"
37505                          || test ! -s conftest.err'
37506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37507   (eval $ac_try) 2>&5
37508   ac_status=$?
37509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37510   (exit $ac_status); }; } &&
37511          { ac_try='test -s conftest.$ac_objext'
37512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37513   (eval $ac_try) 2>&5
37514   ac_status=$?
37515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37516   (exit $ac_status); }; }; then
37517   ac_cv_type_socklen_t=yes
37518 else
37519   echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37521
37522 ac_cv_type_socklen_t=no
37523 fi
37524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37525 fi
37526 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37527 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37528 if test $ac_cv_type_socklen_t = yes; then
37529   :
37530 else
37531
37532 cat >>confdefs.h <<_ACEOF
37533 #define socklen_t int
37534 _ACEOF
37535
37536 fi
37537
37538
37539 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37540 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37541 if test "${ac_cv_type_signal+set}" = set; then
37542   echo $ECHO_N "(cached) $ECHO_C" >&6
37543 else
37544   cat >conftest.$ac_ext <<_ACEOF
37545 /* confdefs.h.  */
37546 _ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h.  */
37550 #include <sys/types.h>
37551 #include <signal.h>
37552 #ifdef signal
37553 # undef signal
37554 #endif
37555 #ifdef __cplusplus
37556 extern "C" void (*signal (int, void (*)(int)))(int);
37557 #else
37558 void (*signal ()) ();
37559 #endif
37560
37561 int
37562 main ()
37563 {
37564 int i;
37565   ;
37566   return 0;
37567 }
37568 _ACEOF
37569 rm -f conftest.$ac_objext
37570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37571   (eval $ac_compile) 2>conftest.er1
37572   ac_status=$?
37573   grep -v '^ *+' conftest.er1 >conftest.err
37574   rm -f conftest.er1
37575   cat conftest.err >&5
37576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577   (exit $ac_status); } &&
37578          { ac_try='test -z "$ac_c_werror_flag"
37579                          || test ! -s conftest.err'
37580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581   (eval $ac_try) 2>&5
37582   ac_status=$?
37583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584   (exit $ac_status); }; } &&
37585          { ac_try='test -s conftest.$ac_objext'
37586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587   (eval $ac_try) 2>&5
37588   ac_status=$?
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); }; }; then
37591   ac_cv_type_signal=void
37592 else
37593   echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37595
37596 ac_cv_type_signal=int
37597 fi
37598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37599 fi
37600 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37601 echo "${ECHO_T}$ac_cv_type_signal" >&6
37602
37603 cat >>confdefs.h <<_ACEOF
37604 #define RETSIGTYPE $ac_cv_type_signal
37605 _ACEOF
37606
37607
37608
37609 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37610 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37611 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
37612   echo $ECHO_N "(cached) $ECHO_C" >&6
37613 else
37614   cat >conftest.$ac_ext <<_ACEOF
37615 /* confdefs.h.  */
37616 _ACEOF
37617 cat confdefs.h >>conftest.$ac_ext
37618 cat >>conftest.$ac_ext <<_ACEOF
37619 /* end confdefs.h.  */
37620 $ac_includes_default
37621 #include <signal.h>
37622
37623
37624 int
37625 main ()
37626 {
37627 if ((sig_atomic_t *) 0)
37628   return 0;
37629 if (sizeof (sig_atomic_t))
37630   return 0;
37631   ;
37632   return 0;
37633 }
37634 _ACEOF
37635 rm -f conftest.$ac_objext
37636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37637   (eval $ac_compile) 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } &&
37644          { ac_try='test -z "$ac_c_werror_flag"
37645                          || test ! -s conftest.err'
37646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647   (eval $ac_try) 2>&5
37648   ac_status=$?
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); }; } &&
37651          { ac_try='test -s conftest.$ac_objext'
37652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653   (eval $ac_try) 2>&5
37654   ac_status=$?
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); }; }; then
37657   ac_cv_type_sig_atomic_t=yes
37658 else
37659   echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37661
37662 ac_cv_type_sig_atomic_t=no
37663 fi
37664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37665 fi
37666 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37667 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37668 if test $ac_cv_type_sig_atomic_t = yes; then
37669   :
37670 else
37671
37672 cat >>confdefs.h <<_ACEOF
37673 #define sig_atomic_t int
37674 _ACEOF
37675
37676 fi
37677
37678
37679 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37680 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37681 if test "${ac_cv_type_uid_t+set}" = set; then
37682   echo $ECHO_N "(cached) $ECHO_C" >&6
37683 else
37684   cat >conftest.$ac_ext <<_ACEOF
37685 /* confdefs.h.  */
37686 _ACEOF
37687 cat confdefs.h >>conftest.$ac_ext
37688 cat >>conftest.$ac_ext <<_ACEOF
37689 /* end confdefs.h.  */
37690 #include <sys/types.h>
37691
37692 _ACEOF
37693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37694   $EGREP "uid_t" >/dev/null 2>&1; then
37695   ac_cv_type_uid_t=yes
37696 else
37697   ac_cv_type_uid_t=no
37698 fi
37699 rm -f conftest*
37700
37701 fi
37702 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37703 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37704 if test $ac_cv_type_uid_t = no; then
37705
37706 cat >>confdefs.h <<\_ACEOF
37707 #define uid_t int
37708 _ACEOF
37709
37710
37711 cat >>confdefs.h <<\_ACEOF
37712 #define gid_t int
37713 _ACEOF
37714
37715 fi
37716
37717
37718 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37719 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37720 if test "${ac_cv_header_time+set}" = set; then
37721   echo $ECHO_N "(cached) $ECHO_C" >&6
37722 else
37723   cat >conftest.$ac_ext <<_ACEOF
37724 /* confdefs.h.  */
37725 _ACEOF
37726 cat confdefs.h >>conftest.$ac_ext
37727 cat >>conftest.$ac_ext <<_ACEOF
37728 /* end confdefs.h.  */
37729 #include <sys/types.h>
37730 #include <sys/time.h>
37731 #include <time.h>
37732
37733 int
37734 main ()
37735 {
37736 if ((struct tm *) 0)
37737 return 0;
37738   ;
37739   return 0;
37740 }
37741 _ACEOF
37742 rm -f conftest.$ac_objext
37743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37744   (eval $ac_compile) 2>conftest.er1
37745   ac_status=$?
37746   grep -v '^ *+' conftest.er1 >conftest.err
37747   rm -f conftest.er1
37748   cat conftest.err >&5
37749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37750   (exit $ac_status); } &&
37751          { ac_try='test -z "$ac_c_werror_flag"
37752                          || test ! -s conftest.err'
37753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37754   (eval $ac_try) 2>&5
37755   ac_status=$?
37756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757   (exit $ac_status); }; } &&
37758          { ac_try='test -s conftest.$ac_objext'
37759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760   (eval $ac_try) 2>&5
37761   ac_status=$?
37762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763   (exit $ac_status); }; }; then
37764   ac_cv_header_time=yes
37765 else
37766   echo "$as_me: failed program was:" >&5
37767 sed 's/^/| /' conftest.$ac_ext >&5
37768
37769 ac_cv_header_time=no
37770 fi
37771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37772 fi
37773 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37774 echo "${ECHO_T}$ac_cv_header_time" >&6
37775 if test $ac_cv_header_time = yes; then
37776
37777 cat >>confdefs.h <<\_ACEOF
37778 #define TIME_WITH_SYS_TIME 1
37779 _ACEOF
37780
37781 fi
37782
37783 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37784 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37785 if test "${ac_cv_struct_tm+set}" = set; then
37786   echo $ECHO_N "(cached) $ECHO_C" >&6
37787 else
37788   cat >conftest.$ac_ext <<_ACEOF
37789 /* confdefs.h.  */
37790 _ACEOF
37791 cat confdefs.h >>conftest.$ac_ext
37792 cat >>conftest.$ac_ext <<_ACEOF
37793 /* end confdefs.h.  */
37794 #include <sys/types.h>
37795 #include <time.h>
37796
37797 int
37798 main ()
37799 {
37800 struct tm *tp; tp->tm_sec;
37801   ;
37802   return 0;
37803 }
37804 _ACEOF
37805 rm -f conftest.$ac_objext
37806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37807   (eval $ac_compile) 2>conftest.er1
37808   ac_status=$?
37809   grep -v '^ *+' conftest.er1 >conftest.err
37810   rm -f conftest.er1
37811   cat conftest.err >&5
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); } &&
37814          { ac_try='test -z "$ac_c_werror_flag"
37815                          || test ! -s conftest.err'
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); }; } &&
37821          { ac_try='test -s conftest.$ac_objext'
37822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37823   (eval $ac_try) 2>&5
37824   ac_status=$?
37825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37826   (exit $ac_status); }; }; then
37827   ac_cv_struct_tm=time.h
37828 else
37829   echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37831
37832 ac_cv_struct_tm=sys/time.h
37833 fi
37834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37835 fi
37836 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37837 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37838 if test $ac_cv_struct_tm = sys/time.h; then
37839
37840 cat >>confdefs.h <<\_ACEOF
37841 #define TM_IN_SYS_TIME 1
37842 _ACEOF
37843
37844 fi
37845
37846 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37847 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37848 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37849   echo $ECHO_N "(cached) $ECHO_C" >&6
37850 else
37851   cat >conftest.$ac_ext <<_ACEOF
37852 /* confdefs.h.  */
37853 _ACEOF
37854 cat confdefs.h >>conftest.$ac_ext
37855 cat >>conftest.$ac_ext <<_ACEOF
37856 /* end confdefs.h.  */
37857 $ac_includes_default
37858 int
37859 main ()
37860 {
37861 static struct stat ac_aggr;
37862 if (ac_aggr.st_blksize)
37863 return 0;
37864   ;
37865   return 0;
37866 }
37867 _ACEOF
37868 rm -f conftest.$ac_objext
37869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37870   (eval $ac_compile) 2>conftest.er1
37871   ac_status=$?
37872   grep -v '^ *+' conftest.er1 >conftest.err
37873   rm -f conftest.er1
37874   cat conftest.err >&5
37875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876   (exit $ac_status); } &&
37877          { ac_try='test -z "$ac_c_werror_flag"
37878                          || test ! -s conftest.err'
37879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880   (eval $ac_try) 2>&5
37881   ac_status=$?
37882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883   (exit $ac_status); }; } &&
37884          { ac_try='test -s conftest.$ac_objext'
37885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886   (eval $ac_try) 2>&5
37887   ac_status=$?
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); }; }; then
37890   ac_cv_member_struct_stat_st_blksize=yes
37891 else
37892   echo "$as_me: failed program was:" >&5
37893 sed 's/^/| /' conftest.$ac_ext >&5
37894
37895 cat >conftest.$ac_ext <<_ACEOF
37896 /* confdefs.h.  */
37897 _ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h.  */
37901 $ac_includes_default
37902 int
37903 main ()
37904 {
37905 static struct stat ac_aggr;
37906 if (sizeof ac_aggr.st_blksize)
37907 return 0;
37908   ;
37909   return 0;
37910 }
37911 _ACEOF
37912 rm -f conftest.$ac_objext
37913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37914   (eval $ac_compile) 2>conftest.er1
37915   ac_status=$?
37916   grep -v '^ *+' conftest.er1 >conftest.err
37917   rm -f conftest.er1
37918   cat conftest.err >&5
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); } &&
37921          { ac_try='test -z "$ac_c_werror_flag"
37922                          || test ! -s conftest.err'
37923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37924   (eval $ac_try) 2>&5
37925   ac_status=$?
37926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37927   (exit $ac_status); }; } &&
37928          { ac_try='test -s conftest.$ac_objext'
37929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37930   (eval $ac_try) 2>&5
37931   ac_status=$?
37932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933   (exit $ac_status); }; }; then
37934   ac_cv_member_struct_stat_st_blksize=yes
37935 else
37936   echo "$as_me: failed program was:" >&5
37937 sed 's/^/| /' conftest.$ac_ext >&5
37938
37939 ac_cv_member_struct_stat_st_blksize=no
37940 fi
37941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37942 fi
37943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37944 fi
37945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37947 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37948
37949 cat >>confdefs.h <<_ACEOF
37950 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37951 _ACEOF
37952
37953
37954 fi
37955
37956 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37957 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37958 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37959   echo $ECHO_N "(cached) $ECHO_C" >&6
37960 else
37961   cat >conftest.$ac_ext <<_ACEOF
37962 /* confdefs.h.  */
37963 _ACEOF
37964 cat confdefs.h >>conftest.$ac_ext
37965 cat >>conftest.$ac_ext <<_ACEOF
37966 /* end confdefs.h.  */
37967 $ac_includes_default
37968 #include <pwd.h>
37969
37970 int
37971 main ()
37972 {
37973 static struct passwd ac_aggr;
37974 if (ac_aggr.pw_gecos)
37975 return 0;
37976   ;
37977   return 0;
37978 }
37979 _ACEOF
37980 rm -f conftest.$ac_objext
37981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37982   (eval $ac_compile) 2>conftest.er1
37983   ac_status=$?
37984   grep -v '^ *+' conftest.er1 >conftest.err
37985   rm -f conftest.er1
37986   cat conftest.err >&5
37987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988   (exit $ac_status); } &&
37989          { ac_try='test -z "$ac_c_werror_flag"
37990                          || test ! -s conftest.err'
37991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992   (eval $ac_try) 2>&5
37993   ac_status=$?
37994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995   (exit $ac_status); }; } &&
37996          { ac_try='test -s conftest.$ac_objext'
37997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998   (eval $ac_try) 2>&5
37999   ac_status=$?
38000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001   (exit $ac_status); }; }; then
38002   ac_cv_member_struct_passwd_pw_gecos=yes
38003 else
38004   echo "$as_me: failed program was:" >&5
38005 sed 's/^/| /' conftest.$ac_ext >&5
38006
38007 cat >conftest.$ac_ext <<_ACEOF
38008 /* confdefs.h.  */
38009 _ACEOF
38010 cat confdefs.h >>conftest.$ac_ext
38011 cat >>conftest.$ac_ext <<_ACEOF
38012 /* end confdefs.h.  */
38013 $ac_includes_default
38014 #include <pwd.h>
38015
38016 int
38017 main ()
38018 {
38019 static struct passwd ac_aggr;
38020 if (sizeof ac_aggr.pw_gecos)
38021 return 0;
38022   ;
38023   return 0;
38024 }
38025 _ACEOF
38026 rm -f conftest.$ac_objext
38027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38028   (eval $ac_compile) 2>conftest.er1
38029   ac_status=$?
38030   grep -v '^ *+' conftest.er1 >conftest.err
38031   rm -f conftest.er1
38032   cat conftest.err >&5
38033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034   (exit $ac_status); } &&
38035          { ac_try='test -z "$ac_c_werror_flag"
38036                          || test ! -s conftest.err'
38037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38038   (eval $ac_try) 2>&5
38039   ac_status=$?
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); }; } &&
38042          { ac_try='test -s conftest.$ac_objext'
38043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38044   (eval $ac_try) 2>&5
38045   ac_status=$?
38046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38047   (exit $ac_status); }; }; then
38048   ac_cv_member_struct_passwd_pw_gecos=yes
38049 else
38050   echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053 ac_cv_member_struct_passwd_pw_gecos=no
38054 fi
38055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38056 fi
38057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38058 fi
38059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
38060 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
38061 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
38062
38063 cat >>confdefs.h <<_ACEOF
38064 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
38065 _ACEOF
38066
38067
38068 fi
38069
38070 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
38071 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
38072 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
38073   echo $ECHO_N "(cached) $ECHO_C" >&6
38074 else
38075   cat >conftest.$ac_ext <<_ACEOF
38076 /* confdefs.h.  */
38077 _ACEOF
38078 cat confdefs.h >>conftest.$ac_ext
38079 cat >>conftest.$ac_ext <<_ACEOF
38080 /* end confdefs.h.  */
38081 $ac_includes_default
38082 #include <pwd.h>
38083
38084 int
38085 main ()
38086 {
38087 static struct passwd ac_aggr;
38088 if (ac_aggr.pw_passwd)
38089 return 0;
38090   ;
38091   return 0;
38092 }
38093 _ACEOF
38094 rm -f conftest.$ac_objext
38095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38096   (eval $ac_compile) 2>conftest.er1
38097   ac_status=$?
38098   grep -v '^ *+' conftest.er1 >conftest.err
38099   rm -f conftest.er1
38100   cat conftest.err >&5
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); } &&
38103          { ac_try='test -z "$ac_c_werror_flag"
38104                          || test ! -s conftest.err'
38105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38106   (eval $ac_try) 2>&5
38107   ac_status=$?
38108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109   (exit $ac_status); }; } &&
38110          { ac_try='test -s conftest.$ac_objext'
38111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112   (eval $ac_try) 2>&5
38113   ac_status=$?
38114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115   (exit $ac_status); }; }; then
38116   ac_cv_member_struct_passwd_pw_passwd=yes
38117 else
38118   echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38120
38121 cat >conftest.$ac_ext <<_ACEOF
38122 /* confdefs.h.  */
38123 _ACEOF
38124 cat confdefs.h >>conftest.$ac_ext
38125 cat >>conftest.$ac_ext <<_ACEOF
38126 /* end confdefs.h.  */
38127 $ac_includes_default
38128 #include <pwd.h>
38129
38130 int
38131 main ()
38132 {
38133 static struct passwd ac_aggr;
38134 if (sizeof ac_aggr.pw_passwd)
38135 return 0;
38136   ;
38137   return 0;
38138 }
38139 _ACEOF
38140 rm -f conftest.$ac_objext
38141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38142   (eval $ac_compile) 2>conftest.er1
38143   ac_status=$?
38144   grep -v '^ *+' conftest.er1 >conftest.err
38145   rm -f conftest.er1
38146   cat conftest.err >&5
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); } &&
38149          { ac_try='test -z "$ac_c_werror_flag"
38150                          || test ! -s conftest.err'
38151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152   (eval $ac_try) 2>&5
38153   ac_status=$?
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); }; } &&
38156          { ac_try='test -s conftest.$ac_objext'
38157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38158   (eval $ac_try) 2>&5
38159   ac_status=$?
38160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161   (exit $ac_status); }; }; then
38162   ac_cv_member_struct_passwd_pw_passwd=yes
38163 else
38164   echo "$as_me: failed program was:" >&5
38165 sed 's/^/| /' conftest.$ac_ext >&5
38166
38167 ac_cv_member_struct_passwd_pw_passwd=no
38168 fi
38169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38170 fi
38171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38172 fi
38173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38174 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38175 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38176
38177 cat >>confdefs.h <<_ACEOF
38178 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38179 _ACEOF
38180
38181
38182 fi
38183
38184
38185 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38186 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38187 if test "${ol_cv_c_upper_lower+set}" = set; then
38188   echo $ECHO_N "(cached) $ECHO_C" >&6
38189 else
38190
38191         if test "$cross_compiling" = yes; then
38192   ol_cv_c_upper_lower=safe
38193 else
38194   cat >conftest.$ac_ext <<_ACEOF
38195 /* confdefs.h.  */
38196 _ACEOF
38197 cat confdefs.h >>conftest.$ac_ext
38198 cat >>conftest.$ac_ext <<_ACEOF
38199 /* end confdefs.h.  */
38200
38201 #include <ctype.h>
38202 main()
38203 {
38204         if ('C' == toupper('C'))
38205                 exit(0);
38206         else
38207                 exit(1);
38208 }
38209 _ACEOF
38210 rm -f conftest$ac_exeext
38211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38212   (eval $ac_link) 2>&5
38213   ac_status=$?
38214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217   (eval $ac_try) 2>&5
38218   ac_status=$?
38219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220   (exit $ac_status); }; }; then
38221   ol_cv_c_upper_lower=no
38222 else
38223   echo "$as_me: program exited with status $ac_status" >&5
38224 echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38226
38227 ( exit $ac_status )
38228 ol_cv_c_upper_lower=yes
38229 fi
38230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38231 fi
38232 fi
38233 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38234 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38235 if test $ol_cv_c_upper_lower != no ; then
38236
38237 cat >>confdefs.h <<\_ACEOF
38238 #define C_UPPER_LOWER 1
38239 _ACEOF
38240
38241 fi
38242
38243 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38245 if test "${ac_cv_c_const+set}" = set; then
38246   echo $ECHO_N "(cached) $ECHO_C" >&6
38247 else
38248   cat >conftest.$ac_ext <<_ACEOF
38249 /* confdefs.h.  */
38250 _ACEOF
38251 cat confdefs.h >>conftest.$ac_ext
38252 cat >>conftest.$ac_ext <<_ACEOF
38253 /* end confdefs.h.  */
38254
38255 int
38256 main ()
38257 {
38258 /* FIXME: Include the comments suggested by Paul. */
38259 #ifndef __cplusplus
38260   /* Ultrix mips cc rejects this.  */
38261   typedef int charset[2];
38262   const charset x;
38263   /* SunOS 4.1.1 cc rejects this.  */
38264   char const *const *ccp;
38265   char **p;
38266   /* NEC SVR4.0.2 mips cc rejects this.  */
38267   struct point {int x, y;};
38268   static struct point const zero = {0,0};
38269   /* AIX XL C 1.02.0.0 rejects this.
38270      It does not let you subtract one const X* pointer from another in
38271      an arm of an if-expression whose if-part is not a constant
38272      expression */
38273   const char *g = "string";
38274   ccp = &g + (g ? g-g : 0);
38275   /* HPUX 7.0 cc rejects these. */
38276   ++ccp;
38277   p = (char**) ccp;
38278   ccp = (char const *const *) p;
38279   { /* SCO 3.2v4 cc rejects this.  */
38280     char *t;
38281     char const *s = 0 ? (char *) 0 : (char const *) 0;
38282
38283     *t++ = 0;
38284   }
38285   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38286     int x[] = {25, 17};
38287     const int *foo = &x[0];
38288     ++foo;
38289   }
38290   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38291     typedef const int *iptr;
38292     iptr p = 0;
38293     ++p;
38294   }
38295   { /* AIX XL C 1.02.0.0 rejects this saying
38296        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38297     struct s { int j; const int *ap[3]; };
38298     struct s *b; b->j = 5;
38299   }
38300   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38301     const int foo = 10;
38302   }
38303 #endif
38304
38305   ;
38306   return 0;
38307 }
38308 _ACEOF
38309 rm -f conftest.$ac_objext
38310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38311   (eval $ac_compile) 2>conftest.er1
38312   ac_status=$?
38313   grep -v '^ *+' conftest.er1 >conftest.err
38314   rm -f conftest.er1
38315   cat conftest.err >&5
38316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317   (exit $ac_status); } &&
38318          { ac_try='test -z "$ac_c_werror_flag"
38319                          || test ! -s conftest.err'
38320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38321   (eval $ac_try) 2>&5
38322   ac_status=$?
38323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324   (exit $ac_status); }; } &&
38325          { ac_try='test -s conftest.$ac_objext'
38326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327   (eval $ac_try) 2>&5
38328   ac_status=$?
38329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330   (exit $ac_status); }; }; then
38331   ac_cv_c_const=yes
38332 else
38333   echo "$as_me: failed program was:" >&5
38334 sed 's/^/| /' conftest.$ac_ext >&5
38335
38336 ac_cv_c_const=no
38337 fi
38338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38339 fi
38340 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38341 echo "${ECHO_T}$ac_cv_c_const" >&6
38342 if test $ac_cv_c_const = no; then
38343
38344 cat >>confdefs.h <<\_ACEOF
38345 #define const
38346 _ACEOF
38347
38348 fi
38349
38350 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38351 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38352 if test "${ol_cv_c_volatile+set}" = set; then
38353   echo $ECHO_N "(cached) $ECHO_C" >&6
38354 else
38355   cat >conftest.$ac_ext <<_ACEOF
38356 /* confdefs.h.  */
38357 _ACEOF
38358 cat confdefs.h >>conftest.$ac_ext
38359 cat >>conftest.$ac_ext <<_ACEOF
38360 /* end confdefs.h.  */
38361 int x, y, z;
38362 int
38363 main ()
38364 {
38365 volatile int a; int * volatile b = x ? &y : &z;
38366       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38367       *b = 0;
38368   ;
38369   return 0;
38370 }
38371 _ACEOF
38372 rm -f conftest.$ac_objext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38374   (eval $ac_compile) 2>conftest.er1
38375   ac_status=$?
38376   grep -v '^ *+' conftest.er1 >conftest.err
38377   rm -f conftest.er1
38378   cat conftest.err >&5
38379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380   (exit $ac_status); } &&
38381          { ac_try='test -z "$ac_c_werror_flag"
38382                          || test ! -s conftest.err'
38383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38384   (eval $ac_try) 2>&5
38385   ac_status=$?
38386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387   (exit $ac_status); }; } &&
38388          { ac_try='test -s conftest.$ac_objext'
38389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38390   (eval $ac_try) 2>&5
38391   ac_status=$?
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); }; }; then
38394   ol_cv_c_volatile=yes
38395 else
38396   echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399 ol_cv_c_volatile=no
38400 fi
38401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38402 fi
38403 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38404 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38405   if test $ol_cv_c_volatile = yes; then
38406     :
38407   else
38408
38409 cat >>confdefs.h <<\_ACEOF
38410 #define volatile
38411 _ACEOF
38412
38413   fi
38414
38415
38416 if test $cross_compiling = yes ; then
38417         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38418 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38419
38420 cat >>confdefs.h <<\_ACEOF
38421 #define CROSS_COMPILING 1
38422 _ACEOF
38423
38424 else
38425         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38426 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38427 if test "${ac_cv_c_bigendian+set}" = set; then
38428   echo $ECHO_N "(cached) $ECHO_C" >&6
38429 else
38430   # See if sys/param.h defines the BYTE_ORDER macro.
38431 cat >conftest.$ac_ext <<_ACEOF
38432 /* confdefs.h.  */
38433 _ACEOF
38434 cat confdefs.h >>conftest.$ac_ext
38435 cat >>conftest.$ac_ext <<_ACEOF
38436 /* end confdefs.h.  */
38437 #include <sys/types.h>
38438 #include <sys/param.h>
38439
38440 int
38441 main ()
38442 {
38443 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38444  bogus endian macros
38445 #endif
38446
38447   ;
38448   return 0;
38449 }
38450 _ACEOF
38451 rm -f conftest.$ac_objext
38452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38453   (eval $ac_compile) 2>conftest.er1
38454   ac_status=$?
38455   grep -v '^ *+' conftest.er1 >conftest.err
38456   rm -f conftest.er1
38457   cat conftest.err >&5
38458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459   (exit $ac_status); } &&
38460          { ac_try='test -z "$ac_c_werror_flag"
38461                          || test ! -s conftest.err'
38462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463   (eval $ac_try) 2>&5
38464   ac_status=$?
38465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466   (exit $ac_status); }; } &&
38467          { ac_try='test -s conftest.$ac_objext'
38468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469   (eval $ac_try) 2>&5
38470   ac_status=$?
38471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472   (exit $ac_status); }; }; then
38473   # It does; now see whether it defined to BIG_ENDIAN or not.
38474 cat >conftest.$ac_ext <<_ACEOF
38475 /* confdefs.h.  */
38476 _ACEOF
38477 cat confdefs.h >>conftest.$ac_ext
38478 cat >>conftest.$ac_ext <<_ACEOF
38479 /* end confdefs.h.  */
38480 #include <sys/types.h>
38481 #include <sys/param.h>
38482
38483 int
38484 main ()
38485 {
38486 #if BYTE_ORDER != BIG_ENDIAN
38487  not big endian
38488 #endif
38489
38490   ;
38491   return 0;
38492 }
38493 _ACEOF
38494 rm -f conftest.$ac_objext
38495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38496   (eval $ac_compile) 2>conftest.er1
38497   ac_status=$?
38498   grep -v '^ *+' conftest.er1 >conftest.err
38499   rm -f conftest.er1
38500   cat conftest.err >&5
38501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502   (exit $ac_status); } &&
38503          { ac_try='test -z "$ac_c_werror_flag"
38504                          || test ! -s conftest.err'
38505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506   (eval $ac_try) 2>&5
38507   ac_status=$?
38508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509   (exit $ac_status); }; } &&
38510          { ac_try='test -s conftest.$ac_objext'
38511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512   (eval $ac_try) 2>&5
38513   ac_status=$?
38514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515   (exit $ac_status); }; }; then
38516   ac_cv_c_bigendian=yes
38517 else
38518   echo "$as_me: failed program was:" >&5
38519 sed 's/^/| /' conftest.$ac_ext >&5
38520
38521 ac_cv_c_bigendian=no
38522 fi
38523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38524 else
38525   echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38527
38528 # It does not; compile a test program.
38529 if test "$cross_compiling" = yes; then
38530   # try to guess the endianness by grepping values into an object file
38531   ac_cv_c_bigendian=unknown
38532   cat >conftest.$ac_ext <<_ACEOF
38533 /* confdefs.h.  */
38534 _ACEOF
38535 cat confdefs.h >>conftest.$ac_ext
38536 cat >>conftest.$ac_ext <<_ACEOF
38537 /* end confdefs.h.  */
38538 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38539 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38540 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38541 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38542 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38543 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38544 int
38545 main ()
38546 {
38547  _ascii (); _ebcdic ();
38548   ;
38549   return 0;
38550 }
38551 _ACEOF
38552 rm -f conftest.$ac_objext
38553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38554   (eval $ac_compile) 2>conftest.er1
38555   ac_status=$?
38556   grep -v '^ *+' conftest.er1 >conftest.err
38557   rm -f conftest.er1
38558   cat conftest.err >&5
38559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560   (exit $ac_status); } &&
38561          { ac_try='test -z "$ac_c_werror_flag"
38562                          || test ! -s conftest.err'
38563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564   (eval $ac_try) 2>&5
38565   ac_status=$?
38566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567   (exit $ac_status); }; } &&
38568          { ac_try='test -s conftest.$ac_objext'
38569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38570   (eval $ac_try) 2>&5
38571   ac_status=$?
38572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573   (exit $ac_status); }; }; then
38574   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38575   ac_cv_c_bigendian=yes
38576 fi
38577 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38578   if test "$ac_cv_c_bigendian" = unknown; then
38579     ac_cv_c_bigendian=no
38580   else
38581     # finding both strings is unlikely to happen, but who knows?
38582     ac_cv_c_bigendian=unknown
38583   fi
38584 fi
38585 else
38586   echo "$as_me: failed program was:" >&5
38587 sed 's/^/| /' conftest.$ac_ext >&5
38588
38589 fi
38590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38591 else
38592   cat >conftest.$ac_ext <<_ACEOF
38593 /* confdefs.h.  */
38594 _ACEOF
38595 cat confdefs.h >>conftest.$ac_ext
38596 cat >>conftest.$ac_ext <<_ACEOF
38597 /* end confdefs.h.  */
38598 int
38599 main ()
38600 {
38601   /* Are we little or big endian?  From Harbison&Steele.  */
38602   union
38603   {
38604     long l;
38605     char c[sizeof (long)];
38606   } u;
38607   u.l = 1;
38608   exit (u.c[sizeof (long) - 1] == 1);
38609 }
38610 _ACEOF
38611 rm -f conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613   (eval $ac_link) 2>&5
38614   ac_status=$?
38615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38618   (eval $ac_try) 2>&5
38619   ac_status=$?
38620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38621   (exit $ac_status); }; }; then
38622   ac_cv_c_bigendian=no
38623 else
38624   echo "$as_me: program exited with status $ac_status" >&5
38625 echo "$as_me: failed program was:" >&5
38626 sed 's/^/| /' conftest.$ac_ext >&5
38627
38628 ( exit $ac_status )
38629 ac_cv_c_bigendian=yes
38630 fi
38631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38632 fi
38633 fi
38634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38635 fi
38636 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38637 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38638 case $ac_cv_c_bigendian in
38639   yes)
38640
38641 cat >>confdefs.h <<\_ACEOF
38642 #define WORDS_BIGENDIAN 1
38643 _ACEOF
38644  ;;
38645   no)
38646      ;;
38647   *)
38648     { { echo "$as_me:$LINENO: error: unknown endianness
38649 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38650 echo "$as_me: error: unknown endianness
38651 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38652    { (exit 1); exit 1; }; } ;;
38653 esac
38654
38655 fi
38656
38657 echo "$as_me:$LINENO: checking for short" >&5
38658 echo $ECHO_N "checking for short... $ECHO_C" >&6
38659 if test "${ac_cv_type_short+set}" = set; then
38660   echo $ECHO_N "(cached) $ECHO_C" >&6
38661 else
38662   cat >conftest.$ac_ext <<_ACEOF
38663 /* confdefs.h.  */
38664 _ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h.  */
38668 $ac_includes_default
38669 int
38670 main ()
38671 {
38672 if ((short *) 0)
38673   return 0;
38674 if (sizeof (short))
38675   return 0;
38676   ;
38677   return 0;
38678 }
38679 _ACEOF
38680 rm -f conftest.$ac_objext
38681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38682   (eval $ac_compile) 2>conftest.er1
38683   ac_status=$?
38684   grep -v '^ *+' conftest.er1 >conftest.err
38685   rm -f conftest.er1
38686   cat conftest.err >&5
38687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38688   (exit $ac_status); } &&
38689          { ac_try='test -z "$ac_c_werror_flag"
38690                          || test ! -s conftest.err'
38691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38692   (eval $ac_try) 2>&5
38693   ac_status=$?
38694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695   (exit $ac_status); }; } &&
38696          { ac_try='test -s conftest.$ac_objext'
38697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698   (eval $ac_try) 2>&5
38699   ac_status=$?
38700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701   (exit $ac_status); }; }; then
38702   ac_cv_type_short=yes
38703 else
38704   echo "$as_me: failed program was:" >&5
38705 sed 's/^/| /' conftest.$ac_ext >&5
38706
38707 ac_cv_type_short=no
38708 fi
38709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38710 fi
38711 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38712 echo "${ECHO_T}$ac_cv_type_short" >&6
38713
38714 echo "$as_me:$LINENO: checking size of short" >&5
38715 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38716 if test "${ac_cv_sizeof_short+set}" = set; then
38717   echo $ECHO_N "(cached) $ECHO_C" >&6
38718 else
38719   if test "$ac_cv_type_short" = yes; then
38720   # The cast to unsigned long works around a bug in the HP C Compiler
38721   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38722   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38723   # This bug is HP SR number 8606223364.
38724   if test "$cross_compiling" = yes; then
38725   # Depending upon the size, compute the lo and hi bounds.
38726 cat >conftest.$ac_ext <<_ACEOF
38727 /* confdefs.h.  */
38728 _ACEOF
38729 cat confdefs.h >>conftest.$ac_ext
38730 cat >>conftest.$ac_ext <<_ACEOF
38731 /* end confdefs.h.  */
38732 $ac_includes_default
38733 int
38734 main ()
38735 {
38736 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38737 test_array [0] = 0
38738
38739   ;
38740   return 0;
38741 }
38742 _ACEOF
38743 rm -f conftest.$ac_objext
38744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38745   (eval $ac_compile) 2>conftest.er1
38746   ac_status=$?
38747   grep -v '^ *+' conftest.er1 >conftest.err
38748   rm -f conftest.er1
38749   cat conftest.err >&5
38750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38751   (exit $ac_status); } &&
38752          { ac_try='test -z "$ac_c_werror_flag"
38753                          || test ! -s conftest.err'
38754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38755   (eval $ac_try) 2>&5
38756   ac_status=$?
38757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38758   (exit $ac_status); }; } &&
38759          { ac_try='test -s conftest.$ac_objext'
38760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38761   (eval $ac_try) 2>&5
38762   ac_status=$?
38763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38764   (exit $ac_status); }; }; then
38765   ac_lo=0 ac_mid=0
38766   while :; do
38767     cat >conftest.$ac_ext <<_ACEOF
38768 /* confdefs.h.  */
38769 _ACEOF
38770 cat confdefs.h >>conftest.$ac_ext
38771 cat >>conftest.$ac_ext <<_ACEOF
38772 /* end confdefs.h.  */
38773 $ac_includes_default
38774 int
38775 main ()
38776 {
38777 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38778 test_array [0] = 0
38779
38780   ;
38781   return 0;
38782 }
38783 _ACEOF
38784 rm -f conftest.$ac_objext
38785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38786   (eval $ac_compile) 2>conftest.er1
38787   ac_status=$?
38788   grep -v '^ *+' conftest.er1 >conftest.err
38789   rm -f conftest.er1
38790   cat conftest.err >&5
38791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792   (exit $ac_status); } &&
38793          { ac_try='test -z "$ac_c_werror_flag"
38794                          || test ! -s conftest.err'
38795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38796   (eval $ac_try) 2>&5
38797   ac_status=$?
38798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799   (exit $ac_status); }; } &&
38800          { ac_try='test -s conftest.$ac_objext'
38801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802   (eval $ac_try) 2>&5
38803   ac_status=$?
38804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805   (exit $ac_status); }; }; then
38806   ac_hi=$ac_mid; break
38807 else
38808   echo "$as_me: failed program was:" >&5
38809 sed 's/^/| /' conftest.$ac_ext >&5
38810
38811 ac_lo=`expr $ac_mid + 1`
38812                     if test $ac_lo -le $ac_mid; then
38813                       ac_lo= ac_hi=
38814                       break
38815                     fi
38816                     ac_mid=`expr 2 '*' $ac_mid + 1`
38817 fi
38818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38819   done
38820 else
38821   echo "$as_me: failed program was:" >&5
38822 sed 's/^/| /' conftest.$ac_ext >&5
38823
38824 cat >conftest.$ac_ext <<_ACEOF
38825 /* confdefs.h.  */
38826 _ACEOF
38827 cat confdefs.h >>conftest.$ac_ext
38828 cat >>conftest.$ac_ext <<_ACEOF
38829 /* end confdefs.h.  */
38830 $ac_includes_default
38831 int
38832 main ()
38833 {
38834 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38835 test_array [0] = 0
38836
38837   ;
38838   return 0;
38839 }
38840 _ACEOF
38841 rm -f conftest.$ac_objext
38842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38843   (eval $ac_compile) 2>conftest.er1
38844   ac_status=$?
38845   grep -v '^ *+' conftest.er1 >conftest.err
38846   rm -f conftest.er1
38847   cat conftest.err >&5
38848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849   (exit $ac_status); } &&
38850          { ac_try='test -z "$ac_c_werror_flag"
38851                          || test ! -s conftest.err'
38852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38853   (eval $ac_try) 2>&5
38854   ac_status=$?
38855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38856   (exit $ac_status); }; } &&
38857          { ac_try='test -s conftest.$ac_objext'
38858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859   (eval $ac_try) 2>&5
38860   ac_status=$?
38861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862   (exit $ac_status); }; }; then
38863   ac_hi=-1 ac_mid=-1
38864   while :; do
38865     cat >conftest.$ac_ext <<_ACEOF
38866 /* confdefs.h.  */
38867 _ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h.  */
38871 $ac_includes_default
38872 int
38873 main ()
38874 {
38875 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38876 test_array [0] = 0
38877
38878   ;
38879   return 0;
38880 }
38881 _ACEOF
38882 rm -f conftest.$ac_objext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38884   (eval $ac_compile) 2>conftest.er1
38885   ac_status=$?
38886   grep -v '^ *+' conftest.er1 >conftest.err
38887   rm -f conftest.er1
38888   cat conftest.err >&5
38889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38890   (exit $ac_status); } &&
38891          { ac_try='test -z "$ac_c_werror_flag"
38892                          || test ! -s conftest.err'
38893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38894   (eval $ac_try) 2>&5
38895   ac_status=$?
38896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38897   (exit $ac_status); }; } &&
38898          { ac_try='test -s conftest.$ac_objext'
38899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900   (eval $ac_try) 2>&5
38901   ac_status=$?
38902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903   (exit $ac_status); }; }; then
38904   ac_lo=$ac_mid; break
38905 else
38906   echo "$as_me: failed program was:" >&5
38907 sed 's/^/| /' conftest.$ac_ext >&5
38908
38909 ac_hi=`expr '(' $ac_mid ')' - 1`
38910                        if test $ac_mid -le $ac_hi; then
38911                          ac_lo= ac_hi=
38912                          break
38913                        fi
38914                        ac_mid=`expr 2 '*' $ac_mid`
38915 fi
38916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38917   done
38918 else
38919   echo "$as_me: failed program was:" >&5
38920 sed 's/^/| /' conftest.$ac_ext >&5
38921
38922 ac_lo= ac_hi=
38923 fi
38924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38925 fi
38926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38927 # Binary search between lo and hi bounds.
38928 while test "x$ac_lo" != "x$ac_hi"; do
38929   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38930   cat >conftest.$ac_ext <<_ACEOF
38931 /* confdefs.h.  */
38932 _ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h.  */
38936 $ac_includes_default
38937 int
38938 main ()
38939 {
38940 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38941 test_array [0] = 0
38942
38943   ;
38944   return 0;
38945 }
38946 _ACEOF
38947 rm -f conftest.$ac_objext
38948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38949   (eval $ac_compile) 2>conftest.er1
38950   ac_status=$?
38951   grep -v '^ *+' conftest.er1 >conftest.err
38952   rm -f conftest.er1
38953   cat conftest.err >&5
38954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955   (exit $ac_status); } &&
38956          { ac_try='test -z "$ac_c_werror_flag"
38957                          || test ! -s conftest.err'
38958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959   (eval $ac_try) 2>&5
38960   ac_status=$?
38961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962   (exit $ac_status); }; } &&
38963          { ac_try='test -s conftest.$ac_objext'
38964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38965   (eval $ac_try) 2>&5
38966   ac_status=$?
38967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968   (exit $ac_status); }; }; then
38969   ac_hi=$ac_mid
38970 else
38971   echo "$as_me: failed program was:" >&5
38972 sed 's/^/| /' conftest.$ac_ext >&5
38973
38974 ac_lo=`expr '(' $ac_mid ')' + 1`
38975 fi
38976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38977 done
38978 case $ac_lo in
38979 ?*) ac_cv_sizeof_short=$ac_lo;;
38980 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38981 See \`config.log' for more details." >&5
38982 echo "$as_me: error: cannot compute sizeof (short), 77
38983 See \`config.log' for more details." >&2;}
38984    { (exit 1); exit 1; }; } ;;
38985 esac
38986 else
38987   if test "$cross_compiling" = yes; then
38988   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38989 See \`config.log' for more details." >&5
38990 echo "$as_me: error: cannot run test program while cross compiling
38991 See \`config.log' for more details." >&2;}
38992    { (exit 1); exit 1; }; }
38993 else
38994   cat >conftest.$ac_ext <<_ACEOF
38995 /* confdefs.h.  */
38996 _ACEOF
38997 cat confdefs.h >>conftest.$ac_ext
38998 cat >>conftest.$ac_ext <<_ACEOF
38999 /* end confdefs.h.  */
39000 $ac_includes_default
39001 long longval () { return (long) (sizeof (short)); }
39002 unsigned long ulongval () { return (long) (sizeof (short)); }
39003 #include <stdio.h>
39004 #include <stdlib.h>
39005 int
39006 main ()
39007 {
39008
39009   FILE *f = fopen ("conftest.val", "w");
39010   if (! f)
39011     exit (1);
39012   if (((long) (sizeof (short))) < 0)
39013     {
39014       long i = longval ();
39015       if (i != ((long) (sizeof (short))))
39016         exit (1);
39017       fprintf (f, "%ld\n", i);
39018     }
39019   else
39020     {
39021       unsigned long i = ulongval ();
39022       if (i != ((long) (sizeof (short))))
39023         exit (1);
39024       fprintf (f, "%lu\n", i);
39025     }
39026   exit (ferror (f) || fclose (f) != 0);
39027
39028   ;
39029   return 0;
39030 }
39031 _ACEOF
39032 rm -f conftest$ac_exeext
39033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39034   (eval $ac_link) 2>&5
39035   ac_status=$?
39036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39039   (eval $ac_try) 2>&5
39040   ac_status=$?
39041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39042   (exit $ac_status); }; }; then
39043   ac_cv_sizeof_short=`cat conftest.val`
39044 else
39045   echo "$as_me: program exited with status $ac_status" >&5
39046 echo "$as_me: failed program was:" >&5
39047 sed 's/^/| /' conftest.$ac_ext >&5
39048
39049 ( exit $ac_status )
39050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
39051 See \`config.log' for more details." >&5
39052 echo "$as_me: error: cannot compute sizeof (short), 77
39053 See \`config.log' for more details." >&2;}
39054    { (exit 1); exit 1; }; }
39055 fi
39056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39057 fi
39058 fi
39059 rm -f conftest.val
39060 else
39061   ac_cv_sizeof_short=0
39062 fi
39063 fi
39064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
39065 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
39066 cat >>confdefs.h <<_ACEOF
39067 #define SIZEOF_SHORT $ac_cv_sizeof_short
39068 _ACEOF
39069
39070
39071 echo "$as_me:$LINENO: checking for int" >&5
39072 echo $ECHO_N "checking for int... $ECHO_C" >&6
39073 if test "${ac_cv_type_int+set}" = set; then
39074   echo $ECHO_N "(cached) $ECHO_C" >&6
39075 else
39076   cat >conftest.$ac_ext <<_ACEOF
39077 /* confdefs.h.  */
39078 _ACEOF
39079 cat confdefs.h >>conftest.$ac_ext
39080 cat >>conftest.$ac_ext <<_ACEOF
39081 /* end confdefs.h.  */
39082 $ac_includes_default
39083 int
39084 main ()
39085 {
39086 if ((int *) 0)
39087   return 0;
39088 if (sizeof (int))
39089   return 0;
39090   ;
39091   return 0;
39092 }
39093 _ACEOF
39094 rm -f conftest.$ac_objext
39095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39096   (eval $ac_compile) 2>conftest.er1
39097   ac_status=$?
39098   grep -v '^ *+' conftest.er1 >conftest.err
39099   rm -f conftest.er1
39100   cat conftest.err >&5
39101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102   (exit $ac_status); } &&
39103          { ac_try='test -z "$ac_c_werror_flag"
39104                          || test ! -s conftest.err'
39105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39106   (eval $ac_try) 2>&5
39107   ac_status=$?
39108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39109   (exit $ac_status); }; } &&
39110          { ac_try='test -s conftest.$ac_objext'
39111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39112   (eval $ac_try) 2>&5
39113   ac_status=$?
39114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39115   (exit $ac_status); }; }; then
39116   ac_cv_type_int=yes
39117 else
39118   echo "$as_me: failed program was:" >&5
39119 sed 's/^/| /' conftest.$ac_ext >&5
39120
39121 ac_cv_type_int=no
39122 fi
39123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39124 fi
39125 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39126 echo "${ECHO_T}$ac_cv_type_int" >&6
39127
39128 echo "$as_me:$LINENO: checking size of int" >&5
39129 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39130 if test "${ac_cv_sizeof_int+set}" = set; then
39131   echo $ECHO_N "(cached) $ECHO_C" >&6
39132 else
39133   if test "$ac_cv_type_int" = yes; then
39134   # The cast to unsigned long works around a bug in the HP C Compiler
39135   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39136   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39137   # This bug is HP SR number 8606223364.
39138   if test "$cross_compiling" = yes; then
39139   # Depending upon the size, compute the lo and hi bounds.
39140 cat >conftest.$ac_ext <<_ACEOF
39141 /* confdefs.h.  */
39142 _ACEOF
39143 cat confdefs.h >>conftest.$ac_ext
39144 cat >>conftest.$ac_ext <<_ACEOF
39145 /* end confdefs.h.  */
39146 $ac_includes_default
39147 int
39148 main ()
39149 {
39150 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39151 test_array [0] = 0
39152
39153   ;
39154   return 0;
39155 }
39156 _ACEOF
39157 rm -f conftest.$ac_objext
39158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39159   (eval $ac_compile) 2>conftest.er1
39160   ac_status=$?
39161   grep -v '^ *+' conftest.er1 >conftest.err
39162   rm -f conftest.er1
39163   cat conftest.err >&5
39164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165   (exit $ac_status); } &&
39166          { ac_try='test -z "$ac_c_werror_flag"
39167                          || test ! -s conftest.err'
39168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39169   (eval $ac_try) 2>&5
39170   ac_status=$?
39171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172   (exit $ac_status); }; } &&
39173          { ac_try='test -s conftest.$ac_objext'
39174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39175   (eval $ac_try) 2>&5
39176   ac_status=$?
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); }; }; then
39179   ac_lo=0 ac_mid=0
39180   while :; do
39181     cat >conftest.$ac_ext <<_ACEOF
39182 /* confdefs.h.  */
39183 _ACEOF
39184 cat confdefs.h >>conftest.$ac_ext
39185 cat >>conftest.$ac_ext <<_ACEOF
39186 /* end confdefs.h.  */
39187 $ac_includes_default
39188 int
39189 main ()
39190 {
39191 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39192 test_array [0] = 0
39193
39194   ;
39195   return 0;
39196 }
39197 _ACEOF
39198 rm -f conftest.$ac_objext
39199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39200   (eval $ac_compile) 2>conftest.er1
39201   ac_status=$?
39202   grep -v '^ *+' conftest.er1 >conftest.err
39203   rm -f conftest.er1
39204   cat conftest.err >&5
39205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206   (exit $ac_status); } &&
39207          { ac_try='test -z "$ac_c_werror_flag"
39208                          || test ! -s conftest.err'
39209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210   (eval $ac_try) 2>&5
39211   ac_status=$?
39212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213   (exit $ac_status); }; } &&
39214          { ac_try='test -s conftest.$ac_objext'
39215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216   (eval $ac_try) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); }; }; then
39220   ac_hi=$ac_mid; break
39221 else
39222   echo "$as_me: failed program was:" >&5
39223 sed 's/^/| /' conftest.$ac_ext >&5
39224
39225 ac_lo=`expr $ac_mid + 1`
39226                     if test $ac_lo -le $ac_mid; then
39227                       ac_lo= ac_hi=
39228                       break
39229                     fi
39230                     ac_mid=`expr 2 '*' $ac_mid + 1`
39231 fi
39232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39233   done
39234 else
39235   echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238 cat >conftest.$ac_ext <<_ACEOF
39239 /* confdefs.h.  */
39240 _ACEOF
39241 cat confdefs.h >>conftest.$ac_ext
39242 cat >>conftest.$ac_ext <<_ACEOF
39243 /* end confdefs.h.  */
39244 $ac_includes_default
39245 int
39246 main ()
39247 {
39248 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39249 test_array [0] = 0
39250
39251   ;
39252   return 0;
39253 }
39254 _ACEOF
39255 rm -f conftest.$ac_objext
39256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39257   (eval $ac_compile) 2>conftest.er1
39258   ac_status=$?
39259   grep -v '^ *+' conftest.er1 >conftest.err
39260   rm -f conftest.er1
39261   cat conftest.err >&5
39262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39263   (exit $ac_status); } &&
39264          { ac_try='test -z "$ac_c_werror_flag"
39265                          || test ! -s conftest.err'
39266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39267   (eval $ac_try) 2>&5
39268   ac_status=$?
39269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39270   (exit $ac_status); }; } &&
39271          { ac_try='test -s conftest.$ac_objext'
39272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273   (eval $ac_try) 2>&5
39274   ac_status=$?
39275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276   (exit $ac_status); }; }; then
39277   ac_hi=-1 ac_mid=-1
39278   while :; do
39279     cat >conftest.$ac_ext <<_ACEOF
39280 /* confdefs.h.  */
39281 _ACEOF
39282 cat confdefs.h >>conftest.$ac_ext
39283 cat >>conftest.$ac_ext <<_ACEOF
39284 /* end confdefs.h.  */
39285 $ac_includes_default
39286 int
39287 main ()
39288 {
39289 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39290 test_array [0] = 0
39291
39292   ;
39293   return 0;
39294 }
39295 _ACEOF
39296 rm -f conftest.$ac_objext
39297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39298   (eval $ac_compile) 2>conftest.er1
39299   ac_status=$?
39300   grep -v '^ *+' conftest.er1 >conftest.err
39301   rm -f conftest.er1
39302   cat conftest.err >&5
39303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304   (exit $ac_status); } &&
39305          { ac_try='test -z "$ac_c_werror_flag"
39306                          || test ! -s conftest.err'
39307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39308   (eval $ac_try) 2>&5
39309   ac_status=$?
39310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311   (exit $ac_status); }; } &&
39312          { ac_try='test -s conftest.$ac_objext'
39313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39314   (eval $ac_try) 2>&5
39315   ac_status=$?
39316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39317   (exit $ac_status); }; }; then
39318   ac_lo=$ac_mid; break
39319 else
39320   echo "$as_me: failed program was:" >&5
39321 sed 's/^/| /' conftest.$ac_ext >&5
39322
39323 ac_hi=`expr '(' $ac_mid ')' - 1`
39324                        if test $ac_mid -le $ac_hi; then
39325                          ac_lo= ac_hi=
39326                          break
39327                        fi
39328                        ac_mid=`expr 2 '*' $ac_mid`
39329 fi
39330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39331   done
39332 else
39333   echo "$as_me: failed program was:" >&5
39334 sed 's/^/| /' conftest.$ac_ext >&5
39335
39336 ac_lo= ac_hi=
39337 fi
39338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39339 fi
39340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39341 # Binary search between lo and hi bounds.
39342 while test "x$ac_lo" != "x$ac_hi"; do
39343   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39344   cat >conftest.$ac_ext <<_ACEOF
39345 /* confdefs.h.  */
39346 _ACEOF
39347 cat confdefs.h >>conftest.$ac_ext
39348 cat >>conftest.$ac_ext <<_ACEOF
39349 /* end confdefs.h.  */
39350 $ac_includes_default
39351 int
39352 main ()
39353 {
39354 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39355 test_array [0] = 0
39356
39357   ;
39358   return 0;
39359 }
39360 _ACEOF
39361 rm -f conftest.$ac_objext
39362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39363   (eval $ac_compile) 2>conftest.er1
39364   ac_status=$?
39365   grep -v '^ *+' conftest.er1 >conftest.err
39366   rm -f conftest.er1
39367   cat conftest.err >&5
39368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369   (exit $ac_status); } &&
39370          { ac_try='test -z "$ac_c_werror_flag"
39371                          || test ! -s conftest.err'
39372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39373   (eval $ac_try) 2>&5
39374   ac_status=$?
39375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376   (exit $ac_status); }; } &&
39377          { ac_try='test -s conftest.$ac_objext'
39378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39379   (eval $ac_try) 2>&5
39380   ac_status=$?
39381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382   (exit $ac_status); }; }; then
39383   ac_hi=$ac_mid
39384 else
39385   echo "$as_me: failed program was:" >&5
39386 sed 's/^/| /' conftest.$ac_ext >&5
39387
39388 ac_lo=`expr '(' $ac_mid ')' + 1`
39389 fi
39390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39391 done
39392 case $ac_lo in
39393 ?*) ac_cv_sizeof_int=$ac_lo;;
39394 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39395 See \`config.log' for more details." >&5
39396 echo "$as_me: error: cannot compute sizeof (int), 77
39397 See \`config.log' for more details." >&2;}
39398    { (exit 1); exit 1; }; } ;;
39399 esac
39400 else
39401   if test "$cross_compiling" = yes; then
39402   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39403 See \`config.log' for more details." >&5
39404 echo "$as_me: error: cannot run test program while cross compiling
39405 See \`config.log' for more details." >&2;}
39406    { (exit 1); exit 1; }; }
39407 else
39408   cat >conftest.$ac_ext <<_ACEOF
39409 /* confdefs.h.  */
39410 _ACEOF
39411 cat confdefs.h >>conftest.$ac_ext
39412 cat >>conftest.$ac_ext <<_ACEOF
39413 /* end confdefs.h.  */
39414 $ac_includes_default
39415 long longval () { return (long) (sizeof (int)); }
39416 unsigned long ulongval () { return (long) (sizeof (int)); }
39417 #include <stdio.h>
39418 #include <stdlib.h>
39419 int
39420 main ()
39421 {
39422
39423   FILE *f = fopen ("conftest.val", "w");
39424   if (! f)
39425     exit (1);
39426   if (((long) (sizeof (int))) < 0)
39427     {
39428       long i = longval ();
39429       if (i != ((long) (sizeof (int))))
39430         exit (1);
39431       fprintf (f, "%ld\n", i);
39432     }
39433   else
39434     {
39435       unsigned long i = ulongval ();
39436       if (i != ((long) (sizeof (int))))
39437         exit (1);
39438       fprintf (f, "%lu\n", i);
39439     }
39440   exit (ferror (f) || fclose (f) != 0);
39441
39442   ;
39443   return 0;
39444 }
39445 _ACEOF
39446 rm -f conftest$ac_exeext
39447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39448   (eval $ac_link) 2>&5
39449   ac_status=$?
39450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39453   (eval $ac_try) 2>&5
39454   ac_status=$?
39455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39456   (exit $ac_status); }; }; then
39457   ac_cv_sizeof_int=`cat conftest.val`
39458 else
39459   echo "$as_me: program exited with status $ac_status" >&5
39460 echo "$as_me: failed program was:" >&5
39461 sed 's/^/| /' conftest.$ac_ext >&5
39462
39463 ( exit $ac_status )
39464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39465 See \`config.log' for more details." >&5
39466 echo "$as_me: error: cannot compute sizeof (int), 77
39467 See \`config.log' for more details." >&2;}
39468    { (exit 1); exit 1; }; }
39469 fi
39470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39471 fi
39472 fi
39473 rm -f conftest.val
39474 else
39475   ac_cv_sizeof_int=0
39476 fi
39477 fi
39478 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39479 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39480 cat >>confdefs.h <<_ACEOF
39481 #define SIZEOF_INT $ac_cv_sizeof_int
39482 _ACEOF
39483
39484
39485 echo "$as_me:$LINENO: checking for long" >&5
39486 echo $ECHO_N "checking for long... $ECHO_C" >&6
39487 if test "${ac_cv_type_long+set}" = set; then
39488   echo $ECHO_N "(cached) $ECHO_C" >&6
39489 else
39490   cat >conftest.$ac_ext <<_ACEOF
39491 /* confdefs.h.  */
39492 _ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h.  */
39496 $ac_includes_default
39497 int
39498 main ()
39499 {
39500 if ((long *) 0)
39501   return 0;
39502 if (sizeof (long))
39503   return 0;
39504   ;
39505   return 0;
39506 }
39507 _ACEOF
39508 rm -f conftest.$ac_objext
39509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39510   (eval $ac_compile) 2>conftest.er1
39511   ac_status=$?
39512   grep -v '^ *+' conftest.er1 >conftest.err
39513   rm -f conftest.er1
39514   cat conftest.err >&5
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); } &&
39517          { ac_try='test -z "$ac_c_werror_flag"
39518                          || test ! -s conftest.err'
39519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520   (eval $ac_try) 2>&5
39521   ac_status=$?
39522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523   (exit $ac_status); }; } &&
39524          { ac_try='test -s conftest.$ac_objext'
39525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526   (eval $ac_try) 2>&5
39527   ac_status=$?
39528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529   (exit $ac_status); }; }; then
39530   ac_cv_type_long=yes
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535 ac_cv_type_long=no
39536 fi
39537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39538 fi
39539 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39540 echo "${ECHO_T}$ac_cv_type_long" >&6
39541
39542 echo "$as_me:$LINENO: checking size of long" >&5
39543 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39544 if test "${ac_cv_sizeof_long+set}" = set; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547   if test "$ac_cv_type_long" = yes; then
39548   # The cast to unsigned long works around a bug in the HP C Compiler
39549   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39550   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39551   # This bug is HP SR number 8606223364.
39552   if test "$cross_compiling" = yes; then
39553   # Depending upon the size, compute the lo and hi bounds.
39554 cat >conftest.$ac_ext <<_ACEOF
39555 /* confdefs.h.  */
39556 _ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h.  */
39560 $ac_includes_default
39561 int
39562 main ()
39563 {
39564 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39565 test_array [0] = 0
39566
39567   ;
39568   return 0;
39569 }
39570 _ACEOF
39571 rm -f conftest.$ac_objext
39572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39573   (eval $ac_compile) 2>conftest.er1
39574   ac_status=$?
39575   grep -v '^ *+' conftest.er1 >conftest.err
39576   rm -f conftest.er1
39577   cat conftest.err >&5
39578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579   (exit $ac_status); } &&
39580          { ac_try='test -z "$ac_c_werror_flag"
39581                          || test ! -s conftest.err'
39582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583   (eval $ac_try) 2>&5
39584   ac_status=$?
39585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586   (exit $ac_status); }; } &&
39587          { ac_try='test -s conftest.$ac_objext'
39588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589   (eval $ac_try) 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); }; }; then
39593   ac_lo=0 ac_mid=0
39594   while :; do
39595     cat >conftest.$ac_ext <<_ACEOF
39596 /* confdefs.h.  */
39597 _ACEOF
39598 cat confdefs.h >>conftest.$ac_ext
39599 cat >>conftest.$ac_ext <<_ACEOF
39600 /* end confdefs.h.  */
39601 $ac_includes_default
39602 int
39603 main ()
39604 {
39605 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39606 test_array [0] = 0
39607
39608   ;
39609   return 0;
39610 }
39611 _ACEOF
39612 rm -f conftest.$ac_objext
39613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39614   (eval $ac_compile) 2>conftest.er1
39615   ac_status=$?
39616   grep -v '^ *+' conftest.er1 >conftest.err
39617   rm -f conftest.er1
39618   cat conftest.err >&5
39619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620   (exit $ac_status); } &&
39621          { ac_try='test -z "$ac_c_werror_flag"
39622                          || test ! -s conftest.err'
39623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39624   (eval $ac_try) 2>&5
39625   ac_status=$?
39626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39627   (exit $ac_status); }; } &&
39628          { ac_try='test -s conftest.$ac_objext'
39629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39630   (eval $ac_try) 2>&5
39631   ac_status=$?
39632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); }; }; then
39634   ac_hi=$ac_mid; break
39635 else
39636   echo "$as_me: failed program was:" >&5
39637 sed 's/^/| /' conftest.$ac_ext >&5
39638
39639 ac_lo=`expr $ac_mid + 1`
39640                     if test $ac_lo -le $ac_mid; then
39641                       ac_lo= ac_hi=
39642                       break
39643                     fi
39644                     ac_mid=`expr 2 '*' $ac_mid + 1`
39645 fi
39646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39647   done
39648 else
39649   echo "$as_me: failed program was:" >&5
39650 sed 's/^/| /' conftest.$ac_ext >&5
39651
39652 cat >conftest.$ac_ext <<_ACEOF
39653 /* confdefs.h.  */
39654 _ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h.  */
39658 $ac_includes_default
39659 int
39660 main ()
39661 {
39662 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39663 test_array [0] = 0
39664
39665   ;
39666   return 0;
39667 }
39668 _ACEOF
39669 rm -f conftest.$ac_objext
39670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39671   (eval $ac_compile) 2>conftest.er1
39672   ac_status=$?
39673   grep -v '^ *+' conftest.er1 >conftest.err
39674   rm -f conftest.er1
39675   cat conftest.err >&5
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); } &&
39678          { ac_try='test -z "$ac_c_werror_flag"
39679                          || test ! -s conftest.err'
39680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39681   (eval $ac_try) 2>&5
39682   ac_status=$?
39683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39684   (exit $ac_status); }; } &&
39685          { ac_try='test -s conftest.$ac_objext'
39686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39687   (eval $ac_try) 2>&5
39688   ac_status=$?
39689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690   (exit $ac_status); }; }; then
39691   ac_hi=-1 ac_mid=-1
39692   while :; do
39693     cat >conftest.$ac_ext <<_ACEOF
39694 /* confdefs.h.  */
39695 _ACEOF
39696 cat confdefs.h >>conftest.$ac_ext
39697 cat >>conftest.$ac_ext <<_ACEOF
39698 /* end confdefs.h.  */
39699 $ac_includes_default
39700 int
39701 main ()
39702 {
39703 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39704 test_array [0] = 0
39705
39706   ;
39707   return 0;
39708 }
39709 _ACEOF
39710 rm -f conftest.$ac_objext
39711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39712   (eval $ac_compile) 2>conftest.er1
39713   ac_status=$?
39714   grep -v '^ *+' conftest.er1 >conftest.err
39715   rm -f conftest.er1
39716   cat conftest.err >&5
39717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718   (exit $ac_status); } &&
39719          { ac_try='test -z "$ac_c_werror_flag"
39720                          || test ! -s conftest.err'
39721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722   (eval $ac_try) 2>&5
39723   ac_status=$?
39724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725   (exit $ac_status); }; } &&
39726          { ac_try='test -s conftest.$ac_objext'
39727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39728   (eval $ac_try) 2>&5
39729   ac_status=$?
39730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731   (exit $ac_status); }; }; then
39732   ac_lo=$ac_mid; break
39733 else
39734   echo "$as_me: failed program was:" >&5
39735 sed 's/^/| /' conftest.$ac_ext >&5
39736
39737 ac_hi=`expr '(' $ac_mid ')' - 1`
39738                        if test $ac_mid -le $ac_hi; then
39739                          ac_lo= ac_hi=
39740                          break
39741                        fi
39742                        ac_mid=`expr 2 '*' $ac_mid`
39743 fi
39744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39745   done
39746 else
39747   echo "$as_me: failed program was:" >&5
39748 sed 's/^/| /' conftest.$ac_ext >&5
39749
39750 ac_lo= ac_hi=
39751 fi
39752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39753 fi
39754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39755 # Binary search between lo and hi bounds.
39756 while test "x$ac_lo" != "x$ac_hi"; do
39757   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39758   cat >conftest.$ac_ext <<_ACEOF
39759 /* confdefs.h.  */
39760 _ACEOF
39761 cat confdefs.h >>conftest.$ac_ext
39762 cat >>conftest.$ac_ext <<_ACEOF
39763 /* end confdefs.h.  */
39764 $ac_includes_default
39765 int
39766 main ()
39767 {
39768 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39769 test_array [0] = 0
39770
39771   ;
39772   return 0;
39773 }
39774 _ACEOF
39775 rm -f conftest.$ac_objext
39776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39777   (eval $ac_compile) 2>conftest.er1
39778   ac_status=$?
39779   grep -v '^ *+' conftest.er1 >conftest.err
39780   rm -f conftest.er1
39781   cat conftest.err >&5
39782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783   (exit $ac_status); } &&
39784          { ac_try='test -z "$ac_c_werror_flag"
39785                          || test ! -s conftest.err'
39786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39787   (eval $ac_try) 2>&5
39788   ac_status=$?
39789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39790   (exit $ac_status); }; } &&
39791          { ac_try='test -s conftest.$ac_objext'
39792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39793   (eval $ac_try) 2>&5
39794   ac_status=$?
39795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39796   (exit $ac_status); }; }; then
39797   ac_hi=$ac_mid
39798 else
39799   echo "$as_me: failed program was:" >&5
39800 sed 's/^/| /' conftest.$ac_ext >&5
39801
39802 ac_lo=`expr '(' $ac_mid ')' + 1`
39803 fi
39804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39805 done
39806 case $ac_lo in
39807 ?*) ac_cv_sizeof_long=$ac_lo;;
39808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39809 See \`config.log' for more details." >&5
39810 echo "$as_me: error: cannot compute sizeof (long), 77
39811 See \`config.log' for more details." >&2;}
39812    { (exit 1); exit 1; }; } ;;
39813 esac
39814 else
39815   if test "$cross_compiling" = yes; then
39816   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39817 See \`config.log' for more details." >&5
39818 echo "$as_me: error: cannot run test program while cross compiling
39819 See \`config.log' for more details." >&2;}
39820    { (exit 1); exit 1; }; }
39821 else
39822   cat >conftest.$ac_ext <<_ACEOF
39823 /* confdefs.h.  */
39824 _ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h.  */
39828 $ac_includes_default
39829 long longval () { return (long) (sizeof (long)); }
39830 unsigned long ulongval () { return (long) (sizeof (long)); }
39831 #include <stdio.h>
39832 #include <stdlib.h>
39833 int
39834 main ()
39835 {
39836
39837   FILE *f = fopen ("conftest.val", "w");
39838   if (! f)
39839     exit (1);
39840   if (((long) (sizeof (long))) < 0)
39841     {
39842       long i = longval ();
39843       if (i != ((long) (sizeof (long))))
39844         exit (1);
39845       fprintf (f, "%ld\n", i);
39846     }
39847   else
39848     {
39849       unsigned long i = ulongval ();
39850       if (i != ((long) (sizeof (long))))
39851         exit (1);
39852       fprintf (f, "%lu\n", i);
39853     }
39854   exit (ferror (f) || fclose (f) != 0);
39855
39856   ;
39857   return 0;
39858 }
39859 _ACEOF
39860 rm -f conftest$ac_exeext
39861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39862   (eval $ac_link) 2>&5
39863   ac_status=$?
39864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39867   (eval $ac_try) 2>&5
39868   ac_status=$?
39869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39870   (exit $ac_status); }; }; then
39871   ac_cv_sizeof_long=`cat conftest.val`
39872 else
39873   echo "$as_me: program exited with status $ac_status" >&5
39874 echo "$as_me: failed program was:" >&5
39875 sed 's/^/| /' conftest.$ac_ext >&5
39876
39877 ( exit $ac_status )
39878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39879 See \`config.log' for more details." >&5
39880 echo "$as_me: error: cannot compute sizeof (long), 77
39881 See \`config.log' for more details." >&2;}
39882    { (exit 1); exit 1; }; }
39883 fi
39884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39885 fi
39886 fi
39887 rm -f conftest.val
39888 else
39889   ac_cv_sizeof_long=0
39890 fi
39891 fi
39892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39893 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39894 cat >>confdefs.h <<_ACEOF
39895 #define SIZEOF_LONG $ac_cv_sizeof_long
39896 _ACEOF
39897
39898
39899 echo "$as_me:$LINENO: checking for wchar_t" >&5
39900 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39901 if test "${ac_cv_type_wchar_t+set}" = set; then
39902   echo $ECHO_N "(cached) $ECHO_C" >&6
39903 else
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 int
39912 main ()
39913 {
39914 if ((wchar_t *) 0)
39915   return 0;
39916 if (sizeof (wchar_t))
39917   return 0;
39918   ;
39919   return 0;
39920 }
39921 _ACEOF
39922 rm -f conftest.$ac_objext
39923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39924   (eval $ac_compile) 2>conftest.er1
39925   ac_status=$?
39926   grep -v '^ *+' conftest.er1 >conftest.err
39927   rm -f conftest.er1
39928   cat conftest.err >&5
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); } &&
39931          { ac_try='test -z "$ac_c_werror_flag"
39932                          || test ! -s conftest.err'
39933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39934   (eval $ac_try) 2>&5
39935   ac_status=$?
39936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937   (exit $ac_status); }; } &&
39938          { ac_try='test -s conftest.$ac_objext'
39939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39940   (eval $ac_try) 2>&5
39941   ac_status=$?
39942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943   (exit $ac_status); }; }; then
39944   ac_cv_type_wchar_t=yes
39945 else
39946   echo "$as_me: failed program was:" >&5
39947 sed 's/^/| /' conftest.$ac_ext >&5
39948
39949 ac_cv_type_wchar_t=no
39950 fi
39951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39952 fi
39953 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39954 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39955
39956 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39957 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39958 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39959   echo $ECHO_N "(cached) $ECHO_C" >&6
39960 else
39961   if test "$ac_cv_type_wchar_t" = yes; then
39962   # The cast to unsigned long works around a bug in the HP C Compiler
39963   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39964   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39965   # This bug is HP SR number 8606223364.
39966   if test "$cross_compiling" = yes; then
39967   # Depending upon the size, compute the lo and hi bounds.
39968 cat >conftest.$ac_ext <<_ACEOF
39969 /* confdefs.h.  */
39970 _ACEOF
39971 cat confdefs.h >>conftest.$ac_ext
39972 cat >>conftest.$ac_ext <<_ACEOF
39973 /* end confdefs.h.  */
39974 $ac_includes_default
39975 int
39976 main ()
39977 {
39978 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39979 test_array [0] = 0
39980
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext
39986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39987   (eval $ac_compile) 2>conftest.er1
39988   ac_status=$?
39989   grep -v '^ *+' conftest.er1 >conftest.err
39990   rm -f conftest.er1
39991   cat conftest.err >&5
39992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993   (exit $ac_status); } &&
39994          { ac_try='test -z "$ac_c_werror_flag"
39995                          || test ! -s conftest.err'
39996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997   (eval $ac_try) 2>&5
39998   ac_status=$?
39999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000   (exit $ac_status); }; } &&
40001          { ac_try='test -s conftest.$ac_objext'
40002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003   (eval $ac_try) 2>&5
40004   ac_status=$?
40005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); }; }; then
40007   ac_lo=0 ac_mid=0
40008   while :; do
40009     cat >conftest.$ac_ext <<_ACEOF
40010 /* confdefs.h.  */
40011 _ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h.  */
40015 $ac_includes_default
40016 int
40017 main ()
40018 {
40019 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40020 test_array [0] = 0
40021
40022   ;
40023   return 0;
40024 }
40025 _ACEOF
40026 rm -f conftest.$ac_objext
40027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40028   (eval $ac_compile) 2>conftest.er1
40029   ac_status=$?
40030   grep -v '^ *+' conftest.er1 >conftest.err
40031   rm -f conftest.er1
40032   cat conftest.err >&5
40033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034   (exit $ac_status); } &&
40035          { ac_try='test -z "$ac_c_werror_flag"
40036                          || test ! -s conftest.err'
40037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038   (eval $ac_try) 2>&5
40039   ac_status=$?
40040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041   (exit $ac_status); }; } &&
40042          { ac_try='test -s conftest.$ac_objext'
40043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40044   (eval $ac_try) 2>&5
40045   ac_status=$?
40046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047   (exit $ac_status); }; }; then
40048   ac_hi=$ac_mid; break
40049 else
40050   echo "$as_me: failed program was:" >&5
40051 sed 's/^/| /' conftest.$ac_ext >&5
40052
40053 ac_lo=`expr $ac_mid + 1`
40054                     if test $ac_lo -le $ac_mid; then
40055                       ac_lo= ac_hi=
40056                       break
40057                     fi
40058                     ac_mid=`expr 2 '*' $ac_mid + 1`
40059 fi
40060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40061   done
40062 else
40063   echo "$as_me: failed program was:" >&5
40064 sed 's/^/| /' conftest.$ac_ext >&5
40065
40066 cat >conftest.$ac_ext <<_ACEOF
40067 /* confdefs.h.  */
40068 _ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h.  */
40072 $ac_includes_default
40073 int
40074 main ()
40075 {
40076 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
40077 test_array [0] = 0
40078
40079   ;
40080   return 0;
40081 }
40082 _ACEOF
40083 rm -f conftest.$ac_objext
40084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40085   (eval $ac_compile) 2>conftest.er1
40086   ac_status=$?
40087   grep -v '^ *+' conftest.er1 >conftest.err
40088   rm -f conftest.er1
40089   cat conftest.err >&5
40090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40091   (exit $ac_status); } &&
40092          { ac_try='test -z "$ac_c_werror_flag"
40093                          || test ! -s conftest.err'
40094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095   (eval $ac_try) 2>&5
40096   ac_status=$?
40097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098   (exit $ac_status); }; } &&
40099          { ac_try='test -s conftest.$ac_objext'
40100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101   (eval $ac_try) 2>&5
40102   ac_status=$?
40103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104   (exit $ac_status); }; }; then
40105   ac_hi=-1 ac_mid=-1
40106   while :; do
40107     cat >conftest.$ac_ext <<_ACEOF
40108 /* confdefs.h.  */
40109 _ACEOF
40110 cat confdefs.h >>conftest.$ac_ext
40111 cat >>conftest.$ac_ext <<_ACEOF
40112 /* end confdefs.h.  */
40113 $ac_includes_default
40114 int
40115 main ()
40116 {
40117 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40118 test_array [0] = 0
40119
40120   ;
40121   return 0;
40122 }
40123 _ACEOF
40124 rm -f conftest.$ac_objext
40125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40126   (eval $ac_compile) 2>conftest.er1
40127   ac_status=$?
40128   grep -v '^ *+' conftest.er1 >conftest.err
40129   rm -f conftest.er1
40130   cat conftest.err >&5
40131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132   (exit $ac_status); } &&
40133          { ac_try='test -z "$ac_c_werror_flag"
40134                          || test ! -s conftest.err'
40135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40136   (eval $ac_try) 2>&5
40137   ac_status=$?
40138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139   (exit $ac_status); }; } &&
40140          { ac_try='test -s conftest.$ac_objext'
40141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142   (eval $ac_try) 2>&5
40143   ac_status=$?
40144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145   (exit $ac_status); }; }; then
40146   ac_lo=$ac_mid; break
40147 else
40148   echo "$as_me: failed program was:" >&5
40149 sed 's/^/| /' conftest.$ac_ext >&5
40150
40151 ac_hi=`expr '(' $ac_mid ')' - 1`
40152                        if test $ac_mid -le $ac_hi; then
40153                          ac_lo= ac_hi=
40154                          break
40155                        fi
40156                        ac_mid=`expr 2 '*' $ac_mid`
40157 fi
40158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40159   done
40160 else
40161   echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40163
40164 ac_lo= ac_hi=
40165 fi
40166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40167 fi
40168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40169 # Binary search between lo and hi bounds.
40170 while test "x$ac_lo" != "x$ac_hi"; do
40171   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40172   cat >conftest.$ac_ext <<_ACEOF
40173 /* confdefs.h.  */
40174 _ACEOF
40175 cat confdefs.h >>conftest.$ac_ext
40176 cat >>conftest.$ac_ext <<_ACEOF
40177 /* end confdefs.h.  */
40178 $ac_includes_default
40179 int
40180 main ()
40181 {
40182 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40183 test_array [0] = 0
40184
40185   ;
40186   return 0;
40187 }
40188 _ACEOF
40189 rm -f conftest.$ac_objext
40190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40191   (eval $ac_compile) 2>conftest.er1
40192   ac_status=$?
40193   grep -v '^ *+' conftest.er1 >conftest.err
40194   rm -f conftest.er1
40195   cat conftest.err >&5
40196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40197   (exit $ac_status); } &&
40198          { ac_try='test -z "$ac_c_werror_flag"
40199                          || test ! -s conftest.err'
40200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40201   (eval $ac_try) 2>&5
40202   ac_status=$?
40203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204   (exit $ac_status); }; } &&
40205          { ac_try='test -s conftest.$ac_objext'
40206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40207   (eval $ac_try) 2>&5
40208   ac_status=$?
40209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210   (exit $ac_status); }; }; then
40211   ac_hi=$ac_mid
40212 else
40213   echo "$as_me: failed program was:" >&5
40214 sed 's/^/| /' conftest.$ac_ext >&5
40215
40216 ac_lo=`expr '(' $ac_mid ')' + 1`
40217 fi
40218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40219 done
40220 case $ac_lo in
40221 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40223 See \`config.log' for more details." >&5
40224 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40225 See \`config.log' for more details." >&2;}
40226    { (exit 1); exit 1; }; } ;;
40227 esac
40228 else
40229   if test "$cross_compiling" = yes; then
40230   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40231 See \`config.log' for more details." >&5
40232 echo "$as_me: error: cannot run test program while cross compiling
40233 See \`config.log' for more details." >&2;}
40234    { (exit 1); exit 1; }; }
40235 else
40236   cat >conftest.$ac_ext <<_ACEOF
40237 /* confdefs.h.  */
40238 _ACEOF
40239 cat confdefs.h >>conftest.$ac_ext
40240 cat >>conftest.$ac_ext <<_ACEOF
40241 /* end confdefs.h.  */
40242 $ac_includes_default
40243 long longval () { return (long) (sizeof (wchar_t)); }
40244 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40245 #include <stdio.h>
40246 #include <stdlib.h>
40247 int
40248 main ()
40249 {
40250
40251   FILE *f = fopen ("conftest.val", "w");
40252   if (! f)
40253     exit (1);
40254   if (((long) (sizeof (wchar_t))) < 0)
40255     {
40256       long i = longval ();
40257       if (i != ((long) (sizeof (wchar_t))))
40258         exit (1);
40259       fprintf (f, "%ld\n", i);
40260     }
40261   else
40262     {
40263       unsigned long i = ulongval ();
40264       if (i != ((long) (sizeof (wchar_t))))
40265         exit (1);
40266       fprintf (f, "%lu\n", i);
40267     }
40268   exit (ferror (f) || fclose (f) != 0);
40269
40270   ;
40271   return 0;
40272 }
40273 _ACEOF
40274 rm -f conftest$ac_exeext
40275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40276   (eval $ac_link) 2>&5
40277   ac_status=$?
40278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40281   (eval $ac_try) 2>&5
40282   ac_status=$?
40283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40284   (exit $ac_status); }; }; then
40285   ac_cv_sizeof_wchar_t=`cat conftest.val`
40286 else
40287   echo "$as_me: program exited with status $ac_status" >&5
40288 echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40290
40291 ( exit $ac_status )
40292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40293 See \`config.log' for more details." >&5
40294 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40295 See \`config.log' for more details." >&2;}
40296    { (exit 1); exit 1; }; }
40297 fi
40298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40299 fi
40300 fi
40301 rm -f conftest.val
40302 else
40303   ac_cv_sizeof_wchar_t=0
40304 fi
40305 fi
40306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40307 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40308 cat >>confdefs.h <<_ACEOF
40309 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40310 _ACEOF
40311
40312
40313
40314 if test "$ac_cv_sizeof_int" -lt 4 ; then
40315         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40316 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40317
40318
40319 cat >>confdefs.h <<\_ACEOF
40320 #define LBER_INT_T long
40321 _ACEOF
40322
40323 else
40324
40325 cat >>confdefs.h <<\_ACEOF
40326 #define LBER_INT_T int
40327 _ACEOF
40328
40329 fi
40330
40331
40332 cat >>confdefs.h <<\_ACEOF
40333 #define LBER_LEN_T long
40334 _ACEOF
40335
40336
40337 cat >>confdefs.h <<\_ACEOF
40338 #define LBER_SOCKET_T int
40339 _ACEOF
40340
40341
40342 cat >>confdefs.h <<\_ACEOF
40343 #define LBER_TAG_T long
40344 _ACEOF
40345
40346
40347 echo "$as_me:$LINENO: checking for working memcmp" >&5
40348 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40349 if test "${ac_cv_func_memcmp_working+set}" = set; then
40350   echo $ECHO_N "(cached) $ECHO_C" >&6
40351 else
40352   if test "$cross_compiling" = yes; then
40353   ac_cv_func_memcmp_working=no
40354 else
40355   cat >conftest.$ac_ext <<_ACEOF
40356 /* confdefs.h.  */
40357 _ACEOF
40358 cat confdefs.h >>conftest.$ac_ext
40359 cat >>conftest.$ac_ext <<_ACEOF
40360 /* end confdefs.h.  */
40361 $ac_includes_default
40362 int
40363 main ()
40364 {
40365
40366   /* Some versions of memcmp are not 8-bit clean.  */
40367   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40368   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40369     exit (1);
40370
40371   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40372      or more and with at least one buffer not starting on a 4-byte boundary.
40373      William Lewis provided this test program.   */
40374   {
40375     char foo[21];
40376     char bar[21];
40377     int i;
40378     for (i = 0; i < 4; i++)
40379       {
40380         char *a = foo + i;
40381         char *b = bar + i;
40382         strcpy (a, "--------01111111");
40383         strcpy (b, "--------10000000");
40384         if (memcmp (a, b, 16) >= 0)
40385           exit (1);
40386       }
40387     exit (0);
40388   }
40389
40390   ;
40391   return 0;
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_func_memcmp_working=yes
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_func_memcmp_working=no
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 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40418 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40419 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40420     "memcmp.$ac_objext"   | \
40421   *" memcmp.$ac_objext"   | \
40422     "memcmp.$ac_objext "* | \
40423   *" memcmp.$ac_objext "* ) ;;
40424   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40425 esac
40426
40427
40428
40429 if test $ac_cv_func_memcmp_working = no ; then
40430
40431 cat >>confdefs.h <<\_ACEOF
40432 #define NEED_MEMCMP_REPLACEMENT 1
40433 _ACEOF
40434
40435 fi
40436
40437
40438 for ac_func in strftime
40439 do
40440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40441 echo "$as_me:$LINENO: checking for $ac_func" >&5
40442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40443 if eval "test \"\${$as_ac_var+set}\" = set"; then
40444   echo $ECHO_N "(cached) $ECHO_C" >&6
40445 else
40446   cat >conftest.$ac_ext <<_ACEOF
40447 /* confdefs.h.  */
40448 _ACEOF
40449 cat confdefs.h >>conftest.$ac_ext
40450 cat >>conftest.$ac_ext <<_ACEOF
40451 /* end confdefs.h.  */
40452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40454 #define $ac_func innocuous_$ac_func
40455
40456 /* System header to define __stub macros and hopefully few prototypes,
40457     which can conflict with char $ac_func (); below.
40458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40459     <limits.h> exists even on freestanding compilers.  */
40460
40461 #ifdef __STDC__
40462 # include <limits.h>
40463 #else
40464 # include <assert.h>
40465 #endif
40466
40467 #undef $ac_func
40468
40469 /* Override any gcc2 internal prototype to avoid an error.  */
40470 #ifdef __cplusplus
40471 extern "C"
40472 {
40473 #endif
40474 /* We use char because int might match the return type of a gcc2
40475    builtin and then its argument prototype would still apply.  */
40476 char $ac_func ();
40477 /* The GNU C library defines this for functions which it implements
40478     to always fail with ENOSYS.  Some functions are actually named
40479     something starting with __ and the normal name is an alias.  */
40480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40481 choke me
40482 #else
40483 char (*f) () = $ac_func;
40484 #endif
40485 #ifdef __cplusplus
40486 }
40487 #endif
40488
40489 int
40490 main ()
40491 {
40492 return f != $ac_func;
40493   ;
40494   return 0;
40495 }
40496 _ACEOF
40497 rm -f conftest.$ac_objext conftest$ac_exeext
40498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40499   (eval $ac_link) 2>conftest.er1
40500   ac_status=$?
40501   grep -v '^ *+' conftest.er1 >conftest.err
40502   rm -f conftest.er1
40503   cat conftest.err >&5
40504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505   (exit $ac_status); } &&
40506          { ac_try='test -z "$ac_c_werror_flag"
40507                          || test ! -s conftest.err'
40508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40509   (eval $ac_try) 2>&5
40510   ac_status=$?
40511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40512   (exit $ac_status); }; } &&
40513          { ac_try='test -s conftest$ac_exeext'
40514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40515   (eval $ac_try) 2>&5
40516   ac_status=$?
40517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40518   (exit $ac_status); }; }; then
40519   eval "$as_ac_var=yes"
40520 else
40521   echo "$as_me: failed program was:" >&5
40522 sed 's/^/| /' conftest.$ac_ext >&5
40523
40524 eval "$as_ac_var=no"
40525 fi
40526 rm -f conftest.err conftest.$ac_objext \
40527       conftest$ac_exeext conftest.$ac_ext
40528 fi
40529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40531 if test `eval echo '${'$as_ac_var'}'` = yes; then
40532   cat >>confdefs.h <<_ACEOF
40533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40534 _ACEOF
40535
40536 else
40537   # strftime is in -lintl on SCO UNIX.
40538 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40539 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40540 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40541   echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40543   ac_check_lib_save_LIBS=$LIBS
40544 LIBS="-lintl  $LIBS"
40545 cat >conftest.$ac_ext <<_ACEOF
40546 /* confdefs.h.  */
40547 _ACEOF
40548 cat confdefs.h >>conftest.$ac_ext
40549 cat >>conftest.$ac_ext <<_ACEOF
40550 /* end confdefs.h.  */
40551
40552 /* Override any gcc2 internal prototype to avoid an error.  */
40553 #ifdef __cplusplus
40554 extern "C"
40555 #endif
40556 /* We use char because int might match the return type of a gcc2
40557    builtin and then its argument prototype would still apply.  */
40558 char strftime ();
40559 int
40560 main ()
40561 {
40562 strftime ();
40563   ;
40564   return 0;
40565 }
40566 _ACEOF
40567 rm -f conftest.$ac_objext conftest$ac_exeext
40568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40569   (eval $ac_link) 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_exeext'
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_cv_lib_intl_strftime=yes
40590 else
40591   echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40593
40594 ac_cv_lib_intl_strftime=no
40595 fi
40596 rm -f conftest.err conftest.$ac_objext \
40597       conftest$ac_exeext conftest.$ac_ext
40598 LIBS=$ac_check_lib_save_LIBS
40599 fi
40600 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40601 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40602 if test $ac_cv_lib_intl_strftime = yes; then
40603   cat >>confdefs.h <<\_ACEOF
40604 #define HAVE_STRFTIME 1
40605 _ACEOF
40606
40607 LIBS="-lintl $LIBS"
40608 fi
40609
40610 fi
40611 done
40612
40613
40614 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40615 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40616 if test "${ol_cv_func_inet_aton+set}" = set; then
40617   echo $ECHO_N "(cached) $ECHO_C" >&6
40618 else
40619   cat >conftest.$ac_ext <<_ACEOF
40620 /* confdefs.h.  */
40621 _ACEOF
40622 cat confdefs.h >>conftest.$ac_ext
40623 cat >>conftest.$ac_ext <<_ACEOF
40624 /* end confdefs.h.  */
40625
40626 #ifdef HAVE_SYS_TYPES_H
40627 #       include <sys/types.h>
40628 #endif
40629 #ifdef HAVE_SYS_SOCKET_H
40630 #       include <sys/socket.h>
40631 #       ifdef HAVE_SYS_SELECT_H
40632 #               include <sys/select.h>
40633 #       endif
40634 #       include <netinet/in.h>
40635 #       ifdef HAVE_ARPA_INET_H
40636 #               include <arpa/inet.h>
40637 #       endif
40638 #endif
40639
40640 int
40641 main ()
40642 {
40643 struct in_addr in;
40644 int rc = inet_aton( "255.255.255.255", &in );
40645   ;
40646   return 0;
40647 }
40648 _ACEOF
40649 rm -f conftest.$ac_objext conftest$ac_exeext
40650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40651   (eval $ac_link) 2>conftest.er1
40652   ac_status=$?
40653   grep -v '^ *+' conftest.er1 >conftest.err
40654   rm -f conftest.er1
40655   cat conftest.err >&5
40656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657   (exit $ac_status); } &&
40658          { ac_try='test -z "$ac_c_werror_flag"
40659                          || test ! -s conftest.err'
40660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40661   (eval $ac_try) 2>&5
40662   ac_status=$?
40663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40664   (exit $ac_status); }; } &&
40665          { ac_try='test -s conftest$ac_exeext'
40666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40667   (eval $ac_try) 2>&5
40668   ac_status=$?
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); }; }; then
40671   ol_cv_func_inet_aton=yes
40672 else
40673   echo "$as_me: failed program was:" >&5
40674 sed 's/^/| /' conftest.$ac_ext >&5
40675
40676 ol_cv_func_inet_aton=no
40677 fi
40678 rm -f conftest.err conftest.$ac_objext \
40679       conftest$ac_exeext conftest.$ac_ext
40680 fi
40681 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40682 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40683   if test $ol_cv_func_inet_aton != no; then
40684
40685 cat >>confdefs.h <<\_ACEOF
40686 #define HAVE_INET_ATON 1
40687 _ACEOF
40688
40689   fi
40690
40691
40692 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40693 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40694 if test "${ac_cv_func__spawnlp+set}" = set; then
40695   echo $ECHO_N "(cached) $ECHO_C" >&6
40696 else
40697   cat >conftest.$ac_ext <<_ACEOF
40698 /* confdefs.h.  */
40699 _ACEOF
40700 cat confdefs.h >>conftest.$ac_ext
40701 cat >>conftest.$ac_ext <<_ACEOF
40702 /* end confdefs.h.  */
40703 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40705 #define _spawnlp innocuous__spawnlp
40706
40707 /* System header to define __stub macros and hopefully few prototypes,
40708     which can conflict with char _spawnlp (); below.
40709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40710     <limits.h> exists even on freestanding compilers.  */
40711
40712 #ifdef __STDC__
40713 # include <limits.h>
40714 #else
40715 # include <assert.h>
40716 #endif
40717
40718 #undef _spawnlp
40719
40720 /* Override any gcc2 internal prototype to avoid an error.  */
40721 #ifdef __cplusplus
40722 extern "C"
40723 {
40724 #endif
40725 /* We use char because int might match the return type of a gcc2
40726    builtin and then its argument prototype would still apply.  */
40727 char _spawnlp ();
40728 /* The GNU C library defines this for functions which it implements
40729     to always fail with ENOSYS.  Some functions are actually named
40730     something starting with __ and the normal name is an alias.  */
40731 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40732 choke me
40733 #else
40734 char (*f) () = _spawnlp;
40735 #endif
40736 #ifdef __cplusplus
40737 }
40738 #endif
40739
40740 int
40741 main ()
40742 {
40743 return f != _spawnlp;
40744   ;
40745   return 0;
40746 }
40747 _ACEOF
40748 rm -f conftest.$ac_objext conftest$ac_exeext
40749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40750   (eval $ac_link) 2>conftest.er1
40751   ac_status=$?
40752   grep -v '^ *+' conftest.er1 >conftest.err
40753   rm -f conftest.er1
40754   cat conftest.err >&5
40755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40756   (exit $ac_status); } &&
40757          { ac_try='test -z "$ac_c_werror_flag"
40758                          || test ! -s conftest.err'
40759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40760   (eval $ac_try) 2>&5
40761   ac_status=$?
40762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763   (exit $ac_status); }; } &&
40764          { ac_try='test -s conftest$ac_exeext'
40765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40766   (eval $ac_try) 2>&5
40767   ac_status=$?
40768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40769   (exit $ac_status); }; }; then
40770   ac_cv_func__spawnlp=yes
40771 else
40772   echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40774
40775 ac_cv_func__spawnlp=no
40776 fi
40777 rm -f conftest.err conftest.$ac_objext \
40778       conftest$ac_exeext conftest.$ac_ext
40779 fi
40780 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40781 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40782 if test $ac_cv_func__spawnlp = yes; then
40783
40784 cat >>confdefs.h <<\_ACEOF
40785 #define HAVE_SPAWNLP 1
40786 _ACEOF
40787
40788 fi
40789
40790
40791 echo "$as_me:$LINENO: checking for _snprintf" >&5
40792 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40793 if test "${ac_cv_func__snprintf+set}" = set; then
40794   echo $ECHO_N "(cached) $ECHO_C" >&6
40795 else
40796   cat >conftest.$ac_ext <<_ACEOF
40797 /* confdefs.h.  */
40798 _ACEOF
40799 cat confdefs.h >>conftest.$ac_ext
40800 cat >>conftest.$ac_ext <<_ACEOF
40801 /* end confdefs.h.  */
40802 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40804 #define _snprintf innocuous__snprintf
40805
40806 /* System header to define __stub macros and hopefully few prototypes,
40807     which can conflict with char _snprintf (); below.
40808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40809     <limits.h> exists even on freestanding compilers.  */
40810
40811 #ifdef __STDC__
40812 # include <limits.h>
40813 #else
40814 # include <assert.h>
40815 #endif
40816
40817 #undef _snprintf
40818
40819 /* Override any gcc2 internal prototype to avoid an error.  */
40820 #ifdef __cplusplus
40821 extern "C"
40822 {
40823 #endif
40824 /* We use char because int might match the return type of a gcc2
40825    builtin and then its argument prototype would still apply.  */
40826 char _snprintf ();
40827 /* The GNU C library defines this for functions which it implements
40828     to always fail with ENOSYS.  Some functions are actually named
40829     something starting with __ and the normal name is an alias.  */
40830 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40831 choke me
40832 #else
40833 char (*f) () = _snprintf;
40834 #endif
40835 #ifdef __cplusplus
40836 }
40837 #endif
40838
40839 int
40840 main ()
40841 {
40842 return f != _snprintf;
40843   ;
40844   return 0;
40845 }
40846 _ACEOF
40847 rm -f conftest.$ac_objext conftest$ac_exeext
40848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40849   (eval $ac_link) 2>conftest.er1
40850   ac_status=$?
40851   grep -v '^ *+' conftest.er1 >conftest.err
40852   rm -f conftest.er1
40853   cat conftest.err >&5
40854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40855   (exit $ac_status); } &&
40856          { ac_try='test -z "$ac_c_werror_flag"
40857                          || test ! -s conftest.err'
40858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859   (eval $ac_try) 2>&5
40860   ac_status=$?
40861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862   (exit $ac_status); }; } &&
40863          { ac_try='test -s conftest$ac_exeext'
40864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865   (eval $ac_try) 2>&5
40866   ac_status=$?
40867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868   (exit $ac_status); }; }; then
40869   ac_cv_func__snprintf=yes
40870 else
40871   echo "$as_me: failed program was:" >&5
40872 sed 's/^/| /' conftest.$ac_ext >&5
40873
40874 ac_cv_func__snprintf=no
40875 fi
40876 rm -f conftest.err conftest.$ac_objext \
40877       conftest$ac_exeext conftest.$ac_ext
40878 fi
40879 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40880 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40881 if test $ac_cv_func__snprintf = yes; then
40882   ac_cv_func_snprintf=yes
40883
40884 cat >>confdefs.h <<\_ACEOF
40885 #define snprintf _snprintf
40886 _ACEOF
40887
40888
40889 fi
40890
40891
40892 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40893 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40894 if test "${ac_cv_func__vsnprintf+set}" = set; then
40895   echo $ECHO_N "(cached) $ECHO_C" >&6
40896 else
40897   cat >conftest.$ac_ext <<_ACEOF
40898 /* confdefs.h.  */
40899 _ACEOF
40900 cat confdefs.h >>conftest.$ac_ext
40901 cat >>conftest.$ac_ext <<_ACEOF
40902 /* end confdefs.h.  */
40903 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40905 #define _vsnprintf innocuous__vsnprintf
40906
40907 /* System header to define __stub macros and hopefully few prototypes,
40908     which can conflict with char _vsnprintf (); below.
40909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40910     <limits.h> exists even on freestanding compilers.  */
40911
40912 #ifdef __STDC__
40913 # include <limits.h>
40914 #else
40915 # include <assert.h>
40916 #endif
40917
40918 #undef _vsnprintf
40919
40920 /* Override any gcc2 internal prototype to avoid an error.  */
40921 #ifdef __cplusplus
40922 extern "C"
40923 {
40924 #endif
40925 /* We use char because int might match the return type of a gcc2
40926    builtin and then its argument prototype would still apply.  */
40927 char _vsnprintf ();
40928 /* The GNU C library defines this for functions which it implements
40929     to always fail with ENOSYS.  Some functions are actually named
40930     something starting with __ and the normal name is an alias.  */
40931 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40932 choke me
40933 #else
40934 char (*f) () = _vsnprintf;
40935 #endif
40936 #ifdef __cplusplus
40937 }
40938 #endif
40939
40940 int
40941 main ()
40942 {
40943 return f != _vsnprintf;
40944   ;
40945   return 0;
40946 }
40947 _ACEOF
40948 rm -f conftest.$ac_objext conftest$ac_exeext
40949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40950   (eval $ac_link) 2>conftest.er1
40951   ac_status=$?
40952   grep -v '^ *+' conftest.er1 >conftest.err
40953   rm -f conftest.er1
40954   cat conftest.err >&5
40955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40956   (exit $ac_status); } &&
40957          { ac_try='test -z "$ac_c_werror_flag"
40958                          || test ! -s conftest.err'
40959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40960   (eval $ac_try) 2>&5
40961   ac_status=$?
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); }; } &&
40964          { ac_try='test -s conftest$ac_exeext'
40965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966   (eval $ac_try) 2>&5
40967   ac_status=$?
40968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969   (exit $ac_status); }; }; then
40970   ac_cv_func__vsnprintf=yes
40971 else
40972   echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40974
40975 ac_cv_func__vsnprintf=no
40976 fi
40977 rm -f conftest.err conftest.$ac_objext \
40978       conftest$ac_exeext conftest.$ac_ext
40979 fi
40980 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40981 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40982 if test $ac_cv_func__vsnprintf = yes; then
40983   ac_cv_func_vsnprintf=yes
40984
40985 cat >>confdefs.h <<\_ACEOF
40986 #define vsnprintf _vsnprintf
40987 _ACEOF
40988
40989
40990 fi
40991
40992
40993
40994 for ac_func in vprintf
40995 do
40996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40997 echo "$as_me:$LINENO: checking for $ac_func" >&5
40998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40999 if eval "test \"\${$as_ac_var+set}\" = set"; then
41000   echo $ECHO_N "(cached) $ECHO_C" >&6
41001 else
41002   cat >conftest.$ac_ext <<_ACEOF
41003 /* confdefs.h.  */
41004 _ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h.  */
41008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41010 #define $ac_func innocuous_$ac_func
41011
41012 /* System header to define __stub macros and hopefully few prototypes,
41013     which can conflict with char $ac_func (); below.
41014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41015     <limits.h> exists even on freestanding compilers.  */
41016
41017 #ifdef __STDC__
41018 # include <limits.h>
41019 #else
41020 # include <assert.h>
41021 #endif
41022
41023 #undef $ac_func
41024
41025 /* Override any gcc2 internal prototype to avoid an error.  */
41026 #ifdef __cplusplus
41027 extern "C"
41028 {
41029 #endif
41030 /* We use char because int might match the return type of a gcc2
41031    builtin and then its argument prototype would still apply.  */
41032 char $ac_func ();
41033 /* The GNU C library defines this for functions which it implements
41034     to always fail with ENOSYS.  Some functions are actually named
41035     something starting with __ and the normal name is an alias.  */
41036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41037 choke me
41038 #else
41039 char (*f) () = $ac_func;
41040 #endif
41041 #ifdef __cplusplus
41042 }
41043 #endif
41044
41045 int
41046 main ()
41047 {
41048 return f != $ac_func;
41049   ;
41050   return 0;
41051 }
41052 _ACEOF
41053 rm -f conftest.$ac_objext conftest$ac_exeext
41054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41055   (eval $ac_link) 2>conftest.er1
41056   ac_status=$?
41057   grep -v '^ *+' conftest.er1 >conftest.err
41058   rm -f conftest.er1
41059   cat conftest.err >&5
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); } &&
41062          { ac_try='test -z "$ac_c_werror_flag"
41063                          || test ! -s conftest.err'
41064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065   (eval $ac_try) 2>&5
41066   ac_status=$?
41067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068   (exit $ac_status); }; } &&
41069          { ac_try='test -s conftest$ac_exeext'
41070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071   (eval $ac_try) 2>&5
41072   ac_status=$?
41073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074   (exit $ac_status); }; }; then
41075   eval "$as_ac_var=yes"
41076 else
41077   echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41079
41080 eval "$as_ac_var=no"
41081 fi
41082 rm -f conftest.err conftest.$ac_objext \
41083       conftest$ac_exeext conftest.$ac_ext
41084 fi
41085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41087 if test `eval echo '${'$as_ac_var'}'` = yes; then
41088   cat >>confdefs.h <<_ACEOF
41089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41090 _ACEOF
41091
41092 echo "$as_me:$LINENO: checking for _doprnt" >&5
41093 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
41094 if test "${ac_cv_func__doprnt+set}" = set; then
41095   echo $ECHO_N "(cached) $ECHO_C" >&6
41096 else
41097   cat >conftest.$ac_ext <<_ACEOF
41098 /* confdefs.h.  */
41099 _ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h.  */
41103 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41105 #define _doprnt innocuous__doprnt
41106
41107 /* System header to define __stub macros and hopefully few prototypes,
41108     which can conflict with char _doprnt (); below.
41109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41110     <limits.h> exists even on freestanding compilers.  */
41111
41112 #ifdef __STDC__
41113 # include <limits.h>
41114 #else
41115 # include <assert.h>
41116 #endif
41117
41118 #undef _doprnt
41119
41120 /* Override any gcc2 internal prototype to avoid an error.  */
41121 #ifdef __cplusplus
41122 extern "C"
41123 {
41124 #endif
41125 /* We use char because int might match the return type of a gcc2
41126    builtin and then its argument prototype would still apply.  */
41127 char _doprnt ();
41128 /* The GNU C library defines this for functions which it implements
41129     to always fail with ENOSYS.  Some functions are actually named
41130     something starting with __ and the normal name is an alias.  */
41131 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41132 choke me
41133 #else
41134 char (*f) () = _doprnt;
41135 #endif
41136 #ifdef __cplusplus
41137 }
41138 #endif
41139
41140 int
41141 main ()
41142 {
41143 return f != _doprnt;
41144   ;
41145   return 0;
41146 }
41147 _ACEOF
41148 rm -f conftest.$ac_objext conftest$ac_exeext
41149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41150   (eval $ac_link) 2>conftest.er1
41151   ac_status=$?
41152   grep -v '^ *+' conftest.er1 >conftest.err
41153   rm -f conftest.er1
41154   cat conftest.err >&5
41155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41156   (exit $ac_status); } &&
41157          { ac_try='test -z "$ac_c_werror_flag"
41158                          || test ! -s conftest.err'
41159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41160   (eval $ac_try) 2>&5
41161   ac_status=$?
41162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163   (exit $ac_status); }; } &&
41164          { ac_try='test -s conftest$ac_exeext'
41165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166   (eval $ac_try) 2>&5
41167   ac_status=$?
41168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169   (exit $ac_status); }; }; then
41170   ac_cv_func__doprnt=yes
41171 else
41172   echo "$as_me: failed program was:" >&5
41173 sed 's/^/| /' conftest.$ac_ext >&5
41174
41175 ac_cv_func__doprnt=no
41176 fi
41177 rm -f conftest.err conftest.$ac_objext \
41178       conftest$ac_exeext conftest.$ac_ext
41179 fi
41180 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41181 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41182 if test $ac_cv_func__doprnt = yes; then
41183
41184 cat >>confdefs.h <<\_ACEOF
41185 #define HAVE_DOPRNT 1
41186 _ACEOF
41187
41188 fi
41189
41190 fi
41191 done
41192
41193
41194
41195 if test $ac_cv_func_vprintf = yes ; then
41196
41197
41198 for ac_func in snprintf vsnprintf
41199 do
41200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41201 echo "$as_me:$LINENO: checking for $ac_func" >&5
41202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41203 if eval "test \"\${$as_ac_var+set}\" = set"; then
41204   echo $ECHO_N "(cached) $ECHO_C" >&6
41205 else
41206   cat >conftest.$ac_ext <<_ACEOF
41207 /* confdefs.h.  */
41208 _ACEOF
41209 cat confdefs.h >>conftest.$ac_ext
41210 cat >>conftest.$ac_ext <<_ACEOF
41211 /* end confdefs.h.  */
41212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41214 #define $ac_func innocuous_$ac_func
41215
41216 /* System header to define __stub macros and hopefully few prototypes,
41217     which can conflict with char $ac_func (); below.
41218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41219     <limits.h> exists even on freestanding compilers.  */
41220
41221 #ifdef __STDC__
41222 # include <limits.h>
41223 #else
41224 # include <assert.h>
41225 #endif
41226
41227 #undef $ac_func
41228
41229 /* Override any gcc2 internal prototype to avoid an error.  */
41230 #ifdef __cplusplus
41231 extern "C"
41232 {
41233 #endif
41234 /* We use char because int might match the return type of a gcc2
41235    builtin and then its argument prototype would still apply.  */
41236 char $ac_func ();
41237 /* The GNU C library defines this for functions which it implements
41238     to always fail with ENOSYS.  Some functions are actually named
41239     something starting with __ and the normal name is an alias.  */
41240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41241 choke me
41242 #else
41243 char (*f) () = $ac_func;
41244 #endif
41245 #ifdef __cplusplus
41246 }
41247 #endif
41248
41249 int
41250 main ()
41251 {
41252 return f != $ac_func;
41253   ;
41254   return 0;
41255 }
41256 _ACEOF
41257 rm -f conftest.$ac_objext conftest$ac_exeext
41258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41259   (eval $ac_link) 2>conftest.er1
41260   ac_status=$?
41261   grep -v '^ *+' conftest.er1 >conftest.err
41262   rm -f conftest.er1
41263   cat conftest.err >&5
41264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41265   (exit $ac_status); } &&
41266          { ac_try='test -z "$ac_c_werror_flag"
41267                          || test ! -s conftest.err'
41268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41269   (eval $ac_try) 2>&5
41270   ac_status=$?
41271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272   (exit $ac_status); }; } &&
41273          { ac_try='test -s conftest$ac_exeext'
41274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41275   (eval $ac_try) 2>&5
41276   ac_status=$?
41277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41278   (exit $ac_status); }; }; then
41279   eval "$as_ac_var=yes"
41280 else
41281   echo "$as_me: failed program was:" >&5
41282 sed 's/^/| /' conftest.$ac_ext >&5
41283
41284 eval "$as_ac_var=no"
41285 fi
41286 rm -f conftest.err conftest.$ac_objext \
41287       conftest$ac_exeext conftest.$ac_ext
41288 fi
41289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41291 if test `eval echo '${'$as_ac_var'}'` = yes; then
41292   cat >>confdefs.h <<_ACEOF
41293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41294 _ACEOF
41295
41296 fi
41297 done
41298
41299 fi
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354 for ac_func in \
41355         bcopy                   \
41356         closesocket             \
41357         chroot                  \
41358         endgrent                \
41359         endpwent                \
41360         fcntl                   \
41361         flock                   \
41362         fstat                   \
41363         getdtablesize   \
41364         getgrgid                \
41365         gethostname             \
41366         getpass                 \
41367         getpassphrase   \
41368         getpwuid                \
41369         getpwnam                \
41370         getspnam                \
41371         gettimeofday    \
41372         initgroups              \
41373         lockf                   \
41374         memcpy                  \
41375         memmove                 \
41376         mkstemp                 \
41377         mktemp                  \
41378         pipe                    \
41379         read                    \
41380         recv                    \
41381         recvfrom                \
41382         setpwfile               \
41383         setgid                  \
41384         setegid                 \
41385         setsid                  \
41386         setuid                  \
41387         seteuid                 \
41388         signal                  \
41389         strdup                  \
41390         strpbrk                 \
41391         strrchr                 \
41392         strsep                  \
41393         strstr                  \
41394         strtol                  \
41395         strtoul                 \
41396         strtoq                  \
41397         strtouq                 \
41398         strtoll                 \
41399         strspn                  \
41400         sysconf                 \
41401         usleep                  \
41402         waitpid                 \
41403         wait4                   \
41404         write                   \
41405         send                    \
41406         sendmsg                 \
41407         sendto                  \
41408
41409 do
41410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41411 echo "$as_me:$LINENO: checking for $ac_func" >&5
41412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41413 if eval "test \"\${$as_ac_var+set}\" = set"; then
41414   echo $ECHO_N "(cached) $ECHO_C" >&6
41415 else
41416   cat >conftest.$ac_ext <<_ACEOF
41417 /* confdefs.h.  */
41418 _ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h.  */
41422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41424 #define $ac_func innocuous_$ac_func
41425
41426 /* System header to define __stub macros and hopefully few prototypes,
41427     which can conflict with char $ac_func (); below.
41428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41429     <limits.h> exists even on freestanding compilers.  */
41430
41431 #ifdef __STDC__
41432 # include <limits.h>
41433 #else
41434 # include <assert.h>
41435 #endif
41436
41437 #undef $ac_func
41438
41439 /* Override any gcc2 internal prototype to avoid an error.  */
41440 #ifdef __cplusplus
41441 extern "C"
41442 {
41443 #endif
41444 /* We use char because int might match the return type of a gcc2
41445    builtin and then its argument prototype would still apply.  */
41446 char $ac_func ();
41447 /* The GNU C library defines this for functions which it implements
41448     to always fail with ENOSYS.  Some functions are actually named
41449     something starting with __ and the normal name is an alias.  */
41450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41451 choke me
41452 #else
41453 char (*f) () = $ac_func;
41454 #endif
41455 #ifdef __cplusplus
41456 }
41457 #endif
41458
41459 int
41460 main ()
41461 {
41462 return f != $ac_func;
41463   ;
41464   return 0;
41465 }
41466 _ACEOF
41467 rm -f conftest.$ac_objext conftest$ac_exeext
41468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41469   (eval $ac_link) 2>conftest.er1
41470   ac_status=$?
41471   grep -v '^ *+' conftest.er1 >conftest.err
41472   rm -f conftest.er1
41473   cat conftest.err >&5
41474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41475   (exit $ac_status); } &&
41476          { ac_try='test -z "$ac_c_werror_flag"
41477                          || test ! -s conftest.err'
41478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479   (eval $ac_try) 2>&5
41480   ac_status=$?
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); }; } &&
41483          { ac_try='test -s conftest$ac_exeext'
41484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485   (eval $ac_try) 2>&5
41486   ac_status=$?
41487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488   (exit $ac_status); }; }; then
41489   eval "$as_ac_var=yes"
41490 else
41491   echo "$as_me: failed program was:" >&5
41492 sed 's/^/| /' conftest.$ac_ext >&5
41493
41494 eval "$as_ac_var=no"
41495 fi
41496 rm -f conftest.err conftest.$ac_objext \
41497       conftest$ac_exeext conftest.$ac_ext
41498 fi
41499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41501 if test `eval echo '${'$as_ac_var'}'` = yes; then
41502   cat >>confdefs.h <<_ACEOF
41503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41504 _ACEOF
41505
41506 fi
41507 done
41508
41509
41510
41511
41512 for ac_func in getopt getpeereid
41513 do
41514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41515 echo "$as_me:$LINENO: checking for $ac_func" >&5
41516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41517 if eval "test \"\${$as_ac_var+set}\" = set"; then
41518   echo $ECHO_N "(cached) $ECHO_C" >&6
41519 else
41520   cat >conftest.$ac_ext <<_ACEOF
41521 /* confdefs.h.  */
41522 _ACEOF
41523 cat confdefs.h >>conftest.$ac_ext
41524 cat >>conftest.$ac_ext <<_ACEOF
41525 /* end confdefs.h.  */
41526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41528 #define $ac_func innocuous_$ac_func
41529
41530 /* System header to define __stub macros and hopefully few prototypes,
41531     which can conflict with char $ac_func (); below.
41532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41533     <limits.h> exists even on freestanding compilers.  */
41534
41535 #ifdef __STDC__
41536 # include <limits.h>
41537 #else
41538 # include <assert.h>
41539 #endif
41540
41541 #undef $ac_func
41542
41543 /* Override any gcc2 internal prototype to avoid an error.  */
41544 #ifdef __cplusplus
41545 extern "C"
41546 {
41547 #endif
41548 /* We use char because int might match the return type of a gcc2
41549    builtin and then its argument prototype would still apply.  */
41550 char $ac_func ();
41551 /* The GNU C library defines this for functions which it implements
41552     to always fail with ENOSYS.  Some functions are actually named
41553     something starting with __ and the normal name is an alias.  */
41554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41555 choke me
41556 #else
41557 char (*f) () = $ac_func;
41558 #endif
41559 #ifdef __cplusplus
41560 }
41561 #endif
41562
41563 int
41564 main ()
41565 {
41566 return f != $ac_func;
41567   ;
41568   return 0;
41569 }
41570 _ACEOF
41571 rm -f conftest.$ac_objext conftest$ac_exeext
41572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41573   (eval $ac_link) 2>conftest.er1
41574   ac_status=$?
41575   grep -v '^ *+' conftest.er1 >conftest.err
41576   rm -f conftest.er1
41577   cat conftest.err >&5
41578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579   (exit $ac_status); } &&
41580          { ac_try='test -z "$ac_c_werror_flag"
41581                          || test ! -s conftest.err'
41582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41583   (eval $ac_try) 2>&5
41584   ac_status=$?
41585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586   (exit $ac_status); }; } &&
41587          { ac_try='test -s conftest$ac_exeext'
41588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41589   (eval $ac_try) 2>&5
41590   ac_status=$?
41591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41592   (exit $ac_status); }; }; then
41593   eval "$as_ac_var=yes"
41594 else
41595   echo "$as_me: failed program was:" >&5
41596 sed 's/^/| /' conftest.$ac_ext >&5
41597
41598 eval "$as_ac_var=no"
41599 fi
41600 rm -f conftest.err conftest.$ac_objext \
41601       conftest$ac_exeext conftest.$ac_ext
41602 fi
41603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41605 if test `eval echo '${'$as_ac_var'}'` = yes; then
41606   cat >>confdefs.h <<_ACEOF
41607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41608 _ACEOF
41609
41610 else
41611   case $LIBOBJS in
41612     "$ac_func.$ac_objext"   | \
41613   *" $ac_func.$ac_objext"   | \
41614     "$ac_func.$ac_objext "* | \
41615   *" $ac_func.$ac_objext "* ) ;;
41616   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41617 esac
41618
41619 fi
41620 done
41621
41622
41623
41624 if test "$ac_cv_func_getopt" != yes; then
41625         LIBSRCS="$LIBSRCS getopt.c"
41626 fi
41627 if test "$ac_cv_func_getpeereid" != yes; then
41628         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41629 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41630 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41631   echo $ECHO_N "(cached) $ECHO_C" >&6
41632 else
41633   cat >conftest.$ac_ext <<_ACEOF
41634 /* confdefs.h.  */
41635 _ACEOF
41636 cat confdefs.h >>conftest.$ac_ext
41637 cat >>conftest.$ac_ext <<_ACEOF
41638 /* end confdefs.h.  */
41639 $ac_includes_default
41640 #ifdef HAVE_SYS_SOCKET_H
41641 #include <sys/socket.h>
41642 #endif
41643
41644 int
41645 main ()
41646 {
41647 static struct msghdr ac_aggr;
41648 if (ac_aggr.msg_accrightslen)
41649 return 0;
41650   ;
41651   return 0;
41652 }
41653 _ACEOF
41654 rm -f conftest.$ac_objext
41655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41656   (eval $ac_compile) 2>conftest.er1
41657   ac_status=$?
41658   grep -v '^ *+' conftest.er1 >conftest.err
41659   rm -f conftest.er1
41660   cat conftest.err >&5
41661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41662   (exit $ac_status); } &&
41663          { ac_try='test -z "$ac_c_werror_flag"
41664                          || test ! -s conftest.err'
41665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41666   (eval $ac_try) 2>&5
41667   ac_status=$?
41668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669   (exit $ac_status); }; } &&
41670          { ac_try='test -s conftest.$ac_objext'
41671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41672   (eval $ac_try) 2>&5
41673   ac_status=$?
41674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41675   (exit $ac_status); }; }; then
41676   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41677 else
41678   echo "$as_me: failed program was:" >&5
41679 sed 's/^/| /' conftest.$ac_ext >&5
41680
41681 cat >conftest.$ac_ext <<_ACEOF
41682 /* confdefs.h.  */
41683 _ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h.  */
41687 $ac_includes_default
41688 #ifdef HAVE_SYS_SOCKET_H
41689 #include <sys/socket.h>
41690 #endif
41691
41692 int
41693 main ()
41694 {
41695 static struct msghdr ac_aggr;
41696 if (sizeof ac_aggr.msg_accrightslen)
41697 return 0;
41698   ;
41699   return 0;
41700 }
41701 _ACEOF
41702 rm -f conftest.$ac_objext
41703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41704   (eval $ac_compile) 2>conftest.er1
41705   ac_status=$?
41706   grep -v '^ *+' conftest.er1 >conftest.err
41707   rm -f conftest.er1
41708   cat conftest.err >&5
41709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710   (exit $ac_status); } &&
41711          { ac_try='test -z "$ac_c_werror_flag"
41712                          || test ! -s conftest.err'
41713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41714   (eval $ac_try) 2>&5
41715   ac_status=$?
41716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41717   (exit $ac_status); }; } &&
41718          { ac_try='test -s conftest.$ac_objext'
41719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41720   (eval $ac_try) 2>&5
41721   ac_status=$?
41722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723   (exit $ac_status); }; }; then
41724   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41725 else
41726   echo "$as_me: failed program was:" >&5
41727 sed 's/^/| /' conftest.$ac_ext >&5
41728
41729 ac_cv_member_struct_msghdr_msg_accrightslen=no
41730 fi
41731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41732 fi
41733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41734 fi
41735 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41736 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41737 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41738
41739 cat >>confdefs.h <<_ACEOF
41740 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41741 _ACEOF
41742
41743
41744 fi
41745
41746         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41747                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41748 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41749 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41750   echo $ECHO_N "(cached) $ECHO_C" >&6
41751 else
41752   cat >conftest.$ac_ext <<_ACEOF
41753 /* confdefs.h.  */
41754 _ACEOF
41755 cat confdefs.h >>conftest.$ac_ext
41756 cat >>conftest.$ac_ext <<_ACEOF
41757 /* end confdefs.h.  */
41758 $ac_includes_default
41759 #ifdef HAVE_SYS_SOCKET_H
41760 #include <sys/socket.h>
41761 #endif
41762
41763 int
41764 main ()
41765 {
41766 static struct msghdr ac_aggr;
41767 if (ac_aggr.msg_control)
41768 return 0;
41769   ;
41770   return 0;
41771 }
41772 _ACEOF
41773 rm -f conftest.$ac_objext
41774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41775   (eval $ac_compile) 2>conftest.er1
41776   ac_status=$?
41777   grep -v '^ *+' conftest.er1 >conftest.err
41778   rm -f conftest.er1
41779   cat conftest.err >&5
41780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41781   (exit $ac_status); } &&
41782          { ac_try='test -z "$ac_c_werror_flag"
41783                          || test ! -s conftest.err'
41784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41785   (eval $ac_try) 2>&5
41786   ac_status=$?
41787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41788   (exit $ac_status); }; } &&
41789          { ac_try='test -s conftest.$ac_objext'
41790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41791   (eval $ac_try) 2>&5
41792   ac_status=$?
41793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41794   (exit $ac_status); }; }; then
41795   ac_cv_member_struct_msghdr_msg_control=yes
41796 else
41797   echo "$as_me: failed program was:" >&5
41798 sed 's/^/| /' conftest.$ac_ext >&5
41799
41800 cat >conftest.$ac_ext <<_ACEOF
41801 /* confdefs.h.  */
41802 _ACEOF
41803 cat confdefs.h >>conftest.$ac_ext
41804 cat >>conftest.$ac_ext <<_ACEOF
41805 /* end confdefs.h.  */
41806 $ac_includes_default
41807 #ifdef HAVE_SYS_SOCKET_H
41808 #include <sys/socket.h>
41809 #endif
41810
41811 int
41812 main ()
41813 {
41814 static struct msghdr ac_aggr;
41815 if (sizeof ac_aggr.msg_control)
41816 return 0;
41817   ;
41818   return 0;
41819 }
41820 _ACEOF
41821 rm -f conftest.$ac_objext
41822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41823   (eval $ac_compile) 2>conftest.er1
41824   ac_status=$?
41825   grep -v '^ *+' conftest.er1 >conftest.err
41826   rm -f conftest.er1
41827   cat conftest.err >&5
41828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41829   (exit $ac_status); } &&
41830          { ac_try='test -z "$ac_c_werror_flag"
41831                          || test ! -s conftest.err'
41832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833   (eval $ac_try) 2>&5
41834   ac_status=$?
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); }; } &&
41837          { ac_try='test -s conftest.$ac_objext'
41838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41839   (eval $ac_try) 2>&5
41840   ac_status=$?
41841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842   (exit $ac_status); }; }; then
41843   ac_cv_member_struct_msghdr_msg_control=yes
41844 else
41845   echo "$as_me: failed program was:" >&5
41846 sed 's/^/| /' conftest.$ac_ext >&5
41847
41848 ac_cv_member_struct_msghdr_msg_control=no
41849 fi
41850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41851 fi
41852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41853 fi
41854 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41855 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41856 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41857
41858 cat >>confdefs.h <<_ACEOF
41859 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41860 _ACEOF
41861
41862
41863 fi
41864
41865         fi
41866         LIBSRCS="$LIBSRCS getpeereid.c"
41867 fi
41868 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
41869         if test "$ac_cv_func_snprintf" != yes; then
41870
41871 cat >>confdefs.h <<\_ACEOF
41872 #define snprintf ber_pvt_snprintf
41873 _ACEOF
41874
41875         fi
41876         if test "$ac_cv_func_vsnprintf" != yes; then
41877
41878 cat >>confdefs.h <<\_ACEOF
41879 #define vsnprintf ber_pvt_vsnprintf
41880 _ACEOF
41881
41882         fi
41883 fi
41884
41885
41886 if test "$ol_enable_slapi" != no ; then
41887
41888 for ac_header in ltdl.h
41889 do
41890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41892   echo "$as_me:$LINENO: checking for $ac_header" >&5
41893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41895   echo $ECHO_N "(cached) $ECHO_C" >&6
41896 fi
41897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41899 else
41900   # Is the header compilable?
41901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41903 cat >conftest.$ac_ext <<_ACEOF
41904 /* confdefs.h.  */
41905 _ACEOF
41906 cat confdefs.h >>conftest.$ac_ext
41907 cat >>conftest.$ac_ext <<_ACEOF
41908 /* end confdefs.h.  */
41909 $ac_includes_default
41910 #include <$ac_header>
41911 _ACEOF
41912 rm -f conftest.$ac_objext
41913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41914   (eval $ac_compile) 2>conftest.er1
41915   ac_status=$?
41916   grep -v '^ *+' conftest.er1 >conftest.err
41917   rm -f conftest.er1
41918   cat conftest.err >&5
41919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920   (exit $ac_status); } &&
41921          { ac_try='test -z "$ac_c_werror_flag"
41922                          || test ! -s conftest.err'
41923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41924   (eval $ac_try) 2>&5
41925   ac_status=$?
41926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41927   (exit $ac_status); }; } &&
41928          { ac_try='test -s conftest.$ac_objext'
41929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41930   (eval $ac_try) 2>&5
41931   ac_status=$?
41932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41933   (exit $ac_status); }; }; then
41934   ac_header_compiler=yes
41935 else
41936   echo "$as_me: failed program was:" >&5
41937 sed 's/^/| /' conftest.$ac_ext >&5
41938
41939 ac_header_compiler=no
41940 fi
41941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41943 echo "${ECHO_T}$ac_header_compiler" >&6
41944
41945 # Is the header present?
41946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41948 cat >conftest.$ac_ext <<_ACEOF
41949 /* confdefs.h.  */
41950 _ACEOF
41951 cat confdefs.h >>conftest.$ac_ext
41952 cat >>conftest.$ac_ext <<_ACEOF
41953 /* end confdefs.h.  */
41954 #include <$ac_header>
41955 _ACEOF
41956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41958   ac_status=$?
41959   grep -v '^ *+' conftest.er1 >conftest.err
41960   rm -f conftest.er1
41961   cat conftest.err >&5
41962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963   (exit $ac_status); } >/dev/null; then
41964   if test -s conftest.err; then
41965     ac_cpp_err=$ac_c_preproc_warn_flag
41966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41967   else
41968     ac_cpp_err=
41969   fi
41970 else
41971   ac_cpp_err=yes
41972 fi
41973 if test -z "$ac_cpp_err"; then
41974   ac_header_preproc=yes
41975 else
41976   echo "$as_me: failed program was:" >&5
41977 sed 's/^/| /' conftest.$ac_ext >&5
41978
41979   ac_header_preproc=no
41980 fi
41981 rm -f conftest.err conftest.$ac_ext
41982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41983 echo "${ECHO_T}$ac_header_preproc" >&6
41984
41985 # So?  What about this header?
41986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41987   yes:no: )
41988     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41992     ac_header_preproc=yes
41993     ;;
41994   no:yes:* )
41995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41997     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41998 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41999     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42001     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42002 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42005     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42007     (
42008       cat <<\_ASBOX
42009 ## ------------------------------------------ ##
42010 ## Report this to the AC_PACKAGE_NAME lists.  ##
42011 ## ------------------------------------------ ##
42012 _ASBOX
42013     ) |
42014       sed "s/^/$as_me: WARNING:     /" >&2
42015     ;;
42016 esac
42017 echo "$as_me:$LINENO: checking for $ac_header" >&5
42018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
42020   echo $ECHO_N "(cached) $ECHO_C" >&6
42021 else
42022   eval "$as_ac_Header=\$ac_header_preproc"
42023 fi
42024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42026
42027 fi
42028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42029   cat >>confdefs.h <<_ACEOF
42030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42031 _ACEOF
42032
42033 fi
42034
42035 done
42036
42037
42038         if test $ac_cv_header_ltdl_h != yes ; then
42039                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
42040 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
42041    { (exit 1); exit 1; }; }
42042         fi
42043         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
42044 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
42045 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
42046   echo $ECHO_N "(cached) $ECHO_C" >&6
42047 else
42048   ac_check_lib_save_LIBS=$LIBS
42049 LIBS="-lltdl  $LIBS"
42050 cat >conftest.$ac_ext <<_ACEOF
42051 /* confdefs.h.  */
42052 _ACEOF
42053 cat confdefs.h >>conftest.$ac_ext
42054 cat >>conftest.$ac_ext <<_ACEOF
42055 /* end confdefs.h.  */
42056
42057 /* Override any gcc2 internal prototype to avoid an error.  */
42058 #ifdef __cplusplus
42059 extern "C"
42060 #endif
42061 /* We use char because int might match the return type of a gcc2
42062    builtin and then its argument prototype would still apply.  */
42063 char lt_dlinit ();
42064 int
42065 main ()
42066 {
42067 lt_dlinit ();
42068   ;
42069   return 0;
42070 }
42071 _ACEOF
42072 rm -f conftest.$ac_objext conftest$ac_exeext
42073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42074   (eval $ac_link) 2>conftest.er1
42075   ac_status=$?
42076   grep -v '^ *+' conftest.er1 >conftest.err
42077   rm -f conftest.er1
42078   cat conftest.err >&5
42079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080   (exit $ac_status); } &&
42081          { ac_try='test -z "$ac_c_werror_flag"
42082                          || test ! -s conftest.err'
42083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42084   (eval $ac_try) 2>&5
42085   ac_status=$?
42086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42087   (exit $ac_status); }; } &&
42088          { ac_try='test -s conftest$ac_exeext'
42089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42090   (eval $ac_try) 2>&5
42091   ac_status=$?
42092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093   (exit $ac_status); }; }; then
42094   ac_cv_lib_ltdl_lt_dlinit=yes
42095 else
42096   echo "$as_me: failed program was:" >&5
42097 sed 's/^/| /' conftest.$ac_ext >&5
42098
42099 ac_cv_lib_ltdl_lt_dlinit=no
42100 fi
42101 rm -f conftest.err conftest.$ac_objext \
42102       conftest$ac_exeext conftest.$ac_ext
42103 LIBS=$ac_check_lib_save_LIBS
42104 fi
42105 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42106 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42107 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42108
42109                 SLAPI_LIBS=-lltdl
42110                 LIBSLAPI=libslapi.a
42111                 LIBSLAPITOOLS=../libslapi.a
42112
42113 cat >>confdefs.h <<\_ACEOF
42114 #define HAVE_LIBLTDL 1
42115 _ACEOF
42116
42117
42118 else
42119   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42120 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42121    { (exit 1); exit 1; }; }
42122 fi
42123
42124
42125
42126 cat >>confdefs.h <<\_ACEOF
42127 #define LDAP_SLAPI 1
42128 _ACEOF
42129
42130 fi
42131
42132 if test "$ol_enable_debug" != no ; then
42133
42134 cat >>confdefs.h <<\_ACEOF
42135 #define LDAP_DEBUG 1
42136 _ACEOF
42137
42138 fi
42139 if test "$ol_enable_syslog" = yes ; then
42140
42141 cat >>confdefs.h <<\_ACEOF
42142 #define LDAP_SYSLOG 1
42143 _ACEOF
42144
42145 fi
42146 if test "$ol_link_kbind" != no ; then
42147
42148 cat >>confdefs.h <<\_ACEOF
42149 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42150 _ACEOF
42151
42152 fi
42153 if test "$ol_enable_proctitle" != no ; then
42154
42155 cat >>confdefs.h <<\_ACEOF
42156 #define LDAP_PROCTITLE 1
42157 _ACEOF
42158
42159 fi
42160 if test "$ol_enable_referrals" != no ; then
42161
42162 cat >>confdefs.h <<\_ACEOF
42163 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42164 _ACEOF
42165
42166 fi
42167 if test "$ol_enable_local" != no; then
42168
42169 cat >>confdefs.h <<\_ACEOF
42170 #define LDAP_PF_LOCAL 1
42171 _ACEOF
42172
42173 fi
42174 if test "$ol_link_ipv6" != no; then
42175
42176 cat >>confdefs.h <<\_ACEOF
42177 #define LDAP_PF_INET6 1
42178 _ACEOF
42179
42180 fi
42181 if test "$ol_enable_cleartext" != no ; then
42182
42183 cat >>confdefs.h <<\_ACEOF
42184 #define SLAPD_CLEARTEXT 1
42185 _ACEOF
42186
42187 fi
42188 if test "$ol_enable_crypt" != no ; then
42189
42190 cat >>confdefs.h <<\_ACEOF
42191 #define SLAPD_CRYPT 1
42192 _ACEOF
42193
42194 fi
42195 if test "$ol_link_spasswd" != no ; then
42196
42197 cat >>confdefs.h <<\_ACEOF
42198 #define SLAPD_SPASSWD 1
42199 _ACEOF
42200
42201 fi
42202 if test "$ol_enable_multimaster" != no ; then
42203
42204 cat >>confdefs.h <<\_ACEOF
42205 #define SLAPD_MULTIMASTER 1
42206 _ACEOF
42207
42208 fi
42209 if test "$ol_enable_rlookups" != no ; then
42210
42211 cat >>confdefs.h <<\_ACEOF
42212 #define SLAPD_RLOOKUPS 1
42213 _ACEOF
42214
42215 fi
42216 if test "$ol_enable_aci" != no ; then
42217
42218 cat >>confdefs.h <<\_ACEOF
42219 #define SLAPD_ACI_ENABLED 1
42220 _ACEOF
42221
42222         WITH_ACI_ENABLED=yes
42223 else
42224         WITH_ACI_ENABLED=no
42225 fi
42226
42227 if test "$ol_link_modules" != no ; then
42228
42229 cat >>confdefs.h <<\_ACEOF
42230 #define SLAPD_MODULES 1
42231 _ACEOF
42232
42233         BUILD_SLAPD=yes
42234         SLAPD_MODULES_LDFLAGS="-dlopen self"
42235 fi
42236
42237
42238 cat >>confdefs.h <<\_ACEOF
42239 #define SLAPD_MOD_STATIC 1
42240 _ACEOF
42241
42242
42243 cat >>confdefs.h <<\_ACEOF
42244 #define SLAPD_MOD_DYNAMIC 2
42245 _ACEOF
42246
42247
42248 if test "$ol_enable_bdb" != no ; then
42249         BUILD_SLAPD=yes
42250         BUILD_BDB=$ol_enable_bdb
42251         if test "$ol_enable_bdb" = mod ; then
42252                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42253                 MFLAG=SLAPD_MOD_DYNAMIC
42254         else
42255                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42256                 MFLAG=SLAPD_MOD_STATIC
42257         fi
42258
42259 cat >>confdefs.h <<_ACEOF
42260 #define SLAPD_BDB $MFLAG
42261 _ACEOF
42262
42263 fi
42264
42265 if test "$ol_enable_dnssrv" != no ; then
42266         BUILD_SLAPD=yes
42267         BUILD_DNSSRV=$ol_enable_dnssrv
42268         if test "$ol_enable_dnssrv" = mod ; then
42269                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42270                 MFLAG=SLAPD_MOD_DYNAMIC
42271         else
42272                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42273                 MFLAG=SLAPD_MOD_STATIC
42274         fi
42275
42276 cat >>confdefs.h <<_ACEOF
42277 #define SLAPD_DNSSRV $MFLAG
42278 _ACEOF
42279
42280 fi
42281
42282 if test "$ol_enable_hdb" != no ; then
42283         BUILD_SLAPD=yes
42284         BUILD_HDB=$ol_enable_hdb
42285         if test "$ol_enable_hdb" = mod ; then
42286                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42287                 MFLAG=SLAPD_MOD_DYNAMIC
42288         else
42289                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42290                 MFLAG=SLAPD_MOD_STATIC
42291         fi
42292
42293 cat >>confdefs.h <<_ACEOF
42294 #define SLAPD_HDB $MFLAG
42295 _ACEOF
42296
42297 fi
42298
42299 if test "$ol_enable_ldap" != no ; then
42300         BUILD_SLAPD=yes
42301         BUILD_LDAP=$ol_enable_ldap
42302         if test "$ol_enable_ldap" = mod ; then
42303                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42304                 MFLAG=SLAPD_MOD_DYNAMIC
42305         else
42306                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42307                 MFLAG=SLAPD_MOD_STATIC
42308         fi
42309
42310 cat >>confdefs.h <<_ACEOF
42311 #define SLAPD_LDAP $MFLAG
42312 _ACEOF
42313
42314 fi
42315
42316 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
42317         BUILD_SLAPD=yes
42318         BUILD_LDBM=$ol_enable_ldbm
42319         if test "$ol_enable_ldbm" = mod ; then
42320                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42321                 MFLAG=SLAPD_MOD_DYNAMIC
42322         else
42323                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42324                 MFLAG=SLAPD_MOD_STATIC
42325         fi
42326
42327 cat >>confdefs.h <<_ACEOF
42328 #define SLAPD_LDBM $MFLAG
42329 _ACEOF
42330
42331 fi
42332
42333 if test "$ol_enable_meta" != no ; then
42334         BUILD_SLAPD=yes
42335         BUILD_META=$ol_enable_meta
42336         BUILD_REWRITE=yes
42337         if test "$ol_enable_meta" = mod ; then
42338                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42339                 MFLAG=SLAPD_MOD_DYNAMIC
42340         else
42341                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42342                 MFLAG=SLAPD_MOD_STATIC
42343         fi
42344
42345 cat >>confdefs.h <<_ACEOF
42346 #define SLAPD_META $MFLAG
42347 _ACEOF
42348
42349 fi
42350
42351 if test "$ol_enable_monitor" != no ; then
42352         BUILD_SLAPD=yes
42353         BUILD_MONITOR=$ol_enable_monitor
42354         if test "$ol_enable_monitor" = mod ; then
42355                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42356                 MFLAG=SLAPD_MOD_DYNAMIC
42357         else
42358                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42359                 MFLAG=SLAPD_MOD_STATIC
42360         fi
42361
42362 cat >>confdefs.h <<_ACEOF
42363 #define SLAPD_MONITOR $MFLAG
42364 _ACEOF
42365
42366 fi
42367
42368 if test "$ol_enable_null" != no ; then
42369         BUILD_SLAPD=yes
42370         BUILD_NULL=$ol_enable_null
42371         if test "$ol_enable_null" = mod ; then
42372                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42373                 MFLAG=SLAPD_MOD_DYNAMIC
42374         else
42375                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42376                 MFLAG=SLAPD_MOD_STATIC
42377         fi
42378
42379 cat >>confdefs.h <<_ACEOF
42380 #define SLAPD_NULL $MFLAG
42381 _ACEOF
42382
42383 fi
42384
42385 if test "$ol_enable_passwd" != no ; then
42386         BUILD_SLAPD=yes
42387         BUILD_PASSWD=$ol_enable_passwd
42388         if test "$ol_enable_passwd" = mod ; then
42389                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42390                 MFLAG=SLAPD_MOD_DYNAMIC
42391         else
42392                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42393                 MFLAG=SLAPD_MOD_STATIC
42394         fi
42395
42396 cat >>confdefs.h <<_ACEOF
42397 #define SLAPD_PASSWD $MFLAG
42398 _ACEOF
42399
42400 fi
42401
42402 if test "$ol_link_perl" != no ; then
42403         BUILD_SLAPD=yes
42404         BUILD_PERL=$ol_enable_perl
42405         if test "$ol_enable_perl" = mod ; then
42406                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42407                 MFLAG=SLAPD_MOD_DYNAMIC
42408         else
42409                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42410                 MFLAG=SLAPD_MOD_STATIC
42411         fi
42412
42413 cat >>confdefs.h <<_ACEOF
42414 #define SLAPD_PERL $MFLAG
42415 _ACEOF
42416
42417 fi
42418
42419 if test "$ol_enable_relay" != no ; then
42420         BUILD_SLAPD=yes
42421         BUILD_RELAY=$ol_enable_relay
42422         if test "$ol_enable_relay" = mod ; then
42423                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42424                 MFLAG=SLAPD_MOD_DYNAMIC
42425         else
42426                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42427                 MFLAG=SLAPD_MOD_STATIC
42428         fi
42429
42430 cat >>confdefs.h <<_ACEOF
42431 #define SLAPD_RELAY $MFLAG
42432 _ACEOF
42433
42434 fi
42435
42436 if test "$ol_enable_shell" != no ; then
42437         if test "$ol_link_threads" != no ; then
42438                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42439 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42440         fi
42441         BUILD_SLAPD=yes
42442         BUILD_SHELL=$ol_enable_shell
42443         if test "$ol_enable_shell" = mod ; then
42444                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42445                 MFLAG=SLAPD_MOD_DYNAMIC
42446         else
42447                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42448                 MFLAG=SLAPD_MOD_STATIC
42449         fi
42450
42451 cat >>confdefs.h <<_ACEOF
42452 #define SLAPD_SHELL $MFLAG
42453 _ACEOF
42454
42455 fi
42456
42457 if test "$ol_link_sql" != no ; then
42458         BUILD_SLAPD=yes
42459         BUILD_SQL=$ol_enable_sql
42460         if test "$ol_enable_sql" = mod; then
42461                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42462                 MFLAG=SLAPD_MOD_DYNAMIC
42463         else
42464                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42465                 MFLAG=SLAPD_MOD_STATIC
42466         fi
42467
42468 cat >>confdefs.h <<_ACEOF
42469 #define SLAPD_SQL $MFLAG
42470 _ACEOF
42471
42472 fi
42473
42474 if test "$ol_enable_accesslog" != no ; then
42475         BUILD_ACCESSLOG=$ol_enable_accesslog
42476         if test "$ol_enable_accesslog" = mod ; then
42477                 MFLAG=SLAPD_MOD_DYNAMIC
42478                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42479         else
42480                 MFLAG=SLAPD_MOD_STATIC
42481                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42482         fi
42483
42484 cat >>confdefs.h <<_ACEOF
42485 #define SLAPD_OVER_ACCESSLOG $MFLAG
42486 _ACEOF
42487
42488 fi
42489
42490 if test "$ol_enable_denyop" != no ; then
42491         BUILD_DENYOP=$ol_enable_denyop
42492         if test "$ol_enable_denyop" = mod ; then
42493                 MFLAG=SLAPD_MOD_DYNAMIC
42494                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42495         else
42496                 MFLAG=SLAPD_MOD_STATIC
42497                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42498         fi
42499
42500 cat >>confdefs.h <<_ACEOF
42501 #define SLAPD_OVER_DENYOP $MFLAG
42502 _ACEOF
42503
42504 fi
42505
42506 if test "$ol_enable_dyngroup" != no ; then
42507         BUILD_DYNGROUP=$ol_enable_dyngroup
42508         if test "$ol_enable_dyngroup" = mod ; then
42509                 MFLAG=SLAPD_MOD_DYNAMIC
42510                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42511         else
42512                 MFLAG=SLAPD_MOD_STATIC
42513                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42514         fi
42515
42516 cat >>confdefs.h <<_ACEOF
42517 #define SLAPD_OVER_DYNGROUP $MFLAG
42518 _ACEOF
42519
42520 fi
42521
42522 if test "$ol_enable_dynlist" != no ; then
42523         BUILD_DYNLIST=$ol_enable_dynlist
42524         if test "$ol_enable_dynlist" = mod ; then
42525                 MFLAG=SLAPD_MOD_DYNAMIC
42526                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42527         else
42528                 MFLAG=SLAPD_MOD_STATIC
42529                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42530         fi
42531
42532 cat >>confdefs.h <<_ACEOF
42533 #define SLAPD_OVER_DYNLIST $MFLAG
42534 _ACEOF
42535
42536 fi
42537
42538 if test "$ol_enable_glue" != no ; then
42539         BUILD_GLUE=$ol_enable_glue
42540         if test "$ol_enable_glue" = mod ; then
42541                 MFLAG=SLAPD_MOD_DYNAMIC
42542                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
42543         else
42544                 MFLAG=SLAPD_MOD_STATIC
42545                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
42546         fi
42547
42548 cat >>confdefs.h <<_ACEOF
42549 #define SLAPD_OVER_GLUE $MFLAG
42550 _ACEOF
42551
42552 fi
42553
42554 if test "$ol_enable_lastmod" != no ; then
42555         BUILD_LASTMOD=$ol_enable_lastmod
42556         if test "$ol_enable_lastmod" = mod ; then
42557                 MFLAG=SLAPD_MOD_DYNAMIC
42558                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42559         else
42560                 MFLAG=SLAPD_MOD_STATIC
42561                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42562         fi
42563
42564 cat >>confdefs.h <<_ACEOF
42565 #define SLAPD_OVER_LASTMOD $MFLAG
42566 _ACEOF
42567
42568 fi
42569
42570 if test "$ol_enable_ppolicy" != no ; then
42571         BUILD_PPOLICY=$ol_enable_ppolicy
42572         if test "$ol_enable_ppolicy" = mod ; then
42573                 MFLAG=SLAPD_MOD_DYNAMIC
42574                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42575         else
42576                 MFLAG=SLAPD_MOD_STATIC
42577                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42578         fi
42579
42580 cat >>confdefs.h <<_ACEOF
42581 #define SLAPD_OVER_PPOLICY $MFLAG
42582 _ACEOF
42583
42584 fi
42585
42586 if test "$ol_enable_proxycache" != no ; then
42587         BUILD_PROXYCACHE=$ol_enable_proxycache
42588         if test "$ol_enable_proxycache" = mod ; then
42589                 MFLAG=SLAPD_MOD_DYNAMIC
42590                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42591         else
42592                 MFLAG=SLAPD_MOD_STATIC
42593                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42594         fi
42595
42596 cat >>confdefs.h <<_ACEOF
42597 #define SLAPD_OVER_PROXYCACHE $MFLAG
42598 _ACEOF
42599
42600 fi
42601
42602 if test "$ol_enable_refint" != no ; then
42603         BUILD_REFINT=$ol_enable_refint
42604         if test "$ol_enable_refint" = mod ; then
42605                 MFLAG=SLAPD_MOD_DYNAMIC
42606                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42607         else
42608                 MFLAG=SLAPD_MOD_STATIC
42609                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42610         fi
42611
42612 cat >>confdefs.h <<_ACEOF
42613 #define SLAPD_OVER_REFINT $MFLAG
42614 _ACEOF
42615
42616 fi
42617
42618 if test "$ol_enable_retcode" != no ; then
42619         BUILD_RETCODE=$ol_enable_retcode
42620         if test "$ol_enable_retcode" = mod ; then
42621                 MFLAG=SLAPD_MOD_DYNAMIC
42622                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42623         else
42624                 MFLAG=SLAPD_MOD_STATIC
42625                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42626         fi
42627
42628 cat >>confdefs.h <<_ACEOF
42629 #define SLAPD_OVER_RETCODE $MFLAG
42630 _ACEOF
42631
42632 fi
42633
42634 if test "$ol_enable_rwm" != no ; then
42635         BUILD_REWRITE=yes
42636         BUILD_RWM=$ol_enable_rwm
42637         if test "$ol_enable_rwm" = mod ; then
42638                 MFLAG=SLAPD_MOD_DYNAMIC
42639                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42640         else
42641                 MFLAG=SLAPD_MOD_STATIC
42642                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42643         fi
42644
42645 cat >>confdefs.h <<_ACEOF
42646 #define SLAPD_OVER_RWM $MFLAG
42647 _ACEOF
42648
42649 fi
42650
42651 if test "$ol_enable_syncprov" != no ; then
42652         BUILD_SYNCPROV=$ol_enable_syncprov
42653         if test "$ol_enable_syncprov" = mod ; then
42654                 MFLAG=SLAPD_MOD_DYNAMIC
42655                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42656         else
42657                 MFLAG=SLAPD_MOD_STATIC
42658                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42659         fi
42660
42661 cat >>confdefs.h <<_ACEOF
42662 #define SLAPD_OVER_SYNCPROV $MFLAG
42663 _ACEOF
42664
42665 fi
42666
42667 if test "$ol_enable_translucent" != no ; then
42668         BUILD_TRANSLUCENT=$ol_enable_translucent
42669         if test "$ol_enable_translucent" = mod ; then
42670                 MFLAG=SLAPD_MOD_DYNAMIC
42671                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42672         else
42673                 MFLAG=SLAPD_MOD_STATIC
42674                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42675         fi
42676
42677 cat >>confdefs.h <<_ACEOF
42678 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42679 _ACEOF
42680
42681 fi
42682
42683 if test "$ol_enable_unique" != no ; then
42684         BUILD_UNIQUE=$ol_enable_unique
42685         if test "$ol_enable_unique" = mod ; then
42686                 MFLAG=SLAPD_MOD_DYNAMIC
42687                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42688         else
42689                 MFLAG=SLAPD_MOD_STATIC
42690                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42691         fi
42692
42693 cat >>confdefs.h <<_ACEOF
42694 #define SLAPD_OVER_UNIQUE $MFLAG
42695 _ACEOF
42696
42697 fi
42698
42699 if test "$ol_enable_valsort" != no ; then
42700         BUILD_VALSORT=$ol_enable_valsort
42701         if test "$ol_enable_valsort" = mod ; then
42702                 MFLAG=SLAPD_MOD_DYNAMIC
42703                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42704         else
42705                 MFLAG=SLAPD_MOD_STATIC
42706                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42707         fi
42708
42709 cat >>confdefs.h <<_ACEOF
42710 #define SLAPD_OVER_VALSORT $MFLAG
42711 _ACEOF
42712
42713 fi
42714
42715 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
42716         $BUILD_SLAPD = yes ; then
42717         BUILD_SLURPD=yes
42718 fi
42719
42720 if test "$ol_enable_rewrite" != no ; then
42721
42722 cat >>confdefs.h <<\_ACEOF
42723 #define ENABLE_REWRITE 1
42724 _ACEOF
42725
42726         BUILD_REWRITE=yes
42727 fi
42728
42729 if test "$ol_enable_slapi" != no ; then
42730
42731 cat >>confdefs.h <<\_ACEOF
42732 #define ENABLE_SLAPI 1
42733 _ACEOF
42734
42735         BUILD_SLAPI=yes
42736         SLAPD_SLAPI_DEPEND=libslapi.a
42737 fi
42738
42739
42740
42741 if test "$ac_cv_mingw32" = yes ; then
42742         PLAT=NT
42743         SLAPD_MODULES_LDFLAGS=
42744 else
42745         PLAT=UNIX
42746 fi
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
42759
42760
42761
42762
42763
42764
42765
42766
42767
42768
42769
42770
42771
42772
42773
42774
42775
42776
42777
42778
42779
42780
42781
42782
42783
42784
42785
42786
42787
42788
42789
42790
42791
42792
42793
42794
42795
42796
42797
42798
42799
42800
42801
42802
42803
42804
42805
42806
42807
42808
42809
42810
42811
42812
42813
42814
42815
42816
42817
42818
42819
42820
42821
42822
42823
42824
42825
42826
42827
42828 # Check whether --with-xxinstall or --without-xxinstall was given.
42829 if test "${with_xxinstall+set}" = set; then
42830   withval="$with_xxinstall"
42831
42832 fi;
42833
42834
42835                                                                                                                                                                                                                                                                                                                                                                                                                 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"
42836
42837
42838           ac_config_commands="$ac_config_commands default"
42839
42840
42841
42842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42843 # Let make expand exec_prefix.
42844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42845
42846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42848 # trailing colons and then remove the whole line if VPATH becomes empty
42849 # (actually we leave an empty line to preserve line numbers).
42850 if test "x$srcdir" = x.; then
42851   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42852 s/:*\$(srcdir):*/:/;
42853 s/:*\${srcdir}:*/:/;
42854 s/:*@srcdir@:*/:/;
42855 s/^\([^=]*=[     ]*\):*/\1/;
42856 s/:*$//;
42857 s/^[^=]*=[       ]*$//;
42858 }'
42859 fi
42860
42861 DEFS=-DHAVE_CONFIG_H
42862
42863 ac_libobjs=
42864 ac_ltlibobjs=
42865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42866   # 1. Remove the extension, and $U if already installed.
42867   ac_i=`echo "$ac_i" |
42868          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42869   # 2. Add them.
42870   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42871   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42872 done
42873 LIBOBJS=$ac_libobjs
42874
42875 LTLIBOBJS=$ac_ltlibobjs
42876
42877
42878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42879   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42880 Usually this means the macro was only invoked conditionally." >&5
42881 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42882 Usually this means the macro was only invoked conditionally." >&2;}
42883    { (exit 1); exit 1; }; }
42884 fi
42885 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42886   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42887 Usually this means the macro was only invoked conditionally." >&5
42888 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42889 Usually this means the macro was only invoked conditionally." >&2;}
42890    { (exit 1); exit 1; }; }
42891 fi
42892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42893   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42894 Usually this means the macro was only invoked conditionally." >&5
42895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42896 Usually this means the macro was only invoked conditionally." >&2;}
42897    { (exit 1); exit 1; }; }
42898 fi
42899
42900 : ${CONFIG_STATUS=./config.status}
42901 ac_clean_files_save=$ac_clean_files
42902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42903 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42904 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42905 cat >$CONFIG_STATUS <<_ACEOF
42906 #! $SHELL
42907 # Generated by $as_me.
42908 # Run this file to recreate the current configuration.
42909 # Compiler output produced by configure, useful for debugging
42910 # configure, is in config.log if it exists.
42911
42912 debug=false
42913 ac_cs_recheck=false
42914 ac_cs_silent=false
42915 SHELL=\${CONFIG_SHELL-$SHELL}
42916 _ACEOF
42917
42918 cat >>$CONFIG_STATUS <<\_ACEOF
42919 ## --------------------- ##
42920 ## M4sh Initialization.  ##
42921 ## --------------------- ##
42922
42923 # Be Bourne compatible
42924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42925   emulate sh
42926   NULLCMD=:
42927   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42928   # is contrary to our usage.  Disable this feature.
42929   alias -g '${1+"$@"}'='"$@"'
42930 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42931   set -o posix
42932 fi
42933 DUALCASE=1; export DUALCASE # for MKS sh
42934
42935 # Support unset when possible.
42936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42937   as_unset=unset
42938 else
42939   as_unset=false
42940 fi
42941
42942
42943 # Work around bugs in pre-3.0 UWIN ksh.
42944 $as_unset ENV MAIL MAILPATH
42945 PS1='$ '
42946 PS2='> '
42947 PS4='+ '
42948
42949 # NLS nuisances.
42950 for as_var in \
42951   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42952   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42953   LC_TELEPHONE LC_TIME
42954 do
42955   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42956     eval $as_var=C; export $as_var
42957   else
42958     $as_unset $as_var
42959   fi
42960 done
42961
42962 # Required to use basename.
42963 if expr a : '\(a\)' >/dev/null 2>&1; then
42964   as_expr=expr
42965 else
42966   as_expr=false
42967 fi
42968
42969 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42970   as_basename=basename
42971 else
42972   as_basename=false
42973 fi
42974
42975
42976 # Name of the executable.
42977 as_me=`$as_basename "$0" ||
42978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42979          X"$0" : 'X\(//\)$' \| \
42980          X"$0" : 'X\(/\)$' \| \
42981          .     : '\(.\)' 2>/dev/null ||
42982 echo X/"$0" |
42983     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42984           /^X\/\(\/\/\)$/{ s//\1/; q; }
42985           /^X\/\(\/\).*/{ s//\1/; q; }
42986           s/.*/./; q'`
42987
42988
42989 # PATH needs CR, and LINENO needs CR and PATH.
42990 # Avoid depending upon Character Ranges.
42991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42994 as_cr_digits='0123456789'
42995 as_cr_alnum=$as_cr_Letters$as_cr_digits
42996
42997 # The user is always right.
42998 if test "${PATH_SEPARATOR+set}" != set; then
42999   echo "#! /bin/sh" >conf$$.sh
43000   echo  "exit 0"   >>conf$$.sh
43001   chmod +x conf$$.sh
43002   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43003     PATH_SEPARATOR=';'
43004   else
43005     PATH_SEPARATOR=:
43006   fi
43007   rm -f conf$$.sh
43008 fi
43009
43010
43011   as_lineno_1=$LINENO
43012   as_lineno_2=$LINENO
43013   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43014   test "x$as_lineno_1" != "x$as_lineno_2" &&
43015   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
43016   # Find who we are.  Look in the path if we contain no path at all
43017   # relative or not.
43018   case $0 in
43019     *[\\/]* ) as_myself=$0 ;;
43020     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43021 for as_dir in $PATH
43022 do
43023   IFS=$as_save_IFS
43024   test -z "$as_dir" && as_dir=.
43025   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43026 done
43027
43028        ;;
43029   esac
43030   # We did not find ourselves, most probably we were run as `sh COMMAND'
43031   # in which case we are not to be found in the path.
43032   if test "x$as_myself" = x; then
43033     as_myself=$0
43034   fi
43035   if test ! -f "$as_myself"; then
43036     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43037 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43038    { (exit 1); exit 1; }; }
43039   fi
43040   case $CONFIG_SHELL in
43041   '')
43042     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43043 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43044 do
43045   IFS=$as_save_IFS
43046   test -z "$as_dir" && as_dir=.
43047   for as_base in sh bash ksh sh5; do
43048          case $as_dir in
43049          /*)
43050            if ("$as_dir/$as_base" -c '
43051   as_lineno_1=$LINENO
43052   as_lineno_2=$LINENO
43053   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43054   test "x$as_lineno_1" != "x$as_lineno_2" &&
43055   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
43056              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43057              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43058              CONFIG_SHELL=$as_dir/$as_base
43059              export CONFIG_SHELL
43060              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43061            fi;;
43062          esac
43063        done
43064 done
43065 ;;
43066   esac
43067
43068   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43069   # uniformly replaced by the line number.  The first 'sed' inserts a
43070   # line-number line before each line; the second 'sed' does the real
43071   # work.  The second script uses 'N' to pair each line-number line
43072   # with the numbered line, and appends trailing '-' during
43073   # substitution so that $LINENO is not a special case at line end.
43074   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43075   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
43076   sed '=' <$as_myself |
43077     sed '
43078       N
43079       s,$,-,
43080       : loop
43081       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43082       t loop
43083       s,-$,,
43084       s,^['$as_cr_digits']*\n,,
43085     ' >$as_me.lineno &&
43086   chmod +x $as_me.lineno ||
43087     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43088 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43089    { (exit 1); exit 1; }; }
43090
43091   # Don't try to exec as it changes $[0], causing all sort of problems
43092   # (the dirname of $[0] is not the place where we might find the
43093   # original and so on.  Autoconf is especially sensible to this).
43094   . ./$as_me.lineno
43095   # Exit status is that of the last command.
43096   exit
43097 }
43098
43099
43100 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43101   *c*,-n*) ECHO_N= ECHO_C='
43102 ' ECHO_T='      ' ;;
43103   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43104   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
43105 esac
43106
43107 if expr a : '\(a\)' >/dev/null 2>&1; then
43108   as_expr=expr
43109 else
43110   as_expr=false
43111 fi
43112
43113 rm -f conf$$ conf$$.exe conf$$.file
43114 echo >conf$$.file
43115 if ln -s conf$$.file conf$$ 2>/dev/null; then
43116   # We could just check for DJGPP; but this test a) works b) is more generic
43117   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43118   if test -f conf$$.exe; then
43119     # Don't use ln at all; we don't have any links
43120     as_ln_s='cp -p'
43121   else
43122     as_ln_s='ln -s'
43123   fi
43124 elif ln conf$$.file conf$$ 2>/dev/null; then
43125   as_ln_s=ln
43126 else
43127   as_ln_s='cp -p'
43128 fi
43129 rm -f conf$$ conf$$.exe conf$$.file
43130
43131 if mkdir -p . 2>/dev/null; then
43132   as_mkdir_p=:
43133 else
43134   test -d ./-p && rmdir ./-p
43135   as_mkdir_p=false
43136 fi
43137
43138 as_executable_p="test -f"
43139
43140 # Sed expression to map a string onto a valid CPP name.
43141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43142
43143 # Sed expression to map a string onto a valid variable name.
43144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43145
43146
43147 # IFS
43148 # We need space, tab and new line, in precisely that order.
43149 as_nl='
43150 '
43151 IFS="   $as_nl"
43152
43153 # CDPATH.
43154 $as_unset CDPATH
43155
43156 exec 6>&1
43157
43158 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43159 # report actual input values of CONFIG_FILES etc. instead of their
43160 # values after options handling.  Logging --version etc. is OK.
43161 exec 5>>config.log
43162 {
43163   echo
43164   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43165 ## Running $as_me. ##
43166 _ASBOX
43167 } >&5
43168 cat >&5 <<_CSEOF
43169
43170 This file was extended by $as_me, which was
43171 generated by GNU Autoconf 2.59.  Invocation command line was
43172
43173   CONFIG_FILES    = $CONFIG_FILES
43174   CONFIG_HEADERS  = $CONFIG_HEADERS
43175   CONFIG_LINKS    = $CONFIG_LINKS
43176   CONFIG_COMMANDS = $CONFIG_COMMANDS
43177   $ $0 $@
43178
43179 _CSEOF
43180 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43181 echo >&5
43182 _ACEOF
43183
43184 # Files that config.status was made for.
43185 if test -n "$ac_config_files"; then
43186   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43187 fi
43188
43189 if test -n "$ac_config_headers"; then
43190   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43191 fi
43192
43193 if test -n "$ac_config_links"; then
43194   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43195 fi
43196
43197 if test -n "$ac_config_commands"; then
43198   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43199 fi
43200
43201 cat >>$CONFIG_STATUS <<\_ACEOF
43202
43203 ac_cs_usage="\
43204 \`$as_me' instantiates files from templates according to the
43205 current configuration.
43206
43207 Usage: $0 [OPTIONS] [FILE]...
43208
43209   -h, --help       print this help, then exit
43210   -V, --version    print version number, then exit
43211   -q, --quiet      do not print progress messages
43212   -d, --debug      don't remove temporary files
43213       --recheck    update $as_me by reconfiguring in the same conditions
43214   --file=FILE[:TEMPLATE]
43215                    instantiate the configuration file FILE
43216   --header=FILE[:TEMPLATE]
43217                    instantiate the configuration header FILE
43218
43219 Configuration files:
43220 $config_files
43221
43222 Configuration headers:
43223 $config_headers
43224
43225 Configuration commands:
43226 $config_commands
43227
43228 Report bugs to <bug-autoconf@gnu.org>."
43229 _ACEOF
43230
43231 cat >>$CONFIG_STATUS <<_ACEOF
43232 ac_cs_version="\\
43233 config.status
43234 configured by $0, generated by GNU Autoconf 2.59,
43235   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43236
43237 Copyright (C) 2003 Free Software Foundation, Inc.
43238 This config.status script is free software; the Free Software Foundation
43239 gives unlimited permission to copy, distribute and modify it."
43240 srcdir=$srcdir
43241 INSTALL="$INSTALL"
43242 _ACEOF
43243
43244 cat >>$CONFIG_STATUS <<\_ACEOF
43245 # If no file are specified by the user, then we need to provide default
43246 # value.  By we need to know if files were specified by the user.
43247 ac_need_defaults=:
43248 while test $# != 0
43249 do
43250   case $1 in
43251   --*=*)
43252     ac_option=`expr "x$1" : 'x\([^=]*\)='`
43253     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43254     ac_shift=:
43255     ;;
43256   -*)
43257     ac_option=$1
43258     ac_optarg=$2
43259     ac_shift=shift
43260     ;;
43261   *) # This is not an option, so the user has probably given explicit
43262      # arguments.
43263      ac_option=$1
43264      ac_need_defaults=false;;
43265   esac
43266
43267   case $ac_option in
43268   # Handling of the options.
43269 _ACEOF
43270 cat >>$CONFIG_STATUS <<\_ACEOF
43271   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43272     ac_cs_recheck=: ;;
43273   --version | --vers* | -V )
43274     echo "$ac_cs_version"; exit 0 ;;
43275   --he | --h)
43276     # Conflict between --help and --header
43277     { { echo "$as_me:$LINENO: error: ambiguous option: $1
43278 Try \`$0 --help' for more information." >&5
43279 echo "$as_me: error: ambiguous option: $1
43280 Try \`$0 --help' for more information." >&2;}
43281    { (exit 1); exit 1; }; };;
43282   --help | --hel | -h )
43283     echo "$ac_cs_usage"; exit 0 ;;
43284   --debug | --d* | -d )
43285     debug=: ;;
43286   --file | --fil | --fi | --f )
43287     $ac_shift
43288     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43289     ac_need_defaults=false;;
43290   --header | --heade | --head | --hea )
43291     $ac_shift
43292     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43293     ac_need_defaults=false;;
43294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43295   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43296     ac_cs_silent=: ;;
43297
43298   # This is an error.
43299   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43300 Try \`$0 --help' for more information." >&5
43301 echo "$as_me: error: unrecognized option: $1
43302 Try \`$0 --help' for more information." >&2;}
43303    { (exit 1); exit 1; }; } ;;
43304
43305   *) ac_config_targets="$ac_config_targets $1" ;;
43306
43307   esac
43308   shift
43309 done
43310
43311 ac_configure_extra_args=
43312
43313 if $ac_cs_silent; then
43314   exec 6>/dev/null
43315   ac_configure_extra_args="$ac_configure_extra_args --silent"
43316 fi
43317
43318 _ACEOF
43319 cat >>$CONFIG_STATUS <<_ACEOF
43320 if \$ac_cs_recheck; then
43321   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43322   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43323 fi
43324
43325 _ACEOF
43326
43327 cat >>$CONFIG_STATUS <<_ACEOF
43328 #
43329 # INIT-COMMANDS section.
43330 #
43331
43332 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43333 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43334
43335 _ACEOF
43336
43337
43338
43339 cat >>$CONFIG_STATUS <<\_ACEOF
43340 for ac_config_target in $ac_config_targets
43341 do
43342   case "$ac_config_target" in
43343   # Handling of arguments.
43344   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43345   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43346   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43347   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43348   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43349   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43350   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43351   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43352   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43353   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43354   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43355   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43356   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43357   "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" ;;
43358   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43359   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43360   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43361   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43362   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43363   "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" ;;
43364   "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" ;;
43365   "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" ;;
43366   "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" ;;
43367   "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" ;;
43368   "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" ;;
43369   "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" ;;
43370   "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" ;;
43371   "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" ;;
43372   "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" ;;
43373   "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" ;;
43374   "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" ;;
43375   "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" ;;
43376   "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" ;;
43377   "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" ;;
43378   "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" ;;
43379   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43380   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43381   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43382   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43383   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43384   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43385   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43386   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43387   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43388   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43389   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43390 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43391    { (exit 1); exit 1; }; };;
43392   esac
43393 done
43394
43395 # If the user did not use the arguments to specify the items to instantiate,
43396 # then the envvar interface is used.  Set only those that are not.
43397 # We use the long form for the default assignment because of an extremely
43398 # bizarre bug on SunOS 4.1.3.
43399 if $ac_need_defaults; then
43400   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43401   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43402   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43403 fi
43404
43405 # Have a temporary directory for convenience.  Make it in the build tree
43406 # simply because there is no reason to put it here, and in addition,
43407 # creating and moving files from /tmp can sometimes cause problems.
43408 # Create a temporary directory, and hook for its removal unless debugging.
43409 $debug ||
43410 {
43411   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43412   trap '{ (exit 1); exit 1; }' 1 2 13 15
43413 }
43414
43415 # Create a (secure) tmp directory for tmp files.
43416
43417 {
43418   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43419   test -n "$tmp" && test -d "$tmp"
43420 }  ||
43421 {
43422   tmp=./confstat$$-$RANDOM
43423   (umask 077 && mkdir $tmp)
43424 } ||
43425 {
43426    echo "$me: cannot create a temporary directory in ." >&2
43427    { (exit 1); exit 1; }
43428 }
43429
43430 _ACEOF
43431
43432 cat >>$CONFIG_STATUS <<_ACEOF
43433
43434 #
43435 # CONFIG_FILES section.
43436 #
43437
43438 # No need to generate the scripts if there are no CONFIG_FILES.
43439 # This happens for instance when ./config.status config.h
43440 if test -n "\$CONFIG_FILES"; then
43441   # Protect against being on the right side of a sed subst in config.status.
43442   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43443    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43444 s,@SHELL@,$SHELL,;t t
43445 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43446 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43447 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43448 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43449 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43450 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43451 s,@exec_prefix@,$exec_prefix,;t t
43452 s,@prefix@,$prefix,;t t
43453 s,@program_transform_name@,$program_transform_name,;t t
43454 s,@bindir@,$bindir,;t t
43455 s,@sbindir@,$sbindir,;t t
43456 s,@libexecdir@,$libexecdir,;t t
43457 s,@datadir@,$datadir,;t t
43458 s,@sysconfdir@,$sysconfdir,;t t
43459 s,@sharedstatedir@,$sharedstatedir,;t t
43460 s,@localstatedir@,$localstatedir,;t t
43461 s,@libdir@,$libdir,;t t
43462 s,@includedir@,$includedir,;t t
43463 s,@oldincludedir@,$oldincludedir,;t t
43464 s,@infodir@,$infodir,;t t
43465 s,@mandir@,$mandir,;t t
43466 s,@build_alias@,$build_alias,;t t
43467 s,@host_alias@,$host_alias,;t t
43468 s,@target_alias@,$target_alias,;t t
43469 s,@DEFS@,$DEFS,;t t
43470 s,@ECHO_C@,$ECHO_C,;t t
43471 s,@ECHO_N@,$ECHO_N,;t t
43472 s,@ECHO_T@,$ECHO_T,;t t
43473 s,@LIBS@,$LIBS,;t t
43474 s,@build@,$build,;t t
43475 s,@build_cpu@,$build_cpu,;t t
43476 s,@build_vendor@,$build_vendor,;t t
43477 s,@build_os@,$build_os,;t t
43478 s,@host@,$host,;t t
43479 s,@host_cpu@,$host_cpu,;t t
43480 s,@host_vendor@,$host_vendor,;t t
43481 s,@host_os@,$host_os,;t t
43482 s,@target@,$target,;t t
43483 s,@target_cpu@,$target_cpu,;t t
43484 s,@target_vendor@,$target_vendor,;t t
43485 s,@target_os@,$target_os,;t t
43486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43489 s,@CYGPATH_W@,$CYGPATH_W,;t t
43490 s,@PACKAGE@,$PACKAGE,;t t
43491 s,@VERSION@,$VERSION,;t t
43492 s,@ACLOCAL@,$ACLOCAL,;t t
43493 s,@AUTOCONF@,$AUTOCONF,;t t
43494 s,@AUTOMAKE@,$AUTOMAKE,;t t
43495 s,@AUTOHEADER@,$AUTOHEADER,;t t
43496 s,@MAKEINFO@,$MAKEINFO,;t t
43497 s,@install_sh@,$install_sh,;t t
43498 s,@STRIP@,$STRIP,;t t
43499 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43500 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43501 s,@mkdir_p@,$mkdir_p,;t t
43502 s,@AWK@,$AWK,;t t
43503 s,@SET_MAKE@,$SET_MAKE,;t t
43504 s,@am__leading_dot@,$am__leading_dot,;t t
43505 s,@AMTAR@,$AMTAR,;t t
43506 s,@am__tar@,$am__tar,;t t
43507 s,@am__untar@,$am__untar,;t t
43508 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43509 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43510 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43511 s,@top_builddir@,$top_builddir,;t t
43512 s,@ldap_subdir@,$ldap_subdir,;t t
43513 s,@CC@,$CC,;t t
43514 s,@AR@,$AR,;t t
43515 s,@CFLAGS@,$CFLAGS,;t t
43516 s,@LDFLAGS@,$LDFLAGS,;t t
43517 s,@CPPFLAGS@,$CPPFLAGS,;t t
43518 s,@ac_ct_CC@,$ac_ct_CC,;t t
43519 s,@EXEEXT@,$EXEEXT,;t t
43520 s,@OBJEXT@,$OBJEXT,;t t
43521 s,@DEPDIR@,$DEPDIR,;t t
43522 s,@am__include@,$am__include,;t t
43523 s,@am__quote@,$am__quote,;t t
43524 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43525 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43526 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43527 s,@CCDEPMODE@,$CCDEPMODE,;t t
43528 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43529 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43530 s,@EGREP@,$EGREP,;t t
43531 s,@LN_S@,$LN_S,;t t
43532 s,@ECHO@,$ECHO,;t t
43533 s,@ac_ct_AR@,$ac_ct_AR,;t t
43534 s,@RANLIB@,$RANLIB,;t t
43535 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43536 s,@DLLTOOL@,$DLLTOOL,;t t
43537 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43538 s,@AS@,$AS,;t t
43539 s,@ac_ct_AS@,$ac_ct_AS,;t t
43540 s,@OBJDUMP@,$OBJDUMP,;t t
43541 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43542 s,@CPP@,$CPP,;t t
43543 s,@LIBTOOL@,$LIBTOOL,;t t
43544 s,@PERLBIN@,$PERLBIN,;t t
43545 s,@OL_MKDEP@,$OL_MKDEP,;t t
43546 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43547 s,@LTSTATIC@,$LTSTATIC,;t t
43548 s,@LIBOBJS@,$LIBOBJS,;t t
43549 s,@LIBSRCS@,$LIBSRCS,;t t
43550 s,@PLAT@,$PLAT,;t t
43551 s,@WITH_SASL@,$WITH_SASL,;t t
43552 s,@WITH_TLS@,$WITH_TLS,;t t
43553 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43554 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43555 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43556 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43557 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43558 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43559 s,@BUILD_BDB@,$BUILD_BDB,;t t
43560 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43561 s,@BUILD_HDB@,$BUILD_HDB,;t t
43562 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43563 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43564 s,@BUILD_META@,$BUILD_META,;t t
43565 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43566 s,@BUILD_NULL@,$BUILD_NULL,;t t
43567 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43568 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43569 s,@BUILD_PERL@,$BUILD_PERL,;t t
43570 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43571 s,@BUILD_SQL@,$BUILD_SQL,;t t
43572 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43573 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43574 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43575 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43576 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
43577 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43578 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43579 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43580 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43581 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43582 s,@BUILD_RWM@,$BUILD_RWM,;t t
43583 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43584 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43585 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43586 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43587 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43588 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43589 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43590 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43591 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43592 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43593 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43594 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43595 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43596 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43597 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43598 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43599 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43600 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43601 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43602 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43603 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43604 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43605 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43606 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43607 s,@SASL_LIBS@,$SASL_LIBS,;t t
43608 s,@TLS_LIBS@,$TLS_LIBS,;t t
43609 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43610 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43611 s,@LIBSLAPI@,$LIBSLAPI,;t t
43612 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43613 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43614 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43615 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43616 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43617 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43618 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43619 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43620 CEOF
43621
43622 _ACEOF
43623
43624   cat >>$CONFIG_STATUS <<\_ACEOF
43625   # Split the substitutions into bite-sized pieces for seds with
43626   # small command number limits, like on Digital OSF/1 and HP-UX.
43627   ac_max_sed_lines=48
43628   ac_sed_frag=1 # Number of current file.
43629   ac_beg=1 # First line for current file.
43630   ac_end=$ac_max_sed_lines # Line after last line for current file.
43631   ac_more_lines=:
43632   ac_sed_cmds=
43633   while $ac_more_lines; do
43634     if test $ac_beg -gt 1; then
43635       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43636     else
43637       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43638     fi
43639     if test ! -s $tmp/subs.frag; then
43640       ac_more_lines=false
43641     else
43642       # The purpose of the label and of the branching condition is to
43643       # speed up the sed processing (if there are no `@' at all, there
43644       # is no need to browse any of the substitutions).
43645       # These are the two extra sed commands mentioned above.
43646       (echo ':t
43647   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43648       if test -z "$ac_sed_cmds"; then
43649         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43650       else
43651         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43652       fi
43653       ac_sed_frag=`expr $ac_sed_frag + 1`
43654       ac_beg=$ac_end
43655       ac_end=`expr $ac_end + $ac_max_sed_lines`
43656     fi
43657   done
43658   if test -z "$ac_sed_cmds"; then
43659     ac_sed_cmds=cat
43660   fi
43661 fi # test -n "$CONFIG_FILES"
43662
43663 _ACEOF
43664 cat >>$CONFIG_STATUS <<\_ACEOF
43665 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43666   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43667   case $ac_file in
43668   - | *:- | *:-:* ) # input from stdin
43669         cat >$tmp/stdin
43670         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43671         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43672   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43673         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43674   * )   ac_file_in=$ac_file.in ;;
43675   esac
43676
43677   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43678   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43680          X"$ac_file" : 'X\(//\)[^/]' \| \
43681          X"$ac_file" : 'X\(//\)$' \| \
43682          X"$ac_file" : 'X\(/\)' \| \
43683          .     : '\(.\)' 2>/dev/null ||
43684 echo X"$ac_file" |
43685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43687           /^X\(\/\/\)$/{ s//\1/; q; }
43688           /^X\(\/\).*/{ s//\1/; q; }
43689           s/.*/./; q'`
43690   { if $as_mkdir_p; then
43691     mkdir -p "$ac_dir"
43692   else
43693     as_dir="$ac_dir"
43694     as_dirs=
43695     while test ! -d "$as_dir"; do
43696       as_dirs="$as_dir $as_dirs"
43697       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43698 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43699          X"$as_dir" : 'X\(//\)[^/]' \| \
43700          X"$as_dir" : 'X\(//\)$' \| \
43701          X"$as_dir" : 'X\(/\)' \| \
43702          .     : '\(.\)' 2>/dev/null ||
43703 echo X"$as_dir" |
43704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43705           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43706           /^X\(\/\/\)$/{ s//\1/; q; }
43707           /^X\(\/\).*/{ s//\1/; q; }
43708           s/.*/./; q'`
43709     done
43710     test ! -n "$as_dirs" || mkdir $as_dirs
43711   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43712 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43713    { (exit 1); exit 1; }; }; }
43714
43715   ac_builddir=.
43716
43717 if test "$ac_dir" != .; then
43718   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43719   # A "../" for each directory in $ac_dir_suffix.
43720   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43721 else
43722   ac_dir_suffix= ac_top_builddir=
43723 fi
43724
43725 case $srcdir in
43726   .)  # No --srcdir option.  We are building in place.
43727     ac_srcdir=.
43728     if test -z "$ac_top_builddir"; then
43729        ac_top_srcdir=.
43730     else
43731        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43732     fi ;;
43733   [\\/]* | ?:[\\/]* )  # Absolute path.
43734     ac_srcdir=$srcdir$ac_dir_suffix;
43735     ac_top_srcdir=$srcdir ;;
43736   *) # Relative path.
43737     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43738     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43739 esac
43740
43741 # Do not use `cd foo && pwd` to compute absolute paths, because
43742 # the directories may not exist.
43743 case `pwd` in
43744 .) ac_abs_builddir="$ac_dir";;
43745 *)
43746   case "$ac_dir" in
43747   .) ac_abs_builddir=`pwd`;;
43748   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43749   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43750   esac;;
43751 esac
43752 case $ac_abs_builddir in
43753 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43754 *)
43755   case ${ac_top_builddir}. in
43756   .) ac_abs_top_builddir=$ac_abs_builddir;;
43757   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43758   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43759   esac;;
43760 esac
43761 case $ac_abs_builddir in
43762 .) ac_abs_srcdir=$ac_srcdir;;
43763 *)
43764   case $ac_srcdir in
43765   .) ac_abs_srcdir=$ac_abs_builddir;;
43766   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43767   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43768   esac;;
43769 esac
43770 case $ac_abs_builddir in
43771 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43772 *)
43773   case $ac_top_srcdir in
43774   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43775   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43776   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43777   esac;;
43778 esac
43779
43780
43781   case $INSTALL in
43782   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43783   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43784   esac
43785
43786   if test x"$ac_file" != x-; then
43787     { echo "$as_me:$LINENO: creating $ac_file" >&5
43788 echo "$as_me: creating $ac_file" >&6;}
43789     rm -f "$ac_file"
43790   fi
43791   # Let's still pretend it is `configure' which instantiates (i.e., don't
43792   # use $as_me), people would be surprised to read:
43793   #    /* config.h.  Generated by config.status.  */
43794   if test x"$ac_file" = x-; then
43795     configure_input=
43796   else
43797     configure_input="$ac_file.  "
43798   fi
43799   configure_input=$configure_input"Generated from `echo $ac_file_in |
43800                                      sed 's,.*/,,'` by configure."
43801
43802   # First look for the input files in the build tree, otherwise in the
43803   # src tree.
43804   ac_file_inputs=`IFS=:
43805     for f in $ac_file_in; do
43806       case $f in
43807       -) echo $tmp/stdin ;;
43808       [\\/$]*)
43809          # Absolute (can't be DOS-style, as IFS=:)
43810          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43811 echo "$as_me: error: cannot find input file: $f" >&2;}
43812    { (exit 1); exit 1; }; }
43813          echo "$f";;
43814       *) # Relative
43815          if test -f "$f"; then
43816            # Build tree
43817            echo "$f"
43818          elif test -f "$srcdir/$f"; then
43819            # Source tree
43820            echo "$srcdir/$f"
43821          else
43822            # /dev/null tree
43823            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43824 echo "$as_me: error: cannot find input file: $f" >&2;}
43825    { (exit 1); exit 1; }; }
43826          fi;;
43827       esac
43828     done` || { (exit 1); exit 1; }
43829 _ACEOF
43830 cat >>$CONFIG_STATUS <<_ACEOF
43831   sed "$ac_vpsub
43832 $extrasub
43833 _ACEOF
43834 cat >>$CONFIG_STATUS <<\_ACEOF
43835 :t
43836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43837 s,@configure_input@,$configure_input,;t t
43838 s,@srcdir@,$ac_srcdir,;t t
43839 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43840 s,@top_srcdir@,$ac_top_srcdir,;t t
43841 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43842 s,@builddir@,$ac_builddir,;t t
43843 s,@abs_builddir@,$ac_abs_builddir,;t t
43844 s,@top_builddir@,$ac_top_builddir,;t t
43845 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43846 s,@INSTALL@,$ac_INSTALL,;t t
43847 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43848   rm -f $tmp/stdin
43849   if test x"$ac_file" != x-; then
43850     mv $tmp/out $ac_file
43851   else
43852     cat $tmp/out
43853     rm -f $tmp/out
43854   fi
43855
43856 done
43857 _ACEOF
43858 cat >>$CONFIG_STATUS <<\_ACEOF
43859
43860 #
43861 # CONFIG_HEADER section.
43862 #
43863
43864 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43865 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43866 #
43867 # ac_d sets the value in "#define NAME VALUE" lines.
43868 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43869 ac_dB='[         ].*$,\1#\2'
43870 ac_dC=' '
43871 ac_dD=',;t'
43872 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43873 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43874 ac_uB='$,\1#\2define\3'
43875 ac_uC=' '
43876 ac_uD=',;t'
43877
43878 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43879   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43880   case $ac_file in
43881   - | *:- | *:-:* ) # input from stdin
43882         cat >$tmp/stdin
43883         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43884         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43885   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43886         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43887   * )   ac_file_in=$ac_file.in ;;
43888   esac
43889
43890   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43891 echo "$as_me: creating $ac_file" >&6;}
43892
43893   # First look for the input files in the build tree, otherwise in the
43894   # src tree.
43895   ac_file_inputs=`IFS=:
43896     for f in $ac_file_in; do
43897       case $f in
43898       -) echo $tmp/stdin ;;
43899       [\\/$]*)
43900          # Absolute (can't be DOS-style, as IFS=:)
43901          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43902 echo "$as_me: error: cannot find input file: $f" >&2;}
43903    { (exit 1); exit 1; }; }
43904          # Do quote $f, to prevent DOS paths from being IFS'd.
43905          echo "$f";;
43906       *) # Relative
43907          if test -f "$f"; then
43908            # Build tree
43909            echo "$f"
43910          elif test -f "$srcdir/$f"; then
43911            # Source tree
43912            echo "$srcdir/$f"
43913          else
43914            # /dev/null tree
43915            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43916 echo "$as_me: error: cannot find input file: $f" >&2;}
43917    { (exit 1); exit 1; }; }
43918          fi;;
43919       esac
43920     done` || { (exit 1); exit 1; }
43921   # Remove the trailing spaces.
43922   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43923
43924 _ACEOF
43925
43926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43927 # `conftest.undefs', that substitutes the proper values into
43928 # config.h.in to produce config.h.  The first handles `#define'
43929 # templates, and the second `#undef' templates.
43930 # And first: Protect against being on the right side of a sed subst in
43931 # config.status.  Protect against being in an unquoted here document
43932 # in config.status.
43933 rm -f conftest.defines conftest.undefs
43934 # Using a here document instead of a string reduces the quoting nightmare.
43935 # Putting comments in sed scripts is not portable.
43936 #
43937 # `end' is used to avoid that the second main sed command (meant for
43938 # 0-ary CPP macros) applies to n-ary macro definitions.
43939 # See the Autoconf documentation for `clear'.
43940 cat >confdef2sed.sed <<\_ACEOF
43941 s/[\\&,]/\\&/g
43942 s,[\\$`],\\&,g
43943 t clear
43944 : clear
43945 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43946 t end
43947 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43948 : end
43949 _ACEOF
43950 # If some macros were called several times there might be several times
43951 # the same #defines, which is useless.  Nevertheless, we may not want to
43952 # sort them, since we want the *last* AC-DEFINE to be honored.
43953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43955 rm -f confdef2sed.sed
43956
43957 # This sed command replaces #undef with comments.  This is necessary, for
43958 # example, in the case of _POSIX_SOURCE, which is predefined and required
43959 # on some systems where configure will not decide to define it.
43960 cat >>conftest.undefs <<\_ACEOF
43961 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43962 _ACEOF
43963
43964 # Break up conftest.defines because some shells have a limit on the size
43965 # of here documents, and old seds have small limits too (100 cmds).
43966 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43967 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43968 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43969 echo '  :' >>$CONFIG_STATUS
43970 rm -f conftest.tail
43971 while grep . conftest.defines >/dev/null
43972 do
43973   # Write a limited-size here document to $tmp/defines.sed.
43974   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43975   # Speed up: don't consider the non `#define' lines.
43976   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43977   # Work around the forget-to-reset-the-flag bug.
43978   echo 't clr' >>$CONFIG_STATUS
43979   echo ': clr' >>$CONFIG_STATUS
43980   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43981   echo 'CEOF
43982   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43983   rm -f $tmp/in
43984   mv $tmp/out $tmp/in
43985 ' >>$CONFIG_STATUS
43986   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43987   rm -f conftest.defines
43988   mv conftest.tail conftest.defines
43989 done
43990 rm -f conftest.defines
43991 echo '  fi # grep' >>$CONFIG_STATUS
43992 echo >>$CONFIG_STATUS
43993
43994 # Break up conftest.undefs because some shells have a limit on the size
43995 # of here documents, and old seds have small limits too (100 cmds).
43996 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43997 rm -f conftest.tail
43998 while grep . conftest.undefs >/dev/null
43999 do
44000   # Write a limited-size here document to $tmp/undefs.sed.
44001   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44002   # Speed up: don't consider the non `#undef'
44003   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
44004   # Work around the forget-to-reset-the-flag bug.
44005   echo 't clr' >>$CONFIG_STATUS
44006   echo ': clr' >>$CONFIG_STATUS
44007   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44008   echo 'CEOF
44009   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44010   rm -f $tmp/in
44011   mv $tmp/out $tmp/in
44012 ' >>$CONFIG_STATUS
44013   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44014   rm -f conftest.undefs
44015   mv conftest.tail conftest.undefs
44016 done
44017 rm -f conftest.undefs
44018
44019 cat >>$CONFIG_STATUS <<\_ACEOF
44020   # Let's still pretend it is `configure' which instantiates (i.e., don't
44021   # use $as_me), people would be surprised to read:
44022   #    /* config.h.  Generated by config.status.  */
44023   if test x"$ac_file" = x-; then
44024     echo "/* Generated by configure.  */" >$tmp/config.h
44025   else
44026     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
44027   fi
44028   cat $tmp/in >>$tmp/config.h
44029   rm -f $tmp/in
44030   if test x"$ac_file" != x-; then
44031     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44032       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44033 echo "$as_me: $ac_file is unchanged" >&6;}
44034     else
44035       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44037          X"$ac_file" : 'X\(//\)[^/]' \| \
44038          X"$ac_file" : 'X\(//\)$' \| \
44039          X"$ac_file" : 'X\(/\)' \| \
44040          .     : '\(.\)' 2>/dev/null ||
44041 echo X"$ac_file" |
44042     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44043           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44044           /^X\(\/\/\)$/{ s//\1/; q; }
44045           /^X\(\/\).*/{ s//\1/; q; }
44046           s/.*/./; q'`
44047       { if $as_mkdir_p; then
44048     mkdir -p "$ac_dir"
44049   else
44050     as_dir="$ac_dir"
44051     as_dirs=
44052     while test ! -d "$as_dir"; do
44053       as_dirs="$as_dir $as_dirs"
44054       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44056          X"$as_dir" : 'X\(//\)[^/]' \| \
44057          X"$as_dir" : 'X\(//\)$' \| \
44058          X"$as_dir" : 'X\(/\)' \| \
44059          .     : '\(.\)' 2>/dev/null ||
44060 echo X"$as_dir" |
44061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44062           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44063           /^X\(\/\/\)$/{ s//\1/; q; }
44064           /^X\(\/\).*/{ s//\1/; q; }
44065           s/.*/./; q'`
44066     done
44067     test ! -n "$as_dirs" || mkdir $as_dirs
44068   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44070    { (exit 1); exit 1; }; }; }
44071
44072       rm -f $ac_file
44073       mv $tmp/config.h $ac_file
44074     fi
44075   else
44076     cat $tmp/config.h
44077     rm -f $tmp/config.h
44078   fi
44079 # Compute $ac_file's index in $config_headers.
44080 _am_stamp_count=1
44081 for _am_header in $config_headers :; do
44082   case $_am_header in
44083     $ac_file | $ac_file:* )
44084       break ;;
44085     * )
44086       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44087   esac
44088 done
44089 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44090 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44091          X$ac_file : 'X\(//\)[^/]' \| \
44092          X$ac_file : 'X\(//\)$' \| \
44093          X$ac_file : 'X\(/\)' \| \
44094          .     : '\(.\)' 2>/dev/null ||
44095 echo X$ac_file |
44096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44097           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44098           /^X\(\/\/\)$/{ s//\1/; q; }
44099           /^X\(\/\).*/{ s//\1/; q; }
44100           s/.*/./; q'`/stamp-h$_am_stamp_count
44101 done
44102 _ACEOF
44103 cat >>$CONFIG_STATUS <<\_ACEOF
44104
44105 #
44106 # CONFIG_COMMANDS section.
44107 #
44108 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44109   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44110   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44111   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44112 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44113          X"$ac_dest" : 'X\(//\)[^/]' \| \
44114          X"$ac_dest" : 'X\(//\)$' \| \
44115          X"$ac_dest" : 'X\(/\)' \| \
44116          .     : '\(.\)' 2>/dev/null ||
44117 echo X"$ac_dest" |
44118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44120           /^X\(\/\/\)$/{ s//\1/; q; }
44121           /^X\(\/\).*/{ s//\1/; q; }
44122           s/.*/./; q'`
44123   { if $as_mkdir_p; then
44124     mkdir -p "$ac_dir"
44125   else
44126     as_dir="$ac_dir"
44127     as_dirs=
44128     while test ! -d "$as_dir"; do
44129       as_dirs="$as_dir $as_dirs"
44130       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44132          X"$as_dir" : 'X\(//\)[^/]' \| \
44133          X"$as_dir" : 'X\(//\)$' \| \
44134          X"$as_dir" : 'X\(/\)' \| \
44135          .     : '\(.\)' 2>/dev/null ||
44136 echo X"$as_dir" |
44137     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44138           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44139           /^X\(\/\/\)$/{ s//\1/; q; }
44140           /^X\(\/\).*/{ s//\1/; q; }
44141           s/.*/./; q'`
44142     done
44143     test ! -n "$as_dirs" || mkdir $as_dirs
44144   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44145 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44146    { (exit 1); exit 1; }; }; }
44147
44148   ac_builddir=.
44149
44150 if test "$ac_dir" != .; then
44151   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44152   # A "../" for each directory in $ac_dir_suffix.
44153   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44154 else
44155   ac_dir_suffix= ac_top_builddir=
44156 fi
44157
44158 case $srcdir in
44159   .)  # No --srcdir option.  We are building in place.
44160     ac_srcdir=.
44161     if test -z "$ac_top_builddir"; then
44162        ac_top_srcdir=.
44163     else
44164        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44165     fi ;;
44166   [\\/]* | ?:[\\/]* )  # Absolute path.
44167     ac_srcdir=$srcdir$ac_dir_suffix;
44168     ac_top_srcdir=$srcdir ;;
44169   *) # Relative path.
44170     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44171     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44172 esac
44173
44174 # Do not use `cd foo && pwd` to compute absolute paths, because
44175 # the directories may not exist.
44176 case `pwd` in
44177 .) ac_abs_builddir="$ac_dir";;
44178 *)
44179   case "$ac_dir" in
44180   .) ac_abs_builddir=`pwd`;;
44181   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44182   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44183   esac;;
44184 esac
44185 case $ac_abs_builddir in
44186 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44187 *)
44188   case ${ac_top_builddir}. in
44189   .) ac_abs_top_builddir=$ac_abs_builddir;;
44190   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44191   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44192   esac;;
44193 esac
44194 case $ac_abs_builddir in
44195 .) ac_abs_srcdir=$ac_srcdir;;
44196 *)
44197   case $ac_srcdir in
44198   .) ac_abs_srcdir=$ac_abs_builddir;;
44199   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44200   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44201   esac;;
44202 esac
44203 case $ac_abs_builddir in
44204 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44205 *)
44206   case $ac_top_srcdir in
44207   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44208   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44209   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44210   esac;;
44211 esac
44212
44213
44214   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44215 echo "$as_me: executing $ac_dest commands" >&6;}
44216   case $ac_dest in
44217     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44218   # Strip MF so we end up with the name of the file.
44219   mf=`echo "$mf" | sed -e 's/:.*$//'`
44220   # Check whether this is an Automake generated Makefile or not.
44221   # We used to match only the files named `Makefile.in', but
44222   # some people rename them; so instead we look at the file content.
44223   # Grep'ing the first line is not enough: some people post-process
44224   # each Makefile.in and add a new line on top of each file to say so.
44225   # So let's grep whole file.
44226   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44227     dirpart=`(dirname "$mf") 2>/dev/null ||
44228 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44229          X"$mf" : 'X\(//\)[^/]' \| \
44230          X"$mf" : 'X\(//\)$' \| \
44231          X"$mf" : 'X\(/\)' \| \
44232          .     : '\(.\)' 2>/dev/null ||
44233 echo X"$mf" |
44234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44236           /^X\(\/\/\)$/{ s//\1/; q; }
44237           /^X\(\/\).*/{ s//\1/; q; }
44238           s/.*/./; q'`
44239   else
44240     continue
44241   fi
44242   # Extract the definition of DEPDIR, am__include, and am__quote
44243   # from the Makefile without running `make'.
44244   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44245   test -z "$DEPDIR" && continue
44246   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44247   test -z "am__include" && continue
44248   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44249   # When using ansi2knr, U may be empty or an underscore; expand it
44250   U=`sed -n 's/^U = //p' < "$mf"`
44251   # Find all dependency output files, they are included files with
44252   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44253   # simplest approach to changing $(DEPDIR) to its actual value in the
44254   # expansion.
44255   for file in `sed -n "
44256     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44257        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44258     # Make sure the directory exists.
44259     test -f "$dirpart/$file" && continue
44260     fdir=`(dirname "$file") 2>/dev/null ||
44261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44262          X"$file" : 'X\(//\)[^/]' \| \
44263          X"$file" : 'X\(//\)$' \| \
44264          X"$file" : 'X\(/\)' \| \
44265          .     : '\(.\)' 2>/dev/null ||
44266 echo X"$file" |
44267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44269           /^X\(\/\/\)$/{ s//\1/; q; }
44270           /^X\(\/\).*/{ s//\1/; q; }
44271           s/.*/./; q'`
44272     { if $as_mkdir_p; then
44273     mkdir -p $dirpart/$fdir
44274   else
44275     as_dir=$dirpart/$fdir
44276     as_dirs=
44277     while test ! -d "$as_dir"; do
44278       as_dirs="$as_dir $as_dirs"
44279       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44281          X"$as_dir" : 'X\(//\)[^/]' \| \
44282          X"$as_dir" : 'X\(//\)$' \| \
44283          X"$as_dir" : 'X\(/\)' \| \
44284          .     : '\(.\)' 2>/dev/null ||
44285 echo X"$as_dir" |
44286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44288           /^X\(\/\/\)$/{ s//\1/; q; }
44289           /^X\(\/\).*/{ s//\1/; q; }
44290           s/.*/./; q'`
44291     done
44292     test ! -n "$as_dirs" || mkdir $as_dirs
44293   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44295    { (exit 1); exit 1; }; }; }
44296
44297     # echo "creating $dirpart/$file"
44298     echo '# dummy' > "$dirpart/$file"
44299   done
44300 done
44301  ;;
44302     default )
44303 chmod +x tests/run
44304 date > stamp-h
44305 BACKENDSC="servers/slapd/backends.c"
44306 echo "Making $BACKENDSC"
44307 rm -f $BACKENDSC
44308 cat > $BACKENDSC << ENDX
44309 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44310  *
44311  * Copyright 1998-2005 The OpenLDAP Foundation.
44312  * All rights reserved.
44313  *
44314  * Redistribution and use in source and binary forms, with or without
44315  * modification, are permitted only as authorized by the OpenLDAP
44316  * Public License.
44317  *
44318  * A copy of this license is available in the file LICENSE in the
44319  * top-level directory of the distribution or, alternatively, at
44320  * <http://www.OpenLDAP.org/license.html>.
44321  */
44322 /* This file is automatically generated by configure; please do not edit. */
44323
44324 #include "portable.h"
44325 #include "slap.h"
44326
44327 ENDX
44328 if test "${STATIC_BACKENDS}"; then
44329         for b in config ${STATIC_BACKENDS}; do
44330                 bb=`echo "${b}" | sed -e 's/back-//'`
44331                 cat >> $BACKENDSC << ENDX
44332 extern BI_init ${bb}_back_initialize;
44333 ENDX
44334         done
44335
44336         cat >> $BACKENDSC << ENDX
44337
44338 BackendInfo slap_binfo[] = {
44339 ENDX
44340
44341         for b in config ${STATIC_BACKENDS}; do
44342                 bb=`echo "${b}" | sed -e 's/back-//'`
44343                 echo "    Add ${bb} ..."
44344                 cat >> $BACKENDSC << ENDX
44345         { "${bb}", ${bb}_back_initialize },
44346 ENDX
44347         done
44348
44349         cat >> $BACKENDSC << ENDX
44350         { NULL, NULL },
44351 };
44352
44353 /* end of generated file */
44354 ENDX
44355 fi
44356
44357 echo Please run \"make depend\" to build dependencies
44358  ;;
44359   esac
44360 done
44361 _ACEOF
44362
44363 cat >>$CONFIG_STATUS <<\_ACEOF
44364
44365 { (exit 0); exit 0; }
44366 _ACEOF
44367 chmod +x $CONFIG_STATUS
44368 ac_clean_files=$ac_clean_files_save
44369
44370
44371 # configure is writing to config.log, and then calls config.status.
44372 # config.status does its own redirection, appending to config.log.
44373 # Unfortunately, on DOS this fails, as config.log is still kept open
44374 # by configure, so config.status won't be able to write to it; its
44375 # output is simply discarded.  So we exec the FD to /dev/null,
44376 # effectively closing config.log, so it can be properly (re)opened and
44377 # appended to by config.status.  When coming back to configure, we
44378 # need to make the FD available again.
44379 if test "$no_create" != yes; then
44380   ac_cs_success=:
44381   ac_config_status_args=
44382   test "$silent" = yes &&
44383     ac_config_status_args="$ac_config_status_args --quiet"
44384   exec 5>/dev/null
44385   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44386   exec 5>>config.log
44387   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44388   # would make configure fail if this is the last instruction.
44389   $ac_cs_success || { (exit 1); exit 1; }
44390 fi
44391