]> git.sur5r.net Git - openldap/blob - configure
New module. ITS#3593
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.658 2007/07/02 13:15:31 hallvard Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT LDAP_LIBS SLAPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services 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-ppolicy      Password Policy overlay no|yes|mod [no]
1055     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1056     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1057     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1058     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1059     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 Library Generation & Linking Options
1066   --enable-static[=PKGS]
1067                           build static libraries [default=yes]
1068   --enable-shared[=PKGS]
1069                           build shared libraries [default=yes]
1070   --enable-fast-install[=PKGS]
1071                           optimize for fast installation [default=yes]
1072   --disable-dependency-tracking  speeds up one-time build
1073   --enable-dependency-tracking   do not reject slow dependency extractors
1074   --disable-libtool-lock  avoid locking (might break parallel builds)
1075
1076 Optional Packages:
1077   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1078   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1079   --with-subdir=DIR       change default subdirectory used for installs
1080   --with-cyrus-sasl       with Cyrus SASL support [auto]
1081   --with-fetch            with fetch(3) URL support [auto]
1082   --with-threads          with threads [auto]
1083   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1084   --with-yielding-select  with implicitly yielding select [auto]
1085   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1086   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1087   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1088   --with-pic              try to use only PIC/non-PIC objects [default=use
1089                           both]
1090   --with-tags[=TAGS]
1091                           include additional configurations [automatic]
1092
1093 See INSTALL file for further details.
1094
1095 Some influential environment variables:
1096   CC          C compiler command
1097   CFLAGS      C compiler flags
1098   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1099               nonstandard directory <lib dir>
1100   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1101               headers in a nonstandard directory <include dir>
1102   CPP         C preprocessor
1103
1104 Use these variables to override the choices made by `configure' or to help
1105 it to find libraries and programs with nonstandard names/locations.
1106
1107 _ACEOF
1108 fi
1109
1110 if test "$ac_init_help" = "recursive"; then
1111   # If there are subdirs, report their specific --help.
1112   ac_popdir=`pwd`
1113   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114     test -d $ac_dir || continue
1115     ac_builddir=.
1116
1117 if test "$ac_dir" != .; then
1118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119   # A "../" for each directory in $ac_dir_suffix.
1120   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121 else
1122   ac_dir_suffix= ac_top_builddir=
1123 fi
1124
1125 case $srcdir in
1126   .)  # No --srcdir option.  We are building in place.
1127     ac_srcdir=.
1128     if test -z "$ac_top_builddir"; then
1129        ac_top_srcdir=.
1130     else
1131        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132     fi ;;
1133   [\\/]* | ?:[\\/]* )  # Absolute path.
1134     ac_srcdir=$srcdir$ac_dir_suffix;
1135     ac_top_srcdir=$srcdir ;;
1136   *) # Relative path.
1137     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139 esac
1140
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1143 case `pwd` in
1144 .) ac_abs_builddir="$ac_dir";;
1145 *)
1146   case "$ac_dir" in
1147   .) ac_abs_builddir=`pwd`;;
1148   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150   esac;;
1151 esac
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *)
1155   case ${ac_top_builddir}. in
1156   .) ac_abs_top_builddir=$ac_abs_builddir;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1163 *)
1164   case $ac_srcdir in
1165   .) ac_abs_srcdir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *)
1173   case $ac_top_srcdir in
1174   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177   esac;;
1178 esac
1179
1180     cd $ac_dir
1181     # Check for guested configure; otherwise get Cygnus style configure.
1182     if test -f $ac_srcdir/configure.gnu; then
1183       echo
1184       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185     elif test -f $ac_srcdir/configure; then
1186       echo
1187       $SHELL $ac_srcdir/configure  --help=recursive
1188     elif test -f $ac_srcdir/configure.ac ||
1189            test -f $ac_srcdir/configure.in; then
1190       echo
1191       $ac_configure --help
1192     else
1193       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194     fi
1195     cd $ac_popdir
1196   done
1197 fi
1198
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1201   cat <<\_ACEOF
1202
1203 Copyright (C) 2003 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1206
1207 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1208 Restrictions apply, see COPYRIGHT and LICENSE files.
1209 _ACEOF
1210   exit 0
1211 fi
1212 exec 5>config.log
1213 cat >&5 <<_ACEOF
1214 This file contains any messages produced by compilers while
1215 running configure, to aid debugging if configure makes a mistake.
1216
1217 It was created by $as_me, which was
1218 generated by GNU Autoconf 2.59.  Invocation command line was
1219
1220   $ $0 $@
1221
1222 _ACEOF
1223 {
1224 cat <<_ASUNAME
1225 ## --------- ##
1226 ## Platform. ##
1227 ## --------- ##
1228
1229 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1230 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1231 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1232 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1233 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234
1235 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1236 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1237
1238 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1239 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1240 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1241 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1242 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1243 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1244 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1245
1246 _ASUNAME
1247
1248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 for as_dir in $PATH
1250 do
1251   IFS=$as_save_IFS
1252   test -z "$as_dir" && as_dir=.
1253   echo "PATH: $as_dir"
1254 done
1255
1256 } >&5
1257
1258 cat >&5 <<_ACEOF
1259
1260
1261 ## ----------- ##
1262 ## Core tests. ##
1263 ## ----------- ##
1264
1265 _ACEOF
1266
1267
1268 # Keep a trace of the command line.
1269 # Strip out --no-create and --no-recursion so they do not pile up.
1270 # Strip out --silent because we don't want to record it for future runs.
1271 # Also quote any args containing shell meta-characters.
1272 # Make two passes to allow for proper duplicate-argument suppression.
1273 ac_configure_args=
1274 ac_configure_args0=
1275 ac_configure_args1=
1276 ac_sep=
1277 ac_must_keep_next=false
1278 for ac_pass in 1 2
1279 do
1280   for ac_arg
1281   do
1282     case $ac_arg in
1283     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1284     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285     | -silent | --silent | --silen | --sile | --sil)
1286       continue ;;
1287     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1289     esac
1290     case $ac_pass in
1291     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292     2)
1293       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1294       if test $ac_must_keep_next = true; then
1295         ac_must_keep_next=false # Got value, back to normal.
1296       else
1297         case $ac_arg in
1298           *=* | --config-cache | -C | -disable-* | --disable-* \
1299           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1300           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1301           | -with-* | --with-* | -without-* | --without-* | --x)
1302             case "$ac_configure_args0 " in
1303               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1304             esac
1305             ;;
1306           -* ) ac_must_keep_next=true ;;
1307         esac
1308       fi
1309       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1310       # Get rid of the leading space.
1311       ac_sep=" "
1312       ;;
1313     esac
1314   done
1315 done
1316 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1317 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318
1319 # When interrupted or exit'd, cleanup temporary files, and complete
1320 # config.log.  We remove comments because anyway the quotes in there
1321 # would cause problems or look ugly.
1322 # WARNING: Be sure not to use single quotes in there, as some shells,
1323 # such as our DU 5.0 friend, will then `close' the trap.
1324 trap 'exit_status=$?
1325   # Save into config.log some information that might help in debugging.
1326   {
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ---------------- ##
1331 ## Cache variables. ##
1332 ## ---------------- ##
1333 _ASBOX
1334     echo
1335     # The following way of writing the cache mishandles newlines in values,
1336 {
1337   (set) 2>&1 |
1338     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1339     *ac_space=\ *)
1340       sed -n \
1341         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343       ;;
1344     *)
1345       sed -n \
1346         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1347       ;;
1348     esac;
1349 }
1350     echo
1351
1352     cat <<\_ASBOX
1353 ## ----------------- ##
1354 ## Output variables. ##
1355 ## ----------------- ##
1356 _ASBOX
1357     echo
1358     for ac_var in $ac_subst_vars
1359     do
1360       eval ac_val=$`echo $ac_var`
1361       echo "$ac_var='"'"'$ac_val'"'"'"
1362     done | sort
1363     echo
1364
1365     if test -n "$ac_subst_files"; then
1366       cat <<\_ASBOX
1367 ## ------------- ##
1368 ## Output files. ##
1369 ## ------------- ##
1370 _ASBOX
1371       echo
1372       for ac_var in $ac_subst_files
1373       do
1374         eval ac_val=$`echo $ac_var`
1375         echo "$ac_var='"'"'$ac_val'"'"'"
1376       done | sort
1377       echo
1378     fi
1379
1380     if test -s confdefs.h; then
1381       cat <<\_ASBOX
1382 ## ----------- ##
1383 ## confdefs.h. ##
1384 ## ----------- ##
1385 _ASBOX
1386       echo
1387       sed "/^$/d" confdefs.h | sort
1388       echo
1389     fi
1390     test "$ac_signal" != 0 &&
1391       echo "$as_me: caught signal $ac_signal"
1392     echo "$as_me: exit $exit_status"
1393   } >&5
1394   rm -f core *.core &&
1395   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1396     exit $exit_status
1397      ' 0
1398 for ac_signal in 1 2 13 15; do
1399   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 done
1401 ac_signal=0
1402
1403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1404 rm -rf conftest* confdefs.h
1405 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1406 echo >confdefs.h
1407
1408 # Predefined preprocessor variables.
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_NAME "$PACKAGE_NAME"
1412 _ACEOF
1413
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_STRING "$PACKAGE_STRING"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1432 _ACEOF
1433
1434
1435 # Let the site file select an alternate cache file if it wants to.
1436 # Prefer explicitly selected file to automatically selected ones.
1437 if test -z "$CONFIG_SITE"; then
1438   if test "x$prefix" != xNONE; then
1439     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440   else
1441     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1442   fi
1443 fi
1444 for ac_site_file in $CONFIG_SITE; do
1445   if test -r "$ac_site_file"; then
1446     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1447 echo "$as_me: loading site script $ac_site_file" >&6;}
1448     sed 's/^/| /' "$ac_site_file" >&5
1449     . "$ac_site_file"
1450   fi
1451 done
1452
1453
1454 # Check that the precious variables saved in the cache have kept the same
1455 # value.
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460   eval ac_new_set=\$ac_env_${ac_var}_set
1461   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462   eval ac_new_val="\$ac_env_${ac_var}_value"
1463   case $ac_old_set,$ac_new_set in
1464     set,)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,set)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,);;
1473     *)
1474       if test "x$ac_old_val" != "x$ac_new_val"; then
1475         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1478 echo "$as_me:   former value:  $ac_old_val" >&2;}
1479         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1480 echo "$as_me:   current value: $ac_new_val" >&2;}
1481         ac_cache_corrupted=:
1482       fi;;
1483   esac
1484   # Pass precious variables to config.status.
1485   if test "$ac_new_set" = set; then
1486     case $ac_new_val in
1487     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489     *) ac_arg=$ac_var=$ac_new_val ;;
1490     esac
1491     case " $ac_configure_args " in
1492       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1493       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494     esac
1495   fi
1496 done
1497 if $ac_cache_corrupted; then
1498   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502    { (exit 1); exit 1; }; }
1503 fi
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553 ac_aux_dir=
1554 for ac_dir in build $srcdir/build; do
1555   if test -f $ac_dir/install-sh; then
1556     ac_aux_dir=$ac_dir
1557     ac_install_sh="$ac_aux_dir/install-sh -c"
1558     break
1559   elif 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/shtool; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/shtool install -c"
1566     break
1567   fi
1568 done
1569 if test -z "$ac_aux_dir"; then
1570   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1572    { (exit 1); exit 1; }; }
1573 fi
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578 eval `$ac_aux_dir/version.sh`
1579 if test -z "$OL_STRING"; then
1580         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1581 echo "$as_me: error: could not determine version" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584
1585 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1586         ac_cv_shtool="$ac_aux_dir/shtool"
1587 else
1588         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1589 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592
1593 SHTOOL="$ac_cv_shtool"
1594
1595 TB="" TN=""
1596 if test -t 1; then
1597         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1598         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1599 fi
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in no yes traditional ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 # OpenLDAP --enable-ipv6
2265
2266         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268   enableval="$enable_ipv6"
2269
2270         ol_arg=invalid
2271         for ol_val in auto yes no ; do
2272                 if test "$enableval" = "$ol_val" ; then
2273                         ol_arg="$ol_val"
2274                 fi
2275         done
2276         if test "$ol_arg" = "invalid" ; then
2277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279    { (exit 1); exit 1; }; }
2280         fi
2281         ol_enable_ipv6="$ol_arg"
2282
2283 else
2284         ol_enable_ipv6=auto
2285 fi;
2286 # end --enable-ipv6
2287 # OpenLDAP --enable-local
2288
2289         # Check whether --enable-local or --disable-local was given.
2290 if test "${enable_local+set}" = set; then
2291   enableval="$enable_local"
2292
2293         ol_arg=invalid
2294         for ol_val in auto yes no ; do
2295                 if test "$enableval" = "$ol_val" ; then
2296                         ol_arg="$ol_val"
2297                 fi
2298         done
2299         if test "$ol_arg" = "invalid" ; then
2300                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2301 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2302    { (exit 1); exit 1; }; }
2303         fi
2304         ol_enable_local="$ol_arg"
2305
2306 else
2307         ol_enable_local=auto
2308 fi;
2309 # end --enable-local
2310
2311 # OpenLDAP --with-cyrus_sasl
2312
2313 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2314 if test "${with_cyrus_sasl+set}" = set; then
2315   withval="$with_cyrus_sasl"
2316
2317         ol_arg=invalid
2318         for ol_val in auto yes no  ; do
2319                 if test "$withval" = "$ol_val" ; then
2320                         ol_arg="$ol_val"
2321                 fi
2322         done
2323         if test "$ol_arg" = "invalid" ; then
2324                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2325 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2326    { (exit 1); exit 1; }; }
2327         fi
2328         ol_with_cyrus_sasl="$ol_arg"
2329
2330 else
2331         ol_with_cyrus_sasl="auto"
2332 fi; # end --with-cyrus_sasl
2333
2334 # OpenLDAP --with-fetch
2335
2336 # Check whether --with-fetch or --without-fetch was given.
2337 if test "${with_fetch+set}" = set; then
2338   withval="$with_fetch"
2339
2340         ol_arg=invalid
2341         for ol_val in auto yes no  ; do
2342                 if test "$withval" = "$ol_val" ; then
2343                         ol_arg="$ol_val"
2344                 fi
2345         done
2346         if test "$ol_arg" = "invalid" ; then
2347                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2348 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2349    { (exit 1); exit 1; }; }
2350         fi
2351         ol_with_fetch="$ol_arg"
2352
2353 else
2354         ol_with_fetch="auto"
2355 fi; # end --with-fetch
2356
2357 # OpenLDAP --with-threads
2358
2359 # Check whether --with-threads or --without-threads was given.
2360 if test "${with_threads+set}" = set; then
2361   withval="$with_threads"
2362
2363         ol_arg=invalid
2364         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2365                 if test "$withval" = "$ol_val" ; then
2366                         ol_arg="$ol_val"
2367                 fi
2368         done
2369         if test "$ol_arg" = "invalid" ; then
2370                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2371 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2372    { (exit 1); exit 1; }; }
2373         fi
2374         ol_with_threads="$ol_arg"
2375
2376 else
2377         ol_with_threads="auto"
2378 fi; # end --with-threads
2379
2380 # OpenLDAP --with-tls
2381
2382 # Check whether --with-tls or --without-tls was given.
2383 if test "${with_tls+set}" = set; then
2384   withval="$with_tls"
2385
2386         ol_arg=invalid
2387         for ol_val in auto openssl gnutls yes no  ; do
2388                 if test "$withval" = "$ol_val" ; then
2389                         ol_arg="$ol_val"
2390                 fi
2391         done
2392         if test "$ol_arg" = "invalid" ; then
2393                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2394 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2395    { (exit 1); exit 1; }; }
2396         fi
2397         ol_with_tls="$ol_arg"
2398
2399 else
2400         ol_with_tls="auto"
2401 fi; # end --with-tls
2402
2403 # OpenLDAP --with-yielding_select
2404
2405 # Check whether --with-yielding_select or --without-yielding_select was given.
2406 if test "${with_yielding_select+set}" = set; then
2407   withval="$with_yielding_select"
2408
2409         ol_arg=invalid
2410         for ol_val in auto yes no manual  ; do
2411                 if test "$withval" = "$ol_val" ; then
2412                         ol_arg="$ol_val"
2413                 fi
2414         done
2415         if test "$ol_arg" = "invalid" ; then
2416                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2417 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2418    { (exit 1); exit 1; }; }
2419         fi
2420         ol_with_yielding_select="$ol_arg"
2421
2422 else
2423         ol_with_yielding_select="auto"
2424 fi; # end --with-yielding_select
2425
2426 # OpenLDAP --with-mp
2427
2428 # Check whether --with-mp or --without-mp was given.
2429 if test "${with_mp+set}" = set; then
2430   withval="$with_mp"
2431
2432         ol_arg=invalid
2433         for ol_val in auto longlong long bignum gmp yes no ; do
2434                 if test "$withval" = "$ol_val" ; then
2435                         ol_arg="$ol_val"
2436                 fi
2437         done
2438         if test "$ol_arg" = "invalid" ; then
2439                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2440 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2441    { (exit 1); exit 1; }; }
2442         fi
2443         ol_with_mp="$ol_arg"
2444
2445 else
2446         ol_with_mp="auto"
2447 fi; # end --with-mp
2448
2449 # OpenLDAP --with-odbc
2450
2451 # Check whether --with-odbc or --without-odbc was given.
2452 if test "${with_odbc+set}" = set; then
2453   withval="$with_odbc"
2454
2455         ol_arg=invalid
2456         for ol_val in auto iodbc unixodbc  ; do
2457                 if test "$withval" = "$ol_val" ; then
2458                         ol_arg="$ol_val"
2459                 fi
2460         done
2461         if test "$ol_arg" = "invalid" ; then
2462                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2463 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2464    { (exit 1); exit 1; }; }
2465         fi
2466         ol_with_odbc="$ol_arg"
2467
2468 else
2469         ol_with_odbc="auto"
2470 fi; # end --with-odbc
2471
2472
2473
2474 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2475 if test "${enable_xxslapdoptions+set}" = set; then
2476   enableval="$enable_xxslapdoptions"
2477
2478 fi;
2479 # OpenLDAP --enable-slapd
2480
2481         # Check whether --enable-slapd or --disable-slapd was given.
2482 if test "${enable_slapd+set}" = set; then
2483   enableval="$enable_slapd"
2484
2485         ol_arg=invalid
2486         for ol_val in auto yes no ; do
2487                 if test "$enableval" = "$ol_val" ; then
2488                         ol_arg="$ol_val"
2489                 fi
2490         done
2491         if test "$ol_arg" = "invalid" ; then
2492                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2493 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2494    { (exit 1); exit 1; }; }
2495         fi
2496         ol_enable_slapd="$ol_arg"
2497
2498 else
2499         ol_enable_slapd=yes
2500 fi;
2501 # end --enable-slapd
2502 # OpenLDAP --enable-dynacl
2503
2504         # Check whether --enable-dynacl or --disable-dynacl was given.
2505 if test "${enable_dynacl+set}" = set; then
2506   enableval="$enable_dynacl"
2507
2508         ol_arg=invalid
2509         for ol_val in auto yes no ; do
2510                 if test "$enableval" = "$ol_val" ; then
2511                         ol_arg="$ol_val"
2512                 fi
2513         done
2514         if test "$ol_arg" = "invalid" ; then
2515                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2516 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2517    { (exit 1); exit 1; }; }
2518         fi
2519         ol_enable_dynacl="$ol_arg"
2520
2521 else
2522         ol_enable_dynacl=no
2523 fi;
2524 # end --enable-dynacl
2525 # OpenLDAP --enable-aci
2526
2527         # Check whether --enable-aci or --disable-aci was given.
2528 if test "${enable_aci+set}" = set; then
2529   enableval="$enable_aci"
2530
2531         ol_arg=invalid
2532         for ol_val in no yes mod ; do
2533                 if test "$enableval" = "$ol_val" ; then
2534                         ol_arg="$ol_val"
2535                 fi
2536         done
2537         if test "$ol_arg" = "invalid" ; then
2538                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2540    { (exit 1); exit 1; }; }
2541         fi
2542         ol_enable_aci="$ol_arg"
2543
2544 else
2545         ol_enable_aci=no
2546 fi;
2547 # end --enable-aci
2548 # OpenLDAP --enable-cleartext
2549
2550         # Check whether --enable-cleartext or --disable-cleartext was given.
2551 if test "${enable_cleartext+set}" = set; then
2552   enableval="$enable_cleartext"
2553
2554         ol_arg=invalid
2555         for ol_val in auto yes no ; do
2556                 if test "$enableval" = "$ol_val" ; then
2557                         ol_arg="$ol_val"
2558                 fi
2559         done
2560         if test "$ol_arg" = "invalid" ; then
2561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2562 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2563    { (exit 1); exit 1; }; }
2564         fi
2565         ol_enable_cleartext="$ol_arg"
2566
2567 else
2568         ol_enable_cleartext=yes
2569 fi;
2570 # end --enable-cleartext
2571 # OpenLDAP --enable-crypt
2572
2573         # Check whether --enable-crypt or --disable-crypt was given.
2574 if test "${enable_crypt+set}" = set; then
2575   enableval="$enable_crypt"
2576
2577         ol_arg=invalid
2578         for ol_val in auto yes no ; do
2579                 if test "$enableval" = "$ol_val" ; then
2580                         ol_arg="$ol_val"
2581                 fi
2582         done
2583         if test "$ol_arg" = "invalid" ; then
2584                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2586    { (exit 1); exit 1; }; }
2587         fi
2588         ol_enable_crypt="$ol_arg"
2589
2590 else
2591         ol_enable_crypt=no
2592 fi;
2593 # end --enable-crypt
2594 # OpenLDAP --enable-lmpasswd
2595
2596         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2597 if test "${enable_lmpasswd+set}" = set; then
2598   enableval="$enable_lmpasswd"
2599
2600         ol_arg=invalid
2601         for ol_val in auto yes no ; do
2602                 if test "$enableval" = "$ol_val" ; then
2603                         ol_arg="$ol_val"
2604                 fi
2605         done
2606         if test "$ol_arg" = "invalid" ; then
2607                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2609    { (exit 1); exit 1; }; }
2610         fi
2611         ol_enable_lmpasswd="$ol_arg"
2612
2613 else
2614         ol_enable_lmpasswd=no
2615 fi;
2616 # end --enable-lmpasswd
2617 # OpenLDAP --enable-spasswd
2618
2619         # Check whether --enable-spasswd or --disable-spasswd was given.
2620 if test "${enable_spasswd+set}" = set; then
2621   enableval="$enable_spasswd"
2622
2623         ol_arg=invalid
2624         for ol_val in auto yes no ; do
2625                 if test "$enableval" = "$ol_val" ; then
2626                         ol_arg="$ol_val"
2627                 fi
2628         done
2629         if test "$ol_arg" = "invalid" ; then
2630                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2631 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2632    { (exit 1); exit 1; }; }
2633         fi
2634         ol_enable_spasswd="$ol_arg"
2635
2636 else
2637         ol_enable_spasswd=no
2638 fi;
2639 # end --enable-spasswd
2640 # OpenLDAP --enable-modules
2641
2642         # Check whether --enable-modules or --disable-modules was given.
2643 if test "${enable_modules+set}" = set; then
2644   enableval="$enable_modules"
2645
2646         ol_arg=invalid
2647         for ol_val in auto yes no ; do
2648                 if test "$enableval" = "$ol_val" ; then
2649                         ol_arg="$ol_val"
2650                 fi
2651         done
2652         if test "$ol_arg" = "invalid" ; then
2653                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2654 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2655    { (exit 1); exit 1; }; }
2656         fi
2657         ol_enable_modules="$ol_arg"
2658
2659 else
2660         ol_enable_modules=no
2661 fi;
2662 # end --enable-modules
2663 # OpenLDAP --enable-rewrite
2664
2665         # Check whether --enable-rewrite or --disable-rewrite was given.
2666 if test "${enable_rewrite+set}" = set; then
2667   enableval="$enable_rewrite"
2668
2669         ol_arg=invalid
2670         for ol_val in auto yes no ; do
2671                 if test "$enableval" = "$ol_val" ; then
2672                         ol_arg="$ol_val"
2673                 fi
2674         done
2675         if test "$ol_arg" = "invalid" ; then
2676                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2677 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2678    { (exit 1); exit 1; }; }
2679         fi
2680         ol_enable_rewrite="$ol_arg"
2681
2682 else
2683         ol_enable_rewrite=auto
2684 fi;
2685 # end --enable-rewrite
2686 # OpenLDAP --enable-rlookups
2687
2688         # Check whether --enable-rlookups or --disable-rlookups was given.
2689 if test "${enable_rlookups+set}" = set; then
2690   enableval="$enable_rlookups"
2691
2692         ol_arg=invalid
2693         for ol_val in auto yes no ; do
2694                 if test "$enableval" = "$ol_val" ; then
2695                         ol_arg="$ol_val"
2696                 fi
2697         done
2698         if test "$ol_arg" = "invalid" ; then
2699                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2700 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2701    { (exit 1); exit 1; }; }
2702         fi
2703         ol_enable_rlookups="$ol_arg"
2704
2705 else
2706         ol_enable_rlookups=no
2707 fi;
2708 # end --enable-rlookups
2709 # OpenLDAP --enable-slapi
2710
2711         # Check whether --enable-slapi or --disable-slapi was given.
2712 if test "${enable_slapi+set}" = set; then
2713   enableval="$enable_slapi"
2714
2715         ol_arg=invalid
2716         for ol_val in auto yes no ; do
2717                 if test "$enableval" = "$ol_val" ; then
2718                         ol_arg="$ol_val"
2719                 fi
2720         done
2721         if test "$ol_arg" = "invalid" ; then
2722                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2724    { (exit 1); exit 1; }; }
2725         fi
2726         ol_enable_slapi="$ol_arg"
2727
2728 else
2729         ol_enable_slapi=no
2730 fi;
2731 # end --enable-slapi
2732 # OpenLDAP --enable-slp
2733
2734         # Check whether --enable-slp or --disable-slp was given.
2735 if test "${enable_slp+set}" = set; then
2736   enableval="$enable_slp"
2737
2738         ol_arg=invalid
2739         for ol_val in auto yes no ; do
2740                 if test "$enableval" = "$ol_val" ; then
2741                         ol_arg="$ol_val"
2742                 fi
2743         done
2744         if test "$ol_arg" = "invalid" ; then
2745                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2746 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2747    { (exit 1); exit 1; }; }
2748         fi
2749         ol_enable_slp="$ol_arg"
2750
2751 else
2752         ol_enable_slp=no
2753 fi;
2754 # end --enable-slp
2755 # OpenLDAP --enable-wrappers
2756
2757         # Check whether --enable-wrappers or --disable-wrappers was given.
2758 if test "${enable_wrappers+set}" = set; then
2759   enableval="$enable_wrappers"
2760
2761         ol_arg=invalid
2762         for ol_val in auto yes no ; do
2763                 if test "$enableval" = "$ol_val" ; then
2764                         ol_arg="$ol_val"
2765                 fi
2766         done
2767         if test "$ol_arg" = "invalid" ; then
2768                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2769 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2770    { (exit 1); exit 1; }; }
2771         fi
2772         ol_enable_wrappers="$ol_arg"
2773
2774 else
2775         ol_enable_wrappers=no
2776 fi;
2777 # end --enable-wrappers
2778
2779 Backends="bdb \
2780         dnssrv \
2781         hdb \
2782         ldap \
2783         meta \
2784         monitor \
2785         null \
2786         passwd \
2787         perl \
2788         relay \
2789         shell \
2790         sql"
2791
2792 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2793 if test "${enable_xxslapbackends+set}" = set; then
2794   enableval="$enable_xxslapbackends"
2795
2796 fi;
2797
2798 # OpenLDAP --enable-backends
2799
2800         # Check whether --enable-backends or --disable-backends was given.
2801 if test "${enable_backends+set}" = set; then
2802   enableval="$enable_backends"
2803
2804         ol_arg=invalid
2805         for ol_val in no yes mod ; do
2806                 if test "$enableval" = "$ol_val" ; then
2807                         ol_arg="$ol_val"
2808                 fi
2809         done
2810         if test "$ol_arg" = "invalid" ; then
2811                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2813    { (exit 1); exit 1; }; }
2814         fi
2815         ol_enable_backends="$ol_arg"
2816
2817 fi;
2818 # end --enable-backends
2819 # OpenLDAP --enable-bdb
2820
2821         # Check whether --enable-bdb or --disable-bdb was given.
2822 if test "${enable_bdb+set}" = set; then
2823   enableval="$enable_bdb"
2824
2825         ol_arg=invalid
2826         for ol_val in no yes mod ; do
2827                 if test "$enableval" = "$ol_val" ; then
2828                         ol_arg="$ol_val"
2829                 fi
2830         done
2831         if test "$ol_arg" = "invalid" ; then
2832                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2833 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2834    { (exit 1); exit 1; }; }
2835         fi
2836         ol_enable_bdb="$ol_arg"
2837
2838 else
2839         ol_enable_bdb=${ol_enable_backends:-yes}
2840 fi;
2841 # end --enable-bdb
2842 # OpenLDAP --enable-dnssrv
2843
2844         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2845 if test "${enable_dnssrv+set}" = set; then
2846   enableval="$enable_dnssrv"
2847
2848         ol_arg=invalid
2849         for ol_val in no yes mod ; do
2850                 if test "$enableval" = "$ol_val" ; then
2851                         ol_arg="$ol_val"
2852                 fi
2853         done
2854         if test "$ol_arg" = "invalid" ; then
2855                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2857    { (exit 1); exit 1; }; }
2858         fi
2859         ol_enable_dnssrv="$ol_arg"
2860
2861 else
2862         ol_enable_dnssrv=${ol_enable_backends:-no}
2863 fi;
2864 # end --enable-dnssrv
2865 # OpenLDAP --enable-hdb
2866
2867         # Check whether --enable-hdb or --disable-hdb was given.
2868 if test "${enable_hdb+set}" = set; then
2869   enableval="$enable_hdb"
2870
2871         ol_arg=invalid
2872         for ol_val in no yes mod ; do
2873                 if test "$enableval" = "$ol_val" ; then
2874                         ol_arg="$ol_val"
2875                 fi
2876         done
2877         if test "$ol_arg" = "invalid" ; then
2878                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2879 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2880    { (exit 1); exit 1; }; }
2881         fi
2882         ol_enable_hdb="$ol_arg"
2883
2884 else
2885         ol_enable_hdb=${ol_enable_backends:-yes}
2886 fi;
2887 # end --enable-hdb
2888 # OpenLDAP --enable-ldap
2889
2890         # Check whether --enable-ldap or --disable-ldap was given.
2891 if test "${enable_ldap+set}" = set; then
2892   enableval="$enable_ldap"
2893
2894         ol_arg=invalid
2895         for ol_val in no yes mod ; do
2896                 if test "$enableval" = "$ol_val" ; then
2897                         ol_arg="$ol_val"
2898                 fi
2899         done
2900         if test "$ol_arg" = "invalid" ; then
2901                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2902 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2903    { (exit 1); exit 1; }; }
2904         fi
2905         ol_enable_ldap="$ol_arg"
2906
2907 else
2908         ol_enable_ldap=${ol_enable_backends:-no}
2909 fi;
2910 # end --enable-ldap
2911 # OpenLDAP --enable-meta
2912
2913         # Check whether --enable-meta or --disable-meta was given.
2914 if test "${enable_meta+set}" = set; then
2915   enableval="$enable_meta"
2916
2917         ol_arg=invalid
2918         for ol_val in no yes mod ; do
2919                 if test "$enableval" = "$ol_val" ; then
2920                         ol_arg="$ol_val"
2921                 fi
2922         done
2923         if test "$ol_arg" = "invalid" ; then
2924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2926    { (exit 1); exit 1; }; }
2927         fi
2928         ol_enable_meta="$ol_arg"
2929
2930 else
2931         ol_enable_meta=${ol_enable_backends:-no}
2932 fi;
2933 # end --enable-meta
2934 # OpenLDAP --enable-monitor
2935
2936         # Check whether --enable-monitor or --disable-monitor was given.
2937 if test "${enable_monitor+set}" = set; then
2938   enableval="$enable_monitor"
2939
2940         ol_arg=invalid
2941         for ol_val in no yes mod ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_monitor="$ol_arg"
2952
2953 else
2954         ol_enable_monitor=${ol_enable_backends:-yes}
2955 fi;
2956 # end --enable-monitor
2957 # OpenLDAP --enable-null
2958
2959         # Check whether --enable-null or --disable-null was given.
2960 if test "${enable_null+set}" = set; then
2961   enableval="$enable_null"
2962
2963         ol_arg=invalid
2964         for ol_val in no yes mod ; do
2965                 if test "$enableval" = "$ol_val" ; then
2966                         ol_arg="$ol_val"
2967                 fi
2968         done
2969         if test "$ol_arg" = "invalid" ; then
2970                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2972    { (exit 1); exit 1; }; }
2973         fi
2974         ol_enable_null="$ol_arg"
2975
2976 else
2977         ol_enable_null=${ol_enable_backends:-no}
2978 fi;
2979 # end --enable-null
2980 # OpenLDAP --enable-passwd
2981
2982         # Check whether --enable-passwd or --disable-passwd was given.
2983 if test "${enable_passwd+set}" = set; then
2984   enableval="$enable_passwd"
2985
2986         ol_arg=invalid
2987         for ol_val in no yes mod ; do
2988                 if test "$enableval" = "$ol_val" ; then
2989                         ol_arg="$ol_val"
2990                 fi
2991         done
2992         if test "$ol_arg" = "invalid" ; then
2993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2995    { (exit 1); exit 1; }; }
2996         fi
2997         ol_enable_passwd="$ol_arg"
2998
2999 else
3000         ol_enable_passwd=${ol_enable_backends:-no}
3001 fi;
3002 # end --enable-passwd
3003 # OpenLDAP --enable-perl
3004
3005         # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007   enableval="$enable_perl"
3008
3009         ol_arg=invalid
3010         for ol_val in no yes mod ; do
3011                 if test "$enableval" = "$ol_val" ; then
3012                         ol_arg="$ol_val"
3013                 fi
3014         done
3015         if test "$ol_arg" = "invalid" ; then
3016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018    { (exit 1); exit 1; }; }
3019         fi
3020         ol_enable_perl="$ol_arg"
3021
3022 else
3023         ol_enable_perl=${ol_enable_backends:-no}
3024 fi;
3025 # end --enable-perl
3026 # OpenLDAP --enable-relay
3027
3028         # Check whether --enable-relay or --disable-relay was given.
3029 if test "${enable_relay+set}" = set; then
3030   enableval="$enable_relay"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_relay="$ol_arg"
3044
3045 else
3046         ol_enable_relay=${ol_enable_backends:-yes}
3047 fi;
3048 # end --enable-relay
3049 # OpenLDAP --enable-shell
3050
3051         # Check whether --enable-shell or --disable-shell was given.
3052 if test "${enable_shell+set}" = set; then
3053   enableval="$enable_shell"
3054
3055         ol_arg=invalid
3056         for ol_val in no yes mod ; do
3057                 if test "$enableval" = "$ol_val" ; then
3058                         ol_arg="$ol_val"
3059                 fi
3060         done
3061         if test "$ol_arg" = "invalid" ; then
3062                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3064    { (exit 1); exit 1; }; }
3065         fi
3066         ol_enable_shell="$ol_arg"
3067
3068 else
3069         ol_enable_shell=${ol_enable_backends:-no}
3070 fi;
3071 # end --enable-shell
3072 # OpenLDAP --enable-sql
3073
3074         # Check whether --enable-sql or --disable-sql was given.
3075 if test "${enable_sql+set}" = set; then
3076   enableval="$enable_sql"
3077
3078         ol_arg=invalid
3079         for ol_val in no yes mod ; do
3080                 if test "$enableval" = "$ol_val" ; then
3081                         ol_arg="$ol_val"
3082                 fi
3083         done
3084         if test "$ol_arg" = "invalid" ; then
3085                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3087    { (exit 1); exit 1; }; }
3088         fi
3089         ol_enable_sql="$ol_arg"
3090
3091 else
3092         ol_enable_sql=${ol_enable_backends:-no}
3093 fi;
3094 # end --enable-sql
3095
3096 Overlays="accesslog \
3097         auditlog \
3098         constraint \
3099         dds \
3100         dyngroup \
3101         dynlist \
3102         ppolicy \
3103         proxycache \
3104         refint \
3105         retcode \
3106         rwm \
3107         seqmod \
3108         syncprov \
3109         translucent \
3110         unique \
3111         valsort"
3112
3113 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3114 if test "${enable_xxslapoverlays+set}" = set; then
3115   enableval="$enable_xxslapoverlays"
3116
3117 fi;
3118
3119 # OpenLDAP --enable-overlays
3120
3121         # Check whether --enable-overlays or --disable-overlays was given.
3122 if test "${enable_overlays+set}" = set; then
3123   enableval="$enable_overlays"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_overlays="$ol_arg"
3137
3138 fi;
3139 # end --enable-overlays
3140 # OpenLDAP --enable-accesslog
3141
3142         # Check whether --enable-accesslog or --disable-accesslog was given.
3143 if test "${enable_accesslog+set}" = set; then
3144   enableval="$enable_accesslog"
3145
3146         ol_arg=invalid
3147         for ol_val in no yes mod ; do
3148                 if test "$enableval" = "$ol_val" ; then
3149                         ol_arg="$ol_val"
3150                 fi
3151         done
3152         if test "$ol_arg" = "invalid" ; then
3153                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3155    { (exit 1); exit 1; }; }
3156         fi
3157         ol_enable_accesslog="$ol_arg"
3158
3159 else
3160         ol_enable_accesslog=${ol_enable_overlays:-no}
3161 fi;
3162 # end --enable-accesslog
3163
3164 # OpenLDAP --enable-auditlog
3165
3166         # Check whether --enable-auditlog or --disable-auditlog was given.
3167 if test "${enable_auditlog+set}" = set; then
3168   enableval="$enable_auditlog"
3169
3170         ol_arg=invalid
3171         for ol_val in no yes mod ; do
3172                 if test "$enableval" = "$ol_val" ; then
3173                         ol_arg="$ol_val"
3174                 fi
3175         done
3176         if test "$ol_arg" = "invalid" ; then
3177                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_auditlog="$ol_arg"
3182
3183 else
3184         ol_enable_auditlog=${ol_enable_overlays:-no}
3185 fi;
3186 # end --enable-auditlog
3187
3188 # OpenLDAP --enable-constraint
3189
3190         # Check whether --enable-constraint or --disable-constraint was given.
3191 if test "${enable_constraint+set}" = set; then
3192   enableval="$enable_constraint"
3193
3194         ol_arg=invalid
3195         for ol_val in no yes mod ; do
3196                 if test "$enableval" = "$ol_val" ; then
3197                         ol_arg="$ol_val"
3198                 fi
3199         done
3200         if test "$ol_arg" = "invalid" ; then
3201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3203    { (exit 1); exit 1; }; }
3204         fi
3205         ol_enable_constraint="$ol_arg"
3206
3207 else
3208         ol_enable_constraint=${ol_enable_overlays:-no}
3209 fi;
3210 # end --enable-constraint
3211
3212 # OpenLDAP --enable-dds
3213
3214         # Check whether --enable-dds or --disable-dds was given.
3215 if test "${enable_dds+set}" = set; then
3216   enableval="$enable_dds"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_dds="$ol_arg"
3230
3231 else
3232         ol_enable_dds=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-dds
3235
3236 # OpenLDAP --enable-dyngroup
3237
3238         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3239 if test "${enable_dyngroup+set}" = set; then
3240   enableval="$enable_dyngroup"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dyngroup="$ol_arg"
3254
3255 else
3256         ol_enable_dyngroup=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dyngroup
3259
3260 # OpenLDAP --enable-dynlist
3261
3262         # Check whether --enable-dynlist or --disable-dynlist was given.
3263 if test "${enable_dynlist+set}" = set; then
3264   enableval="$enable_dynlist"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_dynlist="$ol_arg"
3278
3279 else
3280         ol_enable_dynlist=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-dynlist
3283
3284 # OpenLDAP --enable-ppolicy
3285
3286         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3287 if test "${enable_ppolicy+set}" = set; then
3288   enableval="$enable_ppolicy"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_ppolicy="$ol_arg"
3302
3303 else
3304         ol_enable_ppolicy=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-ppolicy
3307
3308 # OpenLDAP --enable-proxycache
3309
3310         # Check whether --enable-proxycache or --disable-proxycache was given.
3311 if test "${enable_proxycache+set}" = set; then
3312   enableval="$enable_proxycache"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_proxycache="$ol_arg"
3326
3327 else
3328         ol_enable_proxycache=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-proxycache
3331
3332 # OpenLDAP --enable-refint
3333
3334         # Check whether --enable-refint or --disable-refint was given.
3335 if test "${enable_refint+set}" = set; then
3336   enableval="$enable_refint"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_refint="$ol_arg"
3350
3351 else
3352         ol_enable_refint=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-refint
3355
3356 # OpenLDAP --enable-retcode
3357
3358         # Check whether --enable-retcode or --disable-retcode was given.
3359 if test "${enable_retcode+set}" = set; then
3360   enableval="$enable_retcode"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_retcode="$ol_arg"
3374
3375 else
3376         ol_enable_retcode=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-retcode
3379
3380 # OpenLDAP --enable-rwm
3381
3382         # Check whether --enable-rwm or --disable-rwm was given.
3383 if test "${enable_rwm+set}" = set; then
3384   enableval="$enable_rwm"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_rwm="$ol_arg"
3398
3399 else
3400         ol_enable_rwm=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-rwm
3403
3404 # OpenLDAP --enable-seqmod
3405
3406         # Check whether --enable-seqmod or --disable-seqmod was given.
3407 if test "${enable_seqmod+set}" = set; then
3408   enableval="$enable_seqmod"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_seqmod="$ol_arg"
3422
3423 else
3424         ol_enable_seqmod=${ol_enable_overlays:-yes}
3425 fi;
3426 # end --enable-seqmod
3427
3428 # OpenLDAP --enable-syncprov
3429
3430         # Check whether --enable-syncprov or --disable-syncprov was given.
3431 if test "${enable_syncprov+set}" = set; then
3432   enableval="$enable_syncprov"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_syncprov="$ol_arg"
3446
3447 else
3448         ol_enable_syncprov=${ol_enable_overlays:-yes}
3449 fi;
3450 # end --enable-syncprov
3451
3452 # OpenLDAP --enable-translucent
3453
3454         # Check whether --enable-translucent or --disable-translucent was given.
3455 if test "${enable_translucent+set}" = set; then
3456   enableval="$enable_translucent"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_translucent="$ol_arg"
3470
3471 else
3472         ol_enable_translucent=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-translucent
3475
3476 # OpenLDAP --enable-unique
3477
3478         # Check whether --enable-unique or --disable-unique was given.
3479 if test "${enable_unique+set}" = set; then
3480   enableval="$enable_unique"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_unique="$ol_arg"
3494
3495 else
3496         ol_enable_unique=${ol_enable_overlays:-no}
3497 fi;
3498 # end --enable-unique
3499
3500 # OpenLDAP --enable-valsort
3501
3502         # Check whether --enable-valsort or --disable-valsort was given.
3503 if test "${enable_valsort+set}" = set; then
3504   enableval="$enable_valsort"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_valsort="$ol_arg"
3518
3519 else
3520         ol_enable_valsort=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-valsort
3523
3524
3525 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3526 if test "${enable_xxliboptions+set}" = set; then
3527   enableval="$enable_xxliboptions"
3528
3529 fi;
3530 # Check whether --enable-static or --disable-static was given.
3531 if test "${enable_static+set}" = set; then
3532   enableval="$enable_static"
3533   p=${PACKAGE-default}
3534     case $enableval in
3535     yes) enable_static=yes ;;
3536     no) enable_static=no ;;
3537     *)
3538      enable_static=no
3539       # Look at the argument we got.  We use all the common list separators.
3540       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541       for pkg in $enableval; do
3542         IFS="$lt_save_ifs"
3543         if test "X$pkg" = "X$p"; then
3544           enable_static=yes
3545         fi
3546       done
3547       IFS="$lt_save_ifs"
3548       ;;
3549     esac
3550 else
3551   enable_static=yes
3552 fi;
3553
3554 # Check whether --enable-shared or --disable-shared was given.
3555 if test "${enable_shared+set}" = set; then
3556   enableval="$enable_shared"
3557   p=${PACKAGE-default}
3558     case $enableval in
3559     yes) enable_shared=yes ;;
3560     no) enable_shared=no ;;
3561     *)
3562       enable_shared=no
3563       # Look at the argument we got.  We use all the common list separators.
3564       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3565       for pkg in $enableval; do
3566         IFS="$lt_save_ifs"
3567         if test "X$pkg" = "X$p"; then
3568           enable_shared=yes
3569         fi
3570       done
3571       IFS="$lt_save_ifs"
3572       ;;
3573     esac
3574 else
3575   enable_shared=yes
3576 fi;
3577
3578
3579
3580 # validate options
3581 if test $ol_enable_slapd = no ; then
3582                 if test $ol_enable_slapi = yes ; then
3583                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3584 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3585         fi
3586         case "$ol_enable_backends" in yes | mod)
3587                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3588 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3589         esac
3590         for i in $Backends; do
3591                 eval "ol_tmp=\$ol_enable_$i"
3592                 if test $ol_tmp != no ; then
3593                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3594 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3595                         eval "ol_enable_$i=no"
3596                 fi
3597         done
3598         if test $ol_enable_modules = yes ; then
3599                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3600 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3601         fi
3602         if test $ol_enable_wrappers = yes ; then
3603                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3604 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3605         fi
3606         if test $ol_enable_rlookups = yes ; then
3607                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3608 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3609         fi
3610         if test $ol_enable_dynacl = yes ; then
3611                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3612 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3613         fi
3614         if test $ol_enable_aci != no ; then
3615                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3616 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3617         fi
3618         if test $ol_enable_rewrite = yes ; then
3619                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3621         fi
3622                 case "$ol_enable_overlays" in yes | mod)
3623                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3624 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3625         esac
3626         for i in $Overlays; do
3627                 eval "ol_tmp=\$ol_enable_$i"
3628                 if test $ol_tmp != no ; then
3629                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3631                         eval "ol_enable_$i=no"
3632                 fi
3633         done
3634
3635         # force settings to no
3636         ol_enable_slapi=no
3637
3638         ol_enable_backends=
3639         ol_enable_overlays=
3640         ol_enable_modules=no
3641         ol_enable_rlookups=no
3642         ol_enable_dynacl=no
3643         ol_enable_aci=no
3644         ol_enable_wrappers=no
3645
3646         ol_enable_rewrite=no
3647
3648 elif test $ol_enable_modules != yes &&
3649         test $ol_enable_bdb = no &&
3650         test $ol_enable_dnssrv = no &&
3651         test $ol_enable_hdb = no &&
3652         test $ol_enable_ldap = no &&
3653         test $ol_enable_meta = no &&
3654         test $ol_enable_monitor = no &&
3655         test $ol_enable_null = no &&
3656         test $ol_enable_passwd = no &&
3657         test $ol_enable_perl = no &&
3658         test $ol_enable_relay = no &&
3659         test $ol_enable_shell = no &&
3660         test $ol_enable_sql = no ; then
3661
3662         if test $ol_enable_slapd = yes ; then
3663                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3664 echo "$as_me: error: slapd requires a backend" >&2;}
3665    { (exit 1); exit 1; }; }
3666         else
3667                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3668 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3669                 ol_enable_slapd=no
3670         fi
3671 fi
3672
3673 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3674         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3675 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3676    { (exit 1); exit 1; }; }
3677 fi
3678
3679 if test $ol_enable_lmpasswd = yes ; then
3680         if test $ol_with_tls = no ; then
3681                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3682 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3683    { (exit 1); exit 1; }; }
3684         fi
3685 fi
3686
3687 if test $ol_enable_spasswd = yes ; then
3688         if test $ol_with_cyrus_sasl = no ; then
3689                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3690 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3691    { (exit 1); exit 1; }; }
3692         fi
3693         ol_with_cyrus_sasl=yes
3694 fi
3695
3696 echo "$as_me:$LINENO: result: done" >&5
3697 echo "${ECHO_T}done" >&6
3698
3699 LDAP_LIBS=
3700 BDB_LIBS=
3701 LTHREAD_LIBS=
3702 LUTIL_LIBS=
3703
3704 SLAPD_LIBS=
3705
3706 BUILD_SLAPD=no
3707
3708 BUILD_THREAD=no
3709
3710 BUILD_SLAPI=no
3711 SLAPD_SLAPI_DEPEND=
3712
3713 BUILD_BDB=no
3714 BUILD_DNSSRV=no
3715 BUILD_HDB=no
3716 BUILD_LDAP=no
3717 BUILD_META=no
3718 BUILD_MONITOR=no
3719 BUILD_NULL=no
3720 BUILD_PASSWD=no
3721 BUILD_PERL=no
3722 BUILD_RELAY=no
3723 BUILD_SHELL=no
3724 BUILD_SQL=no
3725
3726 BUILD_ACCESSLOG=no
3727 BUILD_AUDITLOG=no
3728 BUILD_CONSTRAINT=no
3729 BUILD_DDS=no
3730 BUILD_DENYOP=no
3731 BUILD_DYNGROUP=no
3732 BUILD_DYNLIST=no
3733 BUILD_LASTMOD=no
3734 BUILD_PPOLICY=no
3735 BUILD_PROXYCACHE=no
3736 BUILD_REFINT=no
3737 BUILD_RETCODE=no
3738 BUILD_RWM=no
3739 BUILD_SEQMOD=no
3740 BUILD_SYNCPROV=no
3741 BUILD_TRANSLUCENT=no
3742 BUILD_UNIQUE=no
3743 BUILD_VALSORT=no
3744
3745 SLAPD_STATIC_OVERLAYS=
3746 SLAPD_DYNAMIC_OVERLAYS=
3747
3748 SLAPD_MODULES_LDFLAGS=
3749 SLAPD_MODULES_CPPFLAGS=
3750
3751 SLAPD_STATIC_BACKENDS=back-ldif
3752 SLAPD_DYNAMIC_BACKENDS=
3753
3754 SLAPD_PERL_LDFLAGS=
3755 MOD_PERL_LDFLAGS=
3756 PERL_CPPFLAGS=
3757
3758 SLAPD_SQL_LDFLAGS=
3759 SLAPD_SQL_LIBS=
3760 SLAPD_SQL_INCLUDES=
3761
3762 KRB4_LIBS=
3763 KRB5_LIBS=
3764 SASL_LIBS=
3765 TLS_LIBS=
3766 MODULES_LIBS=
3767 SLAPI_LIBS=
3768 LIBSLAPI=
3769 LIBSLAPITOOLS=
3770 AUTH_LIBS=
3771 ICU_LIBS=
3772
3773 SLAPD_SLP_LIBS=
3774 SLAPD_GMP_LIBS=
3775
3776
3777
3778 cat >>confdefs.h <<\_ACEOF
3779 #define HAVE_MKVERSION 1
3780 _ACEOF
3781
3782
3783
3784
3785 ol_aix_threads=no
3786 case "$target" in
3787 *-*-aix*)       if test -z "$CC" ; then
3788                 case "$ol_with_threads" in
3789                 auto | yes |  posix) ol_aix_threads=yes ;;
3790                 esac
3791         fi
3792 ;;
3793 esac
3794
3795 if test $ol_aix_threads = yes ; then
3796         if test -z "${CC}" ; then
3797                 for ac_prog in cc_r xlc_r cc
3798 do
3799   # Extract the first word of "$ac_prog", so it can be a program name with args.
3800 set dummy $ac_prog; ac_word=$2
3801 echo "$as_me:$LINENO: checking for $ac_word" >&5
3802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3803 if test "${ac_cv_prog_CC+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   if test -n "$CC"; then
3807   ac_cv_prog_CC="$CC" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3811 do
3812   IFS=$as_save_IFS
3813   test -z "$as_dir" && as_dir=.
3814   for ac_exec_ext in '' $ac_executable_extensions; do
3815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816     ac_cv_prog_CC="$ac_prog"
3817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818     break 2
3819   fi
3820 done
3821 done
3822
3823 fi
3824 fi
3825 CC=$ac_cv_prog_CC
3826 if test -n "$CC"; then
3827   echo "$as_me:$LINENO: result: $CC" >&5
3828 echo "${ECHO_T}$CC" >&6
3829 else
3830   echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834   test -n "$CC" && break
3835 done
3836
3837
3838                 if test "$CC" = cc ; then
3839                                                 if test $ol_with_threads != auto ; then
3840                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3841 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3842    { (exit 1); exit 1; }; }
3843                         else
3844                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3845 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3846                         fi
3847                         ol_with_threads=no
3848                 fi
3849         fi
3850
3851         case ${CC} in cc_r | xlc_r)
3852                 ol_with_threads=posix
3853                 ol_cv_pthread_create=yes
3854                 ;;
3855         esac
3856 fi
3857
3858 if test -z "${CC}"; then
3859         for ac_prog in cc gcc
3860 do
3861   # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 echo "$as_me:$LINENO: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3865 if test "${ac_cv_prog_CC+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   if test -n "$CC"; then
3869   ac_cv_prog_CC="$CC" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874   IFS=$as_save_IFS
3875   test -z "$as_dir" && as_dir=.
3876   for ac_exec_ext in '' $ac_executable_extensions; do
3877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878     ac_cv_prog_CC="$ac_prog"
3879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880     break 2
3881   fi
3882 done
3883 done
3884
3885 fi
3886 fi
3887 CC=$ac_cv_prog_CC
3888 if test -n "$CC"; then
3889   echo "$as_me:$LINENO: result: $CC" >&5
3890 echo "${ECHO_T}$CC" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896   test -n "$CC" && break
3897 done
3898 test -n "$CC" || CC="missing"
3899
3900
3901         if test "${CC}" = "missing" ; then
3902                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3903 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3904    { (exit 1); exit 1; }; }
3905         fi
3906 fi
3907
3908 if test -z "${AR}"; then
3909         for ac_prog in ar gar
3910 do
3911   # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_AR+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$AR"; then
3919   ac_cv_prog_AR="$AR" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_AR="$ac_prog"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 AR=$ac_cv_prog_AR
3938 if test -n "$AR"; then
3939   echo "$as_me:$LINENO: result: $AR" >&5
3940 echo "${ECHO_T}$AR" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946   test -n "$AR" && break
3947 done
3948 test -n "$AR" || AR="missing"
3949
3950
3951         if test "${AR}" = "missing" ; then
3952                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3953 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
3954    { (exit 1); exit 1; }; }
3955         fi
3956 fi
3957
3958
3959
3960
3961
3962 # Check whether --enable-fast-install or --disable-fast-install was given.
3963 if test "${enable_fast_install+set}" = set; then
3964   enableval="$enable_fast_install"
3965   p=${PACKAGE-default}
3966     case $enableval in
3967     yes) enable_fast_install=yes ;;
3968     no) enable_fast_install=no ;;
3969     *)
3970       enable_fast_install=no
3971       # Look at the argument we got.  We use all the common list separators.
3972       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3973       for pkg in $enableval; do
3974         IFS="$lt_save_ifs"
3975         if test "X$pkg" = "X$p"; then
3976           enable_fast_install=yes
3977         fi
3978       done
3979       IFS="$lt_save_ifs"
3980       ;;
3981     esac
3982 else
3983   enable_fast_install=yes
3984 fi;
3985
3986 DEPDIR="${am__leading_dot}deps"
3987
3988           ac_config_commands="$ac_config_commands depfiles"
3989
3990
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994         @echo done
3995 .PHONY: am__doit
3996 END
3997 # If we don't find an include directive, just comment out the code.
3998 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3999 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # We grep out `Entering directory' and `Leaving directory'
4006 # messages which can occur if `w' ends up in MAKEFLAGS.
4007 # In particular we don't look at `^make:' because GNU make might
4008 # be invoked under some other name (usually "gmake"), in which
4009 # case it prints its new name instead of `make'.
4010 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4011    am__include=include
4012    am__quote=
4013    _am_result=GNU
4014 fi
4015 # Now try BSD make style include.
4016 if test "$am__include" = "#"; then
4017    echo '.include "confinc"' > confmf
4018    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4019       am__include=.include
4020       am__quote="\""
4021       _am_result=BSD
4022    fi
4023 fi
4024
4025
4026 echo "$as_me:$LINENO: result: $_am_result" >&5
4027 echo "${ECHO_T}$_am_result" >&6
4028 rm -f confinc confmf
4029
4030 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then
4032   enableval="$enable_dependency_tracking"
4033
4034 fi;
4035 if test "x$enable_dependency_tracking" != xno; then
4036   am_depcomp="$ac_aux_dir/depcomp"
4037   AMDEPBACKSLASH='\'
4038 fi
4039
4040
4041 if test "x$enable_dependency_tracking" != xno; then
4042   AMDEP_TRUE=
4043   AMDEP_FALSE='#'
4044 else
4045   AMDEP_TRUE='#'
4046   AMDEP_FALSE=
4047 fi
4048
4049
4050
4051 ac_ext=c
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 if test -n "$ac_tool_prefix"; then
4057   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4058 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4059 echo "$as_me:$LINENO: checking for $ac_word" >&5
4060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061 if test "${ac_cv_prog_CC+set}" = set; then
4062   echo $ECHO_N "(cached) $ECHO_C" >&6
4063 else
4064   if test -n "$CC"; then
4065   ac_cv_prog_CC="$CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_exec_ext in '' $ac_executable_extensions; do
4073   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076     break 2
4077   fi
4078 done
4079 done
4080
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085   echo "$as_me:$LINENO: result: $CC" >&5
4086 echo "${ECHO_T}$CC" >&6
4087 else
4088   echo "$as_me:$LINENO: result: no" >&5
4089 echo "${ECHO_T}no" >&6
4090 fi
4091
4092 fi
4093 if test -z "$ac_cv_prog_CC"; then
4094   ac_ct_CC=$CC
4095   # Extract the first word of "gcc", so it can be a program name with args.
4096 set dummy gcc; ac_word=$2
4097 echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4100   echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102   if test -n "$ac_ct_CC"; then
4103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110   for ac_exec_ext in '' $ac_executable_extensions; do
4111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112     ac_cv_prog_ac_ct_CC="gcc"
4113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117 done
4118
4119 fi
4120 fi
4121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4122 if test -n "$ac_ct_CC"; then
4123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4124 echo "${ECHO_T}$ac_ct_CC" >&6
4125 else
4126   echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6
4128 fi
4129
4130   CC=$ac_ct_CC
4131 else
4132   CC="$ac_cv_prog_CC"
4133 fi
4134
4135 if test -z "$CC"; then
4136   if test -n "$ac_tool_prefix"; then
4137   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4138 set dummy ${ac_tool_prefix}cc; ac_word=$2
4139 echo "$as_me:$LINENO: checking for $ac_word" >&5
4140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4141 if test "${ac_cv_prog_CC+set}" = set; then
4142   echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144   if test -n "$CC"; then
4145   ac_cv_prog_CC="$CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150   IFS=$as_save_IFS
4151   test -z "$as_dir" && as_dir=.
4152   for ac_exec_ext in '' $ac_executable_extensions; do
4153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4154     ac_cv_prog_CC="${ac_tool_prefix}cc"
4155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4156     break 2
4157   fi
4158 done
4159 done
4160
4161 fi
4162 fi
4163 CC=$ac_cv_prog_CC
4164 if test -n "$CC"; then
4165   echo "$as_me:$LINENO: result: $CC" >&5
4166 echo "${ECHO_T}$CC" >&6
4167 else
4168   echo "$as_me:$LINENO: result: no" >&5
4169 echo "${ECHO_T}no" >&6
4170 fi
4171
4172 fi
4173 if test -z "$ac_cv_prog_CC"; then
4174   ac_ct_CC=$CC
4175   # Extract the first word of "cc", so it can be a program name with args.
4176 set dummy cc; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   if test -n "$ac_ct_CC"; then
4183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   for ac_exec_ext in '' $ac_executable_extensions; do
4191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_ac_ct_CC="cc"
4193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197 done
4198
4199 fi
4200 fi
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6
4205 else
4206   echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208 fi
4209
4210   CC=$ac_ct_CC
4211 else
4212   CC="$ac_cv_prog_CC"
4213 fi
4214
4215 fi
4216 if test -z "$CC"; then
4217   # Extract the first word of "cc", so it can be a program name with args.
4218 set dummy cc; ac_word=$2
4219 echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4221 if test "${ac_cv_prog_CC+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   if test -n "$CC"; then
4225   ac_cv_prog_CC="$CC" # Let the user override the test.
4226 else
4227   ac_prog_rejected=no
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4236        ac_prog_rejected=yes
4237        continue
4238      fi
4239     ac_cv_prog_CC="cc"
4240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244 done
4245
4246 if test $ac_prog_rejected = yes; then
4247   # We found a bogon in the path, so make sure we never use it.
4248   set dummy $ac_cv_prog_CC
4249   shift
4250   if test $# != 0; then
4251     # We chose a different compiler from the bogus one.
4252     # However, it has the same basename, so the bogon will be chosen
4253     # first if we set CC to just the basename; use the full file name.
4254     shift
4255     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4256   fi
4257 fi
4258 fi
4259 fi
4260 CC=$ac_cv_prog_CC
4261 if test -n "$CC"; then
4262   echo "$as_me:$LINENO: result: $CC" >&5
4263 echo "${ECHO_T}$CC" >&6
4264 else
4265   echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269 fi
4270 if test -z "$CC"; then
4271   if test -n "$ac_tool_prefix"; then
4272   for ac_prog in cl
4273   do
4274     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_CC+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$CC"; then
4282   ac_cv_prog_CC="$CC" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298 fi
4299 fi
4300 CC=$ac_cv_prog_CC
4301 if test -n "$CC"; then
4302   echo "$as_me:$LINENO: result: $CC" >&5
4303 echo "${ECHO_T}$CC" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309     test -n "$CC" && break
4310   done
4311 fi
4312 if test -z "$CC"; then
4313   ac_ct_CC=$CC
4314   for ac_prog in cl
4315 do
4316   # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$ac_ct_CC"; then
4324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_ac_ct_CC="$ac_prog"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340 fi
4341 fi
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4345 echo "${ECHO_T}$ac_ct_CC" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351   test -n "$ac_ct_CC" && break
4352 done
4353
4354   CC=$ac_ct_CC
4355 fi
4356
4357 fi
4358
4359
4360 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4361 See \`config.log' for more details." >&5
4362 echo "$as_me: error: no acceptable C compiler found in \$PATH
4363 See \`config.log' for more details." >&2;}
4364    { (exit 1); exit 1; }; }
4365
4366 # Provide some information about the compiler.
4367 echo "$as_me:$LINENO:" \
4368      "checking for C compiler version" >&5
4369 ac_compiler=`set X $ac_compile; echo $2`
4370 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4371   (eval $ac_compiler --version </dev/null >&5) 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }
4375 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4376   (eval $ac_compiler -v </dev/null >&5) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }
4380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4381   (eval $ac_compiler -V </dev/null >&5) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }
4385
4386 cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h.  */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h.  */
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 ac_clean_files_save=$ac_clean_files
4402 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4403 # Try to create an executable without -o first, disregard a.out.
4404 # It will help us diagnose broken compilers, and finding out an intuition
4405 # of exeext.
4406 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4407 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4408 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4410   (eval $ac_link_default) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; then
4414   # Find the output, starting from the most likely.  This scheme is
4415 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4416 # resort.
4417
4418 # Be careful to initialize this variable, since it used to be cached.
4419 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4420 ac_cv_exeext=
4421 # b.out is created by i960 compilers.
4422 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4423 do
4424   test -f "$ac_file" || continue
4425   case $ac_file in
4426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4427         ;;
4428     conftest.$ac_ext )
4429         # This is the source file.
4430         ;;
4431     [ab].out )
4432         # We found the default executable, but exeext='' is most
4433         # certainly right.
4434         break;;
4435     *.* )
4436         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4437         # FIXME: I believe we export ac_cv_exeext for Libtool,
4438         # but it would be cool to find out if it's true.  Does anybody
4439         # maintain Libtool? --akim.
4440         export ac_cv_exeext
4441         break;;
4442     * )
4443         break;;
4444   esac
4445 done
4446 else
4447   echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4451 See \`config.log' for more details." >&5
4452 echo "$as_me: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&2;}
4454    { (exit 77); exit 77; }; }
4455 fi
4456
4457 ac_exeext=$ac_cv_exeext
4458 echo "$as_me:$LINENO: result: $ac_file" >&5
4459 echo "${ECHO_T}$ac_file" >&6
4460
4461 # Check the compiler produces executables we can run.  If not, either
4462 # the compiler is broken, or we cross compile.
4463 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468   if { ac_try='./$ac_file'
4469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470   (eval $ac_try) 2>&5
4471   ac_status=$?
4472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473   (exit $ac_status); }; }; then
4474     cross_compiling=no
4475   else
4476     if test "$cross_compiling" = maybe; then
4477         cross_compiling=yes
4478     else
4479         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4480 If you meant to cross compile, use \`--host'.
4481 See \`config.log' for more details." >&5
4482 echo "$as_me: error: cannot run C compiled programs.
4483 If you meant to cross compile, use \`--host'.
4484 See \`config.log' for more details." >&2;}
4485    { (exit 1); exit 1; }; }
4486     fi
4487   fi
4488 fi
4489 echo "$as_me:$LINENO: result: yes" >&5
4490 echo "${ECHO_T}yes" >&6
4491
4492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4493 ac_clean_files=$ac_clean_files_save
4494 # Check the compiler produces executables we can run.  If not, either
4495 # the compiler is broken, or we cross compile.
4496 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4498 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4499 echo "${ECHO_T}$cross_compiling" >&6
4500
4501 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504   (eval $ac_link) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; then
4508   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4510 # work properly (i.e., refer to `conftest.exe'), while it won't with
4511 # `rm'.
4512 for ac_file in conftest.exe conftest conftest.*; do
4513   test -f "$ac_file" || continue
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4516     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4517           export ac_cv_exeext
4518           break;;
4519     * ) break;;
4520   esac
4521 done
4522 else
4523   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4524 See \`config.log' for more details." >&5
4525 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4526 See \`config.log' for more details." >&2;}
4527    { (exit 1); exit 1; }; }
4528 fi
4529
4530 rm -f conftest$ac_cv_exeext
4531 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4532 echo "${ECHO_T}$ac_cv_exeext" >&6
4533
4534 rm -f conftest.$ac_ext
4535 EXEEXT=$ac_cv_exeext
4536 ac_exeext=$EXEEXT
4537 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4538 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4539 if test "${ac_cv_objext+set}" = set; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548
4549 int
4550 main ()
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.o conftest.obj
4558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559   (eval $ac_compile) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; then
4563   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4564   case $ac_file in
4565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4566     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567        break;;
4568   esac
4569 done
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details." >&5
4576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4577 See \`config.log' for more details." >&2;}
4578    { (exit 1); exit 1; }; }
4579 fi
4580
4581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4582 fi
4583 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4584 echo "${ECHO_T}$ac_cv_objext" >&6
4585 OBJEXT=$ac_cv_objext
4586 ac_objext=$OBJEXT
4587 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592   cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h.  */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h.  */
4598
4599 int
4600 main ()
4601 {
4602 #ifndef __GNUC__
4603        choke me
4604 #endif
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -z "$ac_c_werror_flag"
4620                          || test ! -s conftest.err'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_compiler_gnu=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_compiler_gnu=no
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4641
4642 fi
4643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4645 GCC=`test $ac_compiler_gnu = yes && echo yes`
4646 ac_test_CFLAGS=${CFLAGS+set}
4647 ac_save_CFLAGS=$CFLAGS
4648 CFLAGS="-g"
4649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4651 if test "${ac_cv_prog_cc_g+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671   (eval $ac_compile) 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } &&
4678          { ac_try='test -z "$ac_c_werror_flag"
4679                          || test ! -s conftest.err'
4680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681   (eval $ac_try) 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; } &&
4685          { ac_try='test -s conftest.$ac_objext'
4686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687   (eval $ac_try) 2>&5
4688   ac_status=$?
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); }; }; then
4691   ac_cv_prog_cc_g=yes
4692 else
4693   echo "$as_me: failed program was:" >&5
4694 sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_cv_prog_cc_g=no
4697 fi
4698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4702 if test "$ac_test_CFLAGS" = set; then
4703   CFLAGS=$ac_save_CFLAGS
4704 elif test $ac_cv_prog_cc_g = yes; then
4705   if test "$GCC" = yes; then
4706     CFLAGS="-g -O2"
4707   else
4708     CFLAGS="-g"
4709   fi
4710 else
4711   if test "$GCC" = yes; then
4712     CFLAGS="-O2"
4713   else
4714     CFLAGS=
4715   fi
4716 fi
4717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   ac_cv_prog_cc_stdc=no
4723 ac_save_CC=$CC
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <stdarg.h>
4731 #include <stdio.h>
4732 #include <sys/types.h>
4733 #include <sys/stat.h>
4734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4735 struct buf { int x; };
4736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4737 static char *e (p, i)
4738      char **p;
4739      int i;
4740 {
4741   return p[i];
4742 }
4743 static char *f (char * (*g) (char **, int), char **p, ...)
4744 {
4745   char *s;
4746   va_list v;
4747   va_start (v,p);
4748   s = g (p, va_arg (v,int));
4749   va_end (v);
4750   return s;
4751 }
4752
4753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4754    function prototypes and stuff, but not '\xHH' hex character constants.
4755    These don't provoke an error unfortunately, instead are silently treated
4756    as 'x'.  The following induces an error, until -std1 is added to get
4757    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4758    array size at least.  It's necessary to write '\x00'==0 to get something
4759    that's true only with -std1.  */
4760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4761
4762 int test (int i, double x);
4763 struct s1 {int (*f) (int a);};
4764 struct s2 {int (*f) (double a);};
4765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4766 int argc;
4767 char **argv;
4768 int
4769 main ()
4770 {
4771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 # Don't try gcc -ansi; that turns off useful extensions and
4777 # breaks some systems' header files.
4778 # AIX                   -qlanglvl=ansi
4779 # Ultrix and OSF/1      -std1
4780 # HP-UX 10.20 and later -Ae
4781 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4782 # SVR4                  -Xc -D__EXTENSIONS__
4783 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4784 do
4785   CC="$ac_save_CC $ac_arg"
4786   rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -z "$ac_c_werror_flag"
4796                          || test ! -s conftest.err'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   ac_cv_prog_cc_stdc=$ac_arg
4809 break
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 fi
4815 rm -f conftest.err conftest.$ac_objext
4816 done
4817 rm -f conftest.$ac_ext conftest.$ac_objext
4818 CC=$ac_save_CC
4819
4820 fi
4821
4822 case "x$ac_cv_prog_cc_stdc" in
4823   x|xno)
4824     echo "$as_me:$LINENO: result: none needed" >&5
4825 echo "${ECHO_T}none needed" >&6 ;;
4826   *)
4827     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4828 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4829     CC="$CC $ac_cv_prog_cc_stdc" ;;
4830 esac
4831
4832 # Some people use a C++ compiler to compile C.  Since we use `exit',
4833 # in C++ we need to declare it.  In case someone uses the same compiler
4834 # for both compiling C and C++ we need to have the C++ compiler decide
4835 # the declaration of exit, since it's the most demanding environment.
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #ifndef __cplusplus
4838   choke me
4839 #endif
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag"
4851                          || test ! -s conftest.err'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; } &&
4857          { ac_try='test -s conftest.$ac_objext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   for ac_declaration in \
4864    '' \
4865    'extern "C" void std::exit (int) throw (); using std::exit;' \
4866    'extern "C" void std::exit (int); using std::exit;' \
4867    'extern "C" void exit (int) throw ();' \
4868    'extern "C" void exit (int);' \
4869    'void exit (int);'
4870 do
4871   cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h.  */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h.  */
4877 $ac_declaration
4878 #include <stdlib.h>
4879 int
4880 main ()
4881 {
4882 exit (42);
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889   (eval $ac_compile) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest.$ac_objext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   :
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 continue
4915 fi
4916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 $ac_declaration
4924 int
4925 main ()
4926 {
4927 exit (42);
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   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 conftest.$ac_ext
4961 done
4962 rm -f conftest*
4963 if test -n "$ac_declaration"; then
4964   echo '#ifdef __cplusplus' >>confdefs.h
4965   echo $ac_declaration      >>confdefs.h
4966   echo '#endif'             >>confdefs.h
4967 fi
4968
4969 else
4970   echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4972
4973 fi
4974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981 depcc="$CC"   am_compiler_list=
4982
4983 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4984 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4985 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4989   # We make a subdir and do the tests there.  Otherwise we can end up
4990   # making bogus files that we don't know about and never remove.  For
4991   # instance it was reported that on HP-UX the gcc test will end up
4992   # making a dummy file named `D' -- because `-MD' means `put the output
4993   # in D'.
4994   mkdir conftest.dir
4995   # Copy depcomp to subdir because otherwise we won't find it if we're
4996   # using a relative directory.
4997   cp "$am_depcomp" conftest.dir
4998   cd conftest.dir
4999   # We will build objects and dependencies in a subdirectory because
5000   # it helps to detect inapplicable dependency modes.  For instance
5001   # both Tru64's cc and ICC support -MD to output dependencies as a
5002   # side effect of compilation, but ICC will put the dependencies in
5003   # the current directory while Tru64 will put them in the object
5004   # directory.
5005   mkdir sub
5006
5007   am_cv_CC_dependencies_compiler_type=none
5008   if test "$am_compiler_list" = ""; then
5009      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5010   fi
5011   for depmode in $am_compiler_list; do
5012     # Setup a source with many dependencies, because some compilers
5013     # like to wrap large dependency lists on column 80 (with \), and
5014     # we should not choose a depcomp mode which is confused by this.
5015     #
5016     # We need to recreate these files for each test, as the compiler may
5017     # overwrite some of them when testing with obscure command lines.
5018     # This happens at least with the AIX C compiler.
5019     : > sub/conftest.c
5020     for i in 1 2 3 4 5 6; do
5021       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5022       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5023       # Solaris 8's {/usr,}/bin/sh.
5024       touch sub/conftst$i.h
5025     done
5026     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5027
5028     case $depmode in
5029     nosideeffect)
5030       # after this tag, mechanisms are not by side-effect, so they'll
5031       # only be used when explicitly requested
5032       if test "x$enable_dependency_tracking" = xyes; then
5033         continue
5034       else
5035         break
5036       fi
5037       ;;
5038     none) break ;;
5039     esac
5040     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5041     # mode.  It turns out that the SunPro C++ compiler does not properly
5042     # handle `-M -o', and we need to detect this.
5043     if depmode=$depmode \
5044        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5045        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5047          >/dev/null 2>conftest.err &&
5048        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5050        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051       # icc doesn't choke on unknown options, it will just issue warnings
5052       # or remarks (even with -Werror).  So we grep stderr for any message
5053       # that says an option was ignored or not supported.
5054       # When given -MP, icc 7.0 and 7.1 complain thusly:
5055       #   icc: Command line warning: ignoring option '-M'; no argument required
5056       # The diagnosis changed in icc 8.0:
5057       #   icc: Command line remark: option '-MP' not supported
5058       if (grep 'ignoring option' conftest.err ||
5059           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060         am_cv_CC_dependencies_compiler_type=$depmode
5061         break
5062       fi
5063     fi
5064   done
5065
5066   cd ..
5067   rm -rf conftest.dir
5068 else
5069   am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077
5078
5079 if
5080   test "x$enable_dependency_tracking" != xno \
5081   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5082   am__fastdepCC_TRUE=
5083   am__fastdepCC_FALSE='#'
5084 else
5085   am__fastdepCC_TRUE='#'
5086   am__fastdepCC_FALSE=
5087 fi
5088
5089
5090 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5091 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5092 if test "${lt_cv_path_SED+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   # Loop through the user's path and test for sed and gsed.
5096 # Then use that list of sed's as ones to test for truncation.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for lt_ac_prog in sed gsed; do
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5105         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5106       fi
5107     done
5108   done
5109 done
5110 lt_ac_max=0
5111 lt_ac_count=0
5112 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5113 # along with /bin/sed that truncates output.
5114 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5115   test ! -f $lt_ac_sed && continue
5116   cat /dev/null > conftest.in
5117   lt_ac_count=0
5118   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5119   # Check for GNU sed and select it if it is found.
5120   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5121     lt_cv_path_SED=$lt_ac_sed
5122     break
5123   fi
5124   while true; do
5125     cat conftest.in conftest.in >conftest.tmp
5126     mv conftest.tmp conftest.in
5127     cp conftest.in conftest.nl
5128     echo >>conftest.nl
5129     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5130     cmp -s conftest.out conftest.nl || break
5131     # 10000 chars as input seems more than enough
5132     test $lt_ac_count -gt 10 && break
5133     lt_ac_count=`expr $lt_ac_count + 1`
5134     if test $lt_ac_count -gt $lt_ac_max; then
5135       lt_ac_max=$lt_ac_count
5136       lt_cv_path_SED=$lt_ac_sed
5137     fi
5138   done
5139 done
5140
5141 fi
5142
5143 SED=$lt_cv_path_SED
5144 echo "$as_me:$LINENO: result: $SED" >&5
5145 echo "${ECHO_T}$SED" >&6
5146
5147 echo "$as_me:$LINENO: checking for egrep" >&5
5148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5149 if test "${ac_cv_prog_egrep+set}" = set; then
5150   echo $ECHO_N "(cached) $ECHO_C" >&6
5151 else
5152   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5153     then ac_cv_prog_egrep='grep -E'
5154     else ac_cv_prog_egrep='egrep'
5155     fi
5156 fi
5157 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5158 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5159  EGREP=$ac_cv_prog_egrep
5160
5161
5162
5163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5164 if test "${with_gnu_ld+set}" = set; then
5165   withval="$with_gnu_ld"
5166   test "$withval" = no || with_gnu_ld=yes
5167 else
5168   with_gnu_ld=no
5169 fi;
5170 ac_prog=ld
5171 if test "$GCC" = yes; then
5172   # Check if gcc -print-prog-name=ld gives a path.
5173   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5174 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5175   case $host in
5176   *-*-mingw*)
5177     # gcc leaves a trailing carriage return which upsets mingw
5178     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5179   *)
5180     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5181   esac
5182   case $ac_prog in
5183     # Accept absolute paths.
5184     [\\/]* | ?:[\\/]*)
5185       re_direlt='/[^/][^/]*/\.\./'
5186       # Canonicalize the pathname of ld
5187       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5188       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5189         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5190       done
5191       test -z "$LD" && LD="$ac_prog"
5192       ;;
5193   "")
5194     # If it fails, then pretend we aren't using GCC.
5195     ac_prog=ld
5196     ;;
5197   *)
5198     # If it is relative, then search for the first ld in PATH.
5199     with_gnu_ld=unknown
5200     ;;
5201   esac
5202 elif test "$with_gnu_ld" = yes; then
5203   echo "$as_me:$LINENO: checking for GNU ld" >&5
5204 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5205 else
5206   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5207 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5208 fi
5209 if test "${lt_cv_path_LD+set}" = set; then
5210   echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212   if test -z "$LD"; then
5213   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5214   for ac_dir in $PATH; do
5215     IFS="$lt_save_ifs"
5216     test -z "$ac_dir" && ac_dir=.
5217     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5218       lt_cv_path_LD="$ac_dir/$ac_prog"
5219       # Check to see if the program is GNU ld.  I'd rather use --version,
5220       # but apparently some variants of GNU ld only accept -v.
5221       # Break only if it was the GNU/non-GNU ld that we prefer.
5222       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5223       *GNU* | *'with BFD'*)
5224         test "$with_gnu_ld" != no && break
5225         ;;
5226       *)
5227         test "$with_gnu_ld" != yes && break
5228         ;;
5229       esac
5230     fi
5231   done
5232   IFS="$lt_save_ifs"
5233 else
5234   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235 fi
5236 fi
5237
5238 LD="$lt_cv_path_LD"
5239 if test -n "$LD"; then
5240   echo "$as_me:$LINENO: result: $LD" >&5
5241 echo "${ECHO_T}$LD" >&6
5242 else
5243   echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6
5245 fi
5246 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5247 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5248    { (exit 1); exit 1; }; }
5249 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5250 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5251 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5255 case `$LD -v 2>&1 </dev/null` in
5256 *GNU* | *'with BFD'*)
5257   lt_cv_prog_gnu_ld=yes
5258   ;;
5259 *)
5260   lt_cv_prog_gnu_ld=no
5261   ;;
5262 esac
5263 fi
5264 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5265 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5266 with_gnu_ld=$lt_cv_prog_gnu_ld
5267
5268
5269 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5270 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5271 if test "${lt_cv_ld_reload_flag+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   lt_cv_ld_reload_flag='-r'
5275 fi
5276 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5277 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5278 reload_flag=$lt_cv_ld_reload_flag
5279 case $reload_flag in
5280 "" | " "*) ;;
5281 *) reload_flag=" $reload_flag" ;;
5282 esac
5283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5284 case $host_os in
5285   darwin*)
5286     if test "$GCC" = yes; then
5287       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5288     else
5289       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5290     fi
5291     ;;
5292 esac
5293
5294 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5295 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5296 if test "${lt_cv_path_NM+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   if test -n "$NM"; then
5300   # Let the user override the test.
5301   lt_cv_path_NM="$NM"
5302 else
5303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5304   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5305     IFS="$lt_save_ifs"
5306     test -z "$ac_dir" && ac_dir=.
5307     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5308     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5309       # Check to see if the nm accepts a BSD-compat flag.
5310       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5311       #   nm: unknown option "B" ignored
5312       # Tru64's nm complains that /dev/null is an invalid object file
5313       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5314       */dev/null* | *'Invalid file or object type'*)
5315         lt_cv_path_NM="$tmp_nm -B"
5316         break
5317         ;;
5318       *)
5319         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5320         */dev/null*)
5321           lt_cv_path_NM="$tmp_nm -p"
5322           break
5323           ;;
5324         *)
5325           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5326           continue # so that we can try to find one that supports BSD flags
5327           ;;
5328         esac
5329       esac
5330     fi
5331   done
5332   IFS="$lt_save_ifs"
5333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5334 fi
5335 fi
5336 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5337 echo "${ECHO_T}$lt_cv_path_NM" >&6
5338 NM="$lt_cv_path_NM"
5339
5340 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5341 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5342 LN_S=$as_ln_s
5343 if test "$LN_S" = "ln -s"; then
5344   echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6
5346 else
5347   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5348 echo "${ECHO_T}no, using $LN_S" >&6
5349 fi
5350
5351 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5352 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5353 if test "${lt_cv_deplibs_check_method+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   lt_cv_file_magic_cmd='$MAGIC_CMD'
5357 lt_cv_file_magic_test_file=
5358 lt_cv_deplibs_check_method='unknown'
5359 # Need to set the preceding variable on all platforms that support
5360 # interlibrary dependencies.
5361 # 'none' -- dependencies not supported.
5362 # `unknown' -- same as none, but documents that we really don't know.
5363 # 'pass_all' -- all dependencies passed with no checks.
5364 # 'test_compile' -- check by making test program.
5365 # 'file_magic [[regex]]' -- check by looking for files in library path
5366 # which responds to the $file_magic_cmd with a given extended regex.
5367 # If you have `file' or equivalent on your system and you're not sure
5368 # whether `pass_all' will *always* work, you probably want this one.
5369
5370 case $host_os in
5371 aix4* | aix5*)
5372   lt_cv_deplibs_check_method=pass_all
5373   ;;
5374
5375 beos*)
5376   lt_cv_deplibs_check_method=pass_all
5377   ;;
5378
5379 bsdi[45]*)
5380   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5381   lt_cv_file_magic_cmd='/usr/bin/file -L'
5382   lt_cv_file_magic_test_file=/shlib/libc.so
5383   ;;
5384
5385 cygwin*)
5386   # func_win32_libid is a shell function defined in ltmain.sh
5387   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5388   lt_cv_file_magic_cmd='func_win32_libid'
5389   ;;
5390
5391 mingw* | pw32*)
5392   # Base MSYS/MinGW do not provide the 'file' command needed by
5393   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5394   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5395   lt_cv_file_magic_cmd='$OBJDUMP -f'
5396   ;;
5397
5398 darwin* | rhapsody*)
5399   lt_cv_deplibs_check_method=pass_all
5400   ;;
5401
5402 freebsd* | kfreebsd*-gnu | dragonfly*)
5403   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5404     case $host_cpu in
5405     i*86 )
5406       # Not sure whether the presence of OpenBSD here was a mistake.
5407       # Let's accept both of them until this is cleared up.
5408       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5409       lt_cv_file_magic_cmd=/usr/bin/file
5410       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5411       ;;
5412     esac
5413   else
5414     lt_cv_deplibs_check_method=pass_all
5415   fi
5416   ;;
5417
5418 gnu*)
5419   lt_cv_deplibs_check_method=pass_all
5420   ;;
5421
5422 hpux10.20* | hpux11*)
5423   lt_cv_file_magic_cmd=/usr/bin/file
5424   case $host_cpu in
5425   ia64*)
5426     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5427     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5428     ;;
5429   hppa*64*)
5430     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]'
5431     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5432     ;;
5433   *)
5434     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5435     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5436     ;;
5437   esac
5438   ;;
5439
5440 irix5* | irix6* | nonstopux*)
5441   case $LD in
5442   *-32|*"-32 ") libmagic=32-bit;;
5443   *-n32|*"-n32 ") libmagic=N32;;
5444   *-64|*"-64 ") libmagic=64-bit;;
5445   *) libmagic=never-match;;
5446   esac
5447   lt_cv_deplibs_check_method=pass_all
5448   ;;
5449
5450 # This must be Linux ELF.
5451 linux*)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 netbsd*)
5456   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5457     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5458   else
5459     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460   fi
5461   ;;
5462
5463 newos6*)
5464   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5465   lt_cv_file_magic_cmd=/usr/bin/file
5466   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5467   ;;
5468
5469 nto-qnx*)
5470   lt_cv_deplibs_check_method=unknown
5471   ;;
5472
5473 openbsd*)
5474   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5475     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5476   else
5477     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5478   fi
5479   ;;
5480
5481 osf3* | osf4* | osf5*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 sco3.2v5*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 solaris*)
5490   lt_cv_deplibs_check_method=pass_all
5491   ;;
5492
5493 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5494   case $host_vendor in
5495   motorola)
5496     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]'
5497     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5498     ;;
5499   ncr)
5500     lt_cv_deplibs_check_method=pass_all
5501     ;;
5502   sequent)
5503     lt_cv_file_magic_cmd='/bin/file'
5504     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5505     ;;
5506   sni)
5507     lt_cv_file_magic_cmd='/bin/file'
5508     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5509     lt_cv_file_magic_test_file=/lib/libc.so
5510     ;;
5511   siemens)
5512     lt_cv_deplibs_check_method=pass_all
5513     ;;
5514   esac
5515   ;;
5516
5517 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520 esac
5521
5522 fi
5523 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5524 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5525 file_magic_cmd=$lt_cv_file_magic_cmd
5526 deplibs_check_method=$lt_cv_deplibs_check_method
5527 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5528
5529
5530
5531
5532 # If no C compiler was specified, use CC.
5533 LTCC=${LTCC-"$CC"}
5534
5535 # Allow CC to be a program name with arguments.
5536 compiler=$CC
5537
5538
5539 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5540 if test "${enable_libtool_lock+set}" = set; then
5541   enableval="$enable_libtool_lock"
5542
5543 fi;
5544 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5545
5546 # Some flags need to be propagated to the compiler or linker for good
5547 # libtool support.
5548 case $host in
5549 ia64-*-hpux*)
5550   # Find out which ABI we are using.
5551   echo 'int i;' > conftest.$ac_ext
5552   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5553   (eval $ac_compile) 2>&5
5554   ac_status=$?
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); }; then
5557     case `/usr/bin/file conftest.$ac_objext` in
5558     *ELF-32*)
5559       HPUX_IA64_MODE="32"
5560       ;;
5561     *ELF-64*)
5562       HPUX_IA64_MODE="64"
5563       ;;
5564     esac
5565   fi
5566   rm -rf conftest*
5567   ;;
5568 *-*-irix6*)
5569   # Find out which ABI we are using.
5570   echo '#line 5570 "configure"' > conftest.$ac_ext
5571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5572   (eval $ac_compile) 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }; then
5576    if test "$lt_cv_prog_gnu_ld" = yes; then
5577     case `/usr/bin/file conftest.$ac_objext` in
5578     *32-bit*)
5579       LD="${LD-ld} -melf32bsmip"
5580       ;;
5581     *N32*)
5582       LD="${LD-ld} -melf32bmipn32"
5583       ;;
5584     *64-bit*)
5585       LD="${LD-ld} -melf64bmip"
5586       ;;
5587     esac
5588    else
5589     case `/usr/bin/file conftest.$ac_objext` in
5590     *32-bit*)
5591       LD="${LD-ld} -32"
5592       ;;
5593     *N32*)
5594       LD="${LD-ld} -n32"
5595       ;;
5596     *64-bit*)
5597       LD="${LD-ld} -64"
5598       ;;
5599     esac
5600    fi
5601   fi
5602   rm -rf conftest*
5603   ;;
5604
5605 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5606   # Find out which ABI we are using.
5607   echo 'int i;' > conftest.$ac_ext
5608   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609   (eval $ac_compile) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; then
5613     case `/usr/bin/file conftest.o` in
5614     *32-bit*)
5615       case $host in
5616         x86_64-*linux*)
5617           LD="${LD-ld} -m elf_i386"
5618           ;;
5619         ppc64-*linux*|powerpc64-*linux*)
5620           LD="${LD-ld} -m elf32ppclinux"
5621           ;;
5622         s390x-*linux*)
5623           LD="${LD-ld} -m elf_s390"
5624           ;;
5625         sparc64-*linux*)
5626           LD="${LD-ld} -m elf32_sparc"
5627           ;;
5628       esac
5629       ;;
5630     *64-bit*)
5631       case $host in
5632         x86_64-*linux*)
5633           LD="${LD-ld} -m elf_x86_64"
5634           ;;
5635         ppc*-*linux*|powerpc*-*linux*)
5636           LD="${LD-ld} -m elf64ppc"
5637           ;;
5638         s390*-*linux*)
5639           LD="${LD-ld} -m elf64_s390"
5640           ;;
5641         sparc*-*linux*)
5642           LD="${LD-ld} -m elf64_sparc"
5643           ;;
5644       esac
5645       ;;
5646     esac
5647   fi
5648   rm -rf conftest*
5649   ;;
5650
5651 *-*-sco3.2v5*)
5652   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5653   SAVE_CFLAGS="$CFLAGS"
5654   CFLAGS="$CFLAGS -belf"
5655   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5656 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5657 if test "${lt_cv_cc_needs_belf+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   ac_ext=c
5661 ac_cpp='$CPP $CPPFLAGS'
5662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665
5666      cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } &&
5690          { ac_try='test -z "$ac_c_werror_flag"
5691                          || test ! -s conftest.err'
5692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693   (eval $ac_try) 2>&5
5694   ac_status=$?
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; } &&
5697          { ac_try='test -s conftest$ac_exeext'
5698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699   (eval $ac_try) 2>&5
5700   ac_status=$?
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); }; }; then
5703   lt_cv_cc_needs_belf=yes
5704 else
5705   echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708 lt_cv_cc_needs_belf=no
5709 fi
5710 rm -f conftest.err conftest.$ac_objext \
5711       conftest$ac_exeext conftest.$ac_ext
5712      ac_ext=c
5713 ac_cpp='$CPP $CPPFLAGS'
5714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5717
5718 fi
5719 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5720 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5721   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5722     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5723     CFLAGS="$SAVE_CFLAGS"
5724   fi
5725   ;;
5726 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5727   if test -n "$ac_tool_prefix"; then
5728   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5729 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5730 echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   if test -n "$DLLTOOL"; then
5736   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743   for ac_exec_ext in '' $ac_executable_extensions; do
5744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750 done
5751
5752 fi
5753 fi
5754 DLLTOOL=$ac_cv_prog_DLLTOOL
5755 if test -n "$DLLTOOL"; then
5756   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5757 echo "${ECHO_T}$DLLTOOL" >&6
5758 else
5759   echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5761 fi
5762
5763 fi
5764 if test -z "$ac_cv_prog_DLLTOOL"; then
5765   ac_ct_DLLTOOL=$DLLTOOL
5766   # Extract the first word of "dlltool", so it can be a program name with args.
5767 set dummy dlltool; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$ac_ct_DLLTOOL"; then
5774   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789
5790   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5791 fi
5792 fi
5793 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5794 if test -n "$ac_ct_DLLTOOL"; then
5795   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5796 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5797 else
5798   echo "$as_me:$LINENO: result: no" >&5
5799 echo "${ECHO_T}no" >&6
5800 fi
5801
5802   DLLTOOL=$ac_ct_DLLTOOL
5803 else
5804   DLLTOOL="$ac_cv_prog_DLLTOOL"
5805 fi
5806
5807   if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}as; ac_word=$2
5810 echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812 if test "${ac_cv_prog_AS+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   if test -n "$AS"; then
5816   ac_cv_prog_AS="$AS" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823   for ac_exec_ext in '' $ac_executable_extensions; do
5824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_prog_AS="${ac_tool_prefix}as"
5826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830 done
5831
5832 fi
5833 fi
5834 AS=$ac_cv_prog_AS
5835 if test -n "$AS"; then
5836   echo "$as_me:$LINENO: result: $AS" >&5
5837 echo "${ECHO_T}$AS" >&6
5838 else
5839   echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6
5841 fi
5842
5843 fi
5844 if test -z "$ac_cv_prog_AS"; then
5845   ac_ct_AS=$AS
5846   # Extract the first word of "as", so it can be a program name with args.
5847 set dummy as; ac_word=$2
5848 echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5850 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   if test -n "$ac_ct_AS"; then
5854   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for ac_exec_ext in '' $ac_executable_extensions; do
5862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863     ac_cv_prog_ac_ct_AS="as"
5864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865     break 2
5866   fi
5867 done
5868 done
5869
5870   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5871 fi
5872 fi
5873 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5874 if test -n "$ac_ct_AS"; then
5875   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5876 echo "${ECHO_T}$ac_ct_AS" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882   AS=$ac_ct_AS
5883 else
5884   AS="$ac_cv_prog_AS"
5885 fi
5886
5887   if test -n "$ac_tool_prefix"; then
5888   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5890 echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   if test -n "$OBJDUMP"; then
5896   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911
5912 fi
5913 fi
5914 OBJDUMP=$ac_cv_prog_OBJDUMP
5915 if test -n "$OBJDUMP"; then
5916   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5917 echo "${ECHO_T}$OBJDUMP" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923 fi
5924 if test -z "$ac_cv_prog_OBJDUMP"; then
5925   ac_ct_OBJDUMP=$OBJDUMP
5926   # Extract the first word of "objdump", so it can be a program name with args.
5927 set dummy objdump; ac_word=$2
5928 echo "$as_me:$LINENO: checking for $ac_word" >&5
5929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5930 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 else
5933   if test -n "$ac_ct_OBJDUMP"; then
5934   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939   IFS=$as_save_IFS
5940   test -z "$as_dir" && as_dir=.
5941   for ac_exec_ext in '' $ac_executable_extensions; do
5942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5943     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945     break 2
5946   fi
5947 done
5948 done
5949
5950   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5951 fi
5952 fi
5953 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954 if test -n "$ac_ct_OBJDUMP"; then
5955   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5956 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962   OBJDUMP=$ac_ct_OBJDUMP
5963 else
5964   OBJDUMP="$ac_cv_prog_OBJDUMP"
5965 fi
5966
5967   ;;
5968
5969 esac
5970
5971 need_locks="$enable_libtool_lock"
5972
5973
5974 ac_ext=c
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5980 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5981 # On Suns, sometimes $CPP names a directory.
5982 if test -n "$CPP" && test -d "$CPP"; then
5983   CPP=
5984 fi
5985 if test -z "$CPP"; then
5986   if test "${ac_cv_prog_CPP+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989       # Double quotes because CPP needs to be expanded
5990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5991     do
5992       ac_preproc_ok=false
5993 for ac_c_preproc_warn_flag in '' yes
5994 do
5995   # Use a header file that comes with gcc, so configuring glibc
5996   # with a fresh cross-compiler works.
5997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5998   # <limits.h> exists even on freestanding compilers.
5999   # On the NeXT, cc -E runs the code through the compiler's parser,
6000   # not just through cpp. "Syntax error" is here to catch this case.
6001   cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007 #ifdef __STDC__
6008 # include <limits.h>
6009 #else
6010 # include <assert.h>
6011 #endif
6012                      Syntax error
6013 _ACEOF
6014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } >/dev/null; then
6022   if test -s conftest.err; then
6023     ac_cpp_err=$ac_c_preproc_warn_flag
6024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025   else
6026     ac_cpp_err=
6027   fi
6028 else
6029   ac_cpp_err=yes
6030 fi
6031 if test -z "$ac_cpp_err"; then
6032   :
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037   # Broken: fails on valid input.
6038 continue
6039 fi
6040 rm -f conftest.err conftest.$ac_ext
6041
6042   # OK, works on sane cases.  Now check whether non-existent headers
6043   # can be detected and how.
6044   cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050 #include <ac_nonexistent.h>
6051 _ACEOF
6052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } >/dev/null; then
6060   if test -s conftest.err; then
6061     ac_cpp_err=$ac_c_preproc_warn_flag
6062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6063   else
6064     ac_cpp_err=
6065   fi
6066 else
6067   ac_cpp_err=yes
6068 fi
6069 if test -z "$ac_cpp_err"; then
6070   # Broken: success on invalid input.
6071 continue
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076   # Passes both tests.
6077 ac_preproc_ok=:
6078 break
6079 fi
6080 rm -f conftest.err conftest.$ac_ext
6081
6082 done
6083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6084 rm -f conftest.err conftest.$ac_ext
6085 if $ac_preproc_ok; then
6086   break
6087 fi
6088
6089     done
6090     ac_cv_prog_CPP=$CPP
6091
6092 fi
6093   CPP=$ac_cv_prog_CPP
6094 else
6095   ac_cv_prog_CPP=$CPP
6096 fi
6097 echo "$as_me:$LINENO: result: $CPP" >&5
6098 echo "${ECHO_T}$CPP" >&6
6099 ac_preproc_ok=false
6100 for ac_c_preproc_warn_flag in '' yes
6101 do
6102   # Use a header file that comes with gcc, so configuring glibc
6103   # with a fresh cross-compiler works.
6104   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6105   # <limits.h> exists even on freestanding compilers.
6106   # On the NeXT, cc -E runs the code through the compiler's parser,
6107   # not just through cpp. "Syntax error" is here to catch this case.
6108   cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119                      Syntax error
6120 _ACEOF
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123   ac_status=$?
6124   grep -v '^ *+' conftest.er1 >conftest.err
6125   rm -f conftest.er1
6126   cat conftest.err >&5
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); } >/dev/null; then
6129   if test -s conftest.err; then
6130     ac_cpp_err=$ac_c_preproc_warn_flag
6131     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6132   else
6133     ac_cpp_err=
6134   fi
6135 else
6136   ac_cpp_err=yes
6137 fi
6138 if test -z "$ac_cpp_err"; then
6139   :
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144   # Broken: fails on valid input.
6145 continue
6146 fi
6147 rm -f conftest.err conftest.$ac_ext
6148
6149   # OK, works on sane cases.  Now check whether non-existent headers
6150   # can be detected and how.
6151   cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 #include <ac_nonexistent.h>
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   # Broken: success on invalid input.
6178 continue
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183   # Passes both tests.
6184 ac_preproc_ok=:
6185 break
6186 fi
6187 rm -f conftest.err conftest.$ac_ext
6188
6189 done
6190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6191 rm -f conftest.err conftest.$ac_ext
6192 if $ac_preproc_ok; then
6193   :
6194 else
6195   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6196 See \`config.log' for more details." >&5
6197 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6198 See \`config.log' for more details." >&2;}
6199    { (exit 1); exit 1; }; }
6200 fi
6201
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207
6208
6209 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6211 if test "${ac_cv_header_stdc+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 #include <stdlib.h>
6221 #include <stdarg.h>
6222 #include <string.h>
6223 #include <float.h>
6224
6225 int
6226 main ()
6227 {
6228
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235   (eval $ac_compile) 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } &&
6242          { ac_try='test -z "$ac_c_werror_flag"
6243                          || test ! -s conftest.err'
6244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245   (eval $ac_try) 2>&5
6246   ac_status=$?
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); }; } &&
6249          { ac_try='test -s conftest.$ac_objext'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255   ac_cv_header_stdc=yes
6256 else
6257   echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cv_header_stdc=no
6261 fi
6262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263
6264 if test $ac_cv_header_stdc = yes; then
6265   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6266   cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272 #include <string.h>
6273
6274 _ACEOF
6275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276   $EGREP "memchr" >/dev/null 2>&1; then
6277   :
6278 else
6279   ac_cv_header_stdc=no
6280 fi
6281 rm -f conftest*
6282
6283 fi
6284
6285 if test $ac_cv_header_stdc = yes; then
6286   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6287   cat >conftest.$ac_ext <<_ACEOF
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 #include <stdlib.h>
6294
6295 _ACEOF
6296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297   $EGREP "free" >/dev/null 2>&1; then
6298   :
6299 else
6300   ac_cv_header_stdc=no
6301 fi
6302 rm -f conftest*
6303
6304 fi
6305
6306 if test $ac_cv_header_stdc = yes; then
6307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6308   if test "$cross_compiling" = yes; then
6309   :
6310 else
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 #include <ctype.h>
6318 #if ((' ' & 0x0FF) == 0x020)
6319 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6320 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6321 #else
6322 # define ISLOWER(c) \
6323                    (('a' <= (c) && (c) <= 'i') \
6324                      || ('j' <= (c) && (c) <= 'r') \
6325                      || ('s' <= (c) && (c) <= 'z'))
6326 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6327 #endif
6328
6329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6330 int
6331 main ()
6332 {
6333   int i;
6334   for (i = 0; i < 256; i++)
6335     if (XOR (islower (i), ISLOWER (i))
6336         || toupper (i) != TOUPPER (i))
6337       exit(2);
6338   exit (0);
6339 }
6340 _ACEOF
6341 rm -f conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343   (eval $ac_link) 2>&5
6344   ac_status=$?
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348   (eval $ac_try) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); }; }; then
6352   :
6353 else
6354   echo "$as_me: program exited with status $ac_status" >&5
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ( exit $ac_status )
6359 ac_cv_header_stdc=no
6360 fi
6361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6362 fi
6363 fi
6364 fi
6365 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6366 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6367 if test $ac_cv_header_stdc = yes; then
6368
6369 cat >>confdefs.h <<\_ACEOF
6370 #define STDC_HEADERS 1
6371 _ACEOF
6372
6373 fi
6374
6375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6386                   inttypes.h stdint.h unistd.h
6387 do
6388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389 echo "$as_me:$LINENO: checking for $ac_header" >&5
6390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   cat >conftest.$ac_ext <<_ACEOF
6395 /* confdefs.h.  */
6396 _ACEOF
6397 cat confdefs.h >>conftest.$ac_ext
6398 cat >>conftest.$ac_ext <<_ACEOF
6399 /* end confdefs.h.  */
6400 $ac_includes_default
6401
6402 #include <$ac_header>
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406   (eval $ac_compile) 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } &&
6413          { ac_try='test -z "$ac_c_werror_flag"
6414                          || test ! -s conftest.err'
6415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416   (eval $ac_try) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); }; } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   eval "$as_ac_Header=yes"
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 eval "$as_ac_Header=no"
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438   cat >>confdefs.h <<_ACEOF
6439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF
6441
6442 fi
6443
6444 done
6445
6446
6447
6448 for ac_header in dlfcn.h
6449 do
6450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452   echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 fi
6457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6459 else
6460   # Is the header compilable?
6461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 $ac_includes_default
6470 #include <$ac_header>
6471 _ACEOF
6472 rm -f conftest.$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474   (eval $ac_compile) 2>conftest.er1
6475   ac_status=$?
6476   grep -v '^ *+' conftest.er1 >conftest.err
6477   rm -f conftest.er1
6478   cat conftest.err >&5
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); } &&
6481          { ac_try='test -z "$ac_c_werror_flag"
6482                          || test ! -s conftest.err'
6483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484   (eval $ac_try) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; } &&
6488          { ac_try='test -s conftest.$ac_objext'
6489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490   (eval $ac_try) 2>&5
6491   ac_status=$?
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); }; }; then
6494   ac_header_compiler=yes
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499 ac_header_compiler=no
6500 fi
6501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503 echo "${ECHO_T}$ac_header_compiler" >&6
6504
6505 # Is the header present?
6506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508 cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514 #include <$ac_header>
6515 _ACEOF
6516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } >/dev/null; then
6524   if test -s conftest.err; then
6525     ac_cpp_err=$ac_c_preproc_warn_flag
6526     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6527   else
6528     ac_cpp_err=
6529   fi
6530 else
6531   ac_cpp_err=yes
6532 fi
6533 if test -z "$ac_cpp_err"; then
6534   ac_header_preproc=yes
6535 else
6536   echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6538
6539   ac_header_preproc=no
6540 fi
6541 rm -f conftest.err conftest.$ac_ext
6542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543 echo "${ECHO_T}$ac_header_preproc" >&6
6544
6545 # So?  What about this header?
6546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6547   yes:no: )
6548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552     ac_header_preproc=yes
6553     ;;
6554   no:yes:* )
6555     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6558 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6559     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6562 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6567     (
6568       cat <<\_ASBOX
6569 ## --------------------------------------------- ##
6570 ## Report this to <http://www.openldap.org/its/> ##
6571 ## --------------------------------------------- ##
6572 _ASBOX
6573     ) |
6574       sed "s/^/$as_me: WARNING:     /" >&2
6575     ;;
6576 esac
6577 echo "$as_me:$LINENO: checking for $ac_header" >&5
6578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   eval "$as_ac_Header=\$ac_header_preproc"
6583 fi
6584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586
6587 fi
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589   cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597
6598 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6599
6600 # find the maximum length of command line arguments
6601 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6602 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6603 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606     i=0
6607   teststring="ABCD"
6608
6609   case $build_os in
6610   msdosdjgpp*)
6611     # On DJGPP, this test can blow up pretty badly due to problems in libc
6612     # (any single argument exceeding 2000 bytes causes a buffer overrun
6613     # during glob expansion).  Even if it were fixed, the result of this
6614     # check would be larger than it should be.
6615     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6616     ;;
6617
6618   gnu*)
6619     # Under GNU Hurd, this test is not required because there is
6620     # no limit to the length of command line arguments.
6621     # Libtool will interpret -1 as no limit whatsoever
6622     lt_cv_sys_max_cmd_len=-1;
6623     ;;
6624
6625   cygwin* | mingw*)
6626     # On Win9x/ME, this test blows up -- it succeeds, but takes
6627     # about 5 minutes as the teststring grows exponentially.
6628     # Worse, since 9x/ME are not pre-emptively multitasking,
6629     # you end up with a "frozen" computer, even though with patience
6630     # the test eventually succeeds (with a max line length of 256k).
6631     # Instead, let's just punt: use the minimum linelength reported by
6632     # all of the supported platforms: 8192 (on NT/2K/XP).
6633     lt_cv_sys_max_cmd_len=8192;
6634     ;;
6635
6636   amigaos*)
6637     # On AmigaOS with pdksh, this test takes hours, literally.
6638     # So we just punt and use a minimum line length of 8192.
6639     lt_cv_sys_max_cmd_len=8192;
6640     ;;
6641
6642   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6643     # This has been around since 386BSD, at least.  Likely further.
6644     if test -x /sbin/sysctl; then
6645       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6646     elif test -x /usr/sbin/sysctl; then
6647       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6648     else
6649       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6650     fi
6651     # And add a safety zone
6652     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6653     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6654     ;;
6655   osf*)
6656     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6657     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6658     # nice to cause kernel panics so lets avoid the loop below.
6659     # First set a reasonable default.
6660     lt_cv_sys_max_cmd_len=16384
6661     #
6662     if test -x /sbin/sysconfig; then
6663       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6664         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6665       esac
6666     fi
6667     ;;
6668   *)
6669     # If test is not a shell built-in, we'll probably end up computing a
6670     # maximum length that is only half of the actual maximum length, but
6671     # we can't tell.
6672     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6673     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6674                = "XX$teststring") >/dev/null 2>&1 &&
6675             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6676             lt_cv_sys_max_cmd_len=$new_result &&
6677             test $i != 17 # 1/2 MB should be enough
6678     do
6679       i=`expr $i + 1`
6680       teststring=$teststring$teststring
6681     done
6682     teststring=
6683     # Add a significant safety factor because C++ compilers can tack on massive
6684     # amounts of additional arguments before passing them to the linker.
6685     # It appears as though 1/2 is a usable value.
6686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6687     ;;
6688   esac
6689
6690 fi
6691
6692 if test -n $lt_cv_sys_max_cmd_len ; then
6693   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6695 else
6696   echo "$as_me:$LINENO: result: none" >&5
6697 echo "${ECHO_T}none" >&6
6698 fi
6699
6700
6701
6702
6703 # Check for command to grab the raw symbol name followed by C symbol from nm.
6704 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6705 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709
6710 # These are sane defaults that work on at least a few old systems.
6711 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6712
6713 # Character class describing NM global symbol codes.
6714 symcode='[BCDEGRST]'
6715
6716 # Regexp to match symbols that can be accessed directly from C.
6717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6718
6719 # Transform an extracted symbol line into a proper C declaration
6720 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6721
6722 # Transform an extracted symbol line into symbol name and symbol address
6723 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'"
6724
6725 # Define system-specific variables.
6726 case $host_os in
6727 aix*)
6728   symcode='[BCDT]'
6729   ;;
6730 cygwin* | mingw* | pw32*)
6731   symcode='[ABCDGISTW]'
6732   ;;
6733 hpux*) # Its linker distinguishes data from code symbols
6734   if test "$host_cpu" = ia64; then
6735     symcode='[ABCDEGRST]'
6736   fi
6737   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6738   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'"
6739   ;;
6740 linux*)
6741   if test "$host_cpu" = ia64; then
6742     symcode='[ABCDGIRSTW]'
6743     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6744     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'"
6745   fi
6746   ;;
6747 irix* | nonstopux*)
6748   symcode='[BCDEGRST]'
6749   ;;
6750 osf*)
6751   symcode='[BCDEGQRST]'
6752   ;;
6753 solaris* | sysv5*)
6754   symcode='[BDRT]'
6755   ;;
6756 sysv4)
6757   symcode='[DFNSTU]'
6758   ;;
6759 esac
6760
6761 # Handle CRLF in mingw tool chain
6762 opt_cr=
6763 case $build_os in
6764 mingw*)
6765   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6766   ;;
6767 esac
6768
6769 # If we're using GNU nm, then use its standard symbol codes.
6770 case `$NM -V 2>&1` in
6771 *GNU* | *'with BFD'*)
6772   symcode='[ABCDGIRSTW]' ;;
6773 esac
6774
6775 # Try without a prefix undercore, then with it.
6776 for ac_symprfx in "" "_"; do
6777
6778   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6779   symxfrm="\\1 $ac_symprfx\\2 \\2"
6780
6781   # Write the raw and C identifiers.
6782   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6783
6784   # Check to see that the pipe works correctly.
6785   pipe_works=no
6786
6787   rm -f conftest*
6788   cat > conftest.$ac_ext <<EOF
6789 #ifdef __cplusplus
6790 extern "C" {
6791 #endif
6792 char nm_test_var;
6793 void nm_test_func(){}
6794 #ifdef __cplusplus
6795 }
6796 #endif
6797 int main(){nm_test_var='a';nm_test_func();return(0);}
6798 EOF
6799
6800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   (eval $ac_compile) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; then
6805     # Now try to grab the symbols.
6806     nlist=conftest.nm
6807     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6808   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6809   ac_status=$?
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } && test -s "$nlist"; then
6812       # Try sorting and uniquifying the output.
6813       if sort "$nlist" | uniq > "$nlist"T; then
6814         mv -f "$nlist"T "$nlist"
6815       else
6816         rm -f "$nlist"T
6817       fi
6818
6819       # Make sure that we snagged all the symbols we need.
6820       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6821         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6822           cat <<EOF > conftest.$ac_ext
6823 #ifdef __cplusplus
6824 extern "C" {
6825 #endif
6826
6827 EOF
6828           # Now generate the symbol file.
6829           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6830
6831           cat <<EOF >> conftest.$ac_ext
6832 #if defined (__STDC__) && __STDC__
6833 # define lt_ptr_t void *
6834 #else
6835 # define lt_ptr_t char *
6836 # define const
6837 #endif
6838
6839 /* The mapping between symbol names and symbols. */
6840 const struct {
6841   const char *name;
6842   lt_ptr_t address;
6843 }
6844 lt_preloaded_symbols[] =
6845 {
6846 EOF
6847           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6848           cat <<\EOF >> conftest.$ac_ext
6849   {0, (lt_ptr_t) 0}
6850 };
6851
6852 #ifdef __cplusplus
6853 }
6854 #endif
6855 EOF
6856           # Now try linking the two files.
6857           mv conftest.$ac_objext conftstm.$ac_objext
6858           lt_save_LIBS="$LIBS"
6859           lt_save_CFLAGS="$CFLAGS"
6860           LIBS="conftstm.$ac_objext"
6861           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6862           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6863   (eval $ac_link) 2>&5
6864   ac_status=$?
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6867             pipe_works=yes
6868           fi
6869           LIBS="$lt_save_LIBS"
6870           CFLAGS="$lt_save_CFLAGS"
6871         else
6872           echo "cannot find nm_test_func in $nlist" >&5
6873         fi
6874       else
6875         echo "cannot find nm_test_var in $nlist" >&5
6876       fi
6877     else
6878       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6879     fi
6880   else
6881     echo "$progname: failed program was:" >&5
6882     cat conftest.$ac_ext >&5
6883   fi
6884   rm -f conftest* conftst*
6885
6886   # Do not use the global_symbol_pipe unless it works.
6887   if test "$pipe_works" = yes; then
6888     break
6889   else
6890     lt_cv_sys_global_symbol_pipe=
6891   fi
6892 done
6893
6894 fi
6895
6896 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6897   lt_cv_sys_global_symbol_to_cdecl=
6898 fi
6899 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6900   echo "$as_me:$LINENO: result: failed" >&5
6901 echo "${ECHO_T}failed" >&6
6902 else
6903   echo "$as_me:$LINENO: result: ok" >&5
6904 echo "${ECHO_T}ok" >&6
6905 fi
6906
6907 echo "$as_me:$LINENO: checking for objdir" >&5
6908 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6909 if test "${lt_cv_objdir+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   rm -f .libs 2>/dev/null
6913 mkdir .libs 2>/dev/null
6914 if test -d .libs; then
6915   lt_cv_objdir=.libs
6916 else
6917   # MS-DOS does not allow filenames that begin with a dot.
6918   lt_cv_objdir=_libs
6919 fi
6920 rmdir .libs 2>/dev/null
6921 fi
6922 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6923 echo "${ECHO_T}$lt_cv_objdir" >&6
6924 objdir=$lt_cv_objdir
6925
6926
6927
6928
6929
6930 case $host_os in
6931 aix3*)
6932   # AIX sometimes has problems with the GCC collect2 program.  For some
6933   # reason, if we set the COLLECT_NAMES environment variable, the problems
6934   # vanish in a puff of smoke.
6935   if test "X${COLLECT_NAMES+set}" != Xset; then
6936     COLLECT_NAMES=
6937     export COLLECT_NAMES
6938   fi
6939   ;;
6940 esac
6941
6942 # Sed substitution that helps us do robust quoting.  It backslashifies
6943 # metacharacters that are still active within double-quoted strings.
6944 Xsed='sed -e 1s/^X//'
6945 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6946
6947 # Same as above, but do not quote variable references.
6948 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6949
6950 # Sed substitution to delay expansion of an escaped shell variable in a
6951 # double_quote_subst'ed string.
6952 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6953
6954 # Sed substitution to avoid accidental globbing in evaled expressions
6955 no_glob_subst='s/\*/\\\*/g'
6956
6957 # Constants:
6958 rm="rm -f"
6959
6960 # Global variables:
6961 default_ofile=libtool
6962 can_build_shared=yes
6963
6964 # All known linkers require a `.a' archive for static linking (except MSVC,
6965 # which needs '.lib').
6966 libext=a
6967 ltmain="$ac_aux_dir/ltmain.sh"
6968 ofile="$default_ofile"
6969 with_gnu_ld="$lt_cv_prog_gnu_ld"
6970
6971 if test -n "$ac_tool_prefix"; then
6972   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6973 set dummy ${ac_tool_prefix}ar; ac_word=$2
6974 echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6976 if test "${ac_cv_prog_AR+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   if test -n "$AR"; then
6980   ac_cv_prog_AR="$AR" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985   IFS=$as_save_IFS
6986   test -z "$as_dir" && as_dir=.
6987   for ac_exec_ext in '' $ac_executable_extensions; do
6988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_AR="${ac_tool_prefix}ar"
6990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992   fi
6993 done
6994 done
6995
6996 fi
6997 fi
6998 AR=$ac_cv_prog_AR
6999 if test -n "$AR"; then
7000   echo "$as_me:$LINENO: result: $AR" >&5
7001 echo "${ECHO_T}$AR" >&6
7002 else
7003   echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6
7005 fi
7006
7007 fi
7008 if test -z "$ac_cv_prog_AR"; then
7009   ac_ct_AR=$AR
7010   # Extract the first word of "ar", so it can be a program name with args.
7011 set dummy ar; ac_word=$2
7012 echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   if test -n "$ac_ct_AR"; then
7018   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023   IFS=$as_save_IFS
7024   test -z "$as_dir" && as_dir=.
7025   for ac_exec_ext in '' $ac_executable_extensions; do
7026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027     ac_cv_prog_ac_ct_AR="ar"
7028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029     break 2
7030   fi
7031 done
7032 done
7033
7034   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7035 fi
7036 fi
7037 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7038 if test -n "$ac_ct_AR"; then
7039   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7040 echo "${ECHO_T}$ac_ct_AR" >&6
7041 else
7042   echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6
7044 fi
7045
7046   AR=$ac_ct_AR
7047 else
7048   AR="$ac_cv_prog_AR"
7049 fi
7050
7051 if test -n "$ac_tool_prefix"; then
7052   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7054 echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7056 if test "${ac_cv_prog_RANLIB+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$RANLIB"; then
7060   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075
7076 fi
7077 fi
7078 RANLIB=$ac_cv_prog_RANLIB
7079 if test -n "$RANLIB"; then
7080   echo "$as_me:$LINENO: result: $RANLIB" >&5
7081 echo "${ECHO_T}$RANLIB" >&6
7082 else
7083   echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 fi
7086
7087 fi
7088 if test -z "$ac_cv_prog_RANLIB"; then
7089   ac_ct_RANLIB=$RANLIB
7090   # Extract the first word of "ranlib", so it can be a program name with args.
7091 set dummy ranlib; ac_word=$2
7092 echo "$as_me:$LINENO: checking for $ac_word" >&5
7093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7095   echo $ECHO_N "(cached) $ECHO_C" >&6
7096 else
7097   if test -n "$ac_ct_RANLIB"; then
7098   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7099 else
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7107     ac_cv_prog_ac_ct_RANLIB="ranlib"
7108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113
7114   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7115 fi
7116 fi
7117 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7118 if test -n "$ac_ct_RANLIB"; then
7119   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7120 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126   RANLIB=$ac_ct_RANLIB
7127 else
7128   RANLIB="$ac_cv_prog_RANLIB"
7129 fi
7130
7131 if test -n "$ac_tool_prefix"; then
7132   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}strip; ac_word=$2
7134 echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7136 if test "${ac_cv_prog_STRIP+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   if test -n "$STRIP"; then
7140   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145   IFS=$as_save_IFS
7146   test -z "$as_dir" && as_dir=.
7147   for ac_exec_ext in '' $ac_executable_extensions; do
7148   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7151     break 2
7152   fi
7153 done
7154 done
7155
7156 fi
7157 fi
7158 STRIP=$ac_cv_prog_STRIP
7159 if test -n "$STRIP"; then
7160   echo "$as_me:$LINENO: result: $STRIP" >&5
7161 echo "${ECHO_T}$STRIP" >&6
7162 else
7163   echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6
7165 fi
7166
7167 fi
7168 if test -z "$ac_cv_prog_STRIP"; then
7169   ac_ct_STRIP=$STRIP
7170   # Extract the first word of "strip", so it can be a program name with args.
7171 set dummy strip; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   if test -n "$ac_ct_STRIP"; then
7178   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7182 do
7183   IFS=$as_save_IFS
7184   test -z "$as_dir" && as_dir=.
7185   for ac_exec_ext in '' $ac_executable_extensions; do
7186   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187     ac_cv_prog_ac_ct_STRIP="strip"
7188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189     break 2
7190   fi
7191 done
7192 done
7193
7194   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7195 fi
7196 fi
7197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7198 if test -n "$ac_ct_STRIP"; then
7199   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7200 echo "${ECHO_T}$ac_ct_STRIP" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206   STRIP=$ac_ct_STRIP
7207 else
7208   STRIP="$ac_cv_prog_STRIP"
7209 fi
7210
7211
7212 old_CC="$CC"
7213 old_CFLAGS="$CFLAGS"
7214
7215 # Set sane defaults for various variables
7216 test -z "$AR" && AR=ar
7217 test -z "$AR_FLAGS" && AR_FLAGS=cru
7218 test -z "$AS" && AS=as
7219 test -z "$CC" && CC=cc
7220 test -z "$LTCC" && LTCC=$CC
7221 test -z "$DLLTOOL" && DLLTOOL=dlltool
7222 test -z "$LD" && LD=ld
7223 test -z "$LN_S" && LN_S="ln -s"
7224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7225 test -z "$NM" && NM=nm
7226 test -z "$SED" && SED=sed
7227 test -z "$OBJDUMP" && OBJDUMP=objdump
7228 test -z "$RANLIB" && RANLIB=:
7229 test -z "$STRIP" && STRIP=:
7230 test -z "$ac_objext" && ac_objext=o
7231
7232 # Determine commands to create old-style static archives.
7233 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7234 old_postinstall_cmds='chmod 644 $oldlib'
7235 old_postuninstall_cmds=
7236
7237 if test -n "$RANLIB"; then
7238   case $host_os in
7239   openbsd*)
7240     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7241     ;;
7242   *)
7243     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7244     ;;
7245   esac
7246   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7247 fi
7248
7249 for cc_temp in $compiler""; do
7250   case $cc_temp in
7251     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7252     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7253     \-*) ;;
7254     *) break;;
7255   esac
7256 done
7257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7258
7259
7260 # Only perform the check for file, if the check method requires it
7261 case $deplibs_check_method in
7262 file_magic*)
7263   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267   echo $ECHO_N "(cached) $ECHO_C" >&6
7268 else
7269   case $MAGIC_CMD in
7270 [\\/*] |  ?:[\\/]*)
7271   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7272   ;;
7273 *)
7274   lt_save_MAGIC_CMD="$MAGIC_CMD"
7275   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277   for ac_dir in $ac_dummy; do
7278     IFS="$lt_save_ifs"
7279     test -z "$ac_dir" && ac_dir=.
7280     if test -f $ac_dir/${ac_tool_prefix}file; then
7281       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282       if test -n "$file_magic_test_file"; then
7283         case $deplibs_check_method in
7284         "file_magic "*)
7285           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7286           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288             $EGREP "$file_magic_regex" > /dev/null; then
7289             :
7290           else
7291             cat <<EOF 1>&2
7292
7293 *** Warning: the command libtool uses to detect shared libraries,
7294 *** $file_magic_cmd, produces output that libtool cannot recognize.
7295 *** The result is that libtool may fail to recognize shared libraries
7296 *** as such.  This will affect the creation of libtool libraries that
7297 *** depend on shared libraries, but programs linked with such libtool
7298 *** libraries will work regardless of this problem.  Nevertheless, you
7299 *** may want to report the problem to your system manager and/or to
7300 *** bug-libtool@gnu.org
7301
7302 EOF
7303           fi ;;
7304         esac
7305       fi
7306       break
7307     fi
7308   done
7309   IFS="$lt_save_ifs"
7310   MAGIC_CMD="$lt_save_MAGIC_CMD"
7311   ;;
7312 esac
7313 fi
7314
7315 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316 if test -n "$MAGIC_CMD"; then
7317   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318 echo "${ECHO_T}$MAGIC_CMD" >&6
7319 else
7320   echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6
7322 fi
7323
7324 if test -z "$lt_cv_path_MAGIC_CMD"; then
7325   if test -n "$ac_tool_prefix"; then
7326     echo "$as_me:$LINENO: checking for file" >&5
7327 echo $ECHO_N "checking for file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329   echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331   case $MAGIC_CMD in
7332 [\\/*] |  ?:[\\/]*)
7333   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334   ;;
7335 *)
7336   lt_save_MAGIC_CMD="$MAGIC_CMD"
7337   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339   for ac_dir in $ac_dummy; do
7340     IFS="$lt_save_ifs"
7341     test -z "$ac_dir" && ac_dir=.
7342     if test -f $ac_dir/file; then
7343       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344       if test -n "$file_magic_test_file"; then
7345         case $deplibs_check_method in
7346         "file_magic "*)
7347           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350             $EGREP "$file_magic_regex" > /dev/null; then
7351             :
7352           else
7353             cat <<EOF 1>&2
7354
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such.  This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem.  Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7363
7364 EOF
7365           fi ;;
7366         esac
7367       fi
7368       break
7369     fi
7370   done
7371   IFS="$lt_save_ifs"
7372   MAGIC_CMD="$lt_save_MAGIC_CMD"
7373   ;;
7374 esac
7375 fi
7376
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7381 else
7382   echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7384 fi
7385
7386   else
7387     MAGIC_CMD=:
7388   fi
7389 fi
7390
7391   fi
7392   ;;
7393 esac
7394
7395 enable_dlopen=yes
7396 enable_win32_dll=yes
7397
7398 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399 if test "${enable_libtool_lock+set}" = set; then
7400   enableval="$enable_libtool_lock"
7401
7402 fi;
7403 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7404
7405
7406 # Check whether --with-pic or --without-pic was given.
7407 if test "${with_pic+set}" = set; then
7408   withval="$with_pic"
7409   pic_mode="$withval"
7410 else
7411   pic_mode=default
7412 fi;
7413 test -z "$pic_mode" && pic_mode=default
7414
7415 # Use C for the default configuration in the libtool script
7416 tagname=
7417 lt_save_CC="$CC"
7418 ac_ext=c
7419 ac_cpp='$CPP $CPPFLAGS'
7420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
7424
7425 # Source file extension for C test sources.
7426 ac_ext=c
7427
7428 # Object file extension for compiled C test sources.
7429 objext=o
7430 objext=$objext
7431
7432 # Code to be used in simple compile tests
7433 lt_simple_compile_test_code="int some_variable = 0;\n"
7434
7435 # Code to be used in simple link tests
7436 lt_simple_link_test_code='int main(){return(0);}\n'
7437
7438
7439 # If no C compiler was specified, use CC.
7440 LTCC=${LTCC-"$CC"}
7441
7442 # Allow CC to be a program name with arguments.
7443 compiler=$CC
7444
7445
7446 # save warnings/boilerplate of simple test code
7447 ac_outfile=conftest.$ac_objext
7448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7450 _lt_compiler_boilerplate=`cat conftest.err`
7451 $rm conftest*
7452
7453 ac_outfile=conftest.$ac_objext
7454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7456 _lt_linker_boilerplate=`cat conftest.err`
7457 $rm conftest*
7458
7459
7460 #
7461 # Check for any special shared library compilation flags.
7462 #
7463 lt_prog_cc_shlib=
7464 if test "$GCC" = no; then
7465   case $host_os in
7466   sco3.2v5*)
7467     lt_prog_cc_shlib='-belf'
7468     ;;
7469   esac
7470 fi
7471 if test -n "$lt_prog_cc_shlib"; then
7472   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7473 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7474   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7475   else
7476     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7477 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7478     lt_cv_prog_cc_can_build_shared=no
7479   fi
7480 fi
7481
7482
7483 #
7484 # Check to make sure the static flag actually works.
7485 #
7486 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7487 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7488 if test "${lt_prog_compiler_static_works+set}" = set; then
7489   echo $ECHO_N "(cached) $ECHO_C" >&6
7490 else
7491   lt_prog_compiler_static_works=no
7492    save_LDFLAGS="$LDFLAGS"
7493    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7494    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7496      # The linker can only warn and ignore the option if not recognized
7497      # So say no if there are warnings
7498      if test -s conftest.err; then
7499        # Append any errors to the config.log.
7500        cat conftest.err 1>&5
7501        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7502        $SED '/^$/d' conftest.err >conftest.er2
7503        if diff conftest.exp conftest.er2 >/dev/null; then
7504          lt_prog_compiler_static_works=yes
7505        fi
7506      else
7507        lt_prog_compiler_static_works=yes
7508      fi
7509    fi
7510    $rm conftest*
7511    LDFLAGS="$save_LDFLAGS"
7512
7513 fi
7514 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7515 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7516
7517 if test x"$lt_prog_compiler_static_works" = xyes; then
7518     :
7519 else
7520     lt_prog_compiler_static=
7521 fi
7522
7523
7524
7525
7526 lt_prog_compiler_no_builtin_flag=
7527
7528 if test "$GCC" = yes; then
7529   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7530
7531
7532 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7533 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7534 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   lt_cv_prog_compiler_rtti_exceptions=no
7538   ac_outfile=conftest.$ac_objext
7539    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7540    lt_compiler_flag="-fno-rtti -fno-exceptions"
7541    # Insert the option either (1) after the last *FLAGS variable, or
7542    # (2) before a word containing "conftest.", or (3) at the end.
7543    # Note that $ac_compile itself does not contain backslashes and begins
7544    # with a dollar sign (not a hyphen), so the echo should work correctly.
7545    # The option is referenced via a variable to avoid confusing sed.
7546    lt_compile=`echo "$ac_compile" | $SED \
7547    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549    -e 's:$: $lt_compiler_flag:'`
7550    (eval echo "\"\$as_me:7550: $lt_compile\"" >&5)
7551    (eval "$lt_compile" 2>conftest.err)
7552    ac_status=$?
7553    cat conftest.err >&5
7554    echo "$as_me:7554: \$? = $ac_status" >&5
7555    if (exit $ac_status) && test -s "$ac_outfile"; then
7556      # The compiler can only warn and ignore the option if not recognized
7557      # So say no if there are warnings other than the usual output.
7558      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7559      $SED '/^$/d' conftest.err >conftest.er2
7560      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7561        lt_cv_prog_compiler_rtti_exceptions=yes
7562      fi
7563    fi
7564    $rm conftest*
7565
7566 fi
7567 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7568 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7569
7570 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7571     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7572 else
7573     :
7574 fi
7575
7576 fi
7577
7578 lt_prog_compiler_wl=
7579 lt_prog_compiler_pic=
7580 lt_prog_compiler_static=
7581
7582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7584
7585   if test "$GCC" = yes; then
7586     lt_prog_compiler_wl='-Wl,'
7587     lt_prog_compiler_static='-static'
7588
7589     case $host_os in
7590       aix*)
7591       # All AIX code is PIC.
7592       if test "$host_cpu" = ia64; then
7593         # AIX 5 now supports IA64 processor
7594         lt_prog_compiler_static='-Bstatic'
7595       fi
7596       ;;
7597
7598     amigaos*)
7599       # FIXME: we need at least 68020 code to build shared libraries, but
7600       # adding the `-m68020' flag to GCC prevents building anything better,
7601       # like `-m68040'.
7602       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7603       ;;
7604
7605     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7606       # PIC is the default for these OSes.
7607       ;;
7608
7609     mingw* | pw32* | os2*)
7610       # This hack is so that the source file can tell whether it is being
7611       # built for inclusion in a dll (and should export symbols for example).
7612       lt_prog_compiler_pic='-DDLL_EXPORT'
7613       ;;
7614
7615     darwin* | rhapsody*)
7616       # PIC is the default on this platform
7617       # Common symbols not allowed in MH_DYLIB files
7618       lt_prog_compiler_pic='-fno-common'
7619       ;;
7620
7621     msdosdjgpp*)
7622       # Just because we use GCC doesn't mean we suddenly get shared libraries
7623       # on systems that don't support them.
7624       lt_prog_compiler_can_build_shared=no
7625       enable_shared=no
7626       ;;
7627
7628     sysv4*MP*)
7629       if test -d /usr/nec; then
7630         lt_prog_compiler_pic=-Kconform_pic
7631       fi
7632       ;;
7633
7634     hpux*)
7635       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7636       # not for PA HP-UX.
7637       case $host_cpu in
7638       hppa*64*|ia64*)
7639         # +Z the default
7640         ;;
7641       *)
7642         lt_prog_compiler_pic='-fPIC'
7643         ;;
7644       esac
7645       ;;
7646
7647     *)
7648       lt_prog_compiler_pic='-fPIC'
7649       ;;
7650     esac
7651   else
7652     # PORTME Check for flag to pass linker flags through the system compiler.
7653     case $host_os in
7654     aix*)
7655       lt_prog_compiler_wl='-Wl,'
7656       if test "$host_cpu" = ia64; then
7657         # AIX 5 now supports IA64 processor
7658         lt_prog_compiler_static='-Bstatic'
7659       else
7660         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7661       fi
7662       ;;
7663       darwin*)
7664         # PIC is the default on this platform
7665         # Common symbols not allowed in MH_DYLIB files
7666        case $cc_basename in
7667          xlc*)
7668          lt_prog_compiler_pic='-qnocommon'
7669          lt_prog_compiler_wl='-Wl,'
7670          ;;
7671        esac
7672        ;;
7673
7674     mingw* | pw32* | os2*)
7675       # This hack is so that the source file can tell whether it is being
7676       # built for inclusion in a dll (and should export symbols for example).
7677       lt_prog_compiler_pic='-DDLL_EXPORT'
7678       ;;
7679
7680     hpux9* | hpux10* | hpux11*)
7681       lt_prog_compiler_wl='-Wl,'
7682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7683       # not for PA HP-UX.
7684       case $host_cpu in
7685       hppa*64*|ia64*)
7686         # +Z the default
7687         ;;
7688       *)
7689         lt_prog_compiler_pic='+Z'
7690         ;;
7691       esac
7692       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7693       lt_prog_compiler_static='${wl}-a ${wl}archive'
7694       ;;
7695
7696     irix5* | irix6* | nonstopux*)
7697       lt_prog_compiler_wl='-Wl,'
7698       # PIC (with -KPIC) is the default.
7699       lt_prog_compiler_static='-non_shared'
7700       ;;
7701
7702     newsos6)
7703       lt_prog_compiler_pic='-KPIC'
7704       lt_prog_compiler_static='-Bstatic'
7705       ;;
7706
7707     linux*)
7708       case $cc_basename in
7709       icc* | ecc*)
7710         lt_prog_compiler_wl='-Wl,'
7711         lt_prog_compiler_pic='-KPIC'
7712         lt_prog_compiler_static='-static'
7713         ;;
7714       pgcc* | pgf77* | pgf90* | pgf95*)
7715         # Portland Group compilers (*not* the Pentium gcc compiler,
7716         # which looks to be a dead project)
7717         lt_prog_compiler_wl='-Wl,'
7718         lt_prog_compiler_pic='-fpic'
7719         lt_prog_compiler_static='-Bstatic'
7720         ;;
7721       ccc*)
7722         lt_prog_compiler_wl='-Wl,'
7723         # All Alpha code is PIC.
7724         lt_prog_compiler_static='-non_shared'
7725         ;;
7726       esac
7727       ;;
7728
7729     osf3* | osf4* | osf5*)
7730       lt_prog_compiler_wl='-Wl,'
7731       # All OSF/1 code is PIC.
7732       lt_prog_compiler_static='-non_shared'
7733       ;;
7734
7735     sco3.2v5*)
7736       lt_prog_compiler_pic='-Kpic'
7737       lt_prog_compiler_static='-dn'
7738       ;;
7739
7740     solaris*)
7741       lt_prog_compiler_pic='-KPIC'
7742       lt_prog_compiler_static='-Bstatic'
7743       case $cc_basename in
7744       f77* | f90* | f95*)
7745         lt_prog_compiler_wl='-Qoption ld ';;
7746       *)
7747         lt_prog_compiler_wl='-Wl,';;
7748       esac
7749       ;;
7750
7751     sunos4*)
7752       lt_prog_compiler_wl='-Qoption ld '
7753       lt_prog_compiler_pic='-PIC'
7754       lt_prog_compiler_static='-Bstatic'
7755       ;;
7756
7757     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7758       lt_prog_compiler_wl='-Wl,'
7759       lt_prog_compiler_pic='-KPIC'
7760       lt_prog_compiler_static='-Bstatic'
7761       ;;
7762
7763     sysv4*MP*)
7764       if test -d /usr/nec ;then
7765         lt_prog_compiler_pic='-Kconform_pic'
7766         lt_prog_compiler_static='-Bstatic'
7767       fi
7768       ;;
7769
7770     unicos*)
7771       lt_prog_compiler_wl='-Wl,'
7772       lt_prog_compiler_can_build_shared=no
7773       ;;
7774
7775     uts4*)
7776       lt_prog_compiler_pic='-pic'
7777       lt_prog_compiler_static='-Bstatic'
7778       ;;
7779
7780     *)
7781       lt_prog_compiler_can_build_shared=no
7782       ;;
7783     esac
7784   fi
7785
7786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7788
7789 #
7790 # Check to make sure the PIC flag actually works.
7791 #
7792 if test -n "$lt_prog_compiler_pic"; then
7793
7794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7796 if test "${lt_prog_compiler_pic_works+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   lt_prog_compiler_pic_works=no
7800   ac_outfile=conftest.$ac_objext
7801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7802    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803    # Insert the option either (1) after the last *FLAGS variable, or
7804    # (2) before a word containing "conftest.", or (3) at the end.
7805    # Note that $ac_compile itself does not contain backslashes and begins
7806    # with a dollar sign (not a hyphen), so the echo should work correctly.
7807    # The option is referenced via a variable to avoid confusing sed.
7808    lt_compile=`echo "$ac_compile" | $SED \
7809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811    -e 's:$: $lt_compiler_flag:'`
7812    (eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813    (eval "$lt_compile" 2>conftest.err)
7814    ac_status=$?
7815    cat conftest.err >&5
7816    echo "$as_me:7816: \$? = $ac_status" >&5
7817    if (exit $ac_status) && test -s "$ac_outfile"; then
7818      # The compiler can only warn and ignore the option if not recognized
7819      # So say no if there are warnings other than the usual output.
7820      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7821      $SED '/^$/d' conftest.err >conftest.er2
7822      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7823        lt_prog_compiler_pic_works=yes
7824      fi
7825    fi
7826    $rm conftest*
7827
7828 fi
7829 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7830 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7831
7832 if test x"$lt_prog_compiler_pic_works" = xyes; then
7833     case $lt_prog_compiler_pic in
7834      "" | " "*) ;;
7835      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7836      esac
7837 else
7838     lt_prog_compiler_pic=
7839      lt_prog_compiler_can_build_shared=no
7840 fi
7841
7842 fi
7843 case $host_os in
7844   # For platforms which do not support PIC, -DPIC is meaningless:
7845   *djgpp*)
7846     lt_prog_compiler_pic=
7847     ;;
7848   *)
7849     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7850     ;;
7851 esac
7852
7853 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7854 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7855 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   lt_cv_prog_compiler_c_o=no
7859    $rm -r conftest 2>/dev/null
7860    mkdir conftest
7861    cd conftest
7862    mkdir out
7863    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7864
7865    lt_compiler_flag="-o out/conftest2.$ac_objext"
7866    # Insert the option either (1) after the last *FLAGS variable, or
7867    # (2) before a word containing "conftest.", or (3) at the end.
7868    # Note that $ac_compile itself does not contain backslashes and begins
7869    # with a dollar sign (not a hyphen), so the echo should work correctly.
7870    lt_compile=`echo "$ac_compile" | $SED \
7871    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7872    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7873    -e 's:$: $lt_compiler_flag:'`
7874    (eval echo "\"\$as_me:7874: $lt_compile\"" >&5)
7875    (eval "$lt_compile" 2>out/conftest.err)
7876    ac_status=$?
7877    cat out/conftest.err >&5
7878    echo "$as_me:7878: \$? = $ac_status" >&5
7879    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7880    then
7881      # The compiler can only warn and ignore the option if not recognized
7882      # So say no if there are warnings
7883      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7884      $SED '/^$/d' out/conftest.err >out/conftest.er2
7885      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7886        lt_cv_prog_compiler_c_o=yes
7887      fi
7888    fi
7889    chmod u+w . 2>&5
7890    $rm conftest*
7891    # SGI C++ compiler will create directory out/ii_files/ for
7892    # template instantiation
7893    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7894    $rm out/* && rmdir out
7895    cd ..
7896    rmdir conftest
7897    $rm conftest*
7898
7899 fi
7900 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7901 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7902
7903
7904 hard_links="nottested"
7905 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7906   # do not overwrite the value of need_locks provided by the user
7907   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7908 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7909   hard_links=yes
7910   $rm conftest*
7911   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7912   touch conftest.a
7913   ln conftest.a conftest.b 2>&5 || hard_links=no
7914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7915   echo "$as_me:$LINENO: result: $hard_links" >&5
7916 echo "${ECHO_T}$hard_links" >&6
7917   if test "$hard_links" = no; then
7918     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7919 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7920     need_locks=warn
7921   fi
7922 else
7923   need_locks=no
7924 fi
7925
7926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7927 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7928
7929   runpath_var=
7930   allow_undefined_flag=
7931   enable_shared_with_static_runtimes=no
7932   archive_cmds=
7933   archive_expsym_cmds=
7934   old_archive_From_new_cmds=
7935   old_archive_from_expsyms_cmds=
7936   export_dynamic_flag_spec=
7937   whole_archive_flag_spec=
7938   thread_safe_flag_spec=
7939   hardcode_libdir_flag_spec=
7940   hardcode_libdir_flag_spec_ld=
7941   hardcode_libdir_separator=
7942   hardcode_direct=no
7943   hardcode_minus_L=no
7944   hardcode_shlibpath_var=unsupported
7945   link_all_deplibs=unknown
7946   hardcode_automatic=no
7947   module_cmds=
7948   module_expsym_cmds=
7949   always_export_symbols=no
7950   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7951   # include_expsyms should be a list of space-separated symbols to be *always*
7952   # included in the symbol list
7953   include_expsyms=
7954   # exclude_expsyms can be an extended regexp of symbols to exclude
7955   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7956   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7957   # as well as any symbol that contains `d'.
7958   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7959   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7960   # platforms (ab)use it in PIC code, but their linkers get confused if
7961   # the symbol is explicitly referenced.  Since portable code cannot
7962   # rely on this symbol name, it's probably fine to never include it in
7963   # preloaded symbol tables.
7964   extract_expsyms_cmds=
7965   # Just being paranoid about ensuring that cc_basename is set.
7966   for cc_temp in $compiler""; do
7967   case $cc_temp in
7968     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7969     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7970     \-*) ;;
7971     *) break;;
7972   esac
7973 done
7974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7975
7976   case $host_os in
7977   cygwin* | mingw* | pw32*)
7978     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7979     # When not using gcc, we currently assume that we are using
7980     # Microsoft Visual C++.
7981     if test "$GCC" != yes; then
7982       with_gnu_ld=no
7983     fi
7984     ;;
7985   openbsd*)
7986     with_gnu_ld=no
7987     ;;
7988   esac
7989
7990   ld_shlibs=yes
7991   if test "$with_gnu_ld" = yes; then
7992     # If archive_cmds runs LD, not CC, wlarc should be empty
7993     wlarc='${wl}'
7994
7995     # Set some defaults for GNU ld with shared library support. These
7996     # are reset later if shared libraries are not supported. Putting them
7997     # here allows them to be overridden if necessary.
7998     runpath_var=LD_RUN_PATH
7999     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8000     export_dynamic_flag_spec='${wl}--export-dynamic'
8001     # ancient GNU ld didn't support --whole-archive et. al.
8002     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8003         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8004       else
8005         whole_archive_flag_spec=
8006     fi
8007     supports_anon_versioning=no
8008     case `$LD -v 2>/dev/null` in
8009       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8010       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8011       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8012       *\ 2.11.*) ;; # other 2.11 versions
8013       *) supports_anon_versioning=yes ;;
8014     esac
8015
8016     # See if GNU ld supports shared libraries.
8017     case $host_os in
8018     aix3* | aix4* | aix5*)
8019       # On AIX/PPC, the GNU linker is very broken
8020       if test "$host_cpu" != ia64; then
8021         ld_shlibs=no
8022         cat <<EOF 1>&2
8023
8024 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8025 *** to be unable to reliably create shared libraries on AIX.
8026 *** Therefore, libtool is disabling shared libraries support.  If you
8027 *** really care for shared libraries, you may want to modify your PATH
8028 *** so that a non-GNU linker is found, and then restart.
8029
8030 EOF
8031       fi
8032       ;;
8033
8034     amigaos*)
8035       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)'
8036       hardcode_libdir_flag_spec='-L$libdir'
8037       hardcode_minus_L=yes
8038
8039       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8040       # that the semantics of dynamic libraries on AmigaOS, at least up
8041       # to version 4, is to share data among multiple programs linked
8042       # with the same dynamic library.  Since this doesn't match the
8043       # behavior of shared libraries on other platforms, we can't use
8044       # them.
8045       ld_shlibs=no
8046       ;;
8047
8048     beos*)
8049       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8050         allow_undefined_flag=unsupported
8051         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8052         # support --undefined.  This deserves some investigation.  FIXME
8053         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054       else
8055         ld_shlibs=no
8056       fi
8057       ;;
8058
8059     cygwin* | mingw* | pw32*)
8060       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8061       # as there is no search path for DLLs.
8062       hardcode_libdir_flag_spec='-L$libdir'
8063       allow_undefined_flag=unsupported
8064       always_export_symbols=no
8065       enable_shared_with_static_runtimes=yes
8066       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8067
8068       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8070         # If the export-symbols file already is a .def file (1st line
8071         # is EXPORTS), use it as is; otherwise, prepend...
8072         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8073           cp $export_symbols $output_objdir/$soname.def;
8074         else
8075           echo EXPORTS > $output_objdir/$soname.def;
8076           cat $export_symbols >> $output_objdir/$soname.def;
8077         fi~
8078         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8079       else
8080         ld_shlibs=no
8081       fi
8082       ;;
8083
8084     linux*)
8085       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8086         tmp_addflag=
8087         case $cc_basename,$host_cpu in
8088         pgcc*)                          # Portland Group C compiler
8089           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'
8090           tmp_addflag=' $pic_flag'
8091           ;;
8092         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8093           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'
8094           tmp_addflag=' $pic_flag -Mnomain' ;;
8095         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8096           tmp_addflag=' -i_dynamic' ;;
8097         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8098           tmp_addflag=' -i_dynamic -nofor_main' ;;
8099         ifc* | ifort*)                  # Intel Fortran compiler
8100           tmp_addflag=' -nofor_main' ;;
8101         esac
8102         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103
8104         if test $supports_anon_versioning = yes; then
8105           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8106   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8107   $echo "local: *; };" >> $output_objdir/$libname.ver~
8108           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8109         fi
8110       else
8111         ld_shlibs=no
8112       fi
8113       ;;
8114
8115     netbsd*)
8116       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8117         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8118         wlarc=
8119       else
8120         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122       fi
8123       ;;
8124
8125     solaris* | sysv5*)
8126       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8127         ld_shlibs=no
8128         cat <<EOF 1>&2
8129
8130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8131 *** create shared libraries on Solaris systems.  Therefore, libtool
8132 *** is disabling shared libraries support.  We urge you to upgrade GNU
8133 *** binutils to release 2.9.1 or newer.  Another option is to modify
8134 *** your PATH or compiler configuration so that the native linker is
8135 *** used, and then restart.
8136
8137 EOF
8138       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8141       else
8142         ld_shlibs=no
8143       fi
8144       ;;
8145
8146     sunos4*)
8147       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8148       wlarc=
8149       hardcode_direct=yes
8150       hardcode_shlibpath_var=no
8151       ;;
8152
8153     *)
8154       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8155         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8156         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8157       else
8158         ld_shlibs=no
8159       fi
8160       ;;
8161     esac
8162
8163     if test "$ld_shlibs" = no; then
8164       runpath_var=
8165       hardcode_libdir_flag_spec=
8166       export_dynamic_flag_spec=
8167       whole_archive_flag_spec=
8168     fi
8169   else
8170     # PORTME fill in a description of your system's linker (not GNU ld)
8171     case $host_os in
8172     aix3*)
8173       allow_undefined_flag=unsupported
8174       always_export_symbols=yes
8175       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'
8176       # Note: this linker hardcodes the directories in LIBPATH if there
8177       # are no directories specified by -L.
8178       hardcode_minus_L=yes
8179       if test "$GCC" = yes && test -z "$link_static_flag"; then
8180         # Neither direct hardcoding nor static linking is supported with a
8181         # broken collect2.
8182         hardcode_direct=unsupported
8183       fi
8184       ;;
8185
8186     aix4* | aix5*)
8187       if test "$host_cpu" = ia64; then
8188         # On IA64, the linker does run time linking by default, so we don't
8189         # have to do anything special.
8190         aix_use_runtimelinking=no
8191         exp_sym_flag='-Bexport'
8192         no_entry_flag=""
8193       else
8194         # If we're using GNU nm, then we don't want the "-C" option.
8195         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8196         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8197           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'
8198         else
8199           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'
8200         fi
8201         aix_use_runtimelinking=no
8202
8203         # Test if we are trying to use run time linking or normal
8204         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8205         # need to do runtime linking.
8206         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8207           for ld_flag in $LDFLAGS; do
8208           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8209             aix_use_runtimelinking=yes
8210             break
8211           fi
8212           done
8213         esac
8214
8215         exp_sym_flag='-bexport'
8216         no_entry_flag='-bnoentry'
8217       fi
8218
8219       # When large executables or shared objects are built, AIX ld can
8220       # have problems creating the table of contents.  If linking a library
8221       # or program results in "error TOC overflow" add -mminimal-toc to
8222       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8223       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8224
8225       archive_cmds=''
8226       hardcode_direct=yes
8227       hardcode_libdir_separator=':'
8228       link_all_deplibs=yes
8229
8230       if test "$GCC" = yes; then
8231         case $host_os in aix4.[012]|aix4.[012].*)
8232         # We only want to do this on AIX 4.2 and lower, the check
8233         # below for broken collect2 doesn't work under 4.3+
8234           collect2name=`${CC} -print-prog-name=collect2`
8235           if test -f "$collect2name" && \
8236            strings "$collect2name" | grep resolve_lib_name >/dev/null
8237           then
8238           # We have reworked collect2
8239           hardcode_direct=yes
8240           else
8241           # We have old collect2
8242           hardcode_direct=unsupported
8243           # It fails to find uninstalled libraries when the uninstalled
8244           # path is not listed in the libpath.  Setting hardcode_minus_L
8245           # to unsupported forces relinking
8246           hardcode_minus_L=yes
8247           hardcode_libdir_flag_spec='-L$libdir'
8248           hardcode_libdir_separator=
8249           fi
8250         esac
8251         shared_flag='-shared'
8252         if test "$aix_use_runtimelinking" = yes; then
8253           shared_flag="$shared_flag "'${wl}-G'
8254         fi
8255       else
8256         # not using gcc
8257         if test "$host_cpu" = ia64; then
8258         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8259         # chokes on -Wl,-G. The following line is correct:
8260           shared_flag='-G'
8261         else
8262         if test "$aix_use_runtimelinking" = yes; then
8263             shared_flag='${wl}-G'
8264           else
8265             shared_flag='${wl}-bM:SRE'
8266         fi
8267         fi
8268       fi
8269
8270       # It seems that -bexpall does not export symbols beginning with
8271       # underscore (_), so it is better to generate a list of symbols to export.
8272       always_export_symbols=yes
8273       if test "$aix_use_runtimelinking" = yes; then
8274         # Warning - without using the other runtime loading flags (-brtl),
8275         # -berok will link without error, but may produce a broken library.
8276         allow_undefined_flag='-berok'
8277        # Determine the default libpath from the value encoded in an empty executable.
8278        cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284
8285 int
8286 main ()
8287 {
8288
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>conftest.er1
8296   ac_status=$?
8297   grep -v '^ *+' conftest.er1 >conftest.err
8298   rm -f conftest.er1
8299   cat conftest.err >&5
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); } &&
8302          { ac_try='test -z "$ac_c_werror_flag"
8303                          || test ! -s conftest.err'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; } &&
8309          { ac_try='test -s conftest$ac_exeext'
8310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311   (eval $ac_try) 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); }; }; then
8315
8316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8317 }'`
8318 # Check for a 64-bit object if we didn't find anything.
8319 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; }
8320 }'`; fi
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 fi
8326 rm -f conftest.err conftest.$ac_objext \
8327       conftest$ac_exeext conftest.$ac_ext
8328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8329
8330        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8331         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"
8332        else
8333         if test "$host_cpu" = ia64; then
8334           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8335           allow_undefined_flag="-z nodefs"
8336           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"
8337         else
8338          # Determine the default libpath from the value encoded in an empty executable.
8339          cat >conftest.$ac_ext <<_ACEOF
8340 /* confdefs.h.  */
8341 _ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h.  */
8345
8346 int
8347 main ()
8348 {
8349
8350   ;
8351   return 0;
8352 }
8353 _ACEOF
8354 rm -f conftest.$ac_objext conftest$ac_exeext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8356   (eval $ac_link) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest$ac_exeext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376
8377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8378 }'`
8379 # Check for a 64-bit object if we didn't find anything.
8380 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; }
8381 }'`; fi
8382 else
8383   echo "$as_me: failed program was:" >&5
8384 sed 's/^/| /' conftest.$ac_ext >&5
8385
8386 fi
8387 rm -f conftest.err conftest.$ac_objext \
8388       conftest$ac_exeext conftest.$ac_ext
8389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8390
8391          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8392           # Warning - without using the other run time loading flags,
8393           # -berok will link without error, but may produce a broken library.
8394           no_undefined_flag=' ${wl}-bernotok'
8395           allow_undefined_flag=' ${wl}-berok'
8396           # -bexpall does not export symbols beginning with underscore (_)
8397           always_export_symbols=yes
8398           # Exported symbols can be pulled into shared objects from archives
8399           whole_archive_flag_spec=' '
8400           archive_cmds_need_lc=yes
8401           # This is similar to how AIX traditionally builds its shared libraries.
8402           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'
8403         fi
8404       fi
8405       ;;
8406
8407     amigaos*)
8408       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)'
8409       hardcode_libdir_flag_spec='-L$libdir'
8410       hardcode_minus_L=yes
8411       # see comment about different semantics on the GNU ld section
8412       ld_shlibs=no
8413       ;;
8414
8415     bsdi[45]*)
8416       export_dynamic_flag_spec=-rdynamic
8417       ;;
8418
8419     cygwin* | mingw* | pw32*)
8420       # When not using gcc, we currently assume that we are using
8421       # Microsoft Visual C++.
8422       # hardcode_libdir_flag_spec is actually meaningless, as there is
8423       # no search path for DLLs.
8424       hardcode_libdir_flag_spec=' '
8425       allow_undefined_flag=unsupported
8426       # Tell ltmain to make .lib files, not .a files.
8427       libext=lib
8428       # Tell ltmain to make .dll files, not .so files.
8429       shrext_cmds=".dll"
8430       # FIXME: Setting linknames here is a bad hack.
8431       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8432       # The linker will automatically build a .lib file if we build a DLL.
8433       old_archive_From_new_cmds='true'
8434       # FIXME: Should let the user specify the lib program.
8435       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8436       fix_srcfile_path='`cygpath -w "$srcfile"`'
8437       enable_shared_with_static_runtimes=yes
8438       ;;
8439
8440     darwin* | rhapsody*)
8441       case $host_os in
8442         rhapsody* | darwin1.[012])
8443          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8444          ;;
8445        *) # Darwin 1.3 on
8446          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8447            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8448          else
8449            case ${MACOSX_DEPLOYMENT_TARGET} in
8450              10.[012])
8451                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8452                ;;
8453              10.*)
8454                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8455                ;;
8456            esac
8457          fi
8458          ;;
8459       esac
8460       archive_cmds_need_lc=no
8461       hardcode_direct=no
8462       hardcode_automatic=yes
8463       hardcode_shlibpath_var=unsupported
8464       whole_archive_flag_spec=''
8465       link_all_deplibs=yes
8466     if test "$GCC" = yes ; then
8467         output_verbose_link_cmd='echo'
8468         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8469       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8470       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8471       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}'
8472       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}'
8473     else
8474       case $cc_basename in
8475         xlc*)
8476          output_verbose_link_cmd='echo'
8477          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8478          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8479           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8480          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}'
8481           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}'
8482           ;;
8483        *)
8484          ld_shlibs=no
8485           ;;
8486       esac
8487     fi
8488       ;;
8489
8490     dgux*)
8491       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8492       hardcode_libdir_flag_spec='-L$libdir'
8493       hardcode_shlibpath_var=no
8494       ;;
8495
8496     freebsd1*)
8497       ld_shlibs=no
8498       ;;
8499
8500     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8501     # support.  Future versions do this automatically, but an explicit c++rt0.o
8502     # does not break anything, and helps significantly (at the cost of a little
8503     # extra space).
8504     freebsd2.2*)
8505       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8506       hardcode_libdir_flag_spec='-R$libdir'
8507       hardcode_direct=yes
8508       hardcode_shlibpath_var=no
8509       ;;
8510
8511     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8512     freebsd2*)
8513       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8514       hardcode_direct=yes
8515       hardcode_minus_L=yes
8516       hardcode_shlibpath_var=no
8517       ;;
8518
8519     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8520     freebsd* | kfreebsd*-gnu | dragonfly*)
8521       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8522       hardcode_libdir_flag_spec='-R$libdir'
8523       hardcode_direct=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     hpux9*)
8528       if test "$GCC" = yes; then
8529         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'
8530       else
8531         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'
8532       fi
8533       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8534       hardcode_libdir_separator=:
8535       hardcode_direct=yes
8536
8537       # hardcode_minus_L: Not really in the search PATH,
8538       # but as the default location of the library.
8539       hardcode_minus_L=yes
8540       export_dynamic_flag_spec='${wl}-E'
8541       ;;
8542
8543     hpux10* | hpux11*)
8544       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8545         case $host_cpu in
8546         hppa*64*|ia64*)
8547           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8548           ;;
8549         *)
8550           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8551           ;;
8552         esac
8553       else
8554         case $host_cpu in
8555         hppa*64*|ia64*)
8556           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8557           ;;
8558         *)
8559           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8560           ;;
8561         esac
8562       fi
8563       if test "$with_gnu_ld" = no; then
8564         case $host_cpu in
8565         hppa*64*)
8566           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567           hardcode_libdir_flag_spec_ld='+b $libdir'
8568           hardcode_libdir_separator=:
8569           hardcode_direct=no
8570           hardcode_shlibpath_var=no
8571           ;;
8572         ia64*)
8573           hardcode_libdir_flag_spec='-L$libdir'
8574           hardcode_direct=no
8575           hardcode_shlibpath_var=no
8576
8577           # hardcode_minus_L: Not really in the search PATH,
8578           # but as the default location of the library.
8579           hardcode_minus_L=yes
8580           ;;
8581         *)
8582           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8583           hardcode_libdir_separator=:
8584           hardcode_direct=yes
8585           export_dynamic_flag_spec='${wl}-E'
8586
8587           # hardcode_minus_L: Not really in the search PATH,
8588           # but as the default location of the library.
8589           hardcode_minus_L=yes
8590           ;;
8591         esac
8592       fi
8593       ;;
8594
8595     irix5* | irix6* | nonstopux*)
8596       if test "$GCC" = yes; then
8597         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'
8598       else
8599         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'
8600         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8601       fi
8602       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8603       hardcode_libdir_separator=:
8604       link_all_deplibs=yes
8605       ;;
8606
8607     netbsd*)
8608       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8609         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8610       else
8611         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8612       fi
8613       hardcode_libdir_flag_spec='-R$libdir'
8614       hardcode_direct=yes
8615       hardcode_shlibpath_var=no
8616       ;;
8617
8618     newsos6)
8619       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8620       hardcode_direct=yes
8621       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622       hardcode_libdir_separator=:
8623       hardcode_shlibpath_var=no
8624       ;;
8625
8626     openbsd*)
8627       hardcode_direct=yes
8628       hardcode_shlibpath_var=no
8629       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8630         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8631         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8632         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8633         export_dynamic_flag_spec='${wl}-E'
8634       else
8635        case $host_os in
8636          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8637            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8638            hardcode_libdir_flag_spec='-R$libdir'
8639            ;;
8640          *)
8641            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8642            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8643            ;;
8644        esac
8645       fi
8646       ;;
8647
8648     os2*)
8649       hardcode_libdir_flag_spec='-L$libdir'
8650       hardcode_minus_L=yes
8651       allow_undefined_flag=unsupported
8652       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'
8653       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8654       ;;
8655
8656     osf3*)
8657       if test "$GCC" = yes; then
8658         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8659         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'
8660       else
8661         allow_undefined_flag=' -expect_unresolved \*'
8662         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'
8663       fi
8664       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665       hardcode_libdir_separator=:
8666       ;;
8667
8668     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8669       if test "$GCC" = yes; then
8670         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671         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'
8672         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673       else
8674         allow_undefined_flag=' -expect_unresolved \*'
8675         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'
8676         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8677         $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'
8678
8679         # Both c and cxx compiler support -rpath directly
8680         hardcode_libdir_flag_spec='-rpath $libdir'
8681       fi
8682       hardcode_libdir_separator=:
8683       ;;
8684
8685     sco3.2v5*)
8686       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_shlibpath_var=no
8688       export_dynamic_flag_spec='${wl}-Bexport'
8689       runpath_var=LD_RUN_PATH
8690       hardcode_runpath_var=yes
8691       ;;
8692
8693     solaris*)
8694       no_undefined_flag=' -z text'
8695       if test "$GCC" = yes; then
8696         wlarc='${wl}'
8697         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8699           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8700       else
8701         wlarc=''
8702         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8704         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8705       fi
8706       hardcode_libdir_flag_spec='-R$libdir'
8707       hardcode_shlibpath_var=no
8708       case $host_os in
8709       solaris2.[0-5] | solaris2.[0-5].*) ;;
8710       *)
8711         # The compiler driver will combine linker options so we
8712         # cannot just pass the convience library names through
8713         # without $wl, iff we do not link with $LD.
8714         # Luckily, gcc supports the same syntax we need for Sun Studio.
8715         # Supported since Solaris 2.6 (maybe 2.5.1?)
8716         case $wlarc in
8717         '')
8718           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8719         *)
8720           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' ;;
8721         esac ;;
8722       esac
8723       link_all_deplibs=yes
8724       ;;
8725
8726     sunos4*)
8727       if test "x$host_vendor" = xsequent; then
8728         # Use $CC to link under sequent, because it throws in some extra .o
8729         # files that make .init and .fini sections work.
8730         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8731       else
8732         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8733       fi
8734       hardcode_libdir_flag_spec='-L$libdir'
8735       hardcode_direct=yes
8736       hardcode_minus_L=yes
8737       hardcode_shlibpath_var=no
8738       ;;
8739
8740     sysv4)
8741       case $host_vendor in
8742         sni)
8743           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744           hardcode_direct=yes # is this really true???
8745         ;;
8746         siemens)
8747           ## LD is ld it makes a PLAMLIB
8748           ## CC just makes a GrossModule.
8749           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8750           reload_cmds='$CC -r -o $output$reload_objs'
8751           hardcode_direct=no
8752         ;;
8753         motorola)
8754           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8756         ;;
8757       esac
8758       runpath_var='LD_RUN_PATH'
8759       hardcode_shlibpath_var=no
8760       ;;
8761
8762     sysv4.3*)
8763       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764       hardcode_shlibpath_var=no
8765       export_dynamic_flag_spec='-Bexport'
8766       ;;
8767
8768     sysv4*MP*)
8769       if test -d /usr/nec; then
8770         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771         hardcode_shlibpath_var=no
8772         runpath_var=LD_RUN_PATH
8773         hardcode_runpath_var=yes
8774         ld_shlibs=yes
8775       fi
8776       ;;
8777
8778     sysv4.2uw2*)
8779       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_direct=yes
8781       hardcode_minus_L=no
8782       hardcode_shlibpath_var=no
8783       hardcode_runpath_var=yes
8784       runpath_var=LD_RUN_PATH
8785       ;;
8786
8787    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8788       no_undefined_flag='${wl}-z ${wl}text'
8789       if test "$GCC" = yes; then
8790         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791       else
8792         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793       fi
8794       runpath_var='LD_RUN_PATH'
8795       hardcode_shlibpath_var=no
8796       ;;
8797
8798     sysv5*)
8799       no_undefined_flag=' -z text'
8800       # $CC -shared without GNU ld will not create a library from C++
8801       # object files and a static libstdc++, better avoid it by now
8802       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8804                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8805       hardcode_libdir_flag_spec=
8806       hardcode_shlibpath_var=no
8807       runpath_var='LD_RUN_PATH'
8808       ;;
8809
8810     uts4*)
8811       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812       hardcode_libdir_flag_spec='-L$libdir'
8813       hardcode_shlibpath_var=no
8814       ;;
8815
8816     *)
8817       ld_shlibs=no
8818       ;;
8819     esac
8820   fi
8821
8822 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8823 echo "${ECHO_T}$ld_shlibs" >&6
8824 test "$ld_shlibs" = no && can_build_shared=no
8825
8826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8827 if test "$GCC" = yes; then
8828   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8829 fi
8830
8831 #
8832 # Do we need to explicitly link libc?
8833 #
8834 case "x$archive_cmds_need_lc" in
8835 x|xyes)
8836   # Assume -lc should be added
8837   archive_cmds_need_lc=yes
8838
8839   if test "$enable_shared" = yes && test "$GCC" = yes; then
8840     case $archive_cmds in
8841     *'~'*)
8842       # FIXME: we may have to deal with multi-command sequences.
8843       ;;
8844     '$CC '*)
8845       # Test whether the compiler implicitly links with -lc since on some
8846       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8847       # to ld, don't add -lc before -lgcc.
8848       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8849 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8850       $rm conftest*
8851       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8852
8853       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8854   (eval $ac_compile) 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } 2>conftest.err; then
8858         soname=conftest
8859         lib=conftest
8860         libobjs=conftest.$ac_objext
8861         deplibs=
8862         wl=$lt_prog_compiler_wl
8863         compiler_flags=-v
8864         linker_flags=-v
8865         verstring=
8866         output_objdir=.
8867         libname=conftest
8868         lt_save_allow_undefined_flag=$allow_undefined_flag
8869         allow_undefined_flag=
8870         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8871   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }
8875         then
8876           archive_cmds_need_lc=no
8877         else
8878           archive_cmds_need_lc=yes
8879         fi
8880         allow_undefined_flag=$lt_save_allow_undefined_flag
8881       else
8882         cat conftest.err 1>&5
8883       fi
8884       $rm conftest*
8885       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8886 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8887       ;;
8888     esac
8889   fi
8890   ;;
8891 esac
8892
8893 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8894 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8895 library_names_spec=
8896 libname_spec='lib$name'
8897 soname_spec=
8898 shrext_cmds=".so"
8899 postinstall_cmds=
8900 postuninstall_cmds=
8901 finish_cmds=
8902 finish_eval=
8903 shlibpath_var=
8904 shlibpath_overrides_runpath=unknown
8905 version_type=none
8906 dynamic_linker="$host_os ld.so"
8907 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8908 if test "$GCC" = yes; then
8909   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8910   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8911     # if the path contains ";" then we assume it to be the separator
8912     # otherwise default to the standard path separator (i.e. ":") - it is
8913     # assumed that no part of a normal pathname contains ";" but that should
8914     # okay in the real world where ";" in dirpaths is itself problematic.
8915     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8916   else
8917     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8918   fi
8919 else
8920   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8921 fi
8922 need_lib_prefix=unknown
8923 hardcode_into_libs=no
8924
8925 # when you set need_version to no, make sure it does not cause -set_version
8926 # flags to be left without arguments
8927 need_version=unknown
8928
8929 case $host_os in
8930 aix3*)
8931   version_type=linux
8932   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8933   shlibpath_var=LIBPATH
8934
8935   # AIX 3 has no versioning support, so we append a major version to the name.
8936   soname_spec='${libname}${release}${shared_ext}$major'
8937   ;;
8938
8939 aix4* | aix5*)
8940   version_type=linux
8941   need_lib_prefix=no
8942   need_version=no
8943   hardcode_into_libs=yes
8944   if test "$host_cpu" = ia64; then
8945     # AIX 5 supports IA64
8946     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8947     shlibpath_var=LD_LIBRARY_PATH
8948   else
8949     # With GCC up to 2.95.x, collect2 would create an import file
8950     # for dependence libraries.  The import file would start with
8951     # the line `#! .'.  This would cause the generated library to
8952     # depend on `.', always an invalid library.  This was fixed in
8953     # development snapshots of GCC prior to 3.0.
8954     case $host_os in
8955       aix4 | aix4.[01] | aix4.[01].*)
8956       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8957            echo ' yes '
8958            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8959         :
8960       else
8961         can_build_shared=no
8962       fi
8963       ;;
8964     esac
8965     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8966     # soname into executable. Probably we can add versioning support to
8967     # collect2, so additional links can be useful in future.
8968     if test "$aix_use_runtimelinking" = yes; then
8969       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8970       # instead of lib<name>.a to let people know that these are not
8971       # typical AIX shared libraries.
8972       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973     else
8974       # We preserve .a as extension for shared libraries through AIX4.2
8975       # and later when we are not doing run time linking.
8976       library_names_spec='${libname}${release}.a $libname.a'
8977       soname_spec='${libname}${release}${shared_ext}$major'
8978     fi
8979     shlibpath_var=LIBPATH
8980   fi
8981   ;;
8982
8983 amigaos*)
8984   library_names_spec='$libname.ixlibrary $libname.a'
8985   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8986   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'
8987   ;;
8988
8989 beos*)
8990   library_names_spec='${libname}${shared_ext}'
8991   dynamic_linker="$host_os ld.so"
8992   shlibpath_var=LIBRARY_PATH
8993   ;;
8994
8995 bsdi[45]*)
8996   version_type=linux
8997   need_version=no
8998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8999   soname_spec='${libname}${release}${shared_ext}$major'
9000   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9003   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9004   # the default ld.so.conf also contains /usr/contrib/lib and
9005   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9006   # libtool to hard-code these into programs
9007   ;;
9008
9009 cygwin* | mingw* | pw32*)
9010   version_type=windows
9011   shrext_cmds=".dll"
9012   need_version=no
9013   need_lib_prefix=no
9014
9015   case $GCC,$host_os in
9016   yes,cygwin* | yes,mingw* | yes,pw32*)
9017     library_names_spec='$libname.dll.a'
9018     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9019     postinstall_cmds='base_file=`basename \${file}`~
9020       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9021       dldir=$destdir/`dirname \$dlpath`~
9022       test -d \$dldir || mkdir -p \$dldir~
9023       $install_prog $dir/$dlname \$dldir/$dlname~
9024       chmod a+x \$dldir/$dlname'
9025     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9026       dlpath=$dir/\$dldll~
9027        $rm \$dlpath'
9028     shlibpath_overrides_runpath=yes
9029
9030     case $host_os in
9031     cygwin*)
9032       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9033       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9034       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9035       ;;
9036     mingw*)
9037       # MinGW DLLs use traditional 'lib' prefix
9038       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9039       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9040       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9041         # It is most probably a Windows format PATH printed by
9042         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9043         # path with ; separators, and with drive letters. We can handle the
9044         # drive letters (cygwin fileutils understands them), so leave them,
9045         # especially as we might pass files found there to a mingw objdump,
9046         # which wouldn't understand a cygwinified path. Ahh.
9047         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9048       else
9049         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9050       fi
9051       ;;
9052     pw32*)
9053       # pw32 DLLs use 'pw' prefix rather than 'lib'
9054       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9055       ;;
9056     esac
9057     ;;
9058
9059   *)
9060     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9061     ;;
9062   esac
9063   dynamic_linker='Win32 ld.exe'
9064   # FIXME: first we should search . and the directory the executable is in
9065   shlibpath_var=PATH
9066   ;;
9067
9068 darwin* | rhapsody*)
9069   dynamic_linker="$host_os dyld"
9070   version_type=darwin
9071   need_lib_prefix=no
9072   need_version=no
9073   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9074   soname_spec='${libname}${release}${major}$shared_ext'
9075   shlibpath_overrides_runpath=yes
9076   shlibpath_var=DYLD_LIBRARY_PATH
9077   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9078   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9079   if test "$GCC" = yes; then
9080     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"`
9081   else
9082     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9083   fi
9084   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9085   ;;
9086
9087 dgux*)
9088   version_type=linux
9089   need_lib_prefix=no
9090   need_version=no
9091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9092   soname_spec='${libname}${release}${shared_ext}$major'
9093   shlibpath_var=LD_LIBRARY_PATH
9094   ;;
9095
9096 freebsd1*)
9097   dynamic_linker=no
9098   ;;
9099
9100 kfreebsd*-gnu)
9101   version_type=linux
9102   need_lib_prefix=no
9103   need_version=no
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   shlibpath_overrides_runpath=no
9108   hardcode_into_libs=yes
9109   dynamic_linker='GNU ld.so'
9110   ;;
9111
9112 freebsd* | dragonfly*)
9113   # DragonFly does not have aout.  When/if they implement a new
9114   # versioning mechanism, adjust this.
9115   if test -x /usr/bin/objformat; then
9116     objformat=`/usr/bin/objformat`
9117   else
9118     case $host_os in
9119     freebsd[123]*) objformat=aout ;;
9120     *) objformat=elf ;;
9121     esac
9122   fi
9123   version_type=freebsd-$objformat
9124   case $version_type in
9125     freebsd-elf*)
9126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9127       need_version=no
9128       need_lib_prefix=no
9129       ;;
9130     freebsd-*)
9131       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9132       need_version=yes
9133       ;;
9134   esac
9135   shlibpath_var=LD_LIBRARY_PATH
9136   case $host_os in
9137   freebsd2*)
9138     shlibpath_overrides_runpath=yes
9139     ;;
9140   freebsd3.[01]* | freebsdelf3.[01]*)
9141     shlibpath_overrides_runpath=yes
9142     hardcode_into_libs=yes
9143     ;;
9144   *) # from 3.2 on
9145     shlibpath_overrides_runpath=no
9146     hardcode_into_libs=yes
9147     ;;
9148   esac
9149   ;;
9150
9151 gnu*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9156   soname_spec='${libname}${release}${shared_ext}$major'
9157   shlibpath_var=LD_LIBRARY_PATH
9158   hardcode_into_libs=yes
9159   ;;
9160
9161 hpux9* | hpux10* | hpux11*)
9162   # Give a soname corresponding to the major version so that dld.sl refuses to
9163   # link against other versions.
9164   version_type=sunos
9165   need_lib_prefix=no
9166   need_version=no
9167   case $host_cpu in
9168   ia64*)
9169     shrext_cmds='.so'
9170     hardcode_into_libs=yes
9171     dynamic_linker="$host_os dld.so"
9172     shlibpath_var=LD_LIBRARY_PATH
9173     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175     soname_spec='${libname}${release}${shared_ext}$major'
9176     if test "X$HPUX_IA64_MODE" = X32; then
9177       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9178     else
9179       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9180     fi
9181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9182     ;;
9183    hppa*64*)
9184      shrext_cmds='.sl'
9185      hardcode_into_libs=yes
9186      dynamic_linker="$host_os dld.sl"
9187      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9188      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9189      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190      soname_spec='${libname}${release}${shared_ext}$major'
9191      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9192      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9193      ;;
9194    *)
9195     shrext_cmds='.sl'
9196     dynamic_linker="$host_os dld.sl"
9197     shlibpath_var=SHLIB_PATH
9198     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9199     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200     soname_spec='${libname}${release}${shared_ext}$major'
9201     ;;
9202   esac
9203   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9204   postinstall_cmds='chmod 555 $lib'
9205   ;;
9206
9207 irix5* | irix6* | nonstopux*)
9208   case $host_os in
9209     nonstopux*) version_type=nonstopux ;;
9210     *)
9211         if test "$lt_cv_prog_gnu_ld" = yes; then
9212                 version_type=linux
9213         else
9214                 version_type=irix
9215         fi ;;
9216   esac
9217   need_lib_prefix=no
9218   need_version=no
9219   soname_spec='${libname}${release}${shared_ext}$major'
9220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9221   case $host_os in
9222   irix5* | nonstopux*)
9223     libsuff= shlibsuff=
9224     ;;
9225   *)
9226     case $LD in # libtool.m4 will add one of these switches to LD
9227     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9228       libsuff= shlibsuff= libmagic=32-bit;;
9229     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9230       libsuff=32 shlibsuff=N32 libmagic=N32;;
9231     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9232       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9233     *) libsuff= shlibsuff= libmagic=never-match;;
9234     esac
9235     ;;
9236   esac
9237   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9238   shlibpath_overrides_runpath=no
9239   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9240   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9241   hardcode_into_libs=yes
9242   ;;
9243
9244 # No shared lib support for Linux oldld, aout, or coff.
9245 linux*oldld* | linux*aout* | linux*coff*)
9246   dynamic_linker=no
9247   ;;
9248
9249 # This must be Linux ELF.
9250 linux*)
9251   version_type=linux
9252   need_lib_prefix=no
9253   need_version=no
9254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9255   soname_spec='${libname}${release}${shared_ext}$major'
9256   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9257   shlibpath_var=LD_LIBRARY_PATH
9258   shlibpath_overrides_runpath=no
9259   # This implies no fast_install, which is unacceptable.
9260   # Some rework will be needed to allow for fast_install
9261   # before this can be enabled.
9262   hardcode_into_libs=yes
9263
9264   # Append ld.so.conf contents to the search path
9265   if test -f /etc/ld.so.conf; then
9266     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' ' '`
9267     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9268   fi
9269
9270   # We used to test for /lib/ld.so.1 and disable shared libraries on
9271   # powerpc, because MkLinux only supported shared libraries with the
9272   # GNU dynamic linker.  Since this was broken with cross compilers,
9273   # most powerpc-linux boxes support dynamic linking these days and
9274   # people can always --disable-shared, the test was removed, and we
9275   # assume the GNU/Linux dynamic linker is in use.
9276   dynamic_linker='GNU/Linux ld.so'
9277   ;;
9278
9279 knetbsd*-gnu)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9284   soname_spec='${libname}${release}${shared_ext}$major'
9285   shlibpath_var=LD_LIBRARY_PATH
9286   shlibpath_overrides_runpath=no
9287   hardcode_into_libs=yes
9288   dynamic_linker='GNU ld.so'
9289   ;;
9290
9291 netbsd*)
9292   version_type=sunos
9293   need_lib_prefix=no
9294   need_version=no
9295   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9298     dynamic_linker='NetBSD (a.out) ld.so'
9299   else
9300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9301     soname_spec='${libname}${release}${shared_ext}$major'
9302     dynamic_linker='NetBSD ld.elf_so'
9303   fi
9304   shlibpath_var=LD_LIBRARY_PATH
9305   shlibpath_overrides_runpath=yes
9306   hardcode_into_libs=yes
9307   ;;
9308
9309 newsos6)
9310   version_type=linux
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   shlibpath_overrides_runpath=yes
9314   ;;
9315
9316 nto-qnx*)
9317   version_type=linux
9318   need_lib_prefix=no
9319   need_version=no
9320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321   soname_spec='${libname}${release}${shared_ext}$major'
9322   shlibpath_var=LD_LIBRARY_PATH
9323   shlibpath_overrides_runpath=yes
9324   ;;
9325
9326 openbsd*)
9327   version_type=sunos
9328   need_lib_prefix=no
9329   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9330   case $host_os in
9331     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332     *)                         need_version=no  ;;
9333   esac
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336   shlibpath_var=LD_LIBRARY_PATH
9337   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338     case $host_os in
9339       openbsd2.[89] | openbsd2.[89].*)
9340         shlibpath_overrides_runpath=no
9341         ;;
9342       *)
9343         shlibpath_overrides_runpath=yes
9344         ;;
9345       esac
9346   else
9347     shlibpath_overrides_runpath=yes
9348   fi
9349   ;;
9350
9351 os2*)
9352   libname_spec='$name'
9353   shrext_cmds=".dll"
9354   need_lib_prefix=no
9355   library_names_spec='$libname${shared_ext} $libname.a'
9356   dynamic_linker='OS/2 ld.exe'
9357   shlibpath_var=LIBPATH
9358   ;;
9359
9360 osf3* | osf4* | osf5*)
9361   version_type=osf
9362   need_lib_prefix=no
9363   need_version=no
9364   soname_spec='${libname}${release}${shared_ext}$major'
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   shlibpath_var=LD_LIBRARY_PATH
9367   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9369   ;;
9370
9371 sco3.2v5*)
9372   version_type=osf
9373   soname_spec='${libname}${release}${shared_ext}$major'
9374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375   shlibpath_var=LD_LIBRARY_PATH
9376   ;;
9377
9378 solaris*)
9379   version_type=linux
9380   need_lib_prefix=no
9381   need_version=no
9382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383   soname_spec='${libname}${release}${shared_ext}$major'
9384   shlibpath_var=LD_LIBRARY_PATH
9385   shlibpath_overrides_runpath=yes
9386   hardcode_into_libs=yes
9387   # ldd complains unless libraries are executable
9388   postinstall_cmds='chmod +x $lib'
9389   ;;
9390
9391 sunos4*)
9392   version_type=sunos
9393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9395   shlibpath_var=LD_LIBRARY_PATH
9396   shlibpath_overrides_runpath=yes
9397   if test "$with_gnu_ld" = yes; then
9398     need_lib_prefix=no
9399   fi
9400   need_version=yes
9401   ;;
9402
9403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9404   version_type=linux
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406   soname_spec='${libname}${release}${shared_ext}$major'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   case $host_vendor in
9409     sni)
9410       shlibpath_overrides_runpath=no
9411       need_lib_prefix=no
9412       export_dynamic_flag_spec='${wl}-Blargedynsym'
9413       runpath_var=LD_RUN_PATH
9414       ;;
9415     siemens)
9416       need_lib_prefix=no
9417       ;;
9418     motorola)
9419       need_lib_prefix=no
9420       need_version=no
9421       shlibpath_overrides_runpath=no
9422       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9423       ;;
9424   esac
9425   ;;
9426
9427 sysv4*MP*)
9428   if test -d /usr/nec ;then
9429     version_type=linux
9430     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9431     soname_spec='$libname${shared_ext}.$major'
9432     shlibpath_var=LD_LIBRARY_PATH
9433   fi
9434   ;;
9435
9436 uts4*)
9437   version_type=linux
9438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9439   soname_spec='${libname}${release}${shared_ext}$major'
9440   shlibpath_var=LD_LIBRARY_PATH
9441   ;;
9442
9443 *)
9444   dynamic_linker=no
9445   ;;
9446 esac
9447 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9448 echo "${ECHO_T}$dynamic_linker" >&6
9449 test "$dynamic_linker" = no && can_build_shared=no
9450
9451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9453 hardcode_action=
9454 if test -n "$hardcode_libdir_flag_spec" || \
9455    test -n "$runpath_var" || \
9456    test "X$hardcode_automatic" = "Xyes" ; then
9457
9458   # We can hardcode non-existant directories.
9459   if test "$hardcode_direct" != no &&
9460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9461      # have to relink, otherwise we might link with an installed library
9462      # when we should be linking with a yet-to-be-installed one
9463      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9464      test "$hardcode_minus_L" != no; then
9465     # Linking always hardcodes the temporary library directory.
9466     hardcode_action=relink
9467   else
9468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9469     hardcode_action=immediate
9470   fi
9471 else
9472   # We cannot hardcode anything, or else we can only hardcode existing
9473   # directories.
9474   hardcode_action=unsupported
9475 fi
9476 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9477 echo "${ECHO_T}$hardcode_action" >&6
9478
9479 if test "$hardcode_action" = relink; then
9480   # Fast installation is not supported
9481   enable_fast_install=no
9482 elif test "$shlibpath_overrides_runpath" = yes ||
9483      test "$enable_shared" = no; then
9484   # Fast installation is not necessary
9485   enable_fast_install=needless
9486 fi
9487
9488 striplib=
9489 old_striplib=
9490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9493   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9494   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9495   echo "$as_me:$LINENO: result: yes" >&5
9496 echo "${ECHO_T}yes" >&6
9497 else
9498 # FIXME - insert some real tests, host_os isn't really good enough
9499   case $host_os in
9500    darwin*)
9501        if test -n "$STRIP" ; then
9502          striplib="$STRIP -x"
9503          echo "$as_me:$LINENO: result: yes" >&5
9504 echo "${ECHO_T}yes" >&6
9505        else
9506   echo "$as_me:$LINENO: result: no" >&5
9507 echo "${ECHO_T}no" >&6
9508 fi
9509        ;;
9510    *)
9511   echo "$as_me:$LINENO: result: no" >&5
9512 echo "${ECHO_T}no" >&6
9513     ;;
9514   esac
9515 fi
9516
9517 if test "x$enable_dlopen" != xyes; then
9518   enable_dlopen=unknown
9519   enable_dlopen_self=unknown
9520   enable_dlopen_self_static=unknown
9521 else
9522   lt_cv_dlopen=no
9523   lt_cv_dlopen_libs=
9524
9525   case $host_os in
9526   beos*)
9527     lt_cv_dlopen="load_add_on"
9528     lt_cv_dlopen_libs=
9529     lt_cv_dlopen_self=yes
9530     ;;
9531
9532   mingw* | pw32*)
9533     lt_cv_dlopen="LoadLibrary"
9534     lt_cv_dlopen_libs=
9535    ;;
9536
9537   cygwin*)
9538     lt_cv_dlopen="dlopen"
9539     lt_cv_dlopen_libs=
9540    ;;
9541
9542   darwin*)
9543   # if libdl is installed we need to link against it
9544     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-ldl  $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557
9558 /* Override any gcc2 internal prototype to avoid an error.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 /* We use char because int might match the return type of a gcc2
9563    builtin and then its argument prototype would still apply.  */
9564 char dlopen ();
9565 int
9566 main ()
9567 {
9568 dlopen ();
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575   (eval $ac_link) 2>conftest.er1
9576   ac_status=$?
9577   grep -v '^ *+' conftest.er1 >conftest.err
9578   rm -f conftest.er1
9579   cat conftest.err >&5
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -z "$ac_c_werror_flag"
9583                          || test ! -s conftest.err'
9584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585   (eval $ac_try) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; } &&
9589          { ac_try='test -s conftest$ac_exeext'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   ac_cv_lib_dl_dlopen=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_cv_lib_dl_dlopen=no
9601 fi
9602 rm -f conftest.err conftest.$ac_objext \
9603       conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9607 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9608 if test $ac_cv_lib_dl_dlopen = yes; then
9609   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9610 else
9611
9612     lt_cv_dlopen="dyld"
9613     lt_cv_dlopen_libs=
9614     lt_cv_dlopen_self=yes
9615
9616 fi
9617
9618    ;;
9619
9620   *)
9621     echo "$as_me:$LINENO: checking for shl_load" >&5
9622 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9623 if test "${ac_cv_func_shl_load+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9634 #define shl_load innocuous_shl_load
9635
9636 /* System header to define __stub macros and hopefully few prototypes,
9637     which can conflict with char shl_load (); below.
9638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9639     <limits.h> exists even on freestanding compilers.  */
9640
9641 #ifdef __STDC__
9642 # include <limits.h>
9643 #else
9644 # include <assert.h>
9645 #endif
9646
9647 #undef shl_load
9648
9649 /* Override any gcc2 internal prototype to avoid an error.  */
9650 #ifdef __cplusplus
9651 extern "C"
9652 {
9653 #endif
9654 /* We use char because int might match the return type of a gcc2
9655    builtin and then its argument prototype would still apply.  */
9656 char shl_load ();
9657 /* The GNU C library defines this for functions which it implements
9658     to always fail with ENOSYS.  Some functions are actually named
9659     something starting with __ and the normal name is an alias.  */
9660 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9661 choke me
9662 #else
9663 char (*f) () = shl_load;
9664 #endif
9665 #ifdef __cplusplus
9666 }
9667 #endif
9668
9669 int
9670 main ()
9671 {
9672 return f != shl_load;
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679   (eval $ac_link) 2>conftest.er1
9680   ac_status=$?
9681   grep -v '^ *+' conftest.er1 >conftest.err
9682   rm -f conftest.er1
9683   cat conftest.err >&5
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); } &&
9686          { ac_try='test -z "$ac_c_werror_flag"
9687                          || test ! -s conftest.err'
9688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689   (eval $ac_try) 2>&5
9690   ac_status=$?
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); }; } &&
9693          { ac_try='test -s conftest$ac_exeext'
9694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695   (eval $ac_try) 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_func_shl_load=yes
9700 else
9701   echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 ac_cv_func_shl_load=no
9705 fi
9706 rm -f conftest.err conftest.$ac_objext \
9707       conftest$ac_exeext conftest.$ac_ext
9708 fi
9709 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9710 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9711 if test $ac_cv_func_shl_load = yes; then
9712   lt_cv_dlopen="shl_load"
9713 else
9714   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9715 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9716 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-ldld  $LIBS"
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 /* Override any gcc2 internal prototype to avoid an error.  */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 /* We use char because int might match the return type of a gcc2
9733    builtin and then its argument prototype would still apply.  */
9734 char shl_load ();
9735 int
9736 main ()
9737 {
9738 shl_load ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745   (eval $ac_link) 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } &&
9752          { ac_try='test -z "$ac_c_werror_flag"
9753                          || test ! -s conftest.err'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   ac_cv_lib_dld_shl_load=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_lib_dld_shl_load=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9775 fi
9776 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9777 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9778 if test $ac_cv_lib_dld_shl_load = yes; then
9779   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9780 else
9781   echo "$as_me:$LINENO: checking for dlopen" >&5
9782 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9783 if test "${ac_cv_func_dlopen+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9794 #define dlopen innocuous_dlopen
9795
9796 /* System header to define __stub macros and hopefully few prototypes,
9797     which can conflict with char dlopen (); below.
9798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799     <limits.h> exists even on freestanding compilers.  */
9800
9801 #ifdef __STDC__
9802 # include <limits.h>
9803 #else
9804 # include <assert.h>
9805 #endif
9806
9807 #undef dlopen
9808
9809 /* Override any gcc2 internal prototype to avoid an error.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815    builtin and then its argument prototype would still apply.  */
9816 char dlopen ();
9817 /* The GNU C library defines this for functions which it implements
9818     to always fail with ENOSYS.  Some functions are actually named
9819     something starting with __ and the normal name is an alias.  */
9820 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9821 choke me
9822 #else
9823 char (*f) () = dlopen;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != dlopen;
9833   ;
9834   return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839   (eval $ac_link) 2>conftest.er1
9840   ac_status=$?
9841   grep -v '^ *+' conftest.er1 >conftest.err
9842   rm -f conftest.er1
9843   cat conftest.err >&5
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } &&
9846          { ac_try='test -z "$ac_c_werror_flag"
9847                          || test ! -s conftest.err'
9848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849   (eval $ac_try) 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; } &&
9853          { ac_try='test -s conftest$ac_exeext'
9854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855   (eval $ac_try) 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   ac_cv_func_dlopen=yes
9860 else
9861   echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9863
9864 ac_cv_func_dlopen=no
9865 fi
9866 rm -f conftest.err conftest.$ac_objext \
9867       conftest$ac_exeext conftest.$ac_ext
9868 fi
9869 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9870 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9871 if test $ac_cv_func_dlopen = yes; then
9872   lt_cv_dlopen="dlopen"
9873 else
9874   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9875 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9876 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9877   echo $ECHO_N "(cached) $ECHO_C" >&6
9878 else
9879   ac_check_lib_save_LIBS=$LIBS
9880 LIBS="-ldl  $LIBS"
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887
9888 /* Override any gcc2 internal prototype to avoid an error.  */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 /* We use char because int might match the return type of a gcc2
9893    builtin and then its argument prototype would still apply.  */
9894 char dlopen ();
9895 int
9896 main ()
9897 {
9898 dlopen ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9905   (eval $ac_link) 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } &&
9912          { ac_try='test -z "$ac_c_werror_flag"
9913                          || test ! -s conftest.err'
9914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915   (eval $ac_try) 2>&5
9916   ac_status=$?
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); }; } &&
9919          { ac_try='test -s conftest$ac_exeext'
9920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921   (eval $ac_try) 2>&5
9922   ac_status=$?
9923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924   (exit $ac_status); }; }; then
9925   ac_cv_lib_dl_dlopen=yes
9926 else
9927   echo "$as_me: failed program was:" >&5
9928 sed 's/^/| /' conftest.$ac_ext >&5
9929
9930 ac_cv_lib_dl_dlopen=no
9931 fi
9932 rm -f conftest.err conftest.$ac_objext \
9933       conftest$ac_exeext conftest.$ac_ext
9934 LIBS=$ac_check_lib_save_LIBS
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9938 if test $ac_cv_lib_dl_dlopen = yes; then
9939   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9940 else
9941   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9942 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9943 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-lsvld  $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 /* We use char because int might match the return type of a gcc2
9960    builtin and then its argument prototype would still apply.  */
9961 char dlopen ();
9962 int
9963 main ()
9964 {
9965 dlopen ();
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972   (eval $ac_link) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest$ac_exeext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_lib_svld_dlopen=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_svld_dlopen=no
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10005 if test $ac_cv_lib_svld_dlopen = yes; then
10006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10007 else
10008   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10009 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10010 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldld  $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021
10022 /* Override any gcc2 internal prototype to avoid an error.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 /* We use char because int might match the return type of a gcc2
10027    builtin and then its argument prototype would still apply.  */
10028 char dld_link ();
10029 int
10030 main ()
10031 {
10032 dld_link ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"
10047                          || test ! -s conftest.err'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_lib_dld_dld_link=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 ac_cv_lib_dld_dld_link=no
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067       conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10072 if test $ac_cv_lib_dld_dld_link = yes; then
10073   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10074 fi
10075
10076
10077 fi
10078
10079
10080 fi
10081
10082
10083 fi
10084
10085
10086 fi
10087
10088
10089 fi
10090
10091     ;;
10092   esac
10093
10094   if test "x$lt_cv_dlopen" != xno; then
10095     enable_dlopen=yes
10096   else
10097     enable_dlopen=no
10098   fi
10099
10100   case $lt_cv_dlopen in
10101   dlopen)
10102     save_CPPFLAGS="$CPPFLAGS"
10103     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10104
10105     save_LDFLAGS="$LDFLAGS"
10106     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10107
10108     save_LIBS="$LIBS"
10109     LIBS="$lt_cv_dlopen_libs $LIBS"
10110
10111     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10112 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10113 if test "${lt_cv_dlopen_self+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116           if test "$cross_compiling" = yes; then :
10117   lt_cv_dlopen_self=cross
10118 else
10119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10120   lt_status=$lt_dlunknown
10121   cat > conftest.$ac_ext <<EOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10124
10125 #if HAVE_DLFCN_H
10126 #include <dlfcn.h>
10127 #endif
10128
10129 #include <stdio.h>
10130
10131 #ifdef RTLD_GLOBAL
10132 #  define LT_DLGLOBAL           RTLD_GLOBAL
10133 #else
10134 #  ifdef DL_GLOBAL
10135 #    define LT_DLGLOBAL         DL_GLOBAL
10136 #  else
10137 #    define LT_DLGLOBAL         0
10138 #  endif
10139 #endif
10140
10141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10142    find out it does not work in some platform. */
10143 #ifndef LT_DLLAZY_OR_NOW
10144 #  ifdef RTLD_LAZY
10145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10146 #  else
10147 #    ifdef DL_LAZY
10148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10149 #    else
10150 #      ifdef RTLD_NOW
10151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10152 #      else
10153 #        ifdef DL_NOW
10154 #          define LT_DLLAZY_OR_NOW      DL_NOW
10155 #        else
10156 #          define LT_DLLAZY_OR_NOW      0
10157 #        endif
10158 #      endif
10159 #    endif
10160 #  endif
10161 #endif
10162
10163 #ifdef __cplusplus
10164 extern "C" void exit (int);
10165 #endif
10166
10167 void fnord() { int i=42;}
10168 int main ()
10169 {
10170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171   int status = $lt_dlunknown;
10172
10173   if (self)
10174     {
10175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10176       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177       /* dlclose (self); */
10178     }
10179
10180     exit (status);
10181 }
10182 EOF
10183   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184   (eval $ac_link) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10188     (./conftest; exit; ) >&5 2>/dev/null
10189     lt_status=$?
10190     case x$lt_status in
10191       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10192       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10193       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10194     esac
10195   else :
10196     # compilation failed
10197     lt_cv_dlopen_self=no
10198   fi
10199 fi
10200 rm -fr conftest*
10201
10202
10203 fi
10204 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10205 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10206
10207     if test "x$lt_cv_dlopen_self" = xyes; then
10208       LDFLAGS="$LDFLAGS $link_static_flag"
10209       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10210 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10211 if test "${lt_cv_dlopen_self_static+set}" = set; then
10212   echo $ECHO_N "(cached) $ECHO_C" >&6
10213 else
10214           if test "$cross_compiling" = yes; then :
10215   lt_cv_dlopen_self_static=cross
10216 else
10217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10218   lt_status=$lt_dlunknown
10219   cat > conftest.$ac_ext <<EOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222
10223 #if HAVE_DLFCN_H
10224 #include <dlfcn.h>
10225 #endif
10226
10227 #include <stdio.h>
10228
10229 #ifdef RTLD_GLOBAL
10230 #  define LT_DLGLOBAL           RTLD_GLOBAL
10231 #else
10232 #  ifdef DL_GLOBAL
10233 #    define LT_DLGLOBAL         DL_GLOBAL
10234 #  else
10235 #    define LT_DLGLOBAL         0
10236 #  endif
10237 #endif
10238
10239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10240    find out it does not work in some platform. */
10241 #ifndef LT_DLLAZY_OR_NOW
10242 #  ifdef RTLD_LAZY
10243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10244 #  else
10245 #    ifdef DL_LAZY
10246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10247 #    else
10248 #      ifdef RTLD_NOW
10249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10250 #      else
10251 #        ifdef DL_NOW
10252 #          define LT_DLLAZY_OR_NOW      DL_NOW
10253 #        else
10254 #          define LT_DLLAZY_OR_NOW      0
10255 #        endif
10256 #      endif
10257 #    endif
10258 #  endif
10259 #endif
10260
10261 #ifdef __cplusplus
10262 extern "C" void exit (int);
10263 #endif
10264
10265 void fnord() { int i=42;}
10266 int main ()
10267 {
10268   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10269   int status = $lt_dlunknown;
10270
10271   if (self)
10272     {
10273       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10274       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10275       /* dlclose (self); */
10276     }
10277
10278     exit (status);
10279 }
10280 EOF
10281   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282   (eval $ac_link) 2>&5
10283   ac_status=$?
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10286     (./conftest; exit; ) >&5 2>/dev/null
10287     lt_status=$?
10288     case x$lt_status in
10289       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10290       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10291       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10292     esac
10293   else :
10294     # compilation failed
10295     lt_cv_dlopen_self_static=no
10296   fi
10297 fi
10298 rm -fr conftest*
10299
10300
10301 fi
10302 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10303 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10304     fi
10305
10306     CPPFLAGS="$save_CPPFLAGS"
10307     LDFLAGS="$save_LDFLAGS"
10308     LIBS="$save_LIBS"
10309     ;;
10310   esac
10311
10312   case $lt_cv_dlopen_self in
10313   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10314   *) enable_dlopen_self=unknown ;;
10315   esac
10316
10317   case $lt_cv_dlopen_self_static in
10318   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10319   *) enable_dlopen_self_static=unknown ;;
10320   esac
10321 fi
10322
10323
10324 # Report which librarie types wil actually be built
10325 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10326 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10327 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10328 echo "${ECHO_T}$can_build_shared" >&6
10329
10330 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10331 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10332 test "$can_build_shared" = "no" && enable_shared=no
10333
10334 # On AIX, shared libraries and static libraries use the same namespace, and
10335 # are all built from PIC.
10336 case $host_os in
10337 aix3*)
10338   test "$enable_shared" = yes && enable_static=no
10339   if test -n "$RANLIB"; then
10340     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10341     postinstall_cmds='$RANLIB $lib'
10342   fi
10343   ;;
10344
10345 aix4* | aix5*)
10346   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10347     test "$enable_shared" = yes && enable_static=no
10348   fi
10349     ;;
10350 esac
10351 echo "$as_me:$LINENO: result: $enable_shared" >&5
10352 echo "${ECHO_T}$enable_shared" >&6
10353
10354 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10355 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10356 # Make sure either enable_shared or enable_static is yes.
10357 test "$enable_shared" = yes || enable_static=yes
10358 echo "$as_me:$LINENO: result: $enable_static" >&5
10359 echo "${ECHO_T}$enable_static" >&6
10360
10361 # The else clause should only fire when bootstrapping the
10362 # libtool distribution, otherwise you forgot to ship ltmain.sh
10363 # with your package, and you will get complaints that there are
10364 # no rules to generate ltmain.sh.
10365 if test -f "$ltmain"; then
10366   # See if we are running on zsh, and set the options which allow our commands through
10367   # without removal of \ escapes.
10368   if test -n "${ZSH_VERSION+set}" ; then
10369     setopt NO_GLOB_SUBST
10370   fi
10371   # Now quote all the things that may contain metacharacters while being
10372   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10373   # variables and quote the copies for generation of the libtool script.
10374   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10375     SED SHELL STRIP \
10376     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10377     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10378     deplibs_check_method reload_flag reload_cmds need_locks \
10379     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10380     lt_cv_sys_global_symbol_to_c_name_address \
10381     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10382     old_postinstall_cmds old_postuninstall_cmds \
10383     compiler \
10384     CC \
10385     LD \
10386     lt_prog_compiler_wl \
10387     lt_prog_compiler_pic \
10388     lt_prog_compiler_static \
10389     lt_prog_compiler_no_builtin_flag \
10390     export_dynamic_flag_spec \
10391     thread_safe_flag_spec \
10392     whole_archive_flag_spec \
10393     enable_shared_with_static_runtimes \
10394     old_archive_cmds \
10395     old_archive_from_new_cmds \
10396     predep_objects \
10397     postdep_objects \
10398     predeps \
10399     postdeps \
10400     compiler_lib_search_path \
10401     archive_cmds \
10402     archive_expsym_cmds \
10403     postinstall_cmds \
10404     postuninstall_cmds \
10405     old_archive_from_expsyms_cmds \
10406     allow_undefined_flag \
10407     no_undefined_flag \
10408     export_symbols_cmds \
10409     hardcode_libdir_flag_spec \
10410     hardcode_libdir_flag_spec_ld \
10411     hardcode_libdir_separator \
10412     hardcode_automatic \
10413     module_cmds \
10414     module_expsym_cmds \
10415     lt_cv_prog_compiler_c_o \
10416     exclude_expsyms \
10417     include_expsyms; do
10418
10419     case $var in
10420     old_archive_cmds | \
10421     old_archive_from_new_cmds | \
10422     archive_cmds | \
10423     archive_expsym_cmds | \
10424     module_cmds | \
10425     module_expsym_cmds | \
10426     old_archive_from_expsyms_cmds | \
10427     export_symbols_cmds | \
10428     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10429     postinstall_cmds | postuninstall_cmds | \
10430     old_postinstall_cmds | old_postuninstall_cmds | \
10431     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10432       # Double-quote double-evaled strings.
10433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10434       ;;
10435     *)
10436       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10437       ;;
10438     esac
10439   done
10440
10441   case $lt_echo in
10442   *'\$0 --fallback-echo"')
10443     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10444     ;;
10445   esac
10446
10447 cfgfile="${ofile}T"
10448   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10449   $rm -f "$cfgfile"
10450   { echo "$as_me:$LINENO: creating $ofile" >&5
10451 echo "$as_me: creating $ofile" >&6;}
10452
10453   cat <<__EOF__ >> "$cfgfile"
10454 #! $SHELL
10455
10456 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10457 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10458 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10459 #
10460 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10461 # Free Software Foundation, Inc.
10462 #
10463 # This file is part of GNU Libtool:
10464 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10465 #
10466 # This program is free software; you can redistribute it and/or modify
10467 # it under the terms of the GNU General Public License as published by
10468 # the Free Software Foundation; either version 2 of the License, or
10469 # (at your option) any later version.
10470 #
10471 # This program is distributed in the hope that it will be useful, but
10472 # WITHOUT ANY WARRANTY; without even the implied warranty of
10473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10474 # General Public License for more details.
10475 #
10476 # You should have received a copy of the GNU General Public License
10477 # along with this program; if not, write to the Free Software
10478 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10479 #
10480 # As a special exception to the GNU General Public License, if you
10481 # distribute this file as part of a program that contains a
10482 # configuration script generated by Autoconf, you may include it under
10483 # the same distribution terms that you use for the rest of that program.
10484
10485 # A sed program that does not truncate output.
10486 SED=$lt_SED
10487
10488 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10489 Xsed="$SED -e 1s/^X//"
10490
10491 # The HP-UX ksh and POSIX shell print the target directory to stdout
10492 # if CDPATH is set.
10493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10494
10495 # The names of the tagged configurations supported by this script.
10496 available_tags=
10497
10498 # ### BEGIN LIBTOOL CONFIG
10499
10500 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10501
10502 # Shell to use when invoking shell scripts.
10503 SHELL=$lt_SHELL
10504
10505 # Whether or not to build shared libraries.
10506 build_libtool_libs=$enable_shared
10507
10508 # Whether or not to build static libraries.
10509 build_old_libs=$enable_static
10510
10511 # Whether or not to add -lc for building shared libraries.
10512 build_libtool_need_lc=$archive_cmds_need_lc
10513
10514 # Whether or not to disallow shared libs when runtime libs are static
10515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10516
10517 # Whether or not to optimize for fast installation.
10518 fast_install=$enable_fast_install
10519
10520 # The host system.
10521 host_alias=$host_alias
10522 host=$host
10523 host_os=$host_os
10524
10525 # The build system.
10526 build_alias=$build_alias
10527 build=$build
10528 build_os=$build_os
10529
10530 # An echo program that does not interpret backslashes.
10531 echo=$lt_echo
10532
10533 # The archiver.
10534 AR=$lt_AR
10535 AR_FLAGS=$lt_AR_FLAGS
10536
10537 # A C compiler.
10538 LTCC=$lt_LTCC
10539
10540 # A language-specific compiler.
10541 CC=$lt_compiler
10542
10543 # Is the compiler the GNU C compiler?
10544 with_gcc=$GCC
10545
10546 # An ERE matcher.
10547 EGREP=$lt_EGREP
10548
10549 # The linker used to build libraries.
10550 LD=$lt_LD
10551
10552 # Whether we need hard or soft links.
10553 LN_S=$lt_LN_S
10554
10555 # A BSD-compatible nm program.
10556 NM=$lt_NM
10557
10558 # A symbol stripping program
10559 STRIP=$lt_STRIP
10560
10561 # Used to examine libraries when file_magic_cmd begins "file"
10562 MAGIC_CMD=$MAGIC_CMD
10563
10564 # Used on cygwin: DLL creation program.
10565 DLLTOOL="$DLLTOOL"
10566
10567 # Used on cygwin: object dumper.
10568 OBJDUMP="$OBJDUMP"
10569
10570 # Used on cygwin: assembler.
10571 AS="$AS"
10572
10573 # The name of the directory that contains temporary libtool files.
10574 objdir=$objdir
10575
10576 # How to create reloadable object files.
10577 reload_flag=$lt_reload_flag
10578 reload_cmds=$lt_reload_cmds
10579
10580 # How to pass a linker flag through the compiler.
10581 wl=$lt_lt_prog_compiler_wl
10582
10583 # Object file suffix (normally "o").
10584 objext="$ac_objext"
10585
10586 # Old archive suffix (normally "a").
10587 libext="$libext"
10588
10589 # Shared library suffix (normally ".so").
10590 shrext_cmds='$shrext_cmds'
10591
10592 # Executable file suffix (normally "").
10593 exeext="$exeext"
10594
10595 # Additional compiler flags for building library objects.
10596 pic_flag=$lt_lt_prog_compiler_pic
10597 pic_mode=$pic_mode
10598
10599 # What is the maximum length of a command?
10600 max_cmd_len=$lt_cv_sys_max_cmd_len
10601
10602 # Does compiler simultaneously support -c and -o options?
10603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10604
10605 # Must we lock files when doing compilation?
10606 need_locks=$lt_need_locks
10607
10608 # Do we need the lib prefix for modules?
10609 need_lib_prefix=$need_lib_prefix
10610
10611 # Do we need a version for libraries?
10612 need_version=$need_version
10613
10614 # Whether dlopen is supported.
10615 dlopen_support=$enable_dlopen
10616
10617 # Whether dlopen of programs is supported.
10618 dlopen_self=$enable_dlopen_self
10619
10620 # Whether dlopen of statically linked programs is supported.
10621 dlopen_self_static=$enable_dlopen_self_static
10622
10623 # Compiler flag to prevent dynamic linking.
10624 link_static_flag=$lt_lt_prog_compiler_static
10625
10626 # Compiler flag to turn off builtin functions.
10627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10628
10629 # Compiler flag to allow reflexive dlopens.
10630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10631
10632 # Compiler flag to generate shared objects directly from archives.
10633 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10634
10635 # Compiler flag to generate thread-safe objects.
10636 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10637
10638 # Library versioning type.
10639 version_type=$version_type
10640
10641 # Format of library name prefix.
10642 libname_spec=$lt_libname_spec
10643
10644 # List of archive names.  First name is the real one, the rest are links.
10645 # The last name is the one that the linker finds with -lNAME.
10646 library_names_spec=$lt_library_names_spec
10647
10648 # The coded name of the library, if different from the real name.
10649 soname_spec=$lt_soname_spec
10650
10651 # Commands used to build and install an old-style archive.
10652 RANLIB=$lt_RANLIB
10653 old_archive_cmds=$lt_old_archive_cmds
10654 old_postinstall_cmds=$lt_old_postinstall_cmds
10655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10656
10657 # Create an old-style archive from a shared archive.
10658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10659
10660 # Create a temporary old-style archive to link instead of a shared archive.
10661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10662
10663 # Commands used to build and install a shared archive.
10664 archive_cmds=$lt_archive_cmds
10665 archive_expsym_cmds=$lt_archive_expsym_cmds
10666 postinstall_cmds=$lt_postinstall_cmds
10667 postuninstall_cmds=$lt_postuninstall_cmds
10668
10669 # Commands used to build a loadable module (assumed same as above if empty)
10670 module_cmds=$lt_module_cmds
10671 module_expsym_cmds=$lt_module_expsym_cmds
10672
10673 # Commands to strip libraries.
10674 old_striplib=$lt_old_striplib
10675 striplib=$lt_striplib
10676
10677 # Dependencies to place before the objects being linked to create a
10678 # shared library.
10679 predep_objects=$lt_predep_objects
10680
10681 # Dependencies to place after the objects being linked to create a
10682 # shared library.
10683 postdep_objects=$lt_postdep_objects
10684
10685 # Dependencies to place before the objects being linked to create a
10686 # shared library.
10687 predeps=$lt_predeps
10688
10689 # Dependencies to place after the objects being linked to create a
10690 # shared library.
10691 postdeps=$lt_postdeps
10692
10693 # The library search path used internally by the compiler when linking
10694 # a shared library.
10695 compiler_lib_search_path=$lt_compiler_lib_search_path
10696
10697 # Method to check whether dependent libraries are shared objects.
10698 deplibs_check_method=$lt_deplibs_check_method
10699
10700 # Command to use when deplibs_check_method == file_magic.
10701 file_magic_cmd=$lt_file_magic_cmd
10702
10703 # Flag that allows shared libraries with undefined symbols to be built.
10704 allow_undefined_flag=$lt_allow_undefined_flag
10705
10706 # Flag that forces no undefined symbols.
10707 no_undefined_flag=$lt_no_undefined_flag
10708
10709 # Commands used to finish a libtool library installation in a directory.
10710 finish_cmds=$lt_finish_cmds
10711
10712 # Same as above, but a single script fragment to be evaled but not shown.
10713 finish_eval=$lt_finish_eval
10714
10715 # Take the output of nm and produce a listing of raw symbols and C names.
10716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10717
10718 # Transform the output of nm in a proper C declaration
10719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10720
10721 # Transform the output of nm in a C name address pair
10722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10723
10724 # This is the shared library runtime path variable.
10725 runpath_var=$runpath_var
10726
10727 # This is the shared library path variable.
10728 shlibpath_var=$shlibpath_var
10729
10730 # Is shlibpath searched before the hard-coded library search path?
10731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10732
10733 # How to hardcode a shared library path into an executable.
10734 hardcode_action=$hardcode_action
10735
10736 # Whether we should hardcode library paths into libraries.
10737 hardcode_into_libs=$hardcode_into_libs
10738
10739 # Flag to hardcode \$libdir into a binary during linking.
10740 # This must work even if \$libdir does not exist.
10741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10742
10743 # If ld is used when linking, flag to hardcode \$libdir into
10744 # a binary during linking. This must work even if \$libdir does
10745 # not exist.
10746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10747
10748 # Whether we need a single -rpath flag with a separated argument.
10749 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10750
10751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10752 # resulting binary.
10753 hardcode_direct=$hardcode_direct
10754
10755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10756 # resulting binary.
10757 hardcode_minus_L=$hardcode_minus_L
10758
10759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10760 # the resulting binary.
10761 hardcode_shlibpath_var=$hardcode_shlibpath_var
10762
10763 # Set to yes if building a shared library automatically hardcodes DIR into the library
10764 # and all subsequent libraries and executables linked against it.
10765 hardcode_automatic=$hardcode_automatic
10766
10767 # Variables whose values should be saved in libtool wrapper scripts and
10768 # restored at relink time.
10769 variables_saved_for_relink="$variables_saved_for_relink"
10770
10771 # Whether libtool must link a program against all its dependency libraries.
10772 link_all_deplibs=$link_all_deplibs
10773
10774 # Compile-time system search path for libraries
10775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10776
10777 # Run-time system search path for libraries
10778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10779
10780 # Fix the shell variable \$srcfile for the compiler.
10781 fix_srcfile_path="$fix_srcfile_path"
10782
10783 # Set to yes if exported symbols are required.
10784 always_export_symbols=$always_export_symbols
10785
10786 # The commands to list exported symbols.
10787 export_symbols_cmds=$lt_export_symbols_cmds
10788
10789 # The commands to extract the exported symbol list from a shared archive.
10790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10791
10792 # Symbols that should not be listed in the preloaded symbols.
10793 exclude_expsyms=$lt_exclude_expsyms
10794
10795 # Symbols that must always be exported.
10796 include_expsyms=$lt_include_expsyms
10797
10798 # ### END LIBTOOL CONFIG
10799
10800 __EOF__
10801
10802
10803   case $host_os in
10804   aix3*)
10805     cat <<\EOF >> "$cfgfile"
10806
10807 # AIX sometimes has problems with the GCC collect2 program.  For some
10808 # reason, if we set the COLLECT_NAMES environment variable, the problems
10809 # vanish in a puff of smoke.
10810 if test "X${COLLECT_NAMES+set}" != Xset; then
10811   COLLECT_NAMES=
10812   export COLLECT_NAMES
10813 fi
10814 EOF
10815     ;;
10816   esac
10817
10818   # We use sed instead of cat because bash on DJGPP gets confused if
10819   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10820   # text mode, it properly converts lines to CR/LF.  This bash problem
10821   # is reportedly fixed, but why not run on old versions too?
10822   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10823
10824   mv -f "$cfgfile" "$ofile" || \
10825     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10826   chmod +x "$ofile"
10827
10828 else
10829   # If there is no Makefile yet, we rely on a make rule to execute
10830   # `config.status --recheck' to rerun these tests and create the
10831   # libtool script then.
10832   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10833   if test -f "$ltmain_in"; then
10834     test -f Makefile && make "$ltmain"
10835   fi
10836 fi
10837
10838
10839 ac_ext=c
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845 CC="$lt_save_CC"
10846
10847
10848 # Check whether --with-tags or --without-tags was given.
10849 if test "${with_tags+set}" = set; then
10850   withval="$with_tags"
10851   tagnames="$withval"
10852 fi;
10853
10854 if test -f "$ltmain" && test -n "$tagnames"; then
10855   if test ! -f "${ofile}"; then
10856     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10857 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10858   fi
10859
10860   if test -z "$LTCC"; then
10861     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10862     if test -z "$LTCC"; then
10863       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10864 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10865     else
10866       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10867 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10868     fi
10869   fi
10870
10871   # Extract list of available tagged configurations in $ofile.
10872   # Note that this assumes the entire list is on one line.
10873   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10874
10875   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10876   for tagname in $tagnames; do
10877     IFS="$lt_save_ifs"
10878     # Check whether tagname contains only valid characters
10879     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10880     "") ;;
10881     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10882 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10883    { (exit 1); exit 1; }; }
10884         ;;
10885     esac
10886
10887     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10888     then
10889       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10890 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10891    { (exit 1); exit 1; }; }
10892     fi
10893
10894     # Update the list of available tags.
10895     if test -n "$tagname"; then
10896       echo appending configuration tag \"$tagname\" to $ofile
10897
10898       case $tagname in
10899       CXX)
10900         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902             (test "X$CXX" != "Xg++"))) ; then
10903           :
10904         else
10905           tagname=""
10906         fi
10907         ;;
10908
10909       F77)
10910         if test -n "$F77" && test "X$F77" != "Xno"; then
10911           :
10912         else
10913           tagname=""
10914         fi
10915         ;;
10916
10917       GCJ)
10918         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10919           :
10920         else
10921           tagname=""
10922         fi
10923         ;;
10924
10925       RC)
10926
10927
10928
10929 # Source file extension for RC test sources.
10930 ac_ext=rc
10931
10932 # Object file extension for compiled RC test sources.
10933 objext=o
10934 objext_RC=$objext
10935
10936 # Code to be used in simple compile tests
10937 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10938
10939 # Code to be used in simple link tests
10940 lt_simple_link_test_code="$lt_simple_compile_test_code"
10941
10942 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10943
10944 # If no C compiler was specified, use CC.
10945 LTCC=${LTCC-"$CC"}
10946
10947 # Allow CC to be a program name with arguments.
10948 compiler=$CC
10949
10950
10951 # save warnings/boilerplate of simple test code
10952 ac_outfile=conftest.$ac_objext
10953 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10954 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10955 _lt_compiler_boilerplate=`cat conftest.err`
10956 $rm conftest*
10957
10958 ac_outfile=conftest.$ac_objext
10959 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10960 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10961 _lt_linker_boilerplate=`cat conftest.err`
10962 $rm conftest*
10963
10964
10965 # Allow CC to be a program name with arguments.
10966 lt_save_CC="$CC"
10967 CC=${RC-"windres"}
10968 compiler=$CC
10969 compiler_RC=$CC
10970 for cc_temp in $compiler""; do
10971   case $cc_temp in
10972     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10973     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10974     \-*) ;;
10975     *) break;;
10976   esac
10977 done
10978 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10979
10980 lt_cv_prog_compiler_c_o_RC=yes
10981
10982 # The else clause should only fire when bootstrapping the
10983 # libtool distribution, otherwise you forgot to ship ltmain.sh
10984 # with your package, and you will get complaints that there are
10985 # no rules to generate ltmain.sh.
10986 if test -f "$ltmain"; then
10987   # See if we are running on zsh, and set the options which allow our commands through
10988   # without removal of \ escapes.
10989   if test -n "${ZSH_VERSION+set}" ; then
10990     setopt NO_GLOB_SUBST
10991   fi
10992   # Now quote all the things that may contain metacharacters while being
10993   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10994   # variables and quote the copies for generation of the libtool script.
10995   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10996     SED SHELL STRIP \
10997     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10998     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10999     deplibs_check_method reload_flag reload_cmds need_locks \
11000     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11001     lt_cv_sys_global_symbol_to_c_name_address \
11002     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11003     old_postinstall_cmds old_postuninstall_cmds \
11004     compiler_RC \
11005     CC_RC \
11006     LD_RC \
11007     lt_prog_compiler_wl_RC \
11008     lt_prog_compiler_pic_RC \
11009     lt_prog_compiler_static_RC \
11010     lt_prog_compiler_no_builtin_flag_RC \
11011     export_dynamic_flag_spec_RC \
11012     thread_safe_flag_spec_RC \
11013     whole_archive_flag_spec_RC \
11014     enable_shared_with_static_runtimes_RC \
11015     old_archive_cmds_RC \
11016     old_archive_from_new_cmds_RC \
11017     predep_objects_RC \
11018     postdep_objects_RC \
11019     predeps_RC \
11020     postdeps_RC \
11021     compiler_lib_search_path_RC \
11022     archive_cmds_RC \
11023     archive_expsym_cmds_RC \
11024     postinstall_cmds_RC \
11025     postuninstall_cmds_RC \
11026     old_archive_from_expsyms_cmds_RC \
11027     allow_undefined_flag_RC \
11028     no_undefined_flag_RC \
11029     export_symbols_cmds_RC \
11030     hardcode_libdir_flag_spec_RC \
11031     hardcode_libdir_flag_spec_ld_RC \
11032     hardcode_libdir_separator_RC \
11033     hardcode_automatic_RC \
11034     module_cmds_RC \
11035     module_expsym_cmds_RC \
11036     lt_cv_prog_compiler_c_o_RC \
11037     exclude_expsyms_RC \
11038     include_expsyms_RC; do
11039
11040     case $var in
11041     old_archive_cmds_RC | \
11042     old_archive_from_new_cmds_RC | \
11043     archive_cmds_RC | \
11044     archive_expsym_cmds_RC | \
11045     module_cmds_RC | \
11046     module_expsym_cmds_RC | \
11047     old_archive_from_expsyms_cmds_RC | \
11048     export_symbols_cmds_RC | \
11049     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11050     postinstall_cmds | postuninstall_cmds | \
11051     old_postinstall_cmds | old_postuninstall_cmds | \
11052     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11053       # Double-quote double-evaled strings.
11054       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11055       ;;
11056     *)
11057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11058       ;;
11059     esac
11060   done
11061
11062   case $lt_echo in
11063   *'\$0 --fallback-echo"')
11064     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11065     ;;
11066   esac
11067
11068 cfgfile="$ofile"
11069
11070   cat <<__EOF__ >> "$cfgfile"
11071 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11072
11073 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11074
11075 # Shell to use when invoking shell scripts.
11076 SHELL=$lt_SHELL
11077
11078 # Whether or not to build shared libraries.
11079 build_libtool_libs=$enable_shared
11080
11081 # Whether or not to build static libraries.
11082 build_old_libs=$enable_static
11083
11084 # Whether or not to add -lc for building shared libraries.
11085 build_libtool_need_lc=$archive_cmds_need_lc_RC
11086
11087 # Whether or not to disallow shared libs when runtime libs are static
11088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11089
11090 # Whether or not to optimize for fast installation.
11091 fast_install=$enable_fast_install
11092
11093 # The host system.
11094 host_alias=$host_alias
11095 host=$host
11096 host_os=$host_os
11097
11098 # The build system.
11099 build_alias=$build_alias
11100 build=$build
11101 build_os=$build_os
11102
11103 # An echo program that does not interpret backslashes.
11104 echo=$lt_echo
11105
11106 # The archiver.
11107 AR=$lt_AR
11108 AR_FLAGS=$lt_AR_FLAGS
11109
11110 # A C compiler.
11111 LTCC=$lt_LTCC
11112
11113 # A language-specific compiler.
11114 CC=$lt_compiler_RC
11115
11116 # Is the compiler the GNU C compiler?
11117 with_gcc=$GCC_RC
11118
11119 # An ERE matcher.
11120 EGREP=$lt_EGREP
11121
11122 # The linker used to build libraries.
11123 LD=$lt_LD_RC
11124
11125 # Whether we need hard or soft links.
11126 LN_S=$lt_LN_S
11127
11128 # A BSD-compatible nm program.
11129 NM=$lt_NM
11130
11131 # A symbol stripping program
11132 STRIP=$lt_STRIP
11133
11134 # Used to examine libraries when file_magic_cmd begins "file"
11135 MAGIC_CMD=$MAGIC_CMD
11136
11137 # Used on cygwin: DLL creation program.
11138 DLLTOOL="$DLLTOOL"
11139
11140 # Used on cygwin: object dumper.
11141 OBJDUMP="$OBJDUMP"
11142
11143 # Used on cygwin: assembler.
11144 AS="$AS"
11145
11146 # The name of the directory that contains temporary libtool files.
11147 objdir=$objdir
11148
11149 # How to create reloadable object files.
11150 reload_flag=$lt_reload_flag
11151 reload_cmds=$lt_reload_cmds
11152
11153 # How to pass a linker flag through the compiler.
11154 wl=$lt_lt_prog_compiler_wl_RC
11155
11156 # Object file suffix (normally "o").
11157 objext="$ac_objext"
11158
11159 # Old archive suffix (normally "a").
11160 libext="$libext"
11161
11162 # Shared library suffix (normally ".so").
11163 shrext_cmds='$shrext_cmds'
11164
11165 # Executable file suffix (normally "").
11166 exeext="$exeext"
11167
11168 # Additional compiler flags for building library objects.
11169 pic_flag=$lt_lt_prog_compiler_pic_RC
11170 pic_mode=$pic_mode
11171
11172 # What is the maximum length of a command?
11173 max_cmd_len=$lt_cv_sys_max_cmd_len
11174
11175 # Does compiler simultaneously support -c and -o options?
11176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11177
11178 # Must we lock files when doing compilation?
11179 need_locks=$lt_need_locks
11180
11181 # Do we need the lib prefix for modules?
11182 need_lib_prefix=$need_lib_prefix
11183
11184 # Do we need a version for libraries?
11185 need_version=$need_version
11186
11187 # Whether dlopen is supported.
11188 dlopen_support=$enable_dlopen
11189
11190 # Whether dlopen of programs is supported.
11191 dlopen_self=$enable_dlopen_self
11192
11193 # Whether dlopen of statically linked programs is supported.
11194 dlopen_self_static=$enable_dlopen_self_static
11195
11196 # Compiler flag to prevent dynamic linking.
11197 link_static_flag=$lt_lt_prog_compiler_static_RC
11198
11199 # Compiler flag to turn off builtin functions.
11200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11201
11202 # Compiler flag to allow reflexive dlopens.
11203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11204
11205 # Compiler flag to generate shared objects directly from archives.
11206 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11207
11208 # Compiler flag to generate thread-safe objects.
11209 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11210
11211 # Library versioning type.
11212 version_type=$version_type
11213
11214 # Format of library name prefix.
11215 libname_spec=$lt_libname_spec
11216
11217 # List of archive names.  First name is the real one, the rest are links.
11218 # The last name is the one that the linker finds with -lNAME.
11219 library_names_spec=$lt_library_names_spec
11220
11221 # The coded name of the library, if different from the real name.
11222 soname_spec=$lt_soname_spec
11223
11224 # Commands used to build and install an old-style archive.
11225 RANLIB=$lt_RANLIB
11226 old_archive_cmds=$lt_old_archive_cmds_RC
11227 old_postinstall_cmds=$lt_old_postinstall_cmds
11228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11229
11230 # Create an old-style archive from a shared archive.
11231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11232
11233 # Create a temporary old-style archive to link instead of a shared archive.
11234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11235
11236 # Commands used to build and install a shared archive.
11237 archive_cmds=$lt_archive_cmds_RC
11238 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11239 postinstall_cmds=$lt_postinstall_cmds
11240 postuninstall_cmds=$lt_postuninstall_cmds
11241
11242 # Commands used to build a loadable module (assumed same as above if empty)
11243 module_cmds=$lt_module_cmds_RC
11244 module_expsym_cmds=$lt_module_expsym_cmds_RC
11245
11246 # Commands to strip libraries.
11247 old_striplib=$lt_old_striplib
11248 striplib=$lt_striplib
11249
11250 # Dependencies to place before the objects being linked to create a
11251 # shared library.
11252 predep_objects=$lt_predep_objects_RC
11253
11254 # Dependencies to place after the objects being linked to create a
11255 # shared library.
11256 postdep_objects=$lt_postdep_objects_RC
11257
11258 # Dependencies to place before the objects being linked to create a
11259 # shared library.
11260 predeps=$lt_predeps_RC
11261
11262 # Dependencies to place after the objects being linked to create a
11263 # shared library.
11264 postdeps=$lt_postdeps_RC
11265
11266 # The library search path used internally by the compiler when linking
11267 # a shared library.
11268 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11269
11270 # Method to check whether dependent libraries are shared objects.
11271 deplibs_check_method=$lt_deplibs_check_method
11272
11273 # Command to use when deplibs_check_method == file_magic.
11274 file_magic_cmd=$lt_file_magic_cmd
11275
11276 # Flag that allows shared libraries with undefined symbols to be built.
11277 allow_undefined_flag=$lt_allow_undefined_flag_RC
11278
11279 # Flag that forces no undefined symbols.
11280 no_undefined_flag=$lt_no_undefined_flag_RC
11281
11282 # Commands used to finish a libtool library installation in a directory.
11283 finish_cmds=$lt_finish_cmds
11284
11285 # Same as above, but a single script fragment to be evaled but not shown.
11286 finish_eval=$lt_finish_eval
11287
11288 # Take the output of nm and produce a listing of raw symbols and C names.
11289 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11290
11291 # Transform the output of nm in a proper C declaration
11292 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11293
11294 # Transform the output of nm in a C name address pair
11295 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11296
11297 # This is the shared library runtime path variable.
11298 runpath_var=$runpath_var
11299
11300 # This is the shared library path variable.
11301 shlibpath_var=$shlibpath_var
11302
11303 # Is shlibpath searched before the hard-coded library search path?
11304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11305
11306 # How to hardcode a shared library path into an executable.
11307 hardcode_action=$hardcode_action_RC
11308
11309 # Whether we should hardcode library paths into libraries.
11310 hardcode_into_libs=$hardcode_into_libs
11311
11312 # Flag to hardcode \$libdir into a binary during linking.
11313 # This must work even if \$libdir does not exist.
11314 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11315
11316 # If ld is used when linking, flag to hardcode \$libdir into
11317 # a binary during linking. This must work even if \$libdir does
11318 # not exist.
11319 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11320
11321 # Whether we need a single -rpath flag with a separated argument.
11322 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11323
11324 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11325 # resulting binary.
11326 hardcode_direct=$hardcode_direct_RC
11327
11328 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11329 # resulting binary.
11330 hardcode_minus_L=$hardcode_minus_L_RC
11331
11332 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11333 # the resulting binary.
11334 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11335
11336 # Set to yes if building a shared library automatically hardcodes DIR into the library
11337 # and all subsequent libraries and executables linked against it.
11338 hardcode_automatic=$hardcode_automatic_RC
11339
11340 # Variables whose values should be saved in libtool wrapper scripts and
11341 # restored at relink time.
11342 variables_saved_for_relink="$variables_saved_for_relink"
11343
11344 # Whether libtool must link a program against all its dependency libraries.
11345 link_all_deplibs=$link_all_deplibs_RC
11346
11347 # Compile-time system search path for libraries
11348 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11349
11350 # Run-time system search path for libraries
11351 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11352
11353 # Fix the shell variable \$srcfile for the compiler.
11354 fix_srcfile_path="$fix_srcfile_path_RC"
11355
11356 # Set to yes if exported symbols are required.
11357 always_export_symbols=$always_export_symbols_RC
11358
11359 # The commands to list exported symbols.
11360 export_symbols_cmds=$lt_export_symbols_cmds_RC
11361
11362 # The commands to extract the exported symbol list from a shared archive.
11363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11364
11365 # Symbols that should not be listed in the preloaded symbols.
11366 exclude_expsyms=$lt_exclude_expsyms_RC
11367
11368 # Symbols that must always be exported.
11369 include_expsyms=$lt_include_expsyms_RC
11370
11371 # ### END LIBTOOL TAG CONFIG: $tagname
11372
11373 __EOF__
11374
11375
11376 else
11377   # If there is no Makefile yet, we rely on a make rule to execute
11378   # `config.status --recheck' to rerun these tests and create the
11379   # libtool script then.
11380   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11381   if test -f "$ltmain_in"; then
11382     test -f Makefile && make "$ltmain"
11383   fi
11384 fi
11385
11386
11387 ac_ext=c
11388 ac_cpp='$CPP $CPPFLAGS'
11389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11392
11393 CC="$lt_save_CC"
11394
11395         ;;
11396
11397       *)
11398         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11399 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11400    { (exit 1); exit 1; }; }
11401         ;;
11402       esac
11403
11404       # Append the new tag name to the list of available tags.
11405       if test -n "$tagname" ; then
11406       available_tags="$available_tags $tagname"
11407     fi
11408     fi
11409   done
11410   IFS="$lt_save_ifs"
11411
11412   # Now substitute the updated list of available tags.
11413   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11414     mv "${ofile}T" "$ofile"
11415     chmod +x "$ofile"
11416   else
11417     rm -f "${ofile}T"
11418     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11419 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11420    { (exit 1); exit 1; }; }
11421   fi
11422 fi
11423
11424
11425
11426 # This can be used to rebuild libtool when needed
11427 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11428
11429 # Always use our own libtool.
11430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11431
11432 # Prevent multiple expansion
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443 ol_link_perl=no
11444 if test $ol_enable_perl != no ; then
11445         # Extract the first word of "perl", so it can be a program name with args.
11446 set dummy perl; ac_word=$2
11447 echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11449 if test "${ac_cv_path_PERLBIN+set}" = set; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   case $PERLBIN in
11453   [\\/]* | ?:[\\/]*)
11454   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11455   ;;
11456   *)
11457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460   IFS=$as_save_IFS
11461   test -z "$as_dir" && as_dir=.
11462   for ac_exec_ext in '' $ac_executable_extensions; do
11463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466     break 2
11467   fi
11468 done
11469 done
11470
11471   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11472   ;;
11473 esac
11474 fi
11475 PERLBIN=$ac_cv_path_PERLBIN
11476
11477 if test -n "$PERLBIN"; then
11478   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11479 echo "${ECHO_T}$PERLBIN" >&6
11480 else
11481   echo "$as_me:$LINENO: result: no" >&5
11482 echo "${ECHO_T}no" >&6
11483 fi
11484
11485
11486         if test "no$PERLBIN" = "no" ; then
11487                 if test $ol_enable_perl = yes ; then
11488                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11489 echo "$as_me: error: could not locate perl" >&2;}
11490    { (exit 1); exit 1; }; }
11491                 fi
11492
11493         else
11494                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11495                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11496
11497                 if test x"$ol_enable_perl" = "xyes" ; then
11498                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11499                 else
11500                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11501                 fi
11502                                 ol_link_perl=yes
11503         fi
11504 fi
11505
11506 ac_ext=c
11507 ac_cpp='$CPP $CPPFLAGS'
11508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11513 # On Suns, sometimes $CPP names a directory.
11514 if test -n "$CPP" && test -d "$CPP"; then
11515   CPP=
11516 fi
11517 if test -z "$CPP"; then
11518   if test "${ac_cv_prog_CPP+set}" = set; then
11519   echo $ECHO_N "(cached) $ECHO_C" >&6
11520 else
11521       # Double quotes because CPP needs to be expanded
11522     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11523     do
11524       ac_preproc_ok=false
11525 for ac_c_preproc_warn_flag in '' yes
11526 do
11527   # Use a header file that comes with gcc, so configuring glibc
11528   # with a fresh cross-compiler works.
11529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530   # <limits.h> exists even on freestanding compilers.
11531   # On the NeXT, cc -E runs the code through the compiler's parser,
11532   # not just through cpp. "Syntax error" is here to catch this case.
11533   cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11544                      Syntax error
11545 _ACEOF
11546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11547   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } >/dev/null; then
11554   if test -s conftest.err; then
11555     ac_cpp_err=$ac_c_preproc_warn_flag
11556     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11557   else
11558     ac_cpp_err=
11559   fi
11560 else
11561   ac_cpp_err=yes
11562 fi
11563 if test -z "$ac_cpp_err"; then
11564   :
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569   # Broken: fails on valid input.
11570 continue
11571 fi
11572 rm -f conftest.err conftest.$ac_ext
11573
11574   # OK, works on sane cases.  Now check whether non-existent headers
11575   # can be detected and how.
11576   cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h.  */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h.  */
11582 #include <ac_nonexistent.h>
11583 _ACEOF
11584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } >/dev/null; then
11592   if test -s conftest.err; then
11593     ac_cpp_err=$ac_c_preproc_warn_flag
11594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11595   else
11596     ac_cpp_err=
11597   fi
11598 else
11599   ac_cpp_err=yes
11600 fi
11601 if test -z "$ac_cpp_err"; then
11602   # Broken: success on invalid input.
11603 continue
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608   # Passes both tests.
11609 ac_preproc_ok=:
11610 break
11611 fi
11612 rm -f conftest.err conftest.$ac_ext
11613
11614 done
11615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11616 rm -f conftest.err conftest.$ac_ext
11617 if $ac_preproc_ok; then
11618   break
11619 fi
11620
11621     done
11622     ac_cv_prog_CPP=$CPP
11623
11624 fi
11625   CPP=$ac_cv_prog_CPP
11626 else
11627   ac_cv_prog_CPP=$CPP
11628 fi
11629 echo "$as_me:$LINENO: result: $CPP" >&5
11630 echo "${ECHO_T}$CPP" >&6
11631 ac_preproc_ok=false
11632 for ac_c_preproc_warn_flag in '' yes
11633 do
11634   # Use a header file that comes with gcc, so configuring glibc
11635   # with a fresh cross-compiler works.
11636   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637   # <limits.h> exists even on freestanding compilers.
11638   # On the NeXT, cc -E runs the code through the compiler's parser,
11639   # not just through cpp. "Syntax error" is here to catch this case.
11640   cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 #ifdef __STDC__
11647 # include <limits.h>
11648 #else
11649 # include <assert.h>
11650 #endif
11651                      Syntax error
11652 _ACEOF
11653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11655   ac_status=$?
11656   grep -v '^ *+' conftest.er1 >conftest.err
11657   rm -f conftest.er1
11658   cat conftest.err >&5
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); } >/dev/null; then
11661   if test -s conftest.err; then
11662     ac_cpp_err=$ac_c_preproc_warn_flag
11663     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664   else
11665     ac_cpp_err=
11666   fi
11667 else
11668   ac_cpp_err=yes
11669 fi
11670 if test -z "$ac_cpp_err"; then
11671   :
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676   # Broken: fails on valid input.
11677 continue
11678 fi
11679 rm -f conftest.err conftest.$ac_ext
11680
11681   # OK, works on sane cases.  Now check whether non-existent headers
11682   # can be detected and how.
11683   cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #include <ac_nonexistent.h>
11690 _ACEOF
11691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } >/dev/null; then
11699   if test -s conftest.err; then
11700     ac_cpp_err=$ac_c_preproc_warn_flag
11701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11702   else
11703     ac_cpp_err=
11704   fi
11705 else
11706   ac_cpp_err=yes
11707 fi
11708 if test -z "$ac_cpp_err"; then
11709   # Broken: success on invalid input.
11710 continue
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715   # Passes both tests.
11716 ac_preproc_ok=:
11717 break
11718 fi
11719 rm -f conftest.err conftest.$ac_ext
11720
11721 done
11722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11723 rm -f conftest.err conftest.$ac_ext
11724 if $ac_preproc_ok; then
11725   :
11726 else
11727   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11728 See \`config.log' for more details." >&5
11729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11730 See \`config.log' for more details." >&2;}
11731    { (exit 1); exit 1; }; }
11732 fi
11733
11734 ac_ext=c
11735 ac_cpp='$CPP $CPPFLAGS'
11736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11739
11740
11741 case $host_os in
11742   *mingw32* ) ac_cv_mingw32=yes ;;
11743   *cygwin* ) ac_cv_cygwin=yes ;;
11744 esac
11745
11746
11747
11748
11749 cat >>confdefs.h <<_ACEOF
11750 #define EXEEXT "${EXEEXT}"
11751 _ACEOF
11752
11753
11754 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11755 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11756 if test "${ac_cv_lib_be_be_app+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lbe -lroot -lnet $LIBS"
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767
11768 /* Override any gcc2 internal prototype to avoid an error.  */
11769 #ifdef __cplusplus
11770 extern "C"
11771 #endif
11772 /* We use char because int might match the return type of a gcc2
11773    builtin and then its argument prototype would still apply.  */
11774 char be_app ();
11775 int
11776 main ()
11777 {
11778 be_app ();
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11785   (eval $ac_link) 2>conftest.er1
11786   ac_status=$?
11787   grep -v '^ *+' conftest.er1 >conftest.err
11788   rm -f conftest.er1
11789   cat conftest.err >&5
11790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791   (exit $ac_status); } &&
11792          { ac_try='test -z "$ac_c_werror_flag"
11793                          || test ! -s conftest.err'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest$ac_exeext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_lib_be_be_app=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_lib_be_be_app=no
11811 fi
11812 rm -f conftest.err conftest.$ac_objext \
11813       conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11817 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11818 if test $ac_cv_lib_be_be_app = yes; then
11819   LIBS="$LIBS -lbe -lroot -lnet"
11820 else
11821   :
11822 fi
11823
11824
11825 ac_ext=c
11826 ac_cpp='$CPP $CPPFLAGS'
11827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11830 if test -n "$ac_tool_prefix"; then
11831   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11832 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11833 echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11835 if test "${ac_cv_prog_CC+set}" = set; then
11836   echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838   if test -n "$CC"; then
11839   ac_cv_prog_CC="$CC" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844   IFS=$as_save_IFS
11845   test -z "$as_dir" && as_dir=.
11846   for ac_exec_ext in '' $ac_executable_extensions; do
11847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850     break 2
11851   fi
11852 done
11853 done
11854
11855 fi
11856 fi
11857 CC=$ac_cv_prog_CC
11858 if test -n "$CC"; then
11859   echo "$as_me:$LINENO: result: $CC" >&5
11860 echo "${ECHO_T}$CC" >&6
11861 else
11862   echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11864 fi
11865
11866 fi
11867 if test -z "$ac_cv_prog_CC"; then
11868   ac_ct_CC=$CC
11869   # Extract the first word of "gcc", so it can be a program name with args.
11870 set dummy gcc; ac_word=$2
11871 echo "$as_me:$LINENO: checking for $ac_word" >&5
11872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   if test -n "$ac_ct_CC"; then
11877   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882   IFS=$as_save_IFS
11883   test -z "$as_dir" && as_dir=.
11884   for ac_exec_ext in '' $ac_executable_extensions; do
11885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886     ac_cv_prog_ac_ct_CC="gcc"
11887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11888     break 2
11889   fi
11890 done
11891 done
11892
11893 fi
11894 fi
11895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11896 if test -n "$ac_ct_CC"; then
11897   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11898 echo "${ECHO_T}$ac_ct_CC" >&6
11899 else
11900   echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6
11902 fi
11903
11904   CC=$ac_ct_CC
11905 else
11906   CC="$ac_cv_prog_CC"
11907 fi
11908
11909 if test -z "$CC"; then
11910   if test -n "$ac_tool_prefix"; then
11911   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11912 set dummy ${ac_tool_prefix}cc; ac_word=$2
11913 echo "$as_me:$LINENO: checking for $ac_word" >&5
11914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11915 if test "${ac_cv_prog_CC+set}" = set; then
11916   echo $ECHO_N "(cached) $ECHO_C" >&6
11917 else
11918   if test -n "$CC"; then
11919   ac_cv_prog_CC="$CC" # Let the user override the test.
11920 else
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11923 do
11924   IFS=$as_save_IFS
11925   test -z "$as_dir" && as_dir=.
11926   for ac_exec_ext in '' $ac_executable_extensions; do
11927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11928     ac_cv_prog_CC="${ac_tool_prefix}cc"
11929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11930     break 2
11931   fi
11932 done
11933 done
11934
11935 fi
11936 fi
11937 CC=$ac_cv_prog_CC
11938 if test -n "$CC"; then
11939   echo "$as_me:$LINENO: result: $CC" >&5
11940 echo "${ECHO_T}$CC" >&6
11941 else
11942   echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6
11944 fi
11945
11946 fi
11947 if test -z "$ac_cv_prog_CC"; then
11948   ac_ct_CC=$CC
11949   # Extract the first word of "cc", so it can be a program name with args.
11950 set dummy cc; ac_word=$2
11951 echo "$as_me:$LINENO: checking for $ac_word" >&5
11952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   if test -n "$ac_ct_CC"; then
11957   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11958 else
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11961 do
11962   IFS=$as_save_IFS
11963   test -z "$as_dir" && as_dir=.
11964   for ac_exec_ext in '' $ac_executable_extensions; do
11965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966     ac_cv_prog_ac_ct_CC="cc"
11967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11968     break 2
11969   fi
11970 done
11971 done
11972
11973 fi
11974 fi
11975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11976 if test -n "$ac_ct_CC"; then
11977   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11978 echo "${ECHO_T}$ac_ct_CC" >&6
11979 else
11980   echo "$as_me:$LINENO: result: no" >&5
11981 echo "${ECHO_T}no" >&6
11982 fi
11983
11984   CC=$ac_ct_CC
11985 else
11986   CC="$ac_cv_prog_CC"
11987 fi
11988
11989 fi
11990 if test -z "$CC"; then
11991   # Extract the first word of "cc", so it can be a program name with args.
11992 set dummy cc; ac_word=$2
11993 echo "$as_me:$LINENO: checking for $ac_word" >&5
11994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995 if test "${ac_cv_prog_CC+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   if test -n "$CC"; then
11999   ac_cv_prog_CC="$CC" # Let the user override the test.
12000 else
12001   ac_prog_rejected=no
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12004 do
12005   IFS=$as_save_IFS
12006   test -z "$as_dir" && as_dir=.
12007   for ac_exec_ext in '' $ac_executable_extensions; do
12008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12009     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12010        ac_prog_rejected=yes
12011        continue
12012      fi
12013     ac_cv_prog_CC="cc"
12014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12015     break 2
12016   fi
12017 done
12018 done
12019
12020 if test $ac_prog_rejected = yes; then
12021   # We found a bogon in the path, so make sure we never use it.
12022   set dummy $ac_cv_prog_CC
12023   shift
12024   if test $# != 0; then
12025     # We chose a different compiler from the bogus one.
12026     # However, it has the same basename, so the bogon will be chosen
12027     # first if we set CC to just the basename; use the full file name.
12028     shift
12029     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12030   fi
12031 fi
12032 fi
12033 fi
12034 CC=$ac_cv_prog_CC
12035 if test -n "$CC"; then
12036   echo "$as_me:$LINENO: result: $CC" >&5
12037 echo "${ECHO_T}$CC" >&6
12038 else
12039   echo "$as_me:$LINENO: result: no" >&5
12040 echo "${ECHO_T}no" >&6
12041 fi
12042
12043 fi
12044 if test -z "$CC"; then
12045   if test -n "$ac_tool_prefix"; then
12046   for ac_prog in cl
12047   do
12048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12049 set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
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     test -n "$CC" && break
12084   done
12085 fi
12086 if test -z "$CC"; then
12087   ac_ct_CC=$CC
12088   for ac_prog in cl
12089 do
12090   # Extract the first word of "$ac_prog", so it can be a program name with args.
12091 set dummy $ac_prog; ac_word=$2
12092 echo "$as_me:$LINENO: checking for $ac_word" >&5
12093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12094 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12095   echo $ECHO_N "(cached) $ECHO_C" >&6
12096 else
12097   if test -n "$ac_ct_CC"; then
12098   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12099 else
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103   IFS=$as_save_IFS
12104   test -z "$as_dir" && as_dir=.
12105   for ac_exec_ext in '' $ac_executable_extensions; do
12106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107     ac_cv_prog_ac_ct_CC="$ac_prog"
12108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12109     break 2
12110   fi
12111 done
12112 done
12113
12114 fi
12115 fi
12116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12117 if test -n "$ac_ct_CC"; then
12118   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12119 echo "${ECHO_T}$ac_ct_CC" >&6
12120 else
12121   echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12123 fi
12124
12125   test -n "$ac_ct_CC" && break
12126 done
12127
12128   CC=$ac_ct_CC
12129 fi
12130
12131 fi
12132
12133
12134 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12135 See \`config.log' for more details." >&5
12136 echo "$as_me: error: no acceptable C compiler found in \$PATH
12137 See \`config.log' for more details." >&2;}
12138    { (exit 1); exit 1; }; }
12139
12140 # Provide some information about the compiler.
12141 echo "$as_me:$LINENO:" \
12142      "checking for C compiler version" >&5
12143 ac_compiler=`set X $ac_compile; echo $2`
12144 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12145   (eval $ac_compiler --version </dev/null >&5) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }
12149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12150   (eval $ac_compiler -v </dev/null >&5) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }
12154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12155   (eval $ac_compiler -V </dev/null >&5) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }
12159
12160 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12163   echo $ECHO_N "(cached) $ECHO_C" >&6
12164 else
12165   cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171
12172 int
12173 main ()
12174 {
12175 #ifndef __GNUC__
12176        choke me
12177 #endif
12178
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag"
12193                          || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_compiler_gnu=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_compiler_gnu=no
12211 fi
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12214
12215 fi
12216 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12217 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12218 GCC=`test $ac_compiler_gnu = yes && echo yes`
12219 ac_test_CFLAGS=${CFLAGS+set}
12220 ac_save_CFLAGS=$CFLAGS
12221 CFLAGS="-g"
12222 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12224 if test "${ac_cv_prog_cc_g+set}" = set; then
12225   echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227   cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h.  */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h.  */
12233
12234 int
12235 main ()
12236 {
12237
12238   ;
12239   return 0;
12240 }
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>conftest.er1
12245   ac_status=$?
12246   grep -v '^ *+' conftest.er1 >conftest.err
12247   rm -f conftest.er1
12248   cat conftest.err >&5
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"
12252                          || test ! -s conftest.err'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_cv_prog_cc_g=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_cv_prog_cc_g=no
12270 fi
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 fi
12273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12274 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12275 if test "$ac_test_CFLAGS" = set; then
12276   CFLAGS=$ac_save_CFLAGS
12277 elif test $ac_cv_prog_cc_g = yes; then
12278   if test "$GCC" = yes; then
12279     CFLAGS="-g -O2"
12280   else
12281     CFLAGS="-g"
12282   fi
12283 else
12284   if test "$GCC" = yes; then
12285     CFLAGS="-O2"
12286   else
12287     CFLAGS=
12288   fi
12289 fi
12290 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12291 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12292 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   ac_cv_prog_cc_stdc=no
12296 ac_save_CC=$CC
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303 #include <stdarg.h>
12304 #include <stdio.h>
12305 #include <sys/types.h>
12306 #include <sys/stat.h>
12307 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12308 struct buf { int x; };
12309 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12310 static char *e (p, i)
12311      char **p;
12312      int i;
12313 {
12314   return p[i];
12315 }
12316 static char *f (char * (*g) (char **, int), char **p, ...)
12317 {
12318   char *s;
12319   va_list v;
12320   va_start (v,p);
12321   s = g (p, va_arg (v,int));
12322   va_end (v);
12323   return s;
12324 }
12325
12326 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12327    function prototypes and stuff, but not '\xHH' hex character constants.
12328    These don't provoke an error unfortunately, instead are silently treated
12329    as 'x'.  The following induces an error, until -std1 is added to get
12330    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12331    array size at least.  It's necessary to write '\x00'==0 to get something
12332    that's true only with -std1.  */
12333 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12334
12335 int test (int i, double x);
12336 struct s1 {int (*f) (int a);};
12337 struct s2 {int (*f) (double a);};
12338 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12339 int argc;
12340 char **argv;
12341 int
12342 main ()
12343 {
12344 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 # Don't try gcc -ansi; that turns off useful extensions and
12350 # breaks some systems' header files.
12351 # AIX                   -qlanglvl=ansi
12352 # Ultrix and OSF/1      -std1
12353 # HP-UX 10.20 and later -Ae
12354 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12355 # SVR4                  -Xc -D__EXTENSIONS__
12356 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12357 do
12358   CC="$ac_save_CC $ac_arg"
12359   rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361   (eval $ac_compile) 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } &&
12368          { ac_try='test -z "$ac_c_werror_flag"
12369                          || test ! -s conftest.err'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; } &&
12375          { ac_try='test -s conftest.$ac_objext'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; }; then
12381   ac_cv_prog_cc_stdc=$ac_arg
12382 break
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387 fi
12388 rm -f conftest.err conftest.$ac_objext
12389 done
12390 rm -f conftest.$ac_ext conftest.$ac_objext
12391 CC=$ac_save_CC
12392
12393 fi
12394
12395 case "x$ac_cv_prog_cc_stdc" in
12396   x|xno)
12397     echo "$as_me:$LINENO: result: none needed" >&5
12398 echo "${ECHO_T}none needed" >&6 ;;
12399   *)
12400     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12401 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12402     CC="$CC $ac_cv_prog_cc_stdc" ;;
12403 esac
12404
12405 # Some people use a C++ compiler to compile C.  Since we use `exit',
12406 # in C++ we need to declare it.  In case someone uses the same compiler
12407 # for both compiling C and C++ we need to have the C++ compiler decide
12408 # the declaration of exit, since it's the most demanding environment.
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #ifndef __cplusplus
12411   choke me
12412 #endif
12413 _ACEOF
12414 rm -f conftest.$ac_objext
12415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12416   (eval $ac_compile) 2>conftest.er1
12417   ac_status=$?
12418   grep -v '^ *+' conftest.er1 >conftest.err
12419   rm -f conftest.er1
12420   cat conftest.err >&5
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); } &&
12423          { ac_try='test -z "$ac_c_werror_flag"
12424                          || test ! -s conftest.err'
12425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426   (eval $ac_try) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); }; } &&
12430          { ac_try='test -s conftest.$ac_objext'
12431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432   (eval $ac_try) 2>&5
12433   ac_status=$?
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); }; }; then
12436   for ac_declaration in \
12437    '' \
12438    'extern "C" void std::exit (int) throw (); using std::exit;' \
12439    'extern "C" void std::exit (int); using std::exit;' \
12440    'extern "C" void exit (int) throw ();' \
12441    'extern "C" void exit (int);' \
12442    'void exit (int);'
12443 do
12444   cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 $ac_declaration
12451 #include <stdlib.h>
12452 int
12453 main ()
12454 {
12455 exit (42);
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462   (eval $ac_compile) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   :
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 continue
12488 fi
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12490   cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_declaration
12497 int
12498 main ()
12499 {
12500 exit (42);
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag"
12515                          || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   break
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 fi
12533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12534 done
12535 rm -f conftest*
12536 if test -n "$ac_declaration"; then
12537   echo '#ifdef __cplusplus' >>confdefs.h
12538   echo $ac_declaration      >>confdefs.h
12539   echo '#endif'             >>confdefs.h
12540 fi
12541
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 fi
12547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12548 ac_ext=c
12549 ac_cpp='$CPP $CPPFLAGS'
12550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12553
12554 depcc="$CC"   am_compiler_list=
12555
12556 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12557 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12558 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12562   # We make a subdir and do the tests there.  Otherwise we can end up
12563   # making bogus files that we don't know about and never remove.  For
12564   # instance it was reported that on HP-UX the gcc test will end up
12565   # making a dummy file named `D' -- because `-MD' means `put the output
12566   # in D'.
12567   mkdir conftest.dir
12568   # Copy depcomp to subdir because otherwise we won't find it if we're
12569   # using a relative directory.
12570   cp "$am_depcomp" conftest.dir
12571   cd conftest.dir
12572   # We will build objects and dependencies in a subdirectory because
12573   # it helps to detect inapplicable dependency modes.  For instance
12574   # both Tru64's cc and ICC support -MD to output dependencies as a
12575   # side effect of compilation, but ICC will put the dependencies in
12576   # the current directory while Tru64 will put them in the object
12577   # directory.
12578   mkdir sub
12579
12580   am_cv_CC_dependencies_compiler_type=none
12581   if test "$am_compiler_list" = ""; then
12582      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12583   fi
12584   for depmode in $am_compiler_list; do
12585     # Setup a source with many dependencies, because some compilers
12586     # like to wrap large dependency lists on column 80 (with \), and
12587     # we should not choose a depcomp mode which is confused by this.
12588     #
12589     # We need to recreate these files for each test, as the compiler may
12590     # overwrite some of them when testing with obscure command lines.
12591     # This happens at least with the AIX C compiler.
12592     : > sub/conftest.c
12593     for i in 1 2 3 4 5 6; do
12594       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12595       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12596       # Solaris 8's {/usr,}/bin/sh.
12597       touch sub/conftst$i.h
12598     done
12599     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12600
12601     case $depmode in
12602     nosideeffect)
12603       # after this tag, mechanisms are not by side-effect, so they'll
12604       # only be used when explicitly requested
12605       if test "x$enable_dependency_tracking" = xyes; then
12606         continue
12607       else
12608         break
12609       fi
12610       ;;
12611     none) break ;;
12612     esac
12613     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12614     # mode.  It turns out that the SunPro C++ compiler does not properly
12615     # handle `-M -o', and we need to detect this.
12616     if depmode=$depmode \
12617        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12618        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12619        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12620          >/dev/null 2>conftest.err &&
12621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12622        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12624       # icc doesn't choke on unknown options, it will just issue warnings
12625       # or remarks (even with -Werror).  So we grep stderr for any message
12626       # that says an option was ignored or not supported.
12627       # When given -MP, icc 7.0 and 7.1 complain thusly:
12628       #   icc: Command line warning: ignoring option '-M'; no argument required
12629       # The diagnosis changed in icc 8.0:
12630       #   icc: Command line remark: option '-MP' not supported
12631       if (grep 'ignoring option' conftest.err ||
12632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12633         am_cv_CC_dependencies_compiler_type=$depmode
12634         break
12635       fi
12636     fi
12637   done
12638
12639   cd ..
12640   rm -rf conftest.dir
12641 else
12642   am_cv_CC_dependencies_compiler_type=none
12643 fi
12644
12645 fi
12646 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12647 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12649
12650
12651
12652 if
12653   test "x$enable_dependency_tracking" != xno \
12654   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12655   am__fastdepCC_TRUE=
12656   am__fastdepCC_FALSE='#'
12657 else
12658   am__fastdepCC_TRUE='#'
12659   am__fastdepCC_FALSE=
12660 fi
12661
12662
12663 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12664         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12665 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12666    { (exit 1); exit 1; }; }
12667 fi
12668
12669 # test for make depend flag
12670 OL_MKDEP=
12671 OL_MKDEP_FLAGS=
12672 if test -z "${MKDEP}"; then
12673         OL_MKDEP="${CC-cc}"
12674         if test -z "${MKDEP_FLAGS}"; then
12675                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12676 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12677 if test "${ol_cv_mkdep+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680
12681                         ol_cv_mkdep=no
12682                         for flag in "-M" "-xM"; do
12683                                 cat > conftest.c <<EOF
12684  noCode;
12685 EOF
12686                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } \
12692                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12693                                 then
12694                                         if test ! -f conftest."${ac_object}" ; then
12695                                                 ol_cv_mkdep=$flag
12696                                                 OL_MKDEP_FLAGS="$flag"
12697                                                 break
12698                                         fi
12699                                 fi
12700                         done
12701                         rm -f conftest*
12702
12703 fi
12704 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12705 echo "${ECHO_T}$ol_cv_mkdep" >&6
12706                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12707         else
12708                 cc_cv_mkdep=yes
12709                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12710         fi
12711 else
12712         cc_cv_mkdep=yes
12713         OL_MKDEP="${MKDEP}"
12714         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12715 fi
12716
12717
12718
12719 if test "${ol_cv_mkdep}" = no ; then
12720         # this will soon become an error
12721         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12722 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12723 fi
12724
12725 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12726 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12727 if test "${ac_cv_lib_s_afopen+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-ls  $LIBS"
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738
12739 /* Override any gcc2 internal prototype to avoid an error.  */
12740 #ifdef __cplusplus
12741 extern "C"
12742 #endif
12743 /* We use char because int might match the return type of a gcc2
12744    builtin and then its argument prototype would still apply.  */
12745 char afopen ();
12746 int
12747 main ()
12748 {
12749 afopen ();
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756   (eval $ac_link) 2>conftest.er1
12757   ac_status=$?
12758   grep -v '^ *+' conftest.er1 >conftest.err
12759   rm -f conftest.er1
12760   cat conftest.err >&5
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -z "$ac_c_werror_flag"
12764                          || test ! -s conftest.err'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } &&
12770          { ac_try='test -s conftest$ac_exeext'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   ac_cv_lib_s_afopen=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781 ac_cv_lib_s_afopen=no
12782 fi
12783 rm -f conftest.err conftest.$ac_objext \
12784       conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12788 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12789 if test $ac_cv_lib_s_afopen = yes; then
12790
12791         AUTH_LIBS=-ls
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_AIX_SECURITY 1
12795 _ACEOF
12796
12797
12798 fi
12799
12800
12801 case "$target" in
12802 *-ibm-openedition)
12803         ac_cv_func_getopt=no
12804
12805 cat >>confdefs.h <<\_ACEOF
12806 #define BOTH_STRINGS_H 1
12807 _ACEOF
12808
12809         ;;
12810 esac
12811
12812 ol_link_modules=no
12813 WITH_MODULES_ENABLED=no
12814 if test $ol_enable_modules != no ; then
12815
12816 for ac_header in ltdl.h
12817 do
12818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12820   echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12823   echo $ECHO_N "(cached) $ECHO_C" >&6
12824 fi
12825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12827 else
12828   # Is the header compilable?
12829 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12831 cat >conftest.$ac_ext <<_ACEOF
12832 /* confdefs.h.  */
12833 _ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h.  */
12837 $ac_includes_default
12838 #include <$ac_header>
12839 _ACEOF
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842   (eval $ac_compile) 2>conftest.er1
12843   ac_status=$?
12844   grep -v '^ *+' conftest.er1 >conftest.err
12845   rm -f conftest.er1
12846   cat conftest.err >&5
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); } &&
12849          { ac_try='test -z "$ac_c_werror_flag"
12850                          || test ! -s conftest.err'
12851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852   (eval $ac_try) 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; } &&
12856          { ac_try='test -s conftest.$ac_objext'
12857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858   (eval $ac_try) 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   ac_header_compiler=yes
12863 else
12864   echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_header_compiler=no
12868 fi
12869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871 echo "${ECHO_T}$ac_header_compiler" >&6
12872
12873 # Is the header present?
12874 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 #include <$ac_header>
12883 _ACEOF
12884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12885   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12886   ac_status=$?
12887   grep -v '^ *+' conftest.er1 >conftest.err
12888   rm -f conftest.er1
12889   cat conftest.err >&5
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } >/dev/null; then
12892   if test -s conftest.err; then
12893     ac_cpp_err=$ac_c_preproc_warn_flag
12894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12895   else
12896     ac_cpp_err=
12897   fi
12898 else
12899   ac_cpp_err=yes
12900 fi
12901 if test -z "$ac_cpp_err"; then
12902   ac_header_preproc=yes
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907   ac_header_preproc=no
12908 fi
12909 rm -f conftest.err conftest.$ac_ext
12910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12911 echo "${ECHO_T}$ac_header_preproc" >&6
12912
12913 # So?  What about this header?
12914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12915   yes:no: )
12916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12920     ac_header_preproc=yes
12921     ;;
12922   no:yes:* )
12923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12935     (
12936       cat <<\_ASBOX
12937 ## --------------------------------------------- ##
12938 ## Report this to <http://www.openldap.org/its/> ##
12939 ## --------------------------------------------- ##
12940 _ASBOX
12941     ) |
12942       sed "s/^/$as_me: WARNING:     /" >&2
12943     ;;
12944 esac
12945 echo "$as_me:$LINENO: checking for $ac_header" >&5
12946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12948   echo $ECHO_N "(cached) $ECHO_C" >&6
12949 else
12950   eval "$as_ac_Header=\$ac_header_preproc"
12951 fi
12952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12954
12955 fi
12956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12957   cat >>confdefs.h <<_ACEOF
12958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12959 _ACEOF
12960
12961 fi
12962
12963 done
12964
12965
12966         if test $ac_cv_header_ltdl_h = no ; then
12967                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
12968 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
12969    { (exit 1); exit 1; }; }
12970         fi
12971
12972         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
12973 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
12974 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
12975   echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977   ac_check_lib_save_LIBS=$LIBS
12978 LIBS="-lltdl  $LIBS"
12979 cat >conftest.$ac_ext <<_ACEOF
12980 /* confdefs.h.  */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h.  */
12985
12986 /* Override any gcc2 internal prototype to avoid an error.  */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 /* We use char because int might match the return type of a gcc2
12991    builtin and then its argument prototype would still apply.  */
12992 char lt_dlinit ();
12993 int
12994 main ()
12995 {
12996 lt_dlinit ();
12997   ;
12998   return 0;
12999 }
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003   (eval $ac_link) 2>conftest.er1
13004   ac_status=$?
13005   grep -v '^ *+' conftest.er1 >conftest.err
13006   rm -f conftest.er1
13007   cat conftest.err >&5
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); } &&
13010          { ac_try='test -z "$ac_c_werror_flag"
13011                          || test ! -s conftest.err'
13012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013   (eval $ac_try) 2>&5
13014   ac_status=$?
13015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016   (exit $ac_status); }; } &&
13017          { ac_try='test -s conftest$ac_exeext'
13018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019   (eval $ac_try) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; }; then
13023   ac_cv_lib_ltdl_lt_dlinit=yes
13024 else
13025   echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 ac_cv_lib_ltdl_lt_dlinit=no
13029 fi
13030 rm -f conftest.err conftest.$ac_objext \
13031       conftest$ac_exeext conftest.$ac_ext
13032 LIBS=$ac_check_lib_save_LIBS
13033 fi
13034 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13035 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13036 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13037
13038                 MODULES_LIBS=-lltdl
13039
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_LIBLTDL 1
13042 _ACEOF
13043
13044
13045 fi
13046
13047
13048         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13049                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13050 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13051    { (exit 1); exit 1; }; }
13052         fi
13053         ol_link_modules=yes
13054         WITH_MODULES_ENABLED=yes
13055
13056 else
13057         for i in $Backends; do
13058                 eval "ol_tmp=\$ol_enable_$i"
13059                 if test $ol_tmp = mod ; then
13060                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13061 echo "$as_me: WARNING: building static $i backend" >&2;}
13062                         eval "ol_enable_$i=yes"
13063                 fi
13064         done
13065         for i in $Overlays; do
13066                 eval "ol_tmp=\$ol_enable_$i"
13067                 if test $ol_tmp = mod ; then
13068                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13069 echo "$as_me: WARNING: building static $i overlay" >&2;}
13070                         eval "ol_enable_$i=yes"
13071                 fi
13072         done
13073 fi
13074
13075 # test for EBCDIC
13076 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13077 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13078 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13079   echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081
13082         cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h.  */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h.  */
13088
13089 #if !('M' == 0xd4)
13090 #include <__ASCII__/generate_error.h>
13091 #endif
13092
13093 _ACEOF
13094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096   ac_status=$?
13097   grep -v '^ *+' conftest.er1 >conftest.err
13098   rm -f conftest.er1
13099   cat conftest.err >&5
13100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101   (exit $ac_status); } >/dev/null; then
13102   if test -s conftest.err; then
13103     ac_cpp_err=$ac_c_preproc_warn_flag
13104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13105   else
13106     ac_cpp_err=
13107   fi
13108 else
13109   ac_cpp_err=yes
13110 fi
13111 if test -z "$ac_cpp_err"; then
13112   ol_cv_cpp_ebcdic=yes
13113 else
13114   echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13116
13117   ol_cv_cpp_ebcdic=no
13118 fi
13119 rm -f conftest.err conftest.$ac_ext
13120 fi
13121 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13122 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13123 if test $ol_cv_cpp_ebcdic = yes ; then
13124
13125 cat >>confdefs.h <<\_ACEOF
13126 #define HAVE_EBCDIC 1
13127 _ACEOF
13128
13129 fi
13130
13131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13133 if test "${ol_cv_header_stdc+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142 #include <stdlib.h>
13143 #include <stdarg.h>
13144 #include <string.h>
13145 #include <float.h>
13146 _ACEOF
13147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } >/dev/null; then
13155   if test -s conftest.err; then
13156     ac_cpp_err=$ac_c_preproc_warn_flag
13157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13158   else
13159     ac_cpp_err=
13160   fi
13161 else
13162   ac_cpp_err=yes
13163 fi
13164 if test -z "$ac_cpp_err"; then
13165   ol_cv_header_stdc=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170   ol_cv_header_stdc=no
13171 fi
13172 rm -f conftest.err conftest.$ac_ext
13173
13174 if test $ol_cv_header_stdc = yes; then
13175   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182 #include <string.h>
13183
13184 _ACEOF
13185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13186   $EGREP "memchr" >/dev/null 2>&1; then
13187   :
13188 else
13189   ol_cv_header_stdc=no
13190 fi
13191 rm -f conftest*
13192
13193 fi
13194
13195 if test $ol_cv_header_stdc = yes; then
13196   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13197 cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #include <stdlib.h>
13204
13205 _ACEOF
13206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13207   $EGREP "free" >/dev/null 2>&1; then
13208   :
13209 else
13210   ol_cv_header_stdc=no
13211 fi
13212 rm -f conftest*
13213
13214 fi
13215
13216 if test $ol_cv_header_stdc = yes; then
13217   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13218 if test "$cross_compiling" = yes; then
13219   :
13220 else
13221   cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 #include <ctype.h>
13228 #ifndef HAVE_EBCDIC
13229 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13230 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13231 #else
13232 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13233                 || ('j' <= (c) && (c) <= 'r') \
13234                 || ('s' <= (c) && (c) <= 'z'))
13235 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13236 #endif
13237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13238 int main () { int i; for (i = 0; i < 256; i++)
13239 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13240 exit (0); }
13241
13242 _ACEOF
13243 rm -f conftest$ac_exeext
13244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13245   (eval $ac_link) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; }; then
13254   :
13255 else
13256   echo "$as_me: program exited with status $ac_status" >&5
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ( exit $ac_status )
13261 ol_cv_header_stdc=no
13262 fi
13263 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13264 fi
13265 fi
13266 fi
13267 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13268 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13269 if test $ol_cv_header_stdc = yes; then
13270   cat >>confdefs.h <<\_ACEOF
13271 #define STDC_HEADERS 1
13272 _ACEOF
13273
13274 fi
13275 ac_cv_header_stdc=disable
13276
13277
13278 if test $ol_cv_header_stdc != yes; then
13279         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13280 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13281 fi
13282
13283
13284
13285
13286
13287
13288 ac_header_dirent=no
13289 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13290   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13291 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13292 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 #include <sys/types.h>
13303 #include <$ac_hdr>
13304
13305 int
13306 main ()
13307 {
13308 if ((DIR *) 0)
13309 return 0;
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316   (eval $ac_compile) 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } &&
13323          { ac_try='test -z "$ac_c_werror_flag"
13324                          || test ! -s conftest.err'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest.$ac_objext'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   eval "$as_ac_Header=yes"
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 eval "$as_ac_Header=no"
13342 fi
13343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13348   cat >>confdefs.h <<_ACEOF
13349 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13350 _ACEOF
13351
13352 ac_header_dirent=$ac_hdr; break
13353 fi
13354
13355 done
13356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13357 if test $ac_header_dirent = dirent.h; then
13358   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13359 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13360 if test "${ac_cv_search_opendir+set}" = set; then
13361   echo $ECHO_N "(cached) $ECHO_C" >&6
13362 else
13363   ac_func_search_save_LIBS=$LIBS
13364 ac_cv_search_opendir=no
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371
13372 /* Override any gcc2 internal prototype to avoid an error.  */
13373 #ifdef __cplusplus
13374 extern "C"
13375 #endif
13376 /* We use char because int might match the return type of a gcc2
13377    builtin and then its argument prototype would still apply.  */
13378 char opendir ();
13379 int
13380 main ()
13381 {
13382 opendir ();
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest.$ac_objext conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389   (eval $ac_link) 2>conftest.er1
13390   ac_status=$?
13391   grep -v '^ *+' conftest.er1 >conftest.err
13392   rm -f conftest.er1
13393   cat conftest.err >&5
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); } &&
13396          { ac_try='test -z "$ac_c_werror_flag"
13397                          || test ! -s conftest.err'
13398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399   (eval $ac_try) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; } &&
13403          { ac_try='test -s conftest$ac_exeext'
13404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405   (eval $ac_try) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; }; then
13409   ac_cv_search_opendir="none required"
13410 else
13411   echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 fi
13415 rm -f conftest.err conftest.$ac_objext \
13416       conftest$ac_exeext conftest.$ac_ext
13417 if test "$ac_cv_search_opendir" = no; then
13418   for ac_lib in dir; do
13419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13420     cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426
13427 /* Override any gcc2 internal prototype to avoid an error.  */
13428 #ifdef __cplusplus
13429 extern "C"
13430 #endif
13431 /* We use char because int might match the return type of a gcc2
13432    builtin and then its argument prototype would still apply.  */
13433 char opendir ();
13434 int
13435 main ()
13436 {
13437 opendir ();
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444   (eval $ac_link) 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag"
13452                          || test ! -s conftest.err'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_search_opendir="-l$ac_lib"
13465 break
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 fi
13471 rm -f conftest.err conftest.$ac_objext \
13472       conftest$ac_exeext conftest.$ac_ext
13473   done
13474 fi
13475 LIBS=$ac_func_search_save_LIBS
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13478 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13479 if test "$ac_cv_search_opendir" != no; then
13480   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13481
13482 fi
13483
13484 else
13485   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13486 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13487 if test "${ac_cv_search_opendir+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   ac_func_search_save_LIBS=$LIBS
13491 ac_cv_search_opendir=no
13492 cat >conftest.$ac_ext <<_ACEOF
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498
13499 /* Override any gcc2 internal prototype to avoid an error.  */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 /* We use char because int might match the return type of a gcc2
13504    builtin and then its argument prototype would still apply.  */
13505 char opendir ();
13506 int
13507 main ()
13508 {
13509 opendir ();
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 rm -f conftest.$ac_objext conftest$ac_exeext
13515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13516   (eval $ac_link) 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -z "$ac_c_werror_flag"
13524                          || test ! -s conftest.err'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; } &&
13530          { ac_try='test -s conftest$ac_exeext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_cv_search_opendir="none required"
13537 else
13538   echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541 fi
13542 rm -f conftest.err conftest.$ac_objext \
13543       conftest$ac_exeext conftest.$ac_ext
13544 if test "$ac_cv_search_opendir" = no; then
13545   for ac_lib in x; do
13546     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13547     cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553
13554 /* Override any gcc2 internal prototype to avoid an error.  */
13555 #ifdef __cplusplus
13556 extern "C"
13557 #endif
13558 /* We use char because int might match the return type of a gcc2
13559    builtin and then its argument prototype would still apply.  */
13560 char opendir ();
13561 int
13562 main ()
13563 {
13564 opendir ();
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13571   (eval $ac_link) 2>conftest.er1
13572   ac_status=$?
13573   grep -v '^ *+' conftest.er1 >conftest.err
13574   rm -f conftest.er1
13575   cat conftest.err >&5
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); } &&
13578          { ac_try='test -z "$ac_c_werror_flag"
13579                          || test ! -s conftest.err'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest$ac_exeext'
13586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587   (eval $ac_try) 2>&5
13588   ac_status=$?
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); }; }; then
13591   ac_cv_search_opendir="-l$ac_lib"
13592 break
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 fi
13598 rm -f conftest.err conftest.$ac_objext \
13599       conftest$ac_exeext conftest.$ac_ext
13600   done
13601 fi
13602 LIBS=$ac_func_search_save_LIBS
13603 fi
13604 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13605 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13606 if test "$ac_cv_search_opendir" != no; then
13607   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13608
13609 fi
13610
13611 fi
13612
13613 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13614 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13615 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618   cat >conftest.$ac_ext <<_ACEOF
13619 /* confdefs.h.  */
13620 _ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h.  */
13624 #include <sys/types.h>
13625 #include <sys/wait.h>
13626 #ifndef WEXITSTATUS
13627 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13628 #endif
13629 #ifndef WIFEXITED
13630 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13631 #endif
13632
13633 int
13634 main ()
13635 {
13636   int s;
13637   wait (&s);
13638   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13639   ;
13640   return 0;
13641 }
13642 _ACEOF
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645   (eval $ac_compile) 2>conftest.er1
13646   ac_status=$?
13647   grep -v '^ *+' conftest.er1 >conftest.err
13648   rm -f conftest.er1
13649   cat conftest.err >&5
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -z "$ac_c_werror_flag"
13653                          || test ! -s conftest.err'
13654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655   (eval $ac_try) 2>&5
13656   ac_status=$?
13657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658   (exit $ac_status); }; } &&
13659          { ac_try='test -s conftest.$ac_objext'
13660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661   (eval $ac_try) 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; }; then
13665   ac_cv_header_sys_wait_h=yes
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670 ac_cv_header_sys_wait_h=no
13671 fi
13672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13673 fi
13674 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13675 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13676 if test $ac_cv_header_sys_wait_h = yes; then
13677
13678 cat >>confdefs.h <<\_ACEOF
13679 #define HAVE_SYS_WAIT_H 1
13680 _ACEOF
13681
13682 fi
13683
13684 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13685 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13686 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695 #include <sys/types.h>
13696 #include <termios.h>
13697 #ifdef TIOCGWINSZ
13698   yes
13699 #endif
13700
13701 _ACEOF
13702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13703   $EGREP "yes" >/dev/null 2>&1; then
13704   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13705 else
13706   ac_cv_sys_tiocgwinsz_in_termios_h=no
13707 fi
13708 rm -f conftest*
13709
13710 fi
13711 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13712 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13713
13714 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13715   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13716 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13717 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 #include <sys/types.h>
13727 #include <sys/ioctl.h>
13728 #ifdef TIOCGWINSZ
13729   yes
13730 #endif
13731
13732 _ACEOF
13733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13734   $EGREP "yes" >/dev/null 2>&1; then
13735   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13736 else
13737   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13738 fi
13739 rm -f conftest*
13740
13741 fi
13742 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13743 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13744
13745   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define GWINSZ_IN_SYS_IOCTL 1
13749 _ACEOF
13750
13751   fi
13752 fi
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802 for ac_header in \
13803         arpa/inet.h             \
13804         arpa/nameser.h  \
13805         assert.h                \
13806         bits/types.h    \
13807         conio.h                 \
13808         crypt.h                 \
13809         direct.h                \
13810         errno.h                 \
13811         fcntl.h                 \
13812         filio.h                 \
13813         getopt.h                \
13814         grp.h                   \
13815         io.h                    \
13816         libutil.h               \
13817         limits.h                \
13818         locale.h                \
13819         malloc.h                \
13820         memory.h                \
13821         psap.h                  \
13822         pwd.h                   \
13823         process.h               \
13824         sgtty.h                 \
13825         shadow.h                \
13826         stddef.h                \
13827         string.h                \
13828         strings.h               \
13829         sysexits.h              \
13830         sys/file.h              \
13831         sys/filio.h             \
13832         sys/fstyp.h             \
13833         sys/errno.h             \
13834         sys/ioctl.h             \
13835         sys/param.h             \
13836         sys/privgrp.h   \
13837         sys/resource.h  \
13838         sys/select.h    \
13839         sys/socket.h    \
13840         sys/stat.h              \
13841         sys/syslog.h    \
13842         sys/time.h              \
13843         sys/types.h             \
13844         sys/uio.h               \
13845         sys/vmount.h    \
13846         syslog.h                \
13847         termios.h               \
13848         unistd.h                \
13849         utime.h                 \
13850
13851 do
13852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13854   echo "$as_me:$LINENO: checking for $ac_header" >&5
13855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 fi
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13861 else
13862   # Is the header compilable?
13863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 $ac_includes_default
13872 #include <$ac_header>
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876   (eval $ac_compile) 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } &&
13883          { ac_try='test -z "$ac_c_werror_flag"
13884                          || test ! -s conftest.err'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest.$ac_objext'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; }; then
13896   ac_header_compiler=yes
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_header_compiler=no
13902 fi
13903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13905 echo "${ECHO_T}$ac_header_compiler" >&6
13906
13907 # Is the header present?
13908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 #include <$ac_header>
13917 _ACEOF
13918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13920   ac_status=$?
13921   grep -v '^ *+' conftest.er1 >conftest.err
13922   rm -f conftest.er1
13923   cat conftest.err >&5
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } >/dev/null; then
13926   if test -s conftest.err; then
13927     ac_cpp_err=$ac_c_preproc_warn_flag
13928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13929   else
13930     ac_cpp_err=
13931   fi
13932 else
13933   ac_cpp_err=yes
13934 fi
13935 if test -z "$ac_cpp_err"; then
13936   ac_header_preproc=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941   ac_header_preproc=no
13942 fi
13943 rm -f conftest.err conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945 echo "${ECHO_T}$ac_header_preproc" >&6
13946
13947 # So?  What about this header?
13948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949   yes:no: )
13950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13954     ac_header_preproc=yes
13955     ;;
13956   no:yes:* )
13957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13969     (
13970       cat <<\_ASBOX
13971 ## --------------------------------------------- ##
13972 ## Report this to <http://www.openldap.org/its/> ##
13973 ## --------------------------------------------- ##
13974 _ASBOX
13975     ) |
13976       sed "s/^/$as_me: WARNING:     /" >&2
13977     ;;
13978 esac
13979 echo "$as_me:$LINENO: checking for $ac_header" >&5
13980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   eval "$as_ac_Header=\$ac_header_preproc"
13985 fi
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988
13989 fi
13990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13991   cat >>confdefs.h <<_ACEOF
13992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13993 _ACEOF
13994
13995 fi
13996
13997 done
13998
13999
14000 if test "$ac_cv_mingw32" = yes ; then
14001
14002
14003 for ac_header in winsock.h winsock2.h
14004 do
14005 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007   echo "$as_me:$LINENO: checking for $ac_header" >&5
14008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010   echo $ECHO_N "(cached) $ECHO_C" >&6
14011 fi
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014 else
14015   # Is the header compilable?
14016 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14017 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14018 cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 $ac_includes_default
14025 #include <$ac_header>
14026 _ACEOF
14027 rm -f conftest.$ac_objext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14029   (eval $ac_compile) 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } &&
14036          { ac_try='test -z "$ac_c_werror_flag"
14037                          || test ! -s conftest.err'
14038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039   (eval $ac_try) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); }; } &&
14043          { ac_try='test -s conftest.$ac_objext'
14044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045   (eval $ac_try) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; }; then
14049   ac_header_compiler=yes
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_header_compiler=no
14055 fi
14056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14058 echo "${ECHO_T}$ac_header_compiler" >&6
14059
14060 # Is the header present?
14061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069 #include <$ac_header>
14070 _ACEOF
14071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14073   ac_status=$?
14074   grep -v '^ *+' conftest.er1 >conftest.err
14075   rm -f conftest.er1
14076   cat conftest.err >&5
14077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078   (exit $ac_status); } >/dev/null; then
14079   if test -s conftest.err; then
14080     ac_cpp_err=$ac_c_preproc_warn_flag
14081     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14082   else
14083     ac_cpp_err=
14084   fi
14085 else
14086   ac_cpp_err=yes
14087 fi
14088 if test -z "$ac_cpp_err"; then
14089   ac_header_preproc=yes
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094   ac_header_preproc=no
14095 fi
14096 rm -f conftest.err conftest.$ac_ext
14097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14098 echo "${ECHO_T}$ac_header_preproc" >&6
14099
14100 # So?  What about this header?
14101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14102   yes:no: )
14103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14107     ac_header_preproc=yes
14108     ;;
14109   no:yes:* )
14110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14122     (
14123       cat <<\_ASBOX
14124 ## --------------------------------------------- ##
14125 ## Report this to <http://www.openldap.org/its/> ##
14126 ## --------------------------------------------- ##
14127 _ASBOX
14128     ) |
14129       sed "s/^/$as_me: WARNING:     /" >&2
14130     ;;
14131 esac
14132 echo "$as_me:$LINENO: checking for $ac_header" >&5
14133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   eval "$as_ac_Header=\$ac_header_preproc"
14138 fi
14139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14141
14142 fi
14143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14144   cat >>confdefs.h <<_ACEOF
14145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14146 _ACEOF
14147
14148 fi
14149
14150 done
14151
14152 fi
14153
14154
14155 for ac_header in resolv.h
14156 do
14157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14158 echo "$as_me:$LINENO: checking for $ac_header" >&5
14159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14161   echo $ECHO_N "(cached) $ECHO_C" >&6
14162 else
14163   cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169 $ac_includes_default
14170 #include <netinet/in.h>
14171
14172
14173 #include <$ac_header>
14174 _ACEOF
14175 rm -f conftest.$ac_objext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177   (eval $ac_compile) 2>conftest.er1
14178   ac_status=$?
14179   grep -v '^ *+' conftest.er1 >conftest.err
14180   rm -f conftest.er1
14181   cat conftest.err >&5
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } &&
14184          { ac_try='test -z "$ac_c_werror_flag"
14185                          || test ! -s conftest.err'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; } &&
14191          { ac_try='test -s conftest.$ac_objext'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }; then
14197   eval "$as_ac_Header=yes"
14198 else
14199   echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14201
14202 eval "$as_ac_Header=no"
14203 fi
14204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14205 fi
14206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14209   cat >>confdefs.h <<_ACEOF
14210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14211 _ACEOF
14212
14213 fi
14214
14215 done
14216
14217
14218
14219 for ac_header in netinet/tcp.h
14220 do
14221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14222 echo "$as_me:$LINENO: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 $ac_includes_default
14234 #include <netinet/in.h>
14235
14236
14237 #include <$ac_header>
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241   (eval $ac_compile) 2>conftest.er1
14242   ac_status=$?
14243   grep -v '^ *+' conftest.er1 >conftest.err
14244   rm -f conftest.er1
14245   cat conftest.err >&5
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); } &&
14248          { ac_try='test -z "$ac_c_werror_flag"
14249                          || test ! -s conftest.err'
14250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251   (eval $ac_try) 2>&5
14252   ac_status=$?
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); }; } &&
14255          { ac_try='test -s conftest.$ac_objext'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }; then
14261   eval "$as_ac_Header=yes"
14262 else
14263   echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 eval "$as_ac_Header=no"
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14273   cat >>confdefs.h <<_ACEOF
14274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14275 _ACEOF
14276
14277 fi
14278
14279 done
14280
14281
14282
14283 for ac_header in sys/ucred.h
14284 do
14285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14286 echo "$as_me:$LINENO: checking for $ac_header" >&5
14287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 $ac_includes_default
14298 #ifdef HAVE_SYS_PARAM_H
14299 #include <sys/param.h>
14300 #endif
14301
14302
14303 #include <$ac_header>
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>conftest.er1
14308   ac_status=$?
14309   grep -v '^ *+' conftest.er1 >conftest.err
14310   rm -f conftest.er1
14311   cat conftest.err >&5
14312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } &&
14314          { ac_try='test -z "$ac_c_werror_flag"
14315                          || test ! -s conftest.err'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; } &&
14321          { ac_try='test -s conftest.$ac_objext'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; }; then
14327   eval "$as_ac_Header=yes"
14328 else
14329   echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 eval "$as_ac_Header=no"
14333 fi
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14339   cat >>confdefs.h <<_ACEOF
14340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14341 _ACEOF
14342
14343 fi
14344
14345 done
14346
14347
14348
14349
14350
14351 for ac_func in sigaction sigset
14352 do
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_var+set}\" = set"; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14367 #define $ac_func innocuous_$ac_func
14368
14369 /* System header to define __stub macros and hopefully few prototypes,
14370     which can conflict with char $ac_func (); below.
14371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372     <limits.h> exists even on freestanding compilers.  */
14373
14374 #ifdef __STDC__
14375 # include <limits.h>
14376 #else
14377 # include <assert.h>
14378 #endif
14379
14380 #undef $ac_func
14381
14382 /* Override any gcc2 internal prototype to avoid an error.  */
14383 #ifdef __cplusplus
14384 extern "C"
14385 {
14386 #endif
14387 /* We use char because int might match the return type of a gcc2
14388    builtin and then its argument prototype would still apply.  */
14389 char $ac_func ();
14390 /* The GNU C library defines this for functions which it implements
14391     to always fail with ENOSYS.  Some functions are actually named
14392     something starting with __ and the normal name is an alias.  */
14393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14394 choke me
14395 #else
14396 char (*f) () = $ac_func;
14397 #endif
14398 #ifdef __cplusplus
14399 }
14400 #endif
14401
14402 int
14403 main ()
14404 {
14405 return f != $ac_func;
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412   (eval $ac_link) 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag"
14420                          || test ! -s conftest.err'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   eval "$as_ac_var=yes"
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437 eval "$as_ac_var=no"
14438 fi
14439 rm -f conftest.err conftest.$ac_objext \
14440       conftest$ac_exeext conftest.$ac_ext
14441 fi
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14444 if test `eval echo '${'$as_ac_var'}'` = yes; then
14445   cat >>confdefs.h <<_ACEOF
14446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14447 _ACEOF
14448
14449 fi
14450 done
14451
14452
14453 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14454
14455 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14456 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14457 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   ac_check_lib_save_LIBS=$LIBS
14461 LIBS="-lV3  $LIBS"
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468
14469 /* Override any gcc2 internal prototype to avoid an error.  */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 /* We use char because int might match the return type of a gcc2
14474    builtin and then its argument prototype would still apply.  */
14475 char sigset ();
14476 int
14477 main ()
14478 {
14479 sigset ();
14480   ;
14481   return 0;
14482 }
14483 _ACEOF
14484 rm -f conftest.$ac_objext conftest$ac_exeext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14486   (eval $ac_link) 2>conftest.er1
14487   ac_status=$?
14488   grep -v '^ *+' conftest.er1 >conftest.err
14489   rm -f conftest.er1
14490   cat conftest.err >&5
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } &&
14493          { ac_try='test -z "$ac_c_werror_flag"
14494                          || test ! -s conftest.err'
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); }; } &&
14500          { ac_try='test -s conftest$ac_exeext'
14501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502   (eval $ac_try) 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; }; then
14506   ac_cv_lib_V3_sigset=yes
14507 else
14508   echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511 ac_cv_lib_V3_sigset=no
14512 fi
14513 rm -f conftest.err conftest.$ac_objext \
14514       conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14516 fi
14517 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14518 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14519 if test $ac_cv_lib_V3_sigset = yes; then
14520   cat >>confdefs.h <<_ACEOF
14521 #define HAVE_LIBV3 1
14522 _ACEOF
14523
14524   LIBS="-lV3 $LIBS"
14525
14526 fi
14527
14528 fi
14529
14530 if test "$ac_cv_header_winsock_h" = yes; then
14531 echo "$as_me:$LINENO: checking for winsock" >&5
14532 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14533 if test "${ol_cv_winsock+set}" = set; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   save_LIBS="$LIBS"
14537 for curlib in ws2_32 wsock32; do
14538         LIBS="$LIBS -l$curlib"
14539         cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <winsock.h>
14546
14547 int
14548 main ()
14549 {
14550
14551                         socket(0,0,0);
14552                         select(0,NULL,NULL,NULL,NULL);
14553                         closesocket(0);
14554                         gethostname(NULL,0);
14555
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562   (eval $ac_link) 2>conftest.er1
14563   ac_status=$?
14564   grep -v '^ *+' conftest.er1 >conftest.err
14565   rm -f conftest.er1
14566   cat conftest.err >&5
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } &&
14569          { ac_try='test -z "$ac_c_werror_flag"
14570                          || test ! -s conftest.err'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; } &&
14576          { ac_try='test -s conftest$ac_exeext'
14577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578   (eval $ac_try) 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   ol_cv_winsock=yes
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587 ol_cv_winsock=no
14588 fi
14589 rm -f conftest.err conftest.$ac_objext \
14590       conftest$ac_exeext conftest.$ac_ext
14591
14592         if test $ol_cv_winsock = yes; then
14593
14594 cat >>confdefs.h <<\_ACEOF
14595 #define HAVE_WINSOCK 1
14596 _ACEOF
14597
14598                 ac_cv_func_socket=yes
14599                 ac_cv_func_select=yes
14600                 ac_cv_func_closesocket=yes
14601                 ac_cv_func_gethostname=yes
14602                 if test $curlib = ws2_32; then
14603                         ol_cv_winsock=winsock2
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_WINSOCK2 1
14607 _ACEOF
14608
14609                 fi
14610                 break
14611         fi
14612         LIBS="$save_LIBS"
14613 done
14614 fi
14615 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14616 echo "${ECHO_T}$ol_cv_winsock" >&6
14617 fi
14618
14619
14620 echo "$as_me:$LINENO: checking for socket" >&5
14621 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14622 if test "${ac_cv_func_socket+set}" = set; then
14623   echo $ECHO_N "(cached) $ECHO_C" >&6
14624 else
14625   cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14633 #define socket innocuous_socket
14634
14635 /* System header to define __stub macros and hopefully few prototypes,
14636     which can conflict with char socket (); below.
14637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638     <limits.h> exists even on freestanding compilers.  */
14639
14640 #ifdef __STDC__
14641 # include <limits.h>
14642 #else
14643 # include <assert.h>
14644 #endif
14645
14646 #undef socket
14647
14648 /* Override any gcc2 internal prototype to avoid an error.  */
14649 #ifdef __cplusplus
14650 extern "C"
14651 {
14652 #endif
14653 /* We use char because int might match the return type of a gcc2
14654    builtin and then its argument prototype would still apply.  */
14655 char socket ();
14656 /* The GNU C library defines this for functions which it implements
14657     to always fail with ENOSYS.  Some functions are actually named
14658     something starting with __ and the normal name is an alias.  */
14659 #if defined (__stub_socket) || defined (__stub___socket)
14660 choke me
14661 #else
14662 char (*f) () = socket;
14663 #endif
14664 #ifdef __cplusplus
14665 }
14666 #endif
14667
14668 int
14669 main ()
14670 {
14671 return f != socket;
14672   ;
14673   return 0;
14674 }
14675 _ACEOF
14676 rm -f conftest.$ac_objext conftest$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678   (eval $ac_link) 2>conftest.er1
14679   ac_status=$?
14680   grep -v '^ *+' conftest.er1 >conftest.err
14681   rm -f conftest.er1
14682   cat conftest.err >&5
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } &&
14685          { ac_try='test -z "$ac_c_werror_flag"
14686                          || test ! -s conftest.err'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; } &&
14692          { ac_try='test -s conftest$ac_exeext'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; }; then
14698   ac_cv_func_socket=yes
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_cv_func_socket=no
14704 fi
14705 rm -f conftest.err conftest.$ac_objext \
14706       conftest$ac_exeext conftest.$ac_ext
14707 fi
14708 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14709 echo "${ECHO_T}$ac_cv_func_socket" >&6
14710 if test $ac_cv_func_socket = yes; then
14711   :
14712 else
14713
14714
14715 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14716 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14717 if test "${ac_cv_lib_socket_main+set}" = set; then
14718   echo $ECHO_N "(cached) $ECHO_C" >&6
14719 else
14720   ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-lsocket  $LIBS"
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728
14729
14730 int
14731 main ()
14732 {
14733 main ();
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14740   (eval $ac_link) 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } &&
14747          { ac_try='test -z "$ac_c_werror_flag"
14748                          || test ! -s conftest.err'
14749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750   (eval $ac_try) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; } &&
14754          { ac_try='test -s conftest$ac_exeext'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   ac_cv_lib_socket_main=yes
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 ac_cv_lib_socket_main=no
14766 fi
14767 rm -f conftest.err conftest.$ac_objext \
14768       conftest$ac_exeext conftest.$ac_ext
14769 LIBS=$ac_check_lib_save_LIBS
14770 fi
14771 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14772 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14773 if test $ac_cv_lib_socket_main = yes; then
14774   cat >>confdefs.h <<_ACEOF
14775 #define HAVE_LIBSOCKET 1
14776 _ACEOF
14777
14778   LIBS="-lsocket $LIBS"
14779
14780 fi
14781
14782
14783 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14784 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14785 if test "${ac_cv_lib_net_main+set}" = set; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788   ac_check_lib_save_LIBS=$LIBS
14789 LIBS="-lnet  $LIBS"
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796
14797
14798 int
14799 main ()
14800 {
14801 main ();
14802   ;
14803   return 0;
14804 }
14805 _ACEOF
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808   (eval $ac_link) 2>conftest.er1
14809   ac_status=$?
14810   grep -v '^ *+' conftest.er1 >conftest.err
14811   rm -f conftest.er1
14812   cat conftest.err >&5
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); } &&
14815          { ac_try='test -z "$ac_c_werror_flag"
14816                          || test ! -s conftest.err'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; } &&
14822          { ac_try='test -s conftest$ac_exeext'
14823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824   (eval $ac_try) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; }; then
14828   ac_cv_lib_net_main=yes
14829 else
14830   echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_cv_lib_net_main=no
14834 fi
14835 rm -f conftest.err conftest.$ac_objext \
14836       conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14838 fi
14839 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14840 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14841 if test $ac_cv_lib_net_main = yes; then
14842   cat >>confdefs.h <<_ACEOF
14843 #define HAVE_LIBNET 1
14844 _ACEOF
14845
14846   LIBS="-lnet $LIBS"
14847
14848 fi
14849
14850
14851 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14852 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14853 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14854   echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856   ac_check_lib_save_LIBS=$LIBS
14857 LIBS="-lnsl_s  $LIBS"
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864
14865
14866 int
14867 main ()
14868 {
14869 main ();
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876   (eval $ac_link) 2>conftest.er1
14877   ac_status=$?
14878   grep -v '^ *+' conftest.er1 >conftest.err
14879   rm -f conftest.er1
14880   cat conftest.err >&5
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } &&
14883          { ac_try='test -z "$ac_c_werror_flag"
14884                          || test ! -s conftest.err'
14885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886   (eval $ac_try) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; } &&
14890          { ac_try='test -s conftest$ac_exeext'
14891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14892   (eval $ac_try) 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   ac_cv_lib_nsl_s_main=yes
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 ac_cv_lib_nsl_s_main=no
14902 fi
14903 rm -f conftest.err conftest.$ac_objext \
14904       conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14906 fi
14907 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14908 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14909 if test $ac_cv_lib_nsl_s_main = yes; then
14910   cat >>confdefs.h <<_ACEOF
14911 #define HAVE_LIBNSL_S 1
14912 _ACEOF
14913
14914   LIBS="-lnsl_s $LIBS"
14915
14916 fi
14917
14918
14919 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14920 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14921 if test "${ac_cv_lib_nsl_main+set}" = set; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924   ac_check_lib_save_LIBS=$LIBS
14925 LIBS="-lnsl  $LIBS"
14926 cat >conftest.$ac_ext <<_ACEOF
14927 /* confdefs.h.  */
14928 _ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h.  */
14932
14933
14934 int
14935 main ()
14936 {
14937 main ();
14938   ;
14939   return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14944   (eval $ac_link) 2>conftest.er1
14945   ac_status=$?
14946   grep -v '^ *+' conftest.er1 >conftest.err
14947   rm -f conftest.er1
14948   cat conftest.err >&5
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); } &&
14951          { ac_try='test -z "$ac_c_werror_flag"
14952                          || test ! -s conftest.err'
14953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954   (eval $ac_try) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; } &&
14958          { ac_try='test -s conftest$ac_exeext'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; }; then
14964   ac_cv_lib_nsl_main=yes
14965 else
14966   echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14968
14969 ac_cv_lib_nsl_main=no
14970 fi
14971 rm -f conftest.err conftest.$ac_objext \
14972       conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS
14974 fi
14975 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14976 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14977 if test $ac_cv_lib_nsl_main = yes; then
14978   cat >>confdefs.h <<_ACEOF
14979 #define HAVE_LIBNSL 1
14980 _ACEOF
14981
14982   LIBS="-lnsl $LIBS"
14983
14984 fi
14985
14986
14987 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14988 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14989 if test "${ac_cv_lib_inet_socket+set}" = set; then
14990   echo $ECHO_N "(cached) $ECHO_C" >&6
14991 else
14992   ac_check_lib_save_LIBS=$LIBS
14993 LIBS="-linet  $LIBS"
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000
15001 /* Override any gcc2 internal prototype to avoid an error.  */
15002 #ifdef __cplusplus
15003 extern "C"
15004 #endif
15005 /* We use char because int might match the return type of a gcc2
15006    builtin and then its argument prototype would still apply.  */
15007 char socket ();
15008 int
15009 main ()
15010 {
15011 socket ();
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018   (eval $ac_link) 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -z "$ac_c_werror_flag"
15026                          || test ! -s conftest.err'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; } &&
15032          { ac_try='test -s conftest$ac_exeext'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   ac_cv_lib_inet_socket=yes
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 ac_cv_lib_inet_socket=no
15044 fi
15045 rm -f conftest.err conftest.$ac_objext \
15046       conftest$ac_exeext conftest.$ac_ext
15047 LIBS=$ac_check_lib_save_LIBS
15048 fi
15049 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15050 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15051 if test $ac_cv_lib_inet_socket = yes; then
15052   cat >>confdefs.h <<_ACEOF
15053 #define HAVE_LIBINET 1
15054 _ACEOF
15055
15056   LIBS="-linet $LIBS"
15057
15058 fi
15059
15060
15061 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15062 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15063 if test "${ac_cv_lib_gen_main+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   ac_check_lib_save_LIBS=$LIBS
15067 LIBS="-lgen  $LIBS"
15068 cat >conftest.$ac_ext <<_ACEOF
15069 /* confdefs.h.  */
15070 _ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h.  */
15074
15075
15076 int
15077 main ()
15078 {
15079 main ();
15080   ;
15081   return 0;
15082 }
15083 _ACEOF
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15086   (eval $ac_link) 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } &&
15093          { ac_try='test -z "$ac_c_werror_flag"
15094                          || test ! -s conftest.err'
15095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096   (eval $ac_try) 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; } &&
15100          { ac_try='test -s conftest$ac_exeext'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; }; then
15106   ac_cv_lib_gen_main=yes
15107 else
15108   echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111 ac_cv_lib_gen_main=no
15112 fi
15113 rm -f conftest.err conftest.$ac_objext \
15114       conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15116 fi
15117 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15118 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15119 if test $ac_cv_lib_gen_main = yes; then
15120   cat >>confdefs.h <<_ACEOF
15121 #define HAVE_LIBGEN 1
15122 _ACEOF
15123
15124   LIBS="-lgen $LIBS"
15125
15126 fi
15127
15128
15129 fi
15130
15131
15132 echo "$as_me:$LINENO: checking for select" >&5
15133 echo $ECHO_N "checking for select... $ECHO_C" >&6
15134 if test "${ac_cv_func_select+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 /* Define select to an innocuous variant, in case <limits.h> declares select.
15144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15145 #define select innocuous_select
15146
15147 /* System header to define __stub macros and hopefully few prototypes,
15148     which can conflict with char select (); below.
15149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15150     <limits.h> exists even on freestanding compilers.  */
15151
15152 #ifdef __STDC__
15153 # include <limits.h>
15154 #else
15155 # include <assert.h>
15156 #endif
15157
15158 #undef select
15159
15160 /* Override any gcc2 internal prototype to avoid an error.  */
15161 #ifdef __cplusplus
15162 extern "C"
15163 {
15164 #endif
15165 /* We use char because int might match the return type of a gcc2
15166    builtin and then its argument prototype would still apply.  */
15167 char select ();
15168 /* The GNU C library defines this for functions which it implements
15169     to always fail with ENOSYS.  Some functions are actually named
15170     something starting with __ and the normal name is an alias.  */
15171 #if defined (__stub_select) || defined (__stub___select)
15172 choke me
15173 #else
15174 char (*f) () = select;
15175 #endif
15176 #ifdef __cplusplus
15177 }
15178 #endif
15179
15180 int
15181 main ()
15182 {
15183 return f != select;
15184   ;
15185   return 0;
15186 }
15187 _ACEOF
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15190   (eval $ac_link) 2>conftest.er1
15191   ac_status=$?
15192   grep -v '^ *+' conftest.er1 >conftest.err
15193   rm -f conftest.er1
15194   cat conftest.err >&5
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); } &&
15197          { ac_try='test -z "$ac_c_werror_flag"
15198                          || test ! -s conftest.err'
15199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15200   (eval $ac_try) 2>&5
15201   ac_status=$?
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); }; } &&
15204          { ac_try='test -s conftest$ac_exeext'
15205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206   (eval $ac_try) 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_cv_func_select=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_cv_func_select=no
15216 fi
15217 rm -f conftest.err conftest.$ac_objext \
15218       conftest$ac_exeext conftest.$ac_ext
15219 fi
15220 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15221 echo "${ECHO_T}$ac_cv_func_select" >&6
15222 if test $ac_cv_func_select = yes; then
15223   :
15224 else
15225   { { echo "$as_me:$LINENO: error: select() required." >&5
15226 echo "$as_me: error: select() required." >&2;}
15227    { (exit 1); exit 1; }; }
15228 fi
15229
15230
15231 if test "${ac_cv_header_winsock_h}" != yes; then
15232
15233
15234 for ac_header in sys/select.h sys/socket.h
15235 do
15236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238   echo "$as_me:$LINENO: checking for $ac_header" >&5
15239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15241   echo $ECHO_N "(cached) $ECHO_C" >&6
15242 fi
15243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15245 else
15246   # Is the header compilable?
15247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255 $ac_includes_default
15256 #include <$ac_header>
15257 _ACEOF
15258 rm -f conftest.$ac_objext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15260   (eval $ac_compile) 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } &&
15267          { ac_try='test -z "$ac_c_werror_flag"
15268                          || test ! -s conftest.err'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; } &&
15274          { ac_try='test -s conftest.$ac_objext'
15275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276   (eval $ac_try) 2>&5
15277   ac_status=$?
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); }; }; then
15280   ac_header_compiler=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_header_compiler=no
15286 fi
15287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 echo "${ECHO_T}$ac_header_compiler" >&6
15290
15291 # Is the header present?
15292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h.  */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h.  */
15300 #include <$ac_header>
15301 _ACEOF
15302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15304   ac_status=$?
15305   grep -v '^ *+' conftest.er1 >conftest.err
15306   rm -f conftest.er1
15307   cat conftest.err >&5
15308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309   (exit $ac_status); } >/dev/null; then
15310   if test -s conftest.err; then
15311     ac_cpp_err=$ac_c_preproc_warn_flag
15312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313   else
15314     ac_cpp_err=
15315   fi
15316 else
15317   ac_cpp_err=yes
15318 fi
15319 if test -z "$ac_cpp_err"; then
15320   ac_header_preproc=yes
15321 else
15322   echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325   ac_header_preproc=no
15326 fi
15327 rm -f conftest.err conftest.$ac_ext
15328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 echo "${ECHO_T}$ac_header_preproc" >&6
15330
15331 # So?  What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333   yes:no: )
15334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15338     ac_header_preproc=yes
15339     ;;
15340   no:yes:* )
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15353     (
15354       cat <<\_ASBOX
15355 ## --------------------------------------------- ##
15356 ## Report this to <http://www.openldap.org/its/> ##
15357 ## --------------------------------------------- ##
15358 _ASBOX
15359     ) |
15360       sed "s/^/$as_me: WARNING:     /" >&2
15361     ;;
15362 esac
15363 echo "$as_me:$LINENO: checking for $ac_header" >&5
15364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   eval "$as_ac_Header=\$ac_header_preproc"
15369 fi
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15372
15373 fi
15374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15375   cat >>confdefs.h <<_ACEOF
15376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 _ACEOF
15378
15379 fi
15380
15381 done
15382
15383 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15384 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15385 if test "${ac_cv_func_select_args+set}" = set; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 else
15388   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15389  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15390   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15391    cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397 $ac_includes_default
15398 #if HAVE_SYS_SELECT_H
15399 # include <sys/select.h>
15400 #endif
15401 #if HAVE_SYS_SOCKET_H
15402 # include <sys/socket.h>
15403 #endif
15404
15405 int
15406 main ()
15407 {
15408 extern int select ($ac_arg1,
15409                                             $ac_arg234, $ac_arg234, $ac_arg234,
15410                                             $ac_arg5);
15411   ;
15412   return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417   (eval $ac_compile) 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -z "$ac_c_werror_flag"
15425                          || test ! -s conftest.err'
15426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427   (eval $ac_try) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest.$ac_objext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 fi
15443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15444   done
15445  done
15446 done
15447 # Provide a safe default value.
15448 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15449
15450 fi
15451 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15452 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15453 ac_save_IFS=$IFS; IFS=','
15454 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15455 IFS=$ac_save_IFS
15456 shift
15457
15458 cat >>confdefs.h <<_ACEOF
15459 #define SELECT_TYPE_ARG1 $1
15460 _ACEOF
15461
15462
15463 cat >>confdefs.h <<_ACEOF
15464 #define SELECT_TYPE_ARG234 ($2)
15465 _ACEOF
15466
15467
15468 cat >>confdefs.h <<_ACEOF
15469 #define SELECT_TYPE_ARG5 ($3)
15470 _ACEOF
15471
15472 rm -f conftest*
15473
15474 fi
15475
15476
15477
15478 for ac_func in poll
15479 do
15480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15481 echo "$as_me:$LINENO: checking for $ac_func" >&5
15482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_var+set}\" = set"; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486   cat >conftest.$ac_ext <<_ACEOF
15487 /* confdefs.h.  */
15488 _ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h.  */
15492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15494 #define $ac_func innocuous_$ac_func
15495
15496 /* System header to define __stub macros and hopefully few prototypes,
15497     which can conflict with char $ac_func (); below.
15498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15499     <limits.h> exists even on freestanding compilers.  */
15500
15501 #ifdef __STDC__
15502 # include <limits.h>
15503 #else
15504 # include <assert.h>
15505 #endif
15506
15507 #undef $ac_func
15508
15509 /* Override any gcc2 internal prototype to avoid an error.  */
15510 #ifdef __cplusplus
15511 extern "C"
15512 {
15513 #endif
15514 /* We use char because int might match the return type of a gcc2
15515    builtin and then its argument prototype would still apply.  */
15516 char $ac_func ();
15517 /* The GNU C library defines this for functions which it implements
15518     to always fail with ENOSYS.  Some functions are actually named
15519     something starting with __ and the normal name is an alias.  */
15520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15521 choke me
15522 #else
15523 char (*f) () = $ac_func;
15524 #endif
15525 #ifdef __cplusplus
15526 }
15527 #endif
15528
15529 int
15530 main ()
15531 {
15532 return f != $ac_func;
15533   ;
15534   return 0;
15535 }
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539   (eval $ac_link) 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } &&
15546          { ac_try='test -z "$ac_c_werror_flag"
15547                          || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest$ac_exeext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559   eval "$as_ac_var=yes"
15560 else
15561   echo "$as_me: failed program was:" >&5
15562 sed 's/^/| /' conftest.$ac_ext >&5
15563
15564 eval "$as_ac_var=no"
15565 fi
15566 rm -f conftest.err conftest.$ac_objext \
15567       conftest$ac_exeext conftest.$ac_ext
15568 fi
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15571 if test `eval echo '${'$as_ac_var'}'` = yes; then
15572   cat >>confdefs.h <<_ACEOF
15573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15574 _ACEOF
15575
15576 fi
15577 done
15578
15579 if test $ac_cv_func_poll = yes; then
15580
15581
15582 for ac_header in poll.h sys/poll.h
15583 do
15584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15586   echo "$as_me:$LINENO: checking for $ac_header" >&5
15587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15589   echo $ECHO_N "(cached) $ECHO_C" >&6
15590 fi
15591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15593 else
15594   # Is the header compilable?
15595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15597 cat >conftest.$ac_ext <<_ACEOF
15598 /* confdefs.h.  */
15599 _ACEOF
15600 cat confdefs.h >>conftest.$ac_ext
15601 cat >>conftest.$ac_ext <<_ACEOF
15602 /* end confdefs.h.  */
15603 $ac_includes_default
15604 #include <$ac_header>
15605 _ACEOF
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608   (eval $ac_compile) 2>conftest.er1
15609   ac_status=$?
15610   grep -v '^ *+' conftest.er1 >conftest.err
15611   rm -f conftest.er1
15612   cat conftest.err >&5
15613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614   (exit $ac_status); } &&
15615          { ac_try='test -z "$ac_c_werror_flag"
15616                          || test ! -s conftest.err'
15617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618   (eval $ac_try) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; } &&
15622          { ac_try='test -s conftest.$ac_objext'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628   ac_header_compiler=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_header_compiler=no
15634 fi
15635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15637 echo "${ECHO_T}$ac_header_compiler" >&6
15638
15639 # Is the header present?
15640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15642 cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 #include <$ac_header>
15649 _ACEOF
15650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15652   ac_status=$?
15653   grep -v '^ *+' conftest.er1 >conftest.err
15654   rm -f conftest.er1
15655   cat conftest.err >&5
15656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657   (exit $ac_status); } >/dev/null; then
15658   if test -s conftest.err; then
15659     ac_cpp_err=$ac_c_preproc_warn_flag
15660     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15661   else
15662     ac_cpp_err=
15663   fi
15664 else
15665   ac_cpp_err=yes
15666 fi
15667 if test -z "$ac_cpp_err"; then
15668   ac_header_preproc=yes
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673   ac_header_preproc=no
15674 fi
15675 rm -f conftest.err conftest.$ac_ext
15676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15677 echo "${ECHO_T}$ac_header_preproc" >&6
15678
15679 # So?  What about this header?
15680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15681   yes:no: )
15682     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15686     ac_header_preproc=yes
15687     ;;
15688   no:yes:* )
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15691     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15692 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15693     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15695     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15696 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15699     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15701     (
15702       cat <<\_ASBOX
15703 ## --------------------------------------------- ##
15704 ## Report this to <http://www.openldap.org/its/> ##
15705 ## --------------------------------------------- ##
15706 _ASBOX
15707     ) |
15708       sed "s/^/$as_me: WARNING:     /" >&2
15709     ;;
15710 esac
15711 echo "$as_me:$LINENO: checking for $ac_header" >&5
15712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15714   echo $ECHO_N "(cached) $ECHO_C" >&6
15715 else
15716   eval "$as_ac_Header=\$ac_header_preproc"
15717 fi
15718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15720
15721 fi
15722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15723   cat >>confdefs.h <<_ACEOF
15724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15725 _ACEOF
15726
15727 fi
15728
15729 done
15730
15731 fi
15732
15733
15734 for ac_header in sys/epoll.h
15735 do
15736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15738   echo "$as_me:$LINENO: checking for $ac_header" >&5
15739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 fi
15743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15745 else
15746   # Is the header compilable?
15747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755 $ac_includes_default
15756 #include <$ac_header>
15757 _ACEOF
15758 rm -f conftest.$ac_objext
15759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15760   (eval $ac_compile) 2>conftest.er1
15761   ac_status=$?
15762   grep -v '^ *+' conftest.er1 >conftest.err
15763   rm -f conftest.er1
15764   cat conftest.err >&5
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); } &&
15767          { ac_try='test -z "$ac_c_werror_flag"
15768                          || test ! -s conftest.err'
15769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770   (eval $ac_try) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; } &&
15774          { ac_try='test -s conftest.$ac_objext'
15775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776   (eval $ac_try) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; }; then
15780   ac_header_compiler=yes
15781 else
15782   echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_header_compiler=no
15786 fi
15787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15789 echo "${ECHO_T}$ac_header_compiler" >&6
15790
15791 # Is the header present?
15792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800 #include <$ac_header>
15801 _ACEOF
15802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } >/dev/null; then
15810   if test -s conftest.err; then
15811     ac_cpp_err=$ac_c_preproc_warn_flag
15812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15813   else
15814     ac_cpp_err=
15815   fi
15816 else
15817   ac_cpp_err=yes
15818 fi
15819 if test -z "$ac_cpp_err"; then
15820   ac_header_preproc=yes
15821 else
15822   echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825   ac_header_preproc=no
15826 fi
15827 rm -f conftest.err conftest.$ac_ext
15828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15829 echo "${ECHO_T}$ac_header_preproc" >&6
15830
15831 # So?  What about this header?
15832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15833   yes:no: )
15834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15838     ac_header_preproc=yes
15839     ;;
15840   no:yes:* )
15841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15853     (
15854       cat <<\_ASBOX
15855 ## --------------------------------------------- ##
15856 ## Report this to <http://www.openldap.org/its/> ##
15857 ## --------------------------------------------- ##
15858 _ASBOX
15859     ) |
15860       sed "s/^/$as_me: WARNING:     /" >&2
15861     ;;
15862 esac
15863 echo "$as_me:$LINENO: checking for $ac_header" >&5
15864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866   echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868   eval "$as_ac_Header=\$ac_header_preproc"
15869 fi
15870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15872
15873 fi
15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15875   cat >>confdefs.h <<_ACEOF
15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15877 _ACEOF
15878
15879 fi
15880
15881 done
15882
15883 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15884         echo "$as_me:$LINENO: checking for epoll system call" >&5
15885 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15886         if test "$cross_compiling" = yes; then
15887   echo "$as_me:$LINENO: result: no" >&5
15888 echo "${ECHO_T}no" >&6
15889 else
15890   cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896 int main(int argc, char **argv)
15897 {
15898         int epfd = epoll_create(256);
15899         exit (epfd == -1 ? 1 : 0);
15900 }
15901 _ACEOF
15902 rm -f conftest$ac_exeext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15904   (eval $ac_link) 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909   (eval $ac_try) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; }; then
15913   echo "$as_me:$LINENO: result: yes" >&5
15914 echo "${ECHO_T}yes" >&6
15915
15916 cat >>confdefs.h <<\_ACEOF
15917 #define HAVE_EPOLL 1
15918 _ACEOF
15919
15920 else
15921   echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 ( exit $ac_status )
15926 echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 fi
15929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15930 fi
15931 fi
15932
15933
15934 for ac_header in sys/devpoll.h
15935 do
15936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15938   echo "$as_me:$LINENO: checking for $ac_header" >&5
15939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 fi
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15945 else
15946   # Is the header compilable?
15947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h.  */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h.  */
15955 $ac_includes_default
15956 #include <$ac_header>
15957 _ACEOF
15958 rm -f conftest.$ac_objext
15959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15960   (eval $ac_compile) 2>conftest.er1
15961   ac_status=$?
15962   grep -v '^ *+' conftest.er1 >conftest.err
15963   rm -f conftest.er1
15964   cat conftest.err >&5
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } &&
15967          { ac_try='test -z "$ac_c_werror_flag"
15968                          || test ! -s conftest.err'
15969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970   (eval $ac_try) 2>&5
15971   ac_status=$?
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); }; } &&
15974          { ac_try='test -s conftest.$ac_objext'
15975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976   (eval $ac_try) 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; }; then
15980   ac_header_compiler=yes
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ac_header_compiler=no
15986 fi
15987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15989 echo "${ECHO_T}$ac_header_compiler" >&6
15990
15991 # Is the header present?
15992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15994 cat >conftest.$ac_ext <<_ACEOF
15995 /* confdefs.h.  */
15996 _ACEOF
15997 cat confdefs.h >>conftest.$ac_ext
15998 cat >>conftest.$ac_ext <<_ACEOF
15999 /* end confdefs.h.  */
16000 #include <$ac_header>
16001 _ACEOF
16002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16003   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } >/dev/null; then
16010   if test -s conftest.err; then
16011     ac_cpp_err=$ac_c_preproc_warn_flag
16012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16013   else
16014     ac_cpp_err=
16015   fi
16016 else
16017   ac_cpp_err=yes
16018 fi
16019 if test -z "$ac_cpp_err"; then
16020   ac_header_preproc=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025   ac_header_preproc=no
16026 fi
16027 rm -f conftest.err conftest.$ac_ext
16028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6
16030
16031 # So?  What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033   yes:no: )
16034     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16038     ac_header_preproc=yes
16039     ;;
16040   no:yes:* )
16041     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16053     (
16054       cat <<\_ASBOX
16055 ## --------------------------------------------- ##
16056 ## Report this to <http://www.openldap.org/its/> ##
16057 ## --------------------------------------------- ##
16058 _ASBOX
16059     ) |
16060       sed "s/^/$as_me: WARNING:     /" >&2
16061     ;;
16062 esac
16063 echo "$as_me:$LINENO: checking for $ac_header" >&5
16064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16066   echo $ECHO_N "(cached) $ECHO_C" >&6
16067 else
16068   eval "$as_ac_Header=\$ac_header_preproc"
16069 fi
16070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16072
16073 fi
16074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16075   cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16077 _ACEOF
16078
16079 fi
16080
16081 done
16082
16083 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16084                 -a "${ac_cv_header_poll_h}" = yes ; \
16085 then
16086         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16087 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16088         if test "$cross_compiling" = yes; then
16089   echo "$as_me:$LINENO: result: no" >&5
16090 echo "${ECHO_T}no" >&6
16091 else
16092   cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h.  */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h.  */
16098 int main(int argc, char **argv)
16099 {
16100         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16101         exit (devpollfd == -1 ? 1 : 0);
16102 }
16103 _ACEOF
16104 rm -f conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106   (eval $ac_link) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111   (eval $ac_try) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; }; then
16115   echo "$as_me:$LINENO: result: yes" >&5
16116 echo "${ECHO_T}yes" >&6
16117
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_DEVPOLL 1
16120 _ACEOF
16121
16122 else
16123   echo "$as_me: program exited with status $ac_status" >&5
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ( exit $ac_status )
16128 echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6
16130 fi
16131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16132 fi
16133 fi
16134
16135 # strerror checks
16136 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16137 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16138 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16139   echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141
16142         cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148
16149 #include <stdio.h>
16150 #include <sys/types.h>
16151 #include <errno.h>
16152 #ifdef _WIN32
16153 #include <stdlib.h>
16154 #endif
16155 int
16156 main ()
16157 {
16158 char *c = (char *) *sys_errlist
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165   (eval $ac_compile) 2>conftest.er1
16166   ac_status=$?
16167   grep -v '^ *+' conftest.er1 >conftest.err
16168   rm -f conftest.er1
16169   cat conftest.err >&5
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } &&
16172          { ac_try='test -z "$ac_c_werror_flag"
16173                          || test ! -s conftest.err'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; } &&
16179          { ac_try='test -s conftest.$ac_objext'
16180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181   (eval $ac_try) 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; }; then
16185   ol_cv_dcl_sys_errlist=yes
16186         ol_cv_have_sys_errlist=yes
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191 ol_cv_dcl_sys_errlist=no
16192 fi
16193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16194 fi
16195 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16196 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16197 #
16198 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16199 if test $ol_cv_dcl_sys_errlist = no ; then
16200
16201 cat >>confdefs.h <<\_ACEOF
16202 #define DECL_SYS_ERRLIST 1
16203 _ACEOF
16204
16205
16206         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16207 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16208 if test "${ol_cv_have_sys_errlist+set}" = set; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211
16212                 cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 #include <errno.h>
16219 int
16220 main ()
16221 {
16222 char *c = (char *) *sys_errlist
16223   ;
16224   return 0;
16225 }
16226 _ACEOF
16227 rm -f conftest.$ac_objext conftest$ac_exeext
16228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16229   (eval $ac_link) 2>conftest.er1
16230   ac_status=$?
16231   grep -v '^ *+' conftest.er1 >conftest.err
16232   rm -f conftest.er1
16233   cat conftest.err >&5
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); } &&
16236          { ac_try='test -z "$ac_c_werror_flag"
16237                          || test ! -s conftest.err'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; } &&
16243          { ac_try='test -s conftest$ac_exeext'
16244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245   (eval $ac_try) 2>&5
16246   ac_status=$?
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); }; }; then
16249   ol_cv_have_sys_errlist=yes
16250 else
16251   echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ol_cv_have_sys_errlist=no
16255 fi
16256 rm -f conftest.err conftest.$ac_objext \
16257       conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16260 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16261 fi
16262 if test $ol_cv_have_sys_errlist = yes ; then
16263
16264 cat >>confdefs.h <<\_ACEOF
16265 #define HAVE_SYS_ERRLIST 1
16266 _ACEOF
16267
16268 fi
16269
16270
16271 for ac_func in strerror strerror_r
16272 do
16273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274 echo "$as_me:$LINENO: checking for $ac_func" >&5
16275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276 if eval "test \"\${$as_ac_var+set}\" = set"; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16287 #define $ac_func innocuous_$ac_func
16288
16289 /* System header to define __stub macros and hopefully few prototypes,
16290     which can conflict with char $ac_func (); below.
16291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16292     <limits.h> exists even on freestanding compilers.  */
16293
16294 #ifdef __STDC__
16295 # include <limits.h>
16296 #else
16297 # include <assert.h>
16298 #endif
16299
16300 #undef $ac_func
16301
16302 /* Override any gcc2 internal prototype to avoid an error.  */
16303 #ifdef __cplusplus
16304 extern "C"
16305 {
16306 #endif
16307 /* We use char because int might match the return type of a gcc2
16308    builtin and then its argument prototype would still apply.  */
16309 char $ac_func ();
16310 /* The GNU C library defines this for functions which it implements
16311     to always fail with ENOSYS.  Some functions are actually named
16312     something starting with __ and the normal name is an alias.  */
16313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16314 choke me
16315 #else
16316 char (*f) () = $ac_func;
16317 #endif
16318 #ifdef __cplusplus
16319 }
16320 #endif
16321
16322 int
16323 main ()
16324 {
16325 return f != $ac_func;
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332   (eval $ac_link) 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -z "$ac_c_werror_flag"
16340                          || test ! -s conftest.err'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; } &&
16346          { ac_try='test -s conftest$ac_exeext'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; }; then
16352   eval "$as_ac_var=yes"
16353 else
16354   echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 eval "$as_ac_var=no"
16358 fi
16359 rm -f conftest.err conftest.$ac_objext \
16360       conftest$ac_exeext conftest.$ac_ext
16361 fi
16362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16364 if test `eval echo '${'$as_ac_var'}'` = yes; then
16365   cat >>confdefs.h <<_ACEOF
16366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16367 _ACEOF
16368
16369 fi
16370 done
16371
16372 ol_cv_func_strerror_r=no
16373 if test "${ac_cv_func_strerror_r}" = yes ; then
16374         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16375 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16376 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379
16380         cat >conftest.$ac_ext <<_ACEOF
16381 /* confdefs.h.  */
16382 _ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h.  */
16386 #include <string.h>
16387 _ACEOF
16388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16389   $EGREP "strerror_r" >/dev/null 2>&1; then
16390   ol_decl_strerror_r=yes
16391 else
16392   ol_decl_strerror_r=no
16393 fi
16394 rm -f conftest*
16395
16396         if test $ol_decl_strerror_r = yes ; then
16397                 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h.  */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h.  */
16403 #include <string.h>
16404 int
16405 main ()
16406 {
16407    /* from autoconf 2.59 */
16408                                 char buf[100];
16409                                 char x = *strerror_r (0, buf, sizeof buf);
16410                                 char *p = strerror_r (0, buf, sizeof buf);
16411
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418   (eval $ac_compile) 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_c_werror_flag"
16426                          || test ! -s conftest.err'
16427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428   (eval $ac_try) 2>&5
16429   ac_status=$?
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); }; } &&
16432          { ac_try='test -s conftest.$ac_objext'
16433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434   (eval $ac_try) 2>&5
16435   ac_status=$?
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); }; }; then
16438   ol_cv_nonposix_strerror_r=yes
16439 else
16440   echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ol_cv_nonposix_strerror_r=no
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446         else
16447                 if test "$cross_compiling" = yes; then
16448   ol_cv_nonposix_strerror=no
16449 else
16450   cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456
16457                         main() {
16458                                 char buf[100];
16459                                 buf[0] = 0;
16460                                 strerror_r( 1, buf, sizeof buf );
16461                                 exit( buf[0] == 0 );
16462                         }
16463
16464 _ACEOF
16465 rm -f conftest$ac_exeext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16467   (eval $ac_link) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; }; then
16476   ol_cv_nonposix_strerror_r=yes
16477 else
16478   echo "$as_me: program exited with status $ac_status" >&5
16479 echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482 ( exit $ac_status )
16483 ol_cv_nonposix_strerror=no
16484 fi
16485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16486 fi
16487         fi
16488
16489 fi
16490 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16491 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16492 if test $ol_cv_nonposix_strerror_r = yes ; then
16493
16494 cat >>confdefs.h <<\_ACEOF
16495 #define HAVE_NONPOSIX_STRERROR_R 1
16496 _ACEOF
16497
16498 fi
16499
16500 elif test "${ac_cv_func_strerror}" = no ; then
16501         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16502 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16503 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16504   echo $ECHO_N "(cached) $ECHO_C" >&6
16505 else
16506
16507         cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h.  */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h.  */
16513
16514 #include <stdio.h>
16515 #include <sys/types.h>
16516 #include <errno.h>
16517 #ifdef _WIN32
16518 #include <stdlib.h>
16519 #endif
16520 int
16521 main ()
16522 {
16523 char *c = (char *) *sys_errlist
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530   (eval $ac_compile) 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -z "$ac_c_werror_flag"
16538                          || test ! -s conftest.err'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544          { ac_try='test -s conftest.$ac_objext'
16545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546   (eval $ac_try) 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   ol_cv_dcl_sys_errlist=yes
16551         ol_cv_have_sys_errlist=yes
16552 else
16553   echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16555
16556 ol_cv_dcl_sys_errlist=no
16557 fi
16558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16559 fi
16560 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16561 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16562 #
16563 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16564 if test $ol_cv_dcl_sys_errlist = no ; then
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define DECL_SYS_ERRLIST 1
16568 _ACEOF
16569
16570
16571         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16572 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16573 if test "${ol_cv_have_sys_errlist+set}" = set; then
16574   echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576
16577                 cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583 #include <errno.h>
16584 int
16585 main ()
16586 {
16587 char *c = (char *) *sys_errlist
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594   (eval $ac_link) 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag"
16602                          || test ! -s conftest.err'
16603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604   (eval $ac_try) 2>&5
16605   ac_status=$?
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }; } &&
16608          { ac_try='test -s conftest$ac_exeext'
16609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610   (eval $ac_try) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); }; }; then
16614   ol_cv_have_sys_errlist=yes
16615 else
16616   echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16618
16619 ol_cv_have_sys_errlist=no
16620 fi
16621 rm -f conftest.err conftest.$ac_objext \
16622       conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16625 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16626 fi
16627 if test $ol_cv_have_sys_errlist = yes ; then
16628
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_SYS_ERRLIST 1
16631 _ACEOF
16632
16633 fi
16634
16635 fi
16636
16637
16638
16639 for ac_header in regex.h
16640 do
16641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642 echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
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 $ac_includes_default
16654 #ifdef HAVE_SYS_TYPES_H
16655 #include <sys/types.h>
16656 #endif
16657
16658
16659 #include <$ac_header>
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663   (eval $ac_compile) 2>conftest.er1
16664   ac_status=$?
16665   grep -v '^ *+' conftest.er1 >conftest.err
16666   rm -f conftest.er1
16667   cat conftest.err >&5
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -z "$ac_c_werror_flag"
16671                          || test ! -s conftest.err'
16672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673   (eval $ac_try) 2>&5
16674   ac_status=$?
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); }; } &&
16677          { ac_try='test -s conftest.$ac_objext'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   eval "$as_ac_Header=yes"
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 eval "$as_ac_Header=no"
16689 fi
16690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16691 fi
16692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16695   cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16697 _ACEOF
16698
16699 fi
16700
16701 done
16702
16703
16704 if test "$ac_cv_header_regex_h" != yes ; then
16705         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16706 echo "$as_me: error: POSIX regex.h required." >&2;}
16707    { (exit 1); exit 1; }; }
16708 fi
16709 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16710 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16711 if test "${ac_cv_search_regfree+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714   ac_func_search_save_LIBS=$LIBS
16715 ac_cv_search_regfree=no
16716 cat >conftest.$ac_ext <<_ACEOF
16717 /* confdefs.h.  */
16718 _ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h.  */
16722
16723 /* Override any gcc2 internal prototype to avoid an error.  */
16724 #ifdef __cplusplus
16725 extern "C"
16726 #endif
16727 /* We use char because int might match the return type of a gcc2
16728    builtin and then its argument prototype would still apply.  */
16729 char regfree ();
16730 int
16731 main ()
16732 {
16733 regfree ();
16734   ;
16735   return 0;
16736 }
16737 _ACEOF
16738 rm -f conftest.$ac_objext conftest$ac_exeext
16739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16740   (eval $ac_link) 2>conftest.er1
16741   ac_status=$?
16742   grep -v '^ *+' conftest.er1 >conftest.err
16743   rm -f conftest.er1
16744   cat conftest.err >&5
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); } &&
16747          { ac_try='test -z "$ac_c_werror_flag"
16748                          || test ! -s conftest.err'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; } &&
16754          { ac_try='test -s conftest$ac_exeext'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; }; then
16760   ac_cv_search_regfree="none required"
16761 else
16762   echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16764
16765 fi
16766 rm -f conftest.err conftest.$ac_objext \
16767       conftest$ac_exeext conftest.$ac_ext
16768 if test "$ac_cv_search_regfree" = no; then
16769   for ac_lib in regex gnuregex; do
16770     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16771     cat >conftest.$ac_ext <<_ACEOF
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777
16778 /* Override any gcc2 internal prototype to avoid an error.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 /* We use char because int might match the return type of a gcc2
16783    builtin and then its argument prototype would still apply.  */
16784 char regfree ();
16785 int
16786 main ()
16787 {
16788 regfree ();
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16795   (eval $ac_link) 2>conftest.er1
16796   ac_status=$?
16797   grep -v '^ *+' conftest.er1 >conftest.err
16798   rm -f conftest.er1
16799   cat conftest.err >&5
16800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801   (exit $ac_status); } &&
16802          { ac_try='test -z "$ac_c_werror_flag"
16803                          || test ! -s conftest.err'
16804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805   (eval $ac_try) 2>&5
16806   ac_status=$?
16807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808   (exit $ac_status); }; } &&
16809          { ac_try='test -s conftest$ac_exeext'
16810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811   (eval $ac_try) 2>&5
16812   ac_status=$?
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); }; }; then
16815   ac_cv_search_regfree="-l$ac_lib"
16816 break
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821 fi
16822 rm -f conftest.err conftest.$ac_objext \
16823       conftest$ac_exeext conftest.$ac_ext
16824   done
16825 fi
16826 LIBS=$ac_func_search_save_LIBS
16827 fi
16828 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16829 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16830 if test "$ac_cv_search_regfree" != no; then
16831   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16832   :
16833 else
16834   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16835 echo "$as_me: error: POSIX regex required." >&2;}
16836    { (exit 1); exit 1; }; }
16837 fi
16838
16839
16840
16841 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16842 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16843 if test "${ol_cv_c_posix_regex+set}" = set; then
16844   echo $ECHO_N "(cached) $ECHO_C" >&6
16845 else
16846
16847         if test "$cross_compiling" = yes; then
16848   ol_cv_c_posix_regex=cross
16849 else
16850   cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856
16857 #include <sys/types.h>
16858 #include <regex.h>
16859 static char *pattern, *string;
16860 main()
16861 {
16862         int rc;
16863         regex_t re;
16864
16865         pattern = "^A";
16866
16867         if(regcomp(&re, pattern, 0)) {
16868                 return -1;
16869         }
16870
16871         string = "ALL MATCH";
16872
16873         rc = regexec(&re, string, 0, (void*)0, 0);
16874
16875         regfree(&re);
16876
16877         return rc;
16878 }
16879 _ACEOF
16880 rm -f conftest$ac_exeext
16881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16882   (eval $ac_link) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887   (eval $ac_try) 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   ol_cv_c_posix_regex=yes
16892 else
16893   echo "$as_me: program exited with status $ac_status" >&5
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ( exit $ac_status )
16898 ol_cv_c_posix_regex=no
16899 fi
16900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 fi
16903 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16904 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16905
16906 if test "$ol_cv_c_posix_regex" = no ; then
16907         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16908 echo "$as_me: error: broken POSIX regex!" >&2;}
16909    { (exit 1); exit 1; }; }
16910 fi
16911
16912
16913 have_uuid=no
16914
16915 for ac_header in sys/uuid.h
16916 do
16917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16919   echo "$as_me:$LINENO: checking for $ac_header" >&5
16920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16922   echo $ECHO_N "(cached) $ECHO_C" >&6
16923 fi
16924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16926 else
16927   # Is the header compilable?
16928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16930 cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h.  */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h.  */
16936 $ac_includes_default
16937 #include <$ac_header>
16938 _ACEOF
16939 rm -f conftest.$ac_objext
16940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16941   (eval $ac_compile) 2>conftest.er1
16942   ac_status=$?
16943   grep -v '^ *+' conftest.er1 >conftest.err
16944   rm -f conftest.er1
16945   cat conftest.err >&5
16946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947   (exit $ac_status); } &&
16948          { ac_try='test -z "$ac_c_werror_flag"
16949                          || test ! -s conftest.err'
16950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951   (eval $ac_try) 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; } &&
16955          { ac_try='test -s conftest.$ac_objext'
16956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957   (eval $ac_try) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; }; then
16961   ac_header_compiler=yes
16962 else
16963   echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 ac_header_compiler=no
16967 fi
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6
16971
16972 # Is the header present?
16973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 #include <$ac_header>
16982 _ACEOF
16983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } >/dev/null; then
16991   if test -s conftest.err; then
16992     ac_cpp_err=$ac_c_preproc_warn_flag
16993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16994   else
16995     ac_cpp_err=
16996   fi
16997 else
16998   ac_cpp_err=yes
16999 fi
17000 if test -z "$ac_cpp_err"; then
17001   ac_header_preproc=yes
17002 else
17003   echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006   ac_header_preproc=no
17007 fi
17008 rm -f conftest.err conftest.$ac_ext
17009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17010 echo "${ECHO_T}$ac_header_preproc" >&6
17011
17012 # So?  What about this header?
17013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17014   yes:no: )
17015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17019     ac_header_preproc=yes
17020     ;;
17021   no:yes:* )
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17034     (
17035       cat <<\_ASBOX
17036 ## --------------------------------------------- ##
17037 ## Report this to <http://www.openldap.org/its/> ##
17038 ## --------------------------------------------- ##
17039 _ASBOX
17040     ) |
17041       sed "s/^/$as_me: WARNING:     /" >&2
17042     ;;
17043 esac
17044 echo "$as_me:$LINENO: checking for $ac_header" >&5
17045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   eval "$as_ac_Header=\$ac_header_preproc"
17050 fi
17051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17053
17054 fi
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17056   cat >>confdefs.h <<_ACEOF
17057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17058 _ACEOF
17059
17060 fi
17061
17062 done
17063
17064 if test $ac_cv_header_sys_uuid_h = yes ; then
17065         save_LIBS="$LIBS"
17066         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17067 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17068 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   ac_func_search_save_LIBS=$LIBS
17072 ac_cv_search_uuid_to_str=no
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079
17080 /* Override any gcc2 internal prototype to avoid an error.  */
17081 #ifdef __cplusplus
17082 extern "C"
17083 #endif
17084 /* We use char because int might match the return type of a gcc2
17085    builtin and then its argument prototype would still apply.  */
17086 char uuid_to_str ();
17087 int
17088 main ()
17089 {
17090 uuid_to_str ();
17091   ;
17092   return 0;
17093 }
17094 _ACEOF
17095 rm -f conftest.$ac_objext conftest$ac_exeext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17097   (eval $ac_link) 2>conftest.er1
17098   ac_status=$?
17099   grep -v '^ *+' conftest.er1 >conftest.err
17100   rm -f conftest.er1
17101   cat conftest.err >&5
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); } &&
17104          { ac_try='test -z "$ac_c_werror_flag"
17105                          || test ! -s conftest.err'
17106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107   (eval $ac_try) 2>&5
17108   ac_status=$?
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); }; } &&
17111          { ac_try='test -s conftest$ac_exeext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_cv_search_uuid_to_str="none required"
17118 else
17119   echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 fi
17123 rm -f conftest.err conftest.$ac_objext \
17124       conftest$ac_exeext conftest.$ac_ext
17125 if test "$ac_cv_search_uuid_to_str" = no; then
17126   for ac_lib in uuid; do
17127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17128     cat >conftest.$ac_ext <<_ACEOF
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134
17135 /* Override any gcc2 internal prototype to avoid an error.  */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 /* We use char because int might match the return type of a gcc2
17140    builtin and then its argument prototype would still apply.  */
17141 char uuid_to_str ();
17142 int
17143 main ()
17144 {
17145 uuid_to_str ();
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext conftest$ac_exeext
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152   (eval $ac_link) 2>conftest.er1
17153   ac_status=$?
17154   grep -v '^ *+' conftest.er1 >conftest.err
17155   rm -f conftest.er1
17156   cat conftest.err >&5
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } &&
17159          { ac_try='test -z "$ac_c_werror_flag"
17160                          || test ! -s conftest.err'
17161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162   (eval $ac_try) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; } &&
17166          { ac_try='test -s conftest$ac_exeext'
17167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168   (eval $ac_try) 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); }; }; then
17172   ac_cv_search_uuid_to_str="-l$ac_lib"
17173 break
17174 else
17175   echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17177
17178 fi
17179 rm -f conftest.err conftest.$ac_objext \
17180       conftest$ac_exeext conftest.$ac_ext
17181   done
17182 fi
17183 LIBS=$ac_func_search_save_LIBS
17184 fi
17185 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17186 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17187 if test "$ac_cv_search_uuid_to_str" != no; then
17188   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17189   have_uuid=yes
17190 else
17191   :
17192 fi
17193
17194         LIBS="$save_LIBS"
17195
17196         if test have_uuid = yes ; then
17197
17198 cat >>confdefs.h <<\_ACEOF
17199 #define HAVE_UUID_TO_STR 1
17200 _ACEOF
17201
17202
17203                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17204                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17205         fi
17206 fi
17207
17208 if test $have_uuid = no ; then
17209
17210 for ac_header in uuid/uuid.h
17211 do
17212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17214   echo "$as_me:$LINENO: checking for $ac_header" >&5
17215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17217   echo $ECHO_N "(cached) $ECHO_C" >&6
17218 fi
17219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17221 else
17222   # Is the header compilable?
17223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231 $ac_includes_default
17232 #include <$ac_header>
17233 _ACEOF
17234 rm -f conftest.$ac_objext
17235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17236   (eval $ac_compile) 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag"
17244                          || test ! -s conftest.err'
17245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246   (eval $ac_try) 2>&5
17247   ac_status=$?
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); }; } &&
17250          { ac_try='test -s conftest.$ac_objext'
17251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252   (eval $ac_try) 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; }; then
17256   ac_header_compiler=yes
17257 else
17258   echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ac_header_compiler=no
17262 fi
17263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17265 echo "${ECHO_T}$ac_header_compiler" >&6
17266
17267 # Is the header present?
17268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h.  */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h.  */
17276 #include <$ac_header>
17277 _ACEOF
17278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } >/dev/null; then
17286   if test -s conftest.err; then
17287     ac_cpp_err=$ac_c_preproc_warn_flag
17288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17289   else
17290     ac_cpp_err=
17291   fi
17292 else
17293   ac_cpp_err=yes
17294 fi
17295 if test -z "$ac_cpp_err"; then
17296   ac_header_preproc=yes
17297 else
17298   echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.$ac_ext >&5
17300
17301   ac_header_preproc=no
17302 fi
17303 rm -f conftest.err conftest.$ac_ext
17304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17305 echo "${ECHO_T}$ac_header_preproc" >&6
17306
17307 # So?  What about this header?
17308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17309   yes:no: )
17310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17314     ac_header_preproc=yes
17315     ;;
17316   no:yes:* )
17317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17329     (
17330       cat <<\_ASBOX
17331 ## --------------------------------------------- ##
17332 ## Report this to <http://www.openldap.org/its/> ##
17333 ## --------------------------------------------- ##
17334 _ASBOX
17335     ) |
17336       sed "s/^/$as_me: WARNING:     /" >&2
17337     ;;
17338 esac
17339 echo "$as_me:$LINENO: checking for $ac_header" >&5
17340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17342   echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344   eval "$as_ac_Header=\$ac_header_preproc"
17345 fi
17346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17348
17349 fi
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351   cat >>confdefs.h <<_ACEOF
17352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17353 _ACEOF
17354
17355 fi
17356
17357 done
17358
17359         if test $ac_cv_header_uuid_uuid_h = yes ; then
17360                 save_LIBS="$LIBS"
17361                 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17362 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17363 if test "${ac_cv_search_uuid_generate+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   ac_func_search_save_LIBS=$LIBS
17367 ac_cv_search_uuid_generate=no
17368 cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374
17375 /* Override any gcc2 internal prototype to avoid an error.  */
17376 #ifdef __cplusplus
17377 extern "C"
17378 #endif
17379 /* We use char because int might match the return type of a gcc2
17380    builtin and then its argument prototype would still apply.  */
17381 char uuid_generate ();
17382 int
17383 main ()
17384 {
17385 uuid_generate ();
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392   (eval $ac_link) 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag"
17400                          || test ! -s conftest.err'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; } &&
17406          { ac_try='test -s conftest$ac_exeext'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412   ac_cv_search_uuid_generate="none required"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 fi
17418 rm -f conftest.err conftest.$ac_objext \
17419       conftest$ac_exeext conftest.$ac_ext
17420 if test "$ac_cv_search_uuid_generate" = no; then
17421   for ac_lib in uuid; do
17422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17423     cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429
17430 /* Override any gcc2 internal prototype to avoid an error.  */
17431 #ifdef __cplusplus
17432 extern "C"
17433 #endif
17434 /* We use char because int might match the return type of a gcc2
17435    builtin and then its argument prototype would still apply.  */
17436 char uuid_generate ();
17437 int
17438 main ()
17439 {
17440 uuid_generate ();
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17447   (eval $ac_link) 2>conftest.er1
17448   ac_status=$?
17449   grep -v '^ *+' conftest.er1 >conftest.err
17450   rm -f conftest.er1
17451   cat conftest.err >&5
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -z "$ac_c_werror_flag"
17455                          || test ! -s conftest.err'
17456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; } &&
17461          { ac_try='test -s conftest$ac_exeext'
17462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463   (eval $ac_try) 2>&5
17464   ac_status=$?
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); }; }; then
17467   ac_cv_search_uuid_generate="-l$ac_lib"
17468 break
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 fi
17474 rm -f conftest.err conftest.$ac_objext \
17475       conftest$ac_exeext conftest.$ac_ext
17476   done
17477 fi
17478 LIBS=$ac_func_search_save_LIBS
17479 fi
17480 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17481 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17482 if test "$ac_cv_search_uuid_generate" != no; then
17483   test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17484   have_uuid=yes
17485 else
17486   :
17487 fi
17488
17489                 LIBS="$save_LIBS"
17490
17491                 if test have_uuid = yes ; then
17492
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_UUID_GENERATE 1
17495 _ACEOF
17496
17497
17498                         test "$ac_cv_search_uuid_generate" = "none required" || \
17499                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17500                 fi
17501         fi
17502 fi
17503
17504 if test $have_uuid = no ; then
17505         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17506 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17507         save_LIBS="$LIBS"
17508         LIBS="$LIBS -lrpcrt4"
17509         cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515
17516                 int __stdcall UuidCreate(void *);
17517                 int __stdcall UuidToStringA(void *,void **);
17518
17519 int
17520 main ()
17521 {
17522
17523                 UuidCreate(0);
17524                 UuidToStringA(0,0);
17525
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext conftest$ac_exeext
17531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17532   (eval $ac_link) 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_c_werror_flag"
17540                          || test ! -s conftest.err'
17541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542   (eval $ac_try) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); }; } &&
17546          { ac_try='test -s conftest$ac_exeext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   need_rpcrt=yes
17553 else
17554   echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 need_rpcrt=no
17558 fi
17559 rm -f conftest.err conftest.$ac_objext \
17560       conftest$ac_exeext conftest.$ac_ext
17561         if test $need_rpcrt = yes; then
17562                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17563         fi
17564         LIBS="$save_LIBS"
17565         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17566 echo "${ECHO_T}$need_rpcrt" >&6
17567 fi
17568
17569 ol_cv_lib_resolver=no
17570 if test $ol_cv_lib_resolver = no ; then
17571         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17572 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17573 if test "${ol_cv_resolver_none+set}" = set; then
17574   echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576
17577         ol_RESOLVER_LIB=
17578         ol_LIBS=$LIBS
17579         LIBS="$ol_RESOLVER_LIB $LIBS"
17580
17581         cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587
17588 #ifdef HAVE_SYS_TYPES_H
17589 #       include <sys/types.h>
17590 #endif
17591 #include <netinet/in.h>
17592 #ifdef HAVE_ARPA_NAMESER_H
17593 #       include <arpa/nameser.h>
17594 #endif
17595 #ifdef HAVE_RESOLV_H
17596 #       include <resolv.h>
17597 #endif
17598
17599 int
17600 main ()
17601 {
17602 {
17603         int len, status;
17604         char *request = NULL;
17605         unsigned char reply[64*1024];
17606         unsigned char host[64*1024];
17607         unsigned char *p;
17608
17609 #ifdef NS_HFIXEDSZ
17610         /* Bind 8/9 interface */
17611         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17612 #else
17613         /* Bind 4 interface */
17614 # ifndef T_SRV
17615 #  define T_SRV 33
17616 # endif
17617         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17618 #endif
17619         p = reply;
17620 #ifdef NS_HFIXEDSZ
17621         /* Bind 8/9 interface */
17622         p += NS_HFIXEDSZ;
17623 #elif defined(HFIXEDSZ)
17624         /* Bind 4 interface w/ HFIXEDSZ */
17625         p += HFIXEDSZ;
17626 #else
17627         /* Bind 4 interface w/o HFIXEDSZ */
17628         p += sizeof(HEADER);
17629 #endif
17630         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17631 }
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638   (eval $ac_link) 2>conftest.er1
17639   ac_status=$?
17640   grep -v '^ *+' conftest.er1 >conftest.err
17641   rm -f conftest.er1
17642   cat conftest.err >&5
17643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644   (exit $ac_status); } &&
17645          { ac_try='test -z "$ac_c_werror_flag"
17646                          || test ! -s conftest.err'
17647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648   (eval $ac_try) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; } &&
17652          { ac_try='test -s conftest$ac_exeext'
17653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654   (eval $ac_try) 2>&5
17655   ac_status=$?
17656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657   (exit $ac_status); }; }; then
17658   ol_cv_resolver_none=yes
17659 else
17660   echo "$as_me: failed program was:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17662
17663 ol_cv_resolver_none=no
17664 fi
17665 rm -f conftest.err conftest.$ac_objext \
17666       conftest$ac_exeext conftest.$ac_ext
17667
17668         LIBS="$ol_LIBS"
17669
17670 fi
17671 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17672 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17673
17674         if test $ol_cv_resolver_none = yes ; then
17675                 ol_cv_lib_resolver=yes
17676         fi
17677 fi
17678
17679 if test $ol_cv_lib_resolver = no ; then
17680         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17681 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17682 if test "${ol_cv_resolver_resolv+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685
17686         ol_RESOLVER_LIB=-lresolv
17687         ol_LIBS=$LIBS
17688         LIBS="$ol_RESOLVER_LIB $LIBS"
17689
17690         cat >conftest.$ac_ext <<_ACEOF
17691 /* confdefs.h.  */
17692 _ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h.  */
17696
17697 #ifdef HAVE_SYS_TYPES_H
17698 #       include <sys/types.h>
17699 #endif
17700 #include <netinet/in.h>
17701 #ifdef HAVE_ARPA_NAMESER_H
17702 #       include <arpa/nameser.h>
17703 #endif
17704 #ifdef HAVE_RESOLV_H
17705 #       include <resolv.h>
17706 #endif
17707
17708 int
17709 main ()
17710 {
17711 {
17712         int len, status;
17713         char *request = NULL;
17714         unsigned char reply[64*1024];
17715         unsigned char host[64*1024];
17716         unsigned char *p;
17717
17718 #ifdef NS_HFIXEDSZ
17719         /* Bind 8/9 interface */
17720         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17721 #else
17722         /* Bind 4 interface */
17723 # ifndef T_SRV
17724 #  define T_SRV 33
17725 # endif
17726         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17727 #endif
17728         p = reply;
17729 #ifdef NS_HFIXEDSZ
17730         /* Bind 8/9 interface */
17731         p += NS_HFIXEDSZ;
17732 #elif defined(HFIXEDSZ)
17733         /* Bind 4 interface w/ HFIXEDSZ */
17734         p += HFIXEDSZ;
17735 #else
17736         /* Bind 4 interface w/o HFIXEDSZ */
17737         p += sizeof(HEADER);
17738 #endif
17739         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17740 }
17741   ;
17742   return 0;
17743 }
17744 _ACEOF
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747   (eval $ac_link) 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } &&
17754          { ac_try='test -z "$ac_c_werror_flag"
17755                          || test ! -s conftest.err'
17756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757   (eval $ac_try) 2>&5
17758   ac_status=$?
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); }; } &&
17761          { ac_try='test -s conftest$ac_exeext'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; }; then
17767   ol_cv_resolver_resolv=yes
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 ol_cv_resolver_resolv=no
17773 fi
17774 rm -f conftest.err conftest.$ac_objext \
17775       conftest$ac_exeext conftest.$ac_ext
17776
17777         LIBS="$ol_LIBS"
17778
17779 fi
17780 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17781 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17782
17783         if test $ol_cv_resolver_resolv = yes ; then
17784                 ol_cv_lib_resolver=-lresolv
17785         fi
17786 fi
17787
17788 if test $ol_cv_lib_resolver = no ; then
17789         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17790 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17791 if test "${ol_cv_resolver_bind+set}" = set; then
17792   echo $ECHO_N "(cached) $ECHO_C" >&6
17793 else
17794
17795         ol_RESOLVER_LIB=-lbind
17796         ol_LIBS=$LIBS
17797         LIBS="$ol_RESOLVER_LIB $LIBS"
17798
17799         cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806 #ifdef HAVE_SYS_TYPES_H
17807 #       include <sys/types.h>
17808 #endif
17809 #include <netinet/in.h>
17810 #ifdef HAVE_ARPA_NAMESER_H
17811 #       include <arpa/nameser.h>
17812 #endif
17813 #ifdef HAVE_RESOLV_H
17814 #       include <resolv.h>
17815 #endif
17816
17817 int
17818 main ()
17819 {
17820 {
17821         int len, status;
17822         char *request = NULL;
17823         unsigned char reply[64*1024];
17824         unsigned char host[64*1024];
17825         unsigned char *p;
17826
17827 #ifdef NS_HFIXEDSZ
17828         /* Bind 8/9 interface */
17829         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17830 #else
17831         /* Bind 4 interface */
17832 # ifndef T_SRV
17833 #  define T_SRV 33
17834 # endif
17835         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17836 #endif
17837         p = reply;
17838 #ifdef NS_HFIXEDSZ
17839         /* Bind 8/9 interface */
17840         p += NS_HFIXEDSZ;
17841 #elif defined(HFIXEDSZ)
17842         /* Bind 4 interface w/ HFIXEDSZ */
17843         p += HFIXEDSZ;
17844 #else
17845         /* Bind 4 interface w/o HFIXEDSZ */
17846         p += sizeof(HEADER);
17847 #endif
17848         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17849 }
17850   ;
17851   return 0;
17852 }
17853 _ACEOF
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856   (eval $ac_link) 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } &&
17863          { ac_try='test -z "$ac_c_werror_flag"
17864                          || test ! -s conftest.err'
17865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866   (eval $ac_try) 2>&5
17867   ac_status=$?
17868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869   (exit $ac_status); }; } &&
17870          { ac_try='test -s conftest$ac_exeext'
17871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872   (eval $ac_try) 2>&5
17873   ac_status=$?
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); }; }; then
17876   ol_cv_resolver_bind=yes
17877 else
17878   echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 ol_cv_resolver_bind=no
17882 fi
17883 rm -f conftest.err conftest.$ac_objext \
17884       conftest$ac_exeext conftest.$ac_ext
17885
17886         LIBS="$ol_LIBS"
17887
17888 fi
17889 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17890 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17891
17892         if test $ol_cv_resolver_bind = yes ; then
17893                 ol_cv_lib_resolver=-lbind
17894         fi
17895 fi
17896
17897
17898
17899 ol_link_dnssrv=no
17900 if test "$ol_cv_lib_resolver" != no ; then
17901
17902 cat >>confdefs.h <<\_ACEOF
17903 #define HAVE_RES_QUERY 1
17904 _ACEOF
17905
17906
17907         if test "$ol_enable_dnssrv" != no ; then
17908                 ol_link_dnssrv=yes
17909         fi
17910
17911         if test "$ol_cv_lib_resolver" != yes ; then
17912                 LIBS="$ol_cv_lib_resolver $LIBS"
17913         fi
17914 fi
17915
17916 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17917         if test "$ol_link_dnssrv" = no ; then
17918                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17919 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17920    { (exit 1); exit 1; }; }
17921         fi
17922 else
17923         ol_enable_dnssrv=no
17924 fi
17925
17926
17927 for ac_func in hstrerror
17928 do
17929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17930 echo "$as_me:$LINENO: checking for $ac_func" >&5
17931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17932 if eval "test \"\${$as_ac_var+set}\" = set"; then
17933   echo $ECHO_N "(cached) $ECHO_C" >&6
17934 else
17935   cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h.  */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h.  */
17941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17943 #define $ac_func innocuous_$ac_func
17944
17945 /* System header to define __stub macros and hopefully few prototypes,
17946     which can conflict with char $ac_func (); below.
17947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17948     <limits.h> exists even on freestanding compilers.  */
17949
17950 #ifdef __STDC__
17951 # include <limits.h>
17952 #else
17953 # include <assert.h>
17954 #endif
17955
17956 #undef $ac_func
17957
17958 /* Override any gcc2 internal prototype to avoid an error.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 {
17962 #endif
17963 /* We use char because int might match the return type of a gcc2
17964    builtin and then its argument prototype would still apply.  */
17965 char $ac_func ();
17966 /* The GNU C library defines this for functions which it implements
17967     to always fail with ENOSYS.  Some functions are actually named
17968     something starting with __ and the normal name is an alias.  */
17969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17970 choke me
17971 #else
17972 char (*f) () = $ac_func;
17973 #endif
17974 #ifdef __cplusplus
17975 }
17976 #endif
17977
17978 int
17979 main ()
17980 {
17981 return f != $ac_func;
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17988   (eval $ac_link) 2>conftest.er1
17989   ac_status=$?
17990   grep -v '^ *+' conftest.er1 >conftest.err
17991   rm -f conftest.er1
17992   cat conftest.err >&5
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); } &&
17995          { ac_try='test -z "$ac_c_werror_flag"
17996                          || test ! -s conftest.err'
17997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998   (eval $ac_try) 2>&5
17999   ac_status=$?
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); }; } &&
18002          { ac_try='test -s conftest$ac_exeext'
18003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004   (eval $ac_try) 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; }; then
18008   eval "$as_ac_var=yes"
18009 else
18010   echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18012
18013 eval "$as_ac_var=no"
18014 fi
18015 rm -f conftest.err conftest.$ac_objext \
18016       conftest$ac_exeext conftest.$ac_ext
18017 fi
18018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18020 if test `eval echo '${'$as_ac_var'}'` = yes; then
18021   cat >>confdefs.h <<_ACEOF
18022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18023 _ACEOF
18024
18025 fi
18026 done
18027
18028
18029
18030
18031
18032
18033 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18034 do
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18049 #define $ac_func innocuous_$ac_func
18050
18051 /* System header to define __stub macros and hopefully few prototypes,
18052     which can conflict with char $ac_func (); below.
18053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054     <limits.h> exists even on freestanding compilers.  */
18055
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18061
18062 #undef $ac_func
18063
18064 /* Override any gcc2 internal prototype to avoid an error.  */
18065 #ifdef __cplusplus
18066 extern "C"
18067 {
18068 #endif
18069 /* We use char because int might match the return type of a gcc2
18070    builtin and then its argument prototype would still apply.  */
18071 char $ac_func ();
18072 /* The GNU C library defines this for functions which it implements
18073     to always fail with ENOSYS.  Some functions are actually named
18074     something starting with __ and the normal name is an alias.  */
18075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18076 choke me
18077 #else
18078 char (*f) () = $ac_func;
18079 #endif
18080 #ifdef __cplusplus
18081 }
18082 #endif
18083
18084 int
18085 main ()
18086 {
18087 return f != $ac_func;
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094   (eval $ac_link) 2>conftest.er1
18095   ac_status=$?
18096   grep -v '^ *+' conftest.er1 >conftest.err
18097   rm -f conftest.er1
18098   cat conftest.err >&5
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } &&
18101          { ac_try='test -z "$ac_c_werror_flag"
18102                          || test ! -s conftest.err'
18103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104   (eval $ac_try) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); }; } &&
18108          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18114   eval "$as_ac_var=yes"
18115 else
18116   echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 eval "$as_ac_var=no"
18120 fi
18121 rm -f conftest.err conftest.$ac_objext \
18122       conftest$ac_exeext conftest.$ac_ext
18123 fi
18124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18126 if test `eval echo '${'$as_ac_var'}'` = yes; then
18127   cat >>confdefs.h <<_ACEOF
18128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18129 _ACEOF
18130
18131 fi
18132 done
18133
18134
18135 ol_link_ipv6=no
18136 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18137         if test $ol_enable_ipv6 = yes ; then
18138                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18139 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18140    { (exit 1); exit 1; }; }
18141         fi
18142 elif test $ol_enable_ipv6 != no ; then
18143         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18144 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18145 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148
18149                 cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155
18156 #                       include <netinet/in.h>
18157 #                       ifdef INET6_ADDRSTRLEN
18158                                 __has_inet6_addrstrlen__;
18159 #                       endif
18160
18161 _ACEOF
18162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18163   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18164   ol_cv_inet6_addrstrlen=yes
18165 else
18166   ol_cv_inet6_addrstrlen=no
18167 fi
18168 rm -f conftest*
18169
18170 fi
18171 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18172 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18173
18174
18175         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18176 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18177 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180
18181                 cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h.  */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h.  */
18187
18188 #include <sys/types.h>
18189 #include <sys/socket.h>
18190
18191 int
18192 main ()
18193 {
18194
18195                         struct sockaddr_storage ss;
18196
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest.$ac_objext
18202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18203   (eval $ac_compile) 2>conftest.er1
18204   ac_status=$?
18205   grep -v '^ *+' conftest.er1 >conftest.err
18206   rm -f conftest.er1
18207   cat conftest.err >&5
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); } &&
18210          { ac_try='test -z "$ac_c_werror_flag"
18211                          || test ! -s conftest.err'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ol_cv_struct_sockaddr_storage=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ol_cv_struct_sockaddr_storage=no
18229 fi
18230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18231 fi
18232 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18233 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18234
18235         if test $ol_cv_inet6_addrstrlen = yes &&
18236            test $ol_cv_struct_sockaddr_storage = yes ; then
18237                 ol_link_ipv6=yes
18238         elif test $ol_enable_ipv6 = yes &&
18239              test $ol_cv_inet6_addrstrlen = no ; then
18240                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18241 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18242    { (exit 1); exit 1; }; }
18243         elif test $ol_enable_ipv6 = yes &&
18244              test $ol_cv_struct_sockaddr_storage = no ; then
18245                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18246 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18247    { (exit 1); exit 1; }; }
18248         fi
18249 fi
18250
18251 if test $ol_enable_local != no ; then
18252
18253 for ac_header in sys/un.h
18254 do
18255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18257   echo "$as_me:$LINENO: checking for $ac_header" >&5
18258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18260   echo $ECHO_N "(cached) $ECHO_C" >&6
18261 fi
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18264 else
18265   # Is the header compilable?
18266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18268 cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274 $ac_includes_default
18275 #include <$ac_header>
18276 _ACEOF
18277 rm -f conftest.$ac_objext
18278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18279   (eval $ac_compile) 2>conftest.er1
18280   ac_status=$?
18281   grep -v '^ *+' conftest.er1 >conftest.err
18282   rm -f conftest.er1
18283   cat conftest.err >&5
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); } &&
18286          { ac_try='test -z "$ac_c_werror_flag"
18287                          || test ! -s conftest.err'
18288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289   (eval $ac_try) 2>&5
18290   ac_status=$?
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); }; } &&
18293          { ac_try='test -s conftest.$ac_objext'
18294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295   (eval $ac_try) 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299   ac_header_compiler=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_header_compiler=no
18305 fi
18306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18308 echo "${ECHO_T}$ac_header_compiler" >&6
18309
18310 # Is the header present?
18311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18313 cat >conftest.$ac_ext <<_ACEOF
18314 /* confdefs.h.  */
18315 _ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h.  */
18319 #include <$ac_header>
18320 _ACEOF
18321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18323   ac_status=$?
18324   grep -v '^ *+' conftest.er1 >conftest.err
18325   rm -f conftest.er1
18326   cat conftest.err >&5
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); } >/dev/null; then
18329   if test -s conftest.err; then
18330     ac_cpp_err=$ac_c_preproc_warn_flag
18331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18332   else
18333     ac_cpp_err=
18334   fi
18335 else
18336   ac_cpp_err=yes
18337 fi
18338 if test -z "$ac_cpp_err"; then
18339   ac_header_preproc=yes
18340 else
18341   echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344   ac_header_preproc=no
18345 fi
18346 rm -f conftest.err conftest.$ac_ext
18347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6
18349
18350 # So?  What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352   yes:no: )
18353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18357     ac_header_preproc=yes
18358     ;;
18359   no:yes:* )
18360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18372     (
18373       cat <<\_ASBOX
18374 ## --------------------------------------------- ##
18375 ## Report this to <http://www.openldap.org/its/> ##
18376 ## --------------------------------------------- ##
18377 _ASBOX
18378     ) |
18379       sed "s/^/$as_me: WARNING:     /" >&2
18380     ;;
18381 esac
18382 echo "$as_me:$LINENO: checking for $ac_header" >&5
18383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18385   echo $ECHO_N "(cached) $ECHO_C" >&6
18386 else
18387   eval "$as_ac_Header=\$ac_header_preproc"
18388 fi
18389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18391
18392 fi
18393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18394   cat >>confdefs.h <<_ACEOF
18395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18396 _ACEOF
18397
18398 fi
18399
18400 done
18401
18402
18403         if test $ol_enable_local = auto ; then
18404                 ol_enable_local=$ac_cv_header_sys_un_h
18405         elif test $ac_cv_header_sys_un_h = no ; then
18406                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18407 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18408    { (exit 1); exit 1; }; }
18409         fi
18410 fi
18411
18412
18413 if test $ol_with_tls = yes ; then
18414         ol_with_tls=auto
18415 fi
18416
18417 ol_link_tls=no
18418 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18419
18420 for ac_header in openssl/ssl.h
18421 do
18422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18424   echo "$as_me:$LINENO: checking for $ac_header" >&5
18425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18427   echo $ECHO_N "(cached) $ECHO_C" >&6
18428 fi
18429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18431 else
18432   # Is the header compilable?
18433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 $ac_includes_default
18442 #include <$ac_header>
18443 _ACEOF
18444 rm -f conftest.$ac_objext
18445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18446   (eval $ac_compile) 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_c_werror_flag"
18454                          || test ! -s conftest.err'
18455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456   (eval $ac_try) 2>&5
18457   ac_status=$?
18458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459   (exit $ac_status); }; } &&
18460          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18466   ac_header_compiler=yes
18467 else
18468   echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471 ac_header_compiler=no
18472 fi
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18475 echo "${ECHO_T}$ac_header_compiler" >&6
18476
18477 # Is the header present?
18478 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h.  */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h.  */
18486 #include <$ac_header>
18487 _ACEOF
18488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } >/dev/null; then
18496   if test -s conftest.err; then
18497     ac_cpp_err=$ac_c_preproc_warn_flag
18498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18499   else
18500     ac_cpp_err=
18501   fi
18502 else
18503   ac_cpp_err=yes
18504 fi
18505 if test -z "$ac_cpp_err"; then
18506   ac_header_preproc=yes
18507 else
18508   echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511   ac_header_preproc=no
18512 fi
18513 rm -f conftest.err conftest.$ac_ext
18514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18515 echo "${ECHO_T}$ac_header_preproc" >&6
18516
18517 # So?  What about this header?
18518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18519   yes:no: )
18520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18524     ac_header_preproc=yes
18525     ;;
18526   no:yes:* )
18527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18539     (
18540       cat <<\_ASBOX
18541 ## --------------------------------------------- ##
18542 ## Report this to <http://www.openldap.org/its/> ##
18543 ## --------------------------------------------- ##
18544 _ASBOX
18545     ) |
18546       sed "s/^/$as_me: WARNING:     /" >&2
18547     ;;
18548 esac
18549 echo "$as_me:$LINENO: checking for $ac_header" >&5
18550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   eval "$as_ac_Header=\$ac_header_preproc"
18555 fi
18556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18557 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18558
18559 fi
18560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18561   cat >>confdefs.h <<_ACEOF
18562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18563 _ACEOF
18564
18565 fi
18566
18567 done
18568
18569
18570         if test $ac_cv_header_openssl_ssl_h = yes ; then
18571                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18572 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18573 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576   ac_check_lib_save_LIBS=$LIBS
18577 LIBS="-lssl -lcrypto $LIBS"
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h.  */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h.  */
18584
18585 /* Override any gcc2 internal prototype to avoid an error.  */
18586 #ifdef __cplusplus
18587 extern "C"
18588 #endif
18589 /* We use char because int might match the return type of a gcc2
18590    builtin and then its argument prototype would still apply.  */
18591 char SSL_library_init ();
18592 int
18593 main ()
18594 {
18595 SSL_library_init ();
18596   ;
18597   return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18602   (eval $ac_link) 2>conftest.er1
18603   ac_status=$?
18604   grep -v '^ *+' conftest.er1 >conftest.err
18605   rm -f conftest.er1
18606   cat conftest.err >&5
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } &&
18609          { ac_try='test -z "$ac_c_werror_flag"
18610                          || test ! -s conftest.err'
18611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612   (eval $ac_try) 2>&5
18613   ac_status=$?
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); }; } &&
18616          { ac_try='test -s conftest$ac_exeext'
18617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618   (eval $ac_try) 2>&5
18619   ac_status=$?
18620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); }; }; then
18622   ac_cv_lib_ssl_SSL_library_init=yes
18623 else
18624   echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18626
18627 ac_cv_lib_ssl_SSL_library_init=no
18628 fi
18629 rm -f conftest.err conftest.$ac_objext \
18630       conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18632 fi
18633 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18634 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18635 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18636   have_openssl=yes
18637                         need_rsaref=no
18638 else
18639   have_openssl=no
18640 fi
18641
18642
18643                 if test $have_openssl = no ; then
18644                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18645 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18646 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18647   echo $ECHO_N "(cached) $ECHO_C" >&6
18648 else
18649   ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 /* Override any gcc2 internal prototype to avoid an error.  */
18659 #ifdef __cplusplus
18660 extern "C"
18661 #endif
18662 /* We use char because int might match the return type of a gcc2
18663    builtin and then its argument prototype would still apply.  */
18664 char ssl3_accept ();
18665 int
18666 main ()
18667 {
18668 ssl3_accept ();
18669   ;
18670   return 0;
18671 }
18672 _ACEOF
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18675   (eval $ac_link) 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_c_werror_flag"
18683                          || test ! -s conftest.err'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; } &&
18689          { ac_try='test -s conftest$ac_exeext'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   ac_cv_lib_ssl_ssl3_accept=yes
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 ac_cv_lib_ssl_ssl3_accept=no
18701 fi
18702 rm -f conftest.err conftest.$ac_objext \
18703       conftest$ac_exeext conftest.$ac_ext
18704 LIBS=$ac_check_lib_save_LIBS
18705 fi
18706 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18707 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18708 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18709   have_openssl=yes
18710                                 need_rsaref=yes
18711 else
18712   have_openssl=no
18713 fi
18714
18715                 fi
18716
18717                 if test $have_openssl = yes ; then
18718                         ol_with_tls=openssl
18719                         ol_link_tls=yes
18720
18721
18722 cat >>confdefs.h <<\_ACEOF
18723 #define HAVE_OPENSSL 1
18724 _ACEOF
18725
18726
18727                         if test $need_rsaref = yes; then
18728
18729 cat >>confdefs.h <<\_ACEOF
18730 #define HAVE_RSAREF 1
18731 _ACEOF
18732
18733
18734                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18735                         else
18736                                 TLS_LIBS="-lssl -lcrypto"
18737                         fi
18738
18739                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18740 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18741 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744
18745                 cat >conftest.$ac_ext <<_ACEOF
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751
18752 #ifdef HAVE_OPENSSL_SSL_H
18753 #include <openssl/ssl.h>
18754 #endif
18755
18756 /* Require 0.9.7d+ */
18757 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18758         char *__ssl_compat = "0.9.7d";
18759 #endif
18760
18761 _ACEOF
18762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18763   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18764   ol_cv_ssl_crl_compat=yes
18765 else
18766   ol_cv_ssl_crl_compat=no
18767 fi
18768 rm -f conftest*
18769
18770 fi
18771 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18772 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18773
18774                         if test $ol_cv_ssl_crl_compat = yes ; then
18775
18776 cat >>confdefs.h <<\_ACEOF
18777 #define HAVE_OPENSSL_CRL 1
18778 _ACEOF
18779
18780                         fi
18781                 fi
18782         fi
18783 fi
18784
18785 if test $ol_link_tls = no ; then
18786         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
18787
18788 for ac_header in gnutls/gnutls.h
18789 do
18790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18792   echo "$as_me:$LINENO: checking for $ac_header" >&5
18793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18795   echo $ECHO_N "(cached) $ECHO_C" >&6
18796 fi
18797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18799 else
18800   # Is the header compilable?
18801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18804 /* confdefs.h.  */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h.  */
18809 $ac_includes_default
18810 #include <$ac_header>
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814   (eval $ac_compile) 2>conftest.er1
18815   ac_status=$?
18816   grep -v '^ *+' conftest.er1 >conftest.err
18817   rm -f conftest.er1
18818   cat conftest.err >&5
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); } &&
18821          { ac_try='test -z "$ac_c_werror_flag"
18822                          || test ! -s conftest.err'
18823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824   (eval $ac_try) 2>&5
18825   ac_status=$?
18826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827   (exit $ac_status); }; } &&
18828          { ac_try='test -s conftest.$ac_objext'
18829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830   (eval $ac_try) 2>&5
18831   ac_status=$?
18832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833   (exit $ac_status); }; }; then
18834   ac_header_compiler=yes
18835 else
18836   echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18838
18839 ac_header_compiler=no
18840 fi
18841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18843 echo "${ECHO_T}$ac_header_compiler" >&6
18844
18845 # Is the header present?
18846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18848 cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h.  */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h.  */
18854 #include <$ac_header>
18855 _ACEOF
18856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18857   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18858   ac_status=$?
18859   grep -v '^ *+' conftest.er1 >conftest.err
18860   rm -f conftest.er1
18861   cat conftest.err >&5
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); } >/dev/null; then
18864   if test -s conftest.err; then
18865     ac_cpp_err=$ac_c_preproc_warn_flag
18866     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18867   else
18868     ac_cpp_err=
18869   fi
18870 else
18871   ac_cpp_err=yes
18872 fi
18873 if test -z "$ac_cpp_err"; then
18874   ac_header_preproc=yes
18875 else
18876   echo "$as_me: failed program was:" >&5
18877 sed 's/^/| /' conftest.$ac_ext >&5
18878
18879   ac_header_preproc=no
18880 fi
18881 rm -f conftest.err conftest.$ac_ext
18882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18883 echo "${ECHO_T}$ac_header_preproc" >&6
18884
18885 # So?  What about this header?
18886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18887   yes:no: )
18888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18892     ac_header_preproc=yes
18893     ;;
18894   no:yes:* )
18895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18897     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18898 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18899     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18901     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18902 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18905     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18907     (
18908       cat <<\_ASBOX
18909 ## --------------------------------------------- ##
18910 ## Report this to <http://www.openldap.org/its/> ##
18911 ## --------------------------------------------- ##
18912 _ASBOX
18913     ) |
18914       sed "s/^/$as_me: WARNING:     /" >&2
18915     ;;
18916 esac
18917 echo "$as_me:$LINENO: checking for $ac_header" >&5
18918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18920   echo $ECHO_N "(cached) $ECHO_C" >&6
18921 else
18922   eval "$as_ac_Header=\$ac_header_preproc"
18923 fi
18924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18926
18927 fi
18928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18929   cat >>confdefs.h <<_ACEOF
18930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18931 _ACEOF
18932
18933 fi
18934
18935 done
18936
18937
18938                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
18939                         echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
18940 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
18941 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
18942   echo $ECHO_N "(cached) $ECHO_C" >&6
18943 else
18944   ac_check_lib_save_LIBS=$LIBS
18945 LIBS="-lgnutls  $LIBS"
18946 cat >conftest.$ac_ext <<_ACEOF
18947 /* confdefs.h.  */
18948 _ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h.  */
18952
18953 /* Override any gcc2 internal prototype to avoid an error.  */
18954 #ifdef __cplusplus
18955 extern "C"
18956 #endif
18957 /* We use char because int might match the return type of a gcc2
18958    builtin and then its argument prototype would still apply.  */
18959 char gnutls_init ();
18960 int
18961 main ()
18962 {
18963 gnutls_init ();
18964   ;
18965   return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970   (eval $ac_link) 2>conftest.er1
18971   ac_status=$?
18972   grep -v '^ *+' conftest.er1 >conftest.err
18973   rm -f conftest.er1
18974   cat conftest.err >&5
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } &&
18977          { ac_try='test -z "$ac_c_werror_flag"
18978                          || test ! -s conftest.err'
18979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980   (eval $ac_try) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986   (eval $ac_try) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; }; then
18990   ac_cv_lib_gnutls_gnutls_init=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_lib_gnutls_gnutls_init=no
18996 fi
18997 rm -f conftest.err conftest.$ac_objext \
18998       conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19000 fi
19001 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19002 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
19003 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19004   have_gnutls=yes
19005 else
19006   have_gnutls=no
19007 fi
19008
19009
19010                         if test $have_gnutls = yes ; then
19011                                 ol_with_tls=gnutls
19012                                 ol_link_tls=yes
19013
19014                                 TLS_LIBS="-lgnutls"
19015
19016
19017 cat >>confdefs.h <<\_ACEOF
19018 #define HAVE_GNUTLS 1
19019 _ACEOF
19020
19021                         fi
19022                 fi
19023         fi
19024 fi
19025
19026 WITH_TLS=no
19027 if test $ol_link_tls = yes ; then
19028
19029 cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_TLS 1
19031 _ACEOF
19032
19033         WITH_TLS=yes
19034 elif test $ol_with_tls = auto ; then
19035         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19036 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19037         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19038 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19039 elif test $ol_with_tls != no ; then
19040         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19041 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19042    { (exit 1); exit 1; }; }
19043 else
19044         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19045 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19046 fi
19047
19048 if test $ol_enable_lmpasswd != no; then
19049         if test $ol_link_tls != yes ; then
19050                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19051 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19052    { (exit 1); exit 1; }; }
19053         fi
19054
19055
19056 cat >>confdefs.h <<\_ACEOF
19057 #define SLAPD_LMHASH 1
19058 _ACEOF
19059
19060 fi
19061
19062 ol_link_threads=no
19063
19064 case $ol_with_threads in auto | yes | nt)
19065
19066
19067         echo "$as_me:$LINENO: checking for _beginthread" >&5
19068 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19069 if test "${ac_cv_func__beginthread+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19080 #define _beginthread innocuous__beginthread
19081
19082 /* System header to define __stub macros and hopefully few prototypes,
19083     which can conflict with char _beginthread (); below.
19084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19085     <limits.h> exists even on freestanding compilers.  */
19086
19087 #ifdef __STDC__
19088 # include <limits.h>
19089 #else
19090 # include <assert.h>
19091 #endif
19092
19093 #undef _beginthread
19094
19095 /* Override any gcc2 internal prototype to avoid an error.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 {
19099 #endif
19100 /* We use char because int might match the return type of a gcc2
19101    builtin and then its argument prototype would still apply.  */
19102 char _beginthread ();
19103 /* The GNU C library defines this for functions which it implements
19104     to always fail with ENOSYS.  Some functions are actually named
19105     something starting with __ and the normal name is an alias.  */
19106 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19107 choke me
19108 #else
19109 char (*f) () = _beginthread;
19110 #endif
19111 #ifdef __cplusplus
19112 }
19113 #endif
19114
19115 int
19116 main ()
19117 {
19118 return f != _beginthread;
19119   ;
19120   return 0;
19121 }
19122 _ACEOF
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19125   (eval $ac_link) 2>conftest.er1
19126   ac_status=$?
19127   grep -v '^ *+' conftest.er1 >conftest.err
19128   rm -f conftest.er1
19129   cat conftest.err >&5
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } &&
19132          { ac_try='test -z "$ac_c_werror_flag"
19133                          || test ! -s conftest.err'
19134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135   (eval $ac_try) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; } &&
19139          { ac_try='test -s conftest$ac_exeext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   ac_cv_func__beginthread=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150 ac_cv_func__beginthread=no
19151 fi
19152 rm -f conftest.err conftest.$ac_objext \
19153       conftest$ac_exeext conftest.$ac_ext
19154 fi
19155 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19156 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19157
19158
19159         if test $ac_cv_func__beginthread = yes ; then
19160
19161 cat >>confdefs.h <<\_ACEOF
19162 #define HAVE_NT_THREADS 1
19163 _ACEOF
19164
19165                 ol_cv_nt_threads=yes
19166         fi
19167
19168
19169         if test "$ol_cv_nt_threads" = yes ; then
19170                 ol_link_threads=nt
19171                 ol_with_threads=found
19172                 ol_with_yielding_select=yes
19173
19174
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE_NT_SERVICE_MANAGER 1
19177 _ACEOF
19178
19179
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE_NT_EVENT_LOG 1
19182 _ACEOF
19183
19184         fi
19185
19186         if test $ol_with_threads = nt ; then
19187                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19188 echo "$as_me: error: could not locate NT Threads" >&2;}
19189    { (exit 1); exit 1; }; }
19190         fi
19191         ;;
19192 esac
19193
19194 case $ol_with_threads in auto | yes | posix)
19195
19196
19197 for ac_header in pthread.h
19198 do
19199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19201   echo "$as_me:$LINENO: checking for $ac_header" >&5
19202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19204   echo $ECHO_N "(cached) $ECHO_C" >&6
19205 fi
19206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19208 else
19209   # Is the header compilable?
19210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
19213 /* confdefs.h.  */
19214 _ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h.  */
19218 $ac_includes_default
19219 #include <$ac_header>
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223   (eval $ac_compile) 2>conftest.er1
19224   ac_status=$?
19225   grep -v '^ *+' conftest.er1 >conftest.err
19226   rm -f conftest.er1
19227   cat conftest.err >&5
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); } &&
19230          { ac_try='test -z "$ac_c_werror_flag"
19231                          || test ! -s conftest.err'
19232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233   (eval $ac_try) 2>&5
19234   ac_status=$?
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); }; } &&
19237          { ac_try='test -s conftest.$ac_objext'
19238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239   (eval $ac_try) 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; }; then
19243   ac_header_compiler=yes
19244 else
19245   echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 ac_header_compiler=no
19249 fi
19250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 echo "${ECHO_T}$ac_header_compiler" >&6
19253
19254 # Is the header present?
19255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <$ac_header>
19264 _ACEOF
19265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19267   ac_status=$?
19268   grep -v '^ *+' conftest.er1 >conftest.err
19269   rm -f conftest.er1
19270   cat conftest.err >&5
19271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272   (exit $ac_status); } >/dev/null; then
19273   if test -s conftest.err; then
19274     ac_cpp_err=$ac_c_preproc_warn_flag
19275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19276   else
19277     ac_cpp_err=
19278   fi
19279 else
19280   ac_cpp_err=yes
19281 fi
19282 if test -z "$ac_cpp_err"; then
19283   ac_header_preproc=yes
19284 else
19285   echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288   ac_header_preproc=no
19289 fi
19290 rm -f conftest.err conftest.$ac_ext
19291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19292 echo "${ECHO_T}$ac_header_preproc" >&6
19293
19294 # So?  What about this header?
19295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19296   yes:no: )
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19301     ac_header_preproc=yes
19302     ;;
19303   no:yes:* )
19304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19306     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19307 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19308     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19310     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19311 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19314     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19316     (
19317       cat <<\_ASBOX
19318 ## --------------------------------------------- ##
19319 ## Report this to <http://www.openldap.org/its/> ##
19320 ## --------------------------------------------- ##
19321 _ASBOX
19322     ) |
19323       sed "s/^/$as_me: WARNING:     /" >&2
19324     ;;
19325 esac
19326 echo "$as_me:$LINENO: checking for $ac_header" >&5
19327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19329   echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331   eval "$as_ac_Header=\$ac_header_preproc"
19332 fi
19333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19335
19336 fi
19337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19338   cat >>confdefs.h <<_ACEOF
19339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19340 _ACEOF
19341
19342 fi
19343
19344 done
19345
19346
19347         if test $ac_cv_header_pthread_h = yes ; then
19348                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19349 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19350 if test "${ol_cv_pthread_version+set}" = set; then
19351   echo $ECHO_N "(cached) $ECHO_C" >&6
19352 else
19353
19354         cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360
19361 #               include <pthread.h>
19362
19363 int
19364 main ()
19365 {
19366
19367                 int i = PTHREAD_CREATE_JOINABLE;
19368
19369   ;
19370   return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19375   (eval $ac_compile) 2>conftest.er1
19376   ac_status=$?
19377   grep -v '^ *+' conftest.er1 >conftest.err
19378   rm -f conftest.er1
19379   cat conftest.err >&5
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); } &&
19382          { ac_try='test -z "$ac_c_werror_flag"
19383                          || test ! -s conftest.err'
19384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385   (eval $ac_try) 2>&5
19386   ac_status=$?
19387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388   (exit $ac_status); }; } &&
19389          { ac_try='test -s conftest.$ac_objext'
19390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391   (eval $ac_try) 2>&5
19392   ac_status=$?
19393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394   (exit $ac_status); }; }; then
19395
19396         cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402 #include <pthread.h>
19403
19404 _ACEOF
19405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19406   $EGREP "pthread_detach" >/dev/null 2>&1; then
19407   ol_cv_pthread_version=10
19408 else
19409   ol_cv_pthread_version=8
19410 fi
19411 rm -f conftest*
19412
19413 else
19414   echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417
19418         cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h.  */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h.  */
19424
19425 #               include <pthread.h>
19426 #               ifdef PTHREAD_CREATE_UNDETACHED
19427                 draft7
19428 #               endif
19429
19430 _ACEOF
19431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19432   $EGREP "draft7" >/dev/null 2>&1; then
19433   ol_cv_pthread_version=7
19434 else
19435
19436         cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <pthread.h>
19443
19444 _ACEOF
19445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19446   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19447   ol_cv_pthread_version=6
19448 else
19449
19450         cat >conftest.$ac_ext <<_ACEOF
19451 /* confdefs.h.  */
19452 _ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h.  */
19456
19457 #               include <pthread.h>
19458 #ifdef          PTHREAD_MUTEX_INITIALIZER
19459                 draft5
19460 #endif
19461
19462 _ACEOF
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464   $EGREP "draft5" >/dev/null 2>&1; then
19465   ol_cv_pthread_version=5
19466 else
19467   ol_cv_pthread_version=4
19468 fi
19469 rm -f conftest*
19470
19471 fi
19472 rm -f conftest*
19473
19474 fi
19475 rm -f conftest*
19476
19477 fi
19478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19479
19480 fi
19481 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19482 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19483
19484
19485                 if test $ol_cv_pthread_version != 0 ; then
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_PTHREADS $ol_cv_pthread_version
19489 _ACEOF
19490
19491                 else
19492                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
19493 echo "$as_me: error: unknown pthread version" >&2;}
19494    { (exit 1); exit 1; }; }
19495                 fi
19496
19497                 # consider threads found
19498                 ol_with_threads=found
19499
19500
19501         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19502 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19503 if test "${ol_cv_header_linux_threads+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512 #include <pthread.h>
19513 _ACEOF
19514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19515   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19516   ol_cv_header_linux_threads=yes
19517 else
19518   ol_cv_header_linux_threads=no
19519 fi
19520 rm -f conftest*
19521
19522
19523 fi
19524 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19525 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19526         if test $ol_cv_header_linux_threads = yes; then
19527
19528 cat >>confdefs.h <<\_ACEOF
19529 #define HAVE_LINUX_THREADS 1
19530 _ACEOF
19531
19532         fi
19533
19534
19535         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19536 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19537 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19538   echo $ECHO_N "(cached) $ECHO_C" >&6
19539 else
19540   cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 #include <pthread.h>
19547 #ifdef _POSIX_THREAD_IS_GNU_PTH
19548         __gnu_pth__;
19549 #endif
19550
19551 _ACEOF
19552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19553   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19554   ol_cv_header_gnu_pth_pthread_h=yes
19555 else
19556   ol_cv_header_gnu_pth_pthread_h=no
19557 fi
19558 rm -f conftest*
19559
19560
19561 fi
19562 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19563 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19564
19565
19566                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19567
19568 for ac_header in sched.h
19569 do
19570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19572   echo "$as_me:$LINENO: checking for $ac_header" >&5
19573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19575   echo $ECHO_N "(cached) $ECHO_C" >&6
19576 fi
19577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19579 else
19580   # Is the header compilable?
19581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589 $ac_includes_default
19590 #include <$ac_header>
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594   (eval $ac_compile) 2>conftest.er1
19595   ac_status=$?
19596   grep -v '^ *+' conftest.er1 >conftest.err
19597   rm -f conftest.er1
19598   cat conftest.err >&5
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } &&
19601          { ac_try='test -z "$ac_c_werror_flag"
19602                          || test ! -s conftest.err'
19603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604   (eval $ac_try) 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; } &&
19608          { ac_try='test -s conftest.$ac_objext'
19609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610   (eval $ac_try) 2>&5
19611   ac_status=$?
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); }; }; then
19614   ac_header_compiler=yes
19615 else
19616   echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 ac_header_compiler=no
19620 fi
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19623 echo "${ECHO_T}$ac_header_compiler" >&6
19624
19625 # Is the header present?
19626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 #include <$ac_header>
19635 _ACEOF
19636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } >/dev/null; then
19644   if test -s conftest.err; then
19645     ac_cpp_err=$ac_c_preproc_warn_flag
19646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19647   else
19648     ac_cpp_err=
19649   fi
19650 else
19651   ac_cpp_err=yes
19652 fi
19653 if test -z "$ac_cpp_err"; then
19654   ac_header_preproc=yes
19655 else
19656   echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19658
19659   ac_header_preproc=no
19660 fi
19661 rm -f conftest.err conftest.$ac_ext
19662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19663 echo "${ECHO_T}$ac_header_preproc" >&6
19664
19665 # So?  What about this header?
19666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19667   yes:no: )
19668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19672     ac_header_preproc=yes
19673     ;;
19674   no:yes:* )
19675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19687     (
19688       cat <<\_ASBOX
19689 ## --------------------------------------------- ##
19690 ## Report this to <http://www.openldap.org/its/> ##
19691 ## --------------------------------------------- ##
19692 _ASBOX
19693     ) |
19694       sed "s/^/$as_me: WARNING:     /" >&2
19695     ;;
19696 esac
19697 echo "$as_me:$LINENO: checking for $ac_header" >&5
19698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   eval "$as_ac_Header=\$ac_header_preproc"
19703 fi
19704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19706
19707 fi
19708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19709   cat >>confdefs.h <<_ACEOF
19710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19711 _ACEOF
19712
19713 fi
19714
19715 done
19716
19717                 fi
19718
19719
19720                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19721 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19722 if test "${ol_cv_pthread_create+set}" = set; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725
19726                         if test "$cross_compiling" = yes; then
19727   cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h.  */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h.  */
19733
19734 /* pthread test headers */
19735 #include <pthread.h>
19736 #if HAVE_PTHREADS < 7
19737 #include <errno.h>
19738 #endif
19739 #ifndef NULL
19740 #define NULL (void*)0
19741 #endif
19742
19743 static void *task(p)
19744         void *p;
19745 {
19746         return (void *) (p == NULL);
19747 }
19748
19749 int
19750 main ()
19751 {
19752
19753         /* pthread test function */
19754 #ifndef PTHREAD_CREATE_DETACHED
19755 #define PTHREAD_CREATE_DETACHED 1
19756 #endif
19757         pthread_t t;
19758         int status;
19759         int detach = PTHREAD_CREATE_DETACHED;
19760
19761 #if HAVE_PTHREADS > 4
19762         /* Final pthreads */
19763         pthread_attr_t attr;
19764
19765         status = pthread_attr_init(&attr);
19766         if( status ) return status;
19767
19768 #if HAVE_PTHREADS < 7
19769         status = pthread_attr_setdetachstate(&attr, &detach);
19770         if( status < 0 ) status = errno;
19771 #else
19772         status = pthread_attr_setdetachstate(&attr, detach);
19773 #endif
19774         if( status ) return status;
19775         status = pthread_create( &t, &attr, task, NULL );
19776 #if HAVE_PTHREADS < 7
19777         if( status < 0 ) status = errno;
19778 #endif
19779         if( status ) return status;
19780 #else
19781         /* Draft 4 pthreads */
19782         status = pthread_create( &t, pthread_attr_default, task, NULL );
19783         if( status ) return errno;
19784
19785         /* give thread a chance to complete */
19786         /* it should remain joinable and hence detachable */
19787         sleep( 1 );
19788
19789         status = pthread_detach( &t );
19790         if( status ) return errno;
19791 #endif
19792
19793 #ifdef HAVE_LINUX_THREADS
19794         pthread_kill_other_threads_np();
19795 #endif
19796
19797         return 0;
19798
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805   (eval $ac_link) 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } &&
19812          { ac_try='test -z "$ac_c_werror_flag"
19813                          || test ! -s conftest.err'
19814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815   (eval $ac_try) 2>&5
19816   ac_status=$?
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); }; } &&
19819          { ac_try='test -s conftest$ac_exeext'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; }; then
19825   ol_cv_pthread_create=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830 ol_cv_pthread_create=no
19831 fi
19832 rm -f conftest.err conftest.$ac_objext \
19833       conftest$ac_exeext conftest.$ac_ext
19834 else
19835   cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841
19842 /* pthread test headers */
19843 #include <pthread.h>
19844 #if HAVE_PTHREADS < 7
19845 #include <errno.h>
19846 #endif
19847 #ifndef NULL
19848 #define NULL (void*)0
19849 #endif
19850
19851 static void *task(p)
19852         void *p;
19853 {
19854         return (void *) (p == NULL);
19855 }
19856
19857
19858 int main(argc, argv)
19859         int argc;
19860         char **argv;
19861 {
19862
19863         /* pthread test function */
19864 #ifndef PTHREAD_CREATE_DETACHED
19865 #define PTHREAD_CREATE_DETACHED 1
19866 #endif
19867         pthread_t t;
19868         int status;
19869         int detach = PTHREAD_CREATE_DETACHED;
19870
19871 #if HAVE_PTHREADS > 4
19872         /* Final pthreads */
19873         pthread_attr_t attr;
19874
19875         status = pthread_attr_init(&attr);
19876         if( status ) return status;
19877
19878 #if HAVE_PTHREADS < 7
19879         status = pthread_attr_setdetachstate(&attr, &detach);
19880         if( status < 0 ) status = errno;
19881 #else
19882         status = pthread_attr_setdetachstate(&attr, detach);
19883 #endif
19884         if( status ) return status;
19885         status = pthread_create( &t, &attr, task, NULL );
19886 #if HAVE_PTHREADS < 7
19887         if( status < 0 ) status = errno;
19888 #endif
19889         if( status ) return status;
19890 #else
19891         /* Draft 4 pthreads */
19892         status = pthread_create( &t, pthread_attr_default, task, NULL );
19893         if( status ) return errno;
19894
19895         /* give thread a chance to complete */
19896         /* it should remain joinable and hence detachable */
19897         sleep( 1 );
19898
19899         status = pthread_detach( &t );
19900         if( status ) return errno;
19901 #endif
19902
19903 #ifdef HAVE_LINUX_THREADS
19904         pthread_kill_other_threads_np();
19905 #endif
19906
19907         return 0;
19908
19909 }
19910
19911 _ACEOF
19912 rm -f conftest$ac_exeext
19913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19914   (eval $ac_link) 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; }; then
19923   ol_cv_pthread_create=yes
19924 else
19925   echo "$as_me: program exited with status $ac_status" >&5
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929 ( exit $ac_status )
19930 ol_cv_pthread_create=no
19931 fi
19932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19933 fi
19934 fi
19935 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19936 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19937
19938                 if test $ol_cv_pthread_create != no ; then
19939                         ol_link_threads=posix
19940                         ol_link_pthreads=""
19941                 fi
19942
19943                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19944 if test "$ol_link_threads" = no ; then
19945         # try -kthread
19946         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19947 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19948 if test "${ol_cv_pthread_kthread+set}" = set; then
19949   echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951
19952                 # save the flags
19953                 ol_LIBS="$LIBS"
19954                 LIBS="-kthread $LIBS"
19955
19956                 if test "$cross_compiling" = yes; then
19957   cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963
19964 /* pthread test headers */
19965 #include <pthread.h>
19966 #if HAVE_PTHREADS < 7
19967 #include <errno.h>
19968 #endif
19969 #ifndef NULL
19970 #define NULL (void*)0
19971 #endif
19972
19973 static void *task(p)
19974         void *p;
19975 {
19976         return (void *) (p == NULL);
19977 }
19978
19979 int
19980 main ()
19981 {
19982
19983         /* pthread test function */
19984 #ifndef PTHREAD_CREATE_DETACHED
19985 #define PTHREAD_CREATE_DETACHED 1
19986 #endif
19987         pthread_t t;
19988         int status;
19989         int detach = PTHREAD_CREATE_DETACHED;
19990
19991 #if HAVE_PTHREADS > 4
19992         /* Final pthreads */
19993         pthread_attr_t attr;
19994
19995         status = pthread_attr_init(&attr);
19996         if( status ) return status;
19997
19998 #if HAVE_PTHREADS < 7
19999         status = pthread_attr_setdetachstate(&attr, &detach);
20000         if( status < 0 ) status = errno;
20001 #else
20002         status = pthread_attr_setdetachstate(&attr, detach);
20003 #endif
20004         if( status ) return status;
20005         status = pthread_create( &t, &attr, task, NULL );
20006 #if HAVE_PTHREADS < 7
20007         if( status < 0 ) status = errno;
20008 #endif
20009         if( status ) return status;
20010 #else
20011         /* Draft 4 pthreads */
20012         status = pthread_create( &t, pthread_attr_default, task, NULL );
20013         if( status ) return errno;
20014
20015         /* give thread a chance to complete */
20016         /* it should remain joinable and hence detachable */
20017         sleep( 1 );
20018
20019         status = pthread_detach( &t );
20020         if( status ) return errno;
20021 #endif
20022
20023 #ifdef HAVE_LINUX_THREADS
20024         pthread_kill_other_threads_np();
20025 #endif
20026
20027         return 0;
20028
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20035   (eval $ac_link) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } &&
20042          { ac_try='test -z "$ac_c_werror_flag"
20043                          || test ! -s conftest.err'
20044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045   (eval $ac_try) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }; } &&
20049          { ac_try='test -s conftest$ac_exeext'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   ol_cv_pthread_kthread=yes
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ol_cv_pthread_kthread=no
20061 fi
20062 rm -f conftest.err conftest.$ac_objext \
20063       conftest$ac_exeext conftest.$ac_ext
20064 else
20065   cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h.  */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h.  */
20071
20072 /* pthread test headers */
20073 #include <pthread.h>
20074 #if HAVE_PTHREADS < 7
20075 #include <errno.h>
20076 #endif
20077 #ifndef NULL
20078 #define NULL (void*)0
20079 #endif
20080
20081 static void *task(p)
20082         void *p;
20083 {
20084         return (void *) (p == NULL);
20085 }
20086
20087
20088 int main(argc, argv)
20089         int argc;
20090         char **argv;
20091 {
20092
20093         /* pthread test function */
20094 #ifndef PTHREAD_CREATE_DETACHED
20095 #define PTHREAD_CREATE_DETACHED 1
20096 #endif
20097         pthread_t t;
20098         int status;
20099         int detach = PTHREAD_CREATE_DETACHED;
20100
20101 #if HAVE_PTHREADS > 4
20102         /* Final pthreads */
20103         pthread_attr_t attr;
20104
20105         status = pthread_attr_init(&attr);
20106         if( status ) return status;
20107
20108 #if HAVE_PTHREADS < 7
20109         status = pthread_attr_setdetachstate(&attr, &detach);
20110         if( status < 0 ) status = errno;
20111 #else
20112         status = pthread_attr_setdetachstate(&attr, detach);
20113 #endif
20114         if( status ) return status;
20115         status = pthread_create( &t, &attr, task, NULL );
20116 #if HAVE_PTHREADS < 7
20117         if( status < 0 ) status = errno;
20118 #endif
20119         if( status ) return status;
20120 #else
20121         /* Draft 4 pthreads */
20122         status = pthread_create( &t, pthread_attr_default, task, NULL );
20123         if( status ) return errno;
20124
20125         /* give thread a chance to complete */
20126         /* it should remain joinable and hence detachable */
20127         sleep( 1 );
20128
20129         status = pthread_detach( &t );
20130         if( status ) return errno;
20131 #endif
20132
20133 #ifdef HAVE_LINUX_THREADS
20134         pthread_kill_other_threads_np();
20135 #endif
20136
20137         return 0;
20138
20139 }
20140
20141 _ACEOF
20142 rm -f conftest$ac_exeext
20143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20144   (eval $ac_link) 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149   (eval $ac_try) 2>&5
20150   ac_status=$?
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); }; }; then
20153   ol_cv_pthread_kthread=yes
20154 else
20155   echo "$as_me: program exited with status $ac_status" >&5
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ( exit $ac_status )
20160 ol_cv_pthread_kthread=no
20161 fi
20162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20163 fi
20164
20165                 # restore the LIBS
20166                 LIBS="$ol_LIBS"
20167
20168 fi
20169 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20170 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20171
20172         if test $ol_cv_pthread_kthread = yes ; then
20173                 ol_link_pthreads="-kthread"
20174                 ol_link_threads=posix
20175         fi
20176 fi
20177
20178                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20179 if test "$ol_link_threads" = no ; then
20180         # try -pthread
20181         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20182 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20183 if test "${ol_cv_pthread_pthread+set}" = set; then
20184   echo $ECHO_N "(cached) $ECHO_C" >&6
20185 else
20186
20187                 # save the flags
20188                 ol_LIBS="$LIBS"
20189                 LIBS="-pthread $LIBS"
20190
20191                 if test "$cross_compiling" = yes; then
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198
20199 /* pthread test headers */
20200 #include <pthread.h>
20201 #if HAVE_PTHREADS < 7
20202 #include <errno.h>
20203 #endif
20204 #ifndef NULL
20205 #define NULL (void*)0
20206 #endif
20207
20208 static void *task(p)
20209         void *p;
20210 {
20211         return (void *) (p == NULL);
20212 }
20213
20214 int
20215 main ()
20216 {
20217
20218         /* pthread test function */
20219 #ifndef PTHREAD_CREATE_DETACHED
20220 #define PTHREAD_CREATE_DETACHED 1
20221 #endif
20222         pthread_t t;
20223         int status;
20224         int detach = PTHREAD_CREATE_DETACHED;
20225
20226 #if HAVE_PTHREADS > 4
20227         /* Final pthreads */
20228         pthread_attr_t attr;
20229
20230         status = pthread_attr_init(&attr);
20231         if( status ) return status;
20232
20233 #if HAVE_PTHREADS < 7
20234         status = pthread_attr_setdetachstate(&attr, &detach);
20235         if( status < 0 ) status = errno;
20236 #else
20237         status = pthread_attr_setdetachstate(&attr, detach);
20238 #endif
20239         if( status ) return status;
20240         status = pthread_create( &t, &attr, task, NULL );
20241 #if HAVE_PTHREADS < 7
20242         if( status < 0 ) status = errno;
20243 #endif
20244         if( status ) return status;
20245 #else
20246         /* Draft 4 pthreads */
20247         status = pthread_create( &t, pthread_attr_default, task, NULL );
20248         if( status ) return errno;
20249
20250         /* give thread a chance to complete */
20251         /* it should remain joinable and hence detachable */
20252         sleep( 1 );
20253
20254         status = pthread_detach( &t );
20255         if( status ) return errno;
20256 #endif
20257
20258 #ifdef HAVE_LINUX_THREADS
20259         pthread_kill_other_threads_np();
20260 #endif
20261
20262         return 0;
20263
20264   ;
20265   return 0;
20266 }
20267 _ACEOF
20268 rm -f conftest.$ac_objext conftest$ac_exeext
20269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20270   (eval $ac_link) 2>conftest.er1
20271   ac_status=$?
20272   grep -v '^ *+' conftest.er1 >conftest.err
20273   rm -f conftest.er1
20274   cat conftest.err >&5
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); } &&
20277          { ac_try='test -z "$ac_c_werror_flag"
20278                          || test ! -s conftest.err'
20279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20280   (eval $ac_try) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); }; } &&
20284          { ac_try='test -s conftest$ac_exeext'
20285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286   (eval $ac_try) 2>&5
20287   ac_status=$?
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); }; }; then
20290   ol_cv_pthread_pthread=yes
20291 else
20292   echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 ol_cv_pthread_pthread=no
20296 fi
20297 rm -f conftest.err conftest.$ac_objext \
20298       conftest$ac_exeext conftest.$ac_ext
20299 else
20300   cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306
20307 /* pthread test headers */
20308 #include <pthread.h>
20309 #if HAVE_PTHREADS < 7
20310 #include <errno.h>
20311 #endif
20312 #ifndef NULL
20313 #define NULL (void*)0
20314 #endif
20315
20316 static void *task(p)
20317         void *p;
20318 {
20319         return (void *) (p == NULL);
20320 }
20321
20322
20323 int main(argc, argv)
20324         int argc;
20325         char **argv;
20326 {
20327
20328         /* pthread test function */
20329 #ifndef PTHREAD_CREATE_DETACHED
20330 #define PTHREAD_CREATE_DETACHED 1
20331 #endif
20332         pthread_t t;
20333         int status;
20334         int detach = PTHREAD_CREATE_DETACHED;
20335
20336 #if HAVE_PTHREADS > 4
20337         /* Final pthreads */
20338         pthread_attr_t attr;
20339
20340         status = pthread_attr_init(&attr);
20341         if( status ) return status;
20342
20343 #if HAVE_PTHREADS < 7
20344         status = pthread_attr_setdetachstate(&attr, &detach);
20345         if( status < 0 ) status = errno;
20346 #else
20347         status = pthread_attr_setdetachstate(&attr, detach);
20348 #endif
20349         if( status ) return status;
20350         status = pthread_create( &t, &attr, task, NULL );
20351 #if HAVE_PTHREADS < 7
20352         if( status < 0 ) status = errno;
20353 #endif
20354         if( status ) return status;
20355 #else
20356         /* Draft 4 pthreads */
20357         status = pthread_create( &t, pthread_attr_default, task, NULL );
20358         if( status ) return errno;
20359
20360         /* give thread a chance to complete */
20361         /* it should remain joinable and hence detachable */
20362         sleep( 1 );
20363
20364         status = pthread_detach( &t );
20365         if( status ) return errno;
20366 #endif
20367
20368 #ifdef HAVE_LINUX_THREADS
20369         pthread_kill_other_threads_np();
20370 #endif
20371
20372         return 0;
20373
20374 }
20375
20376 _ACEOF
20377 rm -f conftest$ac_exeext
20378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20379   (eval $ac_link) 2>&5
20380   ac_status=$?
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384   (eval $ac_try) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }; }; then
20388   ol_cv_pthread_pthread=yes
20389 else
20390   echo "$as_me: program exited with status $ac_status" >&5
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ( exit $ac_status )
20395 ol_cv_pthread_pthread=no
20396 fi
20397 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20398 fi
20399
20400                 # restore the LIBS
20401                 LIBS="$ol_LIBS"
20402
20403 fi
20404 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20405 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20406
20407         if test $ol_cv_pthread_pthread = yes ; then
20408                 ol_link_pthreads="-pthread"
20409                 ol_link_threads=posix
20410         fi
20411 fi
20412
20413                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20414 if test "$ol_link_threads" = no ; then
20415         # try -pthreads
20416         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20417 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20418 if test "${ol_cv_pthread_pthreads+set}" = set; then
20419   echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421
20422                 # save the flags
20423                 ol_LIBS="$LIBS"
20424                 LIBS="-pthreads $LIBS"
20425
20426                 if test "$cross_compiling" = yes; then
20427   cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433
20434 /* pthread test headers */
20435 #include <pthread.h>
20436 #if HAVE_PTHREADS < 7
20437 #include <errno.h>
20438 #endif
20439 #ifndef NULL
20440 #define NULL (void*)0
20441 #endif
20442
20443 static void *task(p)
20444         void *p;
20445 {
20446         return (void *) (p == NULL);
20447 }
20448
20449 int
20450 main ()
20451 {
20452
20453         /* pthread test function */
20454 #ifndef PTHREAD_CREATE_DETACHED
20455 #define PTHREAD_CREATE_DETACHED 1
20456 #endif
20457         pthread_t t;
20458         int status;
20459         int detach = PTHREAD_CREATE_DETACHED;
20460
20461 #if HAVE_PTHREADS > 4
20462         /* Final pthreads */
20463         pthread_attr_t attr;
20464
20465         status = pthread_attr_init(&attr);
20466         if( status ) return status;
20467
20468 #if HAVE_PTHREADS < 7
20469         status = pthread_attr_setdetachstate(&attr, &detach);
20470         if( status < 0 ) status = errno;
20471 #else
20472         status = pthread_attr_setdetachstate(&attr, detach);
20473 #endif
20474         if( status ) return status;
20475         status = pthread_create( &t, &attr, task, NULL );
20476 #if HAVE_PTHREADS < 7
20477         if( status < 0 ) status = errno;
20478 #endif
20479         if( status ) return status;
20480 #else
20481         /* Draft 4 pthreads */
20482         status = pthread_create( &t, pthread_attr_default, task, NULL );
20483         if( status ) return errno;
20484
20485         /* give thread a chance to complete */
20486         /* it should remain joinable and hence detachable */
20487         sleep( 1 );
20488
20489         status = pthread_detach( &t );
20490         if( status ) return errno;
20491 #endif
20492
20493 #ifdef HAVE_LINUX_THREADS
20494         pthread_kill_other_threads_np();
20495 #endif
20496
20497         return 0;
20498
20499   ;
20500   return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20505   (eval $ac_link) 2>conftest.er1
20506   ac_status=$?
20507   grep -v '^ *+' conftest.er1 >conftest.err
20508   rm -f conftest.er1
20509   cat conftest.err >&5
20510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511   (exit $ac_status); } &&
20512          { ac_try='test -z "$ac_c_werror_flag"
20513                          || test ! -s conftest.err'
20514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515   (eval $ac_try) 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); }; } &&
20519          { ac_try='test -s conftest$ac_exeext'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; }; then
20525   ol_cv_pthread_pthreads=yes
20526 else
20527   echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ol_cv_pthread_pthreads=no
20531 fi
20532 rm -f conftest.err conftest.$ac_objext \
20533       conftest$ac_exeext conftest.$ac_ext
20534 else
20535   cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541
20542 /* pthread test headers */
20543 #include <pthread.h>
20544 #if HAVE_PTHREADS < 7
20545 #include <errno.h>
20546 #endif
20547 #ifndef NULL
20548 #define NULL (void*)0
20549 #endif
20550
20551 static void *task(p)
20552         void *p;
20553 {
20554         return (void *) (p == NULL);
20555 }
20556
20557
20558 int main(argc, argv)
20559         int argc;
20560         char **argv;
20561 {
20562
20563         /* pthread test function */
20564 #ifndef PTHREAD_CREATE_DETACHED
20565 #define PTHREAD_CREATE_DETACHED 1
20566 #endif
20567         pthread_t t;
20568         int status;
20569         int detach = PTHREAD_CREATE_DETACHED;
20570
20571 #if HAVE_PTHREADS > 4
20572         /* Final pthreads */
20573         pthread_attr_t attr;
20574
20575         status = pthread_attr_init(&attr);
20576         if( status ) return status;
20577
20578 #if HAVE_PTHREADS < 7
20579         status = pthread_attr_setdetachstate(&attr, &detach);
20580         if( status < 0 ) status = errno;
20581 #else
20582         status = pthread_attr_setdetachstate(&attr, detach);
20583 #endif
20584         if( status ) return status;
20585         status = pthread_create( &t, &attr, task, NULL );
20586 #if HAVE_PTHREADS < 7
20587         if( status < 0 ) status = errno;
20588 #endif
20589         if( status ) return status;
20590 #else
20591         /* Draft 4 pthreads */
20592         status = pthread_create( &t, pthread_attr_default, task, NULL );
20593         if( status ) return errno;
20594
20595         /* give thread a chance to complete */
20596         /* it should remain joinable and hence detachable */
20597         sleep( 1 );
20598
20599         status = pthread_detach( &t );
20600         if( status ) return errno;
20601 #endif
20602
20603 #ifdef HAVE_LINUX_THREADS
20604         pthread_kill_other_threads_np();
20605 #endif
20606
20607         return 0;
20608
20609 }
20610
20611 _ACEOF
20612 rm -f conftest$ac_exeext
20613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20614   (eval $ac_link) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; }; then
20623   ol_cv_pthread_pthreads=yes
20624 else
20625   echo "$as_me: program exited with status $ac_status" >&5
20626 echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ( exit $ac_status )
20630 ol_cv_pthread_pthreads=no
20631 fi
20632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20633 fi
20634
20635                 # restore the LIBS
20636                 LIBS="$ol_LIBS"
20637
20638 fi
20639 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20640 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20641
20642         if test $ol_cv_pthread_pthreads = yes ; then
20643                 ol_link_pthreads="-pthreads"
20644                 ol_link_threads=posix
20645         fi
20646 fi
20647
20648                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20649 if test "$ol_link_threads" = no ; then
20650         # try -mthreads
20651         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20652 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20653 if test "${ol_cv_pthread_mthreads+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656
20657                 # save the flags
20658                 ol_LIBS="$LIBS"
20659                 LIBS="-mthreads $LIBS"
20660
20661                 if test "$cross_compiling" = yes; then
20662   cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h.  */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h.  */
20668
20669 /* pthread test headers */
20670 #include <pthread.h>
20671 #if HAVE_PTHREADS < 7
20672 #include <errno.h>
20673 #endif
20674 #ifndef NULL
20675 #define NULL (void*)0
20676 #endif
20677
20678 static void *task(p)
20679         void *p;
20680 {
20681         return (void *) (p == NULL);
20682 }
20683
20684 int
20685 main ()
20686 {
20687
20688         /* pthread test function */
20689 #ifndef PTHREAD_CREATE_DETACHED
20690 #define PTHREAD_CREATE_DETACHED 1
20691 #endif
20692         pthread_t t;
20693         int status;
20694         int detach = PTHREAD_CREATE_DETACHED;
20695
20696 #if HAVE_PTHREADS > 4
20697         /* Final pthreads */
20698         pthread_attr_t attr;
20699
20700         status = pthread_attr_init(&attr);
20701         if( status ) return status;
20702
20703 #if HAVE_PTHREADS < 7
20704         status = pthread_attr_setdetachstate(&attr, &detach);
20705         if( status < 0 ) status = errno;
20706 #else
20707         status = pthread_attr_setdetachstate(&attr, detach);
20708 #endif
20709         if( status ) return status;
20710         status = pthread_create( &t, &attr, task, NULL );
20711 #if HAVE_PTHREADS < 7
20712         if( status < 0 ) status = errno;
20713 #endif
20714         if( status ) return status;
20715 #else
20716         /* Draft 4 pthreads */
20717         status = pthread_create( &t, pthread_attr_default, task, NULL );
20718         if( status ) return errno;
20719
20720         /* give thread a chance to complete */
20721         /* it should remain joinable and hence detachable */
20722         sleep( 1 );
20723
20724         status = pthread_detach( &t );
20725         if( status ) return errno;
20726 #endif
20727
20728 #ifdef HAVE_LINUX_THREADS
20729         pthread_kill_other_threads_np();
20730 #endif
20731
20732         return 0;
20733
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740   (eval $ac_link) 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } &&
20747          { ac_try='test -z "$ac_c_werror_flag"
20748                          || test ! -s conftest.err'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest$ac_exeext'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ol_cv_pthread_mthreads=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ol_cv_pthread_mthreads=no
20766 fi
20767 rm -f conftest.err conftest.$ac_objext \
20768       conftest$ac_exeext conftest.$ac_ext
20769 else
20770   cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776
20777 /* pthread test headers */
20778 #include <pthread.h>
20779 #if HAVE_PTHREADS < 7
20780 #include <errno.h>
20781 #endif
20782 #ifndef NULL
20783 #define NULL (void*)0
20784 #endif
20785
20786 static void *task(p)
20787         void *p;
20788 {
20789         return (void *) (p == NULL);
20790 }
20791
20792
20793 int main(argc, argv)
20794         int argc;
20795         char **argv;
20796 {
20797
20798         /* pthread test function */
20799 #ifndef PTHREAD_CREATE_DETACHED
20800 #define PTHREAD_CREATE_DETACHED 1
20801 #endif
20802         pthread_t t;
20803         int status;
20804         int detach = PTHREAD_CREATE_DETACHED;
20805
20806 #if HAVE_PTHREADS > 4
20807         /* Final pthreads */
20808         pthread_attr_t attr;
20809
20810         status = pthread_attr_init(&attr);
20811         if( status ) return status;
20812
20813 #if HAVE_PTHREADS < 7
20814         status = pthread_attr_setdetachstate(&attr, &detach);
20815         if( status < 0 ) status = errno;
20816 #else
20817         status = pthread_attr_setdetachstate(&attr, detach);
20818 #endif
20819         if( status ) return status;
20820         status = pthread_create( &t, &attr, task, NULL );
20821 #if HAVE_PTHREADS < 7
20822         if( status < 0 ) status = errno;
20823 #endif
20824         if( status ) return status;
20825 #else
20826         /* Draft 4 pthreads */
20827         status = pthread_create( &t, pthread_attr_default, task, NULL );
20828         if( status ) return errno;
20829
20830         /* give thread a chance to complete */
20831         /* it should remain joinable and hence detachable */
20832         sleep( 1 );
20833
20834         status = pthread_detach( &t );
20835         if( status ) return errno;
20836 #endif
20837
20838 #ifdef HAVE_LINUX_THREADS
20839         pthread_kill_other_threads_np();
20840 #endif
20841
20842         return 0;
20843
20844 }
20845
20846 _ACEOF
20847 rm -f conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849   (eval $ac_link) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858   ol_cv_pthread_mthreads=yes
20859 else
20860   echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ( exit $ac_status )
20865 ol_cv_pthread_mthreads=no
20866 fi
20867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 fi
20869
20870                 # restore the LIBS
20871                 LIBS="$ol_LIBS"
20872
20873 fi
20874 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20875 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20876
20877         if test $ol_cv_pthread_mthreads = yes ; then
20878                 ol_link_pthreads="-mthreads"
20879                 ol_link_threads=posix
20880         fi
20881 fi
20882
20883                 # Pthread try link: -thread (ol_cv_pthread_thread)
20884 if test "$ol_link_threads" = no ; then
20885         # try -thread
20886         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20887 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20888 if test "${ol_cv_pthread_thread+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891
20892                 # save the flags
20893                 ol_LIBS="$LIBS"
20894                 LIBS="-thread $LIBS"
20895
20896                 if test "$cross_compiling" = yes; then
20897   cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903
20904 /* pthread test headers */
20905 #include <pthread.h>
20906 #if HAVE_PTHREADS < 7
20907 #include <errno.h>
20908 #endif
20909 #ifndef NULL
20910 #define NULL (void*)0
20911 #endif
20912
20913 static void *task(p)
20914         void *p;
20915 {
20916         return (void *) (p == NULL);
20917 }
20918
20919 int
20920 main ()
20921 {
20922
20923         /* pthread test function */
20924 #ifndef PTHREAD_CREATE_DETACHED
20925 #define PTHREAD_CREATE_DETACHED 1
20926 #endif
20927         pthread_t t;
20928         int status;
20929         int detach = PTHREAD_CREATE_DETACHED;
20930
20931 #if HAVE_PTHREADS > 4
20932         /* Final pthreads */
20933         pthread_attr_t attr;
20934
20935         status = pthread_attr_init(&attr);
20936         if( status ) return status;
20937
20938 #if HAVE_PTHREADS < 7
20939         status = pthread_attr_setdetachstate(&attr, &detach);
20940         if( status < 0 ) status = errno;
20941 #else
20942         status = pthread_attr_setdetachstate(&attr, detach);
20943 #endif
20944         if( status ) return status;
20945         status = pthread_create( &t, &attr, task, NULL );
20946 #if HAVE_PTHREADS < 7
20947         if( status < 0 ) status = errno;
20948 #endif
20949         if( status ) return status;
20950 #else
20951         /* Draft 4 pthreads */
20952         status = pthread_create( &t, pthread_attr_default, task, NULL );
20953         if( status ) return errno;
20954
20955         /* give thread a chance to complete */
20956         /* it should remain joinable and hence detachable */
20957         sleep( 1 );
20958
20959         status = pthread_detach( &t );
20960         if( status ) return errno;
20961 #endif
20962
20963 #ifdef HAVE_LINUX_THREADS
20964         pthread_kill_other_threads_np();
20965 #endif
20966
20967         return 0;
20968
20969   ;
20970   return 0;
20971 }
20972 _ACEOF
20973 rm -f conftest.$ac_objext conftest$ac_exeext
20974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20975   (eval $ac_link) 2>conftest.er1
20976   ac_status=$?
20977   grep -v '^ *+' conftest.er1 >conftest.err
20978   rm -f conftest.er1
20979   cat conftest.err >&5
20980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981   (exit $ac_status); } &&
20982          { ac_try='test -z "$ac_c_werror_flag"
20983                          || test ! -s conftest.err'
20984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985   (eval $ac_try) 2>&5
20986   ac_status=$?
20987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988   (exit $ac_status); }; } &&
20989          { ac_try='test -s conftest$ac_exeext'
20990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991   (eval $ac_try) 2>&5
20992   ac_status=$?
20993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994   (exit $ac_status); }; }; then
20995   ol_cv_pthread_thread=yes
20996 else
20997   echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ol_cv_pthread_thread=no
21001 fi
21002 rm -f conftest.err conftest.$ac_objext \
21003       conftest$ac_exeext conftest.$ac_ext
21004 else
21005   cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011
21012 /* pthread test headers */
21013 #include <pthread.h>
21014 #if HAVE_PTHREADS < 7
21015 #include <errno.h>
21016 #endif
21017 #ifndef NULL
21018 #define NULL (void*)0
21019 #endif
21020
21021 static void *task(p)
21022         void *p;
21023 {
21024         return (void *) (p == NULL);
21025 }
21026
21027
21028 int main(argc, argv)
21029         int argc;
21030         char **argv;
21031 {
21032
21033         /* pthread test function */
21034 #ifndef PTHREAD_CREATE_DETACHED
21035 #define PTHREAD_CREATE_DETACHED 1
21036 #endif
21037         pthread_t t;
21038         int status;
21039         int detach = PTHREAD_CREATE_DETACHED;
21040
21041 #if HAVE_PTHREADS > 4
21042         /* Final pthreads */
21043         pthread_attr_t attr;
21044
21045         status = pthread_attr_init(&attr);
21046         if( status ) return status;
21047
21048 #if HAVE_PTHREADS < 7
21049         status = pthread_attr_setdetachstate(&attr, &detach);
21050         if( status < 0 ) status = errno;
21051 #else
21052         status = pthread_attr_setdetachstate(&attr, detach);
21053 #endif
21054         if( status ) return status;
21055         status = pthread_create( &t, &attr, task, NULL );
21056 #if HAVE_PTHREADS < 7
21057         if( status < 0 ) status = errno;
21058 #endif
21059         if( status ) return status;
21060 #else
21061         /* Draft 4 pthreads */
21062         status = pthread_create( &t, pthread_attr_default, task, NULL );
21063         if( status ) return errno;
21064
21065         /* give thread a chance to complete */
21066         /* it should remain joinable and hence detachable */
21067         sleep( 1 );
21068
21069         status = pthread_detach( &t );
21070         if( status ) return errno;
21071 #endif
21072
21073 #ifdef HAVE_LINUX_THREADS
21074         pthread_kill_other_threads_np();
21075 #endif
21076
21077         return 0;
21078
21079 }
21080
21081 _ACEOF
21082 rm -f conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084   (eval $ac_link) 2>&5
21085   ac_status=$?
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089   (eval $ac_try) 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; }; then
21093   ol_cv_pthread_thread=yes
21094 else
21095   echo "$as_me: program exited with status $ac_status" >&5
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ( exit $ac_status )
21100 ol_cv_pthread_thread=no
21101 fi
21102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21103 fi
21104
21105                 # restore the LIBS
21106                 LIBS="$ol_LIBS"
21107
21108 fi
21109 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21110 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21111
21112         if test $ol_cv_pthread_thread = yes ; then
21113                 ol_link_pthreads="-thread"
21114                 ol_link_threads=posix
21115         fi
21116 fi
21117
21118
21119                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21120 if test "$ol_link_threads" = no ; then
21121         # try -lpthread -lmach -lexc -lc_r
21122         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21123 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21124 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21125   echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127
21128                 # save the flags
21129                 ol_LIBS="$LIBS"
21130                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21131
21132                 if test "$cross_compiling" = yes; then
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139
21140 /* pthread test headers */
21141 #include <pthread.h>
21142 #if HAVE_PTHREADS < 7
21143 #include <errno.h>
21144 #endif
21145 #ifndef NULL
21146 #define NULL (void*)0
21147 #endif
21148
21149 static void *task(p)
21150         void *p;
21151 {
21152         return (void *) (p == NULL);
21153 }
21154
21155 int
21156 main ()
21157 {
21158
21159         /* pthread test function */
21160 #ifndef PTHREAD_CREATE_DETACHED
21161 #define PTHREAD_CREATE_DETACHED 1
21162 #endif
21163         pthread_t t;
21164         int status;
21165         int detach = PTHREAD_CREATE_DETACHED;
21166
21167 #if HAVE_PTHREADS > 4
21168         /* Final pthreads */
21169         pthread_attr_t attr;
21170
21171         status = pthread_attr_init(&attr);
21172         if( status ) return status;
21173
21174 #if HAVE_PTHREADS < 7
21175         status = pthread_attr_setdetachstate(&attr, &detach);
21176         if( status < 0 ) status = errno;
21177 #else
21178         status = pthread_attr_setdetachstate(&attr, detach);
21179 #endif
21180         if( status ) return status;
21181         status = pthread_create( &t, &attr, task, NULL );
21182 #if HAVE_PTHREADS < 7
21183         if( status < 0 ) status = errno;
21184 #endif
21185         if( status ) return status;
21186 #else
21187         /* Draft 4 pthreads */
21188         status = pthread_create( &t, pthread_attr_default, task, NULL );
21189         if( status ) return errno;
21190
21191         /* give thread a chance to complete */
21192         /* it should remain joinable and hence detachable */
21193         sleep( 1 );
21194
21195         status = pthread_detach( &t );
21196         if( status ) return errno;
21197 #endif
21198
21199 #ifdef HAVE_LINUX_THREADS
21200         pthread_kill_other_threads_np();
21201 #endif
21202
21203         return 0;
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211   (eval $ac_link) 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } &&
21218          { ac_try='test -z "$ac_c_werror_flag"
21219                          || test ! -s conftest.err'
21220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221   (eval $ac_try) 2>&5
21222   ac_status=$?
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); }; } &&
21225          { ac_try='test -s conftest$ac_exeext'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; }; then
21231   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21237 fi
21238 rm -f conftest.err conftest.$ac_objext \
21239       conftest$ac_exeext conftest.$ac_ext
21240 else
21241   cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247
21248 /* pthread test headers */
21249 #include <pthread.h>
21250 #if HAVE_PTHREADS < 7
21251 #include <errno.h>
21252 #endif
21253 #ifndef NULL
21254 #define NULL (void*)0
21255 #endif
21256
21257 static void *task(p)
21258         void *p;
21259 {
21260         return (void *) (p == NULL);
21261 }
21262
21263
21264 int main(argc, argv)
21265         int argc;
21266         char **argv;
21267 {
21268
21269         /* pthread test function */
21270 #ifndef PTHREAD_CREATE_DETACHED
21271 #define PTHREAD_CREATE_DETACHED 1
21272 #endif
21273         pthread_t t;
21274         int status;
21275         int detach = PTHREAD_CREATE_DETACHED;
21276
21277 #if HAVE_PTHREADS > 4
21278         /* Final pthreads */
21279         pthread_attr_t attr;
21280
21281         status = pthread_attr_init(&attr);
21282         if( status ) return status;
21283
21284 #if HAVE_PTHREADS < 7
21285         status = pthread_attr_setdetachstate(&attr, &detach);
21286         if( status < 0 ) status = errno;
21287 #else
21288         status = pthread_attr_setdetachstate(&attr, detach);
21289 #endif
21290         if( status ) return status;
21291         status = pthread_create( &t, &attr, task, NULL );
21292 #if HAVE_PTHREADS < 7
21293         if( status < 0 ) status = errno;
21294 #endif
21295         if( status ) return status;
21296 #else
21297         /* Draft 4 pthreads */
21298         status = pthread_create( &t, pthread_attr_default, task, NULL );
21299         if( status ) return errno;
21300
21301         /* give thread a chance to complete */
21302         /* it should remain joinable and hence detachable */
21303         sleep( 1 );
21304
21305         status = pthread_detach( &t );
21306         if( status ) return errno;
21307 #endif
21308
21309 #ifdef HAVE_LINUX_THREADS
21310         pthread_kill_other_threads_np();
21311 #endif
21312
21313         return 0;
21314
21315 }
21316
21317 _ACEOF
21318 rm -f conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320   (eval $ac_link) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325   (eval $ac_try) 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); }; }; then
21329   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21330 else
21331   echo "$as_me: program exited with status $ac_status" >&5
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335 ( exit $ac_status )
21336 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21337 fi
21338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21339 fi
21340
21341                 # restore the LIBS
21342                 LIBS="$ol_LIBS"
21343
21344 fi
21345 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21346 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21347
21348         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21349                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21350                 ol_link_threads=posix
21351         fi
21352 fi
21353
21354                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21355 if test "$ol_link_threads" = no ; then
21356         # try -lpthread -lmach -lexc
21357         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21358 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21359 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362
21363                 # save the flags
21364                 ol_LIBS="$LIBS"
21365                 LIBS="-lpthread -lmach -lexc $LIBS"
21366
21367                 if test "$cross_compiling" = yes; then
21368   cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374
21375 /* pthread test headers */
21376 #include <pthread.h>
21377 #if HAVE_PTHREADS < 7
21378 #include <errno.h>
21379 #endif
21380 #ifndef NULL
21381 #define NULL (void*)0
21382 #endif
21383
21384 static void *task(p)
21385         void *p;
21386 {
21387         return (void *) (p == NULL);
21388 }
21389
21390 int
21391 main ()
21392 {
21393
21394         /* pthread test function */
21395 #ifndef PTHREAD_CREATE_DETACHED
21396 #define PTHREAD_CREATE_DETACHED 1
21397 #endif
21398         pthread_t t;
21399         int status;
21400         int detach = PTHREAD_CREATE_DETACHED;
21401
21402 #if HAVE_PTHREADS > 4
21403         /* Final pthreads */
21404         pthread_attr_t attr;
21405
21406         status = pthread_attr_init(&attr);
21407         if( status ) return status;
21408
21409 #if HAVE_PTHREADS < 7
21410         status = pthread_attr_setdetachstate(&attr, &detach);
21411         if( status < 0 ) status = errno;
21412 #else
21413         status = pthread_attr_setdetachstate(&attr, detach);
21414 #endif
21415         if( status ) return status;
21416         status = pthread_create( &t, &attr, task, NULL );
21417 #if HAVE_PTHREADS < 7
21418         if( status < 0 ) status = errno;
21419 #endif
21420         if( status ) return status;
21421 #else
21422         /* Draft 4 pthreads */
21423         status = pthread_create( &t, pthread_attr_default, task, NULL );
21424         if( status ) return errno;
21425
21426         /* give thread a chance to complete */
21427         /* it should remain joinable and hence detachable */
21428         sleep( 1 );
21429
21430         status = pthread_detach( &t );
21431         if( status ) return errno;
21432 #endif
21433
21434 #ifdef HAVE_LINUX_THREADS
21435         pthread_kill_other_threads_np();
21436 #endif
21437
21438         return 0;
21439
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446   (eval $ac_link) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_c_werror_flag"
21454                          || test ! -s conftest.err'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; } &&
21460          { ac_try='test -s conftest$ac_exeext'
21461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462   (eval $ac_try) 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; }; then
21466   ol_cv_pthread_lpthread_lmach_lexc=yes
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471 ol_cv_pthread_lpthread_lmach_lexc=no
21472 fi
21473 rm -f conftest.err conftest.$ac_objext \
21474       conftest$ac_exeext conftest.$ac_ext
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483 /* pthread test headers */
21484 #include <pthread.h>
21485 #if HAVE_PTHREADS < 7
21486 #include <errno.h>
21487 #endif
21488 #ifndef NULL
21489 #define NULL (void*)0
21490 #endif
21491
21492 static void *task(p)
21493         void *p;
21494 {
21495         return (void *) (p == NULL);
21496 }
21497
21498
21499 int main(argc, argv)
21500         int argc;
21501         char **argv;
21502 {
21503
21504         /* pthread test function */
21505 #ifndef PTHREAD_CREATE_DETACHED
21506 #define PTHREAD_CREATE_DETACHED 1
21507 #endif
21508         pthread_t t;
21509         int status;
21510         int detach = PTHREAD_CREATE_DETACHED;
21511
21512 #if HAVE_PTHREADS > 4
21513         /* Final pthreads */
21514         pthread_attr_t attr;
21515
21516         status = pthread_attr_init(&attr);
21517         if( status ) return status;
21518
21519 #if HAVE_PTHREADS < 7
21520         status = pthread_attr_setdetachstate(&attr, &detach);
21521         if( status < 0 ) status = errno;
21522 #else
21523         status = pthread_attr_setdetachstate(&attr, detach);
21524 #endif
21525         if( status ) return status;
21526         status = pthread_create( &t, &attr, task, NULL );
21527 #if HAVE_PTHREADS < 7
21528         if( status < 0 ) status = errno;
21529 #endif
21530         if( status ) return status;
21531 #else
21532         /* Draft 4 pthreads */
21533         status = pthread_create( &t, pthread_attr_default, task, NULL );
21534         if( status ) return errno;
21535
21536         /* give thread a chance to complete */
21537         /* it should remain joinable and hence detachable */
21538         sleep( 1 );
21539
21540         status = pthread_detach( &t );
21541         if( status ) return errno;
21542 #endif
21543
21544 #ifdef HAVE_LINUX_THREADS
21545         pthread_kill_other_threads_np();
21546 #endif
21547
21548         return 0;
21549
21550 }
21551
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560   (eval $ac_try) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   ol_cv_pthread_lpthread_lmach_lexc=yes
21565 else
21566   echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ( exit $ac_status )
21571 ol_cv_pthread_lpthread_lmach_lexc=no
21572 fi
21573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21574 fi
21575
21576                 # restore the LIBS
21577                 LIBS="$ol_LIBS"
21578
21579 fi
21580 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21581 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21582
21583         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21584                 ol_link_pthreads="-lpthread -lmach -lexc"
21585                 ol_link_threads=posix
21586         fi
21587 fi
21588
21589
21590                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21591 if test "$ol_link_threads" = no ; then
21592         # try -lpthread -Wl,-woff,85
21593         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21594 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21595 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598
21599                 # save the flags
21600                 ol_LIBS="$LIBS"
21601                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21602
21603                 if test "$cross_compiling" = yes; then
21604   cat >conftest.$ac_ext <<_ACEOF
21605 /* confdefs.h.  */
21606 _ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h.  */
21610
21611 /* pthread test headers */
21612 #include <pthread.h>
21613 #if HAVE_PTHREADS < 7
21614 #include <errno.h>
21615 #endif
21616 #ifndef NULL
21617 #define NULL (void*)0
21618 #endif
21619
21620 static void *task(p)
21621         void *p;
21622 {
21623         return (void *) (p == NULL);
21624 }
21625
21626 int
21627 main ()
21628 {
21629
21630         /* pthread test function */
21631 #ifndef PTHREAD_CREATE_DETACHED
21632 #define PTHREAD_CREATE_DETACHED 1
21633 #endif
21634         pthread_t t;
21635         int status;
21636         int detach = PTHREAD_CREATE_DETACHED;
21637
21638 #if HAVE_PTHREADS > 4
21639         /* Final pthreads */
21640         pthread_attr_t attr;
21641
21642         status = pthread_attr_init(&attr);
21643         if( status ) return status;
21644
21645 #if HAVE_PTHREADS < 7
21646         status = pthread_attr_setdetachstate(&attr, &detach);
21647         if( status < 0 ) status = errno;
21648 #else
21649         status = pthread_attr_setdetachstate(&attr, detach);
21650 #endif
21651         if( status ) return status;
21652         status = pthread_create( &t, &attr, task, NULL );
21653 #if HAVE_PTHREADS < 7
21654         if( status < 0 ) status = errno;
21655 #endif
21656         if( status ) return status;
21657 #else
21658         /* Draft 4 pthreads */
21659         status = pthread_create( &t, pthread_attr_default, task, NULL );
21660         if( status ) return errno;
21661
21662         /* give thread a chance to complete */
21663         /* it should remain joinable and hence detachable */
21664         sleep( 1 );
21665
21666         status = pthread_detach( &t );
21667         if( status ) return errno;
21668 #endif
21669
21670 #ifdef HAVE_LINUX_THREADS
21671         pthread_kill_other_threads_np();
21672 #endif
21673
21674         return 0;
21675
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21682   (eval $ac_link) 2>conftest.er1
21683   ac_status=$?
21684   grep -v '^ *+' conftest.er1 >conftest.err
21685   rm -f conftest.er1
21686   cat conftest.err >&5
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); } &&
21689          { ac_try='test -z "$ac_c_werror_flag"
21690                          || test ! -s conftest.err'
21691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692   (eval $ac_try) 2>&5
21693   ac_status=$?
21694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695   (exit $ac_status); }; } &&
21696          { ac_try='test -s conftest$ac_exeext'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; }; then
21702   ol_cv_pthread_lib_lpthread_woff=yes
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 ol_cv_pthread_lib_lpthread_woff=no
21708 fi
21709 rm -f conftest.err conftest.$ac_objext \
21710       conftest$ac_exeext conftest.$ac_ext
21711 else
21712   cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718
21719 /* pthread test headers */
21720 #include <pthread.h>
21721 #if HAVE_PTHREADS < 7
21722 #include <errno.h>
21723 #endif
21724 #ifndef NULL
21725 #define NULL (void*)0
21726 #endif
21727
21728 static void *task(p)
21729         void *p;
21730 {
21731         return (void *) (p == NULL);
21732 }
21733
21734
21735 int main(argc, argv)
21736         int argc;
21737         char **argv;
21738 {
21739
21740         /* pthread test function */
21741 #ifndef PTHREAD_CREATE_DETACHED
21742 #define PTHREAD_CREATE_DETACHED 1
21743 #endif
21744         pthread_t t;
21745         int status;
21746         int detach = PTHREAD_CREATE_DETACHED;
21747
21748 #if HAVE_PTHREADS > 4
21749         /* Final pthreads */
21750         pthread_attr_t attr;
21751
21752         status = pthread_attr_init(&attr);
21753         if( status ) return status;
21754
21755 #if HAVE_PTHREADS < 7
21756         status = pthread_attr_setdetachstate(&attr, &detach);
21757         if( status < 0 ) status = errno;
21758 #else
21759         status = pthread_attr_setdetachstate(&attr, detach);
21760 #endif
21761         if( status ) return status;
21762         status = pthread_create( &t, &attr, task, NULL );
21763 #if HAVE_PTHREADS < 7
21764         if( status < 0 ) status = errno;
21765 #endif
21766         if( status ) return status;
21767 #else
21768         /* Draft 4 pthreads */
21769         status = pthread_create( &t, pthread_attr_default, task, NULL );
21770         if( status ) return errno;
21771
21772         /* give thread a chance to complete */
21773         /* it should remain joinable and hence detachable */
21774         sleep( 1 );
21775
21776         status = pthread_detach( &t );
21777         if( status ) return errno;
21778 #endif
21779
21780 #ifdef HAVE_LINUX_THREADS
21781         pthread_kill_other_threads_np();
21782 #endif
21783
21784         return 0;
21785
21786 }
21787
21788 _ACEOF
21789 rm -f conftest$ac_exeext
21790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21791   (eval $ac_link) 2>&5
21792   ac_status=$?
21793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796   (eval $ac_try) 2>&5
21797   ac_status=$?
21798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); }; }; then
21800   ol_cv_pthread_lib_lpthread_woff=yes
21801 else
21802   echo "$as_me: program exited with status $ac_status" >&5
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21805
21806 ( exit $ac_status )
21807 ol_cv_pthread_lib_lpthread_woff=no
21808 fi
21809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21810 fi
21811
21812                 # restore the LIBS
21813                 LIBS="$ol_LIBS"
21814
21815 fi
21816 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21817 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21818
21819         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21820                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21821                 ol_link_threads=posix
21822         fi
21823 fi
21824
21825
21826                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21827 if test "$ol_link_threads" = no ; then
21828         # try -lpthread
21829         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21830 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21831 if test "${ol_cv_pthread_lpthread+set}" = set; then
21832   echo $ECHO_N "(cached) $ECHO_C" >&6
21833 else
21834
21835                 # save the flags
21836                 ol_LIBS="$LIBS"
21837                 LIBS="-lpthread $LIBS"
21838
21839                 if test "$cross_compiling" = yes; then
21840   cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846
21847 /* pthread test headers */
21848 #include <pthread.h>
21849 #if HAVE_PTHREADS < 7
21850 #include <errno.h>
21851 #endif
21852 #ifndef NULL
21853 #define NULL (void*)0
21854 #endif
21855
21856 static void *task(p)
21857         void *p;
21858 {
21859         return (void *) (p == NULL);
21860 }
21861
21862 int
21863 main ()
21864 {
21865
21866         /* pthread test function */
21867 #ifndef PTHREAD_CREATE_DETACHED
21868 #define PTHREAD_CREATE_DETACHED 1
21869 #endif
21870         pthread_t t;
21871         int status;
21872         int detach = PTHREAD_CREATE_DETACHED;
21873
21874 #if HAVE_PTHREADS > 4
21875         /* Final pthreads */
21876         pthread_attr_t attr;
21877
21878         status = pthread_attr_init(&attr);
21879         if( status ) return status;
21880
21881 #if HAVE_PTHREADS < 7
21882         status = pthread_attr_setdetachstate(&attr, &detach);
21883         if( status < 0 ) status = errno;
21884 #else
21885         status = pthread_attr_setdetachstate(&attr, detach);
21886 #endif
21887         if( status ) return status;
21888         status = pthread_create( &t, &attr, task, NULL );
21889 #if HAVE_PTHREADS < 7
21890         if( status < 0 ) status = errno;
21891 #endif
21892         if( status ) return status;
21893 #else
21894         /* Draft 4 pthreads */
21895         status = pthread_create( &t, pthread_attr_default, task, NULL );
21896         if( status ) return errno;
21897
21898         /* give thread a chance to complete */
21899         /* it should remain joinable and hence detachable */
21900         sleep( 1 );
21901
21902         status = pthread_detach( &t );
21903         if( status ) return errno;
21904 #endif
21905
21906 #ifdef HAVE_LINUX_THREADS
21907         pthread_kill_other_threads_np();
21908 #endif
21909
21910         return 0;
21911
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext conftest$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918   (eval $ac_link) 2>conftest.er1
21919   ac_status=$?
21920   grep -v '^ *+' conftest.er1 >conftest.err
21921   rm -f conftest.er1
21922   cat conftest.err >&5
21923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924   (exit $ac_status); } &&
21925          { ac_try='test -z "$ac_c_werror_flag"
21926                          || test ! -s conftest.err'
21927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; } &&
21932          { ac_try='test -s conftest$ac_exeext'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; }; then
21938   ol_cv_pthread_lpthread=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ol_cv_pthread_lpthread=no
21944 fi
21945 rm -f conftest.err conftest.$ac_objext \
21946       conftest$ac_exeext conftest.$ac_ext
21947 else
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954
21955 /* pthread test headers */
21956 #include <pthread.h>
21957 #if HAVE_PTHREADS < 7
21958 #include <errno.h>
21959 #endif
21960 #ifndef NULL
21961 #define NULL (void*)0
21962 #endif
21963
21964 static void *task(p)
21965         void *p;
21966 {
21967         return (void *) (p == NULL);
21968 }
21969
21970
21971 int main(argc, argv)
21972         int argc;
21973         char **argv;
21974 {
21975
21976         /* pthread test function */
21977 #ifndef PTHREAD_CREATE_DETACHED
21978 #define PTHREAD_CREATE_DETACHED 1
21979 #endif
21980         pthread_t t;
21981         int status;
21982         int detach = PTHREAD_CREATE_DETACHED;
21983
21984 #if HAVE_PTHREADS > 4
21985         /* Final pthreads */
21986         pthread_attr_t attr;
21987
21988         status = pthread_attr_init(&attr);
21989         if( status ) return status;
21990
21991 #if HAVE_PTHREADS < 7
21992         status = pthread_attr_setdetachstate(&attr, &detach);
21993         if( status < 0 ) status = errno;
21994 #else
21995         status = pthread_attr_setdetachstate(&attr, detach);
21996 #endif
21997         if( status ) return status;
21998         status = pthread_create( &t, &attr, task, NULL );
21999 #if HAVE_PTHREADS < 7
22000         if( status < 0 ) status = errno;
22001 #endif
22002         if( status ) return status;
22003 #else
22004         /* Draft 4 pthreads */
22005         status = pthread_create( &t, pthread_attr_default, task, NULL );
22006         if( status ) return errno;
22007
22008         /* give thread a chance to complete */
22009         /* it should remain joinable and hence detachable */
22010         sleep( 1 );
22011
22012         status = pthread_detach( &t );
22013         if( status ) return errno;
22014 #endif
22015
22016 #ifdef HAVE_LINUX_THREADS
22017         pthread_kill_other_threads_np();
22018 #endif
22019
22020         return 0;
22021
22022 }
22023
22024 _ACEOF
22025 rm -f conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027   (eval $ac_link) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; }; then
22036   ol_cv_pthread_lpthread=yes
22037 else
22038   echo "$as_me: program exited with status $ac_status" >&5
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ( exit $ac_status )
22043 ol_cv_pthread_lpthread=no
22044 fi
22045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22046 fi
22047
22048                 # restore the LIBS
22049                 LIBS="$ol_LIBS"
22050
22051 fi
22052 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22053 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22054
22055         if test $ol_cv_pthread_lpthread = yes ; then
22056                 ol_link_pthreads="-lpthread"
22057                 ol_link_threads=posix
22058         fi
22059 fi
22060
22061                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22062 if test "$ol_link_threads" = no ; then
22063         # try -lc_r
22064         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22065 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22066 if test "${ol_cv_pthread_lc_r+set}" = set; then
22067   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 else
22069
22070                 # save the flags
22071                 ol_LIBS="$LIBS"
22072                 LIBS="-lc_r $LIBS"
22073
22074                 if test "$cross_compiling" = yes; then
22075   cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081
22082 /* pthread test headers */
22083 #include <pthread.h>
22084 #if HAVE_PTHREADS < 7
22085 #include <errno.h>
22086 #endif
22087 #ifndef NULL
22088 #define NULL (void*)0
22089 #endif
22090
22091 static void *task(p)
22092         void *p;
22093 {
22094         return (void *) (p == NULL);
22095 }
22096
22097 int
22098 main ()
22099 {
22100
22101         /* pthread test function */
22102 #ifndef PTHREAD_CREATE_DETACHED
22103 #define PTHREAD_CREATE_DETACHED 1
22104 #endif
22105         pthread_t t;
22106         int status;
22107         int detach = PTHREAD_CREATE_DETACHED;
22108
22109 #if HAVE_PTHREADS > 4
22110         /* Final pthreads */
22111         pthread_attr_t attr;
22112
22113         status = pthread_attr_init(&attr);
22114         if( status ) return status;
22115
22116 #if HAVE_PTHREADS < 7
22117         status = pthread_attr_setdetachstate(&attr, &detach);
22118         if( status < 0 ) status = errno;
22119 #else
22120         status = pthread_attr_setdetachstate(&attr, detach);
22121 #endif
22122         if( status ) return status;
22123         status = pthread_create( &t, &attr, task, NULL );
22124 #if HAVE_PTHREADS < 7
22125         if( status < 0 ) status = errno;
22126 #endif
22127         if( status ) return status;
22128 #else
22129         /* Draft 4 pthreads */
22130         status = pthread_create( &t, pthread_attr_default, task, NULL );
22131         if( status ) return errno;
22132
22133         /* give thread a chance to complete */
22134         /* it should remain joinable and hence detachable */
22135         sleep( 1 );
22136
22137         status = pthread_detach( &t );
22138         if( status ) return errno;
22139 #endif
22140
22141 #ifdef HAVE_LINUX_THREADS
22142         pthread_kill_other_threads_np();
22143 #endif
22144
22145         return 0;
22146
22147   ;
22148   return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext conftest$ac_exeext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22153   (eval $ac_link) 2>conftest.er1
22154   ac_status=$?
22155   grep -v '^ *+' conftest.er1 >conftest.err
22156   rm -f conftest.er1
22157   cat conftest.err >&5
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } &&
22160          { ac_try='test -z "$ac_c_werror_flag"
22161                          || test ! -s conftest.err'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest$ac_exeext'
22168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169   (eval $ac_try) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   ol_cv_pthread_lc_r=yes
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 ol_cv_pthread_lc_r=no
22179 fi
22180 rm -f conftest.err conftest.$ac_objext \
22181       conftest$ac_exeext conftest.$ac_ext
22182 else
22183   cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189
22190 /* pthread test headers */
22191 #include <pthread.h>
22192 #if HAVE_PTHREADS < 7
22193 #include <errno.h>
22194 #endif
22195 #ifndef NULL
22196 #define NULL (void*)0
22197 #endif
22198
22199 static void *task(p)
22200         void *p;
22201 {
22202         return (void *) (p == NULL);
22203 }
22204
22205
22206 int main(argc, argv)
22207         int argc;
22208         char **argv;
22209 {
22210
22211         /* pthread test function */
22212 #ifndef PTHREAD_CREATE_DETACHED
22213 #define PTHREAD_CREATE_DETACHED 1
22214 #endif
22215         pthread_t t;
22216         int status;
22217         int detach = PTHREAD_CREATE_DETACHED;
22218
22219 #if HAVE_PTHREADS > 4
22220         /* Final pthreads */
22221         pthread_attr_t attr;
22222
22223         status = pthread_attr_init(&attr);
22224         if( status ) return status;
22225
22226 #if HAVE_PTHREADS < 7
22227         status = pthread_attr_setdetachstate(&attr, &detach);
22228         if( status < 0 ) status = errno;
22229 #else
22230         status = pthread_attr_setdetachstate(&attr, detach);
22231 #endif
22232         if( status ) return status;
22233         status = pthread_create( &t, &attr, task, NULL );
22234 #if HAVE_PTHREADS < 7
22235         if( status < 0 ) status = errno;
22236 #endif
22237         if( status ) return status;
22238 #else
22239         /* Draft 4 pthreads */
22240         status = pthread_create( &t, pthread_attr_default, task, NULL );
22241         if( status ) return errno;
22242
22243         /* give thread a chance to complete */
22244         /* it should remain joinable and hence detachable */
22245         sleep( 1 );
22246
22247         status = pthread_detach( &t );
22248         if( status ) return errno;
22249 #endif
22250
22251 #ifdef HAVE_LINUX_THREADS
22252         pthread_kill_other_threads_np();
22253 #endif
22254
22255         return 0;
22256
22257 }
22258
22259 _ACEOF
22260 rm -f conftest$ac_exeext
22261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22262   (eval $ac_link) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267   (eval $ac_try) 2>&5
22268   ac_status=$?
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); }; }; then
22271   ol_cv_pthread_lc_r=yes
22272 else
22273   echo "$as_me: program exited with status $ac_status" >&5
22274 echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 ( exit $ac_status )
22278 ol_cv_pthread_lc_r=no
22279 fi
22280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22281 fi
22282
22283                 # restore the LIBS
22284                 LIBS="$ol_LIBS"
22285
22286 fi
22287 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22288 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22289
22290         if test $ol_cv_pthread_lc_r = yes ; then
22291                 ol_link_pthreads="-lc_r"
22292                 ol_link_threads=posix
22293         fi
22294 fi
22295
22296
22297                 # Pthread try link: -threads (ol_cv_pthread_threads)
22298 if test "$ol_link_threads" = no ; then
22299         # try -threads
22300         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22301 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22302 if test "${ol_cv_pthread_threads+set}" = set; then
22303   echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305
22306                 # save the flags
22307                 ol_LIBS="$LIBS"
22308                 LIBS="-threads $LIBS"
22309
22310                 if test "$cross_compiling" = yes; then
22311   cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h.  */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h.  */
22317
22318 /* pthread test headers */
22319 #include <pthread.h>
22320 #if HAVE_PTHREADS < 7
22321 #include <errno.h>
22322 #endif
22323 #ifndef NULL
22324 #define NULL (void*)0
22325 #endif
22326
22327 static void *task(p)
22328         void *p;
22329 {
22330         return (void *) (p == NULL);
22331 }
22332
22333 int
22334 main ()
22335 {
22336
22337         /* pthread test function */
22338 #ifndef PTHREAD_CREATE_DETACHED
22339 #define PTHREAD_CREATE_DETACHED 1
22340 #endif
22341         pthread_t t;
22342         int status;
22343         int detach = PTHREAD_CREATE_DETACHED;
22344
22345 #if HAVE_PTHREADS > 4
22346         /* Final pthreads */
22347         pthread_attr_t attr;
22348
22349         status = pthread_attr_init(&attr);
22350         if( status ) return status;
22351
22352 #if HAVE_PTHREADS < 7
22353         status = pthread_attr_setdetachstate(&attr, &detach);
22354         if( status < 0 ) status = errno;
22355 #else
22356         status = pthread_attr_setdetachstate(&attr, detach);
22357 #endif
22358         if( status ) return status;
22359         status = pthread_create( &t, &attr, task, NULL );
22360 #if HAVE_PTHREADS < 7
22361         if( status < 0 ) status = errno;
22362 #endif
22363         if( status ) return status;
22364 #else
22365         /* Draft 4 pthreads */
22366         status = pthread_create( &t, pthread_attr_default, task, NULL );
22367         if( status ) return errno;
22368
22369         /* give thread a chance to complete */
22370         /* it should remain joinable and hence detachable */
22371         sleep( 1 );
22372
22373         status = pthread_detach( &t );
22374         if( status ) return errno;
22375 #endif
22376
22377 #ifdef HAVE_LINUX_THREADS
22378         pthread_kill_other_threads_np();
22379 #endif
22380
22381         return 0;
22382
22383   ;
22384   return 0;
22385 }
22386 _ACEOF
22387 rm -f conftest.$ac_objext conftest$ac_exeext
22388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22389   (eval $ac_link) 2>conftest.er1
22390   ac_status=$?
22391   grep -v '^ *+' conftest.er1 >conftest.err
22392   rm -f conftest.er1
22393   cat conftest.err >&5
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } &&
22396          { ac_try='test -z "$ac_c_werror_flag"
22397                          || test ! -s conftest.err'
22398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399   (eval $ac_try) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; } &&
22403          { ac_try='test -s conftest$ac_exeext'
22404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); }; }; then
22409   ol_cv_pthread_threads=yes
22410 else
22411   echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414 ol_cv_pthread_threads=no
22415 fi
22416 rm -f conftest.err conftest.$ac_objext \
22417       conftest$ac_exeext conftest.$ac_ext
22418 else
22419   cat >conftest.$ac_ext <<_ACEOF
22420 /* confdefs.h.  */
22421 _ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h.  */
22425
22426 /* pthread test headers */
22427 #include <pthread.h>
22428 #if HAVE_PTHREADS < 7
22429 #include <errno.h>
22430 #endif
22431 #ifndef NULL
22432 #define NULL (void*)0
22433 #endif
22434
22435 static void *task(p)
22436         void *p;
22437 {
22438         return (void *) (p == NULL);
22439 }
22440
22441
22442 int main(argc, argv)
22443         int argc;
22444         char **argv;
22445 {
22446
22447         /* pthread test function */
22448 #ifndef PTHREAD_CREATE_DETACHED
22449 #define PTHREAD_CREATE_DETACHED 1
22450 #endif
22451         pthread_t t;
22452         int status;
22453         int detach = PTHREAD_CREATE_DETACHED;
22454
22455 #if HAVE_PTHREADS > 4
22456         /* Final pthreads */
22457         pthread_attr_t attr;
22458
22459         status = pthread_attr_init(&attr);
22460         if( status ) return status;
22461
22462 #if HAVE_PTHREADS < 7
22463         status = pthread_attr_setdetachstate(&attr, &detach);
22464         if( status < 0 ) status = errno;
22465 #else
22466         status = pthread_attr_setdetachstate(&attr, detach);
22467 #endif
22468         if( status ) return status;
22469         status = pthread_create( &t, &attr, task, NULL );
22470 #if HAVE_PTHREADS < 7
22471         if( status < 0 ) status = errno;
22472 #endif
22473         if( status ) return status;
22474 #else
22475         /* Draft 4 pthreads */
22476         status = pthread_create( &t, pthread_attr_default, task, NULL );
22477         if( status ) return errno;
22478
22479         /* give thread a chance to complete */
22480         /* it should remain joinable and hence detachable */
22481         sleep( 1 );
22482
22483         status = pthread_detach( &t );
22484         if( status ) return errno;
22485 #endif
22486
22487 #ifdef HAVE_LINUX_THREADS
22488         pthread_kill_other_threads_np();
22489 #endif
22490
22491         return 0;
22492
22493 }
22494
22495 _ACEOF
22496 rm -f conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498   (eval $ac_link) 2>&5
22499   ac_status=$?
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503   (eval $ac_try) 2>&5
22504   ac_status=$?
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); }; }; then
22507   ol_cv_pthread_threads=yes
22508 else
22509   echo "$as_me: program exited with status $ac_status" >&5
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ( exit $ac_status )
22514 ol_cv_pthread_threads=no
22515 fi
22516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22517 fi
22518
22519                 # restore the LIBS
22520                 LIBS="$ol_LIBS"
22521
22522 fi
22523 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22524 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22525
22526         if test $ol_cv_pthread_threads = yes ; then
22527                 ol_link_pthreads="-threads"
22528                 ol_link_threads=posix
22529         fi
22530 fi
22531
22532
22533                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22534 if test "$ol_link_threads" = no ; then
22535         # try -lpthreads -lmach -lexc -lc_r
22536         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22537 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22538 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541
22542                 # save the flags
22543                 ol_LIBS="$LIBS"
22544                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22545
22546                 if test "$cross_compiling" = yes; then
22547   cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h.  */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h.  */
22553
22554 /* pthread test headers */
22555 #include <pthread.h>
22556 #if HAVE_PTHREADS < 7
22557 #include <errno.h>
22558 #endif
22559 #ifndef NULL
22560 #define NULL (void*)0
22561 #endif
22562
22563 static void *task(p)
22564         void *p;
22565 {
22566         return (void *) (p == NULL);
22567 }
22568
22569 int
22570 main ()
22571 {
22572
22573         /* pthread test function */
22574 #ifndef PTHREAD_CREATE_DETACHED
22575 #define PTHREAD_CREATE_DETACHED 1
22576 #endif
22577         pthread_t t;
22578         int status;
22579         int detach = PTHREAD_CREATE_DETACHED;
22580
22581 #if HAVE_PTHREADS > 4
22582         /* Final pthreads */
22583         pthread_attr_t attr;
22584
22585         status = pthread_attr_init(&attr);
22586         if( status ) return status;
22587
22588 #if HAVE_PTHREADS < 7
22589         status = pthread_attr_setdetachstate(&attr, &detach);
22590         if( status < 0 ) status = errno;
22591 #else
22592         status = pthread_attr_setdetachstate(&attr, detach);
22593 #endif
22594         if( status ) return status;
22595         status = pthread_create( &t, &attr, task, NULL );
22596 #if HAVE_PTHREADS < 7
22597         if( status < 0 ) status = errno;
22598 #endif
22599         if( status ) return status;
22600 #else
22601         /* Draft 4 pthreads */
22602         status = pthread_create( &t, pthread_attr_default, task, NULL );
22603         if( status ) return errno;
22604
22605         /* give thread a chance to complete */
22606         /* it should remain joinable and hence detachable */
22607         sleep( 1 );
22608
22609         status = pthread_detach( &t );
22610         if( status ) return errno;
22611 #endif
22612
22613 #ifdef HAVE_LINUX_THREADS
22614         pthread_kill_other_threads_np();
22615 #endif
22616
22617         return 0;
22618
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext conftest$ac_exeext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22625   (eval $ac_link) 2>conftest.er1
22626   ac_status=$?
22627   grep -v '^ *+' conftest.er1 >conftest.err
22628   rm -f conftest.er1
22629   cat conftest.err >&5
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); } &&
22632          { ac_try='test -z "$ac_c_werror_flag"
22633                          || test ! -s conftest.err'
22634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); }; } &&
22639          { ac_try='test -s conftest$ac_exeext'
22640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641   (eval $ac_try) 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22646 else
22647   echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22651 fi
22652 rm -f conftest.err conftest.$ac_objext \
22653       conftest$ac_exeext conftest.$ac_ext
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661
22662 /* pthread test headers */
22663 #include <pthread.h>
22664 #if HAVE_PTHREADS < 7
22665 #include <errno.h>
22666 #endif
22667 #ifndef NULL
22668 #define NULL (void*)0
22669 #endif
22670
22671 static void *task(p)
22672         void *p;
22673 {
22674         return (void *) (p == NULL);
22675 }
22676
22677
22678 int main(argc, argv)
22679         int argc;
22680         char **argv;
22681 {
22682
22683         /* pthread test function */
22684 #ifndef PTHREAD_CREATE_DETACHED
22685 #define PTHREAD_CREATE_DETACHED 1
22686 #endif
22687         pthread_t t;
22688         int status;
22689         int detach = PTHREAD_CREATE_DETACHED;
22690
22691 #if HAVE_PTHREADS > 4
22692         /* Final pthreads */
22693         pthread_attr_t attr;
22694
22695         status = pthread_attr_init(&attr);
22696         if( status ) return status;
22697
22698 #if HAVE_PTHREADS < 7
22699         status = pthread_attr_setdetachstate(&attr, &detach);
22700         if( status < 0 ) status = errno;
22701 #else
22702         status = pthread_attr_setdetachstate(&attr, detach);
22703 #endif
22704         if( status ) return status;
22705         status = pthread_create( &t, &attr, task, NULL );
22706 #if HAVE_PTHREADS < 7
22707         if( status < 0 ) status = errno;
22708 #endif
22709         if( status ) return status;
22710 #else
22711         /* Draft 4 pthreads */
22712         status = pthread_create( &t, pthread_attr_default, task, NULL );
22713         if( status ) return errno;
22714
22715         /* give thread a chance to complete */
22716         /* it should remain joinable and hence detachable */
22717         sleep( 1 );
22718
22719         status = pthread_detach( &t );
22720         if( status ) return errno;
22721 #endif
22722
22723 #ifdef HAVE_LINUX_THREADS
22724         pthread_kill_other_threads_np();
22725 #endif
22726
22727         return 0;
22728
22729 }
22730
22731 _ACEOF
22732 rm -f conftest$ac_exeext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22734   (eval $ac_link) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }; then
22743   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22744 else
22745   echo "$as_me: program exited with status $ac_status" >&5
22746 echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749 ( exit $ac_status )
22750 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22751 fi
22752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22753 fi
22754
22755                 # restore the LIBS
22756                 LIBS="$ol_LIBS"
22757
22758 fi
22759 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22760 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22761
22762         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22763                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22764                 ol_link_threads=posix
22765         fi
22766 fi
22767
22768                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22769 if test "$ol_link_threads" = no ; then
22770         # try -lpthreads -lmach -lexc
22771         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22772 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22773 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22774   echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776
22777                 # save the flags
22778                 ol_LIBS="$LIBS"
22779                 LIBS="-lpthreads -lmach -lexc $LIBS"
22780
22781                 if test "$cross_compiling" = yes; then
22782   cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788
22789 /* pthread test headers */
22790 #include <pthread.h>
22791 #if HAVE_PTHREADS < 7
22792 #include <errno.h>
22793 #endif
22794 #ifndef NULL
22795 #define NULL (void*)0
22796 #endif
22797
22798 static void *task(p)
22799         void *p;
22800 {
22801         return (void *) (p == NULL);
22802 }
22803
22804 int
22805 main ()
22806 {
22807
22808         /* pthread test function */
22809 #ifndef PTHREAD_CREATE_DETACHED
22810 #define PTHREAD_CREATE_DETACHED 1
22811 #endif
22812         pthread_t t;
22813         int status;
22814         int detach = PTHREAD_CREATE_DETACHED;
22815
22816 #if HAVE_PTHREADS > 4
22817         /* Final pthreads */
22818         pthread_attr_t attr;
22819
22820         status = pthread_attr_init(&attr);
22821         if( status ) return status;
22822
22823 #if HAVE_PTHREADS < 7
22824         status = pthread_attr_setdetachstate(&attr, &detach);
22825         if( status < 0 ) status = errno;
22826 #else
22827         status = pthread_attr_setdetachstate(&attr, detach);
22828 #endif
22829         if( status ) return status;
22830         status = pthread_create( &t, &attr, task, NULL );
22831 #if HAVE_PTHREADS < 7
22832         if( status < 0 ) status = errno;
22833 #endif
22834         if( status ) return status;
22835 #else
22836         /* Draft 4 pthreads */
22837         status = pthread_create( &t, pthread_attr_default, task, NULL );
22838         if( status ) return errno;
22839
22840         /* give thread a chance to complete */
22841         /* it should remain joinable and hence detachable */
22842         sleep( 1 );
22843
22844         status = pthread_detach( &t );
22845         if( status ) return errno;
22846 #endif
22847
22848 #ifdef HAVE_LINUX_THREADS
22849         pthread_kill_other_threads_np();
22850 #endif
22851
22852         return 0;
22853
22854   ;
22855   return 0;
22856 }
22857 _ACEOF
22858 rm -f conftest.$ac_objext conftest$ac_exeext
22859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22860   (eval $ac_link) 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } &&
22867          { ac_try='test -z "$ac_c_werror_flag"
22868                          || test ! -s conftest.err'
22869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); }; } &&
22874          { ac_try='test -s conftest$ac_exeext'
22875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876   (eval $ac_try) 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ol_cv_pthread_lpthreads_lmach_lexc=yes
22881 else
22882   echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885 ol_cv_pthread_lpthreads_lmach_lexc=no
22886 fi
22887 rm -f conftest.err conftest.$ac_objext \
22888       conftest$ac_exeext conftest.$ac_ext
22889 else
22890   cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896
22897 /* pthread test headers */
22898 #include <pthread.h>
22899 #if HAVE_PTHREADS < 7
22900 #include <errno.h>
22901 #endif
22902 #ifndef NULL
22903 #define NULL (void*)0
22904 #endif
22905
22906 static void *task(p)
22907         void *p;
22908 {
22909         return (void *) (p == NULL);
22910 }
22911
22912
22913 int main(argc, argv)
22914         int argc;
22915         char **argv;
22916 {
22917
22918         /* pthread test function */
22919 #ifndef PTHREAD_CREATE_DETACHED
22920 #define PTHREAD_CREATE_DETACHED 1
22921 #endif
22922         pthread_t t;
22923         int status;
22924         int detach = PTHREAD_CREATE_DETACHED;
22925
22926 #if HAVE_PTHREADS > 4
22927         /* Final pthreads */
22928         pthread_attr_t attr;
22929
22930         status = pthread_attr_init(&attr);
22931         if( status ) return status;
22932
22933 #if HAVE_PTHREADS < 7
22934         status = pthread_attr_setdetachstate(&attr, &detach);
22935         if( status < 0 ) status = errno;
22936 #else
22937         status = pthread_attr_setdetachstate(&attr, detach);
22938 #endif
22939         if( status ) return status;
22940         status = pthread_create( &t, &attr, task, NULL );
22941 #if HAVE_PTHREADS < 7
22942         if( status < 0 ) status = errno;
22943 #endif
22944         if( status ) return status;
22945 #else
22946         /* Draft 4 pthreads */
22947         status = pthread_create( &t, pthread_attr_default, task, NULL );
22948         if( status ) return errno;
22949
22950         /* give thread a chance to complete */
22951         /* it should remain joinable and hence detachable */
22952         sleep( 1 );
22953
22954         status = pthread_detach( &t );
22955         if( status ) return errno;
22956 #endif
22957
22958 #ifdef HAVE_LINUX_THREADS
22959         pthread_kill_other_threads_np();
22960 #endif
22961
22962         return 0;
22963
22964 }
22965
22966 _ACEOF
22967 rm -f conftest$ac_exeext
22968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22969   (eval $ac_link) 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974   (eval $ac_try) 2>&5
22975   ac_status=$?
22976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977   (exit $ac_status); }; }; then
22978   ol_cv_pthread_lpthreads_lmach_lexc=yes
22979 else
22980   echo "$as_me: program exited with status $ac_status" >&5
22981 echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984 ( exit $ac_status )
22985 ol_cv_pthread_lpthreads_lmach_lexc=no
22986 fi
22987 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22988 fi
22989
22990                 # restore the LIBS
22991                 LIBS="$ol_LIBS"
22992
22993 fi
22994 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22995 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22996
22997         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22998                 ol_link_pthreads="-lpthreads -lmach -lexc"
22999                 ol_link_threads=posix
23000         fi
23001 fi
23002
23003                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23004 if test "$ol_link_threads" = no ; then
23005         # try -lpthreads -lexc
23006         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23007 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23008 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011
23012                 # save the flags
23013                 ol_LIBS="$LIBS"
23014                 LIBS="-lpthreads -lexc $LIBS"
23015
23016                 if test "$cross_compiling" = yes; then
23017   cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023
23024 /* pthread test headers */
23025 #include <pthread.h>
23026 #if HAVE_PTHREADS < 7
23027 #include <errno.h>
23028 #endif
23029 #ifndef NULL
23030 #define NULL (void*)0
23031 #endif
23032
23033 static void *task(p)
23034         void *p;
23035 {
23036         return (void *) (p == NULL);
23037 }
23038
23039 int
23040 main ()
23041 {
23042
23043         /* pthread test function */
23044 #ifndef PTHREAD_CREATE_DETACHED
23045 #define PTHREAD_CREATE_DETACHED 1
23046 #endif
23047         pthread_t t;
23048         int status;
23049         int detach = PTHREAD_CREATE_DETACHED;
23050
23051 #if HAVE_PTHREADS > 4
23052         /* Final pthreads */
23053         pthread_attr_t attr;
23054
23055         status = pthread_attr_init(&attr);
23056         if( status ) return status;
23057
23058 #if HAVE_PTHREADS < 7
23059         status = pthread_attr_setdetachstate(&attr, &detach);
23060         if( status < 0 ) status = errno;
23061 #else
23062         status = pthread_attr_setdetachstate(&attr, detach);
23063 #endif
23064         if( status ) return status;
23065         status = pthread_create( &t, &attr, task, NULL );
23066 #if HAVE_PTHREADS < 7
23067         if( status < 0 ) status = errno;
23068 #endif
23069         if( status ) return status;
23070 #else
23071         /* Draft 4 pthreads */
23072         status = pthread_create( &t, pthread_attr_default, task, NULL );
23073         if( status ) return errno;
23074
23075         /* give thread a chance to complete */
23076         /* it should remain joinable and hence detachable */
23077         sleep( 1 );
23078
23079         status = pthread_detach( &t );
23080         if( status ) return errno;
23081 #endif
23082
23083 #ifdef HAVE_LINUX_THREADS
23084         pthread_kill_other_threads_np();
23085 #endif
23086
23087         return 0;
23088
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095   (eval $ac_link) 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag"
23103                          || test ! -s conftest.err'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; } &&
23109          { ac_try='test -s conftest$ac_exeext'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; }; then
23115   ol_cv_pthread_lpthreads_lexc=yes
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 ol_cv_pthread_lpthreads_lexc=no
23121 fi
23122 rm -f conftest.err conftest.$ac_objext \
23123       conftest$ac_exeext conftest.$ac_ext
23124 else
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23135 #include <errno.h>
23136 #endif
23137 #ifndef NULL
23138 #define NULL (void*)0
23139 #endif
23140
23141 static void *task(p)
23142         void *p;
23143 {
23144         return (void *) (p == NULL);
23145 }
23146
23147
23148 int main(argc, argv)
23149         int argc;
23150         char **argv;
23151 {
23152
23153         /* pthread test function */
23154 #ifndef PTHREAD_CREATE_DETACHED
23155 #define PTHREAD_CREATE_DETACHED 1
23156 #endif
23157         pthread_t t;
23158         int status;
23159         int detach = PTHREAD_CREATE_DETACHED;
23160
23161 #if HAVE_PTHREADS > 4
23162         /* Final pthreads */
23163         pthread_attr_t attr;
23164
23165         status = pthread_attr_init(&attr);
23166         if( status ) return status;
23167
23168 #if HAVE_PTHREADS < 7
23169         status = pthread_attr_setdetachstate(&attr, &detach);
23170         if( status < 0 ) status = errno;
23171 #else
23172         status = pthread_attr_setdetachstate(&attr, detach);
23173 #endif
23174         if( status ) return status;
23175         status = pthread_create( &t, &attr, task, NULL );
23176 #if HAVE_PTHREADS < 7
23177         if( status < 0 ) status = errno;
23178 #endif
23179         if( status ) return status;
23180 #else
23181         /* Draft 4 pthreads */
23182         status = pthread_create( &t, pthread_attr_default, task, NULL );
23183         if( status ) return errno;
23184
23185         /* give thread a chance to complete */
23186         /* it should remain joinable and hence detachable */
23187         sleep( 1 );
23188
23189         status = pthread_detach( &t );
23190         if( status ) return errno;
23191 #endif
23192
23193 #ifdef HAVE_LINUX_THREADS
23194         pthread_kill_other_threads_np();
23195 #endif
23196
23197         return 0;
23198
23199 }
23200
23201 _ACEOF
23202 rm -f conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204   (eval $ac_link) 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209   (eval $ac_try) 2>&5
23210   ac_status=$?
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); }; }; then
23213   ol_cv_pthread_lpthreads_lexc=yes
23214 else
23215   echo "$as_me: program exited with status $ac_status" >&5
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219 ( exit $ac_status )
23220 ol_cv_pthread_lpthreads_lexc=no
23221 fi
23222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23223 fi
23224
23225                 # restore the LIBS
23226                 LIBS="$ol_LIBS"
23227
23228 fi
23229 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23230 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23231
23232         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23233                 ol_link_pthreads="-lpthreads -lexc"
23234                 ol_link_threads=posix
23235         fi
23236 fi
23237
23238
23239                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23240 if test "$ol_link_threads" = no ; then
23241         # try -lpthreads
23242         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23243 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23244 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247
23248                 # save the flags
23249                 ol_LIBS="$LIBS"
23250                 LIBS="-lpthreads $LIBS"
23251
23252                 if test "$cross_compiling" = yes; then
23253   cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259
23260 /* pthread test headers */
23261 #include <pthread.h>
23262 #if HAVE_PTHREADS < 7
23263 #include <errno.h>
23264 #endif
23265 #ifndef NULL
23266 #define NULL (void*)0
23267 #endif
23268
23269 static void *task(p)
23270         void *p;
23271 {
23272         return (void *) (p == NULL);
23273 }
23274
23275 int
23276 main ()
23277 {
23278
23279         /* pthread test function */
23280 #ifndef PTHREAD_CREATE_DETACHED
23281 #define PTHREAD_CREATE_DETACHED 1
23282 #endif
23283         pthread_t t;
23284         int status;
23285         int detach = PTHREAD_CREATE_DETACHED;
23286
23287 #if HAVE_PTHREADS > 4
23288         /* Final pthreads */
23289         pthread_attr_t attr;
23290
23291         status = pthread_attr_init(&attr);
23292         if( status ) return status;
23293
23294 #if HAVE_PTHREADS < 7
23295         status = pthread_attr_setdetachstate(&attr, &detach);
23296         if( status < 0 ) status = errno;
23297 #else
23298         status = pthread_attr_setdetachstate(&attr, detach);
23299 #endif
23300         if( status ) return status;
23301         status = pthread_create( &t, &attr, task, NULL );
23302 #if HAVE_PTHREADS < 7
23303         if( status < 0 ) status = errno;
23304 #endif
23305         if( status ) return status;
23306 #else
23307         /* Draft 4 pthreads */
23308         status = pthread_create( &t, pthread_attr_default, task, NULL );
23309         if( status ) return errno;
23310
23311         /* give thread a chance to complete */
23312         /* it should remain joinable and hence detachable */
23313         sleep( 1 );
23314
23315         status = pthread_detach( &t );
23316         if( status ) return errno;
23317 #endif
23318
23319 #ifdef HAVE_LINUX_THREADS
23320         pthread_kill_other_threads_np();
23321 #endif
23322
23323         return 0;
23324
23325   ;
23326   return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331   (eval $ac_link) 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -z "$ac_c_werror_flag"
23339                          || test ! -s conftest.err'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; } &&
23345          { ac_try='test -s conftest$ac_exeext'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   ol_cv_pthread_lib_lpthreads=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 ol_cv_pthread_lib_lpthreads=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext \
23359       conftest$ac_exeext conftest.$ac_ext
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367
23368 /* pthread test headers */
23369 #include <pthread.h>
23370 #if HAVE_PTHREADS < 7
23371 #include <errno.h>
23372 #endif
23373 #ifndef NULL
23374 #define NULL (void*)0
23375 #endif
23376
23377 static void *task(p)
23378         void *p;
23379 {
23380         return (void *) (p == NULL);
23381 }
23382
23383
23384 int main(argc, argv)
23385         int argc;
23386         char **argv;
23387 {
23388
23389         /* pthread test function */
23390 #ifndef PTHREAD_CREATE_DETACHED
23391 #define PTHREAD_CREATE_DETACHED 1
23392 #endif
23393         pthread_t t;
23394         int status;
23395         int detach = PTHREAD_CREATE_DETACHED;
23396
23397 #if HAVE_PTHREADS > 4
23398         /* Final pthreads */
23399         pthread_attr_t attr;
23400
23401         status = pthread_attr_init(&attr);
23402         if( status ) return status;
23403
23404 #if HAVE_PTHREADS < 7
23405         status = pthread_attr_setdetachstate(&attr, &detach);
23406         if( status < 0 ) status = errno;
23407 #else
23408         status = pthread_attr_setdetachstate(&attr, detach);
23409 #endif
23410         if( status ) return status;
23411         status = pthread_create( &t, &attr, task, NULL );
23412 #if HAVE_PTHREADS < 7
23413         if( status < 0 ) status = errno;
23414 #endif
23415         if( status ) return status;
23416 #else
23417         /* Draft 4 pthreads */
23418         status = pthread_create( &t, pthread_attr_default, task, NULL );
23419         if( status ) return errno;
23420
23421         /* give thread a chance to complete */
23422         /* it should remain joinable and hence detachable */
23423         sleep( 1 );
23424
23425         status = pthread_detach( &t );
23426         if( status ) return errno;
23427 #endif
23428
23429 #ifdef HAVE_LINUX_THREADS
23430         pthread_kill_other_threads_np();
23431 #endif
23432
23433         return 0;
23434
23435 }
23436
23437 _ACEOF
23438 rm -f conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440   (eval $ac_link) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445   (eval $ac_try) 2>&5
23446   ac_status=$?
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); }; }; then
23449   ol_cv_pthread_lib_lpthreads=yes
23450 else
23451   echo "$as_me: program exited with status $ac_status" >&5
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 ( exit $ac_status )
23456 ol_cv_pthread_lib_lpthreads=no
23457 fi
23458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23459 fi
23460
23461                 # restore the LIBS
23462                 LIBS="$ol_LIBS"
23463
23464 fi
23465 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23466 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23467
23468         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23469                 ol_link_pthreads="-lpthreads"
23470                 ol_link_threads=posix
23471         fi
23472 fi
23473
23474
23475                 if test $ol_link_threads != no ; then
23476                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23477
23478                                                 save_CPPFLAGS="$CPPFLAGS"
23479                         save_LIBS="$LIBS"
23480                         LIBS="$LTHREAD_LIBS $LIBS"
23481
23482
23483
23484
23485 for ac_func in sched_yield pthread_yield thr_yield
23486 do
23487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23488 echo "$as_me:$LINENO: checking for $ac_func" >&5
23489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23490 if eval "test \"\${$as_ac_var+set}\" = set"; then
23491   echo $ECHO_N "(cached) $ECHO_C" >&6
23492 else
23493   cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h.  */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h.  */
23499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23501 #define $ac_func innocuous_$ac_func
23502
23503 /* System header to define __stub macros and hopefully few prototypes,
23504     which can conflict with char $ac_func (); below.
23505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506     <limits.h> exists even on freestanding compilers.  */
23507
23508 #ifdef __STDC__
23509 # include <limits.h>
23510 #else
23511 # include <assert.h>
23512 #endif
23513
23514 #undef $ac_func
23515
23516 /* Override any gcc2 internal prototype to avoid an error.  */
23517 #ifdef __cplusplus
23518 extern "C"
23519 {
23520 #endif
23521 /* We use char because int might match the return type of a gcc2
23522    builtin and then its argument prototype would still apply.  */
23523 char $ac_func ();
23524 /* The GNU C library defines this for functions which it implements
23525     to always fail with ENOSYS.  Some functions are actually named
23526     something starting with __ and the normal name is an alias.  */
23527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23528 choke me
23529 #else
23530 char (*f) () = $ac_func;
23531 #endif
23532 #ifdef __cplusplus
23533 }
23534 #endif
23535
23536 int
23537 main ()
23538 {
23539 return f != $ac_func;
23540   ;
23541   return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546   (eval $ac_link) 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } &&
23553          { ac_try='test -z "$ac_c_werror_flag"
23554                          || test ! -s conftest.err'
23555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556   (eval $ac_try) 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); }; } &&
23560          { ac_try='test -s conftest$ac_exeext'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   eval "$as_ac_var=yes"
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571 eval "$as_ac_var=no"
23572 fi
23573 rm -f conftest.err conftest.$ac_objext \
23574       conftest$ac_exeext conftest.$ac_ext
23575 fi
23576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23578 if test `eval echo '${'$as_ac_var'}'` = yes; then
23579   cat >>confdefs.h <<_ACEOF
23580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23581 _ACEOF
23582
23583 fi
23584 done
23585
23586
23587                         if test $ac_cv_func_sched_yield = no &&
23588                            test $ac_cv_func_pthread_yield = no &&
23589                            test $ac_cv_func_thr_yield = no ; then
23590                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23591 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23592 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23593   echo $ECHO_N "(cached) $ECHO_C" >&6
23594 else
23595   ac_check_lib_save_LIBS=$LIBS
23596 LIBS="-lrt  $LIBS"
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h.  */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h.  */
23603
23604 /* Override any gcc2 internal prototype to avoid an error.  */
23605 #ifdef __cplusplus
23606 extern "C"
23607 #endif
23608 /* We use char because int might match the return type of a gcc2
23609    builtin and then its argument prototype would still apply.  */
23610 char sched_yield ();
23611 int
23612 main ()
23613 {
23614 sched_yield ();
23615   ;
23616   return 0;
23617 }
23618 _ACEOF
23619 rm -f conftest.$ac_objext conftest$ac_exeext
23620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23621   (eval $ac_link) 2>conftest.er1
23622   ac_status=$?
23623   grep -v '^ *+' conftest.er1 >conftest.err
23624   rm -f conftest.er1
23625   cat conftest.err >&5
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } &&
23628          { ac_try='test -z "$ac_c_werror_flag"
23629                          || test ! -s conftest.err'
23630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23631   (eval $ac_try) 2>&5
23632   ac_status=$?
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); }; } &&
23635          { ac_try='test -s conftest$ac_exeext'
23636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23637   (eval $ac_try) 2>&5
23638   ac_status=$?
23639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640   (exit $ac_status); }; }; then
23641   ac_cv_lib_rt_sched_yield=yes
23642 else
23643   echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 ac_cv_lib_rt_sched_yield=no
23647 fi
23648 rm -f conftest.err conftest.$ac_objext \
23649       conftest$ac_exeext conftest.$ac_ext
23650 LIBS=$ac_check_lib_save_LIBS
23651 fi
23652 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23653 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23654 if test $ac_cv_lib_rt_sched_yield = yes; then
23655   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23656
23657 cat >>confdefs.h <<\_ACEOF
23658 #define HAVE_SCHED_YIELD 1
23659 _ACEOF
23660
23661                                         ac_cv_func_sched_yield=yes
23662 else
23663   ac_cv_func_sched_yield=no
23664 fi
23665
23666                         fi
23667                         if test $ac_cv_func_sched_yield = no &&
23668                            test $ac_cv_func_pthread_yield = no &&
23669                            test "$ac_cv_func_thr_yield" = no ; then
23670                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23671 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23672                         fi
23673
23674
23675 for ac_func in pthread_kill
23676 do
23677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23678 echo "$as_me:$LINENO: checking for $ac_func" >&5
23679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23680 if eval "test \"\${$as_ac_var+set}\" = set"; then
23681   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 else
23683   cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23691 #define $ac_func innocuous_$ac_func
23692
23693 /* System header to define __stub macros and hopefully few prototypes,
23694     which can conflict with char $ac_func (); below.
23695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696     <limits.h> exists even on freestanding compilers.  */
23697
23698 #ifdef __STDC__
23699 # include <limits.h>
23700 #else
23701 # include <assert.h>
23702 #endif
23703
23704 #undef $ac_func
23705
23706 /* Override any gcc2 internal prototype to avoid an error.  */
23707 #ifdef __cplusplus
23708 extern "C"
23709 {
23710 #endif
23711 /* We use char because int might match the return type of a gcc2
23712    builtin and then its argument prototype would still apply.  */
23713 char $ac_func ();
23714 /* The GNU C library defines this for functions which it implements
23715     to always fail with ENOSYS.  Some functions are actually named
23716     something starting with __ and the normal name is an alias.  */
23717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23718 choke me
23719 #else
23720 char (*f) () = $ac_func;
23721 #endif
23722 #ifdef __cplusplus
23723 }
23724 #endif
23725
23726 int
23727 main ()
23728 {
23729 return f != $ac_func;
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 rm -f conftest.$ac_objext conftest$ac_exeext
23735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23736   (eval $ac_link) 2>conftest.er1
23737   ac_status=$?
23738   grep -v '^ *+' conftest.er1 >conftest.err
23739   rm -f conftest.er1
23740   cat conftest.err >&5
23741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742   (exit $ac_status); } &&
23743          { ac_try='test -z "$ac_c_werror_flag"
23744                          || test ! -s conftest.err'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; } &&
23750          { ac_try='test -s conftest$ac_exeext'
23751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752   (eval $ac_try) 2>&5
23753   ac_status=$?
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); }; }; then
23756   eval "$as_ac_var=yes"
23757 else
23758   echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761 eval "$as_ac_var=no"
23762 fi
23763 rm -f conftest.err conftest.$ac_objext \
23764       conftest$ac_exeext conftest.$ac_ext
23765 fi
23766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23768 if test `eval echo '${'$as_ac_var'}'` = yes; then
23769   cat >>confdefs.h <<_ACEOF
23770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23771 _ACEOF
23772
23773 fi
23774 done
23775
23776
23777                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23778 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23779 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23780   echo $ECHO_N "(cached) $ECHO_C" >&6
23781 else
23782
23783                                                                 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h.  */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h.  */
23789
23790 #include <pthread.h>
23791 pthread_rwlock_t rwlock;
23792
23793 int
23794 main ()
23795 {
23796 pthread_rwlock_destroy(&rwlock);
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23803   (eval $ac_link) 2>conftest.er1
23804   ac_status=$?
23805   grep -v '^ *+' conftest.er1 >conftest.err
23806   rm -f conftest.er1
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); } &&
23810          { ac_try='test -z "$ac_c_werror_flag"
23811                          || test ! -s conftest.err'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; } &&
23817          { ac_try='test -s conftest$ac_exeext'
23818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); }; }; then
23823   ol_cv_func_pthread_rwlock_destroy=yes
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828 ol_cv_func_pthread_rwlock_destroy=no
23829 fi
23830 rm -f conftest.err conftest.$ac_objext \
23831       conftest$ac_exeext conftest.$ac_ext
23832
23833 fi
23834 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23835 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23836                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23837
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23840 _ACEOF
23841
23842                         fi
23843
23844                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23845 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23846 if test "${ol_cv_func_pthread_detach+set}" = set; then
23847   echo $ECHO_N "(cached) $ECHO_C" >&6
23848 else
23849
23850                                                                 cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856
23857 #include <pthread.h>
23858 #ifndef NULL
23859 #define NULL (void*)0
23860 #endif
23861
23862 int
23863 main ()
23864 {
23865 pthread_detach(NULL);
23866   ;
23867   return 0;
23868 }
23869 _ACEOF
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872   (eval $ac_link) 2>conftest.er1
23873   ac_status=$?
23874   grep -v '^ *+' conftest.er1 >conftest.err
23875   rm -f conftest.er1
23876   cat conftest.err >&5
23877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878   (exit $ac_status); } &&
23879          { ac_try='test -z "$ac_c_werror_flag"
23880                          || test ! -s conftest.err'
23881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882   (eval $ac_try) 2>&5
23883   ac_status=$?
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); }; } &&
23886          { ac_try='test -s conftest$ac_exeext'
23887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888   (eval $ac_try) 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); }; }; then
23892   ol_cv_func_pthread_detach=yes
23893 else
23894   echo "$as_me: failed program was:" >&5
23895 sed 's/^/| /' conftest.$ac_ext >&5
23896
23897 ol_cv_func_pthread_detach=no
23898 fi
23899 rm -f conftest.err conftest.$ac_objext \
23900       conftest$ac_exeext conftest.$ac_ext
23901
23902 fi
23903 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23904 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23905
23906                         if test $ol_cv_func_pthread_detach = no ; then
23907                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23908 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23909    { (exit 1); exit 1; }; }
23910                         fi
23911
23912
23913 cat >>confdefs.h <<\_ACEOF
23914 #define HAVE_PTHREAD_DETACH 1
23915 _ACEOF
23916
23917
23918
23919
23920
23921
23922 for ac_func in \
23923                                 pthread_setconcurrency \
23924                                 pthread_getconcurrency \
23925                                 thr_setconcurrency \
23926                                 thr_getconcurrency \
23927
23928 do
23929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23930 echo "$as_me:$LINENO: checking for $ac_func" >&5
23931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23932 if eval "test \"\${$as_ac_var+set}\" = set"; then
23933   echo $ECHO_N "(cached) $ECHO_C" >&6
23934 else
23935   cat >conftest.$ac_ext <<_ACEOF
23936 /* confdefs.h.  */
23937 _ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h.  */
23941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23943 #define $ac_func innocuous_$ac_func
23944
23945 /* System header to define __stub macros and hopefully few prototypes,
23946     which can conflict with char $ac_func (); below.
23947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23948     <limits.h> exists even on freestanding compilers.  */
23949
23950 #ifdef __STDC__
23951 # include <limits.h>
23952 #else
23953 # include <assert.h>
23954 #endif
23955
23956 #undef $ac_func
23957
23958 /* Override any gcc2 internal prototype to avoid an error.  */
23959 #ifdef __cplusplus
23960 extern "C"
23961 {
23962 #endif
23963 /* We use char because int might match the return type of a gcc2
23964    builtin and then its argument prototype would still apply.  */
23965 char $ac_func ();
23966 /* The GNU C library defines this for functions which it implements
23967     to always fail with ENOSYS.  Some functions are actually named
23968     something starting with __ and the normal name is an alias.  */
23969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23970 choke me
23971 #else
23972 char (*f) () = $ac_func;
23973 #endif
23974 #ifdef __cplusplus
23975 }
23976 #endif
23977
23978 int
23979 main ()
23980 {
23981 return f != $ac_func;
23982   ;
23983   return 0;
23984 }
23985 _ACEOF
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988   (eval $ac_link) 2>conftest.er1
23989   ac_status=$?
23990   grep -v '^ *+' conftest.er1 >conftest.err
23991   rm -f conftest.er1
23992   cat conftest.err >&5
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } &&
23995          { ac_try='test -z "$ac_c_werror_flag"
23996                          || test ! -s conftest.err'
23997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998   (eval $ac_try) 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); }; } &&
24002          { ac_try='test -s conftest$ac_exeext'
24003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004   (eval $ac_try) 2>&5
24005   ac_status=$?
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); }; }; then
24008   eval "$as_ac_var=yes"
24009 else
24010   echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 eval "$as_ac_var=no"
24014 fi
24015 rm -f conftest.err conftest.$ac_objext \
24016       conftest$ac_exeext conftest.$ac_ext
24017 fi
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24020 if test `eval echo '${'$as_ac_var'}'` = yes; then
24021   cat >>confdefs.h <<_ACEOF
24022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24023 _ACEOF
24024
24025 fi
24026 done
24027
24028
24029
24030
24031 for ac_func in pthread_kill_other_threads_np
24032 do
24033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24034 echo "$as_me:$LINENO: checking for $ac_func" >&5
24035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24036 if eval "test \"\${$as_ac_var+set}\" = set"; then
24037   echo $ECHO_N "(cached) $ECHO_C" >&6
24038 else
24039   cat >conftest.$ac_ext <<_ACEOF
24040 /* confdefs.h.  */
24041 _ACEOF
24042 cat confdefs.h >>conftest.$ac_ext
24043 cat >>conftest.$ac_ext <<_ACEOF
24044 /* end confdefs.h.  */
24045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24047 #define $ac_func innocuous_$ac_func
24048
24049 /* System header to define __stub macros and hopefully few prototypes,
24050     which can conflict with char $ac_func (); below.
24051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24052     <limits.h> exists even on freestanding compilers.  */
24053
24054 #ifdef __STDC__
24055 # include <limits.h>
24056 #else
24057 # include <assert.h>
24058 #endif
24059
24060 #undef $ac_func
24061
24062 /* Override any gcc2 internal prototype to avoid an error.  */
24063 #ifdef __cplusplus
24064 extern "C"
24065 {
24066 #endif
24067 /* We use char because int might match the return type of a gcc2
24068    builtin and then its argument prototype would still apply.  */
24069 char $ac_func ();
24070 /* The GNU C library defines this for functions which it implements
24071     to always fail with ENOSYS.  Some functions are actually named
24072     something starting with __ and the normal name is an alias.  */
24073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24074 choke me
24075 #else
24076 char (*f) () = $ac_func;
24077 #endif
24078 #ifdef __cplusplus
24079 }
24080 #endif
24081
24082 int
24083 main ()
24084 {
24085 return f != $ac_func;
24086   ;
24087   return 0;
24088 }
24089 _ACEOF
24090 rm -f conftest.$ac_objext conftest$ac_exeext
24091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24092   (eval $ac_link) 2>conftest.er1
24093   ac_status=$?
24094   grep -v '^ *+' conftest.er1 >conftest.err
24095   rm -f conftest.er1
24096   cat conftest.err >&5
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); } &&
24099          { ac_try='test -z "$ac_c_werror_flag"
24100                          || test ! -s conftest.err'
24101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102   (eval $ac_try) 2>&5
24103   ac_status=$?
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); }; } &&
24106          { ac_try='test -s conftest$ac_exeext'
24107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108   (eval $ac_try) 2>&5
24109   ac_status=$?
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); }; }; then
24112   eval "$as_ac_var=yes"
24113 else
24114   echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24116
24117 eval "$as_ac_var=no"
24118 fi
24119 rm -f conftest.err conftest.$ac_objext \
24120       conftest$ac_exeext conftest.$ac_ext
24121 fi
24122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24124 if test `eval echo '${'$as_ac_var'}'` = yes; then
24125   cat >>confdefs.h <<_ACEOF
24126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24127 _ACEOF
24128
24129 fi
24130 done
24131
24132         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24133 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24134 if test "${ol_cv_sys_linux_threads+set}" = set; then
24135   echo $ECHO_N "(cached) $ECHO_C" >&6
24136 else
24137   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24138 fi
24139 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24140 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24141
24142
24143
24144
24145         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24146 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24147 if test "${ol_cv_linux_threads+set}" = set; then
24148   echo $ECHO_N "(cached) $ECHO_C" >&6
24149 else
24150
24151                 if test $ol_cv_header_linux_threads = yes &&
24152                    test $ol_cv_sys_linux_threads = yes; then
24153                         ol_cv_linux_threads=yes
24154                 elif test $ol_cv_header_linux_threads = no &&
24155                      test $ol_cv_sys_linux_threads = no; then
24156                         ol_cv_linux_threads=no
24157                 else
24158                         ol_cv_linux_threads=error
24159                 fi
24160
24161 fi
24162 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24163 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24164
24165
24166                         if test $ol_cv_linux_threads = error; then
24167                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24168 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24169    { (exit 1); exit 1; }; };
24170                         fi
24171
24172                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24173 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24174 if test "${ol_cv_pthread_create_works+set}" = set; then
24175   echo $ECHO_N "(cached) $ECHO_C" >&6
24176 else
24177
24178                         if test "$cross_compiling" = yes; then
24179                                 ol_cv_pthread_create_works=yes
24180 else
24181   cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h.  */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h.  */
24187
24188 /* pthread test headers */
24189 #include <pthread.h>
24190 #if HAVE_PTHREADS < 7
24191 #include <errno.h>
24192 #endif
24193 #ifndef NULL
24194 #define NULL (void*)0
24195 #endif
24196
24197 static void *task(p)
24198         void *p;
24199 {
24200         return (void *) (p == NULL);
24201 }
24202
24203
24204 int main(argc, argv)
24205         int argc;
24206         char **argv;
24207 {
24208
24209         /* pthread test function */
24210 #ifndef PTHREAD_CREATE_DETACHED
24211 #define PTHREAD_CREATE_DETACHED 1
24212 #endif
24213         pthread_t t;
24214         int status;
24215         int detach = PTHREAD_CREATE_DETACHED;
24216
24217 #if HAVE_PTHREADS > 4
24218         /* Final pthreads */
24219         pthread_attr_t attr;
24220
24221         status = pthread_attr_init(&attr);
24222         if( status ) return status;
24223
24224 #if HAVE_PTHREADS < 7
24225         status = pthread_attr_setdetachstate(&attr, &detach);
24226         if( status < 0 ) status = errno;
24227 #else
24228         status = pthread_attr_setdetachstate(&attr, detach);
24229 #endif
24230         if( status ) return status;
24231         status = pthread_create( &t, &attr, task, NULL );
24232 #if HAVE_PTHREADS < 7
24233         if( status < 0 ) status = errno;
24234 #endif
24235         if( status ) return status;
24236 #else
24237         /* Draft 4 pthreads */
24238         status = pthread_create( &t, pthread_attr_default, task, NULL );
24239         if( status ) return errno;
24240
24241         /* give thread a chance to complete */
24242         /* it should remain joinable and hence detachable */
24243         sleep( 1 );
24244
24245         status = pthread_detach( &t );
24246         if( status ) return errno;
24247 #endif
24248
24249 #ifdef HAVE_LINUX_THREADS
24250         pthread_kill_other_threads_np();
24251 #endif
24252
24253         return 0;
24254
24255 }
24256
24257 _ACEOF
24258 rm -f conftest$ac_exeext
24259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260   (eval $ac_link) 2>&5
24261   ac_status=$?
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265   (eval $ac_try) 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   ol_cv_pthread_create_works=yes
24270 else
24271   echo "$as_me: program exited with status $ac_status" >&5
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275 ( exit $ac_status )
24276 ol_cv_pthread_create_works=no
24277 fi
24278 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 fi
24280 fi
24281 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24282 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24283
24284                         if test $ol_cv_pthread_create_works = no ; then
24285                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24286 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24287    { (exit 1); exit 1; }; }
24288                         fi
24289
24290                         ol_replace_broken_yield=no
24291
24292                         if test $ol_replace_broken_yield = yes ; then
24293
24294 cat >>confdefs.h <<\_ACEOF
24295 #define REPLACE_BROKEN_YIELD 1
24296 _ACEOF
24297
24298                         fi
24299
24300                                                 if test $ol_with_yielding_select = auto ; then
24301                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24302 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24303 if test "${ol_cv_pthread_select_yields+set}" = set; then
24304   echo $ECHO_N "(cached) $ECHO_C" >&6
24305 else
24306
24307                                 if test "$cross_compiling" = yes; then
24308   ol_cv_pthread_select_yields=cross
24309 else
24310   cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h.  */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h.  */
24316
24317 #include <sys/types.h>
24318 #include <sys/time.h>
24319 #include <unistd.h>
24320 #include <pthread.h>
24321 #ifndef NULL
24322 #define NULL (void*) 0
24323 #endif
24324
24325 static int fildes[2];
24326
24327 static void *task(p)
24328         void *p;
24329 {
24330         int i;
24331         struct timeval tv;
24332
24333         fd_set rfds;
24334
24335         tv.tv_sec=10;
24336         tv.tv_usec=0;
24337
24338         FD_ZERO(&rfds);
24339         FD_SET(fildes[0], &rfds);
24340
24341         /* we're not interested in any fds */
24342         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24343
24344         if(i < 0) {
24345                 perror("select");
24346                 exit(10);
24347         }
24348
24349         exit(0); /* if we exit here, the select blocked the whole process */
24350 }
24351
24352 int main(argc, argv)
24353         int argc;
24354         char **argv;
24355 {
24356         pthread_t t;
24357
24358         /* create a pipe to select */
24359         if(pipe(&fildes[0])) {
24360                 perror("select");
24361                 exit(1);
24362         }
24363
24364 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24365         (void) pthread_setconcurrency(2);
24366 #else
24367 #ifdef HAVE_THR_SETCONCURRENCY
24368         /* Set Solaris LWP concurrency to 2 */
24369         thr_setconcurrency(2);
24370 #endif
24371 #endif
24372
24373 #if HAVE_PTHREADS < 6
24374         pthread_create(&t, pthread_attr_default, task, NULL);
24375 #else
24376         pthread_create(&t, NULL, task, NULL);
24377 #endif
24378
24379         /* make sure task runs first */
24380 #ifdef HAVE_THR_YIELD
24381         thr_yield();
24382 #elif defined( HAVE_SCHED_YIELD )
24383         sched_yield();
24384 #elif defined( HAVE_PTHREAD_YIELD )
24385         pthread_yield();
24386 #endif
24387
24388         exit(2);
24389 }
24390 _ACEOF
24391 rm -f conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393   (eval $ac_link) 2>&5
24394   ac_status=$?
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398   (eval $ac_try) 2>&5
24399   ac_status=$?
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); }; }; then
24402   ol_cv_pthread_select_yields=no
24403 else
24404   echo "$as_me: program exited with status $ac_status" >&5
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.$ac_ext >&5
24407
24408 ( exit $ac_status )
24409 ol_cv_pthread_select_yields=yes
24410 fi
24411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24412 fi
24413 fi
24414 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24415 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24416
24417                                 if test $ol_cv_pthread_select_yields = cross ; then
24418                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24419 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24420    { (exit 1); exit 1; }; }
24421                                 fi
24422
24423                                 if test $ol_cv_pthread_select_yields = yes ; then
24424                                         ol_with_yielding_select=yes
24425                                 fi
24426                         fi
24427
24428                                                 CPPFLAGS="$save_CPPFLAGS"
24429                         LIBS="$save_LIBS"
24430                 else
24431                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24432 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24433    { (exit 1); exit 1; }; }
24434                 fi
24435         fi
24436
24437         if test $ol_with_threads = posix ; then
24438                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24439 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24440    { (exit 1); exit 1; }; }
24441         fi
24442         ;;
24443 esac
24444
24445 case $ol_with_threads in auto | yes | mach)
24446
24447
24448
24449 for ac_header in mach/cthreads.h cthreads.h
24450 do
24451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24453   echo "$as_me:$LINENO: checking for $ac_header" >&5
24454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24456   echo $ECHO_N "(cached) $ECHO_C" >&6
24457 fi
24458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24460 else
24461   # Is the header compilable?
24462 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24464 cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 $ac_includes_default
24471 #include <$ac_header>
24472 _ACEOF
24473 rm -f conftest.$ac_objext
24474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24475   (eval $ac_compile) 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } &&
24482          { ac_try='test -z "$ac_c_werror_flag"
24483                          || test ! -s conftest.err'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; } &&
24489          { ac_try='test -s conftest.$ac_objext'
24490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; }; then
24495   ac_header_compiler=yes
24496 else
24497   echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.$ac_ext >&5
24499
24500 ac_header_compiler=no
24501 fi
24502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24504 echo "${ECHO_T}$ac_header_compiler" >&6
24505
24506 # Is the header present?
24507 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24509 cat >conftest.$ac_ext <<_ACEOF
24510 /* confdefs.h.  */
24511 _ACEOF
24512 cat confdefs.h >>conftest.$ac_ext
24513 cat >>conftest.$ac_ext <<_ACEOF
24514 /* end confdefs.h.  */
24515 #include <$ac_header>
24516 _ACEOF
24517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24519   ac_status=$?
24520   grep -v '^ *+' conftest.er1 >conftest.err
24521   rm -f conftest.er1
24522   cat conftest.err >&5
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); } >/dev/null; then
24525   if test -s conftest.err; then
24526     ac_cpp_err=$ac_c_preproc_warn_flag
24527     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24528   else
24529     ac_cpp_err=
24530   fi
24531 else
24532   ac_cpp_err=yes
24533 fi
24534 if test -z "$ac_cpp_err"; then
24535   ac_header_preproc=yes
24536 else
24537   echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540   ac_header_preproc=no
24541 fi
24542 rm -f conftest.err conftest.$ac_ext
24543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24544 echo "${ECHO_T}$ac_header_preproc" >&6
24545
24546 # So?  What about this header?
24547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24548   yes:no: )
24549     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24553     ac_header_preproc=yes
24554     ;;
24555   no:yes:* )
24556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24558     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24559 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24560     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24562     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24563 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24564     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24566     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24568     (
24569       cat <<\_ASBOX
24570 ## --------------------------------------------- ##
24571 ## Report this to <http://www.openldap.org/its/> ##
24572 ## --------------------------------------------- ##
24573 _ASBOX
24574     ) |
24575       sed "s/^/$as_me: WARNING:     /" >&2
24576     ;;
24577 esac
24578 echo "$as_me:$LINENO: checking for $ac_header" >&5
24579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24581   echo $ECHO_N "(cached) $ECHO_C" >&6
24582 else
24583   eval "$as_ac_Header=\$ac_header_preproc"
24584 fi
24585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24587
24588 fi
24589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24590   cat >>confdefs.h <<_ACEOF
24591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24592 _ACEOF
24593
24594 fi
24595
24596 done
24597
24598         if test $ac_cv_header_mach_cthreads_h = yes ; then
24599                 ol_with_threads=found
24600
24601                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24602 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24603 if test "${ac_cv_func_cthread_fork+set}" = set; then
24604   echo $ECHO_N "(cached) $ECHO_C" >&6
24605 else
24606   cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24614 #define cthread_fork innocuous_cthread_fork
24615
24616 /* System header to define __stub macros and hopefully few prototypes,
24617     which can conflict with char cthread_fork (); below.
24618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24619     <limits.h> exists even on freestanding compilers.  */
24620
24621 #ifdef __STDC__
24622 # include <limits.h>
24623 #else
24624 # include <assert.h>
24625 #endif
24626
24627 #undef cthread_fork
24628
24629 /* Override any gcc2 internal prototype to avoid an error.  */
24630 #ifdef __cplusplus
24631 extern "C"
24632 {
24633 #endif
24634 /* We use char because int might match the return type of a gcc2
24635    builtin and then its argument prototype would still apply.  */
24636 char cthread_fork ();
24637 /* The GNU C library defines this for functions which it implements
24638     to always fail with ENOSYS.  Some functions are actually named
24639     something starting with __ and the normal name is an alias.  */
24640 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24641 choke me
24642 #else
24643 char (*f) () = cthread_fork;
24644 #endif
24645 #ifdef __cplusplus
24646 }
24647 #endif
24648
24649 int
24650 main ()
24651 {
24652 return f != cthread_fork;
24653   ;
24654   return 0;
24655 }
24656 _ACEOF
24657 rm -f conftest.$ac_objext conftest$ac_exeext
24658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24659   (eval $ac_link) 2>conftest.er1
24660   ac_status=$?
24661   grep -v '^ *+' conftest.er1 >conftest.err
24662   rm -f conftest.er1
24663   cat conftest.err >&5
24664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665   (exit $ac_status); } &&
24666          { ac_try='test -z "$ac_c_werror_flag"
24667                          || test ! -s conftest.err'
24668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669   (eval $ac_try) 2>&5
24670   ac_status=$?
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); }; } &&
24673          { ac_try='test -s conftest$ac_exeext'
24674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675   (eval $ac_try) 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); }; }; then
24679   ac_cv_func_cthread_fork=yes
24680 else
24681   echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24683
24684 ac_cv_func_cthread_fork=no
24685 fi
24686 rm -f conftest.err conftest.$ac_objext \
24687       conftest$ac_exeext conftest.$ac_ext
24688 fi
24689 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24690 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24691 if test $ac_cv_func_cthread_fork = yes; then
24692   ol_link_threads=yes
24693 fi
24694
24695
24696                 if test $ol_link_threads = no ; then
24697                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24698 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24699 if test "${ol_cv_cthread_all_load+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702
24703                                                                 save_LIBS="$LIBS"
24704                                 LIBS="-all_load $LIBS"
24705                                 cat >conftest.$ac_ext <<_ACEOF
24706 /* confdefs.h.  */
24707 _ACEOF
24708 cat confdefs.h >>conftest.$ac_ext
24709 cat >>conftest.$ac_ext <<_ACEOF
24710 /* end confdefs.h.  */
24711 #include <mach/cthreads.h>
24712 int
24713 main ()
24714 {
24715
24716                                         cthread_fork((void *)0, (void *)0);
24717
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext conftest$ac_exeext
24723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24724   (eval $ac_link) 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } &&
24731          { ac_try='test -z "$ac_c_werror_flag"
24732                          || test ! -s conftest.err'
24733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734   (eval $ac_try) 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); }; } &&
24738          { ac_try='test -s conftest$ac_exeext'
24739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740   (eval $ac_try) 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   ol_cv_cthread_all_load=yes
24745 else
24746   echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749 ol_cv_cthread_all_load=no
24750 fi
24751 rm -f conftest.err conftest.$ac_objext \
24752       conftest$ac_exeext conftest.$ac_ext
24753                                                                 LIBS="$save_LIBS"
24754
24755 fi
24756 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24757 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24758
24759                         if test $ol_cv_cthread_all_load = yes ; then
24760                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24761                                 ol_link_threads=mach
24762                                 ol_with_threads=found
24763                         fi
24764                 fi
24765
24766         elif test $ac_cv_header_cthreads_h = yes ; then
24767
24768                 ol_with_threads=found
24769
24770                                 save_LIBS="$LIBS"
24771                 LIBS="$LIBS -lthreads"
24772                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24773 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24774 if test "${ac_cv_func_cthread_fork+set}" = set; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   cat >conftest.$ac_ext <<_ACEOF
24778 /* confdefs.h.  */
24779 _ACEOF
24780 cat confdefs.h >>conftest.$ac_ext
24781 cat >>conftest.$ac_ext <<_ACEOF
24782 /* end confdefs.h.  */
24783 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24785 #define cthread_fork innocuous_cthread_fork
24786
24787 /* System header to define __stub macros and hopefully few prototypes,
24788     which can conflict with char cthread_fork (); below.
24789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24790     <limits.h> exists even on freestanding compilers.  */
24791
24792 #ifdef __STDC__
24793 # include <limits.h>
24794 #else
24795 # include <assert.h>
24796 #endif
24797
24798 #undef cthread_fork
24799
24800 /* Override any gcc2 internal prototype to avoid an error.  */
24801 #ifdef __cplusplus
24802 extern "C"
24803 {
24804 #endif
24805 /* We use char because int might match the return type of a gcc2
24806    builtin and then its argument prototype would still apply.  */
24807 char cthread_fork ();
24808 /* The GNU C library defines this for functions which it implements
24809     to always fail with ENOSYS.  Some functions are actually named
24810     something starting with __ and the normal name is an alias.  */
24811 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24812 choke me
24813 #else
24814 char (*f) () = cthread_fork;
24815 #endif
24816 #ifdef __cplusplus
24817 }
24818 #endif
24819
24820 int
24821 main ()
24822 {
24823 return f != cthread_fork;
24824   ;
24825   return 0;
24826 }
24827 _ACEOF
24828 rm -f conftest.$ac_objext conftest$ac_exeext
24829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24830   (eval $ac_link) 2>conftest.er1
24831   ac_status=$?
24832   grep -v '^ *+' conftest.er1 >conftest.err
24833   rm -f conftest.er1
24834   cat conftest.err >&5
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); } &&
24837          { ac_try='test -z "$ac_c_werror_flag"
24838                          || test ! -s conftest.err'
24839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840   (eval $ac_try) 2>&5
24841   ac_status=$?
24842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843   (exit $ac_status); }; } &&
24844          { ac_try='test -s conftest$ac_exeext'
24845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846   (eval $ac_try) 2>&5
24847   ac_status=$?
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); }; }; then
24850   ac_cv_func_cthread_fork=yes
24851 else
24852   echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24854
24855 ac_cv_func_cthread_fork=no
24856 fi
24857 rm -f conftest.err conftest.$ac_objext \
24858       conftest$ac_exeext conftest.$ac_ext
24859 fi
24860 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24861 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24862 if test $ac_cv_func_cthread_fork = yes; then
24863   ol_link_threads=yes
24864 fi
24865
24866                 LIBS="$save_LIBS"
24867
24868                 if test $ol_link_threads = yes ; then
24869                         LTHREAD_LIBS="-lthreads"
24870                         ol_link_threads=mach
24871                         ol_with_threads=found
24872                 else
24873                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24874 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24875    { (exit 1); exit 1; }; }
24876                 fi
24877
24878         elif test $ol_with_threads = mach ; then
24879                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24880 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24881    { (exit 1); exit 1; }; }
24882         fi
24883
24884         if test $ol_link_threads = mach ; then
24885
24886 cat >>confdefs.h <<\_ACEOF
24887 #define HAVE_MACH_CTHREADS 1
24888 _ACEOF
24889
24890         elif test $ol_with_threads = found ; then
24891                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24892 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24893    { (exit 1); exit 1; }; }
24894         fi
24895         ;;
24896 esac
24897
24898 case $ol_with_threads in auto | yes | pth)
24899
24900
24901 for ac_header in pth.h
24902 do
24903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24905   echo "$as_me:$LINENO: checking for $ac_header" >&5
24906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24908   echo $ECHO_N "(cached) $ECHO_C" >&6
24909 fi
24910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24912 else
24913   # Is the header compilable?
24914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922 $ac_includes_default
24923 #include <$ac_header>
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24927   (eval $ac_compile) 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } &&
24934          { ac_try='test -z "$ac_c_werror_flag"
24935                          || test ! -s conftest.err'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; } &&
24941          { ac_try='test -s conftest.$ac_objext'
24942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943   (eval $ac_try) 2>&5
24944   ac_status=$?
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); }; }; then
24947   ac_header_compiler=yes
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_header_compiler=no
24953 fi
24954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24956 echo "${ECHO_T}$ac_header_compiler" >&6
24957
24958 # Is the header present?
24959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24961 cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h.  */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h.  */
24967 #include <$ac_header>
24968 _ACEOF
24969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } >/dev/null; then
24977   if test -s conftest.err; then
24978     ac_cpp_err=$ac_c_preproc_warn_flag
24979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24980   else
24981     ac_cpp_err=
24982   fi
24983 else
24984   ac_cpp_err=yes
24985 fi
24986 if test -z "$ac_cpp_err"; then
24987   ac_header_preproc=yes
24988 else
24989   echo "$as_me: failed program was:" >&5
24990 sed 's/^/| /' conftest.$ac_ext >&5
24991
24992   ac_header_preproc=no
24993 fi
24994 rm -f conftest.err conftest.$ac_ext
24995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24996 echo "${ECHO_T}$ac_header_preproc" >&6
24997
24998 # So?  What about this header?
24999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25000   yes:no: )
25001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25005     ac_header_preproc=yes
25006     ;;
25007   no:yes:* )
25008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25020     (
25021       cat <<\_ASBOX
25022 ## --------------------------------------------- ##
25023 ## Report this to <http://www.openldap.org/its/> ##
25024 ## --------------------------------------------- ##
25025 _ASBOX
25026     ) |
25027       sed "s/^/$as_me: WARNING:     /" >&2
25028     ;;
25029 esac
25030 echo "$as_me:$LINENO: checking for $ac_header" >&5
25031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25033   echo $ECHO_N "(cached) $ECHO_C" >&6
25034 else
25035   eval "$as_ac_Header=\$ac_header_preproc"
25036 fi
25037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25039
25040 fi
25041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25042   cat >>confdefs.h <<_ACEOF
25043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25044 _ACEOF
25045
25046 fi
25047
25048 done
25049
25050
25051         if test $ac_cv_header_pth_h = yes ; then
25052                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25053 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25054 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25055   echo $ECHO_N "(cached) $ECHO_C" >&6
25056 else
25057   ac_check_lib_save_LIBS=$LIBS
25058 LIBS="-lpth  $LIBS"
25059 cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065
25066 /* Override any gcc2 internal prototype to avoid an error.  */
25067 #ifdef __cplusplus
25068 extern "C"
25069 #endif
25070 /* We use char because int might match the return type of a gcc2
25071    builtin and then its argument prototype would still apply.  */
25072 char pth_version ();
25073 int
25074 main ()
25075 {
25076 pth_version ();
25077   ;
25078   return 0;
25079 }
25080 _ACEOF
25081 rm -f conftest.$ac_objext conftest$ac_exeext
25082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25083   (eval $ac_link) 2>conftest.er1
25084   ac_status=$?
25085   grep -v '^ *+' conftest.er1 >conftest.err
25086   rm -f conftest.er1
25087   cat conftest.err >&5
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); } &&
25090          { ac_try='test -z "$ac_c_werror_flag"
25091                          || test ! -s conftest.err'
25092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093   (eval $ac_try) 2>&5
25094   ac_status=$?
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); }; } &&
25097          { ac_try='test -s conftest$ac_exeext'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; }; then
25103   ac_cv_lib_pth_pth_version=yes
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108 ac_cv_lib_pth_pth_version=no
25109 fi
25110 rm -f conftest.err conftest.$ac_objext \
25111       conftest$ac_exeext conftest.$ac_ext
25112 LIBS=$ac_check_lib_save_LIBS
25113 fi
25114 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25115 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25116 if test $ac_cv_lib_pth_pth_version = yes; then
25117   have_pth=yes
25118 else
25119   have_pth=no
25120 fi
25121
25122
25123                 if test $have_pth = yes ; then
25124
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_GNU_PTH 1
25127 _ACEOF
25128
25129                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25130                         ol_link_threads=pth
25131                         ol_with_threads=found
25132
25133                         if test $ol_with_yielding_select = auto ; then
25134                                 ol_with_yielding_select=yes
25135                         fi
25136                 fi
25137         fi
25138         ;;
25139 esac
25140
25141 case $ol_with_threads in auto | yes | lwp)
25142
25143
25144
25145 for ac_header in thread.h synch.h
25146 do
25147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25149   echo "$as_me:$LINENO: checking for $ac_header" >&5
25150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25152   echo $ECHO_N "(cached) $ECHO_C" >&6
25153 fi
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156 else
25157   # Is the header compilable?
25158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h.  */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h.  */
25166 $ac_includes_default
25167 #include <$ac_header>
25168 _ACEOF
25169 rm -f conftest.$ac_objext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25171   (eval $ac_compile) 2>conftest.er1
25172   ac_status=$?
25173   grep -v '^ *+' conftest.er1 >conftest.err
25174   rm -f conftest.er1
25175   cat conftest.err >&5
25176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177   (exit $ac_status); } &&
25178          { ac_try='test -z "$ac_c_werror_flag"
25179                          || test ! -s conftest.err'
25180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25181   (eval $ac_try) 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; } &&
25185          { ac_try='test -s conftest.$ac_objext'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; }; then
25191   ac_header_compiler=yes
25192 else
25193   echo "$as_me: failed program was:" >&5
25194 sed 's/^/| /' conftest.$ac_ext >&5
25195
25196 ac_header_compiler=no
25197 fi
25198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25200 echo "${ECHO_T}$ac_header_compiler" >&6
25201
25202 # Is the header present?
25203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25205 cat >conftest.$ac_ext <<_ACEOF
25206 /* confdefs.h.  */
25207 _ACEOF
25208 cat confdefs.h >>conftest.$ac_ext
25209 cat >>conftest.$ac_ext <<_ACEOF
25210 /* end confdefs.h.  */
25211 #include <$ac_header>
25212 _ACEOF
25213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25215   ac_status=$?
25216   grep -v '^ *+' conftest.er1 >conftest.err
25217   rm -f conftest.er1
25218   cat conftest.err >&5
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); } >/dev/null; then
25221   if test -s conftest.err; then
25222     ac_cpp_err=$ac_c_preproc_warn_flag
25223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25224   else
25225     ac_cpp_err=
25226   fi
25227 else
25228   ac_cpp_err=yes
25229 fi
25230 if test -z "$ac_cpp_err"; then
25231   ac_header_preproc=yes
25232 else
25233   echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25235
25236   ac_header_preproc=no
25237 fi
25238 rm -f conftest.err conftest.$ac_ext
25239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25240 echo "${ECHO_T}$ac_header_preproc" >&6
25241
25242 # So?  What about this header?
25243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25244   yes:no: )
25245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25249     ac_header_preproc=yes
25250     ;;
25251   no:yes:* )
25252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25264     (
25265       cat <<\_ASBOX
25266 ## --------------------------------------------- ##
25267 ## Report this to <http://www.openldap.org/its/> ##
25268 ## --------------------------------------------- ##
25269 _ASBOX
25270     ) |
25271       sed "s/^/$as_me: WARNING:     /" >&2
25272     ;;
25273 esac
25274 echo "$as_me:$LINENO: checking for $ac_header" >&5
25275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25277   echo $ECHO_N "(cached) $ECHO_C" >&6
25278 else
25279   eval "$as_ac_Header=\$ac_header_preproc"
25280 fi
25281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25283
25284 fi
25285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25286   cat >>confdefs.h <<_ACEOF
25287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25288 _ACEOF
25289
25290 fi
25291
25292 done
25293
25294         if test $ac_cv_header_thread_h = yes &&
25295            test $ac_cv_header_synch_h = yes ; then
25296                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25297 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25298 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25299   echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301   ac_check_lib_save_LIBS=$LIBS
25302 LIBS="-lthread  $LIBS"
25303 cat >conftest.$ac_ext <<_ACEOF
25304 /* confdefs.h.  */
25305 _ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h.  */
25309
25310 /* Override any gcc2 internal prototype to avoid an error.  */
25311 #ifdef __cplusplus
25312 extern "C"
25313 #endif
25314 /* We use char because int might match the return type of a gcc2
25315    builtin and then its argument prototype would still apply.  */
25316 char thr_create ();
25317 int
25318 main ()
25319 {
25320 thr_create ();
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 rm -f conftest.$ac_objext conftest$ac_exeext
25326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25327   (eval $ac_link) 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } &&
25334          { ac_try='test -z "$ac_c_werror_flag"
25335                          || test ! -s conftest.err'
25336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337   (eval $ac_try) 2>&5
25338   ac_status=$?
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); }; } &&
25341          { ac_try='test -s conftest$ac_exeext'
25342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343   (eval $ac_try) 2>&5
25344   ac_status=$?
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); }; }; then
25347   ac_cv_lib_thread_thr_create=yes
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352 ac_cv_lib_thread_thr_create=no
25353 fi
25354 rm -f conftest.err conftest.$ac_objext \
25355       conftest$ac_exeext conftest.$ac_ext
25356 LIBS=$ac_check_lib_save_LIBS
25357 fi
25358 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25359 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25360 if test $ac_cv_lib_thread_thr_create = yes; then
25361   have_thr=yes
25362 else
25363   have_thr=no
25364 fi
25365
25366
25367                 if test $have_thr = yes ; then
25368
25369 cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_THR 1
25371 _ACEOF
25372
25373                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25374                         ol_link_threads=thr
25375
25376                         if test $ol_with_yielding_select = auto ; then
25377                                 ol_with_yielding_select=yes
25378                         fi
25379
25380
25381
25382 for ac_func in \
25383                                 thr_setconcurrency \
25384                                 thr_getconcurrency \
25385
25386 do
25387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25388 echo "$as_me:$LINENO: checking for $ac_func" >&5
25389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25390 if eval "test \"\${$as_ac_var+set}\" = set"; then
25391   echo $ECHO_N "(cached) $ECHO_C" >&6
25392 else
25393   cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h.  */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h.  */
25399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25401 #define $ac_func innocuous_$ac_func
25402
25403 /* System header to define __stub macros and hopefully few prototypes,
25404     which can conflict with char $ac_func (); below.
25405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25406     <limits.h> exists even on freestanding compilers.  */
25407
25408 #ifdef __STDC__
25409 # include <limits.h>
25410 #else
25411 # include <assert.h>
25412 #endif
25413
25414 #undef $ac_func
25415
25416 /* Override any gcc2 internal prototype to avoid an error.  */
25417 #ifdef __cplusplus
25418 extern "C"
25419 {
25420 #endif
25421 /* We use char because int might match the return type of a gcc2
25422    builtin and then its argument prototype would still apply.  */
25423 char $ac_func ();
25424 /* The GNU C library defines this for functions which it implements
25425     to always fail with ENOSYS.  Some functions are actually named
25426     something starting with __ and the normal name is an alias.  */
25427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25428 choke me
25429 #else
25430 char (*f) () = $ac_func;
25431 #endif
25432 #ifdef __cplusplus
25433 }
25434 #endif
25435
25436 int
25437 main ()
25438 {
25439 return f != $ac_func;
25440   ;
25441   return 0;
25442 }
25443 _ACEOF
25444 rm -f conftest.$ac_objext conftest$ac_exeext
25445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25446   (eval $ac_link) 2>conftest.er1
25447   ac_status=$?
25448   grep -v '^ *+' conftest.er1 >conftest.err
25449   rm -f conftest.er1
25450   cat conftest.err >&5
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); } &&
25453          { ac_try='test -z "$ac_c_werror_flag"
25454                          || test ! -s conftest.err'
25455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25456   (eval $ac_try) 2>&5
25457   ac_status=$?
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); }; } &&
25460          { ac_try='test -s conftest$ac_exeext'
25461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25462   (eval $ac_try) 2>&5
25463   ac_status=$?
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); }; }; then
25466   eval "$as_ac_var=yes"
25467 else
25468   echo "$as_me: failed program was:" >&5
25469 sed 's/^/| /' conftest.$ac_ext >&5
25470
25471 eval "$as_ac_var=no"
25472 fi
25473 rm -f conftest.err conftest.$ac_objext \
25474       conftest$ac_exeext conftest.$ac_ext
25475 fi
25476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25478 if test `eval echo '${'$as_ac_var'}'` = yes; then
25479   cat >>confdefs.h <<_ACEOF
25480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25481 _ACEOF
25482
25483 fi
25484 done
25485
25486                 fi
25487         fi
25488
25489
25490 for ac_header in lwp/lwp.h
25491 do
25492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25494   echo "$as_me:$LINENO: checking for $ac_header" >&5
25495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25497   echo $ECHO_N "(cached) $ECHO_C" >&6
25498 fi
25499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25501 else
25502   # Is the header compilable?
25503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h.  */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h.  */
25511 $ac_includes_default
25512 #include <$ac_header>
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516   (eval $ac_compile) 2>conftest.er1
25517   ac_status=$?
25518   grep -v '^ *+' conftest.er1 >conftest.err
25519   rm -f conftest.er1
25520   cat conftest.err >&5
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } &&
25523          { ac_try='test -z "$ac_c_werror_flag"
25524                          || test ! -s conftest.err'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536   ac_header_compiler=yes
25537 else
25538   echo "$as_me: failed program was:" >&5
25539 sed 's/^/| /' conftest.$ac_ext >&5
25540
25541 ac_header_compiler=no
25542 fi
25543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25545 echo "${ECHO_T}$ac_header_compiler" >&6
25546
25547 # Is the header present?
25548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25551 /* confdefs.h.  */
25552 _ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h.  */
25556 #include <$ac_header>
25557 _ACEOF
25558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25559   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25560   ac_status=$?
25561   grep -v '^ *+' conftest.er1 >conftest.err
25562   rm -f conftest.er1
25563   cat conftest.err >&5
25564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25565   (exit $ac_status); } >/dev/null; then
25566   if test -s conftest.err; then
25567     ac_cpp_err=$ac_c_preproc_warn_flag
25568     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25569   else
25570     ac_cpp_err=
25571   fi
25572 else
25573   ac_cpp_err=yes
25574 fi
25575 if test -z "$ac_cpp_err"; then
25576   ac_header_preproc=yes
25577 else
25578   echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25580
25581   ac_header_preproc=no
25582 fi
25583 rm -f conftest.err conftest.$ac_ext
25584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25585 echo "${ECHO_T}$ac_header_preproc" >&6
25586
25587 # So?  What about this header?
25588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25589   yes:no: )
25590     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25594     ac_header_preproc=yes
25595     ;;
25596   no:yes:* )
25597     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25599     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25600 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25601     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25603     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25604 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25605     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25607     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25609     (
25610       cat <<\_ASBOX
25611 ## --------------------------------------------- ##
25612 ## Report this to <http://www.openldap.org/its/> ##
25613 ## --------------------------------------------- ##
25614 _ASBOX
25615     ) |
25616       sed "s/^/$as_me: WARNING:     /" >&2
25617     ;;
25618 esac
25619 echo "$as_me:$LINENO: checking for $ac_header" >&5
25620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   eval "$as_ac_Header=\$ac_header_preproc"
25625 fi
25626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25628
25629 fi
25630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25631   cat >>confdefs.h <<_ACEOF
25632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25633 _ACEOF
25634
25635 fi
25636
25637 done
25638
25639         if test $ac_cv_header_lwp_lwp_h = yes ; then
25640                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25641 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25642 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25643   echo $ECHO_N "(cached) $ECHO_C" >&6
25644 else
25645   ac_check_lib_save_LIBS=$LIBS
25646 LIBS="-llwp  $LIBS"
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653
25654 /* Override any gcc2 internal prototype to avoid an error.  */
25655 #ifdef __cplusplus
25656 extern "C"
25657 #endif
25658 /* We use char because int might match the return type of a gcc2
25659    builtin and then its argument prototype would still apply.  */
25660 char lwp_create ();
25661 int
25662 main ()
25663 {
25664 lwp_create ();
25665   ;
25666   return 0;
25667 }
25668 _ACEOF
25669 rm -f conftest.$ac_objext conftest$ac_exeext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25671   (eval $ac_link) 2>conftest.er1
25672   ac_status=$?
25673   grep -v '^ *+' conftest.er1 >conftest.err
25674   rm -f conftest.er1
25675   cat conftest.err >&5
25676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677   (exit $ac_status); } &&
25678          { ac_try='test -z "$ac_c_werror_flag"
25679                          || test ! -s conftest.err'
25680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681   (eval $ac_try) 2>&5
25682   ac_status=$?
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; } &&
25685          { ac_try='test -s conftest$ac_exeext'
25686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687   (eval $ac_try) 2>&5
25688   ac_status=$?
25689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690   (exit $ac_status); }; }; then
25691   ac_cv_lib_lwp_lwp_create=yes
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696 ac_cv_lib_lwp_lwp_create=no
25697 fi
25698 rm -f conftest.err conftest.$ac_objext \
25699       conftest$ac_exeext conftest.$ac_ext
25700 LIBS=$ac_check_lib_save_LIBS
25701 fi
25702 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25703 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25704 if test $ac_cv_lib_lwp_lwp_create = yes; then
25705   have_lwp=yes
25706 else
25707   have_lwp=no
25708 fi
25709
25710
25711                 if test $have_lwp = yes ; then
25712
25713 cat >>confdefs.h <<\_ACEOF
25714 #define HAVE_LWP 1
25715 _ACEOF
25716
25717                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25718                         ol_link_threads=lwp
25719
25720                         if test $ol_with_yielding_select = auto ; then
25721                                 ol_with_yielding_select=no
25722                         fi
25723                 fi
25724         fi
25725         ;;
25726 esac
25727
25728 if test $ol_with_yielding_select = yes ; then
25729
25730 cat >>confdefs.h <<\_ACEOF
25731 #define HAVE_YIELDING_SELECT 1
25732 _ACEOF
25733
25734 fi
25735
25736 if test $ol_with_threads = manual ; then
25737                 ol_link_threads=yes
25738
25739         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25740 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25741
25742
25743
25744 for ac_header in pthread.h sched.h
25745 do
25746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25748   echo "$as_me:$LINENO: checking for $ac_header" >&5
25749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25751   echo $ECHO_N "(cached) $ECHO_C" >&6
25752 fi
25753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25755 else
25756   # Is the header compilable?
25757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25759 cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765 $ac_includes_default
25766 #include <$ac_header>
25767 _ACEOF
25768 rm -f conftest.$ac_objext
25769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25770   (eval $ac_compile) 2>conftest.er1
25771   ac_status=$?
25772   grep -v '^ *+' conftest.er1 >conftest.err
25773   rm -f conftest.er1
25774   cat conftest.err >&5
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); } &&
25777          { ac_try='test -z "$ac_c_werror_flag"
25778                          || test ! -s conftest.err'
25779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25780   (eval $ac_try) 2>&5
25781   ac_status=$?
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); }; } &&
25784          { ac_try='test -s conftest.$ac_objext'
25785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25786   (eval $ac_try) 2>&5
25787   ac_status=$?
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); }; }; then
25790   ac_header_compiler=yes
25791 else
25792   echo "$as_me: failed program was:" >&5
25793 sed 's/^/| /' conftest.$ac_ext >&5
25794
25795 ac_header_compiler=no
25796 fi
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25799 echo "${ECHO_T}$ac_header_compiler" >&6
25800
25801 # Is the header present?
25802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25804 cat >conftest.$ac_ext <<_ACEOF
25805 /* confdefs.h.  */
25806 _ACEOF
25807 cat confdefs.h >>conftest.$ac_ext
25808 cat >>conftest.$ac_ext <<_ACEOF
25809 /* end confdefs.h.  */
25810 #include <$ac_header>
25811 _ACEOF
25812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25814   ac_status=$?
25815   grep -v '^ *+' conftest.er1 >conftest.err
25816   rm -f conftest.er1
25817   cat conftest.err >&5
25818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819   (exit $ac_status); } >/dev/null; then
25820   if test -s conftest.err; then
25821     ac_cpp_err=$ac_c_preproc_warn_flag
25822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25823   else
25824     ac_cpp_err=
25825   fi
25826 else
25827   ac_cpp_err=yes
25828 fi
25829 if test -z "$ac_cpp_err"; then
25830   ac_header_preproc=yes
25831 else
25832   echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835   ac_header_preproc=no
25836 fi
25837 rm -f conftest.err conftest.$ac_ext
25838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25839 echo "${ECHO_T}$ac_header_preproc" >&6
25840
25841 # So?  What about this header?
25842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25843   yes:no: )
25844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25848     ac_header_preproc=yes
25849     ;;
25850   no:yes:* )
25851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25863     (
25864       cat <<\_ASBOX
25865 ## --------------------------------------------- ##
25866 ## Report this to <http://www.openldap.org/its/> ##
25867 ## --------------------------------------------- ##
25868 _ASBOX
25869     ) |
25870       sed "s/^/$as_me: WARNING:     /" >&2
25871     ;;
25872 esac
25873 echo "$as_me:$LINENO: checking for $ac_header" >&5
25874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25876   echo $ECHO_N "(cached) $ECHO_C" >&6
25877 else
25878   eval "$as_ac_Header=\$ac_header_preproc"
25879 fi
25880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25882
25883 fi
25884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25885   cat >>confdefs.h <<_ACEOF
25886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25887 _ACEOF
25888
25889 fi
25890
25891 done
25892
25893
25894
25895 for ac_func in sched_yield pthread_yield
25896 do
25897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25898 echo "$as_me:$LINENO: checking for $ac_func" >&5
25899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25900 if eval "test \"\${$as_ac_var+set}\" = set"; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903   cat >conftest.$ac_ext <<_ACEOF
25904 /* confdefs.h.  */
25905 _ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h.  */
25909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25911 #define $ac_func innocuous_$ac_func
25912
25913 /* System header to define __stub macros and hopefully few prototypes,
25914     which can conflict with char $ac_func (); below.
25915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25916     <limits.h> exists even on freestanding compilers.  */
25917
25918 #ifdef __STDC__
25919 # include <limits.h>
25920 #else
25921 # include <assert.h>
25922 #endif
25923
25924 #undef $ac_func
25925
25926 /* Override any gcc2 internal prototype to avoid an error.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 {
25930 #endif
25931 /* We use char because int might match the return type of a gcc2
25932    builtin and then its argument prototype would still apply.  */
25933 char $ac_func ();
25934 /* The GNU C library defines this for functions which it implements
25935     to always fail with ENOSYS.  Some functions are actually named
25936     something starting with __ and the normal name is an alias.  */
25937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25938 choke me
25939 #else
25940 char (*f) () = $ac_func;
25941 #endif
25942 #ifdef __cplusplus
25943 }
25944 #endif
25945
25946 int
25947 main ()
25948 {
25949 return f != $ac_func;
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 rm -f conftest.$ac_objext conftest$ac_exeext
25955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25956   (eval $ac_link) 2>conftest.er1
25957   ac_status=$?
25958   grep -v '^ *+' conftest.er1 >conftest.err
25959   rm -f conftest.er1
25960   cat conftest.err >&5
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); } &&
25963          { ac_try='test -z "$ac_c_werror_flag"
25964                          || test ! -s conftest.err'
25965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966   (eval $ac_try) 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); }; } &&
25970          { ac_try='test -s conftest$ac_exeext'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; }; then
25976   eval "$as_ac_var=yes"
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981 eval "$as_ac_var=no"
25982 fi
25983 rm -f conftest.err conftest.$ac_objext \
25984       conftest$ac_exeext conftest.$ac_ext
25985 fi
25986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25987 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25988 if test `eval echo '${'$as_ac_var'}'` = yes; then
25989   cat >>confdefs.h <<_ACEOF
25990 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25991 _ACEOF
25992
25993 fi
25994 done
25995
25996
25997         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25998 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25999 if test "${ol_cv_header_linux_threads+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002   cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 #include <pthread.h>
26009 _ACEOF
26010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26011   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26012   ol_cv_header_linux_threads=yes
26013 else
26014   ol_cv_header_linux_threads=no
26015 fi
26016 rm -f conftest*
26017
26018
26019 fi
26020 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26021 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26022         if test $ol_cv_header_linux_threads = yes; then
26023
26024 cat >>confdefs.h <<\_ACEOF
26025 #define HAVE_LINUX_THREADS 1
26026 _ACEOF
26027
26028         fi
26029
26030
26031
26032 for ac_header in mach/cthreads.h
26033 do
26034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26036   echo "$as_me:$LINENO: checking for $ac_header" >&5
26037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26039   echo $ECHO_N "(cached) $ECHO_C" >&6
26040 fi
26041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26043 else
26044   # Is the header compilable?
26045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26047 cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053 $ac_includes_default
26054 #include <$ac_header>
26055 _ACEOF
26056 rm -f conftest.$ac_objext
26057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26058   (eval $ac_compile) 2>conftest.er1
26059   ac_status=$?
26060   grep -v '^ *+' conftest.er1 >conftest.err
26061   rm -f conftest.er1
26062   cat conftest.err >&5
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } &&
26065          { ac_try='test -z "$ac_c_werror_flag"
26066                          || test ! -s conftest.err'
26067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068   (eval $ac_try) 2>&5
26069   ac_status=$?
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); }; } &&
26072          { ac_try='test -s conftest.$ac_objext'
26073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074   (eval $ac_try) 2>&5
26075   ac_status=$?
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); }; }; then
26078   ac_header_compiler=yes
26079 else
26080   echo "$as_me: failed program was:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26082
26083 ac_header_compiler=no
26084 fi
26085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087 echo "${ECHO_T}$ac_header_compiler" >&6
26088
26089 # Is the header present?
26090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26092 cat >conftest.$ac_ext <<_ACEOF
26093 /* confdefs.h.  */
26094 _ACEOF
26095 cat confdefs.h >>conftest.$ac_ext
26096 cat >>conftest.$ac_ext <<_ACEOF
26097 /* end confdefs.h.  */
26098 #include <$ac_header>
26099 _ACEOF
26100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26102   ac_status=$?
26103   grep -v '^ *+' conftest.er1 >conftest.err
26104   rm -f conftest.er1
26105   cat conftest.err >&5
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); } >/dev/null; then
26108   if test -s conftest.err; then
26109     ac_cpp_err=$ac_c_preproc_warn_flag
26110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26111   else
26112     ac_cpp_err=
26113   fi
26114 else
26115   ac_cpp_err=yes
26116 fi
26117 if test -z "$ac_cpp_err"; then
26118   ac_header_preproc=yes
26119 else
26120   echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26122
26123   ac_header_preproc=no
26124 fi
26125 rm -f conftest.err conftest.$ac_ext
26126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26127 echo "${ECHO_T}$ac_header_preproc" >&6
26128
26129 # So?  What about this header?
26130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26131   yes:no: )
26132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26136     ac_header_preproc=yes
26137     ;;
26138   no:yes:* )
26139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26151     (
26152       cat <<\_ASBOX
26153 ## --------------------------------------------- ##
26154 ## Report this to <http://www.openldap.org/its/> ##
26155 ## --------------------------------------------- ##
26156 _ASBOX
26157     ) |
26158       sed "s/^/$as_me: WARNING:     /" >&2
26159     ;;
26160 esac
26161 echo "$as_me:$LINENO: checking for $ac_header" >&5
26162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26164   echo $ECHO_N "(cached) $ECHO_C" >&6
26165 else
26166   eval "$as_ac_Header=\$ac_header_preproc"
26167 fi
26168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26170
26171 fi
26172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26173   cat >>confdefs.h <<_ACEOF
26174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26175 _ACEOF
26176
26177 fi
26178
26179 done
26180
26181
26182 for ac_header in lwp/lwp.h
26183 do
26184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26186   echo "$as_me:$LINENO: checking for $ac_header" >&5
26187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26189   echo $ECHO_N "(cached) $ECHO_C" >&6
26190 fi
26191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26193 else
26194   # Is the header compilable?
26195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26197 cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203 $ac_includes_default
26204 #include <$ac_header>
26205 _ACEOF
26206 rm -f conftest.$ac_objext
26207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26208   (eval $ac_compile) 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_objext'
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_header_compiler=yes
26229 else
26230   echo "$as_me: failed program was:" >&5
26231 sed 's/^/| /' conftest.$ac_ext >&5
26232
26233 ac_header_compiler=no
26234 fi
26235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26237 echo "${ECHO_T}$ac_header_compiler" >&6
26238
26239 # Is the header present?
26240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26242 cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h.  */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h.  */
26248 #include <$ac_header>
26249 _ACEOF
26250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26252   ac_status=$?
26253   grep -v '^ *+' conftest.er1 >conftest.err
26254   rm -f conftest.er1
26255   cat conftest.err >&5
26256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257   (exit $ac_status); } >/dev/null; then
26258   if test -s conftest.err; then
26259     ac_cpp_err=$ac_c_preproc_warn_flag
26260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26261   else
26262     ac_cpp_err=
26263   fi
26264 else
26265   ac_cpp_err=yes
26266 fi
26267 if test -z "$ac_cpp_err"; then
26268   ac_header_preproc=yes
26269 else
26270   echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26272
26273   ac_header_preproc=no
26274 fi
26275 rm -f conftest.err conftest.$ac_ext
26276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26277 echo "${ECHO_T}$ac_header_preproc" >&6
26278
26279 # So?  What about this header?
26280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26281   yes:no: )
26282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26286     ac_header_preproc=yes
26287     ;;
26288   no:yes:* )
26289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26301     (
26302       cat <<\_ASBOX
26303 ## --------------------------------------------- ##
26304 ## Report this to <http://www.openldap.org/its/> ##
26305 ## --------------------------------------------- ##
26306 _ASBOX
26307     ) |
26308       sed "s/^/$as_me: WARNING:     /" >&2
26309     ;;
26310 esac
26311 echo "$as_me:$LINENO: checking for $ac_header" >&5
26312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26314   echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316   eval "$as_ac_Header=\$ac_header_preproc"
26317 fi
26318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26320
26321 fi
26322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26323   cat >>confdefs.h <<_ACEOF
26324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26325 _ACEOF
26326
26327 fi
26328
26329 done
26330
26331
26332
26333 for ac_header in thread.h synch.h
26334 do
26335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26337   echo "$as_me:$LINENO: checking for $ac_header" >&5
26338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26340   echo $ECHO_N "(cached) $ECHO_C" >&6
26341 fi
26342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26344 else
26345   # Is the header compilable?
26346 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26348 cat >conftest.$ac_ext <<_ACEOF
26349 /* confdefs.h.  */
26350 _ACEOF
26351 cat confdefs.h >>conftest.$ac_ext
26352 cat >>conftest.$ac_ext <<_ACEOF
26353 /* end confdefs.h.  */
26354 $ac_includes_default
26355 #include <$ac_header>
26356 _ACEOF
26357 rm -f conftest.$ac_objext
26358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26359   (eval $ac_compile) 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } &&
26366          { ac_try='test -z "$ac_c_werror_flag"
26367                          || test ! -s conftest.err'
26368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369   (eval $ac_try) 2>&5
26370   ac_status=$?
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); }; } &&
26373          { ac_try='test -s conftest.$ac_objext'
26374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26375   (eval $ac_try) 2>&5
26376   ac_status=$?
26377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378   (exit $ac_status); }; }; then
26379   ac_header_compiler=yes
26380 else
26381   echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26383
26384 ac_header_compiler=no
26385 fi
26386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26387 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26388 echo "${ECHO_T}$ac_header_compiler" >&6
26389
26390 # Is the header present?
26391 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26393 cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399 #include <$ac_header>
26400 _ACEOF
26401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } >/dev/null; then
26409   if test -s conftest.err; then
26410     ac_cpp_err=$ac_c_preproc_warn_flag
26411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26412   else
26413     ac_cpp_err=
26414   fi
26415 else
26416   ac_cpp_err=yes
26417 fi
26418 if test -z "$ac_cpp_err"; then
26419   ac_header_preproc=yes
26420 else
26421   echo "$as_me: failed program was:" >&5
26422 sed 's/^/| /' conftest.$ac_ext >&5
26423
26424   ac_header_preproc=no
26425 fi
26426 rm -f conftest.err conftest.$ac_ext
26427 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26428 echo "${ECHO_T}$ac_header_preproc" >&6
26429
26430 # So?  What about this header?
26431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26432   yes:no: )
26433     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26437     ac_header_preproc=yes
26438     ;;
26439   no:yes:* )
26440     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26442     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26443 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26444     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26446     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26447 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26450     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26452     (
26453       cat <<\_ASBOX
26454 ## --------------------------------------------- ##
26455 ## Report this to <http://www.openldap.org/its/> ##
26456 ## --------------------------------------------- ##
26457 _ASBOX
26458     ) |
26459       sed "s/^/$as_me: WARNING:     /" >&2
26460     ;;
26461 esac
26462 echo "$as_me:$LINENO: checking for $ac_header" >&5
26463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26465   echo $ECHO_N "(cached) $ECHO_C" >&6
26466 else
26467   eval "$as_ac_Header=\$ac_header_preproc"
26468 fi
26469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26471
26472 fi
26473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26474   cat >>confdefs.h <<_ACEOF
26475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26476 _ACEOF
26477
26478 fi
26479
26480 done
26481
26482 fi
26483
26484 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26485                         cat >>confdefs.h <<\_ACEOF
26486 #define REENTRANT 1
26487 _ACEOF
26488
26489         cat >>confdefs.h <<\_ACEOF
26490 #define _REENTRANT 1
26491 _ACEOF
26492
26493         cat >>confdefs.h <<\_ACEOF
26494 #define THREAD_SAFE 1
26495 _ACEOF
26496
26497         cat >>confdefs.h <<\_ACEOF
26498 #define _THREAD_SAFE 1
26499 _ACEOF
26500
26501         cat >>confdefs.h <<\_ACEOF
26502 #define THREADSAFE 1
26503 _ACEOF
26504
26505         cat >>confdefs.h <<\_ACEOF
26506 #define _THREADSAFE 1
26507 _ACEOF
26508
26509         cat >>confdefs.h <<\_ACEOF
26510 #define _SGI_MP_SOURCE 1
26511 _ACEOF
26512
26513
26514                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26515 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26516 if test "${ol_cv_errno_thread_specific+set}" = set; then
26517   echo $ECHO_N "(cached) $ECHO_C" >&6
26518 else
26519
26520                 cat >conftest.$ac_ext <<_ACEOF
26521 /* confdefs.h.  */
26522 _ACEOF
26523 cat confdefs.h >>conftest.$ac_ext
26524 cat >>conftest.$ac_ext <<_ACEOF
26525 /* end confdefs.h.  */
26526 #include <errno.h>
26527 int
26528 main ()
26529 {
26530 errno = 0;
26531   ;
26532   return 0;
26533 }
26534 _ACEOF
26535 rm -f conftest.$ac_objext conftest$ac_exeext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26537   (eval $ac_link) 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } &&
26544          { ac_try='test -z "$ac_c_werror_flag"
26545                          || test ! -s conftest.err'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; } &&
26551          { ac_try='test -s conftest$ac_exeext'
26552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553   (eval $ac_try) 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; }; then
26557   ol_cv_errno_thread_specific=yes
26558 else
26559   echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 ol_cv_errno_thread_specific=no
26563 fi
26564 rm -f conftest.err conftest.$ac_objext \
26565       conftest$ac_exeext conftest.$ac_ext
26566
26567 fi
26568 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26569 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26570
26571                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26572 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26573 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26574   echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576
26577                 cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583 #include <netdb.h>
26584 int
26585 main ()
26586 {
26587 h_errno = 0;
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26594   (eval $ac_link) 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_exeext'
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   ol_cv_h_errno_thread_specific=yes
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 ol_cv_h_errno_thread_specific=no
26620 fi
26621 rm -f conftest.err conftest.$ac_objext \
26622       conftest$ac_exeext conftest.$ac_ext
26623
26624 fi
26625 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26626 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26627
26628         if test $ol_cv_errno_thread_specific != yes ||
26629            test $ol_cv_h_errno_thread_specific != yes ; then
26630                 LIBS="$LTHREAD_LIBS $LIBS"
26631                 LTHREAD_LIBS=""
26632         fi
26633
26634 fi
26635
26636 if test $ol_link_threads = no ; then
26637         if test $ol_with_threads = yes ; then
26638                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26639 echo "$as_me: error: no suitable thread support" >&2;}
26640    { (exit 1); exit 1; }; }
26641         fi
26642
26643         if test $ol_with_threads = auto ; then
26644                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26645 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26646                 ol_with_threads=no
26647         fi
26648
26649
26650 cat >>confdefs.h <<\_ACEOF
26651 #define NO_THREADS 1
26652 _ACEOF
26653
26654         LTHREAD_LIBS=""
26655         BUILD_THREAD=no
26656 else
26657         BUILD_THREAD=yes
26658 fi
26659
26660 if test $ol_link_threads != no ; then
26661
26662 cat >>confdefs.h <<\_ACEOF
26663 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26664 _ACEOF
26665
26666 fi
26667
26668
26669
26670
26671 for ac_func in \
26672         ctime_r                 \
26673         gethostbyname_r gethostbyaddr_r \
26674
26675 do
26676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26677 echo "$as_me:$LINENO: checking for $ac_func" >&5
26678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26679 if eval "test \"\${$as_ac_var+set}\" = set"; then
26680   echo $ECHO_N "(cached) $ECHO_C" >&6
26681 else
26682   cat >conftest.$ac_ext <<_ACEOF
26683 /* confdefs.h.  */
26684 _ACEOF
26685 cat confdefs.h >>conftest.$ac_ext
26686 cat >>conftest.$ac_ext <<_ACEOF
26687 /* end confdefs.h.  */
26688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26690 #define $ac_func innocuous_$ac_func
26691
26692 /* System header to define __stub macros and hopefully few prototypes,
26693     which can conflict with char $ac_func (); below.
26694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26695     <limits.h> exists even on freestanding compilers.  */
26696
26697 #ifdef __STDC__
26698 # include <limits.h>
26699 #else
26700 # include <assert.h>
26701 #endif
26702
26703 #undef $ac_func
26704
26705 /* Override any gcc2 internal prototype to avoid an error.  */
26706 #ifdef __cplusplus
26707 extern "C"
26708 {
26709 #endif
26710 /* We use char because int might match the return type of a gcc2
26711    builtin and then its argument prototype would still apply.  */
26712 char $ac_func ();
26713 /* The GNU C library defines this for functions which it implements
26714     to always fail with ENOSYS.  Some functions are actually named
26715     something starting with __ and the normal name is an alias.  */
26716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26717 choke me
26718 #else
26719 char (*f) () = $ac_func;
26720 #endif
26721 #ifdef __cplusplus
26722 }
26723 #endif
26724
26725 int
26726 main ()
26727 {
26728 return f != $ac_func;
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26735   (eval $ac_link) 2>conftest.er1
26736   ac_status=$?
26737   grep -v '^ *+' conftest.er1 >conftest.err
26738   rm -f conftest.er1
26739   cat conftest.err >&5
26740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741   (exit $ac_status); } &&
26742          { ac_try='test -z "$ac_c_werror_flag"
26743                          || test ! -s conftest.err'
26744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745   (eval $ac_try) 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; } &&
26749          { ac_try='test -s conftest$ac_exeext'
26750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751   (eval $ac_try) 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; }; then
26755   eval "$as_ac_var=yes"
26756 else
26757   echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26759
26760 eval "$as_ac_var=no"
26761 fi
26762 rm -f conftest.err conftest.$ac_objext \
26763       conftest$ac_exeext conftest.$ac_ext
26764 fi
26765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26767 if test `eval echo '${'$as_ac_var'}'` = yes; then
26768   cat >>confdefs.h <<_ACEOF
26769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26770 _ACEOF
26771
26772 fi
26773 done
26774
26775
26776 if test "$ac_cv_func_ctime_r" = no ; then
26777         ol_cv_func_ctime_r_nargs=0
26778 else
26779         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26780 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26781 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26782   echo $ECHO_N "(cached) $ECHO_C" >&6
26783 else
26784   cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h.  */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h.  */
26790 #include <time.h>
26791 int
26792 main ()
26793 {
26794 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 rm -f conftest.$ac_objext
26800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26801   (eval $ac_compile) 2>conftest.er1
26802   ac_status=$?
26803   grep -v '^ *+' conftest.er1 >conftest.err
26804   rm -f conftest.er1
26805   cat conftest.err >&5
26806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807   (exit $ac_status); } &&
26808          { ac_try='test -z "$ac_c_werror_flag"
26809                          || test ! -s conftest.err'
26810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811   (eval $ac_try) 2>&5
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; } &&
26815          { ac_try='test -s conftest.$ac_objext'
26816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817   (eval $ac_try) 2>&5
26818   ac_status=$?
26819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820   (exit $ac_status); }; }; then
26821   ol_cv_func_ctime_r_nargs3=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826 ol_cv_func_ctime_r_nargs3=no
26827 fi
26828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26829
26830         cat >conftest.$ac_ext <<_ACEOF
26831 /* confdefs.h.  */
26832 _ACEOF
26833 cat confdefs.h >>conftest.$ac_ext
26834 cat >>conftest.$ac_ext <<_ACEOF
26835 /* end confdefs.h.  */
26836 #include <time.h>
26837 int
26838 main ()
26839 {
26840 time_t ti; char *buffer; ctime_r(&ti,buffer);
26841   ;
26842   return 0;
26843 }
26844 _ACEOF
26845 rm -f conftest.$ac_objext
26846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26847   (eval $ac_compile) 2>conftest.er1
26848   ac_status=$?
26849   grep -v '^ *+' conftest.er1 >conftest.err
26850   rm -f conftest.er1
26851   cat conftest.err >&5
26852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853   (exit $ac_status); } &&
26854          { ac_try='test -z "$ac_c_werror_flag"
26855                          || test ! -s conftest.err'
26856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857   (eval $ac_try) 2>&5
26858   ac_status=$?
26859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860   (exit $ac_status); }; } &&
26861          { ac_try='test -s conftest.$ac_objext'
26862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863   (eval $ac_try) 2>&5
26864   ac_status=$?
26865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866   (exit $ac_status); }; }; then
26867   ol_cv_func_ctime_r_nargs2=yes
26868 else
26869   echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.$ac_ext >&5
26871
26872 ol_cv_func_ctime_r_nargs2=no
26873 fi
26874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26875
26876         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26877            test $ol_cv_func_ctime_r_nargs2 = no ; then
26878
26879                 ol_cv_func_ctime_r_nargs=3
26880
26881         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26882              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26883
26884                 ol_cv_func_ctime_r_nargs=2
26885
26886         else
26887                 ol_cv_func_ctime_r_nargs=0
26888         fi
26889
26890 fi
26891 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26892 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26893
26894   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26895
26896 cat >>confdefs.h <<_ACEOF
26897 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26898 _ACEOF
26899
26900   fi
26901
26902 fi
26903
26904 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26905         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26906 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26907 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26908   echo $ECHO_N "(cached) $ECHO_C" >&6
26909 else
26910   cat >conftest.$ac_ext <<_ACEOF
26911 /* confdefs.h.  */
26912 _ACEOF
26913 cat confdefs.h >>conftest.$ac_ext
26914 cat >>conftest.$ac_ext <<_ACEOF
26915 /* end confdefs.h.  */
26916 #include <sys/types.h>
26917 #include <sys/socket.h>
26918 #include <netinet/in.h>
26919 #include <netdb.h>
26920 #define BUFSIZE (sizeof(struct hostent)+10)
26921 int
26922 main ()
26923 {
26924 struct hostent hent; char buffer[BUFSIZE];
26925                 int bufsize=BUFSIZE;int h_errno;
26926                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26927                         buffer, bufsize, &h_errno);
26928   ;
26929   return 0;
26930 }
26931 _ACEOF
26932 rm -f conftest.$ac_objext
26933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26934   (eval $ac_compile) 2>conftest.er1
26935   ac_status=$?
26936   grep -v '^ *+' conftest.er1 >conftest.err
26937   rm -f conftest.er1
26938   cat conftest.err >&5
26939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940   (exit $ac_status); } &&
26941          { ac_try='test -z "$ac_c_werror_flag"
26942                          || test ! -s conftest.err'
26943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944   (eval $ac_try) 2>&5
26945   ac_status=$?
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); }; } &&
26948          { ac_try='test -s conftest.$ac_objext'
26949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950   (eval $ac_try) 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ol_cv_func_gethostbyname_r_nargs5=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959 ol_cv_func_gethostbyname_r_nargs5=no
26960 fi
26961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26962
26963         cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h.  */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h.  */
26969 #include <sys/types.h>
26970 #include <sys/socket.h>
26971 #include <netinet/in.h>
26972 #include <netdb.h>
26973 #define BUFSIZE (sizeof(struct hostent)+10)
26974 int
26975 main ()
26976 {
26977 struct hostent hent;struct hostent *rhent;
26978                 char buffer[BUFSIZE];
26979                 int bufsize=BUFSIZE;int h_errno;
26980                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26981                         &rhent, &h_errno);
26982   ;
26983   return 0;
26984 }
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26988   (eval $ac_compile) 2>conftest.er1
26989   ac_status=$?
26990   grep -v '^ *+' conftest.er1 >conftest.err
26991   rm -f conftest.er1
26992   cat conftest.err >&5
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } &&
26995          { ac_try='test -z "$ac_c_werror_flag"
26996                          || test ! -s conftest.err'
26997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998   (eval $ac_try) 2>&5
26999   ac_status=$?
27000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001   (exit $ac_status); }; } &&
27002          { ac_try='test -s conftest.$ac_objext'
27003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004   (eval $ac_try) 2>&5
27005   ac_status=$?
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); }; }; then
27008   ol_cv_func_gethostbyname_r_nargs6=yes
27009 else
27010   echo "$as_me: failed program was:" >&5
27011 sed 's/^/| /' conftest.$ac_ext >&5
27012
27013 ol_cv_func_gethostbyname_r_nargs6=no
27014 fi
27015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27016
27017         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27018            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27019
27020                 ol_cv_func_gethostbyname_r_nargs=5
27021
27022         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27023              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27024
27025                 ol_cv_func_gethostbyname_r_nargs=6
27026
27027         else
27028                 ol_cv_func_gethostbyname_r_nargs=0
27029         fi
27030
27031 fi
27032 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27033 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27034   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27035
27036 cat >>confdefs.h <<_ACEOF
27037 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27038 _ACEOF
27039
27040   fi
27041
27042 else
27043         ol_cv_func_gethostbyname_r_nargs=0
27044 fi
27045
27046 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27047         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27048 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27049 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 else
27052   cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 #include <sys/types.h>
27059 #include <sys/socket.h>
27060 #include <netinet/in.h>
27061 #include <netdb.h>
27062 #define BUFSIZE (sizeof(struct hostent)+10)
27063 int
27064 main ()
27065 {
27066 struct hostent hent; char buffer[BUFSIZE];
27067             struct in_addr add;
27068             size_t alen=sizeof(struct in_addr);
27069             int bufsize=BUFSIZE;int h_errno;
27070                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27071                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 rm -f conftest.$ac_objext
27077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27078   (eval $ac_compile) 2>conftest.er1
27079   ac_status=$?
27080   grep -v '^ *+' conftest.er1 >conftest.err
27081   rm -f conftest.er1
27082   cat conftest.err >&5
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } &&
27085          { ac_try='test -z "$ac_c_werror_flag"
27086                          || test ! -s conftest.err'
27087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27088   (eval $ac_try) 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; } &&
27092          { ac_try='test -s conftest.$ac_objext'
27093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094   (eval $ac_try) 2>&5
27095   ac_status=$?
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); }; }; then
27098   ol_cv_func_gethostbyaddr_r_nargs7=yes
27099 else
27100   echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27102
27103 ol_cv_func_gethostbyaddr_r_nargs7=no
27104 fi
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27106
27107         cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 #include <sys/types.h>
27114 #include <sys/socket.h>
27115 #include <netinet/in.h>
27116 #include <netdb.h>
27117 #define BUFSIZE (sizeof(struct hostent)+10)
27118 int
27119 main ()
27120 {
27121 struct hostent hent;
27122                 struct hostent *rhent; char buffer[BUFSIZE];
27123                 struct in_addr add;
27124                 size_t alen=sizeof(struct in_addr);
27125                 int bufsize=BUFSIZE;int h_errno;
27126                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27127                         alen, AF_INET, &hent, buffer, bufsize,
27128                         &rhent, &h_errno);
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27135   (eval $ac_compile) 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
27139   cat conftest.err >&5
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); } &&
27142          { ac_try='test -z "$ac_c_werror_flag"
27143                          || test ! -s conftest.err'
27144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145   (eval $ac_try) 2>&5
27146   ac_status=$?
27147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); }; } &&
27149          { ac_try='test -s conftest.$ac_objext'
27150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151   (eval $ac_try) 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; }; then
27155   ol_cv_func_gethostbyaddr_r_nargs8=yes
27156 else
27157   echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160 ol_cv_func_gethostbyaddr_r_nargs8=no
27161 fi
27162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163
27164         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27165            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27166
27167                 ol_cv_func_gethostbyaddr_r_nargs=7
27168
27169         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27170              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27171
27172                 ol_cv_func_gethostbyaddr_r_nargs=8
27173
27174         else
27175                 ol_cv_func_gethostbyaddr_r_nargs=0
27176         fi
27177
27178 fi
27179 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27180 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27181   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27182
27183 cat >>confdefs.h <<_ACEOF
27184 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27185 _ACEOF
27186
27187   fi
27188
27189 else
27190         ol_cv_func_gethostbyaddr_r_nargs=0
27191 fi
27192
27193 ol_link_bdb=no
27194
27195 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27196         ol_cv_berkeley_db=no
27197
27198 for ac_header in db.h
27199 do
27200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27202   echo "$as_me:$LINENO: checking for $ac_header" >&5
27203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27205   echo $ECHO_N "(cached) $ECHO_C" >&6
27206 fi
27207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27209 else
27210   # Is the header compilable?
27211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27213 cat >conftest.$ac_ext <<_ACEOF
27214 /* confdefs.h.  */
27215 _ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h.  */
27219 $ac_includes_default
27220 #include <$ac_header>
27221 _ACEOF
27222 rm -f conftest.$ac_objext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27224   (eval $ac_compile) 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } &&
27231          { ac_try='test -z "$ac_c_werror_flag"
27232                          || test ! -s conftest.err'
27233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234   (eval $ac_try) 2>&5
27235   ac_status=$?
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); }; } &&
27238          { ac_try='test -s conftest.$ac_objext'
27239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240   (eval $ac_try) 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; }; then
27244   ac_header_compiler=yes
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249 ac_header_compiler=no
27250 fi
27251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27253 echo "${ECHO_T}$ac_header_compiler" >&6
27254
27255 # Is the header present?
27256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27258 cat >conftest.$ac_ext <<_ACEOF
27259 /* confdefs.h.  */
27260 _ACEOF
27261 cat confdefs.h >>conftest.$ac_ext
27262 cat >>conftest.$ac_ext <<_ACEOF
27263 /* end confdefs.h.  */
27264 #include <$ac_header>
27265 _ACEOF
27266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27267   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27268   ac_status=$?
27269   grep -v '^ *+' conftest.er1 >conftest.err
27270   rm -f conftest.er1
27271   cat conftest.err >&5
27272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273   (exit $ac_status); } >/dev/null; then
27274   if test -s conftest.err; then
27275     ac_cpp_err=$ac_c_preproc_warn_flag
27276     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27277   else
27278     ac_cpp_err=
27279   fi
27280 else
27281   ac_cpp_err=yes
27282 fi
27283 if test -z "$ac_cpp_err"; then
27284   ac_header_preproc=yes
27285 else
27286   echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27288
27289   ac_header_preproc=no
27290 fi
27291 rm -f conftest.err conftest.$ac_ext
27292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27293 echo "${ECHO_T}$ac_header_preproc" >&6
27294
27295 # So?  What about this header?
27296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27297   yes:no: )
27298     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27300     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27302     ac_header_preproc=yes
27303     ;;
27304   no:yes:* )
27305     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27307     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27308 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27309     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27311     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27312 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27315     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27317     (
27318       cat <<\_ASBOX
27319 ## --------------------------------------------- ##
27320 ## Report this to <http://www.openldap.org/its/> ##
27321 ## --------------------------------------------- ##
27322 _ASBOX
27323     ) |
27324       sed "s/^/$as_me: WARNING:     /" >&2
27325     ;;
27326 esac
27327 echo "$as_me:$LINENO: checking for $ac_header" >&5
27328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27330   echo $ECHO_N "(cached) $ECHO_C" >&6
27331 else
27332   eval "$as_ac_Header=\$ac_header_preproc"
27333 fi
27334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27336
27337 fi
27338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27339   cat >>confdefs.h <<_ACEOF
27340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27341 _ACEOF
27342
27343 fi
27344
27345 done
27346
27347 if test $ac_cv_header_db_h = yes; then
27348         ol_cv_lib_db=no
27349
27350 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27351 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27352 if test "${ol_cv_bdb_major+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355
27356         ol_cv_bdb_major=0
27357         if test $ol_cv_bdb_major = 0 ; then
27358                 cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364
27365 #include <db.h>
27366 #ifndef DB_VERSION_MAJOR
27367 #       define DB_VERSION_MAJOR 1
27368 #endif
27369 #if DB_VERSION_MAJOR == 4
27370 __db_version
27371 #endif
27372
27373 _ACEOF
27374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27375   $EGREP "__db_version" >/dev/null 2>&1; then
27376   ol_cv_bdb_major=4
27377 else
27378   :
27379 fi
27380 rm -f conftest*
27381
27382         fi
27383         if test $ol_cv_bdb_major = 0 ; then
27384                 cat >conftest.$ac_ext <<_ACEOF
27385 /* confdefs.h.  */
27386 _ACEOF
27387 cat confdefs.h >>conftest.$ac_ext
27388 cat >>conftest.$ac_ext <<_ACEOF
27389 /* end confdefs.h.  */
27390
27391 #include <db.h>
27392 #ifndef DB_VERSION_MAJOR
27393 #       define DB_VERSION_MAJOR 1
27394 #endif
27395 #if DB_VERSION_MAJOR == 3
27396 __db_version
27397 #endif
27398
27399 _ACEOF
27400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27401   $EGREP "__db_version" >/dev/null 2>&1; then
27402   ol_cv_bdb_major=3
27403 else
27404   :
27405 fi
27406 rm -f conftest*
27407
27408         fi
27409         if test $ol_cv_bdb_major = 0 ; then
27410                 cat >conftest.$ac_ext <<_ACEOF
27411 /* confdefs.h.  */
27412 _ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h.  */
27416
27417 #include <db.h>
27418 #ifndef DB_VERSION_MAJOR
27419 #       define DB_VERSION_MAJOR 1
27420 #endif
27421 #if DB_VERSION_MAJOR == 2
27422 __db_version
27423 #endif
27424
27425 _ACEOF
27426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27427   $EGREP "__db_version" >/dev/null 2>&1; then
27428   ol_cv_bdb_major=2
27429 else
27430   :
27431 fi
27432 rm -f conftest*
27433
27434         fi
27435         if test $ol_cv_bdb_major = 0 ; then
27436                 cat >conftest.$ac_ext <<_ACEOF
27437 /* confdefs.h.  */
27438 _ACEOF
27439 cat confdefs.h >>conftest.$ac_ext
27440 cat >>conftest.$ac_ext <<_ACEOF
27441 /* end confdefs.h.  */
27442
27443 #include <db.h>
27444 #ifndef DB_VERSION_MAJOR
27445 #       define DB_VERSION_MAJOR 1
27446 #endif
27447 #if DB_VERSION_MAJOR == 1
27448 __db_version
27449 #endif
27450
27451 _ACEOF
27452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27453   $EGREP "__db_version" >/dev/null 2>&1; then
27454   ol_cv_bdb_major=1
27455 else
27456   :
27457 fi
27458 rm -f conftest*
27459
27460         fi
27461
27462         if test $ol_cv_bdb_major = 0 ; then
27463                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
27464 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
27465    { (exit 1); exit 1; }; }
27466         fi
27467
27468 fi
27469 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
27470 echo "${ECHO_T}$ol_cv_bdb_major" >&6
27471
27472 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
27473 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
27474 if test "${ol_cv_bdb_minor+set}" = set; then
27475   echo $ECHO_N "(cached) $ECHO_C" >&6
27476 else
27477
27478         ol_cv_bdb_minor=0
27479         if test $ol_cv_bdb_minor = 0 ; then
27480                 cat >conftest.$ac_ext <<_ACEOF
27481 /* confdefs.h.  */
27482 _ACEOF
27483 cat confdefs.h >>conftest.$ac_ext
27484 cat >>conftest.$ac_ext <<_ACEOF
27485 /* end confdefs.h.  */
27486
27487 #include <db.h>
27488 #ifndef DB_VERSION_MINOR
27489 #       define DB_VERSION_MINOR 0
27490 #endif
27491 #if DB_VERSION_MINOR == 9
27492 __db_version
27493 #endif
27494
27495 _ACEOF
27496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27497   $EGREP "__db_version" >/dev/null 2>&1; then
27498   ol_cv_bdb_minor=9
27499 else
27500   :
27501 fi
27502 rm -f conftest*
27503
27504         fi
27505         if test $ol_cv_bdb_minor = 0 ; then
27506                 cat >conftest.$ac_ext <<_ACEOF
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512
27513 #include <db.h>
27514 #ifndef DB_VERSION_MINOR
27515 #       define DB_VERSION_MINOR 0
27516 #endif
27517 #if DB_VERSION_MINOR == 8
27518 __db_version
27519 #endif
27520
27521 _ACEOF
27522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27523   $EGREP "__db_version" >/dev/null 2>&1; then
27524   ol_cv_bdb_minor=8
27525 else
27526   :
27527 fi
27528 rm -f conftest*
27529
27530         fi
27531         if test $ol_cv_bdb_minor = 0 ; then
27532                 cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538
27539 #include <db.h>
27540 #ifndef DB_VERSION_MINOR
27541 #       define DB_VERSION_MINOR 0
27542 #endif
27543 #if DB_VERSION_MINOR == 7
27544 __db_version
27545 #endif
27546
27547 _ACEOF
27548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27549   $EGREP "__db_version" >/dev/null 2>&1; then
27550   ol_cv_bdb_minor=7
27551 else
27552   :
27553 fi
27554 rm -f conftest*
27555
27556         fi
27557         if test $ol_cv_bdb_minor = 0 ; then
27558                 cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564
27565 #include <db.h>
27566 #ifndef DB_VERSION_MINOR
27567 #       define DB_VERSION_MINOR 0
27568 #endif
27569 #if DB_VERSION_MINOR == 6
27570 __db_version
27571 #endif
27572
27573 _ACEOF
27574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27575   $EGREP "__db_version" >/dev/null 2>&1; then
27576   ol_cv_bdb_minor=6
27577 else
27578   :
27579 fi
27580 rm -f conftest*
27581
27582         fi
27583         if test $ol_cv_bdb_minor = 0 ; then
27584                 cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h.  */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h.  */
27590
27591 #include <db.h>
27592 #ifndef DB_VERSION_MINOR
27593 #       define DB_VERSION_MINOR 0
27594 #endif
27595 #if DB_VERSION_MINOR == 5
27596 __db_version
27597 #endif
27598
27599 _ACEOF
27600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27601   $EGREP "__db_version" >/dev/null 2>&1; then
27602   ol_cv_bdb_minor=5
27603 else
27604   :
27605 fi
27606 rm -f conftest*
27607
27608         fi
27609         if test $ol_cv_bdb_minor = 0 ; then
27610                 cat >conftest.$ac_ext <<_ACEOF
27611 /* confdefs.h.  */
27612 _ACEOF
27613 cat confdefs.h >>conftest.$ac_ext
27614 cat >>conftest.$ac_ext <<_ACEOF
27615 /* end confdefs.h.  */
27616
27617 #include <db.h>
27618 #ifndef DB_VERSION_MINOR
27619 #       define DB_VERSION_MINOR 0
27620 #endif
27621 #if DB_VERSION_MINOR == 4
27622 __db_version
27623 #endif
27624
27625 _ACEOF
27626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27627   $EGREP "__db_version" >/dev/null 2>&1; then
27628   ol_cv_bdb_minor=4
27629 else
27630   :
27631 fi
27632 rm -f conftest*
27633
27634         fi
27635         if test $ol_cv_bdb_minor = 0 ; then
27636                 cat >conftest.$ac_ext <<_ACEOF
27637 /* confdefs.h.  */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h.  */
27642
27643 #include <db.h>
27644 #ifndef DB_VERSION_MINOR
27645 #       define DB_VERSION_MINOR 0
27646 #endif
27647 #if DB_VERSION_MINOR == 3
27648 __db_version
27649 #endif
27650
27651 _ACEOF
27652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27653   $EGREP "__db_version" >/dev/null 2>&1; then
27654   ol_cv_bdb_minor=3
27655 else
27656   :
27657 fi
27658 rm -f conftest*
27659
27660         fi
27661         if test $ol_cv_bdb_minor = 0 ; then
27662                 cat >conftest.$ac_ext <<_ACEOF
27663 /* confdefs.h.  */
27664 _ACEOF
27665 cat confdefs.h >>conftest.$ac_ext
27666 cat >>conftest.$ac_ext <<_ACEOF
27667 /* end confdefs.h.  */
27668
27669 #include <db.h>
27670 #ifndef DB_VERSION_MINOR
27671 #       define DB_VERSION_MINOR 0
27672 #endif
27673 #if DB_VERSION_MINOR == 2
27674 __db_version
27675 #endif
27676
27677 _ACEOF
27678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27679   $EGREP "__db_version" >/dev/null 2>&1; then
27680   ol_cv_bdb_minor=2
27681 else
27682   :
27683 fi
27684 rm -f conftest*
27685
27686         fi
27687         if test $ol_cv_bdb_minor = 0 ; then
27688                 cat >conftest.$ac_ext <<_ACEOF
27689 /* confdefs.h.  */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h.  */
27694
27695 #include <db.h>
27696 #ifndef DB_VERSION_MINOR
27697 #       define DB_VERSION_MINOR 0
27698 #endif
27699 #if DB_VERSION_MINOR == 1
27700 __db_version
27701 #endif
27702
27703 _ACEOF
27704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27705   $EGREP "__db_version" >/dev/null 2>&1; then
27706   ol_cv_bdb_minor=1
27707 else
27708   :
27709 fi
27710 rm -f conftest*
27711
27712         fi
27713
27714 fi
27715 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27716 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27717
27718 if test $ol_cv_bdb_major = 4 ; then
27719         if test $ol_cv_bdb_minor = 5 ; then
27720                 if test $ol_cv_lib_db = no ; then
27721         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb45)" >&5
27722 echo $ECHO_N "checking for Berkeley DB link (-ldb45)... $ECHO_C" >&6
27723 if test "${ol_cv_db_db45+set}" = set; then
27724   echo $ECHO_N "(cached) $ECHO_C" >&6
27725 else
27726
27727         ol_DB_LIB=-ldb45
27728         ol_LIBS=$LIBS
27729         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27730
27731         cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h.  */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h.  */
27737
27738 #ifdef HAVE_DB_185_H
27739 # include <db_185.h>
27740 #else
27741 # include <db.h>
27742 #endif
27743
27744 #ifndef DB_VERSION_MAJOR
27745 # define DB_VERSION_MAJOR 1
27746 #endif
27747
27748 #ifndef NULL
27749 #define NULL ((void*)0)
27750 #endif
27751
27752 int
27753 main ()
27754 {
27755
27756 #if DB_VERSION_MAJOR > 1
27757         {
27758                 char *version;
27759                 int major, minor, patch;
27760
27761                 version = db_version( &major, &minor, &patch );
27762
27763                 if( major != DB_VERSION_MAJOR ||
27764                         minor < DB_VERSION_MINOR )
27765                 {
27766                         printf("Berkeley DB version mismatch\n"
27767                                 "\theader: %s\n\tlibrary: %s\n",
27768                                 DB_VERSION_STRING, version);
27769                         return 1;
27770                 }
27771         }
27772 #endif
27773
27774 #if DB_VERSION_MAJOR > 2
27775         db_env_create( NULL, 0 );
27776 #elif DB_VERSION_MAJOR > 1
27777         db_appexit( NULL );
27778 #else
27779         (void) dbopen( NULL, 0, 0, 0, NULL);
27780 #endif
27781
27782   ;
27783   return 0;
27784 }
27785 _ACEOF
27786 rm -f conftest.$ac_objext conftest$ac_exeext
27787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27788   (eval $ac_link) 2>conftest.er1
27789   ac_status=$?
27790   grep -v '^ *+' conftest.er1 >conftest.err
27791   rm -f conftest.er1
27792   cat conftest.err >&5
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); } &&
27795          { ac_try='test -z "$ac_c_werror_flag"
27796                          || test ! -s conftest.err'
27797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798   (eval $ac_try) 2>&5
27799   ac_status=$?
27800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801   (exit $ac_status); }; } &&
27802          { ac_try='test -s conftest$ac_exeext'
27803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804   (eval $ac_try) 2>&5
27805   ac_status=$?
27806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807   (exit $ac_status); }; }; then
27808   ol_cv_db_db45=yes
27809 else
27810   echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813 ol_cv_db_db45=no
27814 fi
27815 rm -f conftest.err conftest.$ac_objext \
27816       conftest$ac_exeext conftest.$ac_ext
27817
27818         LIBS="$ol_LIBS"
27819
27820 fi
27821 echo "$as_me:$LINENO: result: $ol_cv_db_db45" >&5
27822 echo "${ECHO_T}$ol_cv_db_db45" >&6
27823
27824         if test $ol_cv_db_db45 = yes ; then
27825                 ol_cv_lib_db=-ldb45
27826         fi
27827 fi
27828
27829                 if test $ol_cv_lib_db = no ; then
27830         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-45)" >&5
27831 echo $ECHO_N "checking for Berkeley DB link (-ldb-45)... $ECHO_C" >&6
27832 if test "${ol_cv_db_db_45+set}" = set; then
27833   echo $ECHO_N "(cached) $ECHO_C" >&6
27834 else
27835
27836         ol_DB_LIB=-ldb-45
27837         ol_LIBS=$LIBS
27838         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27839
27840         cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846
27847 #ifdef HAVE_DB_185_H
27848 # include <db_185.h>
27849 #else
27850 # include <db.h>
27851 #endif
27852
27853 #ifndef DB_VERSION_MAJOR
27854 # define DB_VERSION_MAJOR 1
27855 #endif
27856
27857 #ifndef NULL
27858 #define NULL ((void*)0)
27859 #endif
27860
27861 int
27862 main ()
27863 {
27864
27865 #if DB_VERSION_MAJOR > 1
27866         {
27867                 char *version;
27868                 int major, minor, patch;
27869
27870                 version = db_version( &major, &minor, &patch );
27871
27872                 if( major != DB_VERSION_MAJOR ||
27873                         minor < DB_VERSION_MINOR )
27874                 {
27875                         printf("Berkeley DB version mismatch\n"
27876                                 "\theader: %s\n\tlibrary: %s\n",
27877                                 DB_VERSION_STRING, version);
27878                         return 1;
27879                 }
27880         }
27881 #endif
27882
27883 #if DB_VERSION_MAJOR > 2
27884         db_env_create( NULL, 0 );
27885 #elif DB_VERSION_MAJOR > 1
27886         db_appexit( NULL );
27887 #else
27888         (void) dbopen( NULL, 0, 0, 0, NULL);
27889 #endif
27890
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 rm -f conftest.$ac_objext conftest$ac_exeext
27896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27897   (eval $ac_link) 2>conftest.er1
27898   ac_status=$?
27899   grep -v '^ *+' conftest.er1 >conftest.err
27900   rm -f conftest.er1
27901   cat conftest.err >&5
27902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903   (exit $ac_status); } &&
27904          { ac_try='test -z "$ac_c_werror_flag"
27905                          || test ! -s conftest.err'
27906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27907   (eval $ac_try) 2>&5
27908   ac_status=$?
27909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910   (exit $ac_status); }; } &&
27911          { ac_try='test -s conftest$ac_exeext'
27912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913   (eval $ac_try) 2>&5
27914   ac_status=$?
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); }; }; then
27917   ol_cv_db_db_45=yes
27918 else
27919   echo "$as_me: failed program was:" >&5
27920 sed 's/^/| /' conftest.$ac_ext >&5
27921
27922 ol_cv_db_db_45=no
27923 fi
27924 rm -f conftest.err conftest.$ac_objext \
27925       conftest$ac_exeext conftest.$ac_ext
27926
27927         LIBS="$ol_LIBS"
27928
27929 fi
27930 echo "$as_me:$LINENO: result: $ol_cv_db_db_45" >&5
27931 echo "${ECHO_T}$ol_cv_db_db_45" >&6
27932
27933         if test $ol_cv_db_db_45 = yes ; then
27934                 ol_cv_lib_db=-ldb-45
27935         fi
27936 fi
27937
27938                 if test $ol_cv_lib_db = no ; then
27939         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.5)" >&5
27940 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.5)... $ECHO_C" >&6
27941 if test "${ol_cv_db_db_4_dot_5+set}" = set; then
27942   echo $ECHO_N "(cached) $ECHO_C" >&6
27943 else
27944
27945         ol_DB_LIB=-ldb-4.5
27946         ol_LIBS=$LIBS
27947         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27948
27949         cat >conftest.$ac_ext <<_ACEOF
27950 /* confdefs.h.  */
27951 _ACEOF
27952 cat confdefs.h >>conftest.$ac_ext
27953 cat >>conftest.$ac_ext <<_ACEOF
27954 /* end confdefs.h.  */
27955
27956 #ifdef HAVE_DB_185_H
27957 # include <db_185.h>
27958 #else
27959 # include <db.h>
27960 #endif
27961
27962 #ifndef DB_VERSION_MAJOR
27963 # define DB_VERSION_MAJOR 1
27964 #endif
27965
27966 #ifndef NULL
27967 #define NULL ((void*)0)
27968 #endif
27969
27970 int
27971 main ()
27972 {
27973
27974 #if DB_VERSION_MAJOR > 1
27975         {
27976                 char *version;
27977                 int major, minor, patch;
27978
27979                 version = db_version( &major, &minor, &patch );
27980
27981                 if( major != DB_VERSION_MAJOR ||
27982                         minor < DB_VERSION_MINOR )
27983                 {
27984                         printf("Berkeley DB version mismatch\n"
27985                                 "\theader: %s\n\tlibrary: %s\n",
27986                                 DB_VERSION_STRING, version);
27987                         return 1;
27988                 }
27989         }
27990 #endif
27991
27992 #if DB_VERSION_MAJOR > 2
27993         db_env_create( NULL, 0 );
27994 #elif DB_VERSION_MAJOR > 1
27995         db_appexit( NULL );
27996 #else
27997         (void) dbopen( NULL, 0, 0, 0, NULL);
27998 #endif
27999
28000   ;
28001   return 0;
28002 }
28003 _ACEOF
28004 rm -f conftest.$ac_objext conftest$ac_exeext
28005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28006   (eval $ac_link) 2>conftest.er1
28007   ac_status=$?
28008   grep -v '^ *+' conftest.er1 >conftest.err
28009   rm -f conftest.er1
28010   cat conftest.err >&5
28011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012   (exit $ac_status); } &&
28013          { ac_try='test -z "$ac_c_werror_flag"
28014                          || test ! -s conftest.err'
28015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016   (eval $ac_try) 2>&5
28017   ac_status=$?
28018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019   (exit $ac_status); }; } &&
28020          { ac_try='test -s conftest$ac_exeext'
28021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28022   (eval $ac_try) 2>&5
28023   ac_status=$?
28024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025   (exit $ac_status); }; }; then
28026   ol_cv_db_db_4_dot_5=yes
28027 else
28028   echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031 ol_cv_db_db_4_dot_5=no
28032 fi
28033 rm -f conftest.err conftest.$ac_objext \
28034       conftest$ac_exeext conftest.$ac_ext
28035
28036         LIBS="$ol_LIBS"
28037
28038 fi
28039 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_5" >&5
28040 echo "${ECHO_T}$ol_cv_db_db_4_dot_5" >&6
28041
28042         if test $ol_cv_db_db_4_dot_5 = yes ; then
28043                 ol_cv_lib_db=-ldb-4.5
28044         fi
28045 fi
28046
28047                 if test $ol_cv_lib_db = no ; then
28048         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-5)" >&5
28049 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-5)... $ECHO_C" >&6
28050 if test "${ol_cv_db_db_4_5+set}" = set; then
28051   echo $ECHO_N "(cached) $ECHO_C" >&6
28052 else
28053
28054         ol_DB_LIB=-ldb-4-5
28055         ol_LIBS=$LIBS
28056         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28057
28058         cat >conftest.$ac_ext <<_ACEOF
28059 /* confdefs.h.  */
28060 _ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h.  */
28064
28065 #ifdef HAVE_DB_185_H
28066 # include <db_185.h>
28067 #else
28068 # include <db.h>
28069 #endif
28070
28071 #ifndef DB_VERSION_MAJOR
28072 # define DB_VERSION_MAJOR 1
28073 #endif
28074
28075 #ifndef NULL
28076 #define NULL ((void*)0)
28077 #endif
28078
28079 int
28080 main ()
28081 {
28082
28083 #if DB_VERSION_MAJOR > 1
28084         {
28085                 char *version;
28086                 int major, minor, patch;
28087
28088                 version = db_version( &major, &minor, &patch );
28089
28090                 if( major != DB_VERSION_MAJOR ||
28091                         minor < DB_VERSION_MINOR )
28092                 {
28093                         printf("Berkeley DB version mismatch\n"
28094                                 "\theader: %s\n\tlibrary: %s\n",
28095                                 DB_VERSION_STRING, version);
28096                         return 1;
28097                 }
28098         }
28099 #endif
28100
28101 #if DB_VERSION_MAJOR > 2
28102         db_env_create( NULL, 0 );
28103 #elif DB_VERSION_MAJOR > 1
28104         db_appexit( NULL );
28105 #else
28106         (void) dbopen( NULL, 0, 0, 0, NULL);
28107 #endif
28108
28109   ;
28110   return 0;
28111 }
28112 _ACEOF
28113 rm -f conftest.$ac_objext conftest$ac_exeext
28114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28115   (eval $ac_link) 2>conftest.er1
28116   ac_status=$?
28117   grep -v '^ *+' conftest.er1 >conftest.err
28118   rm -f conftest.er1
28119   cat conftest.err >&5
28120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121   (exit $ac_status); } &&
28122          { ac_try='test -z "$ac_c_werror_flag"
28123                          || test ! -s conftest.err'
28124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125   (eval $ac_try) 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); }; } &&
28129          { ac_try='test -s conftest$ac_exeext'
28130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28131   (eval $ac_try) 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); }; }; then
28135   ol_cv_db_db_4_5=yes
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 ol_cv_db_db_4_5=no
28141 fi
28142 rm -f conftest.err conftest.$ac_objext \
28143       conftest$ac_exeext conftest.$ac_ext
28144
28145         LIBS="$ol_LIBS"
28146
28147 fi
28148 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_5" >&5
28149 echo "${ECHO_T}$ol_cv_db_db_4_5" >&6
28150
28151         if test $ol_cv_db_db_4_5 = yes ; then
28152                 ol_cv_lib_db=-ldb-4-5
28153         fi
28154 fi
28155
28156         elif test $ol_cv_bdb_minor = 4 ; then
28157                 if test $ol_cv_lib_db = no ; then
28158         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28159 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28160 if test "${ol_cv_db_db44+set}" = set; then
28161   echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163
28164         ol_DB_LIB=-ldb44
28165         ol_LIBS=$LIBS
28166         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28167
28168         cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174
28175 #ifdef HAVE_DB_185_H
28176 # include <db_185.h>
28177 #else
28178 # include <db.h>
28179 #endif
28180
28181 #ifndef DB_VERSION_MAJOR
28182 # define DB_VERSION_MAJOR 1
28183 #endif
28184
28185 #ifndef NULL
28186 #define NULL ((void*)0)
28187 #endif
28188
28189 int
28190 main ()
28191 {
28192
28193 #if DB_VERSION_MAJOR > 1
28194         {
28195                 char *version;
28196                 int major, minor, patch;
28197
28198                 version = db_version( &major, &minor, &patch );
28199
28200                 if( major != DB_VERSION_MAJOR ||
28201                         minor < DB_VERSION_MINOR )
28202                 {
28203                         printf("Berkeley DB version mismatch\n"
28204                                 "\theader: %s\n\tlibrary: %s\n",
28205                                 DB_VERSION_STRING, version);
28206                         return 1;
28207                 }
28208         }
28209 #endif
28210
28211 #if DB_VERSION_MAJOR > 2
28212         db_env_create( NULL, 0 );
28213 #elif DB_VERSION_MAJOR > 1
28214         db_appexit( NULL );
28215 #else
28216         (void) dbopen( NULL, 0, 0, 0, NULL);
28217 #endif
28218
28219   ;
28220   return 0;
28221 }
28222 _ACEOF
28223 rm -f conftest.$ac_objext conftest$ac_exeext
28224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28225   (eval $ac_link) 2>conftest.er1
28226   ac_status=$?
28227   grep -v '^ *+' conftest.er1 >conftest.err
28228   rm -f conftest.er1
28229   cat conftest.err >&5
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); } &&
28232          { ac_try='test -z "$ac_c_werror_flag"
28233                          || test ! -s conftest.err'
28234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; } &&
28239          { ac_try='test -s conftest$ac_exeext'
28240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28241   (eval $ac_try) 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245   ol_cv_db_db44=yes
28246 else
28247   echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28249
28250 ol_cv_db_db44=no
28251 fi
28252 rm -f conftest.err conftest.$ac_objext \
28253       conftest$ac_exeext conftest.$ac_ext
28254
28255         LIBS="$ol_LIBS"
28256
28257 fi
28258 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28259 echo "${ECHO_T}$ol_cv_db_db44" >&6
28260
28261         if test $ol_cv_db_db44 = yes ; then
28262                 ol_cv_lib_db=-ldb44
28263         fi
28264 fi
28265
28266                 if test $ol_cv_lib_db = no ; then
28267         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28268 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28269 if test "${ol_cv_db_db_44+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272
28273         ol_DB_LIB=-ldb-44
28274         ol_LIBS=$LIBS
28275         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28276
28277         cat >conftest.$ac_ext <<_ACEOF
28278 /* confdefs.h.  */
28279 _ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h.  */
28283
28284 #ifdef HAVE_DB_185_H
28285 # include <db_185.h>
28286 #else
28287 # include <db.h>
28288 #endif
28289
28290 #ifndef DB_VERSION_MAJOR
28291 # define DB_VERSION_MAJOR 1
28292 #endif
28293
28294 #ifndef NULL
28295 #define NULL ((void*)0)
28296 #endif
28297
28298 int
28299 main ()
28300 {
28301
28302 #if DB_VERSION_MAJOR > 1
28303         {
28304                 char *version;
28305                 int major, minor, patch;
28306
28307                 version = db_version( &major, &minor, &patch );
28308
28309                 if( major != DB_VERSION_MAJOR ||
28310                         minor < DB_VERSION_MINOR )
28311                 {
28312                         printf("Berkeley DB version mismatch\n"
28313                                 "\theader: %s\n\tlibrary: %s\n",
28314                                 DB_VERSION_STRING, version);
28315                         return 1;
28316                 }
28317         }
28318 #endif
28319
28320 #if DB_VERSION_MAJOR > 2
28321         db_env_create( NULL, 0 );
28322 #elif DB_VERSION_MAJOR > 1
28323         db_appexit( NULL );
28324 #else
28325         (void) dbopen( NULL, 0, 0, 0, NULL);
28326 #endif
28327
28328   ;
28329   return 0;
28330 }
28331 _ACEOF
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28334   (eval $ac_link) 2>conftest.er1
28335   ac_status=$?
28336   grep -v '^ *+' conftest.er1 >conftest.err
28337   rm -f conftest.er1
28338   cat conftest.err >&5
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); } &&
28341          { ac_try='test -z "$ac_c_werror_flag"
28342                          || test ! -s conftest.err'
28343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344   (eval $ac_try) 2>&5
28345   ac_status=$?
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; } &&
28348          { ac_try='test -s conftest$ac_exeext'
28349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350   (eval $ac_try) 2>&5
28351   ac_status=$?
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); }; }; then
28354   ol_cv_db_db_44=yes
28355 else
28356   echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28358
28359 ol_cv_db_db_44=no
28360 fi
28361 rm -f conftest.err conftest.$ac_objext \
28362       conftest$ac_exeext conftest.$ac_ext
28363
28364         LIBS="$ol_LIBS"
28365
28366 fi
28367 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28368 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28369
28370         if test $ol_cv_db_db_44 = yes ; then
28371                 ol_cv_lib_db=-ldb-44
28372         fi
28373 fi
28374
28375                 if test $ol_cv_lib_db = no ; then
28376         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28377 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28378 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381
28382         ol_DB_LIB=-ldb-4.4
28383         ol_LIBS=$LIBS
28384         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28385
28386         cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392
28393 #ifdef HAVE_DB_185_H
28394 # include <db_185.h>
28395 #else
28396 # include <db.h>
28397 #endif
28398
28399 #ifndef DB_VERSION_MAJOR
28400 # define DB_VERSION_MAJOR 1
28401 #endif
28402
28403 #ifndef NULL
28404 #define NULL ((void*)0)
28405 #endif
28406
28407 int
28408 main ()
28409 {
28410
28411 #if DB_VERSION_MAJOR > 1
28412         {
28413                 char *version;
28414                 int major, minor, patch;
28415
28416                 version = db_version( &major, &minor, &patch );
28417
28418                 if( major != DB_VERSION_MAJOR ||
28419                         minor < DB_VERSION_MINOR )
28420                 {
28421                         printf("Berkeley DB version mismatch\n"
28422                                 "\theader: %s\n\tlibrary: %s\n",
28423                                 DB_VERSION_STRING, version);
28424                         return 1;
28425                 }
28426         }
28427 #endif
28428
28429 #if DB_VERSION_MAJOR > 2
28430         db_env_create( NULL, 0 );
28431 #elif DB_VERSION_MAJOR > 1
28432         db_appexit( NULL );
28433 #else
28434         (void) dbopen( NULL, 0, 0, 0, NULL);
28435 #endif
28436
28437   ;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28443   (eval $ac_link) 2>conftest.er1
28444   ac_status=$?
28445   grep -v '^ *+' conftest.er1 >conftest.err
28446   rm -f conftest.er1
28447   cat conftest.err >&5
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); } &&
28450          { ac_try='test -z "$ac_c_werror_flag"
28451                          || test ! -s conftest.err'
28452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453   (eval $ac_try) 2>&5
28454   ac_status=$?
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); }; } &&
28457          { ac_try='test -s conftest$ac_exeext'
28458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459   (eval $ac_try) 2>&5
28460   ac_status=$?
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); }; }; then
28463   ol_cv_db_db_4_dot_4=yes
28464 else
28465   echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28467
28468 ol_cv_db_db_4_dot_4=no
28469 fi
28470 rm -f conftest.err conftest.$ac_objext \
28471       conftest$ac_exeext conftest.$ac_ext
28472
28473         LIBS="$ol_LIBS"
28474
28475 fi
28476 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28477 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28478
28479         if test $ol_cv_db_db_4_dot_4 = yes ; then
28480                 ol_cv_lib_db=-ldb-4.4
28481         fi
28482 fi
28483
28484                 if test $ol_cv_lib_db = no ; then
28485         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28486 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28487 if test "${ol_cv_db_db_4_4+set}" = set; then
28488   echo $ECHO_N "(cached) $ECHO_C" >&6
28489 else
28490
28491         ol_DB_LIB=-ldb-4-4
28492         ol_LIBS=$LIBS
28493         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28494
28495         cat >conftest.$ac_ext <<_ACEOF
28496 /* confdefs.h.  */
28497 _ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h.  */
28501
28502 #ifdef HAVE_DB_185_H
28503 # include <db_185.h>
28504 #else
28505 # include <db.h>
28506 #endif
28507
28508 #ifndef DB_VERSION_MAJOR
28509 # define DB_VERSION_MAJOR 1
28510 #endif
28511
28512 #ifndef NULL
28513 #define NULL ((void*)0)
28514 #endif
28515
28516 int
28517 main ()
28518 {
28519
28520 #if DB_VERSION_MAJOR > 1
28521         {
28522                 char *version;
28523                 int major, minor, patch;
28524
28525                 version = db_version( &major, &minor, &patch );
28526
28527                 if( major != DB_VERSION_MAJOR ||
28528                         minor < DB_VERSION_MINOR )
28529                 {
28530                         printf("Berkeley DB version mismatch\n"
28531                                 "\theader: %s\n\tlibrary: %s\n",
28532                                 DB_VERSION_STRING, version);
28533                         return 1;
28534                 }
28535         }
28536 #endif
28537
28538 #if DB_VERSION_MAJOR > 2
28539         db_env_create( NULL, 0 );
28540 #elif DB_VERSION_MAJOR > 1
28541         db_appexit( NULL );
28542 #else
28543         (void) dbopen( NULL, 0, 0, 0, NULL);
28544 #endif
28545
28546   ;
28547   return 0;
28548 }
28549 _ACEOF
28550 rm -f conftest.$ac_objext conftest$ac_exeext
28551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28552   (eval $ac_link) 2>conftest.er1
28553   ac_status=$?
28554   grep -v '^ *+' conftest.er1 >conftest.err
28555   rm -f conftest.er1
28556   cat conftest.err >&5
28557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558   (exit $ac_status); } &&
28559          { ac_try='test -z "$ac_c_werror_flag"
28560                          || test ! -s conftest.err'
28561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28562   (eval $ac_try) 2>&5
28563   ac_status=$?
28564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565   (exit $ac_status); }; } &&
28566          { ac_try='test -s conftest$ac_exeext'
28567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568   (eval $ac_try) 2>&5
28569   ac_status=$?
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); }; }; then
28572   ol_cv_db_db_4_4=yes
28573 else
28574   echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28576
28577 ol_cv_db_db_4_4=no
28578 fi
28579 rm -f conftest.err conftest.$ac_objext \
28580       conftest$ac_exeext conftest.$ac_ext
28581
28582         LIBS="$ol_LIBS"
28583
28584 fi
28585 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28586 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28587
28588         if test $ol_cv_db_db_4_4 = yes ; then
28589                 ol_cv_lib_db=-ldb-4-4
28590         fi
28591 fi
28592
28593         elif test $ol_cv_bdb_minor = 3 ; then
28594                 if test $ol_cv_lib_db = no ; then
28595         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28596 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28597 if test "${ol_cv_db_db43+set}" = set; then
28598   echo $ECHO_N "(cached) $ECHO_C" >&6
28599 else
28600
28601         ol_DB_LIB=-ldb43
28602         ol_LIBS=$LIBS
28603         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28604
28605         cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611
28612 #ifdef HAVE_DB_185_H
28613 # include <db_185.h>
28614 #else
28615 # include <db.h>
28616 #endif
28617
28618 #ifndef DB_VERSION_MAJOR
28619 # define DB_VERSION_MAJOR 1
28620 #endif
28621
28622 #ifndef NULL
28623 #define NULL ((void*)0)
28624 #endif
28625
28626 int
28627 main ()
28628 {
28629
28630 #if DB_VERSION_MAJOR > 1
28631         {
28632                 char *version;
28633                 int major, minor, patch;
28634
28635                 version = db_version( &major, &minor, &patch );
28636
28637                 if( major != DB_VERSION_MAJOR ||
28638                         minor < DB_VERSION_MINOR )
28639                 {
28640                         printf("Berkeley DB version mismatch\n"
28641                                 "\theader: %s\n\tlibrary: %s\n",
28642                                 DB_VERSION_STRING, version);
28643                         return 1;
28644                 }
28645         }
28646 #endif
28647
28648 #if DB_VERSION_MAJOR > 2
28649         db_env_create( NULL, 0 );
28650 #elif DB_VERSION_MAJOR > 1
28651         db_appexit( NULL );
28652 #else
28653         (void) dbopen( NULL, 0, 0, 0, NULL);
28654 #endif
28655
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest.$ac_objext conftest$ac_exeext
28661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28662   (eval $ac_link) 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } &&
28669          { ac_try='test -z "$ac_c_werror_flag"
28670                          || test ! -s conftest.err'
28671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28672   (eval $ac_try) 2>&5
28673   ac_status=$?
28674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675   (exit $ac_status); }; } &&
28676          { ac_try='test -s conftest$ac_exeext'
28677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28678   (eval $ac_try) 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; }; then
28682   ol_cv_db_db43=yes
28683 else
28684   echo "$as_me: failed program was:" >&5
28685 sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ol_cv_db_db43=no
28688 fi
28689 rm -f conftest.err conftest.$ac_objext \
28690       conftest$ac_exeext conftest.$ac_ext
28691
28692         LIBS="$ol_LIBS"
28693
28694 fi
28695 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28696 echo "${ECHO_T}$ol_cv_db_db43" >&6
28697
28698         if test $ol_cv_db_db43 = yes ; then
28699                 ol_cv_lib_db=-ldb43
28700         fi
28701 fi
28702
28703                 if test $ol_cv_lib_db = no ; then
28704         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28705 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28706 if test "${ol_cv_db_db_43+set}" = set; then
28707   echo $ECHO_N "(cached) $ECHO_C" >&6
28708 else
28709
28710         ol_DB_LIB=-ldb-43
28711         ol_LIBS=$LIBS
28712         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28713
28714         cat >conftest.$ac_ext <<_ACEOF
28715 /* confdefs.h.  */
28716 _ACEOF
28717 cat confdefs.h >>conftest.$ac_ext
28718 cat >>conftest.$ac_ext <<_ACEOF
28719 /* end confdefs.h.  */
28720
28721 #ifdef HAVE_DB_185_H
28722 # include <db_185.h>
28723 #else
28724 # include <db.h>
28725 #endif
28726
28727 #ifndef DB_VERSION_MAJOR
28728 # define DB_VERSION_MAJOR 1
28729 #endif
28730
28731 #ifndef NULL
28732 #define NULL ((void*)0)
28733 #endif
28734
28735 int
28736 main ()
28737 {
28738
28739 #if DB_VERSION_MAJOR > 1
28740         {
28741                 char *version;
28742                 int major, minor, patch;
28743
28744                 version = db_version( &major, &minor, &patch );
28745
28746                 if( major != DB_VERSION_MAJOR ||
28747                         minor < DB_VERSION_MINOR )
28748                 {
28749                         printf("Berkeley DB version mismatch\n"
28750                                 "\theader: %s\n\tlibrary: %s\n",
28751                                 DB_VERSION_STRING, version);
28752                         return 1;
28753                 }
28754         }
28755 #endif
28756
28757 #if DB_VERSION_MAJOR > 2
28758         db_env_create( NULL, 0 );
28759 #elif DB_VERSION_MAJOR > 1
28760         db_appexit( NULL );
28761 #else
28762         (void) dbopen( NULL, 0, 0, 0, NULL);
28763 #endif
28764
28765   ;
28766   return 0;
28767 }
28768 _ACEOF
28769 rm -f conftest.$ac_objext conftest$ac_exeext
28770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28771   (eval $ac_link) 2>conftest.er1
28772   ac_status=$?
28773   grep -v '^ *+' conftest.er1 >conftest.err
28774   rm -f conftest.er1
28775   cat conftest.err >&5
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } &&
28778          { ac_try='test -z "$ac_c_werror_flag"
28779                          || test ! -s conftest.err'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; } &&
28785          { ac_try='test -s conftest$ac_exeext'
28786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787   (eval $ac_try) 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; }; then
28791   ol_cv_db_db_43=yes
28792 else
28793   echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796 ol_cv_db_db_43=no
28797 fi
28798 rm -f conftest.err conftest.$ac_objext \
28799       conftest$ac_exeext conftest.$ac_ext
28800
28801         LIBS="$ol_LIBS"
28802
28803 fi
28804 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28805 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28806
28807         if test $ol_cv_db_db_43 = yes ; then
28808                 ol_cv_lib_db=-ldb-43
28809         fi
28810 fi
28811
28812                 if test $ol_cv_lib_db = no ; then
28813         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28814 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28815 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28816   echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818
28819         ol_DB_LIB=-ldb-4.3
28820         ol_LIBS=$LIBS
28821         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28822
28823         cat >conftest.$ac_ext <<_ACEOF
28824 /* confdefs.h.  */
28825 _ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h.  */
28829
28830 #ifdef HAVE_DB_185_H
28831 # include <db_185.h>
28832 #else
28833 # include <db.h>
28834 #endif
28835
28836 #ifndef DB_VERSION_MAJOR
28837 # define DB_VERSION_MAJOR 1
28838 #endif
28839
28840 #ifndef NULL
28841 #define NULL ((void*)0)
28842 #endif
28843
28844 int
28845 main ()
28846 {
28847
28848 #if DB_VERSION_MAJOR > 1
28849         {
28850                 char *version;
28851                 int major, minor, patch;
28852
28853                 version = db_version( &major, &minor, &patch );
28854
28855                 if( major != DB_VERSION_MAJOR ||
28856                         minor < DB_VERSION_MINOR )
28857                 {
28858                         printf("Berkeley DB version mismatch\n"
28859                                 "\theader: %s\n\tlibrary: %s\n",
28860                                 DB_VERSION_STRING, version);
28861                         return 1;
28862                 }
28863         }
28864 #endif
28865
28866 #if DB_VERSION_MAJOR > 2
28867         db_env_create( NULL, 0 );
28868 #elif DB_VERSION_MAJOR > 1
28869         db_appexit( NULL );
28870 #else
28871         (void) dbopen( NULL, 0, 0, 0, NULL);
28872 #endif
28873
28874   ;
28875   return 0;
28876 }
28877 _ACEOF
28878 rm -f conftest.$ac_objext conftest$ac_exeext
28879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28880   (eval $ac_link) 2>conftest.er1
28881   ac_status=$?
28882   grep -v '^ *+' conftest.er1 >conftest.err
28883   rm -f conftest.er1
28884   cat conftest.err >&5
28885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886   (exit $ac_status); } &&
28887          { ac_try='test -z "$ac_c_werror_flag"
28888                          || test ! -s conftest.err'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; } &&
28894          { ac_try='test -s conftest$ac_exeext'
28895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896   (eval $ac_try) 2>&5
28897   ac_status=$?
28898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899   (exit $ac_status); }; }; then
28900   ol_cv_db_db_4_dot_3=yes
28901 else
28902   echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28904
28905 ol_cv_db_db_4_dot_3=no
28906 fi
28907 rm -f conftest.err conftest.$ac_objext \
28908       conftest$ac_exeext conftest.$ac_ext
28909
28910         LIBS="$ol_LIBS"
28911
28912 fi
28913 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28914 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28915
28916         if test $ol_cv_db_db_4_dot_3 = yes ; then
28917                 ol_cv_lib_db=-ldb-4.3
28918         fi
28919 fi
28920
28921                 if test $ol_cv_lib_db = no ; then
28922         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28923 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28924 if test "${ol_cv_db_db_4_3+set}" = set; then
28925   echo $ECHO_N "(cached) $ECHO_C" >&6
28926 else
28927
28928         ol_DB_LIB=-ldb-4-3
28929         ol_LIBS=$LIBS
28930         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28931
28932         cat >conftest.$ac_ext <<_ACEOF
28933 /* confdefs.h.  */
28934 _ACEOF
28935 cat confdefs.h >>conftest.$ac_ext
28936 cat >>conftest.$ac_ext <<_ACEOF
28937 /* end confdefs.h.  */
28938
28939 #ifdef HAVE_DB_185_H
28940 # include <db_185.h>
28941 #else
28942 # include <db.h>
28943 #endif
28944
28945 #ifndef DB_VERSION_MAJOR
28946 # define DB_VERSION_MAJOR 1
28947 #endif
28948
28949 #ifndef NULL
28950 #define NULL ((void*)0)
28951 #endif
28952
28953 int
28954 main ()
28955 {
28956
28957 #if DB_VERSION_MAJOR > 1
28958         {
28959                 char *version;
28960                 int major, minor, patch;
28961
28962                 version = db_version( &major, &minor, &patch );
28963
28964                 if( major != DB_VERSION_MAJOR ||
28965                         minor < DB_VERSION_MINOR )
28966                 {
28967                         printf("Berkeley DB version mismatch\n"
28968                                 "\theader: %s\n\tlibrary: %s\n",
28969                                 DB_VERSION_STRING, version);
28970                         return 1;
28971                 }
28972         }
28973 #endif
28974
28975 #if DB_VERSION_MAJOR > 2
28976         db_env_create( NULL, 0 );
28977 #elif DB_VERSION_MAJOR > 1
28978         db_appexit( NULL );
28979 #else
28980         (void) dbopen( NULL, 0, 0, 0, NULL);
28981 #endif
28982
28983   ;
28984   return 0;
28985 }
28986 _ACEOF
28987 rm -f conftest.$ac_objext conftest$ac_exeext
28988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28989   (eval $ac_link) 2>conftest.er1
28990   ac_status=$?
28991   grep -v '^ *+' conftest.er1 >conftest.err
28992   rm -f conftest.er1
28993   cat conftest.err >&5
28994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995   (exit $ac_status); } &&
28996          { ac_try='test -z "$ac_c_werror_flag"
28997                          || test ! -s conftest.err'
28998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999   (eval $ac_try) 2>&5
29000   ac_status=$?
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); }; } &&
29003          { ac_try='test -s conftest$ac_exeext'
29004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29005   (eval $ac_try) 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); }; }; then
29009   ol_cv_db_db_4_3=yes
29010 else
29011   echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29013
29014 ol_cv_db_db_4_3=no
29015 fi
29016 rm -f conftest.err conftest.$ac_objext \
29017       conftest$ac_exeext conftest.$ac_ext
29018
29019         LIBS="$ol_LIBS"
29020
29021 fi
29022 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29023 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29024
29025         if test $ol_cv_db_db_4_3 = yes ; then
29026                 ol_cv_lib_db=-ldb-4-3
29027         fi
29028 fi
29029
29030         elif test $ol_cv_bdb_minor = 2 ; then
29031                 if test $ol_cv_lib_db = no ; then
29032         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29033 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29034 if test "${ol_cv_db_db42+set}" = set; then
29035   echo $ECHO_N "(cached) $ECHO_C" >&6
29036 else
29037
29038         ol_DB_LIB=-ldb42
29039         ol_LIBS=$LIBS
29040         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29041
29042         cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h.  */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h.  */
29048
29049 #ifdef HAVE_DB_185_H
29050 # include <db_185.h>
29051 #else
29052 # include <db.h>
29053 #endif
29054
29055 #ifndef DB_VERSION_MAJOR
29056 # define DB_VERSION_MAJOR 1
29057 #endif
29058
29059 #ifndef NULL
29060 #define NULL ((void*)0)
29061 #endif
29062
29063 int
29064 main ()
29065 {
29066
29067 #if DB_VERSION_MAJOR > 1
29068         {
29069                 char *version;
29070                 int major, minor, patch;
29071
29072                 version = db_version( &major, &minor, &patch );
29073
29074                 if( major != DB_VERSION_MAJOR ||
29075                         minor < DB_VERSION_MINOR )
29076                 {
29077                         printf("Berkeley DB version mismatch\n"
29078                                 "\theader: %s\n\tlibrary: %s\n",
29079                                 DB_VERSION_STRING, version);
29080                         return 1;
29081                 }
29082         }
29083 #endif
29084
29085 #if DB_VERSION_MAJOR > 2
29086         db_env_create( NULL, 0 );
29087 #elif DB_VERSION_MAJOR > 1
29088         db_appexit( NULL );
29089 #else
29090         (void) dbopen( NULL, 0, 0, 0, NULL);
29091 #endif
29092
29093   ;
29094   return 0;
29095 }
29096 _ACEOF
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099   (eval $ac_link) 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } &&
29106          { ac_try='test -z "$ac_c_werror_flag"
29107                          || test ! -s conftest.err'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; } &&
29113          { ac_try='test -s conftest$ac_exeext'
29114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115   (eval $ac_try) 2>&5
29116   ac_status=$?
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); }; }; then
29119   ol_cv_db_db42=yes
29120 else
29121   echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124 ol_cv_db_db42=no
29125 fi
29126 rm -f conftest.err conftest.$ac_objext \
29127       conftest$ac_exeext conftest.$ac_ext
29128
29129         LIBS="$ol_LIBS"
29130
29131 fi
29132 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29133 echo "${ECHO_T}$ol_cv_db_db42" >&6
29134
29135         if test $ol_cv_db_db42 = yes ; then
29136                 ol_cv_lib_db=-ldb42
29137         fi
29138 fi
29139
29140                 if test $ol_cv_lib_db = no ; then
29141         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29142 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29143 if test "${ol_cv_db_db_42+set}" = set; then
29144   echo $ECHO_N "(cached) $ECHO_C" >&6
29145 else
29146
29147         ol_DB_LIB=-ldb-42
29148         ol_LIBS=$LIBS
29149         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29150
29151         cat >conftest.$ac_ext <<_ACEOF
29152 /* confdefs.h.  */
29153 _ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h.  */
29157
29158 #ifdef HAVE_DB_185_H
29159 # include <db_185.h>
29160 #else
29161 # include <db.h>
29162 #endif
29163
29164 #ifndef DB_VERSION_MAJOR
29165 # define DB_VERSION_MAJOR 1
29166 #endif
29167
29168 #ifndef NULL
29169 #define NULL ((void*)0)
29170 #endif
29171
29172 int
29173 main ()
29174 {
29175
29176 #if DB_VERSION_MAJOR > 1
29177         {
29178                 char *version;
29179                 int major, minor, patch;
29180
29181                 version = db_version( &major, &minor, &patch );
29182
29183                 if( major != DB_VERSION_MAJOR ||
29184                         minor < DB_VERSION_MINOR )
29185                 {
29186                         printf("Berkeley DB version mismatch\n"
29187                                 "\theader: %s\n\tlibrary: %s\n",
29188                                 DB_VERSION_STRING, version);
29189                         return 1;
29190                 }
29191         }
29192 #endif
29193
29194 #if DB_VERSION_MAJOR > 2
29195         db_env_create( NULL, 0 );
29196 #elif DB_VERSION_MAJOR > 1
29197         db_appexit( NULL );
29198 #else
29199         (void) dbopen( NULL, 0, 0, 0, NULL);
29200 #endif
29201
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext conftest$ac_exeext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208   (eval $ac_link) 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_c_werror_flag"
29216                          || test ! -s conftest.err'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; } &&
29222          { ac_try='test -s conftest$ac_exeext'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228   ol_cv_db_db_42=yes
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233 ol_cv_db_db_42=no
29234 fi
29235 rm -f conftest.err conftest.$ac_objext \
29236       conftest$ac_exeext conftest.$ac_ext
29237
29238         LIBS="$ol_LIBS"
29239
29240 fi
29241 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29242 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29243
29244         if test $ol_cv_db_db_42 = yes ; then
29245                 ol_cv_lib_db=-ldb-42
29246         fi
29247 fi
29248
29249                 if test $ol_cv_lib_db = no ; then
29250         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29251 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29252 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255
29256         ol_DB_LIB=-ldb-4.2
29257         ol_LIBS=$LIBS
29258         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29259
29260         cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h.  */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h.  */
29266
29267 #ifdef HAVE_DB_185_H
29268 # include <db_185.h>
29269 #else
29270 # include <db.h>
29271 #endif
29272
29273 #ifndef DB_VERSION_MAJOR
29274 # define DB_VERSION_MAJOR 1
29275 #endif
29276
29277 #ifndef NULL
29278 #define NULL ((void*)0)
29279 #endif
29280
29281 int
29282 main ()
29283 {
29284
29285 #if DB_VERSION_MAJOR > 1
29286         {
29287                 char *version;
29288                 int major, minor, patch;
29289
29290                 version = db_version( &major, &minor, &patch );
29291
29292                 if( major != DB_VERSION_MAJOR ||
29293                         minor < DB_VERSION_MINOR )
29294                 {
29295                         printf("Berkeley DB version mismatch\n"
29296                                 "\theader: %s\n\tlibrary: %s\n",
29297                                 DB_VERSION_STRING, version);
29298                         return 1;
29299                 }
29300         }
29301 #endif
29302
29303 #if DB_VERSION_MAJOR > 2
29304         db_env_create( NULL, 0 );
29305 #elif DB_VERSION_MAJOR > 1
29306         db_appexit( NULL );
29307 #else
29308         (void) dbopen( NULL, 0, 0, 0, NULL);
29309 #endif
29310
29311   ;
29312   return 0;
29313 }
29314 _ACEOF
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317   (eval $ac_link) 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } &&
29324          { ac_try='test -z "$ac_c_werror_flag"
29325                          || test ! -s conftest.err'
29326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327   (eval $ac_try) 2>&5
29328   ac_status=$?
29329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330   (exit $ac_status); }; } &&
29331          { ac_try='test -s conftest$ac_exeext'
29332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333   (eval $ac_try) 2>&5
29334   ac_status=$?
29335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336   (exit $ac_status); }; }; then
29337   ol_cv_db_db_4_dot_2=yes
29338 else
29339   echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29341
29342 ol_cv_db_db_4_dot_2=no
29343 fi
29344 rm -f conftest.err conftest.$ac_objext \
29345       conftest$ac_exeext conftest.$ac_ext
29346
29347         LIBS="$ol_LIBS"
29348
29349 fi
29350 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29351 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29352
29353         if test $ol_cv_db_db_4_dot_2 = yes ; then
29354                 ol_cv_lib_db=-ldb-4.2
29355         fi
29356 fi
29357
29358                 if test $ol_cv_lib_db = no ; then
29359         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29360 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29361 if test "${ol_cv_db_db_4_2+set}" = set; then
29362   echo $ECHO_N "(cached) $ECHO_C" >&6
29363 else
29364
29365         ol_DB_LIB=-ldb-4-2
29366         ol_LIBS=$LIBS
29367         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29368
29369         cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h.  */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h.  */
29375
29376 #ifdef HAVE_DB_185_H
29377 # include <db_185.h>
29378 #else
29379 # include <db.h>
29380 #endif
29381
29382 #ifndef DB_VERSION_MAJOR
29383 # define DB_VERSION_MAJOR 1
29384 #endif
29385
29386 #ifndef NULL
29387 #define NULL ((void*)0)
29388 #endif
29389
29390 int
29391 main ()
29392 {
29393
29394 #if DB_VERSION_MAJOR > 1
29395         {
29396                 char *version;
29397                 int major, minor, patch;
29398
29399                 version = db_version( &major, &minor, &patch );
29400
29401                 if( major != DB_VERSION_MAJOR ||
29402                         minor < DB_VERSION_MINOR )
29403                 {
29404                         printf("Berkeley DB version mismatch\n"
29405                                 "\theader: %s\n\tlibrary: %s\n",
29406                                 DB_VERSION_STRING, version);
29407                         return 1;
29408                 }
29409         }
29410 #endif
29411
29412 #if DB_VERSION_MAJOR > 2
29413         db_env_create( NULL, 0 );
29414 #elif DB_VERSION_MAJOR > 1
29415         db_appexit( NULL );
29416 #else
29417         (void) dbopen( NULL, 0, 0, 0, NULL);
29418 #endif
29419
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426   (eval $ac_link) 2>conftest.er1
29427   ac_status=$?
29428   grep -v '^ *+' conftest.er1 >conftest.err
29429   rm -f conftest.er1
29430   cat conftest.err >&5
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } &&
29433          { ac_try='test -z "$ac_c_werror_flag"
29434                          || test ! -s conftest.err'
29435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436   (eval $ac_try) 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest$ac_exeext'
29441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442   (eval $ac_try) 2>&5
29443   ac_status=$?
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); }; }; then
29446   ol_cv_db_db_4_2=yes
29447 else
29448   echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ol_cv_db_db_4_2=no
29452 fi
29453 rm -f conftest.err conftest.$ac_objext \
29454       conftest$ac_exeext conftest.$ac_ext
29455
29456         LIBS="$ol_LIBS"
29457
29458 fi
29459 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29460 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29461
29462         if test $ol_cv_db_db_4_2 = yes ; then
29463                 ol_cv_lib_db=-ldb-4-2
29464         fi
29465 fi
29466
29467         elif test $ol_cv_bdb_minor = 1 ; then
29468                 if test $ol_cv_lib_db = no ; then
29469         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29470 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29471 if test "${ol_cv_db_db41+set}" = set; then
29472   echo $ECHO_N "(cached) $ECHO_C" >&6
29473 else
29474
29475         ol_DB_LIB=-ldb41
29476         ol_LIBS=$LIBS
29477         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29478
29479         cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485
29486 #ifdef HAVE_DB_185_H
29487 # include <db_185.h>
29488 #else
29489 # include <db.h>
29490 #endif
29491
29492 #ifndef DB_VERSION_MAJOR
29493 # define DB_VERSION_MAJOR 1
29494 #endif
29495
29496 #ifndef NULL
29497 #define NULL ((void*)0)
29498 #endif
29499
29500 int
29501 main ()
29502 {
29503
29504 #if DB_VERSION_MAJOR > 1
29505         {
29506                 char *version;
29507                 int major, minor, patch;
29508
29509                 version = db_version( &major, &minor, &patch );
29510
29511                 if( major != DB_VERSION_MAJOR ||
29512                         minor < DB_VERSION_MINOR )
29513                 {
29514                         printf("Berkeley DB version mismatch\n"
29515                                 "\theader: %s\n\tlibrary: %s\n",
29516                                 DB_VERSION_STRING, version);
29517                         return 1;
29518                 }
29519         }
29520 #endif
29521
29522 #if DB_VERSION_MAJOR > 2
29523         db_env_create( NULL, 0 );
29524 #elif DB_VERSION_MAJOR > 1
29525         db_appexit( NULL );
29526 #else
29527         (void) dbopen( NULL, 0, 0, 0, NULL);
29528 #endif
29529
29530   ;
29531   return 0;
29532 }
29533 _ACEOF
29534 rm -f conftest.$ac_objext conftest$ac_exeext
29535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29536   (eval $ac_link) 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } &&
29543          { ac_try='test -z "$ac_c_werror_flag"
29544                          || test ! -s conftest.err'
29545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546   (eval $ac_try) 2>&5
29547   ac_status=$?
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); }; } &&
29550          { ac_try='test -s conftest$ac_exeext'
29551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552   (eval $ac_try) 2>&5
29553   ac_status=$?
29554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555   (exit $ac_status); }; }; then
29556   ol_cv_db_db41=yes
29557 else
29558   echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561 ol_cv_db_db41=no
29562 fi
29563 rm -f conftest.err conftest.$ac_objext \
29564       conftest$ac_exeext conftest.$ac_ext
29565
29566         LIBS="$ol_LIBS"
29567
29568 fi
29569 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29570 echo "${ECHO_T}$ol_cv_db_db41" >&6
29571
29572         if test $ol_cv_db_db41 = yes ; then
29573                 ol_cv_lib_db=-ldb41
29574         fi
29575 fi
29576
29577                 if test $ol_cv_lib_db = no ; then
29578         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29579 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29580 if test "${ol_cv_db_db_41+set}" = set; then
29581   echo $ECHO_N "(cached) $ECHO_C" >&6
29582 else
29583
29584         ol_DB_LIB=-ldb-41
29585         ol_LIBS=$LIBS
29586         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29587
29588         cat >conftest.$ac_ext <<_ACEOF
29589 /* confdefs.h.  */
29590 _ACEOF
29591 cat confdefs.h >>conftest.$ac_ext
29592 cat >>conftest.$ac_ext <<_ACEOF
29593 /* end confdefs.h.  */
29594
29595 #ifdef HAVE_DB_185_H
29596 # include <db_185.h>
29597 #else
29598 # include <db.h>
29599 #endif
29600
29601 #ifndef DB_VERSION_MAJOR
29602 # define DB_VERSION_MAJOR 1
29603 #endif
29604
29605 #ifndef NULL
29606 #define NULL ((void*)0)
29607 #endif
29608
29609 int
29610 main ()
29611 {
29612
29613 #if DB_VERSION_MAJOR > 1
29614         {
29615                 char *version;
29616                 int major, minor, patch;
29617
29618                 version = db_version( &major, &minor, &patch );
29619
29620                 if( major != DB_VERSION_MAJOR ||
29621                         minor < DB_VERSION_MINOR )
29622                 {
29623                         printf("Berkeley DB version mismatch\n"
29624                                 "\theader: %s\n\tlibrary: %s\n",
29625                                 DB_VERSION_STRING, version);
29626                         return 1;
29627                 }
29628         }
29629 #endif
29630
29631 #if DB_VERSION_MAJOR > 2
29632         db_env_create( NULL, 0 );
29633 #elif DB_VERSION_MAJOR > 1
29634         db_appexit( NULL );
29635 #else
29636         (void) dbopen( NULL, 0, 0, 0, NULL);
29637 #endif
29638
29639   ;
29640   return 0;
29641 }
29642 _ACEOF
29643 rm -f conftest.$ac_objext conftest$ac_exeext
29644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29645   (eval $ac_link) 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } &&
29652          { ac_try='test -z "$ac_c_werror_flag"
29653                          || test ! -s conftest.err'
29654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655   (eval $ac_try) 2>&5
29656   ac_status=$?
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); }; } &&
29659          { ac_try='test -s conftest$ac_exeext'
29660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661   (eval $ac_try) 2>&5
29662   ac_status=$?
29663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664   (exit $ac_status); }; }; then
29665   ol_cv_db_db_41=yes
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670 ol_cv_db_db_41=no
29671 fi
29672 rm -f conftest.err conftest.$ac_objext \
29673       conftest$ac_exeext conftest.$ac_ext
29674
29675         LIBS="$ol_LIBS"
29676
29677 fi
29678 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29679 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29680
29681         if test $ol_cv_db_db_41 = yes ; then
29682                 ol_cv_lib_db=-ldb-41
29683         fi
29684 fi
29685
29686                 if test $ol_cv_lib_db = no ; then
29687         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29688 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29689 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692
29693         ol_DB_LIB=-ldb-4.1
29694         ol_LIBS=$LIBS
29695         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29696
29697         cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h.  */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h.  */
29703
29704 #ifdef HAVE_DB_185_H
29705 # include <db_185.h>
29706 #else
29707 # include <db.h>
29708 #endif
29709
29710 #ifndef DB_VERSION_MAJOR
29711 # define DB_VERSION_MAJOR 1
29712 #endif
29713
29714 #ifndef NULL
29715 #define NULL ((void*)0)
29716 #endif
29717
29718 int
29719 main ()
29720 {
29721
29722 #if DB_VERSION_MAJOR > 1
29723         {
29724                 char *version;
29725                 int major, minor, patch;
29726
29727                 version = db_version( &major, &minor, &patch );
29728
29729                 if( major != DB_VERSION_MAJOR ||
29730                         minor < DB_VERSION_MINOR )
29731                 {
29732                         printf("Berkeley DB version mismatch\n"
29733                                 "\theader: %s\n\tlibrary: %s\n",
29734                                 DB_VERSION_STRING, version);
29735                         return 1;
29736                 }
29737         }
29738 #endif
29739
29740 #if DB_VERSION_MAJOR > 2
29741         db_env_create( NULL, 0 );
29742 #elif DB_VERSION_MAJOR > 1
29743         db_appexit( NULL );
29744 #else
29745         (void) dbopen( NULL, 0, 0, 0, NULL);
29746 #endif
29747
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29754   (eval $ac_link) 2>conftest.er1
29755   ac_status=$?
29756   grep -v '^ *+' conftest.er1 >conftest.err
29757   rm -f conftest.er1
29758   cat conftest.err >&5
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); } &&
29761          { ac_try='test -z "$ac_c_werror_flag"
29762                          || test ! -s conftest.err'
29763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764   (eval $ac_try) 2>&5
29765   ac_status=$?
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); }; } &&
29768          { ac_try='test -s conftest$ac_exeext'
29769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770   (eval $ac_try) 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   ol_cv_db_db_4_dot_1=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ol_cv_db_db_4_dot_1=no
29780 fi
29781 rm -f conftest.err conftest.$ac_objext \
29782       conftest$ac_exeext conftest.$ac_ext
29783
29784         LIBS="$ol_LIBS"
29785
29786 fi
29787 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29788 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29789
29790         if test $ol_cv_db_db_4_dot_1 = yes ; then
29791                 ol_cv_lib_db=-ldb-4.1
29792         fi
29793 fi
29794
29795                 if test $ol_cv_lib_db = no ; then
29796         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29797 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29798 if test "${ol_cv_db_db_4_1+set}" = set; then
29799   echo $ECHO_N "(cached) $ECHO_C" >&6
29800 else
29801
29802         ol_DB_LIB=-ldb-4-1
29803         ol_LIBS=$LIBS
29804         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29805
29806         cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812
29813 #ifdef HAVE_DB_185_H
29814 # include <db_185.h>
29815 #else
29816 # include <db.h>
29817 #endif
29818
29819 #ifndef DB_VERSION_MAJOR
29820 # define DB_VERSION_MAJOR 1
29821 #endif
29822
29823 #ifndef NULL
29824 #define NULL ((void*)0)
29825 #endif
29826
29827 int
29828 main ()
29829 {
29830
29831 #if DB_VERSION_MAJOR > 1
29832         {
29833                 char *version;
29834                 int major, minor, patch;
29835
29836                 version = db_version( &major, &minor, &patch );
29837
29838                 if( major != DB_VERSION_MAJOR ||
29839                         minor < DB_VERSION_MINOR )
29840                 {
29841                         printf("Berkeley DB version mismatch\n"
29842                                 "\theader: %s\n\tlibrary: %s\n",
29843                                 DB_VERSION_STRING, version);
29844                         return 1;
29845                 }
29846         }
29847 #endif
29848
29849 #if DB_VERSION_MAJOR > 2
29850         db_env_create( NULL, 0 );
29851 #elif DB_VERSION_MAJOR > 1
29852         db_appexit( NULL );
29853 #else
29854         (void) dbopen( NULL, 0, 0, 0, NULL);
29855 #endif
29856
29857   ;
29858   return 0;
29859 }
29860 _ACEOF
29861 rm -f conftest.$ac_objext conftest$ac_exeext
29862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29863   (eval $ac_link) 2>conftest.er1
29864   ac_status=$?
29865   grep -v '^ *+' conftest.er1 >conftest.err
29866   rm -f conftest.er1
29867   cat conftest.err >&5
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); } &&
29870          { ac_try='test -z "$ac_c_werror_flag"
29871                          || test ! -s conftest.err'
29872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873   (eval $ac_try) 2>&5
29874   ac_status=$?
29875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876   (exit $ac_status); }; } &&
29877          { ac_try='test -s conftest$ac_exeext'
29878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879   (eval $ac_try) 2>&5
29880   ac_status=$?
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); }; }; then
29883   ol_cv_db_db_4_1=yes
29884 else
29885   echo "$as_me: failed program was:" >&5
29886 sed 's/^/| /' conftest.$ac_ext >&5
29887
29888 ol_cv_db_db_4_1=no
29889 fi
29890 rm -f conftest.err conftest.$ac_objext \
29891       conftest$ac_exeext conftest.$ac_ext
29892
29893         LIBS="$ol_LIBS"
29894
29895 fi
29896 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29897 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29898
29899         if test $ol_cv_db_db_4_1 = yes ; then
29900                 ol_cv_lib_db=-ldb-4-1
29901         fi
29902 fi
29903
29904         fi
29905         if test $ol_cv_lib_db = no ; then
29906         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29907 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
29908 if test "${ol_cv_db_db_4+set}" = set; then
29909   echo $ECHO_N "(cached) $ECHO_C" >&6
29910 else
29911
29912         ol_DB_LIB=-ldb-4
29913         ol_LIBS=$LIBS
29914         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29915
29916         cat >conftest.$ac_ext <<_ACEOF
29917 /* confdefs.h.  */
29918 _ACEOF
29919 cat confdefs.h >>conftest.$ac_ext
29920 cat >>conftest.$ac_ext <<_ACEOF
29921 /* end confdefs.h.  */
29922
29923 #ifdef HAVE_DB_185_H
29924 # include <db_185.h>
29925 #else
29926 # include <db.h>
29927 #endif
29928
29929 #ifndef DB_VERSION_MAJOR
29930 # define DB_VERSION_MAJOR 1
29931 #endif
29932
29933 #ifndef NULL
29934 #define NULL ((void*)0)
29935 #endif
29936
29937 int
29938 main ()
29939 {
29940
29941 #if DB_VERSION_MAJOR > 1
29942         {
29943                 char *version;
29944                 int major, minor, patch;
29945
29946                 version = db_version( &major, &minor, &patch );
29947
29948                 if( major != DB_VERSION_MAJOR ||
29949                         minor < DB_VERSION_MINOR )
29950                 {
29951                         printf("Berkeley DB version mismatch\n"
29952                                 "\theader: %s\n\tlibrary: %s\n",
29953                                 DB_VERSION_STRING, version);
29954                         return 1;
29955                 }
29956         }
29957 #endif
29958
29959 #if DB_VERSION_MAJOR > 2
29960         db_env_create( NULL, 0 );
29961 #elif DB_VERSION_MAJOR > 1
29962         db_appexit( NULL );
29963 #else
29964         (void) dbopen( NULL, 0, 0, 0, NULL);
29965 #endif
29966
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 rm -f conftest.$ac_objext conftest$ac_exeext
29972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29973   (eval $ac_link) 2>conftest.er1
29974   ac_status=$?
29975   grep -v '^ *+' conftest.er1 >conftest.err
29976   rm -f conftest.er1
29977   cat conftest.err >&5
29978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29979   (exit $ac_status); } &&
29980          { ac_try='test -z "$ac_c_werror_flag"
29981                          || test ! -s conftest.err'
29982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29983   (eval $ac_try) 2>&5
29984   ac_status=$?
29985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986   (exit $ac_status); }; } &&
29987          { ac_try='test -s conftest$ac_exeext'
29988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29989   (eval $ac_try) 2>&5
29990   ac_status=$?
29991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); }; }; then
29993   ol_cv_db_db_4=yes
29994 else
29995   echo "$as_me: failed program was:" >&5
29996 sed 's/^/| /' conftest.$ac_ext >&5
29997
29998 ol_cv_db_db_4=no
29999 fi
30000 rm -f conftest.err conftest.$ac_objext \
30001       conftest$ac_exeext conftest.$ac_ext
30002
30003         LIBS="$ol_LIBS"
30004
30005 fi
30006 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30007 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30008
30009         if test $ol_cv_db_db_4 = yes ; then
30010                 ol_cv_lib_db=-ldb-4
30011         fi
30012 fi
30013
30014         if test $ol_cv_lib_db = no ; then
30015         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30016 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30017 if test "${ol_cv_db_db4+set}" = set; then
30018   echo $ECHO_N "(cached) $ECHO_C" >&6
30019 else
30020
30021         ol_DB_LIB=-ldb4
30022         ol_LIBS=$LIBS
30023         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30024
30025         cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031
30032 #ifdef HAVE_DB_185_H
30033 # include <db_185.h>
30034 #else
30035 # include <db.h>
30036 #endif
30037
30038 #ifndef DB_VERSION_MAJOR
30039 # define DB_VERSION_MAJOR 1
30040 #endif
30041
30042 #ifndef NULL
30043 #define NULL ((void*)0)
30044 #endif
30045
30046 int
30047 main ()
30048 {
30049
30050 #if DB_VERSION_MAJOR > 1
30051         {
30052                 char *version;
30053                 int major, minor, patch;
30054
30055                 version = db_version( &major, &minor, &patch );
30056
30057                 if( major != DB_VERSION_MAJOR ||
30058                         minor < DB_VERSION_MINOR )
30059                 {
30060                         printf("Berkeley DB version mismatch\n"
30061                                 "\theader: %s\n\tlibrary: %s\n",
30062                                 DB_VERSION_STRING, version);
30063                         return 1;
30064                 }
30065         }
30066 #endif
30067
30068 #if DB_VERSION_MAJOR > 2
30069         db_env_create( NULL, 0 );
30070 #elif DB_VERSION_MAJOR > 1
30071         db_appexit( NULL );
30072 #else
30073         (void) dbopen( NULL, 0, 0, 0, NULL);
30074 #endif
30075
30076   ;
30077   return 0;
30078 }
30079 _ACEOF
30080 rm -f conftest.$ac_objext conftest$ac_exeext
30081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30082   (eval $ac_link) 2>conftest.er1
30083   ac_status=$?
30084   grep -v '^ *+' conftest.er1 >conftest.err
30085   rm -f conftest.er1
30086   cat conftest.err >&5
30087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088   (exit $ac_status); } &&
30089          { ac_try='test -z "$ac_c_werror_flag"
30090                          || test ! -s conftest.err'
30091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30092   (eval $ac_try) 2>&5
30093   ac_status=$?
30094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); }; } &&
30096          { ac_try='test -s conftest$ac_exeext'
30097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098   (eval $ac_try) 2>&5
30099   ac_status=$?
30100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101   (exit $ac_status); }; }; then
30102   ol_cv_db_db4=yes
30103 else
30104   echo "$as_me: failed program was:" >&5
30105 sed 's/^/| /' conftest.$ac_ext >&5
30106
30107 ol_cv_db_db4=no
30108 fi
30109 rm -f conftest.err conftest.$ac_objext \
30110       conftest$ac_exeext conftest.$ac_ext
30111
30112         LIBS="$ol_LIBS"
30113
30114 fi
30115 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30116 echo "${ECHO_T}$ol_cv_db_db4" >&6
30117
30118         if test $ol_cv_db_db4 = yes ; then
30119                 ol_cv_lib_db=-ldb4
30120         fi
30121 fi
30122
30123         if test $ol_cv_lib_db = no ; then
30124         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30125 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30126 if test "${ol_cv_db_db+set}" = set; then
30127   echo $ECHO_N "(cached) $ECHO_C" >&6
30128 else
30129
30130         ol_DB_LIB=-ldb
30131         ol_LIBS=$LIBS
30132         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30133
30134         cat >conftest.$ac_ext <<_ACEOF
30135 /* confdefs.h.  */
30136 _ACEOF
30137 cat confdefs.h >>conftest.$ac_ext
30138 cat >>conftest.$ac_ext <<_ACEOF
30139 /* end confdefs.h.  */
30140
30141 #ifdef HAVE_DB_185_H
30142 # include <db_185.h>
30143 #else
30144 # include <db.h>
30145 #endif
30146
30147 #ifndef DB_VERSION_MAJOR
30148 # define DB_VERSION_MAJOR 1
30149 #endif
30150
30151 #ifndef NULL
30152 #define NULL ((void*)0)
30153 #endif
30154
30155 int
30156 main ()
30157 {
30158
30159 #if DB_VERSION_MAJOR > 1
30160         {
30161                 char *version;
30162                 int major, minor, patch;
30163
30164                 version = db_version( &major, &minor, &patch );
30165
30166                 if( major != DB_VERSION_MAJOR ||
30167                         minor < DB_VERSION_MINOR )
30168                 {
30169                         printf("Berkeley DB version mismatch\n"
30170                                 "\theader: %s\n\tlibrary: %s\n",
30171                                 DB_VERSION_STRING, version);
30172                         return 1;
30173                 }
30174         }
30175 #endif
30176
30177 #if DB_VERSION_MAJOR > 2
30178         db_env_create( NULL, 0 );
30179 #elif DB_VERSION_MAJOR > 1
30180         db_appexit( NULL );
30181 #else
30182         (void) dbopen( NULL, 0, 0, 0, NULL);
30183 #endif
30184
30185   ;
30186   return 0;
30187 }
30188 _ACEOF
30189 rm -f conftest.$ac_objext conftest$ac_exeext
30190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191   (eval $ac_link) 2>conftest.er1
30192   ac_status=$?
30193   grep -v '^ *+' conftest.er1 >conftest.err
30194   rm -f conftest.er1
30195   cat conftest.err >&5
30196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197   (exit $ac_status); } &&
30198          { ac_try='test -z "$ac_c_werror_flag"
30199                          || test ! -s conftest.err'
30200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201   (eval $ac_try) 2>&5
30202   ac_status=$?
30203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204   (exit $ac_status); }; } &&
30205          { ac_try='test -s conftest$ac_exeext'
30206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207   (eval $ac_try) 2>&5
30208   ac_status=$?
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); }; }; then
30211   ol_cv_db_db=yes
30212 else
30213   echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30215
30216 ol_cv_db_db=no
30217 fi
30218 rm -f conftest.err conftest.$ac_objext \
30219       conftest$ac_exeext conftest.$ac_ext
30220
30221         LIBS="$ol_LIBS"
30222
30223 fi
30224 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30225 echo "${ECHO_T}$ol_cv_db_db" >&6
30226
30227         if test $ol_cv_db_db = yes ; then
30228                 ol_cv_lib_db=-ldb
30229         fi
30230 fi
30231
30232
30233 elif test $ol_cv_bdb_major = 3 ; then
30234         if test $ol_cv_lib_db = no ; then
30235         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30236 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30237 if test "${ol_cv_db_db3+set}" = set; then
30238   echo $ECHO_N "(cached) $ECHO_C" >&6
30239 else
30240
30241         ol_DB_LIB=-ldb3
30242         ol_LIBS=$LIBS
30243         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30244
30245         cat >conftest.$ac_ext <<_ACEOF
30246 /* confdefs.h.  */
30247 _ACEOF
30248 cat confdefs.h >>conftest.$ac_ext
30249 cat >>conftest.$ac_ext <<_ACEOF
30250 /* end confdefs.h.  */
30251
30252 #ifdef HAVE_DB_185_H
30253 # include <db_185.h>
30254 #else
30255 # include <db.h>
30256 #endif
30257
30258 #ifndef DB_VERSION_MAJOR
30259 # define DB_VERSION_MAJOR 1
30260 #endif
30261
30262 #ifndef NULL
30263 #define NULL ((void*)0)
30264 #endif
30265
30266 int
30267 main ()
30268 {
30269
30270 #if DB_VERSION_MAJOR > 1
30271         {
30272                 char *version;
30273                 int major, minor, patch;
30274
30275                 version = db_version( &major, &minor, &patch );
30276
30277                 if( major != DB_VERSION_MAJOR ||
30278                         minor < DB_VERSION_MINOR )
30279                 {
30280                         printf("Berkeley DB version mismatch\n"
30281                                 "\theader: %s\n\tlibrary: %s\n",
30282                                 DB_VERSION_STRING, version);
30283                         return 1;
30284                 }
30285         }
30286 #endif
30287
30288 #if DB_VERSION_MAJOR > 2
30289         db_env_create( NULL, 0 );
30290 #elif DB_VERSION_MAJOR > 1
30291         db_appexit( NULL );
30292 #else
30293         (void) dbopen( NULL, 0, 0, 0, NULL);
30294 #endif
30295
30296   ;
30297   return 0;
30298 }
30299 _ACEOF
30300 rm -f conftest.$ac_objext conftest$ac_exeext
30301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30302   (eval $ac_link) 2>conftest.er1
30303   ac_status=$?
30304   grep -v '^ *+' conftest.er1 >conftest.err
30305   rm -f conftest.er1
30306   cat conftest.err >&5
30307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308   (exit $ac_status); } &&
30309          { ac_try='test -z "$ac_c_werror_flag"
30310                          || test ! -s conftest.err'
30311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312   (eval $ac_try) 2>&5
30313   ac_status=$?
30314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315   (exit $ac_status); }; } &&
30316          { ac_try='test -s conftest$ac_exeext'
30317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318   (eval $ac_try) 2>&5
30319   ac_status=$?
30320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321   (exit $ac_status); }; }; then
30322   ol_cv_db_db3=yes
30323 else
30324   echo "$as_me: failed program was:" >&5
30325 sed 's/^/| /' conftest.$ac_ext >&5
30326
30327 ol_cv_db_db3=no
30328 fi
30329 rm -f conftest.err conftest.$ac_objext \
30330       conftest$ac_exeext conftest.$ac_ext
30331
30332         LIBS="$ol_LIBS"
30333
30334 fi
30335 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30336 echo "${ECHO_T}$ol_cv_db_db3" >&6
30337
30338         if test $ol_cv_db_db3 = yes ; then
30339                 ol_cv_lib_db=-ldb3
30340         fi
30341 fi
30342
30343         if test $ol_cv_lib_db = no ; then
30344         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30345 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30346 if test "${ol_cv_db_db_3+set}" = set; then
30347   echo $ECHO_N "(cached) $ECHO_C" >&6
30348 else
30349
30350         ol_DB_LIB=-ldb-3
30351         ol_LIBS=$LIBS
30352         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30353
30354         cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h.  */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h.  */
30360
30361 #ifdef HAVE_DB_185_H
30362 # include <db_185.h>
30363 #else
30364 # include <db.h>
30365 #endif
30366
30367 #ifndef DB_VERSION_MAJOR
30368 # define DB_VERSION_MAJOR 1
30369 #endif
30370
30371 #ifndef NULL
30372 #define NULL ((void*)0)
30373 #endif
30374
30375 int
30376 main ()
30377 {
30378
30379 #if DB_VERSION_MAJOR > 1
30380         {
30381                 char *version;
30382                 int major, minor, patch;
30383
30384                 version = db_version( &major, &minor, &patch );
30385
30386                 if( major != DB_VERSION_MAJOR ||
30387                         minor < DB_VERSION_MINOR )
30388                 {
30389                         printf("Berkeley DB version mismatch\n"
30390                                 "\theader: %s\n\tlibrary: %s\n",
30391                                 DB_VERSION_STRING, version);
30392                         return 1;
30393                 }
30394         }
30395 #endif
30396
30397 #if DB_VERSION_MAJOR > 2
30398         db_env_create( NULL, 0 );
30399 #elif DB_VERSION_MAJOR > 1
30400         db_appexit( NULL );
30401 #else
30402         (void) dbopen( NULL, 0, 0, 0, NULL);
30403 #endif
30404
30405   ;
30406   return 0;
30407 }
30408 _ACEOF
30409 rm -f conftest.$ac_objext conftest$ac_exeext
30410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30411   (eval $ac_link) 2>conftest.er1
30412   ac_status=$?
30413   grep -v '^ *+' conftest.er1 >conftest.err
30414   rm -f conftest.er1
30415   cat conftest.err >&5
30416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); } &&
30418          { ac_try='test -z "$ac_c_werror_flag"
30419                          || test ! -s conftest.err'
30420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30421   (eval $ac_try) 2>&5
30422   ac_status=$?
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); }; } &&
30425          { ac_try='test -s conftest$ac_exeext'
30426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427   (eval $ac_try) 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; }; then
30431   ol_cv_db_db_3=yes
30432 else
30433   echo "$as_me: failed program was:" >&5
30434 sed 's/^/| /' conftest.$ac_ext >&5
30435
30436 ol_cv_db_db_3=no
30437 fi
30438 rm -f conftest.err conftest.$ac_objext \
30439       conftest$ac_exeext conftest.$ac_ext
30440
30441         LIBS="$ol_LIBS"
30442
30443 fi
30444 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30445 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30446
30447         if test $ol_cv_db_db_3 = yes ; then
30448                 ol_cv_lib_db=-ldb-3
30449         fi
30450 fi
30451
30452
30453 elif test $ol_cv_bdb_major = 2 ; then
30454         if test $ol_cv_lib_db = no ; then
30455         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30456 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30457 if test "${ol_cv_db_db2+set}" = set; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 else
30460
30461         ol_DB_LIB=-ldb2
30462         ol_LIBS=$LIBS
30463         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30464
30465         cat >conftest.$ac_ext <<_ACEOF
30466 /* confdefs.h.  */
30467 _ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h.  */
30471
30472 #ifdef HAVE_DB_185_H
30473 # include <db_185.h>
30474 #else
30475 # include <db.h>
30476 #endif
30477
30478 #ifndef DB_VERSION_MAJOR
30479 # define DB_VERSION_MAJOR 1
30480 #endif
30481
30482 #ifndef NULL
30483 #define NULL ((void*)0)
30484 #endif
30485
30486 int
30487 main ()
30488 {
30489
30490 #if DB_VERSION_MAJOR > 1
30491         {
30492                 char *version;
30493                 int major, minor, patch;
30494
30495                 version = db_version( &major, &minor, &patch );
30496
30497                 if( major != DB_VERSION_MAJOR ||
30498                         minor < DB_VERSION_MINOR )
30499                 {
30500                         printf("Berkeley DB version mismatch\n"
30501                                 "\theader: %s\n\tlibrary: %s\n",
30502                                 DB_VERSION_STRING, version);
30503                         return 1;
30504                 }
30505         }
30506 #endif
30507
30508 #if DB_VERSION_MAJOR > 2
30509         db_env_create( NULL, 0 );
30510 #elif DB_VERSION_MAJOR > 1
30511         db_appexit( NULL );
30512 #else
30513         (void) dbopen( NULL, 0, 0, 0, NULL);
30514 #endif
30515
30516   ;
30517   return 0;
30518 }
30519 _ACEOF
30520 rm -f conftest.$ac_objext conftest$ac_exeext
30521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30522   (eval $ac_link) 2>conftest.er1
30523   ac_status=$?
30524   grep -v '^ *+' conftest.er1 >conftest.err
30525   rm -f conftest.er1
30526   cat conftest.err >&5
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } &&
30529          { ac_try='test -z "$ac_c_werror_flag"
30530                          || test ! -s conftest.err'
30531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30532   (eval $ac_try) 2>&5
30533   ac_status=$?
30534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535   (exit $ac_status); }; } &&
30536          { ac_try='test -s conftest$ac_exeext'
30537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538   (eval $ac_try) 2>&5
30539   ac_status=$?
30540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541   (exit $ac_status); }; }; then
30542   ol_cv_db_db2=yes
30543 else
30544   echo "$as_me: failed program was:" >&5
30545 sed 's/^/| /' conftest.$ac_ext >&5
30546
30547 ol_cv_db_db2=no
30548 fi
30549 rm -f conftest.err conftest.$ac_objext \
30550       conftest$ac_exeext conftest.$ac_ext
30551
30552         LIBS="$ol_LIBS"
30553
30554 fi
30555 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30556 echo "${ECHO_T}$ol_cv_db_db2" >&6
30557
30558         if test $ol_cv_db_db2 = yes ; then
30559                 ol_cv_lib_db=-ldb2
30560         fi
30561 fi
30562
30563         if test $ol_cv_lib_db = no ; then
30564         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30565 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30566 if test "${ol_cv_db_db_2+set}" = set; then
30567   echo $ECHO_N "(cached) $ECHO_C" >&6
30568 else
30569
30570         ol_DB_LIB=-ldb-2
30571         ol_LIBS=$LIBS
30572         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30573
30574         cat >conftest.$ac_ext <<_ACEOF
30575 /* confdefs.h.  */
30576 _ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h.  */
30580
30581 #ifdef HAVE_DB_185_H
30582 # include <db_185.h>
30583 #else
30584 # include <db.h>
30585 #endif
30586
30587 #ifndef DB_VERSION_MAJOR
30588 # define DB_VERSION_MAJOR 1
30589 #endif
30590
30591 #ifndef NULL
30592 #define NULL ((void*)0)
30593 #endif
30594
30595 int
30596 main ()
30597 {
30598
30599 #if DB_VERSION_MAJOR > 1
30600         {
30601                 char *version;
30602                 int major, minor, patch;
30603
30604                 version = db_version( &major, &minor, &patch );
30605
30606                 if( major != DB_VERSION_MAJOR ||
30607                         minor < DB_VERSION_MINOR )
30608                 {
30609                         printf("Berkeley DB version mismatch\n"
30610                                 "\theader: %s\n\tlibrary: %s\n",
30611                                 DB_VERSION_STRING, version);
30612                         return 1;
30613                 }
30614         }
30615 #endif
30616
30617 #if DB_VERSION_MAJOR > 2
30618         db_env_create( NULL, 0 );
30619 #elif DB_VERSION_MAJOR > 1
30620         db_appexit( NULL );
30621 #else
30622         (void) dbopen( NULL, 0, 0, 0, NULL);
30623 #endif
30624
30625   ;
30626   return 0;
30627 }
30628 _ACEOF
30629 rm -f conftest.$ac_objext conftest$ac_exeext
30630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30631   (eval $ac_link) 2>conftest.er1
30632   ac_status=$?
30633   grep -v '^ *+' conftest.er1 >conftest.err
30634   rm -f conftest.er1
30635   cat conftest.err >&5
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); } &&
30638          { ac_try='test -z "$ac_c_werror_flag"
30639                          || test ! -s conftest.err'
30640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641   (eval $ac_try) 2>&5
30642   ac_status=$?
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); }; } &&
30645          { ac_try='test -s conftest$ac_exeext'
30646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647   (eval $ac_try) 2>&5
30648   ac_status=$?
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); }; }; then
30651   ol_cv_db_db_2=yes
30652 else
30653   echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30655
30656 ol_cv_db_db_2=no
30657 fi
30658 rm -f conftest.err conftest.$ac_objext \
30659       conftest$ac_exeext conftest.$ac_ext
30660
30661         LIBS="$ol_LIBS"
30662
30663 fi
30664 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30665 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30666
30667         if test $ol_cv_db_db_2 = yes ; then
30668                 ol_cv_lib_db=-ldb-2
30669         fi
30670 fi
30671
30672
30673 elif test $ol_cv_bdb_major = 1 ; then
30674         if test $ol_cv_lib_db = no ; then
30675         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30676 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30677 if test "${ol_cv_db_db1+set}" = set; then
30678   echo $ECHO_N "(cached) $ECHO_C" >&6
30679 else
30680
30681         ol_DB_LIB=-ldb1
30682         ol_LIBS=$LIBS
30683         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30684
30685         cat >conftest.$ac_ext <<_ACEOF
30686 /* confdefs.h.  */
30687 _ACEOF
30688 cat confdefs.h >>conftest.$ac_ext
30689 cat >>conftest.$ac_ext <<_ACEOF
30690 /* end confdefs.h.  */
30691
30692 #ifdef HAVE_DB_185_H
30693 # include <db_185.h>
30694 #else
30695 # include <db.h>
30696 #endif
30697
30698 #ifndef DB_VERSION_MAJOR
30699 # define DB_VERSION_MAJOR 1
30700 #endif
30701
30702 #ifndef NULL
30703 #define NULL ((void*)0)
30704 #endif
30705
30706 int
30707 main ()
30708 {
30709
30710 #if DB_VERSION_MAJOR > 1
30711         {
30712                 char *version;
30713                 int major, minor, patch;
30714
30715                 version = db_version( &major, &minor, &patch );
30716
30717                 if( major != DB_VERSION_MAJOR ||
30718                         minor < DB_VERSION_MINOR )
30719                 {
30720                         printf("Berkeley DB version mismatch\n"
30721                                 "\theader: %s\n\tlibrary: %s\n",
30722                                 DB_VERSION_STRING, version);
30723                         return 1;
30724                 }
30725         }
30726 #endif
30727
30728 #if DB_VERSION_MAJOR > 2
30729         db_env_create( NULL, 0 );
30730 #elif DB_VERSION_MAJOR > 1
30731         db_appexit( NULL );
30732 #else
30733         (void) dbopen( NULL, 0, 0, 0, NULL);
30734 #endif
30735
30736   ;
30737   return 0;
30738 }
30739 _ACEOF
30740 rm -f conftest.$ac_objext conftest$ac_exeext
30741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30742   (eval $ac_link) 2>conftest.er1
30743   ac_status=$?
30744   grep -v '^ *+' conftest.er1 >conftest.err
30745   rm -f conftest.er1
30746   cat conftest.err >&5
30747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30748   (exit $ac_status); } &&
30749          { ac_try='test -z "$ac_c_werror_flag"
30750                          || test ! -s conftest.err'
30751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30752   (eval $ac_try) 2>&5
30753   ac_status=$?
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); }; } &&
30756          { ac_try='test -s conftest$ac_exeext'
30757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758   (eval $ac_try) 2>&5
30759   ac_status=$?
30760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761   (exit $ac_status); }; }; then
30762   ol_cv_db_db1=yes
30763 else
30764   echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30766
30767 ol_cv_db_db1=no
30768 fi
30769 rm -f conftest.err conftest.$ac_objext \
30770       conftest$ac_exeext conftest.$ac_ext
30771
30772         LIBS="$ol_LIBS"
30773
30774 fi
30775 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30776 echo "${ECHO_T}$ol_cv_db_db1" >&6
30777
30778         if test $ol_cv_db_db1 = yes ; then
30779                 ol_cv_lib_db=-ldb1
30780         fi
30781 fi
30782
30783         if test $ol_cv_lib_db = no ; then
30784         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30785 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30786 if test "${ol_cv_db_db_1+set}" = set; then
30787   echo $ECHO_N "(cached) $ECHO_C" >&6
30788 else
30789
30790         ol_DB_LIB=-ldb-1
30791         ol_LIBS=$LIBS
30792         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30793
30794         cat >conftest.$ac_ext <<_ACEOF
30795 /* confdefs.h.  */
30796 _ACEOF
30797 cat confdefs.h >>conftest.$ac_ext
30798 cat >>conftest.$ac_ext <<_ACEOF
30799 /* end confdefs.h.  */
30800
30801 #ifdef HAVE_DB_185_H
30802 # include <db_185.h>
30803 #else
30804 # include <db.h>
30805 #endif
30806
30807 #ifndef DB_VERSION_MAJOR
30808 # define DB_VERSION_MAJOR 1
30809 #endif
30810
30811 #ifndef NULL
30812 #define NULL ((void*)0)
30813 #endif
30814
30815 int
30816 main ()
30817 {
30818
30819 #if DB_VERSION_MAJOR > 1
30820         {
30821                 char *version;
30822                 int major, minor, patch;
30823
30824                 version = db_version( &major, &minor, &patch );
30825
30826                 if( major != DB_VERSION_MAJOR ||
30827                         minor < DB_VERSION_MINOR )
30828                 {
30829                         printf("Berkeley DB version mismatch\n"
30830                                 "\theader: %s\n\tlibrary: %s\n",
30831                                 DB_VERSION_STRING, version);
30832                         return 1;
30833                 }
30834         }
30835 #endif
30836
30837 #if DB_VERSION_MAJOR > 2
30838         db_env_create( NULL, 0 );
30839 #elif DB_VERSION_MAJOR > 1
30840         db_appexit( NULL );
30841 #else
30842         (void) dbopen( NULL, 0, 0, 0, NULL);
30843 #endif
30844
30845   ;
30846   return 0;
30847 }
30848 _ACEOF
30849 rm -f conftest.$ac_objext conftest$ac_exeext
30850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30851   (eval $ac_link) 2>conftest.er1
30852   ac_status=$?
30853   grep -v '^ *+' conftest.er1 >conftest.err
30854   rm -f conftest.er1
30855   cat conftest.err >&5
30856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857   (exit $ac_status); } &&
30858          { ac_try='test -z "$ac_c_werror_flag"
30859                          || test ! -s conftest.err'
30860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861   (eval $ac_try) 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); }; } &&
30865          { ac_try='test -s conftest$ac_exeext'
30866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867   (eval $ac_try) 2>&5
30868   ac_status=$?
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); }; }; then
30871   ol_cv_db_db_1=yes
30872 else
30873   echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30875
30876 ol_cv_db_db_1=no
30877 fi
30878 rm -f conftest.err conftest.$ac_objext \
30879       conftest$ac_exeext conftest.$ac_ext
30880
30881         LIBS="$ol_LIBS"
30882
30883 fi
30884 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30885 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30886
30887         if test $ol_cv_db_db_1 = yes ; then
30888                 ol_cv_lib_db=-ldb-1
30889         fi
30890 fi
30891
30892 fi
30893 if test $ol_cv_lib_db = no ; then
30894         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30895 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30896 if test "${ol_cv_db_none+set}" = set; then
30897   echo $ECHO_N "(cached) $ECHO_C" >&6
30898 else
30899
30900         ol_DB_LIB=
30901         ol_LIBS=$LIBS
30902         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30903
30904         cat >conftest.$ac_ext <<_ACEOF
30905 /* confdefs.h.  */
30906 _ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h.  */
30910
30911 #ifdef HAVE_DB_185_H
30912 # include <db_185.h>
30913 #else
30914 # include <db.h>
30915 #endif
30916
30917 #ifndef DB_VERSION_MAJOR
30918 # define DB_VERSION_MAJOR 1
30919 #endif
30920
30921 #ifndef NULL
30922 #define NULL ((void*)0)
30923 #endif
30924
30925 int
30926 main ()
30927 {
30928
30929 #if DB_VERSION_MAJOR > 1
30930         {
30931                 char *version;
30932                 int major, minor, patch;
30933
30934                 version = db_version( &major, &minor, &patch );
30935
30936                 if( major != DB_VERSION_MAJOR ||
30937                         minor < DB_VERSION_MINOR )
30938                 {
30939                         printf("Berkeley DB version mismatch\n"
30940                                 "\theader: %s\n\tlibrary: %s\n",
30941                                 DB_VERSION_STRING, version);
30942                         return 1;
30943                 }
30944         }
30945 #endif
30946
30947 #if DB_VERSION_MAJOR > 2
30948         db_env_create( NULL, 0 );
30949 #elif DB_VERSION_MAJOR > 1
30950         db_appexit( NULL );
30951 #else
30952         (void) dbopen( NULL, 0, 0, 0, NULL);
30953 #endif
30954
30955   ;
30956   return 0;
30957 }
30958 _ACEOF
30959 rm -f conftest.$ac_objext conftest$ac_exeext
30960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30961   (eval $ac_link) 2>conftest.er1
30962   ac_status=$?
30963   grep -v '^ *+' conftest.er1 >conftest.err
30964   rm -f conftest.er1
30965   cat conftest.err >&5
30966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967   (exit $ac_status); } &&
30968          { ac_try='test -z "$ac_c_werror_flag"
30969                          || test ! -s conftest.err'
30970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971   (eval $ac_try) 2>&5
30972   ac_status=$?
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); }; } &&
30975          { ac_try='test -s conftest$ac_exeext'
30976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977   (eval $ac_try) 2>&5
30978   ac_status=$?
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); }; }; then
30981   ol_cv_db_none=yes
30982 else
30983   echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986 ol_cv_db_none=no
30987 fi
30988 rm -f conftest.err conftest.$ac_objext \
30989       conftest$ac_exeext conftest.$ac_ext
30990
30991         LIBS="$ol_LIBS"
30992
30993 fi
30994 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30995 echo "${ECHO_T}$ol_cv_db_none" >&6
30996
30997         if test $ol_cv_db_none = yes ; then
30998                 ol_cv_lib_db=yes
30999         fi
31000 fi
31001
31002
31003         if test "$ol_cv_lib_db" != no ; then
31004                 ol_cv_berkeley_db=yes
31005                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31006 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31007 if test "${ol_cv_berkeley_db_version+set}" = set; then
31008   echo $ECHO_N "(cached) $ECHO_C" >&6
31009 else
31010
31011         ol_LIBS="$LIBS"
31012         LIBS="$LTHREAD_LIBS $LIBS"
31013         if test $ol_cv_lib_db != yes ; then
31014                 LIBS="$ol_cv_lib_db $LIBS"
31015         fi
31016
31017         if test "$cross_compiling" = yes; then
31018   ol_cv_berkeley_db_version=cross
31019 else
31020   cat >conftest.$ac_ext <<_ACEOF
31021 /* confdefs.h.  */
31022 _ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h.  */
31026
31027 #ifdef HAVE_DB_185_H
31028         choke me;
31029 #else
31030 #include <db.h>
31031 #endif
31032 #ifndef DB_VERSION_MAJOR
31033 # define DB_VERSION_MAJOR 1
31034 #endif
31035 #ifndef NULL
31036 #define NULL ((void *)0)
31037 #endif
31038 main()
31039 {
31040 #if DB_VERSION_MAJOR > 1
31041         char *version;
31042         int major, minor, patch;
31043
31044         version = db_version( &major, &minor, &patch );
31045
31046         if( major != DB_VERSION_MAJOR ||
31047                 minor != DB_VERSION_MINOR ||
31048                 patch != DB_VERSION_PATCH )
31049         {
31050                 printf("Berkeley DB version mismatch\n"
31051                         "\theader: %s\n\tlibrary: %s\n",
31052                         DB_VERSION_STRING, version);
31053                 return 1;
31054         }
31055 #endif
31056
31057         return 0;
31058 }
31059 _ACEOF
31060 rm -f conftest$ac_exeext
31061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31062   (eval $ac_link) 2>&5
31063   ac_status=$?
31064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067   (eval $ac_try) 2>&5
31068   ac_status=$?
31069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070   (exit $ac_status); }; }; then
31071   ol_cv_berkeley_db_version=yes
31072 else
31073   echo "$as_me: program exited with status $ac_status" >&5
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31076
31077 ( exit $ac_status )
31078 ol_cv_berkeley_db_version=no
31079 fi
31080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31081 fi
31082
31083         LIBS="$ol_LIBS"
31084
31085 fi
31086 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31087 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31088
31089         if test $ol_cv_berkeley_db_version = no ; then
31090                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31091 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31092    { (exit 1); exit 1; }; }
31093         fi
31094
31095                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31096 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31097 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31098   echo $ECHO_N "(cached) $ECHO_C" >&6
31099 else
31100
31101         ol_LIBS="$LIBS"
31102         LIBS="$LTHREAD_LIBS $LIBS"
31103         if test $ol_cv_lib_db != yes ; then
31104                 LIBS="$ol_cv_lib_db $LIBS"
31105         fi
31106
31107         if test "$cross_compiling" = yes; then
31108   ol_cv_berkeley_db_thread=cross
31109 else
31110   cat >conftest.$ac_ext <<_ACEOF
31111 /* confdefs.h.  */
31112 _ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h.  */
31116
31117 #ifdef HAVE_DB_185_H
31118         choke me;
31119 #else
31120 #include <db.h>
31121 #endif
31122 #ifndef NULL
31123 #define NULL ((void *)0)
31124 #endif
31125 main()
31126 {
31127         int rc;
31128         u_int32_t flags = DB_CREATE |
31129 #ifdef DB_PRIVATE
31130                 DB_PRIVATE |
31131 #endif
31132                 DB_THREAD;
31133
31134 #if DB_VERSION_MAJOR > 2
31135         DB_ENV *env = NULL;
31136
31137         rc = db_env_create( &env, 0 );
31138
31139         flags |= DB_INIT_MPOOL;
31140 #ifdef DB_MPOOL_PRIVATE
31141         flags |= DB_MPOOL_PRIVATE;
31142 #endif
31143
31144         if( rc ) {
31145                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31146                 return rc;
31147         }
31148
31149 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31150         rc = env->open( env, NULL, flags, 0 );
31151 #else
31152         rc = env->open( env, NULL, NULL, flags, 0 );
31153 #endif
31154
31155         if ( rc == 0 ) {
31156                 rc = env->close( env, 0 );
31157         }
31158
31159         if( rc ) {
31160                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31161                 return rc;
31162         }
31163
31164 #else
31165         DB_ENV env;
31166         memset( &env, '\0', sizeof(env) );
31167
31168         rc = db_appinit( NULL, NULL, &env, flags );
31169
31170         if( rc == 0 ) {
31171                 db_appexit( &env );
31172         }
31173
31174         unlink("__db_mpool.share");
31175         unlink("__db_lock.share");
31176 #endif
31177
31178         return rc;
31179 }
31180 _ACEOF
31181 rm -f conftest$ac_exeext
31182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31183   (eval $ac_link) 2>&5
31184   ac_status=$?
31185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188   (eval $ac_try) 2>&5
31189   ac_status=$?
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); }; }; then
31192   ol_cv_berkeley_db_thread=yes
31193 else
31194   echo "$as_me: program exited with status $ac_status" >&5
31195 echo "$as_me: failed program was:" >&5
31196 sed 's/^/| /' conftest.$ac_ext >&5
31197
31198 ( exit $ac_status )
31199 ol_cv_berkeley_db_thread=no
31200 fi
31201 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31202 fi
31203
31204         LIBS="$ol_LIBS"
31205
31206 fi
31207 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31208 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31209
31210         if test $ol_cv_berkeley_db_thread != no ; then
31211
31212 cat >>confdefs.h <<\_ACEOF
31213 #define HAVE_BERKELEY_DB_THREAD 1
31214 _ACEOF
31215
31216         fi
31217
31218         fi
31219 fi
31220
31221
31222         if test $ol_cv_berkeley_db = no ; then
31223                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31224 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31225    { (exit 1); exit 1; }; }
31226         fi
31227
31228
31229 cat >>confdefs.h <<\_ACEOF
31230 #define HAVE_BERKELEY_DB 1
31231 _ACEOF
31232
31233
31234                         if test $ol_cv_lib_db != yes ; then
31235                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31236         fi
31237
31238         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31239 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31240 if test "${ol_cv_bdb_compat+set}" = set; then
31241   echo $ECHO_N "(cached) $ECHO_C" >&6
31242 else
31243
31244         cat >conftest.$ac_ext <<_ACEOF
31245 /* confdefs.h.  */
31246 _ACEOF
31247 cat confdefs.h >>conftest.$ac_ext
31248 cat >>conftest.$ac_ext <<_ACEOF
31249 /* end confdefs.h.  */
31250
31251 #include <db.h>
31252
31253  /* this check could be improved */
31254 #ifndef DB_VERSION_MAJOR
31255 #       define DB_VERSION_MAJOR 1
31256 #endif
31257 #ifndef DB_VERSION_MINOR
31258 #       define DB_VERSION_MINOR 0
31259 #endif
31260
31261 /* require 4.2 or later, but exclude 4.3 */
31262 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31263         __db_version_compat
31264 #endif
31265
31266 _ACEOF
31267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31268   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31269   ol_cv_bdb_compat=yes
31270 else
31271   ol_cv_bdb_compat=no
31272 fi
31273 rm -f conftest*
31274
31275 fi
31276 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31277 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31278
31279
31280         if test $ol_cv_bdb_compat != yes ; then
31281                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31282 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31283    { (exit 1); exit 1; }; }
31284         fi
31285
31286         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31287
31288         ol_link_bdb=yes
31289 fi
31290
31291
31292 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31293         BUILD_LIBS_DYNAMIC=shared
31294
31295 cat >>confdefs.h <<\_ACEOF
31296 #define LDAP_LIBS_DYNAMIC 1
31297 _ACEOF
31298
31299         LTSTATIC=""
31300 else
31301         BUILD_LIBS_DYNAMIC=static
31302         LTSTATIC="-static"
31303 fi
31304
31305 if test $ol_enable_wrappers != no ; then
31306
31307 for ac_header in tcpd.h
31308 do
31309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31311   echo "$as_me:$LINENO: checking for $ac_header" >&5
31312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31314   echo $ECHO_N "(cached) $ECHO_C" >&6
31315 fi
31316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31318 else
31319   # Is the header compilable?
31320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31322 cat >conftest.$ac_ext <<_ACEOF
31323 /* confdefs.h.  */
31324 _ACEOF
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h.  */
31328 $ac_includes_default
31329 #include <$ac_header>
31330 _ACEOF
31331 rm -f conftest.$ac_objext
31332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31333   (eval $ac_compile) 2>conftest.er1
31334   ac_status=$?
31335   grep -v '^ *+' conftest.er1 >conftest.err
31336   rm -f conftest.er1
31337   cat conftest.err >&5
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } &&
31340          { ac_try='test -z "$ac_c_werror_flag"
31341                          || test ! -s conftest.err'
31342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343   (eval $ac_try) 2>&5
31344   ac_status=$?
31345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346   (exit $ac_status); }; } &&
31347          { ac_try='test -s conftest.$ac_objext'
31348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349   (eval $ac_try) 2>&5
31350   ac_status=$?
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); }; }; then
31353   ac_header_compiler=yes
31354 else
31355   echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31357
31358 ac_header_compiler=no
31359 fi
31360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31362 echo "${ECHO_T}$ac_header_compiler" >&6
31363
31364 # Is the header present?
31365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31367 cat >conftest.$ac_ext <<_ACEOF
31368 /* confdefs.h.  */
31369 _ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h.  */
31373 #include <$ac_header>
31374 _ACEOF
31375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31377   ac_status=$?
31378   grep -v '^ *+' conftest.er1 >conftest.err
31379   rm -f conftest.er1
31380   cat conftest.err >&5
31381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382   (exit $ac_status); } >/dev/null; then
31383   if test -s conftest.err; then
31384     ac_cpp_err=$ac_c_preproc_warn_flag
31385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31386   else
31387     ac_cpp_err=
31388   fi
31389 else
31390   ac_cpp_err=yes
31391 fi
31392 if test -z "$ac_cpp_err"; then
31393   ac_header_preproc=yes
31394 else
31395   echo "$as_me: failed program was:" >&5
31396 sed 's/^/| /' conftest.$ac_ext >&5
31397
31398   ac_header_preproc=no
31399 fi
31400 rm -f conftest.err conftest.$ac_ext
31401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31402 echo "${ECHO_T}$ac_header_preproc" >&6
31403
31404 # So?  What about this header?
31405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31406   yes:no: )
31407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31411     ac_header_preproc=yes
31412     ;;
31413   no:yes:* )
31414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31426     (
31427       cat <<\_ASBOX
31428 ## --------------------------------------------- ##
31429 ## Report this to <http://www.openldap.org/its/> ##
31430 ## --------------------------------------------- ##
31431 _ASBOX
31432     ) |
31433       sed "s/^/$as_me: WARNING:     /" >&2
31434     ;;
31435 esac
31436 echo "$as_me:$LINENO: checking for $ac_header" >&5
31437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31439   echo $ECHO_N "(cached) $ECHO_C" >&6
31440 else
31441   eval "$as_ac_Header=\$ac_header_preproc"
31442 fi
31443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31445
31446 fi
31447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31448   cat >>confdefs.h <<_ACEOF
31449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31450 _ACEOF
31451
31452                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31453 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31454                 save_LIBS="$LIBS"
31455                 LIBS="$LIBS -lwrap"
31456                 cat >conftest.$ac_ext <<_ACEOF
31457 /* confdefs.h.  */
31458 _ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h.  */
31462
31463 #include <tcpd.h>
31464 int allow_severity = 0;
31465 int deny_severity  = 0;
31466
31467 struct request_info *req;
31468
31469 int
31470 main ()
31471 {
31472
31473 hosts_access(req)
31474
31475   ;
31476   return 0;
31477 }
31478 _ACEOF
31479 rm -f conftest.$ac_objext conftest$ac_exeext
31480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481   (eval $ac_link) 2>conftest.er1
31482   ac_status=$?
31483   grep -v '^ *+' conftest.er1 >conftest.err
31484   rm -f conftest.er1
31485   cat conftest.err >&5
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); } &&
31488          { ac_try='test -z "$ac_c_werror_flag"
31489                          || test ! -s conftest.err'
31490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491   (eval $ac_try) 2>&5
31492   ac_status=$?
31493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494   (exit $ac_status); }; } &&
31495          { ac_try='test -s conftest$ac_exeext'
31496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497   (eval $ac_try) 2>&5
31498   ac_status=$?
31499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500   (exit $ac_status); }; }; then
31501   echo "$as_me:$LINENO: result: -lwrap" >&5
31502 echo "${ECHO_T}-lwrap" >&6
31503                 have_wrappers=yes
31504                 LIBS="$save_LIBS"
31505 else
31506   echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31508
31509
31510                                 LIBS="$LIBS -lnsl"
31511                 cat >conftest.$ac_ext <<_ACEOF
31512 /* confdefs.h.  */
31513 _ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h.  */
31517
31518 #include <tcpd.h>
31519 int allow_severity = 0;
31520 int deny_severity  = 0;
31521
31522 struct request_info *req;
31523
31524 int
31525 main ()
31526 {
31527
31528 hosts_access(req)
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   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31557 echo "${ECHO_T}-lwrap -lnsl" >&6
31558                 have_wrappers=yes
31559                 LIBS="$save_LIBS -lnsl"
31560 else
31561   echo "$as_me: failed program was:" >&5
31562 sed 's/^/| /' conftest.$ac_ext >&5
31563
31564
31565                 echo "$as_me:$LINENO: result: no" >&5
31566 echo "${ECHO_T}no" >&6
31567                 have_wrappers=no
31568                 LIBS=$save_LIBS
31569 fi
31570 rm -f conftest.err conftest.$ac_objext \
31571       conftest$ac_exeext conftest.$ac_ext
31572 fi
31573 rm -f conftest.err conftest.$ac_objext \
31574       conftest$ac_exeext conftest.$ac_ext
31575 else
31576   have_wrappers=no
31577 fi
31578
31579 done
31580
31581
31582         if test $have_wrappers = yes ; then
31583
31584 cat >>confdefs.h <<\_ACEOF
31585 #define HAVE_TCPD 1
31586 _ACEOF
31587
31588                 WRAP_LIBS="-lwrap"
31589         elif test $ol_enable_wrappers = yes ; then
31590                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31591 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31592    { (exit 1); exit 1; }; }
31593         else
31594                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31595 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31596                 WRAP_LIBS=""
31597         fi
31598 fi
31599
31600 if test $ol_enable_syslog != no ; then
31601         echo "$as_me:$LINENO: checking for openlog" >&5
31602 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31603 if test "${ac_cv_func_openlog+set}" = set; then
31604   echo $ECHO_N "(cached) $ECHO_C" >&6
31605 else
31606   cat >conftest.$ac_ext <<_ACEOF
31607 /* confdefs.h.  */
31608 _ACEOF
31609 cat confdefs.h >>conftest.$ac_ext
31610 cat >>conftest.$ac_ext <<_ACEOF
31611 /* end confdefs.h.  */
31612 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31614 #define openlog innocuous_openlog
31615
31616 /* System header to define __stub macros and hopefully few prototypes,
31617     which can conflict with char openlog (); below.
31618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31619     <limits.h> exists even on freestanding compilers.  */
31620
31621 #ifdef __STDC__
31622 # include <limits.h>
31623 #else
31624 # include <assert.h>
31625 #endif
31626
31627 #undef openlog
31628
31629 /* Override any gcc2 internal prototype to avoid an error.  */
31630 #ifdef __cplusplus
31631 extern "C"
31632 {
31633 #endif
31634 /* We use char because int might match the return type of a gcc2
31635    builtin and then its argument prototype would still apply.  */
31636 char openlog ();
31637 /* The GNU C library defines this for functions which it implements
31638     to always fail with ENOSYS.  Some functions are actually named
31639     something starting with __ and the normal name is an alias.  */
31640 #if defined (__stub_openlog) || defined (__stub___openlog)
31641 choke me
31642 #else
31643 char (*f) () = openlog;
31644 #endif
31645 #ifdef __cplusplus
31646 }
31647 #endif
31648
31649 int
31650 main ()
31651 {
31652 return f != openlog;
31653   ;
31654   return 0;
31655 }
31656 _ACEOF
31657 rm -f conftest.$ac_objext conftest$ac_exeext
31658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31659   (eval $ac_link) 2>conftest.er1
31660   ac_status=$?
31661   grep -v '^ *+' conftest.er1 >conftest.err
31662   rm -f conftest.er1
31663   cat conftest.err >&5
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); } &&
31666          { ac_try='test -z "$ac_c_werror_flag"
31667                          || test ! -s conftest.err'
31668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669   (eval $ac_try) 2>&5
31670   ac_status=$?
31671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672   (exit $ac_status); }; } &&
31673          { ac_try='test -s conftest$ac_exeext'
31674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31675   (eval $ac_try) 2>&5
31676   ac_status=$?
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); }; }; then
31679   ac_cv_func_openlog=yes
31680 else
31681   echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31683
31684 ac_cv_func_openlog=no
31685 fi
31686 rm -f conftest.err conftest.$ac_objext \
31687       conftest$ac_exeext conftest.$ac_ext
31688 fi
31689 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31690 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31691
31692         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31693                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31694 echo "$as_me: error: could not find syslog" >&2;}
31695    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31696         fi
31697         ol_enable_syslog=$ac_cv_func_openlog
31698 fi
31699
31700 ol_link_sql=no
31701 if test $ol_enable_sql != no ; then
31702
31703
31704 for ac_header in sql.h sqlext.h
31705 do
31706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31708   echo "$as_me:$LINENO: checking for $ac_header" >&5
31709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31711   echo $ECHO_N "(cached) $ECHO_C" >&6
31712 fi
31713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31715 else
31716   # Is the header compilable?
31717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31719 cat >conftest.$ac_ext <<_ACEOF
31720 /* confdefs.h.  */
31721 _ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h.  */
31725 $ac_includes_default
31726 #include <$ac_header>
31727 _ACEOF
31728 rm -f conftest.$ac_objext
31729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31730   (eval $ac_compile) 2>conftest.er1
31731   ac_status=$?
31732   grep -v '^ *+' conftest.er1 >conftest.err
31733   rm -f conftest.er1
31734   cat conftest.err >&5
31735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31736   (exit $ac_status); } &&
31737          { ac_try='test -z "$ac_c_werror_flag"
31738                          || test ! -s conftest.err'
31739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31740   (eval $ac_try) 2>&5
31741   ac_status=$?
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); }; } &&
31744          { ac_try='test -s conftest.$ac_objext'
31745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31746   (eval $ac_try) 2>&5
31747   ac_status=$?
31748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749   (exit $ac_status); }; }; then
31750   ac_header_compiler=yes
31751 else
31752   echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31754
31755 ac_header_compiler=no
31756 fi
31757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31759 echo "${ECHO_T}$ac_header_compiler" >&6
31760
31761 # Is the header present?
31762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31764 cat >conftest.$ac_ext <<_ACEOF
31765 /* confdefs.h.  */
31766 _ACEOF
31767 cat confdefs.h >>conftest.$ac_ext
31768 cat >>conftest.$ac_ext <<_ACEOF
31769 /* end confdefs.h.  */
31770 #include <$ac_header>
31771 _ACEOF
31772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31773   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31774   ac_status=$?
31775   grep -v '^ *+' conftest.er1 >conftest.err
31776   rm -f conftest.er1
31777   cat conftest.err >&5
31778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779   (exit $ac_status); } >/dev/null; then
31780   if test -s conftest.err; then
31781     ac_cpp_err=$ac_c_preproc_warn_flag
31782     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31783   else
31784     ac_cpp_err=
31785   fi
31786 else
31787   ac_cpp_err=yes
31788 fi
31789 if test -z "$ac_cpp_err"; then
31790   ac_header_preproc=yes
31791 else
31792   echo "$as_me: failed program was:" >&5
31793 sed 's/^/| /' conftest.$ac_ext >&5
31794
31795   ac_header_preproc=no
31796 fi
31797 rm -f conftest.err conftest.$ac_ext
31798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31799 echo "${ECHO_T}$ac_header_preproc" >&6
31800
31801 # So?  What about this header?
31802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31803   yes:no: )
31804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31808     ac_header_preproc=yes
31809     ;;
31810   no:yes:* )
31811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31823     (
31824       cat <<\_ASBOX
31825 ## --------------------------------------------- ##
31826 ## Report this to <http://www.openldap.org/its/> ##
31827 ## --------------------------------------------- ##
31828 _ASBOX
31829     ) |
31830       sed "s/^/$as_me: WARNING:     /" >&2
31831     ;;
31832 esac
31833 echo "$as_me:$LINENO: checking for $ac_header" >&5
31834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31836   echo $ECHO_N "(cached) $ECHO_C" >&6
31837 else
31838   eval "$as_ac_Header=\$ac_header_preproc"
31839 fi
31840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31842
31843 fi
31844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31845   cat >>confdefs.h <<_ACEOF
31846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31847 _ACEOF
31848
31849 else
31850
31851                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
31852 echo "$as_me: error: could not locate SQL headers" >&2;}
31853    { (exit 1); exit 1; }; }
31854
31855 fi
31856
31857 done
31858
31859
31860         sql_LIBS="$LIBS"
31861         LIBS="$LTHREAD_LIBS"
31862
31863         if test $ol_with_odbc = auto ; then
31864                 ol_with_odbc="iodbc unixodbc"
31865         fi
31866
31867         for odbc in $ol_with_odbc ; do
31868                 if test $ol_link_sql = no ; then
31869                         case $odbc in
31870                         iodbc)
31871                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
31872 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
31873 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
31874   echo $ECHO_N "(cached) $ECHO_C" >&6
31875 else
31876   ac_check_lib_save_LIBS=$LIBS
31877 LIBS="-liodbc  $LIBS"
31878 cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h.  */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h.  */
31884
31885 /* Override any gcc2 internal prototype to avoid an error.  */
31886 #ifdef __cplusplus
31887 extern "C"
31888 #endif
31889 /* We use char because int might match the return type of a gcc2
31890    builtin and then its argument prototype would still apply.  */
31891 char SQLDriverConnect ();
31892 int
31893 main ()
31894 {
31895 SQLDriverConnect ();
31896   ;
31897   return 0;
31898 }
31899 _ACEOF
31900 rm -f conftest.$ac_objext conftest$ac_exeext
31901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31902   (eval $ac_link) 2>conftest.er1
31903   ac_status=$?
31904   grep -v '^ *+' conftest.er1 >conftest.err
31905   rm -f conftest.er1
31906   cat conftest.err >&5
31907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908   (exit $ac_status); } &&
31909          { ac_try='test -z "$ac_c_werror_flag"
31910                          || test ! -s conftest.err'
31911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912   (eval $ac_try) 2>&5
31913   ac_status=$?
31914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915   (exit $ac_status); }; } &&
31916          { ac_try='test -s conftest$ac_exeext'
31917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31918   (eval $ac_try) 2>&5
31919   ac_status=$?
31920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921   (exit $ac_status); }; }; then
31922   ac_cv_lib_iodbc_SQLDriverConnect=yes
31923 else
31924   echo "$as_me: failed program was:" >&5
31925 sed 's/^/| /' conftest.$ac_ext >&5
31926
31927 ac_cv_lib_iodbc_SQLDriverConnect=no
31928 fi
31929 rm -f conftest.err conftest.$ac_objext \
31930       conftest$ac_exeext conftest.$ac_ext
31931 LIBS=$ac_check_lib_save_LIBS
31932 fi
31933 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
31934 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31935 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31936   have_iodbc=yes
31937 else
31938   have_iodbc=no
31939 fi
31940
31941                                 if test $have_iodbc = yes ; then
31942                                         ol_link_sql="-liodbc"
31943                                 fi
31944                                 ;;
31945
31946                         unixodbc)
31947                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31948 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31949 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31950   echo $ECHO_N "(cached) $ECHO_C" >&6
31951 else
31952   ac_check_lib_save_LIBS=$LIBS
31953 LIBS="-lodbc  $LIBS"
31954 cat >conftest.$ac_ext <<_ACEOF
31955 /* confdefs.h.  */
31956 _ACEOF
31957 cat confdefs.h >>conftest.$ac_ext
31958 cat >>conftest.$ac_ext <<_ACEOF
31959 /* end confdefs.h.  */
31960
31961 /* Override any gcc2 internal prototype to avoid an error.  */
31962 #ifdef __cplusplus
31963 extern "C"
31964 #endif
31965 /* We use char because int might match the return type of a gcc2
31966    builtin and then its argument prototype would still apply.  */
31967 char SQLDriverConnect ();
31968 int
31969 main ()
31970 {
31971 SQLDriverConnect ();
31972   ;
31973   return 0;
31974 }
31975 _ACEOF
31976 rm -f conftest.$ac_objext conftest$ac_exeext
31977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31978   (eval $ac_link) 2>conftest.er1
31979   ac_status=$?
31980   grep -v '^ *+' conftest.er1 >conftest.err
31981   rm -f conftest.er1
31982   cat conftest.err >&5
31983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984   (exit $ac_status); } &&
31985          { ac_try='test -z "$ac_c_werror_flag"
31986                          || test ! -s conftest.err'
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); }; } &&
31992          { ac_try='test -s conftest$ac_exeext'
31993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994   (eval $ac_try) 2>&5
31995   ac_status=$?
31996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997   (exit $ac_status); }; }; then
31998   ac_cv_lib_odbc_SQLDriverConnect=yes
31999 else
32000   echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.$ac_ext >&5
32002
32003 ac_cv_lib_odbc_SQLDriverConnect=no
32004 fi
32005 rm -f conftest.err conftest.$ac_objext \
32006       conftest$ac_exeext conftest.$ac_ext
32007 LIBS=$ac_check_lib_save_LIBS
32008 fi
32009 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32010 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32011 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32012   have_odbc=yes
32013 else
32014   have_odbc=no
32015 fi
32016
32017                                 if test $have_odbc = yes ; then
32018                                         ol_link_sql="-lodbc"
32019                                 fi
32020                                 ;;
32021
32022                         *)
32023                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32024 echo "$as_me: error: unknown ODBC library" >&2;}
32025    { (exit 1); exit 1; }; }
32026                                 ;;
32027                         esac
32028                 fi
32029         done
32030
32031         LIBS="$sql_LIBS"
32032
32033         if test $ol_link_sql != no ; then
32034                 SLAPD_SQL_LIBS="$ol_link_sql"
32035
32036         elif test $ol_enable_sql != auto ; then
32037                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32038 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32039    { (exit 1); exit 1; }; }
32040         fi
32041 fi
32042
32043 ol_icu=no
32044
32045 for ac_header in unicode/utypes.h
32046 do
32047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32049   echo "$as_me:$LINENO: checking for $ac_header" >&5
32050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32052   echo $ECHO_N "(cached) $ECHO_C" >&6
32053 fi
32054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32056 else
32057   # Is the header compilable?
32058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32060 cat >conftest.$ac_ext <<_ACEOF
32061 /* confdefs.h.  */
32062 _ACEOF
32063 cat confdefs.h >>conftest.$ac_ext
32064 cat >>conftest.$ac_ext <<_ACEOF
32065 /* end confdefs.h.  */
32066 $ac_includes_default
32067 #include <$ac_header>
32068 _ACEOF
32069 rm -f conftest.$ac_objext
32070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32071   (eval $ac_compile) 2>conftest.er1
32072   ac_status=$?
32073   grep -v '^ *+' conftest.er1 >conftest.err
32074   rm -f conftest.er1
32075   cat conftest.err >&5
32076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077   (exit $ac_status); } &&
32078          { ac_try='test -z "$ac_c_werror_flag"
32079                          || test ! -s conftest.err'
32080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32081   (eval $ac_try) 2>&5
32082   ac_status=$?
32083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084   (exit $ac_status); }; } &&
32085          { ac_try='test -s conftest.$ac_objext'
32086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087   (eval $ac_try) 2>&5
32088   ac_status=$?
32089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090   (exit $ac_status); }; }; then
32091   ac_header_compiler=yes
32092 else
32093   echo "$as_me: failed program was:" >&5
32094 sed 's/^/| /' conftest.$ac_ext >&5
32095
32096 ac_header_compiler=no
32097 fi
32098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32100 echo "${ECHO_T}$ac_header_compiler" >&6
32101
32102 # Is the header present?
32103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32105 cat >conftest.$ac_ext <<_ACEOF
32106 /* confdefs.h.  */
32107 _ACEOF
32108 cat confdefs.h >>conftest.$ac_ext
32109 cat >>conftest.$ac_ext <<_ACEOF
32110 /* end confdefs.h.  */
32111 #include <$ac_header>
32112 _ACEOF
32113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32115   ac_status=$?
32116   grep -v '^ *+' conftest.er1 >conftest.err
32117   rm -f conftest.er1
32118   cat conftest.err >&5
32119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120   (exit $ac_status); } >/dev/null; then
32121   if test -s conftest.err; then
32122     ac_cpp_err=$ac_c_preproc_warn_flag
32123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32124   else
32125     ac_cpp_err=
32126   fi
32127 else
32128   ac_cpp_err=yes
32129 fi
32130 if test -z "$ac_cpp_err"; then
32131   ac_header_preproc=yes
32132 else
32133   echo "$as_me: failed program was:" >&5
32134 sed 's/^/| /' conftest.$ac_ext >&5
32135
32136   ac_header_preproc=no
32137 fi
32138 rm -f conftest.err conftest.$ac_ext
32139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32140 echo "${ECHO_T}$ac_header_preproc" >&6
32141
32142 # So?  What about this header?
32143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32144   yes:no: )
32145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32149     ac_header_preproc=yes
32150     ;;
32151   no:yes:* )
32152     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32154     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32155 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32156     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32158     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32159 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32162     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32164     (
32165       cat <<\_ASBOX
32166 ## --------------------------------------------- ##
32167 ## Report this to <http://www.openldap.org/its/> ##
32168 ## --------------------------------------------- ##
32169 _ASBOX
32170     ) |
32171       sed "s/^/$as_me: WARNING:     /" >&2
32172     ;;
32173 esac
32174 echo "$as_me:$LINENO: checking for $ac_header" >&5
32175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179   eval "$as_ac_Header=\$ac_header_preproc"
32180 fi
32181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32183
32184 fi
32185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32186   cat >>confdefs.h <<_ACEOF
32187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32188 _ACEOF
32189
32190 fi
32191
32192 done
32193
32194 if test $ac_cv_header_unicode_utypes_h = yes ; then
32195                 OL_ICULIBS="-licuuc -licudata"
32196
32197         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32198 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32199 if test "${ol_cv_lib_icu+set}" = set; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202
32203                 ol_LIBS="$LIBS"
32204                 LIBS="$OL_ICULIBS $LIBS"
32205                 cat >conftest.$ac_ext <<_ACEOF
32206 /* confdefs.h.  */
32207 _ACEOF
32208 cat confdefs.h >>conftest.$ac_ext
32209 cat >>conftest.$ac_ext <<_ACEOF
32210 /* end confdefs.h.  */
32211
32212 #include <unicode/utypes.h>
32213
32214 int
32215 main ()
32216 {
32217
32218 (void) u_errorName(0);
32219
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32226   (eval $ac_link) 2>conftest.er1
32227   ac_status=$?
32228   grep -v '^ *+' conftest.er1 >conftest.err
32229   rm -f conftest.er1
32230   cat conftest.err >&5
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); } &&
32233          { ac_try='test -z "$ac_c_werror_flag"
32234                          || test ! -s conftest.err'
32235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32236   (eval $ac_try) 2>&5
32237   ac_status=$?
32238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239   (exit $ac_status); }; } &&
32240          { ac_try='test -s conftest$ac_exeext'
32241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242   (eval $ac_try) 2>&5
32243   ac_status=$?
32244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245   (exit $ac_status); }; }; then
32246   ol_cv_lib_icu=yes
32247 else
32248   echo "$as_me: failed program was:" >&5
32249 sed 's/^/| /' conftest.$ac_ext >&5
32250
32251 ol_cv_lib_icu=no
32252 fi
32253 rm -f conftest.err conftest.$ac_objext \
32254       conftest$ac_exeext conftest.$ac_ext
32255                 LIBS="$ol_LIBS"
32256
32257 fi
32258 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32259 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32260
32261         if test $ol_cv_lib_icu != no ; then
32262                 ol_icu="$OL_ICULIBS"
32263
32264 cat >>confdefs.h <<\_ACEOF
32265 #define HAVE_ICU 1
32266 _ACEOF
32267
32268         fi
32269 fi
32270
32271 if test "$ol_icu" = no ; then
32272         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32273 echo "$as_me: WARNING: ICU not available" >&2;}
32274 else
32275         ICU_LIBS="$ol_icu"
32276 fi
32277 WITH_SASL=no
32278 ol_link_sasl=no
32279 ol_link_spasswd=no
32280 if test $ol_with_cyrus_sasl != no ; then
32281
32282
32283 for ac_header in sasl/sasl.h sasl.h
32284 do
32285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32287   echo "$as_me:$LINENO: checking for $ac_header" >&5
32288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32290   echo $ECHO_N "(cached) $ECHO_C" >&6
32291 fi
32292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32294 else
32295   # Is the header compilable?
32296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32298 cat >conftest.$ac_ext <<_ACEOF
32299 /* confdefs.h.  */
32300 _ACEOF
32301 cat confdefs.h >>conftest.$ac_ext
32302 cat >>conftest.$ac_ext <<_ACEOF
32303 /* end confdefs.h.  */
32304 $ac_includes_default
32305 #include <$ac_header>
32306 _ACEOF
32307 rm -f conftest.$ac_objext
32308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32309   (eval $ac_compile) 2>conftest.er1
32310   ac_status=$?
32311   grep -v '^ *+' conftest.er1 >conftest.err
32312   rm -f conftest.er1
32313   cat conftest.err >&5
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } &&
32316          { ac_try='test -z "$ac_c_werror_flag"
32317                          || test ! -s conftest.err'
32318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32319   (eval $ac_try) 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); }; } &&
32323          { ac_try='test -s conftest.$ac_objext'
32324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32325   (eval $ac_try) 2>&5
32326   ac_status=$?
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); }; }; then
32329   ac_header_compiler=yes
32330 else
32331   echo "$as_me: failed program was:" >&5
32332 sed 's/^/| /' conftest.$ac_ext >&5
32333
32334 ac_header_compiler=no
32335 fi
32336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32338 echo "${ECHO_T}$ac_header_compiler" >&6
32339
32340 # Is the header present?
32341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32343 cat >conftest.$ac_ext <<_ACEOF
32344 /* confdefs.h.  */
32345 _ACEOF
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h.  */
32349 #include <$ac_header>
32350 _ACEOF
32351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32353   ac_status=$?
32354   grep -v '^ *+' conftest.er1 >conftest.err
32355   rm -f conftest.er1
32356   cat conftest.err >&5
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); } >/dev/null; then
32359   if test -s conftest.err; then
32360     ac_cpp_err=$ac_c_preproc_warn_flag
32361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32362   else
32363     ac_cpp_err=
32364   fi
32365 else
32366   ac_cpp_err=yes
32367 fi
32368 if test -z "$ac_cpp_err"; then
32369   ac_header_preproc=yes
32370 else
32371   echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32373
32374   ac_header_preproc=no
32375 fi
32376 rm -f conftest.err conftest.$ac_ext
32377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32378 echo "${ECHO_T}$ac_header_preproc" >&6
32379
32380 # So?  What about this header?
32381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32382   yes:no: )
32383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32387     ac_header_preproc=yes
32388     ;;
32389   no:yes:* )
32390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32402     (
32403       cat <<\_ASBOX
32404 ## --------------------------------------------- ##
32405 ## Report this to <http://www.openldap.org/its/> ##
32406 ## --------------------------------------------- ##
32407 _ASBOX
32408     ) |
32409       sed "s/^/$as_me: WARNING:     /" >&2
32410     ;;
32411 esac
32412 echo "$as_me:$LINENO: checking for $ac_header" >&5
32413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32415   echo $ECHO_N "(cached) $ECHO_C" >&6
32416 else
32417   eval "$as_ac_Header=\$ac_header_preproc"
32418 fi
32419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32421
32422 fi
32423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32424   cat >>confdefs.h <<_ACEOF
32425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32426 _ACEOF
32427
32428 fi
32429
32430 done
32431
32432
32433         if test $ac_cv_header_sasl_sasl_h = yes ||
32434            test $ac_cv_header_sasl_h = yes; then
32435                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32436 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32437 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32438   echo $ECHO_N "(cached) $ECHO_C" >&6
32439 else
32440   ac_check_lib_save_LIBS=$LIBS
32441 LIBS="-lsasl2  $LIBS"
32442 cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h.  */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h.  */
32448
32449 /* Override any gcc2 internal prototype to avoid an error.  */
32450 #ifdef __cplusplus
32451 extern "C"
32452 #endif
32453 /* We use char because int might match the return type of a gcc2
32454    builtin and then its argument prototype would still apply.  */
32455 char sasl_client_init ();
32456 int
32457 main ()
32458 {
32459 sasl_client_init ();
32460   ;
32461   return 0;
32462 }
32463 _ACEOF
32464 rm -f conftest.$ac_objext conftest$ac_exeext
32465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32466   (eval $ac_link) 2>conftest.er1
32467   ac_status=$?
32468   grep -v '^ *+' conftest.er1 >conftest.err
32469   rm -f conftest.er1
32470   cat conftest.err >&5
32471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472   (exit $ac_status); } &&
32473          { ac_try='test -z "$ac_c_werror_flag"
32474                          || test ! -s conftest.err'
32475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32476   (eval $ac_try) 2>&5
32477   ac_status=$?
32478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479   (exit $ac_status); }; } &&
32480          { ac_try='test -s conftest$ac_exeext'
32481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32482   (eval $ac_try) 2>&5
32483   ac_status=$?
32484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485   (exit $ac_status); }; }; then
32486   ac_cv_lib_sasl2_sasl_client_init=yes
32487 else
32488   echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32490
32491 ac_cv_lib_sasl2_sasl_client_init=no
32492 fi
32493 rm -f conftest.err conftest.$ac_objext \
32494       conftest$ac_exeext conftest.$ac_ext
32495 LIBS=$ac_check_lib_save_LIBS
32496 fi
32497 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32498 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32499 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32500   ol_link_sasl="-lsasl2"
32501 else
32502   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32503 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32504 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32505   echo $ECHO_N "(cached) $ECHO_C" >&6
32506 else
32507   ac_check_lib_save_LIBS=$LIBS
32508 LIBS="-lsasl  $LIBS"
32509 cat >conftest.$ac_ext <<_ACEOF
32510 /* confdefs.h.  */
32511 _ACEOF
32512 cat confdefs.h >>conftest.$ac_ext
32513 cat >>conftest.$ac_ext <<_ACEOF
32514 /* end confdefs.h.  */
32515
32516 /* Override any gcc2 internal prototype to avoid an error.  */
32517 #ifdef __cplusplus
32518 extern "C"
32519 #endif
32520 /* We use char because int might match the return type of a gcc2
32521    builtin and then its argument prototype would still apply.  */
32522 char sasl_client_init ();
32523 int
32524 main ()
32525 {
32526 sasl_client_init ();
32527   ;
32528   return 0;
32529 }
32530 _ACEOF
32531 rm -f conftest.$ac_objext conftest$ac_exeext
32532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32533   (eval $ac_link) 2>conftest.er1
32534   ac_status=$?
32535   grep -v '^ *+' conftest.er1 >conftest.err
32536   rm -f conftest.er1
32537   cat conftest.err >&5
32538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32539   (exit $ac_status); } &&
32540          { ac_try='test -z "$ac_c_werror_flag"
32541                          || test ! -s conftest.err'
32542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543   (eval $ac_try) 2>&5
32544   ac_status=$?
32545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546   (exit $ac_status); }; } &&
32547          { ac_try='test -s conftest$ac_exeext'
32548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549   (eval $ac_try) 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); }; }; then
32553   ac_cv_lib_sasl_sasl_client_init=yes
32554 else
32555   echo "$as_me: failed program was:" >&5
32556 sed 's/^/| /' conftest.$ac_ext >&5
32557
32558 ac_cv_lib_sasl_sasl_client_init=no
32559 fi
32560 rm -f conftest.err conftest.$ac_objext \
32561       conftest$ac_exeext conftest.$ac_ext
32562 LIBS=$ac_check_lib_save_LIBS
32563 fi
32564 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32565 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32566 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32567   ol_link_sasl="-lsasl"
32568 fi
32569
32570 fi
32571
32572         fi
32573
32574         if test $ol_link_sasl = no ; then
32575                 if test $ol_with_cyrus_sasl != auto ; then
32576                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32577 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32578    { (exit 1); exit 1; }; }
32579                 else
32580                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32581 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32582                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32583 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32584                         if test $ol_link_tls = no ; then
32585                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32586 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32587                         fi
32588                 fi
32589         else
32590                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32591 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32592 if test "${ol_cv_sasl_compat+set}" = set; then
32593   echo $ECHO_N "(cached) $ECHO_C" >&6
32594 else
32595
32596         cat >conftest.$ac_ext <<_ACEOF
32597 /* confdefs.h.  */
32598 _ACEOF
32599 cat confdefs.h >>conftest.$ac_ext
32600 cat >>conftest.$ac_ext <<_ACEOF
32601 /* end confdefs.h.  */
32602
32603 #ifdef HAVE_SASL_SASL_H
32604 #include <sasl/sasl.h>
32605 #else
32606 #include <sasl.h>
32607 #endif
32608
32609 /* Require 2.1.15+ */
32610 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32611         char *__sasl_compat = "2.2+ or better okay (we guess)";
32612 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32613         && SASL_VERSION_STEP >=15
32614         char *__sasl_compat = "2.1.15+ or better okay";
32615 #endif
32616
32617 _ACEOF
32618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32619   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32620   ol_cv_sasl_compat=yes
32621 else
32622   ol_cv_sasl_compat=no
32623 fi
32624 rm -f conftest*
32625
32626 fi
32627 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32628 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32629
32630                 if test $ol_cv_sasl_compat = no ; then
32631                         ol_link_sasl=no
32632                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32633 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32634    { (exit 1); exit 1; }; }
32635                 fi
32636
32637
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_CYRUS_SASL 1
32640 _ACEOF
32641
32642                 SASL_LIBS="$ol_link_sasl"
32643                 if test $ol_enable_spasswd != no ; then
32644                         ol_link_spasswd=yes
32645                 fi
32646
32647                 ac_save_LIBS="$LIBS"
32648                 LIBS="$LIBS $ol_link_sasl"
32649                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32650 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32651 if test "${ac_cv_func_sasl_version+set}" = set; then
32652   echo $ECHO_N "(cached) $ECHO_C" >&6
32653 else
32654   cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32662 #define sasl_version innocuous_sasl_version
32663
32664 /* System header to define __stub macros and hopefully few prototypes,
32665     which can conflict with char sasl_version (); below.
32666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32667     <limits.h> exists even on freestanding compilers.  */
32668
32669 #ifdef __STDC__
32670 # include <limits.h>
32671 #else
32672 # include <assert.h>
32673 #endif
32674
32675 #undef sasl_version
32676
32677 /* Override any gcc2 internal prototype to avoid an error.  */
32678 #ifdef __cplusplus
32679 extern "C"
32680 {
32681 #endif
32682 /* We use char because int might match the return type of a gcc2
32683    builtin and then its argument prototype would still apply.  */
32684 char sasl_version ();
32685 /* The GNU C library defines this for functions which it implements
32686     to always fail with ENOSYS.  Some functions are actually named
32687     something starting with __ and the normal name is an alias.  */
32688 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32689 choke me
32690 #else
32691 char (*f) () = sasl_version;
32692 #endif
32693 #ifdef __cplusplus
32694 }
32695 #endif
32696
32697 int
32698 main ()
32699 {
32700 return f != sasl_version;
32701   ;
32702   return 0;
32703 }
32704 _ACEOF
32705 rm -f conftest.$ac_objext conftest$ac_exeext
32706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32707   (eval $ac_link) 2>conftest.er1
32708   ac_status=$?
32709   grep -v '^ *+' conftest.er1 >conftest.err
32710   rm -f conftest.er1
32711   cat conftest.err >&5
32712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713   (exit $ac_status); } &&
32714          { ac_try='test -z "$ac_c_werror_flag"
32715                          || test ! -s conftest.err'
32716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32717   (eval $ac_try) 2>&5
32718   ac_status=$?
32719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720   (exit $ac_status); }; } &&
32721          { ac_try='test -s conftest$ac_exeext'
32722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723   (eval $ac_try) 2>&5
32724   ac_status=$?
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); }; }; then
32727   ac_cv_func_sasl_version=yes
32728 else
32729   echo "$as_me: failed program was:" >&5
32730 sed 's/^/| /' conftest.$ac_ext >&5
32731
32732 ac_cv_func_sasl_version=no
32733 fi
32734 rm -f conftest.err conftest.$ac_objext \
32735       conftest$ac_exeext conftest.$ac_ext
32736 fi
32737 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32738 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32739 if test $ac_cv_func_sasl_version = yes; then
32740
32741 cat >>confdefs.h <<\_ACEOF
32742 #define HAVE_SASL_VERSION 1
32743 _ACEOF
32744
32745 fi
32746
32747                 LIBS="$ac_save_LIBS"
32748
32749                 WITH_SASL=yes
32750         fi
32751
32752 else
32753         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32754 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32755         if test $ol_link_tls = no ; then
32756                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32757 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32758         fi
32759 fi
32760
32761 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32762         dev=no
32763         if test -r /dev/urandom ; then
32764                 dev="/dev/urandom";
32765         elif test -r /idev/urandom ; then
32766                 dev="/idev/urandom";
32767         elif test -r /dev/srandom ; then
32768                 dev="/dev/srandom";
32769         elif test -r /dev/random ; then
32770                 dev="/dev/random";
32771         elif test -r /idev/random ; then
32772                 dev="/idev/random";
32773         fi
32774
32775         if test $dev != no ; then
32776
32777 cat >>confdefs.h <<_ACEOF
32778 #define URANDOM_DEVICE "$dev"
32779 _ACEOF
32780
32781         fi
32782 fi
32783
32784 ol_link_fetch=no
32785 if test $ol_with_fetch != no ; then
32786         ol_LIBS=$LIBS
32787 LIBS="-lfetch -lcom_err $LIBS"
32788 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32789 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32790 if test "${ol_cv_lib_fetch+set}" = set; then
32791   echo $ECHO_N "(cached) $ECHO_C" >&6
32792 else
32793
32794         cat >conftest.$ac_ext <<_ACEOF
32795 /* confdefs.h.  */
32796 _ACEOF
32797 cat confdefs.h >>conftest.$ac_ext
32798 cat >>conftest.$ac_ext <<_ACEOF
32799 /* end confdefs.h.  */
32800
32801 #include <sys/param.h>
32802 #include <stdio.h>
32803 #include <fetch.h>
32804 int
32805 main ()
32806 {
32807 struct url *u = fetchParseURL("file:///");
32808   ;
32809   return 0;
32810 }
32811 _ACEOF
32812 rm -f conftest.$ac_objext conftest$ac_exeext
32813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32814   (eval $ac_link) 2>conftest.er1
32815   ac_status=$?
32816   grep -v '^ *+' conftest.er1 >conftest.err
32817   rm -f conftest.er1
32818   cat conftest.err >&5
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); } &&
32821          { ac_try='test -z "$ac_c_werror_flag"
32822                          || test ! -s conftest.err'
32823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824   (eval $ac_try) 2>&5
32825   ac_status=$?
32826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827   (exit $ac_status); }; } &&
32828          { ac_try='test -s conftest$ac_exeext'
32829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32830   (eval $ac_try) 2>&5
32831   ac_status=$?
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); }; }; then
32834   ol_cv_lib_fetch=yes
32835 else
32836   echo "$as_me: failed program was:" >&5
32837 sed 's/^/| /' conftest.$ac_ext >&5
32838
32839 ol_cv_lib_fetch=no
32840 fi
32841 rm -f conftest.err conftest.$ac_objext \
32842       conftest$ac_exeext conftest.$ac_ext
32843 fi
32844 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
32845 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
32846 LIBS=$ol_LIBS
32847 if test $ol_cv_lib_fetch != no ; then
32848         ol_link_fetch="-lfetch -lcom_err"
32849
32850 cat >>confdefs.h <<\_ACEOF
32851 #define HAVE_FETCH 1
32852 _ACEOF
32853
32854 fi
32855
32856
32857         if test $ol_cv_lib_fetch != no ; then
32858                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
32859                 ol_link_fetch=freebsd
32860
32861         elif test $ol_with_fetch != auto ; then
32862                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
32863 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
32864    { (exit 1); exit 1; }; }
32865         fi
32866 fi
32867
32868 if test $ol_enable_crypt != no ; then
32869         save_LIBS="$LIBS"
32870         LIBS="$TLS_LIBS $LIBS"
32871
32872         echo "$as_me:$LINENO: checking for crypt" >&5
32873 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
32874 if test "${ac_cv_func_crypt+set}" = set; then
32875   echo $ECHO_N "(cached) $ECHO_C" >&6
32876 else
32877   cat >conftest.$ac_ext <<_ACEOF
32878 /* confdefs.h.  */
32879 _ACEOF
32880 cat confdefs.h >>conftest.$ac_ext
32881 cat >>conftest.$ac_ext <<_ACEOF
32882 /* end confdefs.h.  */
32883 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
32884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32885 #define crypt innocuous_crypt
32886
32887 /* System header to define __stub macros and hopefully few prototypes,
32888     which can conflict with char crypt (); below.
32889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32890     <limits.h> exists even on freestanding compilers.  */
32891
32892 #ifdef __STDC__
32893 # include <limits.h>
32894 #else
32895 # include <assert.h>
32896 #endif
32897
32898 #undef crypt
32899
32900 /* Override any gcc2 internal prototype to avoid an error.  */
32901 #ifdef __cplusplus
32902 extern "C"
32903 {
32904 #endif
32905 /* We use char because int might match the return type of a gcc2
32906    builtin and then its argument prototype would still apply.  */
32907 char crypt ();
32908 /* The GNU C library defines this for functions which it implements
32909     to always fail with ENOSYS.  Some functions are actually named
32910     something starting with __ and the normal name is an alias.  */
32911 #if defined (__stub_crypt) || defined (__stub___crypt)
32912 choke me
32913 #else
32914 char (*f) () = crypt;
32915 #endif
32916 #ifdef __cplusplus
32917 }
32918 #endif
32919
32920 int
32921 main ()
32922 {
32923 return f != crypt;
32924   ;
32925   return 0;
32926 }
32927 _ACEOF
32928 rm -f conftest.$ac_objext conftest$ac_exeext
32929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32930   (eval $ac_link) 2>conftest.er1
32931   ac_status=$?
32932   grep -v '^ *+' conftest.er1 >conftest.err
32933   rm -f conftest.er1
32934   cat conftest.err >&5
32935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936   (exit $ac_status); } &&
32937          { ac_try='test -z "$ac_c_werror_flag"
32938                          || test ! -s conftest.err'
32939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940   (eval $ac_try) 2>&5
32941   ac_status=$?
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); }; } &&
32944          { ac_try='test -s conftest$ac_exeext'
32945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946   (eval $ac_try) 2>&5
32947   ac_status=$?
32948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949   (exit $ac_status); }; }; then
32950   ac_cv_func_crypt=yes
32951 else
32952   echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32954
32955 ac_cv_func_crypt=no
32956 fi
32957 rm -f conftest.err conftest.$ac_objext \
32958       conftest$ac_exeext conftest.$ac_ext
32959 fi
32960 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32961 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32962 if test $ac_cv_func_crypt = yes; then
32963   have_crypt=yes
32964 else
32965
32966                 LIBS="$save_LIBS"
32967                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32968 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32969 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32970   echo $ECHO_N "(cached) $ECHO_C" >&6
32971 else
32972   ac_check_lib_save_LIBS=$LIBS
32973 LIBS="-lcrypt  $LIBS"
32974 cat >conftest.$ac_ext <<_ACEOF
32975 /* confdefs.h.  */
32976 _ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h.  */
32980
32981 /* Override any gcc2 internal prototype to avoid an error.  */
32982 #ifdef __cplusplus
32983 extern "C"
32984 #endif
32985 /* We use char because int might match the return type of a gcc2
32986    builtin and then its argument prototype would still apply.  */
32987 char crypt ();
32988 int
32989 main ()
32990 {
32991 crypt ();
32992   ;
32993   return 0;
32994 }
32995 _ACEOF
32996 rm -f conftest.$ac_objext conftest$ac_exeext
32997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32998   (eval $ac_link) 2>conftest.er1
32999   ac_status=$?
33000   grep -v '^ *+' conftest.er1 >conftest.err
33001   rm -f conftest.er1
33002   cat conftest.err >&5
33003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004   (exit $ac_status); } &&
33005          { ac_try='test -z "$ac_c_werror_flag"
33006                          || test ! -s conftest.err'
33007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008   (eval $ac_try) 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; } &&
33012          { ac_try='test -s conftest$ac_exeext'
33013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014   (eval $ac_try) 2>&5
33015   ac_status=$?
33016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017   (exit $ac_status); }; }; then
33018   ac_cv_lib_crypt_crypt=yes
33019 else
33020   echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33022
33023 ac_cv_lib_crypt_crypt=no
33024 fi
33025 rm -f conftest.err conftest.$ac_objext \
33026       conftest$ac_exeext conftest.$ac_ext
33027 LIBS=$ac_check_lib_save_LIBS
33028 fi
33029 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33030 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33031 if test $ac_cv_lib_crypt_crypt = yes; then
33032   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33033                         have_crypt=yes
33034 else
33035   have_crypt=no
33036 fi
33037
33038 fi
33039
33040
33041         LIBS="$save_LIBS"
33042
33043         if test $have_crypt = yes ; then
33044
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_CRYPT 1
33047 _ACEOF
33048
33049         else
33050                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33051 echo "$as_me: WARNING: could not find crypt" >&2;}
33052                 if test $ol_enable_crypt = yes ; then
33053                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33054 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33055    { (exit 1); exit 1; }; }
33056                 fi
33057
33058                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33059 echo "$as_me: WARNING: disabling crypt support" >&2;}
33060                 ol_enable_crypt=no
33061         fi
33062 fi
33063
33064 if test $ol_enable_proctitle != no ; then
33065         echo "$as_me:$LINENO: checking for setproctitle" >&5
33066 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33067 if test "${ac_cv_func_setproctitle+set}" = set; then
33068   echo $ECHO_N "(cached) $ECHO_C" >&6
33069 else
33070   cat >conftest.$ac_ext <<_ACEOF
33071 /* confdefs.h.  */
33072 _ACEOF
33073 cat confdefs.h >>conftest.$ac_ext
33074 cat >>conftest.$ac_ext <<_ACEOF
33075 /* end confdefs.h.  */
33076 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33078 #define setproctitle innocuous_setproctitle
33079
33080 /* System header to define __stub macros and hopefully few prototypes,
33081     which can conflict with char setproctitle (); below.
33082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33083     <limits.h> exists even on freestanding compilers.  */
33084
33085 #ifdef __STDC__
33086 # include <limits.h>
33087 #else
33088 # include <assert.h>
33089 #endif
33090
33091 #undef setproctitle
33092
33093 /* Override any gcc2 internal prototype to avoid an error.  */
33094 #ifdef __cplusplus
33095 extern "C"
33096 {
33097 #endif
33098 /* We use char because int might match the return type of a gcc2
33099    builtin and then its argument prototype would still apply.  */
33100 char setproctitle ();
33101 /* The GNU C library defines this for functions which it implements
33102     to always fail with ENOSYS.  Some functions are actually named
33103     something starting with __ and the normal name is an alias.  */
33104 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33105 choke me
33106 #else
33107 char (*f) () = setproctitle;
33108 #endif
33109 #ifdef __cplusplus
33110 }
33111 #endif
33112
33113 int
33114 main ()
33115 {
33116 return f != setproctitle;
33117   ;
33118   return 0;
33119 }
33120 _ACEOF
33121 rm -f conftest.$ac_objext conftest$ac_exeext
33122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33123   (eval $ac_link) 2>conftest.er1
33124   ac_status=$?
33125   grep -v '^ *+' conftest.er1 >conftest.err
33126   rm -f conftest.er1
33127   cat conftest.err >&5
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); } &&
33130          { ac_try='test -z "$ac_c_werror_flag"
33131                          || test ! -s conftest.err'
33132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133   (eval $ac_try) 2>&5
33134   ac_status=$?
33135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136   (exit $ac_status); }; } &&
33137          { ac_try='test -s conftest$ac_exeext'
33138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139   (eval $ac_try) 2>&5
33140   ac_status=$?
33141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); }; }; then
33143   ac_cv_func_setproctitle=yes
33144 else
33145   echo "$as_me: failed program was:" >&5
33146 sed 's/^/| /' conftest.$ac_ext >&5
33147
33148 ac_cv_func_setproctitle=no
33149 fi
33150 rm -f conftest.err conftest.$ac_objext \
33151       conftest$ac_exeext conftest.$ac_ext
33152 fi
33153 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33154 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33155 if test $ac_cv_func_setproctitle = yes; then
33156   have_setproctitle=yes
33157 else
33158
33159                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33160 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33161 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33162   echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164   ac_check_lib_save_LIBS=$LIBS
33165 LIBS="-lutil  $LIBS"
33166 cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172
33173 /* Override any gcc2 internal prototype to avoid an error.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 #endif
33177 /* We use char because int might match the return type of a gcc2
33178    builtin and then its argument prototype would still apply.  */
33179 char setproctitle ();
33180 int
33181 main ()
33182 {
33183 setproctitle ();
33184   ;
33185   return 0;
33186 }
33187 _ACEOF
33188 rm -f conftest.$ac_objext conftest$ac_exeext
33189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33190   (eval $ac_link) 2>conftest.er1
33191   ac_status=$?
33192   grep -v '^ *+' conftest.er1 >conftest.err
33193   rm -f conftest.er1
33194   cat conftest.err >&5
33195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33196   (exit $ac_status); } &&
33197          { ac_try='test -z "$ac_c_werror_flag"
33198                          || test ! -s conftest.err'
33199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200   (eval $ac_try) 2>&5
33201   ac_status=$?
33202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203   (exit $ac_status); }; } &&
33204          { ac_try='test -s conftest$ac_exeext'
33205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206   (eval $ac_try) 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; }; then
33210   ac_cv_lib_util_setproctitle=yes
33211 else
33212   echo "$as_me: failed program was:" >&5
33213 sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_lib_util_setproctitle=no
33216 fi
33217 rm -f conftest.err conftest.$ac_objext \
33218       conftest$ac_exeext conftest.$ac_ext
33219 LIBS=$ac_check_lib_save_LIBS
33220 fi
33221 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33222 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33223 if test $ac_cv_lib_util_setproctitle = yes; then
33224   have_setproctitle=yes
33225                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33226 else
33227   have_setproctitle=no
33228                         case $LIBOBJS in
33229     "setproctitle.$ac_objext"   | \
33230   *" setproctitle.$ac_objext"   | \
33231     "setproctitle.$ac_objext "* | \
33232   *" setproctitle.$ac_objext "* ) ;;
33233   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33234 esac
33235
33236                         LIBSRCS="$LIBSRCS setproctitle.c"
33237 fi
33238
33239 fi
33240
33241
33242         if test $have_setproctitle = yes ; then
33243
33244 cat >>confdefs.h <<\_ACEOF
33245 #define HAVE_SETPROCTITLE 1
33246 _ACEOF
33247
33248         fi
33249 fi
33250
33251 if test $ol_enable_slp != no ; then
33252
33253 for ac_header in slp.h
33254 do
33255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33257   echo "$as_me:$LINENO: checking for $ac_header" >&5
33258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33260   echo $ECHO_N "(cached) $ECHO_C" >&6
33261 fi
33262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33264 else
33265   # Is the header compilable?
33266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33268 cat >conftest.$ac_ext <<_ACEOF
33269 /* confdefs.h.  */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h.  */
33274 $ac_includes_default
33275 #include <$ac_header>
33276 _ACEOF
33277 rm -f conftest.$ac_objext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33279   (eval $ac_compile) 2>conftest.er1
33280   ac_status=$?
33281   grep -v '^ *+' conftest.er1 >conftest.err
33282   rm -f conftest.er1
33283   cat conftest.err >&5
33284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33285   (exit $ac_status); } &&
33286          { ac_try='test -z "$ac_c_werror_flag"
33287                          || test ! -s conftest.err'
33288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289   (eval $ac_try) 2>&5
33290   ac_status=$?
33291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292   (exit $ac_status); }; } &&
33293          { ac_try='test -s conftest.$ac_objext'
33294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295   (eval $ac_try) 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; }; then
33299   ac_header_compiler=yes
33300 else
33301   echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 ac_header_compiler=no
33305 fi
33306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33308 echo "${ECHO_T}$ac_header_compiler" >&6
33309
33310 # Is the header present?
33311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33313 cat >conftest.$ac_ext <<_ACEOF
33314 /* confdefs.h.  */
33315 _ACEOF
33316 cat confdefs.h >>conftest.$ac_ext
33317 cat >>conftest.$ac_ext <<_ACEOF
33318 /* end confdefs.h.  */
33319 #include <$ac_header>
33320 _ACEOF
33321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33323   ac_status=$?
33324   grep -v '^ *+' conftest.er1 >conftest.err
33325   rm -f conftest.er1
33326   cat conftest.err >&5
33327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328   (exit $ac_status); } >/dev/null; then
33329   if test -s conftest.err; then
33330     ac_cpp_err=$ac_c_preproc_warn_flag
33331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33332   else
33333     ac_cpp_err=
33334   fi
33335 else
33336   ac_cpp_err=yes
33337 fi
33338 if test -z "$ac_cpp_err"; then
33339   ac_header_preproc=yes
33340 else
33341   echo "$as_me: failed program was:" >&5
33342 sed 's/^/| /' conftest.$ac_ext >&5
33343
33344   ac_header_preproc=no
33345 fi
33346 rm -f conftest.err conftest.$ac_ext
33347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33348 echo "${ECHO_T}$ac_header_preproc" >&6
33349
33350 # So?  What about this header?
33351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33352   yes:no: )
33353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33357     ac_header_preproc=yes
33358     ;;
33359   no:yes:* )
33360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33372     (
33373       cat <<\_ASBOX
33374 ## --------------------------------------------- ##
33375 ## Report this to <http://www.openldap.org/its/> ##
33376 ## --------------------------------------------- ##
33377 _ASBOX
33378     ) |
33379       sed "s/^/$as_me: WARNING:     /" >&2
33380     ;;
33381 esac
33382 echo "$as_me:$LINENO: checking for $ac_header" >&5
33383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33385   echo $ECHO_N "(cached) $ECHO_C" >&6
33386 else
33387   eval "$as_ac_Header=\$ac_header_preproc"
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
33392 fi
33393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33394   cat >>confdefs.h <<_ACEOF
33395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33396 _ACEOF
33397
33398 fi
33399
33400 done
33401
33402
33403         if test $ac_cv_header_slp_h = yes ; then
33404                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33405 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33406 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33407   echo $ECHO_N "(cached) $ECHO_C" >&6
33408 else
33409   ac_check_lib_save_LIBS=$LIBS
33410 LIBS="-lslp  $LIBS"
33411 cat >conftest.$ac_ext <<_ACEOF
33412 /* confdefs.h.  */
33413 _ACEOF
33414 cat confdefs.h >>conftest.$ac_ext
33415 cat >>conftest.$ac_ext <<_ACEOF
33416 /* end confdefs.h.  */
33417
33418 /* Override any gcc2 internal prototype to avoid an error.  */
33419 #ifdef __cplusplus
33420 extern "C"
33421 #endif
33422 /* We use char because int might match the return type of a gcc2
33423    builtin and then its argument prototype would still apply.  */
33424 char SLPOpen ();
33425 int
33426 main ()
33427 {
33428 SLPOpen ();
33429   ;
33430   return 0;
33431 }
33432 _ACEOF
33433 rm -f conftest.$ac_objext conftest$ac_exeext
33434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33435   (eval $ac_link) 2>conftest.er1
33436   ac_status=$?
33437   grep -v '^ *+' conftest.er1 >conftest.err
33438   rm -f conftest.er1
33439   cat conftest.err >&5
33440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441   (exit $ac_status); } &&
33442          { ac_try='test -z "$ac_c_werror_flag"
33443                          || test ! -s conftest.err'
33444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33445   (eval $ac_try) 2>&5
33446   ac_status=$?
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); }; } &&
33449          { ac_try='test -s conftest$ac_exeext'
33450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33451   (eval $ac_try) 2>&5
33452   ac_status=$?
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); }; }; then
33455   ac_cv_lib_slp_SLPOpen=yes
33456 else
33457   echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33459
33460 ac_cv_lib_slp_SLPOpen=no
33461 fi
33462 rm -f conftest.err conftest.$ac_objext \
33463       conftest$ac_exeext conftest.$ac_ext
33464 LIBS=$ac_check_lib_save_LIBS
33465 fi
33466 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33467 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33468 if test $ac_cv_lib_slp_SLPOpen = yes; then
33469   have_slp=yes
33470 else
33471   have_slp=no
33472 fi
33473
33474                 if test $have_slp = yes ; then
33475
33476 cat >>confdefs.h <<\_ACEOF
33477 #define HAVE_SLP 1
33478 _ACEOF
33479
33480                         SLAPD_SLP_LIBS=-lslp
33481                 fi
33482
33483         elif test $ol_enable_slp = yes ; then
33484                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33485 echo "$as_me: error: SLP not found" >&2;}
33486    { (exit 1); exit 1; }; }
33487         fi
33488 fi
33489
33490
33491 echo "$as_me:$LINENO: checking for mode_t" >&5
33492 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33493 if test "${ac_cv_type_mode_t+set}" = set; then
33494   echo $ECHO_N "(cached) $ECHO_C" >&6
33495 else
33496   cat >conftest.$ac_ext <<_ACEOF
33497 /* confdefs.h.  */
33498 _ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h.  */
33502 $ac_includes_default
33503 int
33504 main ()
33505 {
33506 if ((mode_t *) 0)
33507   return 0;
33508 if (sizeof (mode_t))
33509   return 0;
33510   ;
33511   return 0;
33512 }
33513 _ACEOF
33514 rm -f conftest.$ac_objext
33515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33516   (eval $ac_compile) 2>conftest.er1
33517   ac_status=$?
33518   grep -v '^ *+' conftest.er1 >conftest.err
33519   rm -f conftest.er1
33520   cat conftest.err >&5
33521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522   (exit $ac_status); } &&
33523          { ac_try='test -z "$ac_c_werror_flag"
33524                          || test ! -s conftest.err'
33525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33526   (eval $ac_try) 2>&5
33527   ac_status=$?
33528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529   (exit $ac_status); }; } &&
33530          { ac_try='test -s conftest.$ac_objext'
33531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33532   (eval $ac_try) 2>&5
33533   ac_status=$?
33534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33535   (exit $ac_status); }; }; then
33536   ac_cv_type_mode_t=yes
33537 else
33538   echo "$as_me: failed program was:" >&5
33539 sed 's/^/| /' conftest.$ac_ext >&5
33540
33541 ac_cv_type_mode_t=no
33542 fi
33543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33544 fi
33545 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33546 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33547 if test $ac_cv_type_mode_t = yes; then
33548   :
33549 else
33550
33551 cat >>confdefs.h <<_ACEOF
33552 #define mode_t int
33553 _ACEOF
33554
33555 fi
33556
33557 echo "$as_me:$LINENO: checking for off_t" >&5
33558 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33559 if test "${ac_cv_type_off_t+set}" = set; then
33560   echo $ECHO_N "(cached) $ECHO_C" >&6
33561 else
33562   cat >conftest.$ac_ext <<_ACEOF
33563 /* confdefs.h.  */
33564 _ACEOF
33565 cat confdefs.h >>conftest.$ac_ext
33566 cat >>conftest.$ac_ext <<_ACEOF
33567 /* end confdefs.h.  */
33568 $ac_includes_default
33569 int
33570 main ()
33571 {
33572 if ((off_t *) 0)
33573   return 0;
33574 if (sizeof (off_t))
33575   return 0;
33576   ;
33577   return 0;
33578 }
33579 _ACEOF
33580 rm -f conftest.$ac_objext
33581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33582   (eval $ac_compile) 2>conftest.er1
33583   ac_status=$?
33584   grep -v '^ *+' conftest.er1 >conftest.err
33585   rm -f conftest.er1
33586   cat conftest.err >&5
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); } &&
33589          { ac_try='test -z "$ac_c_werror_flag"
33590                          || test ! -s conftest.err'
33591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592   (eval $ac_try) 2>&5
33593   ac_status=$?
33594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595   (exit $ac_status); }; } &&
33596          { ac_try='test -s conftest.$ac_objext'
33597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598   (eval $ac_try) 2>&5
33599   ac_status=$?
33600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601   (exit $ac_status); }; }; then
33602   ac_cv_type_off_t=yes
33603 else
33604   echo "$as_me: failed program was:" >&5
33605 sed 's/^/| /' conftest.$ac_ext >&5
33606
33607 ac_cv_type_off_t=no
33608 fi
33609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33610 fi
33611 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33612 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33613 if test $ac_cv_type_off_t = yes; then
33614   :
33615 else
33616
33617 cat >>confdefs.h <<_ACEOF
33618 #define off_t long
33619 _ACEOF
33620
33621 fi
33622
33623 echo "$as_me:$LINENO: checking for pid_t" >&5
33624 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33625 if test "${ac_cv_type_pid_t+set}" = set; then
33626   echo $ECHO_N "(cached) $ECHO_C" >&6
33627 else
33628   cat >conftest.$ac_ext <<_ACEOF
33629 /* confdefs.h.  */
33630 _ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h.  */
33634 $ac_includes_default
33635 int
33636 main ()
33637 {
33638 if ((pid_t *) 0)
33639   return 0;
33640 if (sizeof (pid_t))
33641   return 0;
33642   ;
33643   return 0;
33644 }
33645 _ACEOF
33646 rm -f conftest.$ac_objext
33647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33648   (eval $ac_compile) 2>conftest.er1
33649   ac_status=$?
33650   grep -v '^ *+' conftest.er1 >conftest.err
33651   rm -f conftest.er1
33652   cat conftest.err >&5
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); } &&
33655          { ac_try='test -z "$ac_c_werror_flag"
33656                          || test ! -s conftest.err'
33657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658   (eval $ac_try) 2>&5
33659   ac_status=$?
33660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661   (exit $ac_status); }; } &&
33662          { ac_try='test -s conftest.$ac_objext'
33663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664   (eval $ac_try) 2>&5
33665   ac_status=$?
33666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667   (exit $ac_status); }; }; then
33668   ac_cv_type_pid_t=yes
33669 else
33670   echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33672
33673 ac_cv_type_pid_t=no
33674 fi
33675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33676 fi
33677 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33679 if test $ac_cv_type_pid_t = yes; then
33680   :
33681 else
33682
33683 cat >>confdefs.h <<_ACEOF
33684 #define pid_t int
33685 _ACEOF
33686
33687 fi
33688
33689 echo "$as_me:$LINENO: checking for ssize_t" >&5
33690 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33691 if test "${ac_cv_type_ssize_t+set}" = set; then
33692   echo $ECHO_N "(cached) $ECHO_C" >&6
33693 else
33694   cat >conftest.$ac_ext <<_ACEOF
33695 /* confdefs.h.  */
33696 _ACEOF
33697 cat confdefs.h >>conftest.$ac_ext
33698 cat >>conftest.$ac_ext <<_ACEOF
33699 /* end confdefs.h.  */
33700 $ac_includes_default
33701 int
33702 main ()
33703 {
33704 if ((ssize_t *) 0)
33705   return 0;
33706 if (sizeof (ssize_t))
33707   return 0;
33708   ;
33709   return 0;
33710 }
33711 _ACEOF
33712 rm -f conftest.$ac_objext
33713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33714   (eval $ac_compile) 2>conftest.er1
33715   ac_status=$?
33716   grep -v '^ *+' conftest.er1 >conftest.err
33717   rm -f conftest.er1
33718   cat conftest.err >&5
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } &&
33721          { ac_try='test -z "$ac_c_werror_flag"
33722                          || test ! -s conftest.err'
33723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33724   (eval $ac_try) 2>&5
33725   ac_status=$?
33726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727   (exit $ac_status); }; } &&
33728          { ac_try='test -s conftest.$ac_objext'
33729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730   (eval $ac_try) 2>&5
33731   ac_status=$?
33732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733   (exit $ac_status); }; }; then
33734   ac_cv_type_ssize_t=yes
33735 else
33736   echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33738
33739 ac_cv_type_ssize_t=no
33740 fi
33741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33742 fi
33743 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33744 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33745 if test $ac_cv_type_ssize_t = yes; then
33746   :
33747 else
33748
33749 cat >>confdefs.h <<_ACEOF
33750 #define ssize_t signed int
33751 _ACEOF
33752
33753 fi
33754
33755 echo "$as_me:$LINENO: checking for caddr_t" >&5
33756 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33757 if test "${ac_cv_type_caddr_t+set}" = set; then
33758   echo $ECHO_N "(cached) $ECHO_C" >&6
33759 else
33760   cat >conftest.$ac_ext <<_ACEOF
33761 /* confdefs.h.  */
33762 _ACEOF
33763 cat confdefs.h >>conftest.$ac_ext
33764 cat >>conftest.$ac_ext <<_ACEOF
33765 /* end confdefs.h.  */
33766 $ac_includes_default
33767 int
33768 main ()
33769 {
33770 if ((caddr_t *) 0)
33771   return 0;
33772 if (sizeof (caddr_t))
33773   return 0;
33774   ;
33775   return 0;
33776 }
33777 _ACEOF
33778 rm -f conftest.$ac_objext
33779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780   (eval $ac_compile) 2>conftest.er1
33781   ac_status=$?
33782   grep -v '^ *+' conftest.er1 >conftest.err
33783   rm -f conftest.er1
33784   cat conftest.err >&5
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); } &&
33787          { ac_try='test -z "$ac_c_werror_flag"
33788                          || test ! -s conftest.err'
33789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33790   (eval $ac_try) 2>&5
33791   ac_status=$?
33792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33793   (exit $ac_status); }; } &&
33794          { ac_try='test -s conftest.$ac_objext'
33795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33796   (eval $ac_try) 2>&5
33797   ac_status=$?
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); }; }; then
33800   ac_cv_type_caddr_t=yes
33801 else
33802   echo "$as_me: failed program was:" >&5
33803 sed 's/^/| /' conftest.$ac_ext >&5
33804
33805 ac_cv_type_caddr_t=no
33806 fi
33807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33808 fi
33809 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33810 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33811 if test $ac_cv_type_caddr_t = yes; then
33812   :
33813 else
33814
33815 cat >>confdefs.h <<_ACEOF
33816 #define caddr_t char *
33817 _ACEOF
33818
33819 fi
33820
33821 echo "$as_me:$LINENO: checking for size_t" >&5
33822 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33823 if test "${ac_cv_type_size_t+set}" = set; then
33824   echo $ECHO_N "(cached) $ECHO_C" >&6
33825 else
33826   cat >conftest.$ac_ext <<_ACEOF
33827 /* confdefs.h.  */
33828 _ACEOF
33829 cat confdefs.h >>conftest.$ac_ext
33830 cat >>conftest.$ac_ext <<_ACEOF
33831 /* end confdefs.h.  */
33832 $ac_includes_default
33833 int
33834 main ()
33835 {
33836 if ((size_t *) 0)
33837   return 0;
33838 if (sizeof (size_t))
33839   return 0;
33840   ;
33841   return 0;
33842 }
33843 _ACEOF
33844 rm -f conftest.$ac_objext
33845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33846   (eval $ac_compile) 2>conftest.er1
33847   ac_status=$?
33848   grep -v '^ *+' conftest.er1 >conftest.err
33849   rm -f conftest.er1
33850   cat conftest.err >&5
33851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852   (exit $ac_status); } &&
33853          { ac_try='test -z "$ac_c_werror_flag"
33854                          || test ! -s conftest.err'
33855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33856   (eval $ac_try) 2>&5
33857   ac_status=$?
33858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859   (exit $ac_status); }; } &&
33860          { ac_try='test -s conftest.$ac_objext'
33861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862   (eval $ac_try) 2>&5
33863   ac_status=$?
33864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); }; }; then
33866   ac_cv_type_size_t=yes
33867 else
33868   echo "$as_me: failed program was:" >&5
33869 sed 's/^/| /' conftest.$ac_ext >&5
33870
33871 ac_cv_type_size_t=no
33872 fi
33873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33874 fi
33875 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33876 echo "${ECHO_T}$ac_cv_type_size_t" >&6
33877 if test $ac_cv_type_size_t = yes; then
33878   :
33879 else
33880
33881 cat >>confdefs.h <<_ACEOF
33882 #define size_t unsigned
33883 _ACEOF
33884
33885 fi
33886
33887
33888 echo "$as_me:$LINENO: checking for long long" >&5
33889 echo $ECHO_N "checking for long long... $ECHO_C" >&6
33890 if test "${ac_cv_type_long_long+set}" = set; then
33891   echo $ECHO_N "(cached) $ECHO_C" >&6
33892 else
33893   cat >conftest.$ac_ext <<_ACEOF
33894 /* confdefs.h.  */
33895 _ACEOF
33896 cat confdefs.h >>conftest.$ac_ext
33897 cat >>conftest.$ac_ext <<_ACEOF
33898 /* end confdefs.h.  */
33899 $ac_includes_default
33900 int
33901 main ()
33902 {
33903 if ((long long *) 0)
33904   return 0;
33905 if (sizeof (long long))
33906   return 0;
33907   ;
33908   return 0;
33909 }
33910 _ACEOF
33911 rm -f conftest.$ac_objext
33912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33913   (eval $ac_compile) 2>conftest.er1
33914   ac_status=$?
33915   grep -v '^ *+' conftest.er1 >conftest.err
33916   rm -f conftest.er1
33917   cat conftest.err >&5
33918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919   (exit $ac_status); } &&
33920          { ac_try='test -z "$ac_c_werror_flag"
33921                          || test ! -s conftest.err'
33922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33923   (eval $ac_try) 2>&5
33924   ac_status=$?
33925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); }; } &&
33927          { ac_try='test -s conftest.$ac_objext'
33928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33929   (eval $ac_try) 2>&5
33930   ac_status=$?
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); }; }; then
33933   ac_cv_type_long_long=yes
33934 else
33935   echo "$as_me: failed program was:" >&5
33936 sed 's/^/| /' conftest.$ac_ext >&5
33937
33938 ac_cv_type_long_long=no
33939 fi
33940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33941 fi
33942 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33943 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33944 if test $ac_cv_type_long_long = yes; then
33945
33946 cat >>confdefs.h <<_ACEOF
33947 #define HAVE_LONG_LONG 1
33948 _ACEOF
33949
33950
33951 fi
33952
33953 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33954 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33955 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33956   echo $ECHO_N "(cached) $ECHO_C" >&6
33957 else
33958   cat >conftest.$ac_ext <<_ACEOF
33959 /* confdefs.h.  */
33960 _ACEOF
33961 cat confdefs.h >>conftest.$ac_ext
33962 cat >>conftest.$ac_ext <<_ACEOF
33963 /* end confdefs.h.  */
33964 $ac_includes_default
33965 int
33966 main ()
33967 {
33968 if ((ptrdiff_t *) 0)
33969   return 0;
33970 if (sizeof (ptrdiff_t))
33971   return 0;
33972   ;
33973   return 0;
33974 }
33975 _ACEOF
33976 rm -f conftest.$ac_objext
33977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33978   (eval $ac_compile) 2>conftest.er1
33979   ac_status=$?
33980   grep -v '^ *+' conftest.er1 >conftest.err
33981   rm -f conftest.er1
33982   cat conftest.err >&5
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); } &&
33985          { ac_try='test -z "$ac_c_werror_flag"
33986                          || test ! -s conftest.err'
33987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33988   (eval $ac_try) 2>&5
33989   ac_status=$?
33990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33991   (exit $ac_status); }; } &&
33992          { ac_try='test -s conftest.$ac_objext'
33993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33994   (eval $ac_try) 2>&5
33995   ac_status=$?
33996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997   (exit $ac_status); }; }; then
33998   ac_cv_type_ptrdiff_t=yes
33999 else
34000   echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003 ac_cv_type_ptrdiff_t=no
34004 fi
34005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34006 fi
34007 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34008 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34009 if test $ac_cv_type_ptrdiff_t = yes; then
34010
34011 cat >>confdefs.h <<_ACEOF
34012 #define HAVE_PTRDIFF_T 1
34013 _ACEOF
34014
34015
34016 fi
34017
34018
34019
34020 echo "$as_me:$LINENO: checking for socklen_t" >&5
34021 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34022 if test "${ac_cv_type_socklen_t+set}" = set; then
34023   echo $ECHO_N "(cached) $ECHO_C" >&6
34024 else
34025   cat >conftest.$ac_ext <<_ACEOF
34026 /* confdefs.h.  */
34027 _ACEOF
34028 cat confdefs.h >>conftest.$ac_ext
34029 cat >>conftest.$ac_ext <<_ACEOF
34030 /* end confdefs.h.  */
34031 $ac_includes_default
34032 #ifdef HAVE_SYS_SOCKET_H
34033 #include <sys/socket.h>
34034 #endif
34035
34036 int
34037 main ()
34038 {
34039 if ((socklen_t *) 0)
34040   return 0;
34041 if (sizeof (socklen_t))
34042   return 0;
34043   ;
34044   return 0;
34045 }
34046 _ACEOF
34047 rm -f conftest.$ac_objext
34048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34049   (eval $ac_compile) 2>conftest.er1
34050   ac_status=$?
34051   grep -v '^ *+' conftest.er1 >conftest.err
34052   rm -f conftest.er1
34053   cat conftest.err >&5
34054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055   (exit $ac_status); } &&
34056          { ac_try='test -z "$ac_c_werror_flag"
34057                          || test ! -s conftest.err'
34058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34059   (eval $ac_try) 2>&5
34060   ac_status=$?
34061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062   (exit $ac_status); }; } &&
34063          { ac_try='test -s conftest.$ac_objext'
34064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34065   (eval $ac_try) 2>&5
34066   ac_status=$?
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); }; }; then
34069   ac_cv_type_socklen_t=yes
34070 else
34071   echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34073
34074 ac_cv_type_socklen_t=no
34075 fi
34076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34077 fi
34078 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34079 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34080
34081
34082 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
34083 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
34084 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
34085   echo $ECHO_N "(cached) $ECHO_C" >&6
34086 else
34087
34088         set socklen_t int unsigned "unsigned long" long size_t
34089         test "$ac_cv_type_socklen_t" = yes || shift
34090         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
34091         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
34092                 cat >conftest.$ac_ext <<_ACEOF
34093 /* confdefs.h.  */
34094 _ACEOF
34095 cat confdefs.h >>conftest.$ac_ext
34096 cat >>conftest.$ac_ext <<_ACEOF
34097 /* end confdefs.h.  */
34098 $ac_includes_default
34099 #ifdef HAVE_SYS_SOCKET_H
34100 #include <sys/socket.h>
34101 #endif
34102 extern int accept(int s, $addrtype *ap, $lentype *lp);
34103
34104 int
34105 main ()
34106 {
34107
34108 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
34109
34110   ;
34111   return 0;
34112 }
34113 _ACEOF
34114 rm -f conftest.$ac_objext
34115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34116   (eval $ac_compile) 2>conftest.er1
34117   ac_status=$?
34118   grep -v '^ *+' conftest.er1 >conftest.err
34119   rm -f conftest.er1
34120   cat conftest.err >&5
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); } &&
34123          { ac_try='test -z "$ac_c_werror_flag"
34124                          || test ! -s conftest.err'
34125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126   (eval $ac_try) 2>&5
34127   ac_status=$?
34128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129   (exit $ac_status); }; } &&
34130          { ac_try='test -s conftest.$ac_objext'
34131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34132   (eval $ac_try) 2>&5
34133   ac_status=$?
34134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135   (exit $ac_status); }; }; then
34136   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
34137 else
34138   echo "$as_me: failed program was:" >&5
34139 sed 's/^/| /' conftest.$ac_ext >&5
34140
34141 fi
34142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34143         done ; done
34144 fi
34145
34146 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
34147 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
34148
34149 cat >>confdefs.h <<_ACEOF
34150 #define ber_socklen_t $ol_cv_type_ber_socklen_t
34151 _ACEOF
34152
34153
34154 if test "$ac_cv_type_socklen_t" != yes; then
34155
34156 cat >>confdefs.h <<_ACEOF
34157 #define socklen_t $ol_cv_type_ber_socklen_t
34158 _ACEOF
34159
34160 fi
34161
34162
34163 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34164 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34165 if test "${ac_cv_type_signal+set}" = set; then
34166   echo $ECHO_N "(cached) $ECHO_C" >&6
34167 else
34168   cat >conftest.$ac_ext <<_ACEOF
34169 /* confdefs.h.  */
34170 _ACEOF
34171 cat confdefs.h >>conftest.$ac_ext
34172 cat >>conftest.$ac_ext <<_ACEOF
34173 /* end confdefs.h.  */
34174 #include <sys/types.h>
34175 #include <signal.h>
34176 #ifdef signal
34177 # undef signal
34178 #endif
34179 #ifdef __cplusplus
34180 extern "C" void (*signal (int, void (*)(int)))(int);
34181 #else
34182 void (*signal ()) ();
34183 #endif
34184
34185 int
34186 main ()
34187 {
34188 int i;
34189   ;
34190   return 0;
34191 }
34192 _ACEOF
34193 rm -f conftest.$ac_objext
34194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34195   (eval $ac_compile) 2>conftest.er1
34196   ac_status=$?
34197   grep -v '^ *+' conftest.er1 >conftest.err
34198   rm -f conftest.er1
34199   cat conftest.err >&5
34200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201   (exit $ac_status); } &&
34202          { ac_try='test -z "$ac_c_werror_flag"
34203                          || test ! -s conftest.err'
34204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34205   (eval $ac_try) 2>&5
34206   ac_status=$?
34207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34208   (exit $ac_status); }; } &&
34209          { ac_try='test -s conftest.$ac_objext'
34210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211   (eval $ac_try) 2>&5
34212   ac_status=$?
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); }; }; then
34215   ac_cv_type_signal=void
34216 else
34217   echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34219
34220 ac_cv_type_signal=int
34221 fi
34222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34223 fi
34224 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34225 echo "${ECHO_T}$ac_cv_type_signal" >&6
34226
34227 cat >>confdefs.h <<_ACEOF
34228 #define RETSIGTYPE $ac_cv_type_signal
34229 _ACEOF
34230
34231
34232
34233 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34234 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34235 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34236   echo $ECHO_N "(cached) $ECHO_C" >&6
34237 else
34238   cat >conftest.$ac_ext <<_ACEOF
34239 /* confdefs.h.  */
34240 _ACEOF
34241 cat confdefs.h >>conftest.$ac_ext
34242 cat >>conftest.$ac_ext <<_ACEOF
34243 /* end confdefs.h.  */
34244 $ac_includes_default
34245 #include <signal.h>
34246
34247
34248 int
34249 main ()
34250 {
34251 if ((sig_atomic_t *) 0)
34252   return 0;
34253 if (sizeof (sig_atomic_t))
34254   return 0;
34255   ;
34256   return 0;
34257 }
34258 _ACEOF
34259 rm -f conftest.$ac_objext
34260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34261   (eval $ac_compile) 2>conftest.er1
34262   ac_status=$?
34263   grep -v '^ *+' conftest.er1 >conftest.err
34264   rm -f conftest.er1
34265   cat conftest.err >&5
34266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267   (exit $ac_status); } &&
34268          { ac_try='test -z "$ac_c_werror_flag"
34269                          || test ! -s conftest.err'
34270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271   (eval $ac_try) 2>&5
34272   ac_status=$?
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); }; } &&
34275          { ac_try='test -s conftest.$ac_objext'
34276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277   (eval $ac_try) 2>&5
34278   ac_status=$?
34279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280   (exit $ac_status); }; }; then
34281   ac_cv_type_sig_atomic_t=yes
34282 else
34283   echo "$as_me: failed program was:" >&5
34284 sed 's/^/| /' conftest.$ac_ext >&5
34285
34286 ac_cv_type_sig_atomic_t=no
34287 fi
34288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34289 fi
34290 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34291 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34292 if test $ac_cv_type_sig_atomic_t = yes; then
34293   :
34294 else
34295
34296 cat >>confdefs.h <<_ACEOF
34297 #define sig_atomic_t int
34298 _ACEOF
34299
34300 fi
34301
34302
34303 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34304 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34305 if test "${ac_cv_type_uid_t+set}" = set; then
34306   echo $ECHO_N "(cached) $ECHO_C" >&6
34307 else
34308   cat >conftest.$ac_ext <<_ACEOF
34309 /* confdefs.h.  */
34310 _ACEOF
34311 cat confdefs.h >>conftest.$ac_ext
34312 cat >>conftest.$ac_ext <<_ACEOF
34313 /* end confdefs.h.  */
34314 #include <sys/types.h>
34315
34316 _ACEOF
34317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34318   $EGREP "uid_t" >/dev/null 2>&1; then
34319   ac_cv_type_uid_t=yes
34320 else
34321   ac_cv_type_uid_t=no
34322 fi
34323 rm -f conftest*
34324
34325 fi
34326 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34327 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34328 if test $ac_cv_type_uid_t = no; then
34329
34330 cat >>confdefs.h <<\_ACEOF
34331 #define uid_t int
34332 _ACEOF
34333
34334
34335 cat >>confdefs.h <<\_ACEOF
34336 #define gid_t int
34337 _ACEOF
34338
34339 fi
34340
34341
34342 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34343 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34344 if test "${ac_cv_header_time+set}" = set; then
34345   echo $ECHO_N "(cached) $ECHO_C" >&6
34346 else
34347   cat >conftest.$ac_ext <<_ACEOF
34348 /* confdefs.h.  */
34349 _ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h.  */
34353 #include <sys/types.h>
34354 #include <sys/time.h>
34355 #include <time.h>
34356
34357 int
34358 main ()
34359 {
34360 if ((struct tm *) 0)
34361 return 0;
34362   ;
34363   return 0;
34364 }
34365 _ACEOF
34366 rm -f conftest.$ac_objext
34367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34368   (eval $ac_compile) 2>conftest.er1
34369   ac_status=$?
34370   grep -v '^ *+' conftest.er1 >conftest.err
34371   rm -f conftest.er1
34372   cat conftest.err >&5
34373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374   (exit $ac_status); } &&
34375          { ac_try='test -z "$ac_c_werror_flag"
34376                          || test ! -s conftest.err'
34377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378   (eval $ac_try) 2>&5
34379   ac_status=$?
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); }; } &&
34382          { ac_try='test -s conftest.$ac_objext'
34383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34384   (eval $ac_try) 2>&5
34385   ac_status=$?
34386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387   (exit $ac_status); }; }; then
34388   ac_cv_header_time=yes
34389 else
34390   echo "$as_me: failed program was:" >&5
34391 sed 's/^/| /' conftest.$ac_ext >&5
34392
34393 ac_cv_header_time=no
34394 fi
34395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34396 fi
34397 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34398 echo "${ECHO_T}$ac_cv_header_time" >&6
34399 if test $ac_cv_header_time = yes; then
34400
34401 cat >>confdefs.h <<\_ACEOF
34402 #define TIME_WITH_SYS_TIME 1
34403 _ACEOF
34404
34405 fi
34406
34407 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34408 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34409 if test "${ac_cv_struct_tm+set}" = set; then
34410   echo $ECHO_N "(cached) $ECHO_C" >&6
34411 else
34412   cat >conftest.$ac_ext <<_ACEOF
34413 /* confdefs.h.  */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h.  */
34418 #include <sys/types.h>
34419 #include <time.h>
34420
34421 int
34422 main ()
34423 {
34424 struct tm *tp; tp->tm_sec;
34425   ;
34426   return 0;
34427 }
34428 _ACEOF
34429 rm -f conftest.$ac_objext
34430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34431   (eval $ac_compile) 2>conftest.er1
34432   ac_status=$?
34433   grep -v '^ *+' conftest.er1 >conftest.err
34434   rm -f conftest.er1
34435   cat conftest.err >&5
34436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34437   (exit $ac_status); } &&
34438          { ac_try='test -z "$ac_c_werror_flag"
34439                          || test ! -s conftest.err'
34440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441   (eval $ac_try) 2>&5
34442   ac_status=$?
34443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444   (exit $ac_status); }; } &&
34445          { ac_try='test -s conftest.$ac_objext'
34446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34447   (eval $ac_try) 2>&5
34448   ac_status=$?
34449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34450   (exit $ac_status); }; }; then
34451   ac_cv_struct_tm=time.h
34452 else
34453   echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456 ac_cv_struct_tm=sys/time.h
34457 fi
34458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34459 fi
34460 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34461 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34462 if test $ac_cv_struct_tm = sys/time.h; then
34463
34464 cat >>confdefs.h <<\_ACEOF
34465 #define TM_IN_SYS_TIME 1
34466 _ACEOF
34467
34468 fi
34469
34470 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34471 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34472 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34473   echo $ECHO_N "(cached) $ECHO_C" >&6
34474 else
34475   cat >conftest.$ac_ext <<_ACEOF
34476 /* confdefs.h.  */
34477 _ACEOF
34478 cat confdefs.h >>conftest.$ac_ext
34479 cat >>conftest.$ac_ext <<_ACEOF
34480 /* end confdefs.h.  */
34481 $ac_includes_default
34482 int
34483 main ()
34484 {
34485 static struct stat ac_aggr;
34486 if (ac_aggr.st_blksize)
34487 return 0;
34488   ;
34489   return 0;
34490 }
34491 _ACEOF
34492 rm -f conftest.$ac_objext
34493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34494   (eval $ac_compile) 2>conftest.er1
34495   ac_status=$?
34496   grep -v '^ *+' conftest.er1 >conftest.err
34497   rm -f conftest.er1
34498   cat conftest.err >&5
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); } &&
34501          { ac_try='test -z "$ac_c_werror_flag"
34502                          || test ! -s conftest.err'
34503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504   (eval $ac_try) 2>&5
34505   ac_status=$?
34506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507   (exit $ac_status); }; } &&
34508          { ac_try='test -s conftest.$ac_objext'
34509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510   (eval $ac_try) 2>&5
34511   ac_status=$?
34512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513   (exit $ac_status); }; }; then
34514   ac_cv_member_struct_stat_st_blksize=yes
34515 else
34516   echo "$as_me: failed program was:" >&5
34517 sed 's/^/| /' conftest.$ac_ext >&5
34518
34519 cat >conftest.$ac_ext <<_ACEOF
34520 /* confdefs.h.  */
34521 _ACEOF
34522 cat confdefs.h >>conftest.$ac_ext
34523 cat >>conftest.$ac_ext <<_ACEOF
34524 /* end confdefs.h.  */
34525 $ac_includes_default
34526 int
34527 main ()
34528 {
34529 static struct stat ac_aggr;
34530 if (sizeof ac_aggr.st_blksize)
34531 return 0;
34532   ;
34533   return 0;
34534 }
34535 _ACEOF
34536 rm -f conftest.$ac_objext
34537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34538   (eval $ac_compile) 2>conftest.er1
34539   ac_status=$?
34540   grep -v '^ *+' conftest.er1 >conftest.err
34541   rm -f conftest.er1
34542   cat conftest.err >&5
34543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544   (exit $ac_status); } &&
34545          { ac_try='test -z "$ac_c_werror_flag"
34546                          || test ! -s conftest.err'
34547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34548   (eval $ac_try) 2>&5
34549   ac_status=$?
34550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551   (exit $ac_status); }; } &&
34552          { ac_try='test -s conftest.$ac_objext'
34553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34554   (eval $ac_try) 2>&5
34555   ac_status=$?
34556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557   (exit $ac_status); }; }; then
34558   ac_cv_member_struct_stat_st_blksize=yes
34559 else
34560   echo "$as_me: failed program was:" >&5
34561 sed 's/^/| /' conftest.$ac_ext >&5
34562
34563 ac_cv_member_struct_stat_st_blksize=no
34564 fi
34565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34566 fi
34567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34568 fi
34569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34571 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34572
34573 cat >>confdefs.h <<_ACEOF
34574 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34575 _ACEOF
34576
34577
34578 fi
34579
34580 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34581 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34582 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34583   echo $ECHO_N "(cached) $ECHO_C" >&6
34584 else
34585   cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591 $ac_includes_default
34592 #include <pwd.h>
34593
34594 int
34595 main ()
34596 {
34597 static struct passwd ac_aggr;
34598 if (ac_aggr.pw_gecos)
34599 return 0;
34600   ;
34601   return 0;
34602 }
34603 _ACEOF
34604 rm -f conftest.$ac_objext
34605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34606   (eval $ac_compile) 2>conftest.er1
34607   ac_status=$?
34608   grep -v '^ *+' conftest.er1 >conftest.err
34609   rm -f conftest.er1
34610   cat conftest.err >&5
34611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612   (exit $ac_status); } &&
34613          { ac_try='test -z "$ac_c_werror_flag"
34614                          || test ! -s conftest.err'
34615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616   (eval $ac_try) 2>&5
34617   ac_status=$?
34618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619   (exit $ac_status); }; } &&
34620          { ac_try='test -s conftest.$ac_objext'
34621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622   (eval $ac_try) 2>&5
34623   ac_status=$?
34624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625   (exit $ac_status); }; }; then
34626   ac_cv_member_struct_passwd_pw_gecos=yes
34627 else
34628   echo "$as_me: failed program was:" >&5
34629 sed 's/^/| /' conftest.$ac_ext >&5
34630
34631 cat >conftest.$ac_ext <<_ACEOF
34632 /* confdefs.h.  */
34633 _ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h.  */
34637 $ac_includes_default
34638 #include <pwd.h>
34639
34640 int
34641 main ()
34642 {
34643 static struct passwd ac_aggr;
34644 if (sizeof ac_aggr.pw_gecos)
34645 return 0;
34646   ;
34647   return 0;
34648 }
34649 _ACEOF
34650 rm -f conftest.$ac_objext
34651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34652   (eval $ac_compile) 2>conftest.er1
34653   ac_status=$?
34654   grep -v '^ *+' conftest.er1 >conftest.err
34655   rm -f conftest.er1
34656   cat conftest.err >&5
34657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658   (exit $ac_status); } &&
34659          { ac_try='test -z "$ac_c_werror_flag"
34660                          || test ! -s conftest.err'
34661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34662   (eval $ac_try) 2>&5
34663   ac_status=$?
34664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665   (exit $ac_status); }; } &&
34666          { ac_try='test -s conftest.$ac_objext'
34667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34668   (eval $ac_try) 2>&5
34669   ac_status=$?
34670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34671   (exit $ac_status); }; }; then
34672   ac_cv_member_struct_passwd_pw_gecos=yes
34673 else
34674   echo "$as_me: failed program was:" >&5
34675 sed 's/^/| /' conftest.$ac_ext >&5
34676
34677 ac_cv_member_struct_passwd_pw_gecos=no
34678 fi
34679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34680 fi
34681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34682 fi
34683 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34684 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34685 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34686
34687 cat >>confdefs.h <<_ACEOF
34688 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34689 _ACEOF
34690
34691
34692 fi
34693
34694 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34695 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34696 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34697   echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699   cat >conftest.$ac_ext <<_ACEOF
34700 /* confdefs.h.  */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h.  */
34705 $ac_includes_default
34706 #include <pwd.h>
34707
34708 int
34709 main ()
34710 {
34711 static struct passwd ac_aggr;
34712 if (ac_aggr.pw_passwd)
34713 return 0;
34714   ;
34715   return 0;
34716 }
34717 _ACEOF
34718 rm -f conftest.$ac_objext
34719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34720   (eval $ac_compile) 2>conftest.er1
34721   ac_status=$?
34722   grep -v '^ *+' conftest.er1 >conftest.err
34723   rm -f conftest.er1
34724   cat conftest.err >&5
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); } &&
34727          { ac_try='test -z "$ac_c_werror_flag"
34728                          || test ! -s conftest.err'
34729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730   (eval $ac_try) 2>&5
34731   ac_status=$?
34732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733   (exit $ac_status); }; } &&
34734          { ac_try='test -s conftest.$ac_objext'
34735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736   (eval $ac_try) 2>&5
34737   ac_status=$?
34738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739   (exit $ac_status); }; }; then
34740   ac_cv_member_struct_passwd_pw_passwd=yes
34741 else
34742   echo "$as_me: failed program was:" >&5
34743 sed 's/^/| /' conftest.$ac_ext >&5
34744
34745 cat >conftest.$ac_ext <<_ACEOF
34746 /* confdefs.h.  */
34747 _ACEOF
34748 cat confdefs.h >>conftest.$ac_ext
34749 cat >>conftest.$ac_ext <<_ACEOF
34750 /* end confdefs.h.  */
34751 $ac_includes_default
34752 #include <pwd.h>
34753
34754 int
34755 main ()
34756 {
34757 static struct passwd ac_aggr;
34758 if (sizeof ac_aggr.pw_passwd)
34759 return 0;
34760   ;
34761   return 0;
34762 }
34763 _ACEOF
34764 rm -f conftest.$ac_objext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34766   (eval $ac_compile) 2>conftest.er1
34767   ac_status=$?
34768   grep -v '^ *+' conftest.er1 >conftest.err
34769   rm -f conftest.er1
34770   cat conftest.err >&5
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); } &&
34773          { ac_try='test -z "$ac_c_werror_flag"
34774                          || test ! -s conftest.err'
34775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776   (eval $ac_try) 2>&5
34777   ac_status=$?
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); }; } &&
34780          { ac_try='test -s conftest.$ac_objext'
34781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782   (eval $ac_try) 2>&5
34783   ac_status=$?
34784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785   (exit $ac_status); }; }; then
34786   ac_cv_member_struct_passwd_pw_passwd=yes
34787 else
34788   echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34790
34791 ac_cv_member_struct_passwd_pw_passwd=no
34792 fi
34793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34794 fi
34795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34796 fi
34797 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34798 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34799 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34800
34801 cat >>confdefs.h <<_ACEOF
34802 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34803 _ACEOF
34804
34805
34806 fi
34807
34808
34809 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34810 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34811 if test "${ol_cv_c_upper_lower+set}" = set; then
34812   echo $ECHO_N "(cached) $ECHO_C" >&6
34813 else
34814
34815         if test "$cross_compiling" = yes; then
34816   ol_cv_c_upper_lower=safe
34817 else
34818   cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824
34825 #include <ctype.h>
34826 main()
34827 {
34828         if ('C' == toupper('C'))
34829                 exit(0);
34830         else
34831                 exit(1);
34832 }
34833 _ACEOF
34834 rm -f conftest$ac_exeext
34835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34836   (eval $ac_link) 2>&5
34837   ac_status=$?
34838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841   (eval $ac_try) 2>&5
34842   ac_status=$?
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); }; }; then
34845   ol_cv_c_upper_lower=no
34846 else
34847   echo "$as_me: program exited with status $ac_status" >&5
34848 echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851 ( exit $ac_status )
34852 ol_cv_c_upper_lower=yes
34853 fi
34854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34855 fi
34856 fi
34857 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34858 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34859 if test $ol_cv_c_upper_lower != no ; then
34860
34861 cat >>confdefs.h <<\_ACEOF
34862 #define C_UPPER_LOWER 1
34863 _ACEOF
34864
34865 fi
34866
34867 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34869 if test "${ac_cv_c_const+set}" = set; then
34870   echo $ECHO_N "(cached) $ECHO_C" >&6
34871 else
34872   cat >conftest.$ac_ext <<_ACEOF
34873 /* confdefs.h.  */
34874 _ACEOF
34875 cat confdefs.h >>conftest.$ac_ext
34876 cat >>conftest.$ac_ext <<_ACEOF
34877 /* end confdefs.h.  */
34878
34879 int
34880 main ()
34881 {
34882 /* FIXME: Include the comments suggested by Paul. */
34883 #ifndef __cplusplus
34884   /* Ultrix mips cc rejects this.  */
34885   typedef int charset[2];
34886   const charset x;
34887   /* SunOS 4.1.1 cc rejects this.  */
34888   char const *const *ccp;
34889   char **p;
34890   /* NEC SVR4.0.2 mips cc rejects this.  */
34891   struct point {int x, y;};
34892   static struct point const zero = {0,0};
34893   /* AIX XL C 1.02.0.0 rejects this.
34894      It does not let you subtract one const X* pointer from another in
34895      an arm of an if-expression whose if-part is not a constant
34896      expression */
34897   const char *g = "string";
34898   ccp = &g + (g ? g-g : 0);
34899   /* HPUX 7.0 cc rejects these. */
34900   ++ccp;
34901   p = (char**) ccp;
34902   ccp = (char const *const *) p;
34903   { /* SCO 3.2v4 cc rejects this.  */
34904     char *t;
34905     char const *s = 0 ? (char *) 0 : (char const *) 0;
34906
34907     *t++ = 0;
34908   }
34909   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
34910     int x[] = {25, 17};
34911     const int *foo = &x[0];
34912     ++foo;
34913   }
34914   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34915     typedef const int *iptr;
34916     iptr p = 0;
34917     ++p;
34918   }
34919   { /* AIX XL C 1.02.0.0 rejects this saying
34920        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34921     struct s { int j; const int *ap[3]; };
34922     struct s *b; b->j = 5;
34923   }
34924   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34925     const int foo = 10;
34926   }
34927 #endif
34928
34929   ;
34930   return 0;
34931 }
34932 _ACEOF
34933 rm -f conftest.$ac_objext
34934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34935   (eval $ac_compile) 2>conftest.er1
34936   ac_status=$?
34937   grep -v '^ *+' conftest.er1 >conftest.err
34938   rm -f conftest.er1
34939   cat conftest.err >&5
34940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941   (exit $ac_status); } &&
34942          { ac_try='test -z "$ac_c_werror_flag"
34943                          || test ! -s conftest.err'
34944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945   (eval $ac_try) 2>&5
34946   ac_status=$?
34947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948   (exit $ac_status); }; } &&
34949          { ac_try='test -s conftest.$ac_objext'
34950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951   (eval $ac_try) 2>&5
34952   ac_status=$?
34953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954   (exit $ac_status); }; }; then
34955   ac_cv_c_const=yes
34956 else
34957   echo "$as_me: failed program was:" >&5
34958 sed 's/^/| /' conftest.$ac_ext >&5
34959
34960 ac_cv_c_const=no
34961 fi
34962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34963 fi
34964 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34965 echo "${ECHO_T}$ac_cv_c_const" >&6
34966 if test $ac_cv_c_const = no; then
34967
34968 cat >>confdefs.h <<\_ACEOF
34969 #define const
34970 _ACEOF
34971
34972 fi
34973
34974 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
34975 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
34976 if test "${ol_cv_c_volatile+set}" = set; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979   cat >conftest.$ac_ext <<_ACEOF
34980 /* confdefs.h.  */
34981 _ACEOF
34982 cat confdefs.h >>conftest.$ac_ext
34983 cat >>conftest.$ac_ext <<_ACEOF
34984 /* end confdefs.h.  */
34985 int x, y, z;
34986 int
34987 main ()
34988 {
34989 volatile int a; int * volatile b = x ? &y : &z;
34990       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
34991       *b = 0;
34992   ;
34993   return 0;
34994 }
34995 _ACEOF
34996 rm -f conftest.$ac_objext
34997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34998   (eval $ac_compile) 2>conftest.er1
34999   ac_status=$?
35000   grep -v '^ *+' conftest.er1 >conftest.err
35001   rm -f conftest.er1
35002   cat conftest.err >&5
35003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35004   (exit $ac_status); } &&
35005          { ac_try='test -z "$ac_c_werror_flag"
35006                          || test ! -s conftest.err'
35007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35008   (eval $ac_try) 2>&5
35009   ac_status=$?
35010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35011   (exit $ac_status); }; } &&
35012          { ac_try='test -s conftest.$ac_objext'
35013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014   (eval $ac_try) 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); }; }; then
35018   ol_cv_c_volatile=yes
35019 else
35020   echo "$as_me: failed program was:" >&5
35021 sed 's/^/| /' conftest.$ac_ext >&5
35022
35023 ol_cv_c_volatile=no
35024 fi
35025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35026 fi
35027 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35028 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35029   if test $ol_cv_c_volatile = yes; then
35030     :
35031   else
35032
35033 cat >>confdefs.h <<\_ACEOF
35034 #define volatile
35035 _ACEOF
35036
35037   fi
35038
35039
35040 if test $cross_compiling = yes ; then
35041         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35042 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35043
35044 cat >>confdefs.h <<\_ACEOF
35045 #define CROSS_COMPILING 1
35046 _ACEOF
35047
35048 else
35049         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35050 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35051 if test "${ac_cv_c_bigendian+set}" = set; then
35052   echo $ECHO_N "(cached) $ECHO_C" >&6
35053 else
35054   # See if sys/param.h defines the BYTE_ORDER macro.
35055 cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h.  */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h.  */
35061 #include <sys/types.h>
35062 #include <sys/param.h>
35063
35064 int
35065 main ()
35066 {
35067 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35068  bogus endian macros
35069 #endif
35070
35071   ;
35072   return 0;
35073 }
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077   (eval $ac_compile) 2>conftest.er1
35078   ac_status=$?
35079   grep -v '^ *+' conftest.er1 >conftest.err
35080   rm -f conftest.er1
35081   cat conftest.err >&5
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); } &&
35084          { ac_try='test -z "$ac_c_werror_flag"
35085                          || test ! -s conftest.err'
35086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087   (eval $ac_try) 2>&5
35088   ac_status=$?
35089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090   (exit $ac_status); }; } &&
35091          { ac_try='test -s conftest.$ac_objext'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097   # It does; now see whether it defined to BIG_ENDIAN or not.
35098 cat >conftest.$ac_ext <<_ACEOF
35099 /* confdefs.h.  */
35100 _ACEOF
35101 cat confdefs.h >>conftest.$ac_ext
35102 cat >>conftest.$ac_ext <<_ACEOF
35103 /* end confdefs.h.  */
35104 #include <sys/types.h>
35105 #include <sys/param.h>
35106
35107 int
35108 main ()
35109 {
35110 #if BYTE_ORDER != BIG_ENDIAN
35111  not big endian
35112 #endif
35113
35114   ;
35115   return 0;
35116 }
35117 _ACEOF
35118 rm -f conftest.$ac_objext
35119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35120   (eval $ac_compile) 2>conftest.er1
35121   ac_status=$?
35122   grep -v '^ *+' conftest.er1 >conftest.err
35123   rm -f conftest.er1
35124   cat conftest.err >&5
35125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126   (exit $ac_status); } &&
35127          { ac_try='test -z "$ac_c_werror_flag"
35128                          || test ! -s conftest.err'
35129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130   (eval $ac_try) 2>&5
35131   ac_status=$?
35132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133   (exit $ac_status); }; } &&
35134          { ac_try='test -s conftest.$ac_objext'
35135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35136   (eval $ac_try) 2>&5
35137   ac_status=$?
35138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139   (exit $ac_status); }; }; then
35140   ac_cv_c_bigendian=yes
35141 else
35142   echo "$as_me: failed program was:" >&5
35143 sed 's/^/| /' conftest.$ac_ext >&5
35144
35145 ac_cv_c_bigendian=no
35146 fi
35147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35148 else
35149   echo "$as_me: failed program was:" >&5
35150 sed 's/^/| /' conftest.$ac_ext >&5
35151
35152 # It does not; compile a test program.
35153 if test "$cross_compiling" = yes; then
35154   # try to guess the endianness by grepping values into an object file
35155   ac_cv_c_bigendian=unknown
35156   cat >conftest.$ac_ext <<_ACEOF
35157 /* confdefs.h.  */
35158 _ACEOF
35159 cat confdefs.h >>conftest.$ac_ext
35160 cat >>conftest.$ac_ext <<_ACEOF
35161 /* end confdefs.h.  */
35162 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35163 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35164 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35165 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35166 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35167 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35168 int
35169 main ()
35170 {
35171  _ascii (); _ebcdic ();
35172   ;
35173   return 0;
35174 }
35175 _ACEOF
35176 rm -f conftest.$ac_objext
35177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35178   (eval $ac_compile) 2>conftest.er1
35179   ac_status=$?
35180   grep -v '^ *+' conftest.er1 >conftest.err
35181   rm -f conftest.er1
35182   cat conftest.err >&5
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); } &&
35185          { ac_try='test -z "$ac_c_werror_flag"
35186                          || test ! -s conftest.err'
35187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35188   (eval $ac_try) 2>&5
35189   ac_status=$?
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); }; } &&
35192          { ac_try='test -s conftest.$ac_objext'
35193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194   (eval $ac_try) 2>&5
35195   ac_status=$?
35196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197   (exit $ac_status); }; }; then
35198   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35199   ac_cv_c_bigendian=yes
35200 fi
35201 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35202   if test "$ac_cv_c_bigendian" = unknown; then
35203     ac_cv_c_bigendian=no
35204   else
35205     # finding both strings is unlikely to happen, but who knows?
35206     ac_cv_c_bigendian=unknown
35207   fi
35208 fi
35209 else
35210   echo "$as_me: failed program was:" >&5
35211 sed 's/^/| /' conftest.$ac_ext >&5
35212
35213 fi
35214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35215 else
35216   cat >conftest.$ac_ext <<_ACEOF
35217 /* confdefs.h.  */
35218 _ACEOF
35219 cat confdefs.h >>conftest.$ac_ext
35220 cat >>conftest.$ac_ext <<_ACEOF
35221 /* end confdefs.h.  */
35222 int
35223 main ()
35224 {
35225   /* Are we little or big endian?  From Harbison&Steele.  */
35226   union
35227   {
35228     long l;
35229     char c[sizeof (long)];
35230   } u;
35231   u.l = 1;
35232   exit (u.c[sizeof (long) - 1] == 1);
35233 }
35234 _ACEOF
35235 rm -f conftest$ac_exeext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35237   (eval $ac_link) 2>&5
35238   ac_status=$?
35239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35242   (eval $ac_try) 2>&5
35243   ac_status=$?
35244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245   (exit $ac_status); }; }; then
35246   ac_cv_c_bigendian=no
35247 else
35248   echo "$as_me: program exited with status $ac_status" >&5
35249 echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35251
35252 ( exit $ac_status )
35253 ac_cv_c_bigendian=yes
35254 fi
35255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35256 fi
35257 fi
35258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35259 fi
35260 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35261 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35262 case $ac_cv_c_bigendian in
35263   yes)
35264
35265 cat >>confdefs.h <<\_ACEOF
35266 #define WORDS_BIGENDIAN 1
35267 _ACEOF
35268  ;;
35269   no)
35270      ;;
35271   *)
35272     { { echo "$as_me:$LINENO: error: unknown endianness
35273 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35274 echo "$as_me: error: unknown endianness
35275 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35276    { (exit 1); exit 1; }; } ;;
35277 esac
35278
35279 fi
35280
35281 echo "$as_me:$LINENO: checking for short" >&5
35282 echo $ECHO_N "checking for short... $ECHO_C" >&6
35283 if test "${ac_cv_type_short+set}" = set; then
35284   echo $ECHO_N "(cached) $ECHO_C" >&6
35285 else
35286   cat >conftest.$ac_ext <<_ACEOF
35287 /* confdefs.h.  */
35288 _ACEOF
35289 cat confdefs.h >>conftest.$ac_ext
35290 cat >>conftest.$ac_ext <<_ACEOF
35291 /* end confdefs.h.  */
35292 $ac_includes_default
35293 int
35294 main ()
35295 {
35296 if ((short *) 0)
35297   return 0;
35298 if (sizeof (short))
35299   return 0;
35300   ;
35301   return 0;
35302 }
35303 _ACEOF
35304 rm -f conftest.$ac_objext
35305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35306   (eval $ac_compile) 2>conftest.er1
35307   ac_status=$?
35308   grep -v '^ *+' conftest.er1 >conftest.err
35309   rm -f conftest.er1
35310   cat conftest.err >&5
35311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312   (exit $ac_status); } &&
35313          { ac_try='test -z "$ac_c_werror_flag"
35314                          || test ! -s conftest.err'
35315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316   (eval $ac_try) 2>&5
35317   ac_status=$?
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); }; } &&
35320          { ac_try='test -s conftest.$ac_objext'
35321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322   (eval $ac_try) 2>&5
35323   ac_status=$?
35324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325   (exit $ac_status); }; }; then
35326   ac_cv_type_short=yes
35327 else
35328   echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35330
35331 ac_cv_type_short=no
35332 fi
35333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35334 fi
35335 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35336 echo "${ECHO_T}$ac_cv_type_short" >&6
35337
35338 echo "$as_me:$LINENO: checking size of short" >&5
35339 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35340 if test "${ac_cv_sizeof_short+set}" = set; then
35341   echo $ECHO_N "(cached) $ECHO_C" >&6
35342 else
35343   if test "$ac_cv_type_short" = yes; then
35344   # The cast to unsigned long works around a bug in the HP C Compiler
35345   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35346   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35347   # This bug is HP SR number 8606223364.
35348   if test "$cross_compiling" = yes; then
35349   # Depending upon the size, compute the lo and hi bounds.
35350 cat >conftest.$ac_ext <<_ACEOF
35351 /* confdefs.h.  */
35352 _ACEOF
35353 cat confdefs.h >>conftest.$ac_ext
35354 cat >>conftest.$ac_ext <<_ACEOF
35355 /* end confdefs.h.  */
35356 $ac_includes_default
35357 int
35358 main ()
35359 {
35360 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35361 test_array [0] = 0
35362
35363   ;
35364   return 0;
35365 }
35366 _ACEOF
35367 rm -f conftest.$ac_objext
35368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35369   (eval $ac_compile) 2>conftest.er1
35370   ac_status=$?
35371   grep -v '^ *+' conftest.er1 >conftest.err
35372   rm -f conftest.er1
35373   cat conftest.err >&5
35374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375   (exit $ac_status); } &&
35376          { ac_try='test -z "$ac_c_werror_flag"
35377                          || test ! -s conftest.err'
35378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35379   (eval $ac_try) 2>&5
35380   ac_status=$?
35381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382   (exit $ac_status); }; } &&
35383          { ac_try='test -s conftest.$ac_objext'
35384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35385   (eval $ac_try) 2>&5
35386   ac_status=$?
35387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35388   (exit $ac_status); }; }; then
35389   ac_lo=0 ac_mid=0
35390   while :; do
35391     cat >conftest.$ac_ext <<_ACEOF
35392 /* confdefs.h.  */
35393 _ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h.  */
35397 $ac_includes_default
35398 int
35399 main ()
35400 {
35401 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35402 test_array [0] = 0
35403
35404   ;
35405   return 0;
35406 }
35407 _ACEOF
35408 rm -f conftest.$ac_objext
35409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35410   (eval $ac_compile) 2>conftest.er1
35411   ac_status=$?
35412   grep -v '^ *+' conftest.er1 >conftest.err
35413   rm -f conftest.er1
35414   cat conftest.err >&5
35415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416   (exit $ac_status); } &&
35417          { ac_try='test -z "$ac_c_werror_flag"
35418                          || test ! -s conftest.err'
35419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35420   (eval $ac_try) 2>&5
35421   ac_status=$?
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); }; } &&
35424          { ac_try='test -s conftest.$ac_objext'
35425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35426   (eval $ac_try) 2>&5
35427   ac_status=$?
35428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); }; }; then
35430   ac_hi=$ac_mid; break
35431 else
35432   echo "$as_me: failed program was:" >&5
35433 sed 's/^/| /' conftest.$ac_ext >&5
35434
35435 ac_lo=`expr $ac_mid + 1`
35436                     if test $ac_lo -le $ac_mid; then
35437                       ac_lo= ac_hi=
35438                       break
35439                     fi
35440                     ac_mid=`expr 2 '*' $ac_mid + 1`
35441 fi
35442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35443   done
35444 else
35445   echo "$as_me: failed program was:" >&5
35446 sed 's/^/| /' conftest.$ac_ext >&5
35447
35448 cat >conftest.$ac_ext <<_ACEOF
35449 /* confdefs.h.  */
35450 _ACEOF
35451 cat confdefs.h >>conftest.$ac_ext
35452 cat >>conftest.$ac_ext <<_ACEOF
35453 /* end confdefs.h.  */
35454 $ac_includes_default
35455 int
35456 main ()
35457 {
35458 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35459 test_array [0] = 0
35460
35461   ;
35462   return 0;
35463 }
35464 _ACEOF
35465 rm -f conftest.$ac_objext
35466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35467   (eval $ac_compile) 2>conftest.er1
35468   ac_status=$?
35469   grep -v '^ *+' conftest.er1 >conftest.err
35470   rm -f conftest.er1
35471   cat conftest.err >&5
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); } &&
35474          { ac_try='test -z "$ac_c_werror_flag"
35475                          || test ! -s conftest.err'
35476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477   (eval $ac_try) 2>&5
35478   ac_status=$?
35479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480   (exit $ac_status); }; } &&
35481          { ac_try='test -s conftest.$ac_objext'
35482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35483   (eval $ac_try) 2>&5
35484   ac_status=$?
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); }; }; then
35487   ac_hi=-1 ac_mid=-1
35488   while :; do
35489     cat >conftest.$ac_ext <<_ACEOF
35490 /* confdefs.h.  */
35491 _ACEOF
35492 cat confdefs.h >>conftest.$ac_ext
35493 cat >>conftest.$ac_ext <<_ACEOF
35494 /* end confdefs.h.  */
35495 $ac_includes_default
35496 int
35497 main ()
35498 {
35499 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35500 test_array [0] = 0
35501
35502   ;
35503   return 0;
35504 }
35505 _ACEOF
35506 rm -f conftest.$ac_objext
35507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35508   (eval $ac_compile) 2>conftest.er1
35509   ac_status=$?
35510   grep -v '^ *+' conftest.er1 >conftest.err
35511   rm -f conftest.er1
35512   cat conftest.err >&5
35513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514   (exit $ac_status); } &&
35515          { ac_try='test -z "$ac_c_werror_flag"
35516                          || test ! -s conftest.err'
35517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518   (eval $ac_try) 2>&5
35519   ac_status=$?
35520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521   (exit $ac_status); }; } &&
35522          { ac_try='test -s conftest.$ac_objext'
35523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35524   (eval $ac_try) 2>&5
35525   ac_status=$?
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); }; }; then
35528   ac_lo=$ac_mid; break
35529 else
35530   echo "$as_me: failed program was:" >&5
35531 sed 's/^/| /' conftest.$ac_ext >&5
35532
35533 ac_hi=`expr '(' $ac_mid ')' - 1`
35534                        if test $ac_mid -le $ac_hi; then
35535                          ac_lo= ac_hi=
35536                          break
35537                        fi
35538                        ac_mid=`expr 2 '*' $ac_mid`
35539 fi
35540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35541   done
35542 else
35543   echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35545
35546 ac_lo= ac_hi=
35547 fi
35548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35549 fi
35550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35551 # Binary search between lo and hi bounds.
35552 while test "x$ac_lo" != "x$ac_hi"; do
35553   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35554   cat >conftest.$ac_ext <<_ACEOF
35555 /* confdefs.h.  */
35556 _ACEOF
35557 cat confdefs.h >>conftest.$ac_ext
35558 cat >>conftest.$ac_ext <<_ACEOF
35559 /* end confdefs.h.  */
35560 $ac_includes_default
35561 int
35562 main ()
35563 {
35564 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35565 test_array [0] = 0
35566
35567   ;
35568   return 0;
35569 }
35570 _ACEOF
35571 rm -f conftest.$ac_objext
35572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35573   (eval $ac_compile) 2>conftest.er1
35574   ac_status=$?
35575   grep -v '^ *+' conftest.er1 >conftest.err
35576   rm -f conftest.er1
35577   cat conftest.err >&5
35578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35579   (exit $ac_status); } &&
35580          { ac_try='test -z "$ac_c_werror_flag"
35581                          || test ! -s conftest.err'
35582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583   (eval $ac_try) 2>&5
35584   ac_status=$?
35585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586   (exit $ac_status); }; } &&
35587          { ac_try='test -s conftest.$ac_objext'
35588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35589   (eval $ac_try) 2>&5
35590   ac_status=$?
35591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592   (exit $ac_status); }; }; then
35593   ac_hi=$ac_mid
35594 else
35595   echo "$as_me: failed program was:" >&5
35596 sed 's/^/| /' conftest.$ac_ext >&5
35597
35598 ac_lo=`expr '(' $ac_mid ')' + 1`
35599 fi
35600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35601 done
35602 case $ac_lo in
35603 ?*) ac_cv_sizeof_short=$ac_lo;;
35604 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35605 See \`config.log' for more details." >&5
35606 echo "$as_me: error: cannot compute sizeof (short), 77
35607 See \`config.log' for more details." >&2;}
35608    { (exit 1); exit 1; }; } ;;
35609 esac
35610 else
35611   if test "$cross_compiling" = yes; then
35612   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35613 See \`config.log' for more details." >&5
35614 echo "$as_me: error: cannot run test program while cross compiling
35615 See \`config.log' for more details." >&2;}
35616    { (exit 1); exit 1; }; }
35617 else
35618   cat >conftest.$ac_ext <<_ACEOF
35619 /* confdefs.h.  */
35620 _ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h.  */
35624 $ac_includes_default
35625 long longval () { return (long) (sizeof (short)); }
35626 unsigned long ulongval () { return (long) (sizeof (short)); }
35627 #include <stdio.h>
35628 #include <stdlib.h>
35629 int
35630 main ()
35631 {
35632
35633   FILE *f = fopen ("conftest.val", "w");
35634   if (! f)
35635     exit (1);
35636   if (((long) (sizeof (short))) < 0)
35637     {
35638       long i = longval ();
35639       if (i != ((long) (sizeof (short))))
35640         exit (1);
35641       fprintf (f, "%ld\n", i);
35642     }
35643   else
35644     {
35645       unsigned long i = ulongval ();
35646       if (i != ((long) (sizeof (short))))
35647         exit (1);
35648       fprintf (f, "%lu\n", i);
35649     }
35650   exit (ferror (f) || fclose (f) != 0);
35651
35652   ;
35653   return 0;
35654 }
35655 _ACEOF
35656 rm -f conftest$ac_exeext
35657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35658   (eval $ac_link) 2>&5
35659   ac_status=$?
35660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35663   (eval $ac_try) 2>&5
35664   ac_status=$?
35665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666   (exit $ac_status); }; }; then
35667   ac_cv_sizeof_short=`cat conftest.val`
35668 else
35669   echo "$as_me: program exited with status $ac_status" >&5
35670 echo "$as_me: failed program was:" >&5
35671 sed 's/^/| /' conftest.$ac_ext >&5
35672
35673 ( exit $ac_status )
35674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35675 See \`config.log' for more details." >&5
35676 echo "$as_me: error: cannot compute sizeof (short), 77
35677 See \`config.log' for more details." >&2;}
35678    { (exit 1); exit 1; }; }
35679 fi
35680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35681 fi
35682 fi
35683 rm -f conftest.val
35684 else
35685   ac_cv_sizeof_short=0
35686 fi
35687 fi
35688 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35689 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35690 cat >>confdefs.h <<_ACEOF
35691 #define SIZEOF_SHORT $ac_cv_sizeof_short
35692 _ACEOF
35693
35694
35695 echo "$as_me:$LINENO: checking for int" >&5
35696 echo $ECHO_N "checking for int... $ECHO_C" >&6
35697 if test "${ac_cv_type_int+set}" = set; then
35698   echo $ECHO_N "(cached) $ECHO_C" >&6
35699 else
35700   cat >conftest.$ac_ext <<_ACEOF
35701 /* confdefs.h.  */
35702 _ACEOF
35703 cat confdefs.h >>conftest.$ac_ext
35704 cat >>conftest.$ac_ext <<_ACEOF
35705 /* end confdefs.h.  */
35706 $ac_includes_default
35707 int
35708 main ()
35709 {
35710 if ((int *) 0)
35711   return 0;
35712 if (sizeof (int))
35713   return 0;
35714   ;
35715   return 0;
35716 }
35717 _ACEOF
35718 rm -f conftest.$ac_objext
35719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35720   (eval $ac_compile) 2>conftest.er1
35721   ac_status=$?
35722   grep -v '^ *+' conftest.er1 >conftest.err
35723   rm -f conftest.er1
35724   cat conftest.err >&5
35725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35726   (exit $ac_status); } &&
35727          { ac_try='test -z "$ac_c_werror_flag"
35728                          || test ! -s conftest.err'
35729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35730   (eval $ac_try) 2>&5
35731   ac_status=$?
35732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35733   (exit $ac_status); }; } &&
35734          { ac_try='test -s conftest.$ac_objext'
35735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736   (eval $ac_try) 2>&5
35737   ac_status=$?
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); }; }; then
35740   ac_cv_type_int=yes
35741 else
35742   echo "$as_me: failed program was:" >&5
35743 sed 's/^/| /' conftest.$ac_ext >&5
35744
35745 ac_cv_type_int=no
35746 fi
35747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35748 fi
35749 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35750 echo "${ECHO_T}$ac_cv_type_int" >&6
35751
35752 echo "$as_me:$LINENO: checking size of int" >&5
35753 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35754 if test "${ac_cv_sizeof_int+set}" = set; then
35755   echo $ECHO_N "(cached) $ECHO_C" >&6
35756 else
35757   if test "$ac_cv_type_int" = yes; then
35758   # The cast to unsigned long works around a bug in the HP C Compiler
35759   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35760   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35761   # This bug is HP SR number 8606223364.
35762   if test "$cross_compiling" = yes; then
35763   # Depending upon the size, compute the lo and hi bounds.
35764 cat >conftest.$ac_ext <<_ACEOF
35765 /* confdefs.h.  */
35766 _ACEOF
35767 cat confdefs.h >>conftest.$ac_ext
35768 cat >>conftest.$ac_ext <<_ACEOF
35769 /* end confdefs.h.  */
35770 $ac_includes_default
35771 int
35772 main ()
35773 {
35774 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35775 test_array [0] = 0
35776
35777   ;
35778   return 0;
35779 }
35780 _ACEOF
35781 rm -f conftest.$ac_objext
35782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35783   (eval $ac_compile) 2>conftest.er1
35784   ac_status=$?
35785   grep -v '^ *+' conftest.er1 >conftest.err
35786   rm -f conftest.er1
35787   cat conftest.err >&5
35788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789   (exit $ac_status); } &&
35790          { ac_try='test -z "$ac_c_werror_flag"
35791                          || test ! -s conftest.err'
35792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35793   (eval $ac_try) 2>&5
35794   ac_status=$?
35795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796   (exit $ac_status); }; } &&
35797          { ac_try='test -s conftest.$ac_objext'
35798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799   (eval $ac_try) 2>&5
35800   ac_status=$?
35801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802   (exit $ac_status); }; }; then
35803   ac_lo=0 ac_mid=0
35804   while :; do
35805     cat >conftest.$ac_ext <<_ACEOF
35806 /* confdefs.h.  */
35807 _ACEOF
35808 cat confdefs.h >>conftest.$ac_ext
35809 cat >>conftest.$ac_ext <<_ACEOF
35810 /* end confdefs.h.  */
35811 $ac_includes_default
35812 int
35813 main ()
35814 {
35815 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35816 test_array [0] = 0
35817
35818   ;
35819   return 0;
35820 }
35821 _ACEOF
35822 rm -f conftest.$ac_objext
35823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35824   (eval $ac_compile) 2>conftest.er1
35825   ac_status=$?
35826   grep -v '^ *+' conftest.er1 >conftest.err
35827   rm -f conftest.er1
35828   cat conftest.err >&5
35829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35830   (exit $ac_status); } &&
35831          { ac_try='test -z "$ac_c_werror_flag"
35832                          || test ! -s conftest.err'
35833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35834   (eval $ac_try) 2>&5
35835   ac_status=$?
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); }; } &&
35838          { ac_try='test -s conftest.$ac_objext'
35839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840   (eval $ac_try) 2>&5
35841   ac_status=$?
35842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843   (exit $ac_status); }; }; then
35844   ac_hi=$ac_mid; break
35845 else
35846   echo "$as_me: failed program was:" >&5
35847 sed 's/^/| /' conftest.$ac_ext >&5
35848
35849 ac_lo=`expr $ac_mid + 1`
35850                     if test $ac_lo -le $ac_mid; then
35851                       ac_lo= ac_hi=
35852                       break
35853                     fi
35854                     ac_mid=`expr 2 '*' $ac_mid + 1`
35855 fi
35856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35857   done
35858 else
35859   echo "$as_me: failed program was:" >&5
35860 sed 's/^/| /' conftest.$ac_ext >&5
35861
35862 cat >conftest.$ac_ext <<_ACEOF
35863 /* confdefs.h.  */
35864 _ACEOF
35865 cat confdefs.h >>conftest.$ac_ext
35866 cat >>conftest.$ac_ext <<_ACEOF
35867 /* end confdefs.h.  */
35868 $ac_includes_default
35869 int
35870 main ()
35871 {
35872 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35873 test_array [0] = 0
35874
35875   ;
35876   return 0;
35877 }
35878 _ACEOF
35879 rm -f conftest.$ac_objext
35880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35881   (eval $ac_compile) 2>conftest.er1
35882   ac_status=$?
35883   grep -v '^ *+' conftest.er1 >conftest.err
35884   rm -f conftest.er1
35885   cat conftest.err >&5
35886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887   (exit $ac_status); } &&
35888          { ac_try='test -z "$ac_c_werror_flag"
35889                          || test ! -s conftest.err'
35890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35891   (eval $ac_try) 2>&5
35892   ac_status=$?
35893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894   (exit $ac_status); }; } &&
35895          { ac_try='test -s conftest.$ac_objext'
35896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35897   (eval $ac_try) 2>&5
35898   ac_status=$?
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); }; }; then
35901   ac_hi=-1 ac_mid=-1
35902   while :; do
35903     cat >conftest.$ac_ext <<_ACEOF
35904 /* confdefs.h.  */
35905 _ACEOF
35906 cat confdefs.h >>conftest.$ac_ext
35907 cat >>conftest.$ac_ext <<_ACEOF
35908 /* end confdefs.h.  */
35909 $ac_includes_default
35910 int
35911 main ()
35912 {
35913 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
35914 test_array [0] = 0
35915
35916   ;
35917   return 0;
35918 }
35919 _ACEOF
35920 rm -f conftest.$ac_objext
35921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35922   (eval $ac_compile) 2>conftest.er1
35923   ac_status=$?
35924   grep -v '^ *+' conftest.er1 >conftest.err
35925   rm -f conftest.er1
35926   cat conftest.err >&5
35927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928   (exit $ac_status); } &&
35929          { ac_try='test -z "$ac_c_werror_flag"
35930                          || test ! -s conftest.err'
35931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35932   (eval $ac_try) 2>&5
35933   ac_status=$?
35934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35935   (exit $ac_status); }; } &&
35936          { ac_try='test -s conftest.$ac_objext'
35937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35938   (eval $ac_try) 2>&5
35939   ac_status=$?
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); }; }; then
35942   ac_lo=$ac_mid; break
35943 else
35944   echo "$as_me: failed program was:" >&5
35945 sed 's/^/| /' conftest.$ac_ext >&5
35946
35947 ac_hi=`expr '(' $ac_mid ')' - 1`
35948                        if test $ac_mid -le $ac_hi; then
35949                          ac_lo= ac_hi=
35950                          break
35951                        fi
35952                        ac_mid=`expr 2 '*' $ac_mid`
35953 fi
35954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35955   done
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ac_lo= ac_hi=
35961 fi
35962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35963 fi
35964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35965 # Binary search between lo and hi bounds.
35966 while test "x$ac_lo" != "x$ac_hi"; do
35967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35968   cat >conftest.$ac_ext <<_ACEOF
35969 /* confdefs.h.  */
35970 _ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h.  */
35974 $ac_includes_default
35975 int
35976 main ()
35977 {
35978 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35979 test_array [0] = 0
35980
35981   ;
35982   return 0;
35983 }
35984 _ACEOF
35985 rm -f conftest.$ac_objext
35986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35987   (eval $ac_compile) 2>conftest.er1
35988   ac_status=$?
35989   grep -v '^ *+' conftest.er1 >conftest.err
35990   rm -f conftest.er1
35991   cat conftest.err >&5
35992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35993   (exit $ac_status); } &&
35994          { ac_try='test -z "$ac_c_werror_flag"
35995                          || test ! -s conftest.err'
35996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35997   (eval $ac_try) 2>&5
35998   ac_status=$?
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); }; } &&
36001          { ac_try='test -s conftest.$ac_objext'
36002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36003   (eval $ac_try) 2>&5
36004   ac_status=$?
36005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006   (exit $ac_status); }; }; then
36007   ac_hi=$ac_mid
36008 else
36009   echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36011
36012 ac_lo=`expr '(' $ac_mid ')' + 1`
36013 fi
36014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36015 done
36016 case $ac_lo in
36017 ?*) ac_cv_sizeof_int=$ac_lo;;
36018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36019 See \`config.log' for more details." >&5
36020 echo "$as_me: error: cannot compute sizeof (int), 77
36021 See \`config.log' for more details." >&2;}
36022    { (exit 1); exit 1; }; } ;;
36023 esac
36024 else
36025   if test "$cross_compiling" = yes; then
36026   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36027 See \`config.log' for more details." >&5
36028 echo "$as_me: error: cannot run test program while cross compiling
36029 See \`config.log' for more details." >&2;}
36030    { (exit 1); exit 1; }; }
36031 else
36032   cat >conftest.$ac_ext <<_ACEOF
36033 /* confdefs.h.  */
36034 _ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h.  */
36038 $ac_includes_default
36039 long longval () { return (long) (sizeof (int)); }
36040 unsigned long ulongval () { return (long) (sizeof (int)); }
36041 #include <stdio.h>
36042 #include <stdlib.h>
36043 int
36044 main ()
36045 {
36046
36047   FILE *f = fopen ("conftest.val", "w");
36048   if (! f)
36049     exit (1);
36050   if (((long) (sizeof (int))) < 0)
36051     {
36052       long i = longval ();
36053       if (i != ((long) (sizeof (int))))
36054         exit (1);
36055       fprintf (f, "%ld\n", i);
36056     }
36057   else
36058     {
36059       unsigned long i = ulongval ();
36060       if (i != ((long) (sizeof (int))))
36061         exit (1);
36062       fprintf (f, "%lu\n", i);
36063     }
36064   exit (ferror (f) || fclose (f) != 0);
36065
36066   ;
36067   return 0;
36068 }
36069 _ACEOF
36070 rm -f conftest$ac_exeext
36071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36072   (eval $ac_link) 2>&5
36073   ac_status=$?
36074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36077   (eval $ac_try) 2>&5
36078   ac_status=$?
36079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); }; }; then
36081   ac_cv_sizeof_int=`cat conftest.val`
36082 else
36083   echo "$as_me: program exited with status $ac_status" >&5
36084 echo "$as_me: failed program was:" >&5
36085 sed 's/^/| /' conftest.$ac_ext >&5
36086
36087 ( exit $ac_status )
36088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36089 See \`config.log' for more details." >&5
36090 echo "$as_me: error: cannot compute sizeof (int), 77
36091 See \`config.log' for more details." >&2;}
36092    { (exit 1); exit 1; }; }
36093 fi
36094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36095 fi
36096 fi
36097 rm -f conftest.val
36098 else
36099   ac_cv_sizeof_int=0
36100 fi
36101 fi
36102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36103 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36104 cat >>confdefs.h <<_ACEOF
36105 #define SIZEOF_INT $ac_cv_sizeof_int
36106 _ACEOF
36107
36108
36109 echo "$as_me:$LINENO: checking for long" >&5
36110 echo $ECHO_N "checking for long... $ECHO_C" >&6
36111 if test "${ac_cv_type_long+set}" = set; then
36112   echo $ECHO_N "(cached) $ECHO_C" >&6
36113 else
36114   cat >conftest.$ac_ext <<_ACEOF
36115 /* confdefs.h.  */
36116 _ACEOF
36117 cat confdefs.h >>conftest.$ac_ext
36118 cat >>conftest.$ac_ext <<_ACEOF
36119 /* end confdefs.h.  */
36120 $ac_includes_default
36121 int
36122 main ()
36123 {
36124 if ((long *) 0)
36125   return 0;
36126 if (sizeof (long))
36127   return 0;
36128   ;
36129   return 0;
36130 }
36131 _ACEOF
36132 rm -f conftest.$ac_objext
36133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36134   (eval $ac_compile) 2>conftest.er1
36135   ac_status=$?
36136   grep -v '^ *+' conftest.er1 >conftest.err
36137   rm -f conftest.er1
36138   cat conftest.err >&5
36139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140   (exit $ac_status); } &&
36141          { ac_try='test -z "$ac_c_werror_flag"
36142                          || test ! -s conftest.err'
36143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36144   (eval $ac_try) 2>&5
36145   ac_status=$?
36146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147   (exit $ac_status); }; } &&
36148          { ac_try='test -s conftest.$ac_objext'
36149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36150   (eval $ac_try) 2>&5
36151   ac_status=$?
36152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153   (exit $ac_status); }; }; then
36154   ac_cv_type_long=yes
36155 else
36156   echo "$as_me: failed program was:" >&5
36157 sed 's/^/| /' conftest.$ac_ext >&5
36158
36159 ac_cv_type_long=no
36160 fi
36161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36162 fi
36163 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36164 echo "${ECHO_T}$ac_cv_type_long" >&6
36165
36166 echo "$as_me:$LINENO: checking size of long" >&5
36167 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36168 if test "${ac_cv_sizeof_long+set}" = set; then
36169   echo $ECHO_N "(cached) $ECHO_C" >&6
36170 else
36171   if test "$ac_cv_type_long" = yes; then
36172   # The cast to unsigned long works around a bug in the HP C Compiler
36173   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36174   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36175   # This bug is HP SR number 8606223364.
36176   if test "$cross_compiling" = yes; then
36177   # Depending upon the size, compute the lo and hi bounds.
36178 cat >conftest.$ac_ext <<_ACEOF
36179 /* confdefs.h.  */
36180 _ACEOF
36181 cat confdefs.h >>conftest.$ac_ext
36182 cat >>conftest.$ac_ext <<_ACEOF
36183 /* end confdefs.h.  */
36184 $ac_includes_default
36185 int
36186 main ()
36187 {
36188 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36189 test_array [0] = 0
36190
36191   ;
36192   return 0;
36193 }
36194 _ACEOF
36195 rm -f conftest.$ac_objext
36196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36197   (eval $ac_compile) 2>conftest.er1
36198   ac_status=$?
36199   grep -v '^ *+' conftest.er1 >conftest.err
36200   rm -f conftest.er1
36201   cat conftest.err >&5
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); } &&
36204          { ac_try='test -z "$ac_c_werror_flag"
36205                          || test ! -s conftest.err'
36206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36207   (eval $ac_try) 2>&5
36208   ac_status=$?
36209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210   (exit $ac_status); }; } &&
36211          { ac_try='test -s conftest.$ac_objext'
36212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213   (eval $ac_try) 2>&5
36214   ac_status=$?
36215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216   (exit $ac_status); }; }; then
36217   ac_lo=0 ac_mid=0
36218   while :; do
36219     cat >conftest.$ac_ext <<_ACEOF
36220 /* confdefs.h.  */
36221 _ACEOF
36222 cat confdefs.h >>conftest.$ac_ext
36223 cat >>conftest.$ac_ext <<_ACEOF
36224 /* end confdefs.h.  */
36225 $ac_includes_default
36226 int
36227 main ()
36228 {
36229 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36230 test_array [0] = 0
36231
36232   ;
36233   return 0;
36234 }
36235 _ACEOF
36236 rm -f conftest.$ac_objext
36237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36238   (eval $ac_compile) 2>conftest.er1
36239   ac_status=$?
36240   grep -v '^ *+' conftest.er1 >conftest.err
36241   rm -f conftest.er1
36242   cat conftest.err >&5
36243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244   (exit $ac_status); } &&
36245          { ac_try='test -z "$ac_c_werror_flag"
36246                          || test ! -s conftest.err'
36247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248   (eval $ac_try) 2>&5
36249   ac_status=$?
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); }; } &&
36252          { ac_try='test -s conftest.$ac_objext'
36253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36254   (eval $ac_try) 2>&5
36255   ac_status=$?
36256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257   (exit $ac_status); }; }; then
36258   ac_hi=$ac_mid; break
36259 else
36260   echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263 ac_lo=`expr $ac_mid + 1`
36264                     if test $ac_lo -le $ac_mid; then
36265                       ac_lo= ac_hi=
36266                       break
36267                     fi
36268                     ac_mid=`expr 2 '*' $ac_mid + 1`
36269 fi
36270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36271   done
36272 else
36273   echo "$as_me: failed program was:" >&5
36274 sed 's/^/| /' conftest.$ac_ext >&5
36275
36276 cat >conftest.$ac_ext <<_ACEOF
36277 /* confdefs.h.  */
36278 _ACEOF
36279 cat confdefs.h >>conftest.$ac_ext
36280 cat >>conftest.$ac_ext <<_ACEOF
36281 /* end confdefs.h.  */
36282 $ac_includes_default
36283 int
36284 main ()
36285 {
36286 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36287 test_array [0] = 0
36288
36289   ;
36290   return 0;
36291 }
36292 _ACEOF
36293 rm -f conftest.$ac_objext
36294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36295   (eval $ac_compile) 2>conftest.er1
36296   ac_status=$?
36297   grep -v '^ *+' conftest.er1 >conftest.err
36298   rm -f conftest.er1
36299   cat conftest.err >&5
36300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301   (exit $ac_status); } &&
36302          { ac_try='test -z "$ac_c_werror_flag"
36303                          || test ! -s conftest.err'
36304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305   (eval $ac_try) 2>&5
36306   ac_status=$?
36307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308   (exit $ac_status); }; } &&
36309          { ac_try='test -s conftest.$ac_objext'
36310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311   (eval $ac_try) 2>&5
36312   ac_status=$?
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); }; }; then
36315   ac_hi=-1 ac_mid=-1
36316   while :; do
36317     cat >conftest.$ac_ext <<_ACEOF
36318 /* confdefs.h.  */
36319 _ACEOF
36320 cat confdefs.h >>conftest.$ac_ext
36321 cat >>conftest.$ac_ext <<_ACEOF
36322 /* end confdefs.h.  */
36323 $ac_includes_default
36324 int
36325 main ()
36326 {
36327 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36328 test_array [0] = 0
36329
36330   ;
36331   return 0;
36332 }
36333 _ACEOF
36334 rm -f conftest.$ac_objext
36335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36336   (eval $ac_compile) 2>conftest.er1
36337   ac_status=$?
36338   grep -v '^ *+' conftest.er1 >conftest.err
36339   rm -f conftest.er1
36340   cat conftest.err >&5
36341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342   (exit $ac_status); } &&
36343          { ac_try='test -z "$ac_c_werror_flag"
36344                          || test ! -s conftest.err'
36345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36346   (eval $ac_try) 2>&5
36347   ac_status=$?
36348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36349   (exit $ac_status); }; } &&
36350          { ac_try='test -s conftest.$ac_objext'
36351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36352   (eval $ac_try) 2>&5
36353   ac_status=$?
36354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355   (exit $ac_status); }; }; then
36356   ac_lo=$ac_mid; break
36357 else
36358   echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.$ac_ext >&5
36360
36361 ac_hi=`expr '(' $ac_mid ')' - 1`
36362                        if test $ac_mid -le $ac_hi; then
36363                          ac_lo= ac_hi=
36364                          break
36365                        fi
36366                        ac_mid=`expr 2 '*' $ac_mid`
36367 fi
36368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36369   done
36370 else
36371   echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374 ac_lo= ac_hi=
36375 fi
36376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36377 fi
36378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36379 # Binary search between lo and hi bounds.
36380 while test "x$ac_lo" != "x$ac_hi"; do
36381   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36382   cat >conftest.$ac_ext <<_ACEOF
36383 /* confdefs.h.  */
36384 _ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h.  */
36388 $ac_includes_default
36389 int
36390 main ()
36391 {
36392 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36393 test_array [0] = 0
36394
36395   ;
36396   return 0;
36397 }
36398 _ACEOF
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401   (eval $ac_compile) 2>conftest.er1
36402   ac_status=$?
36403   grep -v '^ *+' conftest.er1 >conftest.err
36404   rm -f conftest.er1
36405   cat conftest.err >&5
36406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407   (exit $ac_status); } &&
36408          { ac_try='test -z "$ac_c_werror_flag"
36409                          || test ! -s conftest.err'
36410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411   (eval $ac_try) 2>&5
36412   ac_status=$?
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); }; } &&
36415          { ac_try='test -s conftest.$ac_objext'
36416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417   (eval $ac_try) 2>&5
36418   ac_status=$?
36419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420   (exit $ac_status); }; }; then
36421   ac_hi=$ac_mid
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426 ac_lo=`expr '(' $ac_mid ')' + 1`
36427 fi
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 done
36430 case $ac_lo in
36431 ?*) ac_cv_sizeof_long=$ac_lo;;
36432 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36433 See \`config.log' for more details." >&5
36434 echo "$as_me: error: cannot compute sizeof (long), 77
36435 See \`config.log' for more details." >&2;}
36436    { (exit 1); exit 1; }; } ;;
36437 esac
36438 else
36439   if test "$cross_compiling" = yes; then
36440   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36441 See \`config.log' for more details." >&5
36442 echo "$as_me: error: cannot run test program while cross compiling
36443 See \`config.log' for more details." >&2;}
36444    { (exit 1); exit 1; }; }
36445 else
36446   cat >conftest.$ac_ext <<_ACEOF
36447 /* confdefs.h.  */
36448 _ACEOF
36449 cat confdefs.h >>conftest.$ac_ext
36450 cat >>conftest.$ac_ext <<_ACEOF
36451 /* end confdefs.h.  */
36452 $ac_includes_default
36453 long longval () { return (long) (sizeof (long)); }
36454 unsigned long ulongval () { return (long) (sizeof (long)); }
36455 #include <stdio.h>
36456 #include <stdlib.h>
36457 int
36458 main ()
36459 {
36460
36461   FILE *f = fopen ("conftest.val", "w");
36462   if (! f)
36463     exit (1);
36464   if (((long) (sizeof (long))) < 0)
36465     {
36466       long i = longval ();
36467       if (i != ((long) (sizeof (long))))
36468         exit (1);
36469       fprintf (f, "%ld\n", i);
36470     }
36471   else
36472     {
36473       unsigned long i = ulongval ();
36474       if (i != ((long) (sizeof (long))))
36475         exit (1);
36476       fprintf (f, "%lu\n", i);
36477     }
36478   exit (ferror (f) || fclose (f) != 0);
36479
36480   ;
36481   return 0;
36482 }
36483 _ACEOF
36484 rm -f conftest$ac_exeext
36485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36486   (eval $ac_link) 2>&5
36487   ac_status=$?
36488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491   (eval $ac_try) 2>&5
36492   ac_status=$?
36493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494   (exit $ac_status); }; }; then
36495   ac_cv_sizeof_long=`cat conftest.val`
36496 else
36497   echo "$as_me: program exited with status $ac_status" >&5
36498 echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36500
36501 ( exit $ac_status )
36502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36503 See \`config.log' for more details." >&5
36504 echo "$as_me: error: cannot compute sizeof (long), 77
36505 See \`config.log' for more details." >&2;}
36506    { (exit 1); exit 1; }; }
36507 fi
36508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36509 fi
36510 fi
36511 rm -f conftest.val
36512 else
36513   ac_cv_sizeof_long=0
36514 fi
36515 fi
36516 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36517 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36518 cat >>confdefs.h <<_ACEOF
36519 #define SIZEOF_LONG $ac_cv_sizeof_long
36520 _ACEOF
36521
36522
36523 echo "$as_me:$LINENO: checking for long long" >&5
36524 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36525 if test "${ac_cv_type_long_long+set}" = set; then
36526   echo $ECHO_N "(cached) $ECHO_C" >&6
36527 else
36528   cat >conftest.$ac_ext <<_ACEOF
36529 /* confdefs.h.  */
36530 _ACEOF
36531 cat confdefs.h >>conftest.$ac_ext
36532 cat >>conftest.$ac_ext <<_ACEOF
36533 /* end confdefs.h.  */
36534 $ac_includes_default
36535 int
36536 main ()
36537 {
36538 if ((long long *) 0)
36539   return 0;
36540 if (sizeof (long long))
36541   return 0;
36542   ;
36543   return 0;
36544 }
36545 _ACEOF
36546 rm -f conftest.$ac_objext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36548   (eval $ac_compile) 2>conftest.er1
36549   ac_status=$?
36550   grep -v '^ *+' conftest.er1 >conftest.err
36551   rm -f conftest.er1
36552   cat conftest.err >&5
36553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554   (exit $ac_status); } &&
36555          { ac_try='test -z "$ac_c_werror_flag"
36556                          || test ! -s conftest.err'
36557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558   (eval $ac_try) 2>&5
36559   ac_status=$?
36560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561   (exit $ac_status); }; } &&
36562          { ac_try='test -s conftest.$ac_objext'
36563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564   (eval $ac_try) 2>&5
36565   ac_status=$?
36566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567   (exit $ac_status); }; }; then
36568   ac_cv_type_long_long=yes
36569 else
36570   echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573 ac_cv_type_long_long=no
36574 fi
36575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36576 fi
36577 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36578 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36579
36580 echo "$as_me:$LINENO: checking size of long long" >&5
36581 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36582 if test "${ac_cv_sizeof_long_long+set}" = set; then
36583   echo $ECHO_N "(cached) $ECHO_C" >&6
36584 else
36585   if test "$ac_cv_type_long_long" = yes; then
36586   # The cast to unsigned long works around a bug in the HP C Compiler
36587   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36588   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36589   # This bug is HP SR number 8606223364.
36590   if test "$cross_compiling" = yes; then
36591   # Depending upon the size, compute the lo and hi bounds.
36592 cat >conftest.$ac_ext <<_ACEOF
36593 /* confdefs.h.  */
36594 _ACEOF
36595 cat confdefs.h >>conftest.$ac_ext
36596 cat >>conftest.$ac_ext <<_ACEOF
36597 /* end confdefs.h.  */
36598 $ac_includes_default
36599 int
36600 main ()
36601 {
36602 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36603 test_array [0] = 0
36604
36605   ;
36606   return 0;
36607 }
36608 _ACEOF
36609 rm -f conftest.$ac_objext
36610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36611   (eval $ac_compile) 2>conftest.er1
36612   ac_status=$?
36613   grep -v '^ *+' conftest.er1 >conftest.err
36614   rm -f conftest.er1
36615   cat conftest.err >&5
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); } &&
36618          { ac_try='test -z "$ac_c_werror_flag"
36619                          || test ! -s conftest.err'
36620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36621   (eval $ac_try) 2>&5
36622   ac_status=$?
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); }; } &&
36625          { ac_try='test -s conftest.$ac_objext'
36626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627   (eval $ac_try) 2>&5
36628   ac_status=$?
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); }; }; then
36631   ac_lo=0 ac_mid=0
36632   while :; do
36633     cat >conftest.$ac_ext <<_ACEOF
36634 /* confdefs.h.  */
36635 _ACEOF
36636 cat confdefs.h >>conftest.$ac_ext
36637 cat >>conftest.$ac_ext <<_ACEOF
36638 /* end confdefs.h.  */
36639 $ac_includes_default
36640 int
36641 main ()
36642 {
36643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36644 test_array [0] = 0
36645
36646   ;
36647   return 0;
36648 }
36649 _ACEOF
36650 rm -f conftest.$ac_objext
36651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36652   (eval $ac_compile) 2>conftest.er1
36653   ac_status=$?
36654   grep -v '^ *+' conftest.er1 >conftest.err
36655   rm -f conftest.er1
36656   cat conftest.err >&5
36657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658   (exit $ac_status); } &&
36659          { ac_try='test -z "$ac_c_werror_flag"
36660                          || test ! -s conftest.err'
36661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36662   (eval $ac_try) 2>&5
36663   ac_status=$?
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); }; } &&
36666          { ac_try='test -s conftest.$ac_objext'
36667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36668   (eval $ac_try) 2>&5
36669   ac_status=$?
36670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671   (exit $ac_status); }; }; then
36672   ac_hi=$ac_mid; break
36673 else
36674   echo "$as_me: failed program was:" >&5
36675 sed 's/^/| /' conftest.$ac_ext >&5
36676
36677 ac_lo=`expr $ac_mid + 1`
36678                     if test $ac_lo -le $ac_mid; then
36679                       ac_lo= ac_hi=
36680                       break
36681                     fi
36682                     ac_mid=`expr 2 '*' $ac_mid + 1`
36683 fi
36684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36685   done
36686 else
36687   echo "$as_me: failed program was:" >&5
36688 sed 's/^/| /' conftest.$ac_ext >&5
36689
36690 cat >conftest.$ac_ext <<_ACEOF
36691 /* confdefs.h.  */
36692 _ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h.  */
36696 $ac_includes_default
36697 int
36698 main ()
36699 {
36700 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36701 test_array [0] = 0
36702
36703   ;
36704   return 0;
36705 }
36706 _ACEOF
36707 rm -f conftest.$ac_objext
36708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36709   (eval $ac_compile) 2>conftest.er1
36710   ac_status=$?
36711   grep -v '^ *+' conftest.er1 >conftest.err
36712   rm -f conftest.er1
36713   cat conftest.err >&5
36714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715   (exit $ac_status); } &&
36716          { ac_try='test -z "$ac_c_werror_flag"
36717                          || test ! -s conftest.err'
36718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719   (eval $ac_try) 2>&5
36720   ac_status=$?
36721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722   (exit $ac_status); }; } &&
36723          { ac_try='test -s conftest.$ac_objext'
36724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36725   (eval $ac_try) 2>&5
36726   ac_status=$?
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); }; }; then
36729   ac_hi=-1 ac_mid=-1
36730   while :; do
36731     cat >conftest.$ac_ext <<_ACEOF
36732 /* confdefs.h.  */
36733 _ACEOF
36734 cat confdefs.h >>conftest.$ac_ext
36735 cat >>conftest.$ac_ext <<_ACEOF
36736 /* end confdefs.h.  */
36737 $ac_includes_default
36738 int
36739 main ()
36740 {
36741 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36742 test_array [0] = 0
36743
36744   ;
36745   return 0;
36746 }
36747 _ACEOF
36748 rm -f conftest.$ac_objext
36749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36750   (eval $ac_compile) 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } &&
36757          { ac_try='test -z "$ac_c_werror_flag"
36758                          || test ! -s conftest.err'
36759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760   (eval $ac_try) 2>&5
36761   ac_status=$?
36762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763   (exit $ac_status); }; } &&
36764          { ac_try='test -s conftest.$ac_objext'
36765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766   (eval $ac_try) 2>&5
36767   ac_status=$?
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); }; }; then
36770   ac_lo=$ac_mid; break
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775 ac_hi=`expr '(' $ac_mid ')' - 1`
36776                        if test $ac_mid -le $ac_hi; then
36777                          ac_lo= ac_hi=
36778                          break
36779                        fi
36780                        ac_mid=`expr 2 '*' $ac_mid`
36781 fi
36782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36783   done
36784 else
36785   echo "$as_me: failed program was:" >&5
36786 sed 's/^/| /' conftest.$ac_ext >&5
36787
36788 ac_lo= ac_hi=
36789 fi
36790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36791 fi
36792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36793 # Binary search between lo and hi bounds.
36794 while test "x$ac_lo" != "x$ac_hi"; do
36795   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36796   cat >conftest.$ac_ext <<_ACEOF
36797 /* confdefs.h.  */
36798 _ACEOF
36799 cat confdefs.h >>conftest.$ac_ext
36800 cat >>conftest.$ac_ext <<_ACEOF
36801 /* end confdefs.h.  */
36802 $ac_includes_default
36803 int
36804 main ()
36805 {
36806 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36807 test_array [0] = 0
36808
36809   ;
36810   return 0;
36811 }
36812 _ACEOF
36813 rm -f conftest.$ac_objext
36814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36815   (eval $ac_compile) 2>conftest.er1
36816   ac_status=$?
36817   grep -v '^ *+' conftest.er1 >conftest.err
36818   rm -f conftest.er1
36819   cat conftest.err >&5
36820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821   (exit $ac_status); } &&
36822          { ac_try='test -z "$ac_c_werror_flag"
36823                          || test ! -s conftest.err'
36824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36825   (eval $ac_try) 2>&5
36826   ac_status=$?
36827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828   (exit $ac_status); }; } &&
36829          { ac_try='test -s conftest.$ac_objext'
36830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36831   (eval $ac_try) 2>&5
36832   ac_status=$?
36833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36834   (exit $ac_status); }; }; then
36835   ac_hi=$ac_mid
36836 else
36837   echo "$as_me: failed program was:" >&5
36838 sed 's/^/| /' conftest.$ac_ext >&5
36839
36840 ac_lo=`expr '(' $ac_mid ')' + 1`
36841 fi
36842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36843 done
36844 case $ac_lo in
36845 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36846 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36847 See \`config.log' for more details." >&5
36848 echo "$as_me: error: cannot compute sizeof (long long), 77
36849 See \`config.log' for more details." >&2;}
36850    { (exit 1); exit 1; }; } ;;
36851 esac
36852 else
36853   if test "$cross_compiling" = yes; then
36854   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36855 See \`config.log' for more details." >&5
36856 echo "$as_me: error: cannot run test program while cross compiling
36857 See \`config.log' for more details." >&2;}
36858    { (exit 1); exit 1; }; }
36859 else
36860   cat >conftest.$ac_ext <<_ACEOF
36861 /* confdefs.h.  */
36862 _ACEOF
36863 cat confdefs.h >>conftest.$ac_ext
36864 cat >>conftest.$ac_ext <<_ACEOF
36865 /* end confdefs.h.  */
36866 $ac_includes_default
36867 long longval () { return (long) (sizeof (long long)); }
36868 unsigned long ulongval () { return (long) (sizeof (long long)); }
36869 #include <stdio.h>
36870 #include <stdlib.h>
36871 int
36872 main ()
36873 {
36874
36875   FILE *f = fopen ("conftest.val", "w");
36876   if (! f)
36877     exit (1);
36878   if (((long) (sizeof (long long))) < 0)
36879     {
36880       long i = longval ();
36881       if (i != ((long) (sizeof (long long))))
36882         exit (1);
36883       fprintf (f, "%ld\n", i);
36884     }
36885   else
36886     {
36887       unsigned long i = ulongval ();
36888       if (i != ((long) (sizeof (long long))))
36889         exit (1);
36890       fprintf (f, "%lu\n", i);
36891     }
36892   exit (ferror (f) || fclose (f) != 0);
36893
36894   ;
36895   return 0;
36896 }
36897 _ACEOF
36898 rm -f conftest$ac_exeext
36899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36900   (eval $ac_link) 2>&5
36901   ac_status=$?
36902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905   (eval $ac_try) 2>&5
36906   ac_status=$?
36907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908   (exit $ac_status); }; }; then
36909   ac_cv_sizeof_long_long=`cat conftest.val`
36910 else
36911   echo "$as_me: program exited with status $ac_status" >&5
36912 echo "$as_me: failed program was:" >&5
36913 sed 's/^/| /' conftest.$ac_ext >&5
36914
36915 ( exit $ac_status )
36916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36917 See \`config.log' for more details." >&5
36918 echo "$as_me: error: cannot compute sizeof (long long), 77
36919 See \`config.log' for more details." >&2;}
36920    { (exit 1); exit 1; }; }
36921 fi
36922 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36923 fi
36924 fi
36925 rm -f conftest.val
36926 else
36927   ac_cv_sizeof_long_long=0
36928 fi
36929 fi
36930 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36931 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36932 cat >>confdefs.h <<_ACEOF
36933 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36934 _ACEOF
36935
36936
36937 echo "$as_me:$LINENO: checking for wchar_t" >&5
36938 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
36939 if test "${ac_cv_type_wchar_t+set}" = set; then
36940   echo $ECHO_N "(cached) $ECHO_C" >&6
36941 else
36942   cat >conftest.$ac_ext <<_ACEOF
36943 /* confdefs.h.  */
36944 _ACEOF
36945 cat confdefs.h >>conftest.$ac_ext
36946 cat >>conftest.$ac_ext <<_ACEOF
36947 /* end confdefs.h.  */
36948 $ac_includes_default
36949 int
36950 main ()
36951 {
36952 if ((wchar_t *) 0)
36953   return 0;
36954 if (sizeof (wchar_t))
36955   return 0;
36956   ;
36957   return 0;
36958 }
36959 _ACEOF
36960 rm -f conftest.$ac_objext
36961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36962   (eval $ac_compile) 2>conftest.er1
36963   ac_status=$?
36964   grep -v '^ *+' conftest.er1 >conftest.err
36965   rm -f conftest.er1
36966   cat conftest.err >&5
36967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968   (exit $ac_status); } &&
36969          { ac_try='test -z "$ac_c_werror_flag"
36970                          || test ! -s conftest.err'
36971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972   (eval $ac_try) 2>&5
36973   ac_status=$?
36974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975   (exit $ac_status); }; } &&
36976          { ac_try='test -s conftest.$ac_objext'
36977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978   (eval $ac_try) 2>&5
36979   ac_status=$?
36980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981   (exit $ac_status); }; }; then
36982   ac_cv_type_wchar_t=yes
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987 ac_cv_type_wchar_t=no
36988 fi
36989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36990 fi
36991 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
36992 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
36993
36994 echo "$as_me:$LINENO: checking size of wchar_t" >&5
36995 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
36996 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
36997   echo $ECHO_N "(cached) $ECHO_C" >&6
36998 else
36999   if test "$ac_cv_type_wchar_t" = yes; then
37000   # The cast to unsigned long works around a bug in the HP C Compiler
37001   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37002   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37003   # This bug is HP SR number 8606223364.
37004   if test "$cross_compiling" = yes; then
37005   # Depending upon the size, compute the lo and hi bounds.
37006 cat >conftest.$ac_ext <<_ACEOF
37007 /* confdefs.h.  */
37008 _ACEOF
37009 cat confdefs.h >>conftest.$ac_ext
37010 cat >>conftest.$ac_ext <<_ACEOF
37011 /* end confdefs.h.  */
37012 $ac_includes_default
37013 int
37014 main ()
37015 {
37016 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37017 test_array [0] = 0
37018
37019   ;
37020   return 0;
37021 }
37022 _ACEOF
37023 rm -f conftest.$ac_objext
37024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37025   (eval $ac_compile) 2>conftest.er1
37026   ac_status=$?
37027   grep -v '^ *+' conftest.er1 >conftest.err
37028   rm -f conftest.er1
37029   cat conftest.err >&5
37030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031   (exit $ac_status); } &&
37032          { ac_try='test -z "$ac_c_werror_flag"
37033                          || test ! -s conftest.err'
37034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035   (eval $ac_try) 2>&5
37036   ac_status=$?
37037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038   (exit $ac_status); }; } &&
37039          { ac_try='test -s conftest.$ac_objext'
37040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37041   (eval $ac_try) 2>&5
37042   ac_status=$?
37043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37044   (exit $ac_status); }; }; then
37045   ac_lo=0 ac_mid=0
37046   while :; do
37047     cat >conftest.$ac_ext <<_ACEOF
37048 /* confdefs.h.  */
37049 _ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h.  */
37053 $ac_includes_default
37054 int
37055 main ()
37056 {
37057 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37058 test_array [0] = 0
37059
37060   ;
37061   return 0;
37062 }
37063 _ACEOF
37064 rm -f conftest.$ac_objext
37065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37066   (eval $ac_compile) 2>conftest.er1
37067   ac_status=$?
37068   grep -v '^ *+' conftest.er1 >conftest.err
37069   rm -f conftest.er1
37070   cat conftest.err >&5
37071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072   (exit $ac_status); } &&
37073          { ac_try='test -z "$ac_c_werror_flag"
37074                          || test ! -s conftest.err'
37075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37076   (eval $ac_try) 2>&5
37077   ac_status=$?
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); }; } &&
37080          { ac_try='test -s conftest.$ac_objext'
37081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082   (eval $ac_try) 2>&5
37083   ac_status=$?
37084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085   (exit $ac_status); }; }; then
37086   ac_hi=$ac_mid; break
37087 else
37088   echo "$as_me: failed program was:" >&5
37089 sed 's/^/| /' conftest.$ac_ext >&5
37090
37091 ac_lo=`expr $ac_mid + 1`
37092                     if test $ac_lo -le $ac_mid; then
37093                       ac_lo= ac_hi=
37094                       break
37095                     fi
37096                     ac_mid=`expr 2 '*' $ac_mid + 1`
37097 fi
37098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37099   done
37100 else
37101   echo "$as_me: failed program was:" >&5
37102 sed 's/^/| /' conftest.$ac_ext >&5
37103
37104 cat >conftest.$ac_ext <<_ACEOF
37105 /* confdefs.h.  */
37106 _ACEOF
37107 cat confdefs.h >>conftest.$ac_ext
37108 cat >>conftest.$ac_ext <<_ACEOF
37109 /* end confdefs.h.  */
37110 $ac_includes_default
37111 int
37112 main ()
37113 {
37114 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37115 test_array [0] = 0
37116
37117   ;
37118   return 0;
37119 }
37120 _ACEOF
37121 rm -f conftest.$ac_objext
37122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37123   (eval $ac_compile) 2>conftest.er1
37124   ac_status=$?
37125   grep -v '^ *+' conftest.er1 >conftest.err
37126   rm -f conftest.er1
37127   cat conftest.err >&5
37128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129   (exit $ac_status); } &&
37130          { ac_try='test -z "$ac_c_werror_flag"
37131                          || test ! -s conftest.err'
37132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133   (eval $ac_try) 2>&5
37134   ac_status=$?
37135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136   (exit $ac_status); }; } &&
37137          { ac_try='test -s conftest.$ac_objext'
37138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37139   (eval $ac_try) 2>&5
37140   ac_status=$?
37141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); }; }; then
37143   ac_hi=-1 ac_mid=-1
37144   while :; do
37145     cat >conftest.$ac_ext <<_ACEOF
37146 /* confdefs.h.  */
37147 _ACEOF
37148 cat confdefs.h >>conftest.$ac_ext
37149 cat >>conftest.$ac_ext <<_ACEOF
37150 /* end confdefs.h.  */
37151 $ac_includes_default
37152 int
37153 main ()
37154 {
37155 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37156 test_array [0] = 0
37157
37158   ;
37159   return 0;
37160 }
37161 _ACEOF
37162 rm -f conftest.$ac_objext
37163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37164   (eval $ac_compile) 2>conftest.er1
37165   ac_status=$?
37166   grep -v '^ *+' conftest.er1 >conftest.err
37167   rm -f conftest.er1
37168   cat conftest.err >&5
37169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170   (exit $ac_status); } &&
37171          { ac_try='test -z "$ac_c_werror_flag"
37172                          || test ! -s conftest.err'
37173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37174   (eval $ac_try) 2>&5
37175   ac_status=$?
37176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177   (exit $ac_status); }; } &&
37178          { ac_try='test -s conftest.$ac_objext'
37179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180   (eval $ac_try) 2>&5
37181   ac_status=$?
37182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183   (exit $ac_status); }; }; then
37184   ac_lo=$ac_mid; break
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189 ac_hi=`expr '(' $ac_mid ')' - 1`
37190                        if test $ac_mid -le $ac_hi; then
37191                          ac_lo= ac_hi=
37192                          break
37193                        fi
37194                        ac_mid=`expr 2 '*' $ac_mid`
37195 fi
37196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37197   done
37198 else
37199   echo "$as_me: failed program was:" >&5
37200 sed 's/^/| /' conftest.$ac_ext >&5
37201
37202 ac_lo= ac_hi=
37203 fi
37204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37205 fi
37206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37207 # Binary search between lo and hi bounds.
37208 while test "x$ac_lo" != "x$ac_hi"; do
37209   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37210   cat >conftest.$ac_ext <<_ACEOF
37211 /* confdefs.h.  */
37212 _ACEOF
37213 cat confdefs.h >>conftest.$ac_ext
37214 cat >>conftest.$ac_ext <<_ACEOF
37215 /* end confdefs.h.  */
37216 $ac_includes_default
37217 int
37218 main ()
37219 {
37220 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37221 test_array [0] = 0
37222
37223   ;
37224   return 0;
37225 }
37226 _ACEOF
37227 rm -f conftest.$ac_objext
37228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37229   (eval $ac_compile) 2>conftest.er1
37230   ac_status=$?
37231   grep -v '^ *+' conftest.er1 >conftest.err
37232   rm -f conftest.er1
37233   cat conftest.err >&5
37234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37235   (exit $ac_status); } &&
37236          { ac_try='test -z "$ac_c_werror_flag"
37237                          || test ! -s conftest.err'
37238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37239   (eval $ac_try) 2>&5
37240   ac_status=$?
37241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242   (exit $ac_status); }; } &&
37243          { ac_try='test -s conftest.$ac_objext'
37244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37245   (eval $ac_try) 2>&5
37246   ac_status=$?
37247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248   (exit $ac_status); }; }; then
37249   ac_hi=$ac_mid
37250 else
37251   echo "$as_me: failed program was:" >&5
37252 sed 's/^/| /' conftest.$ac_ext >&5
37253
37254 ac_lo=`expr '(' $ac_mid ')' + 1`
37255 fi
37256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37257 done
37258 case $ac_lo in
37259 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37260 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37261 See \`config.log' for more details." >&5
37262 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37263 See \`config.log' for more details." >&2;}
37264    { (exit 1); exit 1; }; } ;;
37265 esac
37266 else
37267   if test "$cross_compiling" = yes; then
37268   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37269 See \`config.log' for more details." >&5
37270 echo "$as_me: error: cannot run test program while cross compiling
37271 See \`config.log' for more details." >&2;}
37272    { (exit 1); exit 1; }; }
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 long longval () { return (long) (sizeof (wchar_t)); }
37282 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37283 #include <stdio.h>
37284 #include <stdlib.h>
37285 int
37286 main ()
37287 {
37288
37289   FILE *f = fopen ("conftest.val", "w");
37290   if (! f)
37291     exit (1);
37292   if (((long) (sizeof (wchar_t))) < 0)
37293     {
37294       long i = longval ();
37295       if (i != ((long) (sizeof (wchar_t))))
37296         exit (1);
37297       fprintf (f, "%ld\n", i);
37298     }
37299   else
37300     {
37301       unsigned long i = ulongval ();
37302       if (i != ((long) (sizeof (wchar_t))))
37303         exit (1);
37304       fprintf (f, "%lu\n", i);
37305     }
37306   exit (ferror (f) || fclose (f) != 0);
37307
37308   ;
37309   return 0;
37310 }
37311 _ACEOF
37312 rm -f conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314   (eval $ac_link) 2>&5
37315   ac_status=$?
37316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319   (eval $ac_try) 2>&5
37320   ac_status=$?
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); }; }; then
37323   ac_cv_sizeof_wchar_t=`cat conftest.val`
37324 else
37325   echo "$as_me: program exited with status $ac_status" >&5
37326 echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37328
37329 ( exit $ac_status )
37330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37331 See \`config.log' for more details." >&5
37332 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37333 See \`config.log' for more details." >&2;}
37334    { (exit 1); exit 1; }; }
37335 fi
37336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37337 fi
37338 fi
37339 rm -f conftest.val
37340 else
37341   ac_cv_sizeof_wchar_t=0
37342 fi
37343 fi
37344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37345 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37346 cat >>confdefs.h <<_ACEOF
37347 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37348 _ACEOF
37349
37350
37351
37352 if test "$ac_cv_sizeof_int" -lt 4 ; then
37353         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37354 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37355
37356
37357 cat >>confdefs.h <<\_ACEOF
37358 #define LBER_INT_T long
37359 _ACEOF
37360
37361 else
37362
37363 cat >>confdefs.h <<\_ACEOF
37364 #define LBER_INT_T int
37365 _ACEOF
37366
37367 fi
37368
37369
37370 cat >>confdefs.h <<\_ACEOF
37371 #define LBER_LEN_T long
37372 _ACEOF
37373
37374
37375 cat >>confdefs.h <<\_ACEOF
37376 #define LBER_SOCKET_T int
37377 _ACEOF
37378
37379
37380 cat >>confdefs.h <<\_ACEOF
37381 #define LBER_TAG_T long
37382 _ACEOF
37383
37384
37385 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37386         if test $ac_cv_sizeof_long_long -gt 4 ; then
37387                 ol_with_mp=longlong
37388
37389 cat >>confdefs.h <<\_ACEOF
37390 #define USE_MP_LONG_LONG 1
37391 _ACEOF
37392
37393         elif test $ol_with_mp = longlong ; then
37394                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37395 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37396    { (exit 1); exit 1; }; }
37397         fi
37398 fi
37399 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37400         if test $ac_cv_sizeof_long -gt 4 ; then
37401                 ol_with_mp=long
37402
37403 cat >>confdefs.h <<\_ACEOF
37404 #define USE_MP_LONG 1
37405 _ACEOF
37406
37407         elif test $ol_with_mp = long ; then
37408                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37409 echo "$as_me: error: long unusable for multiple precision" >&2;}
37410    { (exit 1); exit 1; }; }
37411         fi
37412 fi
37413 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37414
37415 for ac_header in openssl/bn.h
37416 do
37417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37419   echo "$as_me:$LINENO: checking for $ac_header" >&5
37420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37422   echo $ECHO_N "(cached) $ECHO_C" >&6
37423 fi
37424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37426 else
37427   # Is the header compilable?
37428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37430 cat >conftest.$ac_ext <<_ACEOF
37431 /* confdefs.h.  */
37432 _ACEOF
37433 cat confdefs.h >>conftest.$ac_ext
37434 cat >>conftest.$ac_ext <<_ACEOF
37435 /* end confdefs.h.  */
37436 $ac_includes_default
37437 #include <$ac_header>
37438 _ACEOF
37439 rm -f conftest.$ac_objext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37441   (eval $ac_compile) 2>conftest.er1
37442   ac_status=$?
37443   grep -v '^ *+' conftest.er1 >conftest.err
37444   rm -f conftest.er1
37445   cat conftest.err >&5
37446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37447   (exit $ac_status); } &&
37448          { ac_try='test -z "$ac_c_werror_flag"
37449                          || test ! -s conftest.err'
37450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451   (eval $ac_try) 2>&5
37452   ac_status=$?
37453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454   (exit $ac_status); }; } &&
37455          { ac_try='test -s conftest.$ac_objext'
37456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457   (eval $ac_try) 2>&5
37458   ac_status=$?
37459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460   (exit $ac_status); }; }; then
37461   ac_header_compiler=yes
37462 else
37463   echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.$ac_ext >&5
37465
37466 ac_header_compiler=no
37467 fi
37468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37470 echo "${ECHO_T}$ac_header_compiler" >&6
37471
37472 # Is the header present?
37473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37475 cat >conftest.$ac_ext <<_ACEOF
37476 /* confdefs.h.  */
37477 _ACEOF
37478 cat confdefs.h >>conftest.$ac_ext
37479 cat >>conftest.$ac_ext <<_ACEOF
37480 /* end confdefs.h.  */
37481 #include <$ac_header>
37482 _ACEOF
37483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37484   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37485   ac_status=$?
37486   grep -v '^ *+' conftest.er1 >conftest.err
37487   rm -f conftest.er1
37488   cat conftest.err >&5
37489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490   (exit $ac_status); } >/dev/null; then
37491   if test -s conftest.err; then
37492     ac_cpp_err=$ac_c_preproc_warn_flag
37493     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37494   else
37495     ac_cpp_err=
37496   fi
37497 else
37498   ac_cpp_err=yes
37499 fi
37500 if test -z "$ac_cpp_err"; then
37501   ac_header_preproc=yes
37502 else
37503   echo "$as_me: failed program was:" >&5
37504 sed 's/^/| /' conftest.$ac_ext >&5
37505
37506   ac_header_preproc=no
37507 fi
37508 rm -f conftest.err conftest.$ac_ext
37509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37510 echo "${ECHO_T}$ac_header_preproc" >&6
37511
37512 # So?  What about this header?
37513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37514   yes:no: )
37515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37519     ac_header_preproc=yes
37520     ;;
37521   no:yes:* )
37522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37534     (
37535       cat <<\_ASBOX
37536 ## --------------------------------------------- ##
37537 ## Report this to <http://www.openldap.org/its/> ##
37538 ## --------------------------------------------- ##
37539 _ASBOX
37540     ) |
37541       sed "s/^/$as_me: WARNING:     /" >&2
37542     ;;
37543 esac
37544 echo "$as_me:$LINENO: checking for $ac_header" >&5
37545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37547   echo $ECHO_N "(cached) $ECHO_C" >&6
37548 else
37549   eval "$as_ac_Header=\$ac_header_preproc"
37550 fi
37551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37553
37554 fi
37555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37556   cat >>confdefs.h <<_ACEOF
37557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37558 _ACEOF
37559
37560 fi
37561
37562 done
37563
37564
37565 for ac_header in openssl/crypto.h
37566 do
37567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37569   echo "$as_me:$LINENO: checking for $ac_header" >&5
37570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37572   echo $ECHO_N "(cached) $ECHO_C" >&6
37573 fi
37574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37576 else
37577   # Is the header compilable?
37578 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37580 cat >conftest.$ac_ext <<_ACEOF
37581 /* confdefs.h.  */
37582 _ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h.  */
37586 $ac_includes_default
37587 #include <$ac_header>
37588 _ACEOF
37589 rm -f conftest.$ac_objext
37590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37591   (eval $ac_compile) 2>conftest.er1
37592   ac_status=$?
37593   grep -v '^ *+' conftest.er1 >conftest.err
37594   rm -f conftest.er1
37595   cat conftest.err >&5
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); } &&
37598          { ac_try='test -z "$ac_c_werror_flag"
37599                          || test ! -s conftest.err'
37600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601   (eval $ac_try) 2>&5
37602   ac_status=$?
37603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604   (exit $ac_status); }; } &&
37605          { ac_try='test -s conftest.$ac_objext'
37606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607   (eval $ac_try) 2>&5
37608   ac_status=$?
37609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610   (exit $ac_status); }; }; then
37611   ac_header_compiler=yes
37612 else
37613   echo "$as_me: failed program was:" >&5
37614 sed 's/^/| /' conftest.$ac_ext >&5
37615
37616 ac_header_compiler=no
37617 fi
37618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37620 echo "${ECHO_T}$ac_header_compiler" >&6
37621
37622 # Is the header present?
37623 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37624 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37625 cat >conftest.$ac_ext <<_ACEOF
37626 /* confdefs.h.  */
37627 _ACEOF
37628 cat confdefs.h >>conftest.$ac_ext
37629 cat >>conftest.$ac_ext <<_ACEOF
37630 /* end confdefs.h.  */
37631 #include <$ac_header>
37632 _ACEOF
37633 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37634   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37635   ac_status=$?
37636   grep -v '^ *+' conftest.er1 >conftest.err
37637   rm -f conftest.er1
37638   cat conftest.err >&5
37639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640   (exit $ac_status); } >/dev/null; then
37641   if test -s conftest.err; then
37642     ac_cpp_err=$ac_c_preproc_warn_flag
37643     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37644   else
37645     ac_cpp_err=
37646   fi
37647 else
37648   ac_cpp_err=yes
37649 fi
37650 if test -z "$ac_cpp_err"; then
37651   ac_header_preproc=yes
37652 else
37653   echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37655
37656   ac_header_preproc=no
37657 fi
37658 rm -f conftest.err conftest.$ac_ext
37659 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37660 echo "${ECHO_T}$ac_header_preproc" >&6
37661
37662 # So?  What about this header?
37663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37664   yes:no: )
37665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37669     ac_header_preproc=yes
37670     ;;
37671   no:yes:* )
37672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37684     (
37685       cat <<\_ASBOX
37686 ## --------------------------------------------- ##
37687 ## Report this to <http://www.openldap.org/its/> ##
37688 ## --------------------------------------------- ##
37689 _ASBOX
37690     ) |
37691       sed "s/^/$as_me: WARNING:     /" >&2
37692     ;;
37693 esac
37694 echo "$as_me:$LINENO: checking for $ac_header" >&5
37695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37697   echo $ECHO_N "(cached) $ECHO_C" >&6
37698 else
37699   eval "$as_ac_Header=\$ac_header_preproc"
37700 fi
37701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37703
37704 fi
37705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37706   cat >>confdefs.h <<_ACEOF
37707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37708 _ACEOF
37709
37710 fi
37711
37712 done
37713
37714         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37715                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37716                 test "$ol_with_tls" = "found" ; then
37717                 ol_with_mp=bignum
37718
37719 cat >>confdefs.h <<\_ACEOF
37720 #define USE_MP_BIGNUM 1
37721 _ACEOF
37722
37723         elif test $ol_with_mp = bignum ; then
37724                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37725 echo "$as_me: error: bignum not available" >&2;}
37726    { (exit 1); exit 1; }; }
37727         fi
37728 fi
37729 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37730
37731 for ac_header in gmp.h
37732 do
37733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37735   echo "$as_me:$LINENO: checking for $ac_header" >&5
37736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37738   echo $ECHO_N "(cached) $ECHO_C" >&6
37739 fi
37740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37742 else
37743   # Is the header compilable?
37744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37746 cat >conftest.$ac_ext <<_ACEOF
37747 /* confdefs.h.  */
37748 _ACEOF
37749 cat confdefs.h >>conftest.$ac_ext
37750 cat >>conftest.$ac_ext <<_ACEOF
37751 /* end confdefs.h.  */
37752 $ac_includes_default
37753 #include <$ac_header>
37754 _ACEOF
37755 rm -f conftest.$ac_objext
37756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37757   (eval $ac_compile) 2>conftest.er1
37758   ac_status=$?
37759   grep -v '^ *+' conftest.er1 >conftest.err
37760   rm -f conftest.er1
37761   cat conftest.err >&5
37762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763   (exit $ac_status); } &&
37764          { ac_try='test -z "$ac_c_werror_flag"
37765                          || test ! -s conftest.err'
37766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767   (eval $ac_try) 2>&5
37768   ac_status=$?
37769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770   (exit $ac_status); }; } &&
37771          { ac_try='test -s conftest.$ac_objext'
37772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37773   (eval $ac_try) 2>&5
37774   ac_status=$?
37775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776   (exit $ac_status); }; }; then
37777   ac_header_compiler=yes
37778 else
37779   echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37781
37782 ac_header_compiler=no
37783 fi
37784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37786 echo "${ECHO_T}$ac_header_compiler" >&6
37787
37788 # Is the header present?
37789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37791 cat >conftest.$ac_ext <<_ACEOF
37792 /* confdefs.h.  */
37793 _ACEOF
37794 cat confdefs.h >>conftest.$ac_ext
37795 cat >>conftest.$ac_ext <<_ACEOF
37796 /* end confdefs.h.  */
37797 #include <$ac_header>
37798 _ACEOF
37799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37801   ac_status=$?
37802   grep -v '^ *+' conftest.er1 >conftest.err
37803   rm -f conftest.er1
37804   cat conftest.err >&5
37805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806   (exit $ac_status); } >/dev/null; then
37807   if test -s conftest.err; then
37808     ac_cpp_err=$ac_c_preproc_warn_flag
37809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37810   else
37811     ac_cpp_err=
37812   fi
37813 else
37814   ac_cpp_err=yes
37815 fi
37816 if test -z "$ac_cpp_err"; then
37817   ac_header_preproc=yes
37818 else
37819   echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37821
37822   ac_header_preproc=no
37823 fi
37824 rm -f conftest.err conftest.$ac_ext
37825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37826 echo "${ECHO_T}$ac_header_preproc" >&6
37827
37828 # So?  What about this header?
37829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37830   yes:no: )
37831     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37835     ac_header_preproc=yes
37836     ;;
37837   no:yes:* )
37838     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37840     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37841 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37842     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37844     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37845 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37848     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37850     (
37851       cat <<\_ASBOX
37852 ## --------------------------------------------- ##
37853 ## Report this to <http://www.openldap.org/its/> ##
37854 ## --------------------------------------------- ##
37855 _ASBOX
37856     ) |
37857       sed "s/^/$as_me: WARNING:     /" >&2
37858     ;;
37859 esac
37860 echo "$as_me:$LINENO: checking for $ac_header" >&5
37861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37863   echo $ECHO_N "(cached) $ECHO_C" >&6
37864 else
37865   eval "$as_ac_Header=\$ac_header_preproc"
37866 fi
37867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37869
37870 fi
37871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37872   cat >>confdefs.h <<_ACEOF
37873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37874 _ACEOF
37875
37876 fi
37877
37878 done
37879
37880
37881 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37882 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37883 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37884   echo $ECHO_N "(cached) $ECHO_C" >&6
37885 else
37886   ac_check_lib_save_LIBS=$LIBS
37887 LIBS="-lgmp  $LIBS"
37888 cat >conftest.$ac_ext <<_ACEOF
37889 /* confdefs.h.  */
37890 _ACEOF
37891 cat confdefs.h >>conftest.$ac_ext
37892 cat >>conftest.$ac_ext <<_ACEOF
37893 /* end confdefs.h.  */
37894
37895 /* Override any gcc2 internal prototype to avoid an error.  */
37896 #ifdef __cplusplus
37897 extern "C"
37898 #endif
37899 /* We use char because int might match the return type of a gcc2
37900    builtin and then its argument prototype would still apply.  */
37901 char __gmpz_add_ui ();
37902 int
37903 main ()
37904 {
37905 __gmpz_add_ui ();
37906   ;
37907   return 0;
37908 }
37909 _ACEOF
37910 rm -f conftest.$ac_objext conftest$ac_exeext
37911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37912   (eval $ac_link) 2>conftest.er1
37913   ac_status=$?
37914   grep -v '^ *+' conftest.er1 >conftest.err
37915   rm -f conftest.er1
37916   cat conftest.err >&5
37917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918   (exit $ac_status); } &&
37919          { ac_try='test -z "$ac_c_werror_flag"
37920                          || test ! -s conftest.err'
37921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37922   (eval $ac_try) 2>&5
37923   ac_status=$?
37924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925   (exit $ac_status); }; } &&
37926          { ac_try='test -s conftest$ac_exeext'
37927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37928   (eval $ac_try) 2>&5
37929   ac_status=$?
37930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37931   (exit $ac_status); }; }; then
37932   ac_cv_lib_gmp___gmpz_add_ui=yes
37933 else
37934   echo "$as_me: failed program was:" >&5
37935 sed 's/^/| /' conftest.$ac_ext >&5
37936
37937 ac_cv_lib_gmp___gmpz_add_ui=no
37938 fi
37939 rm -f conftest.err conftest.$ac_objext \
37940       conftest$ac_exeext conftest.$ac_ext
37941 LIBS=$ac_check_lib_save_LIBS
37942 fi
37943 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
37944 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
37945 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
37946   cat >>confdefs.h <<_ACEOF
37947 #define HAVE_LIBGMP 1
37948 _ACEOF
37949
37950   LIBS="-lgmp $LIBS"
37951
37952 fi
37953
37954         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
37955
37956 cat >>confdefs.h <<\_ACEOF
37957 #define USE_MP_GMP 1
37958 _ACEOF
37959
37960                 ol_with_mp=gmp
37961         elif test $ol_with_mp = gmp ; then
37962                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
37963 echo "$as_me: error: gmp not available" >&2;}
37964    { (exit 1); exit 1; }; }
37965         fi
37966 fi
37967 if test $ol_with_mp = auto ; then
37968         ol_with_mp=no
37969 fi
37970
37971 echo "$as_me:$LINENO: checking for working memcmp" >&5
37972 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
37973 if test "${ac_cv_func_memcmp_working+set}" = set; then
37974   echo $ECHO_N "(cached) $ECHO_C" >&6
37975 else
37976   if test "$cross_compiling" = yes; then
37977   ac_cv_func_memcmp_working=no
37978 else
37979   cat >conftest.$ac_ext <<_ACEOF
37980 /* confdefs.h.  */
37981 _ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h.  */
37985 $ac_includes_default
37986 int
37987 main ()
37988 {
37989
37990   /* Some versions of memcmp are not 8-bit clean.  */
37991   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
37992   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
37993     exit (1);
37994
37995   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
37996      or more and with at least one buffer not starting on a 4-byte boundary.
37997      William Lewis provided this test program.   */
37998   {
37999     char foo[21];
38000     char bar[21];
38001     int i;
38002     for (i = 0; i < 4; i++)
38003       {
38004         char *a = foo + i;
38005         char *b = bar + i;
38006         strcpy (a, "--------01111111");
38007         strcpy (b, "--------10000000");
38008         if (memcmp (a, b, 16) >= 0)
38009           exit (1);
38010       }
38011     exit (0);
38012   }
38013
38014   ;
38015   return 0;
38016 }
38017 _ACEOF
38018 rm -f conftest$ac_exeext
38019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38020   (eval $ac_link) 2>&5
38021   ac_status=$?
38022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38025   (eval $ac_try) 2>&5
38026   ac_status=$?
38027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028   (exit $ac_status); }; }; then
38029   ac_cv_func_memcmp_working=yes
38030 else
38031   echo "$as_me: program exited with status $ac_status" >&5
38032 echo "$as_me: failed program was:" >&5
38033 sed 's/^/| /' conftest.$ac_ext >&5
38034
38035 ( exit $ac_status )
38036 ac_cv_func_memcmp_working=no
38037 fi
38038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38039 fi
38040 fi
38041 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38042 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38043 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38044     "memcmp.$ac_objext"   | \
38045   *" memcmp.$ac_objext"   | \
38046     "memcmp.$ac_objext "* | \
38047   *" memcmp.$ac_objext "* ) ;;
38048   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38049 esac
38050
38051
38052
38053 if test $ac_cv_func_memcmp_working = no ; then
38054
38055 cat >>confdefs.h <<\_ACEOF
38056 #define NEED_MEMCMP_REPLACEMENT 1
38057 _ACEOF
38058
38059 fi
38060
38061
38062 for ac_func in strftime
38063 do
38064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38065 echo "$as_me:$LINENO: checking for $ac_func" >&5
38066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38067 if eval "test \"\${$as_ac_var+set}\" = set"; then
38068   echo $ECHO_N "(cached) $ECHO_C" >&6
38069 else
38070   cat >conftest.$ac_ext <<_ACEOF
38071 /* confdefs.h.  */
38072 _ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h.  */
38076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38078 #define $ac_func innocuous_$ac_func
38079
38080 /* System header to define __stub macros and hopefully few prototypes,
38081     which can conflict with char $ac_func (); below.
38082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38083     <limits.h> exists even on freestanding compilers.  */
38084
38085 #ifdef __STDC__
38086 # include <limits.h>
38087 #else
38088 # include <assert.h>
38089 #endif
38090
38091 #undef $ac_func
38092
38093 /* Override any gcc2 internal prototype to avoid an error.  */
38094 #ifdef __cplusplus
38095 extern "C"
38096 {
38097 #endif
38098 /* We use char because int might match the return type of a gcc2
38099    builtin and then its argument prototype would still apply.  */
38100 char $ac_func ();
38101 /* The GNU C library defines this for functions which it implements
38102     to always fail with ENOSYS.  Some functions are actually named
38103     something starting with __ and the normal name is an alias.  */
38104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38105 choke me
38106 #else
38107 char (*f) () = $ac_func;
38108 #endif
38109 #ifdef __cplusplus
38110 }
38111 #endif
38112
38113 int
38114 main ()
38115 {
38116 return f != $ac_func;
38117   ;
38118   return 0;
38119 }
38120 _ACEOF
38121 rm -f conftest.$ac_objext conftest$ac_exeext
38122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38123   (eval $ac_link) 2>conftest.er1
38124   ac_status=$?
38125   grep -v '^ *+' conftest.er1 >conftest.err
38126   rm -f conftest.er1
38127   cat conftest.err >&5
38128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129   (exit $ac_status); } &&
38130          { ac_try='test -z "$ac_c_werror_flag"
38131                          || test ! -s conftest.err'
38132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38133   (eval $ac_try) 2>&5
38134   ac_status=$?
38135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136   (exit $ac_status); }; } &&
38137          { ac_try='test -s conftest$ac_exeext'
38138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139   (eval $ac_try) 2>&5
38140   ac_status=$?
38141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142   (exit $ac_status); }; }; then
38143   eval "$as_ac_var=yes"
38144 else
38145   echo "$as_me: failed program was:" >&5
38146 sed 's/^/| /' conftest.$ac_ext >&5
38147
38148 eval "$as_ac_var=no"
38149 fi
38150 rm -f conftest.err conftest.$ac_objext \
38151       conftest$ac_exeext conftest.$ac_ext
38152 fi
38153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156   cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38158 _ACEOF
38159
38160 else
38161   # strftime is in -lintl on SCO UNIX.
38162 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38163 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38164 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38165   echo $ECHO_N "(cached) $ECHO_C" >&6
38166 else
38167   ac_check_lib_save_LIBS=$LIBS
38168 LIBS="-lintl  $LIBS"
38169 cat >conftest.$ac_ext <<_ACEOF
38170 /* confdefs.h.  */
38171 _ACEOF
38172 cat confdefs.h >>conftest.$ac_ext
38173 cat >>conftest.$ac_ext <<_ACEOF
38174 /* end confdefs.h.  */
38175
38176 /* Override any gcc2 internal prototype to avoid an error.  */
38177 #ifdef __cplusplus
38178 extern "C"
38179 #endif
38180 /* We use char because int might match the return type of a gcc2
38181    builtin and then its argument prototype would still apply.  */
38182 char strftime ();
38183 int
38184 main ()
38185 {
38186 strftime ();
38187   ;
38188   return 0;
38189 }
38190 _ACEOF
38191 rm -f conftest.$ac_objext conftest$ac_exeext
38192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38193   (eval $ac_link) 2>conftest.er1
38194   ac_status=$?
38195   grep -v '^ *+' conftest.er1 >conftest.err
38196   rm -f conftest.er1
38197   cat conftest.err >&5
38198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199   (exit $ac_status); } &&
38200          { ac_try='test -z "$ac_c_werror_flag"
38201                          || test ! -s conftest.err'
38202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38203   (eval $ac_try) 2>&5
38204   ac_status=$?
38205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38206   (exit $ac_status); }; } &&
38207          { ac_try='test -s conftest$ac_exeext'
38208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38209   (eval $ac_try) 2>&5
38210   ac_status=$?
38211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38212   (exit $ac_status); }; }; then
38213   ac_cv_lib_intl_strftime=yes
38214 else
38215   echo "$as_me: failed program was:" >&5
38216 sed 's/^/| /' conftest.$ac_ext >&5
38217
38218 ac_cv_lib_intl_strftime=no
38219 fi
38220 rm -f conftest.err conftest.$ac_objext \
38221       conftest$ac_exeext conftest.$ac_ext
38222 LIBS=$ac_check_lib_save_LIBS
38223 fi
38224 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38225 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38226 if test $ac_cv_lib_intl_strftime = yes; then
38227   cat >>confdefs.h <<\_ACEOF
38228 #define HAVE_STRFTIME 1
38229 _ACEOF
38230
38231 LIBS="-lintl $LIBS"
38232 fi
38233
38234 fi
38235 done
38236
38237
38238 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38239 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38240 if test "${ol_cv_func_inet_aton+set}" = set; then
38241   echo $ECHO_N "(cached) $ECHO_C" >&6
38242 else
38243   cat >conftest.$ac_ext <<_ACEOF
38244 /* confdefs.h.  */
38245 _ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h.  */
38249
38250 #ifdef HAVE_SYS_TYPES_H
38251 #       include <sys/types.h>
38252 #endif
38253 #ifdef HAVE_SYS_SOCKET_H
38254 #       include <sys/socket.h>
38255 #       ifdef HAVE_SYS_SELECT_H
38256 #               include <sys/select.h>
38257 #       endif
38258 #       include <netinet/in.h>
38259 #       ifdef HAVE_ARPA_INET_H
38260 #               include <arpa/inet.h>
38261 #       endif
38262 #endif
38263
38264 int
38265 main ()
38266 {
38267 struct in_addr in;
38268 int rc = inet_aton( "255.255.255.255", &in );
38269   ;
38270   return 0;
38271 }
38272 _ACEOF
38273 rm -f conftest.$ac_objext conftest$ac_exeext
38274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38275   (eval $ac_link) 2>conftest.er1
38276   ac_status=$?
38277   grep -v '^ *+' conftest.er1 >conftest.err
38278   rm -f conftest.er1
38279   cat conftest.err >&5
38280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281   (exit $ac_status); } &&
38282          { ac_try='test -z "$ac_c_werror_flag"
38283                          || test ! -s conftest.err'
38284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285   (eval $ac_try) 2>&5
38286   ac_status=$?
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); }; } &&
38289          { ac_try='test -s conftest$ac_exeext'
38290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291   (eval $ac_try) 2>&5
38292   ac_status=$?
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); }; }; then
38295   ol_cv_func_inet_aton=yes
38296 else
38297   echo "$as_me: failed program was:" >&5
38298 sed 's/^/| /' conftest.$ac_ext >&5
38299
38300 ol_cv_func_inet_aton=no
38301 fi
38302 rm -f conftest.err conftest.$ac_objext \
38303       conftest$ac_exeext conftest.$ac_ext
38304 fi
38305 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38306 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38307   if test $ol_cv_func_inet_aton != no; then
38308
38309 cat >>confdefs.h <<\_ACEOF
38310 #define HAVE_INET_ATON 1
38311 _ACEOF
38312
38313   fi
38314
38315
38316 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38317 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38318 if test "${ac_cv_func__spawnlp+set}" = set; then
38319   echo $ECHO_N "(cached) $ECHO_C" >&6
38320 else
38321   cat >conftest.$ac_ext <<_ACEOF
38322 /* confdefs.h.  */
38323 _ACEOF
38324 cat confdefs.h >>conftest.$ac_ext
38325 cat >>conftest.$ac_ext <<_ACEOF
38326 /* end confdefs.h.  */
38327 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38329 #define _spawnlp innocuous__spawnlp
38330
38331 /* System header to define __stub macros and hopefully few prototypes,
38332     which can conflict with char _spawnlp (); below.
38333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38334     <limits.h> exists even on freestanding compilers.  */
38335
38336 #ifdef __STDC__
38337 # include <limits.h>
38338 #else
38339 # include <assert.h>
38340 #endif
38341
38342 #undef _spawnlp
38343
38344 /* Override any gcc2 internal prototype to avoid an error.  */
38345 #ifdef __cplusplus
38346 extern "C"
38347 {
38348 #endif
38349 /* We use char because int might match the return type of a gcc2
38350    builtin and then its argument prototype would still apply.  */
38351 char _spawnlp ();
38352 /* The GNU C library defines this for functions which it implements
38353     to always fail with ENOSYS.  Some functions are actually named
38354     something starting with __ and the normal name is an alias.  */
38355 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38356 choke me
38357 #else
38358 char (*f) () = _spawnlp;
38359 #endif
38360 #ifdef __cplusplus
38361 }
38362 #endif
38363
38364 int
38365 main ()
38366 {
38367 return f != _spawnlp;
38368   ;
38369   return 0;
38370 }
38371 _ACEOF
38372 rm -f conftest.$ac_objext conftest$ac_exeext
38373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38374   (eval $ac_link) 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_exeext'
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   ac_cv_func__spawnlp=yes
38395 else
38396   echo "$as_me: failed program was:" >&5
38397 sed 's/^/| /' conftest.$ac_ext >&5
38398
38399 ac_cv_func__spawnlp=no
38400 fi
38401 rm -f conftest.err conftest.$ac_objext \
38402       conftest$ac_exeext conftest.$ac_ext
38403 fi
38404 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38405 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38406 if test $ac_cv_func__spawnlp = yes; then
38407
38408 cat >>confdefs.h <<\_ACEOF
38409 #define HAVE_SPAWNLP 1
38410 _ACEOF
38411
38412 fi
38413
38414
38415 echo "$as_me:$LINENO: checking for _snprintf" >&5
38416 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38417 if test "${ac_cv_func__snprintf+set}" = set; then
38418   echo $ECHO_N "(cached) $ECHO_C" >&6
38419 else
38420   cat >conftest.$ac_ext <<_ACEOF
38421 /* confdefs.h.  */
38422 _ACEOF
38423 cat confdefs.h >>conftest.$ac_ext
38424 cat >>conftest.$ac_ext <<_ACEOF
38425 /* end confdefs.h.  */
38426 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38428 #define _snprintf innocuous__snprintf
38429
38430 /* System header to define __stub macros and hopefully few prototypes,
38431     which can conflict with char _snprintf (); below.
38432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38433     <limits.h> exists even on freestanding compilers.  */
38434
38435 #ifdef __STDC__
38436 # include <limits.h>
38437 #else
38438 # include <assert.h>
38439 #endif
38440
38441 #undef _snprintf
38442
38443 /* Override any gcc2 internal prototype to avoid an error.  */
38444 #ifdef __cplusplus
38445 extern "C"
38446 {
38447 #endif
38448 /* We use char because int might match the return type of a gcc2
38449    builtin and then its argument prototype would still apply.  */
38450 char _snprintf ();
38451 /* The GNU C library defines this for functions which it implements
38452     to always fail with ENOSYS.  Some functions are actually named
38453     something starting with __ and the normal name is an alias.  */
38454 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38455 choke me
38456 #else
38457 char (*f) () = _snprintf;
38458 #endif
38459 #ifdef __cplusplus
38460 }
38461 #endif
38462
38463 int
38464 main ()
38465 {
38466 return f != _snprintf;
38467   ;
38468   return 0;
38469 }
38470 _ACEOF
38471 rm -f conftest.$ac_objext conftest$ac_exeext
38472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38473   (eval $ac_link) 2>conftest.er1
38474   ac_status=$?
38475   grep -v '^ *+' conftest.er1 >conftest.err
38476   rm -f conftest.er1
38477   cat conftest.err >&5
38478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38479   (exit $ac_status); } &&
38480          { ac_try='test -z "$ac_c_werror_flag"
38481                          || test ! -s conftest.err'
38482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483   (eval $ac_try) 2>&5
38484   ac_status=$?
38485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); }; } &&
38487          { ac_try='test -s conftest$ac_exeext'
38488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489   (eval $ac_try) 2>&5
38490   ac_status=$?
38491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492   (exit $ac_status); }; }; then
38493   ac_cv_func__snprintf=yes
38494 else
38495   echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38497
38498 ac_cv_func__snprintf=no
38499 fi
38500 rm -f conftest.err conftest.$ac_objext \
38501       conftest$ac_exeext conftest.$ac_ext
38502 fi
38503 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38504 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38505 if test $ac_cv_func__snprintf = yes; then
38506   ac_cv_func_snprintf=yes
38507
38508 cat >>confdefs.h <<\_ACEOF
38509 #define snprintf _snprintf
38510 _ACEOF
38511
38512
38513 fi
38514
38515
38516 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38517 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38518 if test "${ac_cv_func__vsnprintf+set}" = set; then
38519   echo $ECHO_N "(cached) $ECHO_C" >&6
38520 else
38521   cat >conftest.$ac_ext <<_ACEOF
38522 /* confdefs.h.  */
38523 _ACEOF
38524 cat confdefs.h >>conftest.$ac_ext
38525 cat >>conftest.$ac_ext <<_ACEOF
38526 /* end confdefs.h.  */
38527 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38529 #define _vsnprintf innocuous__vsnprintf
38530
38531 /* System header to define __stub macros and hopefully few prototypes,
38532     which can conflict with char _vsnprintf (); below.
38533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38534     <limits.h> exists even on freestanding compilers.  */
38535
38536 #ifdef __STDC__
38537 # include <limits.h>
38538 #else
38539 # include <assert.h>
38540 #endif
38541
38542 #undef _vsnprintf
38543
38544 /* Override any gcc2 internal prototype to avoid an error.  */
38545 #ifdef __cplusplus
38546 extern "C"
38547 {
38548 #endif
38549 /* We use char because int might match the return type of a gcc2
38550    builtin and then its argument prototype would still apply.  */
38551 char _vsnprintf ();
38552 /* The GNU C library defines this for functions which it implements
38553     to always fail with ENOSYS.  Some functions are actually named
38554     something starting with __ and the normal name is an alias.  */
38555 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38556 choke me
38557 #else
38558 char (*f) () = _vsnprintf;
38559 #endif
38560 #ifdef __cplusplus
38561 }
38562 #endif
38563
38564 int
38565 main ()
38566 {
38567 return f != _vsnprintf;
38568   ;
38569   return 0;
38570 }
38571 _ACEOF
38572 rm -f conftest.$ac_objext conftest$ac_exeext
38573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38574   (eval $ac_link) 2>conftest.er1
38575   ac_status=$?
38576   grep -v '^ *+' conftest.er1 >conftest.err
38577   rm -f conftest.er1
38578   cat conftest.err >&5
38579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580   (exit $ac_status); } &&
38581          { ac_try='test -z "$ac_c_werror_flag"
38582                          || test ! -s conftest.err'
38583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584   (eval $ac_try) 2>&5
38585   ac_status=$?
38586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587   (exit $ac_status); }; } &&
38588          { ac_try='test -s conftest$ac_exeext'
38589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590   (eval $ac_try) 2>&5
38591   ac_status=$?
38592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593   (exit $ac_status); }; }; then
38594   ac_cv_func__vsnprintf=yes
38595 else
38596   echo "$as_me: failed program was:" >&5
38597 sed 's/^/| /' conftest.$ac_ext >&5
38598
38599 ac_cv_func__vsnprintf=no
38600 fi
38601 rm -f conftest.err conftest.$ac_objext \
38602       conftest$ac_exeext conftest.$ac_ext
38603 fi
38604 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38605 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38606 if test $ac_cv_func__vsnprintf = yes; then
38607   ac_cv_func_vsnprintf=yes
38608
38609 cat >>confdefs.h <<\_ACEOF
38610 #define vsnprintf _vsnprintf
38611 _ACEOF
38612
38613
38614 fi
38615
38616
38617
38618 for ac_func in vprintf
38619 do
38620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38621 echo "$as_me:$LINENO: checking for $ac_func" >&5
38622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38623 if eval "test \"\${$as_ac_var+set}\" = set"; then
38624   echo $ECHO_N "(cached) $ECHO_C" >&6
38625 else
38626   cat >conftest.$ac_ext <<_ACEOF
38627 /* confdefs.h.  */
38628 _ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h.  */
38632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38634 #define $ac_func innocuous_$ac_func
38635
38636 /* System header to define __stub macros and hopefully few prototypes,
38637     which can conflict with char $ac_func (); below.
38638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38639     <limits.h> exists even on freestanding compilers.  */
38640
38641 #ifdef __STDC__
38642 # include <limits.h>
38643 #else
38644 # include <assert.h>
38645 #endif
38646
38647 #undef $ac_func
38648
38649 /* Override any gcc2 internal prototype to avoid an error.  */
38650 #ifdef __cplusplus
38651 extern "C"
38652 {
38653 #endif
38654 /* We use char because int might match the return type of a gcc2
38655    builtin and then its argument prototype would still apply.  */
38656 char $ac_func ();
38657 /* The GNU C library defines this for functions which it implements
38658     to always fail with ENOSYS.  Some functions are actually named
38659     something starting with __ and the normal name is an alias.  */
38660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38661 choke me
38662 #else
38663 char (*f) () = $ac_func;
38664 #endif
38665 #ifdef __cplusplus
38666 }
38667 #endif
38668
38669 int
38670 main ()
38671 {
38672 return f != $ac_func;
38673   ;
38674   return 0;
38675 }
38676 _ACEOF
38677 rm -f conftest.$ac_objext conftest$ac_exeext
38678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38679   (eval $ac_link) 2>conftest.er1
38680   ac_status=$?
38681   grep -v '^ *+' conftest.er1 >conftest.err
38682   rm -f conftest.er1
38683   cat conftest.err >&5
38684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38685   (exit $ac_status); } &&
38686          { ac_try='test -z "$ac_c_werror_flag"
38687                          || test ! -s conftest.err'
38688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38689   (eval $ac_try) 2>&5
38690   ac_status=$?
38691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692   (exit $ac_status); }; } &&
38693          { ac_try='test -s conftest$ac_exeext'
38694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695   (eval $ac_try) 2>&5
38696   ac_status=$?
38697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698   (exit $ac_status); }; }; then
38699   eval "$as_ac_var=yes"
38700 else
38701   echo "$as_me: failed program was:" >&5
38702 sed 's/^/| /' conftest.$ac_ext >&5
38703
38704 eval "$as_ac_var=no"
38705 fi
38706 rm -f conftest.err conftest.$ac_objext \
38707       conftest$ac_exeext conftest.$ac_ext
38708 fi
38709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38711 if test `eval echo '${'$as_ac_var'}'` = yes; then
38712   cat >>confdefs.h <<_ACEOF
38713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38714 _ACEOF
38715
38716 echo "$as_me:$LINENO: checking for _doprnt" >&5
38717 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38718 if test "${ac_cv_func__doprnt+set}" = set; then
38719   echo $ECHO_N "(cached) $ECHO_C" >&6
38720 else
38721   cat >conftest.$ac_ext <<_ACEOF
38722 /* confdefs.h.  */
38723 _ACEOF
38724 cat confdefs.h >>conftest.$ac_ext
38725 cat >>conftest.$ac_ext <<_ACEOF
38726 /* end confdefs.h.  */
38727 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38729 #define _doprnt innocuous__doprnt
38730
38731 /* System header to define __stub macros and hopefully few prototypes,
38732     which can conflict with char _doprnt (); below.
38733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38734     <limits.h> exists even on freestanding compilers.  */
38735
38736 #ifdef __STDC__
38737 # include <limits.h>
38738 #else
38739 # include <assert.h>
38740 #endif
38741
38742 #undef _doprnt
38743
38744 /* Override any gcc2 internal prototype to avoid an error.  */
38745 #ifdef __cplusplus
38746 extern "C"
38747 {
38748 #endif
38749 /* We use char because int might match the return type of a gcc2
38750    builtin and then its argument prototype would still apply.  */
38751 char _doprnt ();
38752 /* The GNU C library defines this for functions which it implements
38753     to always fail with ENOSYS.  Some functions are actually named
38754     something starting with __ and the normal name is an alias.  */
38755 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38756 choke me
38757 #else
38758 char (*f) () = _doprnt;
38759 #endif
38760 #ifdef __cplusplus
38761 }
38762 #endif
38763
38764 int
38765 main ()
38766 {
38767 return f != _doprnt;
38768   ;
38769   return 0;
38770 }
38771 _ACEOF
38772 rm -f conftest.$ac_objext conftest$ac_exeext
38773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38774   (eval $ac_link) 2>conftest.er1
38775   ac_status=$?
38776   grep -v '^ *+' conftest.er1 >conftest.err
38777   rm -f conftest.er1
38778   cat conftest.err >&5
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); } &&
38781          { ac_try='test -z "$ac_c_werror_flag"
38782                          || test ! -s conftest.err'
38783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784   (eval $ac_try) 2>&5
38785   ac_status=$?
38786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787   (exit $ac_status); }; } &&
38788          { ac_try='test -s conftest$ac_exeext'
38789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38790   (eval $ac_try) 2>&5
38791   ac_status=$?
38792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38793   (exit $ac_status); }; }; then
38794   ac_cv_func__doprnt=yes
38795 else
38796   echo "$as_me: failed program was:" >&5
38797 sed 's/^/| /' conftest.$ac_ext >&5
38798
38799 ac_cv_func__doprnt=no
38800 fi
38801 rm -f conftest.err conftest.$ac_objext \
38802       conftest$ac_exeext conftest.$ac_ext
38803 fi
38804 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38805 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38806 if test $ac_cv_func__doprnt = yes; then
38807
38808 cat >>confdefs.h <<\_ACEOF
38809 #define HAVE_DOPRNT 1
38810 _ACEOF
38811
38812 fi
38813
38814 fi
38815 done
38816
38817
38818
38819 if test $ac_cv_func_vprintf = yes ; then
38820
38821
38822 for ac_func in snprintf vsnprintf
38823 do
38824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38825 echo "$as_me:$LINENO: checking for $ac_func" >&5
38826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38827 if eval "test \"\${$as_ac_var+set}\" = set"; then
38828   echo $ECHO_N "(cached) $ECHO_C" >&6
38829 else
38830   cat >conftest.$ac_ext <<_ACEOF
38831 /* confdefs.h.  */
38832 _ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h.  */
38836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38838 #define $ac_func innocuous_$ac_func
38839
38840 /* System header to define __stub macros and hopefully few prototypes,
38841     which can conflict with char $ac_func (); below.
38842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38843     <limits.h> exists even on freestanding compilers.  */
38844
38845 #ifdef __STDC__
38846 # include <limits.h>
38847 #else
38848 # include <assert.h>
38849 #endif
38850
38851 #undef $ac_func
38852
38853 /* Override any gcc2 internal prototype to avoid an error.  */
38854 #ifdef __cplusplus
38855 extern "C"
38856 {
38857 #endif
38858 /* We use char because int might match the return type of a gcc2
38859    builtin and then its argument prototype would still apply.  */
38860 char $ac_func ();
38861 /* The GNU C library defines this for functions which it implements
38862     to always fail with ENOSYS.  Some functions are actually named
38863     something starting with __ and the normal name is an alias.  */
38864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38865 choke me
38866 #else
38867 char (*f) () = $ac_func;
38868 #endif
38869 #ifdef __cplusplus
38870 }
38871 #endif
38872
38873 int
38874 main ()
38875 {
38876 return f != $ac_func;
38877   ;
38878   return 0;
38879 }
38880 _ACEOF
38881 rm -f conftest.$ac_objext conftest$ac_exeext
38882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38883   (eval $ac_link) 2>conftest.er1
38884   ac_status=$?
38885   grep -v '^ *+' conftest.er1 >conftest.err
38886   rm -f conftest.er1
38887   cat conftest.err >&5
38888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889   (exit $ac_status); } &&
38890          { ac_try='test -z "$ac_c_werror_flag"
38891                          || test ! -s conftest.err'
38892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38893   (eval $ac_try) 2>&5
38894   ac_status=$?
38895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38896   (exit $ac_status); }; } &&
38897          { ac_try='test -s conftest$ac_exeext'
38898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38899   (eval $ac_try) 2>&5
38900   ac_status=$?
38901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902   (exit $ac_status); }; }; then
38903   eval "$as_ac_var=yes"
38904 else
38905   echo "$as_me: failed program was:" >&5
38906 sed 's/^/| /' conftest.$ac_ext >&5
38907
38908 eval "$as_ac_var=no"
38909 fi
38910 rm -f conftest.err conftest.$ac_objext \
38911       conftest$ac_exeext conftest.$ac_ext
38912 fi
38913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38915 if test `eval echo '${'$as_ac_var'}'` = yes; then
38916   cat >>confdefs.h <<_ACEOF
38917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38918 _ACEOF
38919
38920 fi
38921 done
38922
38923 fi
38924
38925
38926
38927
38928
38929
38930
38931
38932
38933
38934
38935
38936
38937
38938
38939
38940
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980 for ac_func in \
38981         bcopy                   \
38982         closesocket             \
38983         chroot                  \
38984         endgrent                \
38985         endpwent                \
38986         fcntl                   \
38987         flock                   \
38988         fstat                   \
38989         getdtablesize           \
38990         getgrgid                \
38991         gethostname             \
38992         getpass                 \
38993         getpassphrase           \
38994         getpwuid                \
38995         getpwnam                \
38996         getspnam                \
38997         gettimeofday            \
38998         initgroups              \
38999         inet_ntoa_b             \
39000         ioctl                   \
39001         lockf                   \
39002         memcpy                  \
39003         memmove                 \
39004         memrchr                 \
39005         mkstemp                 \
39006         mktemp                  \
39007         pipe                    \
39008         read                    \
39009         recv                    \
39010         recvfrom                \
39011         setpwfile               \
39012         setgid                  \
39013         setegid                 \
39014         setsid                  \
39015         setuid                  \
39016         seteuid                 \
39017         signal                  \
39018         strdup                  \
39019         strpbrk                 \
39020         strrchr                 \
39021         strsep                  \
39022         strstr                  \
39023         strtol                  \
39024         strtoul                 \
39025         strtoq                  \
39026         strtouq                 \
39027         strtoll                 \
39028         strspn                  \
39029         sysconf                 \
39030         waitpid                 \
39031         wait4                   \
39032         write                   \
39033         send                    \
39034         sendmsg                 \
39035         sendto                  \
39036
39037 do
39038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39039 echo "$as_me:$LINENO: checking for $ac_func" >&5
39040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39041 if eval "test \"\${$as_ac_var+set}\" = set"; then
39042   echo $ECHO_N "(cached) $ECHO_C" >&6
39043 else
39044   cat >conftest.$ac_ext <<_ACEOF
39045 /* confdefs.h.  */
39046 _ACEOF
39047 cat confdefs.h >>conftest.$ac_ext
39048 cat >>conftest.$ac_ext <<_ACEOF
39049 /* end confdefs.h.  */
39050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39052 #define $ac_func innocuous_$ac_func
39053
39054 /* System header to define __stub macros and hopefully few prototypes,
39055     which can conflict with char $ac_func (); below.
39056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39057     <limits.h> exists even on freestanding compilers.  */
39058
39059 #ifdef __STDC__
39060 # include <limits.h>
39061 #else
39062 # include <assert.h>
39063 #endif
39064
39065 #undef $ac_func
39066
39067 /* Override any gcc2 internal prototype to avoid an error.  */
39068 #ifdef __cplusplus
39069 extern "C"
39070 {
39071 #endif
39072 /* We use char because int might match the return type of a gcc2
39073    builtin and then its argument prototype would still apply.  */
39074 char $ac_func ();
39075 /* The GNU C library defines this for functions which it implements
39076     to always fail with ENOSYS.  Some functions are actually named
39077     something starting with __ and the normal name is an alias.  */
39078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39079 choke me
39080 #else
39081 char (*f) () = $ac_func;
39082 #endif
39083 #ifdef __cplusplus
39084 }
39085 #endif
39086
39087 int
39088 main ()
39089 {
39090 return f != $ac_func;
39091   ;
39092   return 0;
39093 }
39094 _ACEOF
39095 rm -f conftest.$ac_objext conftest$ac_exeext
39096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39097   (eval $ac_link) 2>conftest.er1
39098   ac_status=$?
39099   grep -v '^ *+' conftest.er1 >conftest.err
39100   rm -f conftest.er1
39101   cat conftest.err >&5
39102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103   (exit $ac_status); } &&
39104          { ac_try='test -z "$ac_c_werror_flag"
39105                          || test ! -s conftest.err'
39106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39107   (eval $ac_try) 2>&5
39108   ac_status=$?
39109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39110   (exit $ac_status); }; } &&
39111          { ac_try='test -s conftest$ac_exeext'
39112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39113   (eval $ac_try) 2>&5
39114   ac_status=$?
39115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116   (exit $ac_status); }; }; then
39117   eval "$as_ac_var=yes"
39118 else
39119   echo "$as_me: failed program was:" >&5
39120 sed 's/^/| /' conftest.$ac_ext >&5
39121
39122 eval "$as_ac_var=no"
39123 fi
39124 rm -f conftest.err conftest.$ac_objext \
39125       conftest$ac_exeext conftest.$ac_ext
39126 fi
39127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39129 if test `eval echo '${'$as_ac_var'}'` = yes; then
39130   cat >>confdefs.h <<_ACEOF
39131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39132 _ACEOF
39133
39134 fi
39135 done
39136
39137
39138
39139
39140 for ac_func in getopt getpeereid
39141 do
39142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39143 echo "$as_me:$LINENO: checking for $ac_func" >&5
39144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39145 if eval "test \"\${$as_ac_var+set}\" = set"; then
39146   echo $ECHO_N "(cached) $ECHO_C" >&6
39147 else
39148   cat >conftest.$ac_ext <<_ACEOF
39149 /* confdefs.h.  */
39150 _ACEOF
39151 cat confdefs.h >>conftest.$ac_ext
39152 cat >>conftest.$ac_ext <<_ACEOF
39153 /* end confdefs.h.  */
39154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39156 #define $ac_func innocuous_$ac_func
39157
39158 /* System header to define __stub macros and hopefully few prototypes,
39159     which can conflict with char $ac_func (); below.
39160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39161     <limits.h> exists even on freestanding compilers.  */
39162
39163 #ifdef __STDC__
39164 # include <limits.h>
39165 #else
39166 # include <assert.h>
39167 #endif
39168
39169 #undef $ac_func
39170
39171 /* Override any gcc2 internal prototype to avoid an error.  */
39172 #ifdef __cplusplus
39173 extern "C"
39174 {
39175 #endif
39176 /* We use char because int might match the return type of a gcc2
39177    builtin and then its argument prototype would still apply.  */
39178 char $ac_func ();
39179 /* The GNU C library defines this for functions which it implements
39180     to always fail with ENOSYS.  Some functions are actually named
39181     something starting with __ and the normal name is an alias.  */
39182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39183 choke me
39184 #else
39185 char (*f) () = $ac_func;
39186 #endif
39187 #ifdef __cplusplus
39188 }
39189 #endif
39190
39191 int
39192 main ()
39193 {
39194 return f != $ac_func;
39195   ;
39196   return 0;
39197 }
39198 _ACEOF
39199 rm -f conftest.$ac_objext conftest$ac_exeext
39200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39201   (eval $ac_link) 2>conftest.er1
39202   ac_status=$?
39203   grep -v '^ *+' conftest.er1 >conftest.err
39204   rm -f conftest.er1
39205   cat conftest.err >&5
39206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207   (exit $ac_status); } &&
39208          { ac_try='test -z "$ac_c_werror_flag"
39209                          || test ! -s conftest.err'
39210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39211   (eval $ac_try) 2>&5
39212   ac_status=$?
39213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214   (exit $ac_status); }; } &&
39215          { ac_try='test -s conftest$ac_exeext'
39216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39217   (eval $ac_try) 2>&5
39218   ac_status=$?
39219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220   (exit $ac_status); }; }; then
39221   eval "$as_ac_var=yes"
39222 else
39223   echo "$as_me: failed program was:" >&5
39224 sed 's/^/| /' conftest.$ac_ext >&5
39225
39226 eval "$as_ac_var=no"
39227 fi
39228 rm -f conftest.err conftest.$ac_objext \
39229       conftest$ac_exeext conftest.$ac_ext
39230 fi
39231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39233 if test `eval echo '${'$as_ac_var'}'` = yes; then
39234   cat >>confdefs.h <<_ACEOF
39235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39236 _ACEOF
39237
39238 else
39239   case $LIBOBJS in
39240     "$ac_func.$ac_objext"   | \
39241   *" $ac_func.$ac_objext"   | \
39242     "$ac_func.$ac_objext "* | \
39243   *" $ac_func.$ac_objext "* ) ;;
39244   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39245 esac
39246
39247 fi
39248 done
39249
39250
39251
39252 if test "$ac_cv_func_getopt" != yes; then
39253         LIBSRCS="$LIBSRCS getopt.c"
39254 fi
39255
39256 if test "$ac_cv_func_getpeereid" != yes; then
39257
39258 for ac_func in getpeerucred
39259 do
39260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39261 echo "$as_me:$LINENO: checking for $ac_func" >&5
39262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39263 if eval "test \"\${$as_ac_var+set}\" = set"; then
39264   echo $ECHO_N "(cached) $ECHO_C" >&6
39265 else
39266   cat >conftest.$ac_ext <<_ACEOF
39267 /* confdefs.h.  */
39268 _ACEOF
39269 cat confdefs.h >>conftest.$ac_ext
39270 cat >>conftest.$ac_ext <<_ACEOF
39271 /* end confdefs.h.  */
39272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39273    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39274 #define $ac_func innocuous_$ac_func
39275
39276 /* System header to define __stub macros and hopefully few prototypes,
39277     which can conflict with char $ac_func (); below.
39278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39279     <limits.h> exists even on freestanding compilers.  */
39280
39281 #ifdef __STDC__
39282 # include <limits.h>
39283 #else
39284 # include <assert.h>
39285 #endif
39286
39287 #undef $ac_func
39288
39289 /* Override any gcc2 internal prototype to avoid an error.  */
39290 #ifdef __cplusplus
39291 extern "C"
39292 {
39293 #endif
39294 /* We use char because int might match the return type of a gcc2
39295    builtin and then its argument prototype would still apply.  */
39296 char $ac_func ();
39297 /* The GNU C library defines this for functions which it implements
39298     to always fail with ENOSYS.  Some functions are actually named
39299     something starting with __ and the normal name is an alias.  */
39300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39301 choke me
39302 #else
39303 char (*f) () = $ac_func;
39304 #endif
39305 #ifdef __cplusplus
39306 }
39307 #endif
39308
39309 int
39310 main ()
39311 {
39312 return f != $ac_func;
39313   ;
39314   return 0;
39315 }
39316 _ACEOF
39317 rm -f conftest.$ac_objext conftest$ac_exeext
39318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39319   (eval $ac_link) 2>conftest.er1
39320   ac_status=$?
39321   grep -v '^ *+' conftest.er1 >conftest.err
39322   rm -f conftest.er1
39323   cat conftest.err >&5
39324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39325   (exit $ac_status); } &&
39326          { ac_try='test -z "$ac_c_werror_flag"
39327                          || test ! -s conftest.err'
39328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39329   (eval $ac_try) 2>&5
39330   ac_status=$?
39331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39332   (exit $ac_status); }; } &&
39333          { ac_try='test -s conftest$ac_exeext'
39334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39335   (eval $ac_try) 2>&5
39336   ac_status=$?
39337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39338   (exit $ac_status); }; }; then
39339   eval "$as_ac_var=yes"
39340 else
39341   echo "$as_me: failed program was:" >&5
39342 sed 's/^/| /' conftest.$ac_ext >&5
39343
39344 eval "$as_ac_var=no"
39345 fi
39346 rm -f conftest.err conftest.$ac_objext \
39347       conftest$ac_exeext conftest.$ac_ext
39348 fi
39349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39351 if test `eval echo '${'$as_ac_var'}'` = yes; then
39352   cat >>confdefs.h <<_ACEOF
39353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39354 _ACEOF
39355
39356 fi
39357 done
39358
39359         if test "$ac_cv_func_getpeerucred" != yes ; then
39360                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39361 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39362 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39363   echo $ECHO_N "(cached) $ECHO_C" >&6
39364 else
39365   cat >conftest.$ac_ext <<_ACEOF
39366 /* confdefs.h.  */
39367 _ACEOF
39368 cat confdefs.h >>conftest.$ac_ext
39369 cat >>conftest.$ac_ext <<_ACEOF
39370 /* end confdefs.h.  */
39371 $ac_includes_default
39372 #ifdef HAVE_SYS_SOCKET_H
39373 #include <sys/socket.h>
39374 #endif
39375
39376 int
39377 main ()
39378 {
39379 static struct msghdr ac_aggr;
39380 if (ac_aggr.msg_accrightslen)
39381 return 0;
39382   ;
39383   return 0;
39384 }
39385 _ACEOF
39386 rm -f conftest.$ac_objext
39387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39388   (eval $ac_compile) 2>conftest.er1
39389   ac_status=$?
39390   grep -v '^ *+' conftest.er1 >conftest.err
39391   rm -f conftest.er1
39392   cat conftest.err >&5
39393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394   (exit $ac_status); } &&
39395          { ac_try='test -z "$ac_c_werror_flag"
39396                          || test ! -s conftest.err'
39397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398   (eval $ac_try) 2>&5
39399   ac_status=$?
39400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401   (exit $ac_status); }; } &&
39402          { ac_try='test -s conftest.$ac_objext'
39403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404   (eval $ac_try) 2>&5
39405   ac_status=$?
39406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407   (exit $ac_status); }; }; then
39408   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39409 else
39410   echo "$as_me: failed program was:" >&5
39411 sed 's/^/| /' conftest.$ac_ext >&5
39412
39413 cat >conftest.$ac_ext <<_ACEOF
39414 /* confdefs.h.  */
39415 _ACEOF
39416 cat confdefs.h >>conftest.$ac_ext
39417 cat >>conftest.$ac_ext <<_ACEOF
39418 /* end confdefs.h.  */
39419 $ac_includes_default
39420 #ifdef HAVE_SYS_SOCKET_H
39421 #include <sys/socket.h>
39422 #endif
39423
39424 int
39425 main ()
39426 {
39427 static struct msghdr ac_aggr;
39428 if (sizeof ac_aggr.msg_accrightslen)
39429 return 0;
39430   ;
39431   return 0;
39432 }
39433 _ACEOF
39434 rm -f conftest.$ac_objext
39435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39436   (eval $ac_compile) 2>conftest.er1
39437   ac_status=$?
39438   grep -v '^ *+' conftest.er1 >conftest.err
39439   rm -f conftest.er1
39440   cat conftest.err >&5
39441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442   (exit $ac_status); } &&
39443          { ac_try='test -z "$ac_c_werror_flag"
39444                          || test ! -s conftest.err'
39445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39446   (eval $ac_try) 2>&5
39447   ac_status=$?
39448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39449   (exit $ac_status); }; } &&
39450          { ac_try='test -s conftest.$ac_objext'
39451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39452   (eval $ac_try) 2>&5
39453   ac_status=$?
39454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455   (exit $ac_status); }; }; then
39456   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39457 else
39458   echo "$as_me: failed program was:" >&5
39459 sed 's/^/| /' conftest.$ac_ext >&5
39460
39461 ac_cv_member_struct_msghdr_msg_accrightslen=no
39462 fi
39463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39464 fi
39465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39466 fi
39467 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39468 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39469 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39470
39471 cat >>confdefs.h <<_ACEOF
39472 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39473 _ACEOF
39474
39475
39476 fi
39477
39478                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39479                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39480 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39481 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39482   echo $ECHO_N "(cached) $ECHO_C" >&6
39483 else
39484   cat >conftest.$ac_ext <<_ACEOF
39485 /* confdefs.h.  */
39486 _ACEOF
39487 cat confdefs.h >>conftest.$ac_ext
39488 cat >>conftest.$ac_ext <<_ACEOF
39489 /* end confdefs.h.  */
39490 $ac_includes_default
39491 #ifdef HAVE_SYS_SOCKET_H
39492 #include <sys/socket.h>
39493 #endif
39494
39495 int
39496 main ()
39497 {
39498 static struct msghdr ac_aggr;
39499 if (ac_aggr.msg_control)
39500 return 0;
39501   ;
39502   return 0;
39503 }
39504 _ACEOF
39505 rm -f conftest.$ac_objext
39506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39507   (eval $ac_compile) 2>conftest.er1
39508   ac_status=$?
39509   grep -v '^ *+' conftest.er1 >conftest.err
39510   rm -f conftest.er1
39511   cat conftest.err >&5
39512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513   (exit $ac_status); } &&
39514          { ac_try='test -z "$ac_c_werror_flag"
39515                          || test ! -s conftest.err'
39516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39517   (eval $ac_try) 2>&5
39518   ac_status=$?
39519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520   (exit $ac_status); }; } &&
39521          { ac_try='test -s conftest.$ac_objext'
39522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39523   (eval $ac_try) 2>&5
39524   ac_status=$?
39525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526   (exit $ac_status); }; }; then
39527   ac_cv_member_struct_msghdr_msg_control=yes
39528 else
39529   echo "$as_me: failed program was:" >&5
39530 sed 's/^/| /' conftest.$ac_ext >&5
39531
39532 cat >conftest.$ac_ext <<_ACEOF
39533 /* confdefs.h.  */
39534 _ACEOF
39535 cat confdefs.h >>conftest.$ac_ext
39536 cat >>conftest.$ac_ext <<_ACEOF
39537 /* end confdefs.h.  */
39538 $ac_includes_default
39539 #ifdef HAVE_SYS_SOCKET_H
39540 #include <sys/socket.h>
39541 #endif
39542
39543 int
39544 main ()
39545 {
39546 static struct msghdr ac_aggr;
39547 if (sizeof ac_aggr.msg_control)
39548 return 0;
39549   ;
39550   return 0;
39551 }
39552 _ACEOF
39553 rm -f conftest.$ac_objext
39554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39555   (eval $ac_compile) 2>conftest.er1
39556   ac_status=$?
39557   grep -v '^ *+' conftest.er1 >conftest.err
39558   rm -f conftest.er1
39559   cat conftest.err >&5
39560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561   (exit $ac_status); } &&
39562          { ac_try='test -z "$ac_c_werror_flag"
39563                          || test ! -s conftest.err'
39564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39565   (eval $ac_try) 2>&5
39566   ac_status=$?
39567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568   (exit $ac_status); }; } &&
39569          { ac_try='test -s conftest.$ac_objext'
39570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39571   (eval $ac_try) 2>&5
39572   ac_status=$?
39573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39574   (exit $ac_status); }; }; then
39575   ac_cv_member_struct_msghdr_msg_control=yes
39576 else
39577   echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39579
39580 ac_cv_member_struct_msghdr_msg_control=no
39581 fi
39582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39583 fi
39584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39585 fi
39586 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39587 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39588 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39589
39590 cat >>confdefs.h <<_ACEOF
39591 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39592 _ACEOF
39593
39594
39595 fi
39596
39597                 fi
39598                 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
39599 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
39600 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
39601   echo $ECHO_N "(cached) $ECHO_C" >&6
39602 else
39603   cat >conftest.$ac_ext <<_ACEOF
39604 /* confdefs.h.  */
39605 _ACEOF
39606 cat confdefs.h >>conftest.$ac_ext
39607 cat >>conftest.$ac_ext <<_ACEOF
39608 /* end confdefs.h.  */
39609 $ac_includes_default
39610 int
39611 main ()
39612 {
39613 static struct stat ac_aggr;
39614 if (ac_aggr.st_fstype)
39615 return 0;
39616   ;
39617   return 0;
39618 }
39619 _ACEOF
39620 rm -f conftest.$ac_objext
39621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39622   (eval $ac_compile) 2>conftest.er1
39623   ac_status=$?
39624   grep -v '^ *+' conftest.er1 >conftest.err
39625   rm -f conftest.er1
39626   cat conftest.err >&5
39627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628   (exit $ac_status); } &&
39629          { ac_try='test -z "$ac_c_werror_flag"
39630                          || test ! -s conftest.err'
39631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39632   (eval $ac_try) 2>&5
39633   ac_status=$?
39634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635   (exit $ac_status); }; } &&
39636          { ac_try='test -s conftest.$ac_objext'
39637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39638   (eval $ac_try) 2>&5
39639   ac_status=$?
39640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39641   (exit $ac_status); }; }; then
39642   ac_cv_member_struct_stat_st_fstype=yes
39643 else
39644   echo "$as_me: failed program was:" >&5
39645 sed 's/^/| /' conftest.$ac_ext >&5
39646
39647 cat >conftest.$ac_ext <<_ACEOF
39648 /* confdefs.h.  */
39649 _ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h.  */
39653 $ac_includes_default
39654 int
39655 main ()
39656 {
39657 static struct stat ac_aggr;
39658 if (sizeof ac_aggr.st_fstype)
39659 return 0;
39660   ;
39661   return 0;
39662 }
39663 _ACEOF
39664 rm -f conftest.$ac_objext
39665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39666   (eval $ac_compile) 2>conftest.er1
39667   ac_status=$?
39668   grep -v '^ *+' conftest.er1 >conftest.err
39669   rm -f conftest.er1
39670   cat conftest.err >&5
39671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672   (exit $ac_status); } &&
39673          { ac_try='test -z "$ac_c_werror_flag"
39674                          || test ! -s conftest.err'
39675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39676   (eval $ac_try) 2>&5
39677   ac_status=$?
39678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679   (exit $ac_status); }; } &&
39680          { ac_try='test -s conftest.$ac_objext'
39681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39682   (eval $ac_try) 2>&5
39683   ac_status=$?
39684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685   (exit $ac_status); }; }; then
39686   ac_cv_member_struct_stat_st_fstype=yes
39687 else
39688   echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.$ac_ext >&5
39690
39691 ac_cv_member_struct_stat_st_fstype=no
39692 fi
39693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39694 fi
39695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39696 fi
39697 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
39698 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
39699 if test $ac_cv_member_struct_stat_st_fstype = yes; then
39700
39701 cat >>confdefs.h <<_ACEOF
39702 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
39703 _ACEOF
39704
39705
39706 fi
39707 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
39708 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
39709 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
39710   echo $ECHO_N "(cached) $ECHO_C" >&6
39711 else
39712   cat >conftest.$ac_ext <<_ACEOF
39713 /* confdefs.h.  */
39714 _ACEOF
39715 cat confdefs.h >>conftest.$ac_ext
39716 cat >>conftest.$ac_ext <<_ACEOF
39717 /* end confdefs.h.  */
39718 $ac_includes_default
39719 int
39720 main ()
39721 {
39722 static struct stat ac_aggr;
39723 if (ac_aggr.st_vfstype)
39724 return 0;
39725   ;
39726   return 0;
39727 }
39728 _ACEOF
39729 rm -f conftest.$ac_objext
39730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39731   (eval $ac_compile) 2>conftest.er1
39732   ac_status=$?
39733   grep -v '^ *+' conftest.er1 >conftest.err
39734   rm -f conftest.er1
39735   cat conftest.err >&5
39736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737   (exit $ac_status); } &&
39738          { ac_try='test -z "$ac_c_werror_flag"
39739                          || test ! -s conftest.err'
39740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741   (eval $ac_try) 2>&5
39742   ac_status=$?
39743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744   (exit $ac_status); }; } &&
39745          { ac_try='test -s conftest.$ac_objext'
39746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747   (eval $ac_try) 2>&5
39748   ac_status=$?
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); }; }; then
39751   ac_cv_member_struct_stat_st_vfstype=yes
39752 else
39753   echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.$ac_ext >&5
39755
39756 cat >conftest.$ac_ext <<_ACEOF
39757 /* confdefs.h.  */
39758 _ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h.  */
39762 $ac_includes_default
39763 int
39764 main ()
39765 {
39766 static struct stat ac_aggr;
39767 if (sizeof ac_aggr.st_vfstype)
39768 return 0;
39769   ;
39770   return 0;
39771 }
39772 _ACEOF
39773 rm -f conftest.$ac_objext
39774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39775   (eval $ac_compile) 2>conftest.er1
39776   ac_status=$?
39777   grep -v '^ *+' conftest.er1 >conftest.err
39778   rm -f conftest.er1
39779   cat conftest.err >&5
39780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39781   (exit $ac_status); } &&
39782          { ac_try='test -z "$ac_c_werror_flag"
39783                          || test ! -s conftest.err'
39784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785   (eval $ac_try) 2>&5
39786   ac_status=$?
39787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788   (exit $ac_status); }; } &&
39789          { ac_try='test -s conftest.$ac_objext'
39790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39791   (eval $ac_try) 2>&5
39792   ac_status=$?
39793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794   (exit $ac_status); }; }; then
39795   ac_cv_member_struct_stat_st_vfstype=yes
39796 else
39797   echo "$as_me: failed program was:" >&5
39798 sed 's/^/| /' conftest.$ac_ext >&5
39799
39800 ac_cv_member_struct_stat_st_vfstype=no
39801 fi
39802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39803 fi
39804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39805 fi
39806 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
39807 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
39808 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
39809
39810 cat >>confdefs.h <<_ACEOF
39811 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
39812 _ACEOF
39813
39814
39815 fi
39816
39817                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
39818                         cat >conftest.$ac_ext <<_ACEOF
39819 struct stat st; char *ptr=st.st_fstype;
39820 _ACEOF
39821 rm -f conftest.$ac_objext
39822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39823   (eval $ac_compile) 2>conftest.er1
39824   ac_status=$?
39825   grep -v '^ *+' conftest.er1 >conftest.err
39826   rm -f conftest.er1
39827   cat conftest.err >&5
39828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829   (exit $ac_status); } &&
39830          { ac_try='test -z "$ac_c_werror_flag"
39831                          || test ! -s conftest.err'
39832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39833   (eval $ac_try) 2>&5
39834   ac_status=$?
39835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39836   (exit $ac_status); }; } &&
39837          { ac_try='test -s conftest.$ac_objext'
39838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39839   (eval $ac_try) 2>&5
39840   ac_status=$?
39841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39842   (exit $ac_status); }; }; then
39843
39844 cat >>confdefs.h <<\_ACEOF
39845 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
39846 _ACEOF
39847
39848 else
39849   echo "$as_me: failed program was:" >&5
39850 sed 's/^/| /' conftest.$ac_ext >&5
39851
39852
39853 cat >>confdefs.h <<\_ACEOF
39854 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
39855 _ACEOF
39856
39857 fi
39858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39859                 fi
39860         fi
39861         LIBSRCS="$LIBSRCS getpeereid.c"
39862 fi
39863
39864 if test "$ac_cv_func_snprintf" != yes ||
39865    test "$ac_cv_func_vsnprintf" != yes; then
39866         if test "$ac_cv_func_snprintf" != yes; then
39867
39868 cat >>confdefs.h <<\_ACEOF
39869 #define snprintf ber_pvt_snprintf
39870 _ACEOF
39871
39872         fi
39873         if test "$ac_cv_func_vsnprintf" != yes; then
39874
39875 cat >>confdefs.h <<\_ACEOF
39876 #define vsnprintf ber_pvt_vsnprintf
39877 _ACEOF
39878
39879         fi
39880 fi
39881
39882
39883 if test "$ol_enable_slapi" != no ; then
39884
39885 for ac_header in ltdl.h
39886 do
39887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39889   echo "$as_me:$LINENO: checking for $ac_header" >&5
39890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39892   echo $ECHO_N "(cached) $ECHO_C" >&6
39893 fi
39894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39896 else
39897   # Is the header compilable?
39898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39900 cat >conftest.$ac_ext <<_ACEOF
39901 /* confdefs.h.  */
39902 _ACEOF
39903 cat confdefs.h >>conftest.$ac_ext
39904 cat >>conftest.$ac_ext <<_ACEOF
39905 /* end confdefs.h.  */
39906 $ac_includes_default
39907 #include <$ac_header>
39908 _ACEOF
39909 rm -f conftest.$ac_objext
39910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39911   (eval $ac_compile) 2>conftest.er1
39912   ac_status=$?
39913   grep -v '^ *+' conftest.er1 >conftest.err
39914   rm -f conftest.er1
39915   cat conftest.err >&5
39916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917   (exit $ac_status); } &&
39918          { ac_try='test -z "$ac_c_werror_flag"
39919                          || test ! -s conftest.err'
39920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39921   (eval $ac_try) 2>&5
39922   ac_status=$?
39923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924   (exit $ac_status); }; } &&
39925          { ac_try='test -s conftest.$ac_objext'
39926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39927   (eval $ac_try) 2>&5
39928   ac_status=$?
39929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39930   (exit $ac_status); }; }; then
39931   ac_header_compiler=yes
39932 else
39933   echo "$as_me: failed program was:" >&5
39934 sed 's/^/| /' conftest.$ac_ext >&5
39935
39936 ac_header_compiler=no
39937 fi
39938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39940 echo "${ECHO_T}$ac_header_compiler" >&6
39941
39942 # Is the header present?
39943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39945 cat >conftest.$ac_ext <<_ACEOF
39946 /* confdefs.h.  */
39947 _ACEOF
39948 cat confdefs.h >>conftest.$ac_ext
39949 cat >>conftest.$ac_ext <<_ACEOF
39950 /* end confdefs.h.  */
39951 #include <$ac_header>
39952 _ACEOF
39953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39955   ac_status=$?
39956   grep -v '^ *+' conftest.er1 >conftest.err
39957   rm -f conftest.er1
39958   cat conftest.err >&5
39959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960   (exit $ac_status); } >/dev/null; then
39961   if test -s conftest.err; then
39962     ac_cpp_err=$ac_c_preproc_warn_flag
39963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39964   else
39965     ac_cpp_err=
39966   fi
39967 else
39968   ac_cpp_err=yes
39969 fi
39970 if test -z "$ac_cpp_err"; then
39971   ac_header_preproc=yes
39972 else
39973   echo "$as_me: failed program was:" >&5
39974 sed 's/^/| /' conftest.$ac_ext >&5
39975
39976   ac_header_preproc=no
39977 fi
39978 rm -f conftest.err conftest.$ac_ext
39979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39980 echo "${ECHO_T}$ac_header_preproc" >&6
39981
39982 # So?  What about this header?
39983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39984   yes:no: )
39985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39989     ac_header_preproc=yes
39990     ;;
39991   no:yes:* )
39992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40004     (
40005       cat <<\_ASBOX
40006 ## --------------------------------------------- ##
40007 ## Report this to <http://www.openldap.org/its/> ##
40008 ## --------------------------------------------- ##
40009 _ASBOX
40010     ) |
40011       sed "s/^/$as_me: WARNING:     /" >&2
40012     ;;
40013 esac
40014 echo "$as_me:$LINENO: checking for $ac_header" >&5
40015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40017   echo $ECHO_N "(cached) $ECHO_C" >&6
40018 else
40019   eval "$as_ac_Header=\$ac_header_preproc"
40020 fi
40021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40023
40024 fi
40025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40026   cat >>confdefs.h <<_ACEOF
40027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40028 _ACEOF
40029
40030 fi
40031
40032 done
40033
40034
40035         if test $ac_cv_header_ltdl_h != yes ; then
40036                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
40037 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40038    { (exit 1); exit 1; }; }
40039         fi
40040         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40041 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40042 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40043   echo $ECHO_N "(cached) $ECHO_C" >&6
40044 else
40045   ac_check_lib_save_LIBS=$LIBS
40046 LIBS="-lltdl  $LIBS"
40047 cat >conftest.$ac_ext <<_ACEOF
40048 /* confdefs.h.  */
40049 _ACEOF
40050 cat confdefs.h >>conftest.$ac_ext
40051 cat >>conftest.$ac_ext <<_ACEOF
40052 /* end confdefs.h.  */
40053
40054 /* Override any gcc2 internal prototype to avoid an error.  */
40055 #ifdef __cplusplus
40056 extern "C"
40057 #endif
40058 /* We use char because int might match the return type of a gcc2
40059    builtin and then its argument prototype would still apply.  */
40060 char lt_dlinit ();
40061 int
40062 main ()
40063 {
40064 lt_dlinit ();
40065   ;
40066   return 0;
40067 }
40068 _ACEOF
40069 rm -f conftest.$ac_objext conftest$ac_exeext
40070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40071   (eval $ac_link) 2>conftest.er1
40072   ac_status=$?
40073   grep -v '^ *+' conftest.er1 >conftest.err
40074   rm -f conftest.er1
40075   cat conftest.err >&5
40076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077   (exit $ac_status); } &&
40078          { ac_try='test -z "$ac_c_werror_flag"
40079                          || test ! -s conftest.err'
40080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40081   (eval $ac_try) 2>&5
40082   ac_status=$?
40083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40084   (exit $ac_status); }; } &&
40085          { ac_try='test -s conftest$ac_exeext'
40086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40087   (eval $ac_try) 2>&5
40088   ac_status=$?
40089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40090   (exit $ac_status); }; }; then
40091   ac_cv_lib_ltdl_lt_dlinit=yes
40092 else
40093   echo "$as_me: failed program was:" >&5
40094 sed 's/^/| /' conftest.$ac_ext >&5
40095
40096 ac_cv_lib_ltdl_lt_dlinit=no
40097 fi
40098 rm -f conftest.err conftest.$ac_objext \
40099       conftest$ac_exeext conftest.$ac_ext
40100 LIBS=$ac_check_lib_save_LIBS
40101 fi
40102 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40103 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40104 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40105
40106                 SLAPI_LIBS=-lltdl
40107                 LIBSLAPI=libslapi.a
40108                 LIBSLAPITOOLS=../libslapi.a
40109
40110 cat >>confdefs.h <<\_ACEOF
40111 #define HAVE_LIBLTDL 1
40112 _ACEOF
40113
40114
40115 else
40116   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40117 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40118    { (exit 1); exit 1; }; }
40119 fi
40120
40121
40122
40123 cat >>confdefs.h <<\_ACEOF
40124 #define LDAP_SLAPI 1
40125 _ACEOF
40126
40127 fi
40128
40129 if test "$ol_enable_debug" != no ; then
40130         if test "$ol_enable_debug" = traditional; then
40131
40132 cat >>confdefs.h <<\_ACEOF
40133 #define OLD_DEBUG 1
40134 _ACEOF
40135
40136         fi
40137
40138 cat >>confdefs.h <<\_ACEOF
40139 #define LDAP_DEBUG 1
40140 _ACEOF
40141
40142 fi
40143 if test "$ol_enable_syslog" = yes ; then
40144
40145 cat >>confdefs.h <<\_ACEOF
40146 #define LDAP_SYSLOG 1
40147 _ACEOF
40148
40149 fi
40150 if test "$ol_enable_proctitle" != no ; then
40151
40152 cat >>confdefs.h <<\_ACEOF
40153 #define LDAP_PROCTITLE 1
40154 _ACEOF
40155
40156 fi
40157 if test "$ol_enable_referrals" != no ; then
40158
40159 cat >>confdefs.h <<\_ACEOF
40160 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40161 _ACEOF
40162
40163 fi
40164 if test "$ol_enable_local" != no; then
40165
40166 cat >>confdefs.h <<\_ACEOF
40167 #define LDAP_PF_LOCAL 1
40168 _ACEOF
40169
40170 fi
40171 if test "$ol_link_ipv6" != no; then
40172
40173 cat >>confdefs.h <<\_ACEOF
40174 #define LDAP_PF_INET6 1
40175 _ACEOF
40176
40177 fi
40178 if test "$ol_enable_cleartext" != no ; then
40179
40180 cat >>confdefs.h <<\_ACEOF
40181 #define SLAPD_CLEARTEXT 1
40182 _ACEOF
40183
40184 fi
40185 if test "$ol_enable_crypt" != no ; then
40186
40187 cat >>confdefs.h <<\_ACEOF
40188 #define SLAPD_CRYPT 1
40189 _ACEOF
40190
40191 fi
40192 if test "$ol_link_spasswd" != no ; then
40193
40194 cat >>confdefs.h <<\_ACEOF
40195 #define SLAPD_SPASSWD 1
40196 _ACEOF
40197
40198 fi
40199 if test "$ol_enable_rlookups" != no ; then
40200
40201 cat >>confdefs.h <<\_ACEOF
40202 #define SLAPD_RLOOKUPS 1
40203 _ACEOF
40204
40205 fi
40206 if test "$ol_enable_aci" != no ; then
40207         if test $ol_enable_dynacl = no ; then
40208                 ol_enable_dynacl=yes
40209                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40210 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40211         fi
40212         if test "$ol_enable_aci" = mod ; then
40213                 MFLAG=SLAPD_MOD_DYNAMIC
40214                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40215 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40216    { (exit 1); exit 1; }; }
40217         else
40218                 MFLAG=SLAPD_MOD_STATIC
40219         fi
40220         WITH_ACI_ENABLED=$ol_enable_aci
40221
40222 cat >>confdefs.h <<_ACEOF
40223 #define SLAPD_ACI_ENABLED $MFLAG
40224 _ACEOF
40225
40226 else
40227         WITH_ACI_ENABLED=no
40228 fi
40229 if test "$ol_enable_dynacl" != no ; then
40230
40231 cat >>confdefs.h <<\_ACEOF
40232 #define SLAP_DYNACL 1
40233 _ACEOF
40234
40235 fi
40236
40237 if test "$ol_link_modules" != no ; then
40238
40239 cat >>confdefs.h <<\_ACEOF
40240 #define SLAPD_MODULES 1
40241 _ACEOF
40242
40243         BUILD_SLAPD=yes
40244         SLAPD_MODULES_LDFLAGS="-dlopen self"
40245 fi
40246
40247
40248 cat >>confdefs.h <<\_ACEOF
40249 #define SLAPD_MOD_STATIC 1
40250 _ACEOF
40251
40252
40253 cat >>confdefs.h <<\_ACEOF
40254 #define SLAPD_MOD_DYNAMIC 2
40255 _ACEOF
40256
40257
40258 if test "$ol_enable_monitor" != no ; then
40259         BUILD_SLAPD=yes
40260         BUILD_MONITOR=$ol_enable_monitor
40261         if test "$ol_enable_monitor" = mod ; then
40262                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40263                 MFLAG=SLAPD_MOD_DYNAMIC
40264         else
40265                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40266                 MFLAG=SLAPD_MOD_STATIC
40267         fi
40268
40269 cat >>confdefs.h <<_ACEOF
40270 #define SLAPD_MONITOR $MFLAG
40271 _ACEOF
40272
40273 fi
40274
40275 if test "$ol_enable_bdb" != no ; then
40276         BUILD_SLAPD=yes
40277         BUILD_BDB=$ol_enable_bdb
40278         if test "$ol_enable_bdb" = mod ; then
40279                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40280                 MFLAG=SLAPD_MOD_DYNAMIC
40281         else
40282                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40283                 MFLAG=SLAPD_MOD_STATIC
40284         fi
40285
40286 cat >>confdefs.h <<_ACEOF
40287 #define SLAPD_BDB $MFLAG
40288 _ACEOF
40289
40290 fi
40291
40292 if test "$ol_enable_dnssrv" != no ; then
40293         BUILD_SLAPD=yes
40294         BUILD_DNSSRV=$ol_enable_dnssrv
40295         if test "$ol_enable_dnssrv" = mod ; then
40296                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40297                 MFLAG=SLAPD_MOD_DYNAMIC
40298         else
40299                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40300                 MFLAG=SLAPD_MOD_STATIC
40301         fi
40302
40303 cat >>confdefs.h <<_ACEOF
40304 #define SLAPD_DNSSRV $MFLAG
40305 _ACEOF
40306
40307 fi
40308
40309 if test "$ol_enable_hdb" != no ; then
40310         BUILD_SLAPD=yes
40311         BUILD_HDB=$ol_enable_hdb
40312         if test "$ol_enable_hdb" = mod ; then
40313                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40314                 MFLAG=SLAPD_MOD_DYNAMIC
40315         else
40316                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40317                 MFLAG=SLAPD_MOD_STATIC
40318         fi
40319
40320 cat >>confdefs.h <<_ACEOF
40321 #define SLAPD_HDB $MFLAG
40322 _ACEOF
40323
40324 fi
40325
40326 if test "$ol_enable_ldap" != no ; then
40327         BUILD_SLAPD=yes
40328         BUILD_LDAP=$ol_enable_ldap
40329         if test "$ol_enable_ldap" = mod ; then
40330                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40331                 MFLAG=SLAPD_MOD_DYNAMIC
40332         else
40333                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40334                 MFLAG=SLAPD_MOD_STATIC
40335         fi
40336
40337 cat >>confdefs.h <<_ACEOF
40338 #define SLAPD_LDAP $MFLAG
40339 _ACEOF
40340
40341 fi
40342
40343 if test "$ol_enable_meta" != no ; then
40344         BUILD_SLAPD=yes
40345         BUILD_META=$ol_enable_meta
40346         BUILD_REWRITE=yes
40347         if test "$ol_enable_meta" = mod ; then
40348                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40349                 MFLAG=SLAPD_MOD_DYNAMIC
40350         else
40351                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40352                 MFLAG=SLAPD_MOD_STATIC
40353         fi
40354
40355 cat >>confdefs.h <<_ACEOF
40356 #define SLAPD_META $MFLAG
40357 _ACEOF
40358
40359 fi
40360
40361 if test "$ol_enable_null" != no ; then
40362         BUILD_SLAPD=yes
40363         BUILD_NULL=$ol_enable_null
40364         if test "$ol_enable_null" = mod ; then
40365                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40366                 MFLAG=SLAPD_MOD_DYNAMIC
40367         else
40368                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40369                 MFLAG=SLAPD_MOD_STATIC
40370         fi
40371
40372 cat >>confdefs.h <<_ACEOF
40373 #define SLAPD_NULL $MFLAG
40374 _ACEOF
40375
40376 fi
40377
40378 if test "$ol_enable_passwd" != no ; then
40379         BUILD_SLAPD=yes
40380         BUILD_PASSWD=$ol_enable_passwd
40381         if test "$ol_enable_passwd" = mod ; then
40382                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40383                 MFLAG=SLAPD_MOD_DYNAMIC
40384         else
40385                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40386                 MFLAG=SLAPD_MOD_STATIC
40387         fi
40388
40389 cat >>confdefs.h <<_ACEOF
40390 #define SLAPD_PASSWD $MFLAG
40391 _ACEOF
40392
40393 fi
40394
40395 if test "$ol_link_perl" != no ; then
40396         BUILD_SLAPD=yes
40397         BUILD_PERL=$ol_enable_perl
40398         if test "$ol_enable_perl" = mod ; then
40399                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40400                 MFLAG=SLAPD_MOD_DYNAMIC
40401         else
40402                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40403                 MFLAG=SLAPD_MOD_STATIC
40404         fi
40405
40406 cat >>confdefs.h <<_ACEOF
40407 #define SLAPD_PERL $MFLAG
40408 _ACEOF
40409
40410 fi
40411
40412 if test "$ol_enable_relay" != no ; then
40413         BUILD_SLAPD=yes
40414         BUILD_RELAY=$ol_enable_relay
40415         if test "$ol_enable_relay" = mod ; then
40416                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40417                 MFLAG=SLAPD_MOD_DYNAMIC
40418         else
40419                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40420                 MFLAG=SLAPD_MOD_STATIC
40421         fi
40422
40423 cat >>confdefs.h <<_ACEOF
40424 #define SLAPD_RELAY $MFLAG
40425 _ACEOF
40426
40427 fi
40428
40429 if test "$ol_enable_shell" != no ; then
40430         if test "$ol_link_threads" != no ; then
40431                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40432 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40433         fi
40434         BUILD_SLAPD=yes
40435         BUILD_SHELL=$ol_enable_shell
40436         if test "$ol_enable_shell" = mod ; then
40437                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40438                 MFLAG=SLAPD_MOD_DYNAMIC
40439         else
40440                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40441                 MFLAG=SLAPD_MOD_STATIC
40442         fi
40443
40444 cat >>confdefs.h <<_ACEOF
40445 #define SLAPD_SHELL $MFLAG
40446 _ACEOF
40447
40448 fi
40449
40450 if test "$ol_link_sql" != no ; then
40451         BUILD_SLAPD=yes
40452         BUILD_SQL=$ol_enable_sql
40453         if test "$ol_enable_sql" = mod; then
40454                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40455                 MFLAG=SLAPD_MOD_DYNAMIC
40456         else
40457                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40458                 MFLAG=SLAPD_MOD_STATIC
40459         fi
40460
40461 cat >>confdefs.h <<_ACEOF
40462 #define SLAPD_SQL $MFLAG
40463 _ACEOF
40464
40465 fi
40466
40467 if test "$ol_enable_accesslog" != no ; then
40468         BUILD_ACCESSLOG=$ol_enable_accesslog
40469         if test "$ol_enable_accesslog" = mod ; then
40470                 MFLAG=SLAPD_MOD_DYNAMIC
40471                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40472         else
40473                 MFLAG=SLAPD_MOD_STATIC
40474                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40475         fi
40476
40477 cat >>confdefs.h <<_ACEOF
40478 #define SLAPD_OVER_ACCESSLOG $MFLAG
40479 _ACEOF
40480
40481 fi
40482
40483 if test "$ol_enable_auditlog" != no ; then
40484         BUILD_AUDITLOG=$ol_enable_auditlog
40485         if test "$ol_enable_auditlog" = mod ; then
40486                 MFLAG=SLAPD_MOD_DYNAMIC
40487                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40488         else
40489                 MFLAG=SLAPD_MOD_STATIC
40490                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40491         fi
40492
40493 cat >>confdefs.h <<_ACEOF
40494 #define SLAPD_OVER_AUDITLOG $MFLAG
40495 _ACEOF
40496
40497 fi
40498
40499 if test "$ol_enable_constraint" != no ; then
40500         BUILD_CONSTRAINT=$ol_enable_constraint
40501         if test "$ol_enable_constraint" = mod ; then
40502                 MFLAG=SLAPD_MOD_DYNAMIC
40503                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40504         else
40505                 MFLAG=SLAPD_MOD_STATIC
40506                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40507         fi
40508
40509 cat >>confdefs.h <<_ACEOF
40510 #define SLAPD_OVER_CONSTRAINT $MFLAG
40511 _ACEOF
40512
40513 fi
40514
40515 if test "$ol_enable_dds" != no ; then
40516         BUILD_DDS=$ol_enable_dds
40517         if test "$ol_enable_dds" = mod ; then
40518                 MFLAG=SLAPD_MOD_DYNAMIC
40519                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40520         else
40521                 MFLAG=SLAPD_MOD_STATIC
40522                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40523         fi
40524
40525 cat >>confdefs.h <<_ACEOF
40526 #define SLAPD_OVER_DDS $MFLAG
40527 _ACEOF
40528
40529 fi
40530
40531 if test "$ol_enable_dyngroup" != no ; then
40532         BUILD_DYNGROUP=$ol_enable_dyngroup
40533         if test "$ol_enable_dyngroup" = mod ; then
40534                 MFLAG=SLAPD_MOD_DYNAMIC
40535                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40536         else
40537                 MFLAG=SLAPD_MOD_STATIC
40538                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40539         fi
40540
40541 cat >>confdefs.h <<_ACEOF
40542 #define SLAPD_OVER_DYNGROUP $MFLAG
40543 _ACEOF
40544
40545 fi
40546
40547 if test "$ol_enable_dynlist" != no ; then
40548         BUILD_DYNLIST=$ol_enable_dynlist
40549         if test "$ol_enable_dynlist" = mod ; then
40550                 MFLAG=SLAPD_MOD_DYNAMIC
40551                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40552         else
40553                 MFLAG=SLAPD_MOD_STATIC
40554                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40555         fi
40556
40557 cat >>confdefs.h <<_ACEOF
40558 #define SLAPD_OVER_DYNLIST $MFLAG
40559 _ACEOF
40560
40561 fi
40562
40563 if test "$ol_enable_ppolicy" != no ; then
40564         BUILD_PPOLICY=$ol_enable_ppolicy
40565         if test "$ol_enable_ppolicy" = mod ; then
40566                 MFLAG=SLAPD_MOD_DYNAMIC
40567                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40568         else
40569                 MFLAG=SLAPD_MOD_STATIC
40570                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40571         fi
40572
40573 cat >>confdefs.h <<_ACEOF
40574 #define SLAPD_OVER_PPOLICY $MFLAG
40575 _ACEOF
40576
40577 fi
40578
40579 if test "$ol_enable_proxycache" != no ; then
40580         BUILD_PROXYCACHE=$ol_enable_proxycache
40581         if test "$ol_enable_proxycache" = mod ; then
40582                 MFLAG=SLAPD_MOD_DYNAMIC
40583                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40584         else
40585                 MFLAG=SLAPD_MOD_STATIC
40586                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40587         fi
40588
40589 cat >>confdefs.h <<_ACEOF
40590 #define SLAPD_OVER_PROXYCACHE $MFLAG
40591 _ACEOF
40592
40593 fi
40594
40595 if test "$ol_enable_refint" != no ; then
40596         BUILD_REFINT=$ol_enable_refint
40597         if test "$ol_enable_refint" = mod ; then
40598                 MFLAG=SLAPD_MOD_DYNAMIC
40599                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40600         else
40601                 MFLAG=SLAPD_MOD_STATIC
40602                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40603         fi
40604
40605 cat >>confdefs.h <<_ACEOF
40606 #define SLAPD_OVER_REFINT $MFLAG
40607 _ACEOF
40608
40609 fi
40610
40611 if test "$ol_enable_retcode" != no ; then
40612         BUILD_RETCODE=$ol_enable_retcode
40613         if test "$ol_enable_retcode" = mod ; then
40614                 MFLAG=SLAPD_MOD_DYNAMIC
40615                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40616         else
40617                 MFLAG=SLAPD_MOD_STATIC
40618                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40619         fi
40620
40621 cat >>confdefs.h <<_ACEOF
40622 #define SLAPD_OVER_RETCODE $MFLAG
40623 _ACEOF
40624
40625 fi
40626
40627 if test "$ol_enable_rwm" != no ; then
40628         BUILD_REWRITE=yes
40629         BUILD_RWM=$ol_enable_rwm
40630         if test "$ol_enable_rwm" = mod ; then
40631                 MFLAG=SLAPD_MOD_DYNAMIC
40632                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40633         else
40634                 MFLAG=SLAPD_MOD_STATIC
40635                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40636         fi
40637
40638 cat >>confdefs.h <<_ACEOF
40639 #define SLAPD_OVER_RWM $MFLAG
40640 _ACEOF
40641
40642 fi
40643
40644 if test "$ol_enable_seqmod" != no ; then
40645         BUILD_SEQMOD=$ol_enable_seqmod
40646         if test "$ol_enable_seqmod" = mod ; then
40647                 MFLAG=SLAPD_MOD_DYNAMIC
40648                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40649         else
40650                 MFLAG=SLAPD_MOD_STATIC
40651                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40652         fi
40653
40654 cat >>confdefs.h <<_ACEOF
40655 #define SLAPD_OVER_SEQMOD $MFLAG
40656 _ACEOF
40657
40658 fi
40659
40660 if test "$ol_enable_syncprov" != no ; then
40661         BUILD_SYNCPROV=$ol_enable_syncprov
40662         if test "$ol_enable_syncprov" = mod ; then
40663                 MFLAG=SLAPD_MOD_DYNAMIC
40664                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40665         else
40666                 MFLAG=SLAPD_MOD_STATIC
40667                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40668         fi
40669
40670 cat >>confdefs.h <<_ACEOF
40671 #define SLAPD_OVER_SYNCPROV $MFLAG
40672 _ACEOF
40673
40674 fi
40675
40676 if test "$ol_enable_translucent" != no ; then
40677         BUILD_TRANSLUCENT=$ol_enable_translucent
40678         if test "$ol_enable_translucent" = mod ; then
40679                 MFLAG=SLAPD_MOD_DYNAMIC
40680                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40681         else
40682                 MFLAG=SLAPD_MOD_STATIC
40683                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40684         fi
40685
40686 cat >>confdefs.h <<_ACEOF
40687 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40688 _ACEOF
40689
40690 fi
40691
40692 if test "$ol_enable_unique" != no ; then
40693         BUILD_UNIQUE=$ol_enable_unique
40694         if test "$ol_enable_unique" = mod ; then
40695                 MFLAG=SLAPD_MOD_DYNAMIC
40696                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40697         else
40698                 MFLAG=SLAPD_MOD_STATIC
40699                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40700         fi
40701
40702 cat >>confdefs.h <<_ACEOF
40703 #define SLAPD_OVER_UNIQUE $MFLAG
40704 _ACEOF
40705
40706 fi
40707
40708 if test "$ol_enable_valsort" != no ; then
40709         BUILD_VALSORT=$ol_enable_valsort
40710         if test "$ol_enable_valsort" = mod ; then
40711                 MFLAG=SLAPD_MOD_DYNAMIC
40712                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40713         else
40714                 MFLAG=SLAPD_MOD_STATIC
40715                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40716         fi
40717
40718 cat >>confdefs.h <<_ACEOF
40719 #define SLAPD_OVER_VALSORT $MFLAG
40720 _ACEOF
40721
40722 fi
40723
40724 if test "$ol_enable_rewrite" != no ; then
40725
40726 cat >>confdefs.h <<\_ACEOF
40727 #define ENABLE_REWRITE 1
40728 _ACEOF
40729
40730         BUILD_REWRITE=yes
40731 fi
40732
40733 if test "$ol_enable_slapi" != no ; then
40734
40735 cat >>confdefs.h <<\_ACEOF
40736 #define ENABLE_SLAPI 1
40737 _ACEOF
40738
40739         BUILD_SLAPI=yes
40740         SLAPD_SLAPI_DEPEND=libslapi.a
40741 fi
40742
40743
40744
40745 if test "$ac_cv_mingw32" = yes ; then
40746         PLAT=NT
40747         SLAPD_MODULES_LDFLAGS=
40748 else
40749         PLAT=UNIX
40750 fi
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834 # Check whether --with-xxinstall or --without-xxinstall was given.
40835 if test "${with_xxinstall+set}" = set; then
40836   withval="$with_xxinstall"
40837
40838 fi;
40839
40840
40841                                                                                                                                                                                                                                                                                                                                                                                             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-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 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"
40842
40843
40844           ac_config_commands="$ac_config_commands default"
40845
40846
40847
40848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40849 # Let make expand exec_prefix.
40850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40851
40852 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40853 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40854 # trailing colons and then remove the whole line if VPATH becomes empty
40855 # (actually we leave an empty line to preserve line numbers).
40856 if test "x$srcdir" = x.; then
40857   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40858 s/:*\$(srcdir):*/:/;
40859 s/:*\${srcdir}:*/:/;
40860 s/:*@srcdir@:*/:/;
40861 s/^\([^=]*=[     ]*\):*/\1/;
40862 s/:*$//;
40863 s/^[^=]*=[       ]*$//;
40864 }'
40865 fi
40866
40867 DEFS=-DHAVE_CONFIG_H
40868
40869 ac_libobjs=
40870 ac_ltlibobjs=
40871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40872   # 1. Remove the extension, and $U if already installed.
40873   ac_i=`echo "$ac_i" |
40874          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40875   # 2. Add them.
40876   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40877   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40878 done
40879 LIBOBJS=$ac_libobjs
40880
40881 LTLIBOBJS=$ac_ltlibobjs
40882
40883
40884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40885   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40886 Usually this means the macro was only invoked conditionally." >&5
40887 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40888 Usually this means the macro was only invoked conditionally." >&2;}
40889    { (exit 1); exit 1; }; }
40890 fi
40891 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40892   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40893 Usually this means the macro was only invoked conditionally." >&5
40894 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40895 Usually this means the macro was only invoked conditionally." >&2;}
40896    { (exit 1); exit 1; }; }
40897 fi
40898 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40899   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40900 Usually this means the macro was only invoked conditionally." >&5
40901 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40902 Usually this means the macro was only invoked conditionally." >&2;}
40903    { (exit 1); exit 1; }; }
40904 fi
40905
40906 : ${CONFIG_STATUS=./config.status}
40907 ac_clean_files_save=$ac_clean_files
40908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40911 cat >$CONFIG_STATUS <<_ACEOF
40912 #! $SHELL
40913 # Generated by $as_me.
40914 # Run this file to recreate the current configuration.
40915 # Compiler output produced by configure, useful for debugging
40916 # configure, is in config.log if it exists.
40917
40918 debug=false
40919 ac_cs_recheck=false
40920 ac_cs_silent=false
40921 SHELL=\${CONFIG_SHELL-$SHELL}
40922 _ACEOF
40923
40924 cat >>$CONFIG_STATUS <<\_ACEOF
40925 ## --------------------- ##
40926 ## M4sh Initialization.  ##
40927 ## --------------------- ##
40928
40929 # Be Bourne compatible
40930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40931   emulate sh
40932   NULLCMD=:
40933   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40934   # is contrary to our usage.  Disable this feature.
40935   alias -g '${1+"$@"}'='"$@"'
40936 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40937   set -o posix
40938 fi
40939 DUALCASE=1; export DUALCASE # for MKS sh
40940
40941 # Support unset when possible.
40942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40943   as_unset=unset
40944 else
40945   as_unset=false
40946 fi
40947
40948
40949 # Work around bugs in pre-3.0 UWIN ksh.
40950 $as_unset ENV MAIL MAILPATH
40951 PS1='$ '
40952 PS2='> '
40953 PS4='+ '
40954
40955 # NLS nuisances.
40956 for as_var in \
40957   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40958   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40959   LC_TELEPHONE LC_TIME
40960 do
40961   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40962     eval $as_var=C; export $as_var
40963   else
40964     $as_unset $as_var
40965   fi
40966 done
40967
40968 # Required to use basename.
40969 if expr a : '\(a\)' >/dev/null 2>&1; then
40970   as_expr=expr
40971 else
40972   as_expr=false
40973 fi
40974
40975 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40976   as_basename=basename
40977 else
40978   as_basename=false
40979 fi
40980
40981
40982 # Name of the executable.
40983 as_me=`$as_basename "$0" ||
40984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40985          X"$0" : 'X\(//\)$' \| \
40986          X"$0" : 'X\(/\)$' \| \
40987          .     : '\(.\)' 2>/dev/null ||
40988 echo X/"$0" |
40989     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40990           /^X\/\(\/\/\)$/{ s//\1/; q; }
40991           /^X\/\(\/\).*/{ s//\1/; q; }
40992           s/.*/./; q'`
40993
40994
40995 # PATH needs CR, and LINENO needs CR and PATH.
40996 # Avoid depending upon Character Ranges.
40997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41000 as_cr_digits='0123456789'
41001 as_cr_alnum=$as_cr_Letters$as_cr_digits
41002
41003 # The user is always right.
41004 if test "${PATH_SEPARATOR+set}" != set; then
41005   echo "#! /bin/sh" >conf$$.sh
41006   echo  "exit 0"   >>conf$$.sh
41007   chmod +x conf$$.sh
41008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41009     PATH_SEPARATOR=';'
41010   else
41011     PATH_SEPARATOR=:
41012   fi
41013   rm -f conf$$.sh
41014 fi
41015
41016
41017   as_lineno_1=$LINENO
41018   as_lineno_2=$LINENO
41019   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41020   test "x$as_lineno_1" != "x$as_lineno_2" &&
41021   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41022   # Find who we are.  Look in the path if we contain no path at all
41023   # relative or not.
41024   case $0 in
41025     *[\\/]* ) as_myself=$0 ;;
41026     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41027 for as_dir in $PATH
41028 do
41029   IFS=$as_save_IFS
41030   test -z "$as_dir" && as_dir=.
41031   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41032 done
41033
41034        ;;
41035   esac
41036   # We did not find ourselves, most probably we were run as `sh COMMAND'
41037   # in which case we are not to be found in the path.
41038   if test "x$as_myself" = x; then
41039     as_myself=$0
41040   fi
41041   if test ! -f "$as_myself"; then
41042     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41044    { (exit 1); exit 1; }; }
41045   fi
41046   case $CONFIG_SHELL in
41047   '')
41048     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41049 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41050 do
41051   IFS=$as_save_IFS
41052   test -z "$as_dir" && as_dir=.
41053   for as_base in sh bash ksh sh5; do
41054          case $as_dir in
41055          /*)
41056            if ("$as_dir/$as_base" -c '
41057   as_lineno_1=$LINENO
41058   as_lineno_2=$LINENO
41059   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41060   test "x$as_lineno_1" != "x$as_lineno_2" &&
41061   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41062              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41063              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41064              CONFIG_SHELL=$as_dir/$as_base
41065              export CONFIG_SHELL
41066              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41067            fi;;
41068          esac
41069        done
41070 done
41071 ;;
41072   esac
41073
41074   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41075   # uniformly replaced by the line number.  The first 'sed' inserts a
41076   # line-number line before each line; the second 'sed' does the real
41077   # work.  The second script uses 'N' to pair each line-number line
41078   # with the numbered line, and appends trailing '-' during
41079   # substitution so that $LINENO is not a special case at line end.
41080   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41081   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41082   sed '=' <$as_myself |
41083     sed '
41084       N
41085       s,$,-,
41086       : loop
41087       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41088       t loop
41089       s,-$,,
41090       s,^['$as_cr_digits']*\n,,
41091     ' >$as_me.lineno &&
41092   chmod +x $as_me.lineno ||
41093     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41095    { (exit 1); exit 1; }; }
41096
41097   # Don't try to exec as it changes $[0], causing all sort of problems
41098   # (the dirname of $[0] is not the place where we might find the
41099   # original and so on.  Autoconf is especially sensible to this).
41100   . ./$as_me.lineno
41101   # Exit status is that of the last command.
41102   exit
41103 }
41104
41105
41106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41107   *c*,-n*) ECHO_N= ECHO_C='
41108 ' ECHO_T='      ' ;;
41109   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41110   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41111 esac
41112
41113 if expr a : '\(a\)' >/dev/null 2>&1; then
41114   as_expr=expr
41115 else
41116   as_expr=false
41117 fi
41118
41119 rm -f conf$$ conf$$.exe conf$$.file
41120 echo >conf$$.file
41121 if ln -s conf$$.file conf$$ 2>/dev/null; then
41122   # We could just check for DJGPP; but this test a) works b) is more generic
41123   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41124   if test -f conf$$.exe; then
41125     # Don't use ln at all; we don't have any links
41126     as_ln_s='cp -p'
41127   else
41128     as_ln_s='ln -s'
41129   fi
41130 elif ln conf$$.file conf$$ 2>/dev/null; then
41131   as_ln_s=ln
41132 else
41133   as_ln_s='cp -p'
41134 fi
41135 rm -f conf$$ conf$$.exe conf$$.file
41136
41137 if mkdir -p . 2>/dev/null; then
41138   as_mkdir_p=:
41139 else
41140   test -d ./-p && rmdir ./-p
41141   as_mkdir_p=false
41142 fi
41143
41144 as_executable_p="test -f"
41145
41146 # Sed expression to map a string onto a valid CPP name.
41147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41148
41149 # Sed expression to map a string onto a valid variable name.
41150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41151
41152
41153 # IFS
41154 # We need space, tab and new line, in precisely that order.
41155 as_nl='
41156 '
41157 IFS="   $as_nl"
41158
41159 # CDPATH.
41160 $as_unset CDPATH
41161
41162 exec 6>&1
41163
41164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41165 # report actual input values of CONFIG_FILES etc. instead of their
41166 # values after options handling.  Logging --version etc. is OK.
41167 exec 5>>config.log
41168 {
41169   echo
41170   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41171 ## Running $as_me. ##
41172 _ASBOX
41173 } >&5
41174 cat >&5 <<_CSEOF
41175
41176 This file was extended by $as_me, which was
41177 generated by GNU Autoconf 2.59.  Invocation command line was
41178
41179   CONFIG_FILES    = $CONFIG_FILES
41180   CONFIG_HEADERS  = $CONFIG_HEADERS
41181   CONFIG_LINKS    = $CONFIG_LINKS
41182   CONFIG_COMMANDS = $CONFIG_COMMANDS
41183   $ $0 $@
41184
41185 _CSEOF
41186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41187 echo >&5
41188 _ACEOF
41189
41190 # Files that config.status was made for.
41191 if test -n "$ac_config_files"; then
41192   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41193 fi
41194
41195 if test -n "$ac_config_headers"; then
41196   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41197 fi
41198
41199 if test -n "$ac_config_links"; then
41200   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41201 fi
41202
41203 if test -n "$ac_config_commands"; then
41204   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41205 fi
41206
41207 cat >>$CONFIG_STATUS <<\_ACEOF
41208
41209 ac_cs_usage="\
41210 \`$as_me' instantiates files from templates according to the
41211 current configuration.
41212
41213 Usage: $0 [OPTIONS] [FILE]...
41214
41215   -h, --help       print this help, then exit
41216   -V, --version    print version number, then exit
41217   -q, --quiet      do not print progress messages
41218   -d, --debug      don't remove temporary files
41219       --recheck    update $as_me by reconfiguring in the same conditions
41220   --file=FILE[:TEMPLATE]
41221                    instantiate the configuration file FILE
41222   --header=FILE[:TEMPLATE]
41223                    instantiate the configuration header FILE
41224
41225 Configuration files:
41226 $config_files
41227
41228 Configuration headers:
41229 $config_headers
41230
41231 Configuration commands:
41232 $config_commands
41233
41234 Report bugs to <bug-autoconf@gnu.org>."
41235 _ACEOF
41236
41237 cat >>$CONFIG_STATUS <<_ACEOF
41238 ac_cs_version="\\
41239 config.status
41240 configured by $0, generated by GNU Autoconf 2.59,
41241   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41242
41243 Copyright (C) 2003 Free Software Foundation, Inc.
41244 This config.status script is free software; the Free Software Foundation
41245 gives unlimited permission to copy, distribute and modify it."
41246 srcdir=$srcdir
41247 INSTALL="$INSTALL"
41248 _ACEOF
41249
41250 cat >>$CONFIG_STATUS <<\_ACEOF
41251 # If no file are specified by the user, then we need to provide default
41252 # value.  By we need to know if files were specified by the user.
41253 ac_need_defaults=:
41254 while test $# != 0
41255 do
41256   case $1 in
41257   --*=*)
41258     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41259     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41260     ac_shift=:
41261     ;;
41262   -*)
41263     ac_option=$1
41264     ac_optarg=$2
41265     ac_shift=shift
41266     ;;
41267   *) # This is not an option, so the user has probably given explicit
41268      # arguments.
41269      ac_option=$1
41270      ac_need_defaults=false;;
41271   esac
41272
41273   case $ac_option in
41274   # Handling of the options.
41275 _ACEOF
41276 cat >>$CONFIG_STATUS <<\_ACEOF
41277   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41278     ac_cs_recheck=: ;;
41279   --version | --vers* | -V )
41280     echo "$ac_cs_version"; exit 0 ;;
41281   --he | --h)
41282     # Conflict between --help and --header
41283     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41284 Try \`$0 --help' for more information." >&5
41285 echo "$as_me: error: ambiguous option: $1
41286 Try \`$0 --help' for more information." >&2;}
41287    { (exit 1); exit 1; }; };;
41288   --help | --hel | -h )
41289     echo "$ac_cs_usage"; exit 0 ;;
41290   --debug | --d* | -d )
41291     debug=: ;;
41292   --file | --fil | --fi | --f )
41293     $ac_shift
41294     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41295     ac_need_defaults=false;;
41296   --header | --heade | --head | --hea )
41297     $ac_shift
41298     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41299     ac_need_defaults=false;;
41300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41301   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41302     ac_cs_silent=: ;;
41303
41304   # This is an error.
41305   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41306 Try \`$0 --help' for more information." >&5
41307 echo "$as_me: error: unrecognized option: $1
41308 Try \`$0 --help' for more information." >&2;}
41309    { (exit 1); exit 1; }; } ;;
41310
41311   *) ac_config_targets="$ac_config_targets $1" ;;
41312
41313   esac
41314   shift
41315 done
41316
41317 ac_configure_extra_args=
41318
41319 if $ac_cs_silent; then
41320   exec 6>/dev/null
41321   ac_configure_extra_args="$ac_configure_extra_args --silent"
41322 fi
41323
41324 _ACEOF
41325 cat >>$CONFIG_STATUS <<_ACEOF
41326 if \$ac_cs_recheck; then
41327   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41328   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41329 fi
41330
41331 _ACEOF
41332
41333 cat >>$CONFIG_STATUS <<_ACEOF
41334 #
41335 # INIT-COMMANDS section.
41336 #
41337
41338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41339
41340 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41341 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41342
41343
41344 _ACEOF
41345
41346
41347
41348 cat >>$CONFIG_STATUS <<\_ACEOF
41349 for ac_config_target in $ac_config_targets
41350 do
41351   case "$ac_config_target" in
41352   # Handling of arguments.
41353   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41354   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41355   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41356   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41357   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41358   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41359   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41360   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41361   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41362   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41363   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41364   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41365   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41366   "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" ;;
41367   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41368   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41369   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41370   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41371   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41372   "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" ;;
41373   "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" ;;
41374   "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" ;;
41375   "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" ;;
41376   "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" ;;
41377   "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" ;;
41378   "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" ;;
41379   "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" ;;
41380   "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" ;;
41381   "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" ;;
41382   "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" ;;
41383   "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" ;;
41384   "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" ;;
41385   "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" ;;
41386   "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" ;;
41387   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41388   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41389   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41390   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41391   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41392   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41393   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41394   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41395   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41396   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41398    { (exit 1); exit 1; }; };;
41399   esac
41400 done
41401
41402 # If the user did not use the arguments to specify the items to instantiate,
41403 # then the envvar interface is used.  Set only those that are not.
41404 # We use the long form for the default assignment because of an extremely
41405 # bizarre bug on SunOS 4.1.3.
41406 if $ac_need_defaults; then
41407   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41408   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41409   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41410 fi
41411
41412 # Have a temporary directory for convenience.  Make it in the build tree
41413 # simply because there is no reason to put it here, and in addition,
41414 # creating and moving files from /tmp can sometimes cause problems.
41415 # Create a temporary directory, and hook for its removal unless debugging.
41416 $debug ||
41417 {
41418   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41419   trap '{ (exit 1); exit 1; }' 1 2 13 15
41420 }
41421
41422 # Create a (secure) tmp directory for tmp files.
41423
41424 {
41425   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41426   test -n "$tmp" && test -d "$tmp"
41427 }  ||
41428 {
41429   tmp=./confstat$$-$RANDOM
41430   (umask 077 && mkdir $tmp)
41431 } ||
41432 {
41433    echo "$me: cannot create a temporary directory in ." >&2
41434    { (exit 1); exit 1; }
41435 }
41436
41437 _ACEOF
41438
41439 cat >>$CONFIG_STATUS <<_ACEOF
41440
41441 #
41442 # CONFIG_FILES section.
41443 #
41444
41445 # No need to generate the scripts if there are no CONFIG_FILES.
41446 # This happens for instance when ./config.status config.h
41447 if test -n "\$CONFIG_FILES"; then
41448   # Protect against being on the right side of a sed subst in config.status.
41449   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41450    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41451 s,@SHELL@,$SHELL,;t t
41452 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41453 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41454 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41455 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41456 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41457 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41458 s,@exec_prefix@,$exec_prefix,;t t
41459 s,@prefix@,$prefix,;t t
41460 s,@program_transform_name@,$program_transform_name,;t t
41461 s,@bindir@,$bindir,;t t
41462 s,@sbindir@,$sbindir,;t t
41463 s,@libexecdir@,$libexecdir,;t t
41464 s,@datadir@,$datadir,;t t
41465 s,@sysconfdir@,$sysconfdir,;t t
41466 s,@sharedstatedir@,$sharedstatedir,;t t
41467 s,@localstatedir@,$localstatedir,;t t
41468 s,@libdir@,$libdir,;t t
41469 s,@includedir@,$includedir,;t t
41470 s,@oldincludedir@,$oldincludedir,;t t
41471 s,@infodir@,$infodir,;t t
41472 s,@mandir@,$mandir,;t t
41473 s,@build_alias@,$build_alias,;t t
41474 s,@host_alias@,$host_alias,;t t
41475 s,@target_alias@,$target_alias,;t t
41476 s,@DEFS@,$DEFS,;t t
41477 s,@ECHO_C@,$ECHO_C,;t t
41478 s,@ECHO_N@,$ECHO_N,;t t
41479 s,@ECHO_T@,$ECHO_T,;t t
41480 s,@LIBS@,$LIBS,;t t
41481 s,@build@,$build,;t t
41482 s,@build_cpu@,$build_cpu,;t t
41483 s,@build_vendor@,$build_vendor,;t t
41484 s,@build_os@,$build_os,;t t
41485 s,@host@,$host,;t t
41486 s,@host_cpu@,$host_cpu,;t t
41487 s,@host_vendor@,$host_vendor,;t t
41488 s,@host_os@,$host_os,;t t
41489 s,@target@,$target,;t t
41490 s,@target_cpu@,$target_cpu,;t t
41491 s,@target_vendor@,$target_vendor,;t t
41492 s,@target_os@,$target_os,;t t
41493 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41494 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41495 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41496 s,@CYGPATH_W@,$CYGPATH_W,;t t
41497 s,@PACKAGE@,$PACKAGE,;t t
41498 s,@VERSION@,$VERSION,;t t
41499 s,@ACLOCAL@,$ACLOCAL,;t t
41500 s,@AUTOCONF@,$AUTOCONF,;t t
41501 s,@AUTOMAKE@,$AUTOMAKE,;t t
41502 s,@AUTOHEADER@,$AUTOHEADER,;t t
41503 s,@MAKEINFO@,$MAKEINFO,;t t
41504 s,@install_sh@,$install_sh,;t t
41505 s,@STRIP@,$STRIP,;t t
41506 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41507 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41508 s,@mkdir_p@,$mkdir_p,;t t
41509 s,@AWK@,$AWK,;t t
41510 s,@SET_MAKE@,$SET_MAKE,;t t
41511 s,@am__leading_dot@,$am__leading_dot,;t t
41512 s,@AMTAR@,$AMTAR,;t t
41513 s,@am__tar@,$am__tar,;t t
41514 s,@am__untar@,$am__untar,;t t
41515 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41516 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41517 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41518 s,@top_builddir@,$top_builddir,;t t
41519 s,@ldap_subdir@,$ldap_subdir,;t t
41520 s,@CC@,$CC,;t t
41521 s,@AR@,$AR,;t t
41522 s,@CFLAGS@,$CFLAGS,;t t
41523 s,@LDFLAGS@,$LDFLAGS,;t t
41524 s,@CPPFLAGS@,$CPPFLAGS,;t t
41525 s,@ac_ct_CC@,$ac_ct_CC,;t t
41526 s,@EXEEXT@,$EXEEXT,;t t
41527 s,@OBJEXT@,$OBJEXT,;t t
41528 s,@DEPDIR@,$DEPDIR,;t t
41529 s,@am__include@,$am__include,;t t
41530 s,@am__quote@,$am__quote,;t t
41531 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41532 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41533 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41534 s,@CCDEPMODE@,$CCDEPMODE,;t t
41535 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41536 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41537 s,@EGREP@,$EGREP,;t t
41538 s,@LN_S@,$LN_S,;t t
41539 s,@ECHO@,$ECHO,;t t
41540 s,@ac_ct_AR@,$ac_ct_AR,;t t
41541 s,@RANLIB@,$RANLIB,;t t
41542 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41543 s,@DLLTOOL@,$DLLTOOL,;t t
41544 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41545 s,@AS@,$AS,;t t
41546 s,@ac_ct_AS@,$ac_ct_AS,;t t
41547 s,@OBJDUMP@,$OBJDUMP,;t t
41548 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41549 s,@CPP@,$CPP,;t t
41550 s,@LIBTOOL@,$LIBTOOL,;t t
41551 s,@PERLBIN@,$PERLBIN,;t t
41552 s,@OL_MKDEP@,$OL_MKDEP,;t t
41553 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41554 s,@LTSTATIC@,$LTSTATIC,;t t
41555 s,@LIBOBJS@,$LIBOBJS,;t t
41556 s,@LIBSRCS@,$LIBSRCS,;t t
41557 s,@PLAT@,$PLAT,;t t
41558 s,@WITH_SASL@,$WITH_SASL,;t t
41559 s,@WITH_TLS@,$WITH_TLS,;t t
41560 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41561 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41562 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41563 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41564 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41565 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41566 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41567 s,@BUILD_BDB@,$BUILD_BDB,;t t
41568 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41569 s,@BUILD_HDB@,$BUILD_HDB,;t t
41570 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41571 s,@BUILD_META@,$BUILD_META,;t t
41572 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41573 s,@BUILD_NULL@,$BUILD_NULL,;t t
41574 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41575 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41576 s,@BUILD_PERL@,$BUILD_PERL,;t t
41577 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41578 s,@BUILD_SQL@,$BUILD_SQL,;t t
41579 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41580 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41581 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41582 s,@BUILD_DDS@,$BUILD_DDS,;t t
41583 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41584 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41585 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41586 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41587 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41588 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41589 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41590 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41591 s,@BUILD_RWM@,$BUILD_RWM,;t t
41592 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41593 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41594 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41595 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41596 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41597 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41598 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41599 s,@BDB_LIBS@,$BDB_LIBS,;t t
41600 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41601 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41602 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41603 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41604 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41605 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41606 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41607 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41608 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41609 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41610 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41611 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41612 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41613 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41614 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41615 s,@SASL_LIBS@,$SASL_LIBS,;t t
41616 s,@TLS_LIBS@,$TLS_LIBS,;t t
41617 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41618 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41619 s,@LIBSLAPI@,$LIBSLAPI,;t t
41620 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41621 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41622 s,@ICU_LIBS@,$ICU_LIBS,;t t
41623 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41624 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41625 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41626 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41627 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41628 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41629 CEOF
41630
41631 _ACEOF
41632
41633   cat >>$CONFIG_STATUS <<\_ACEOF
41634   # Split the substitutions into bite-sized pieces for seds with
41635   # small command number limits, like on Digital OSF/1 and HP-UX.
41636   ac_max_sed_lines=48
41637   ac_sed_frag=1 # Number of current file.
41638   ac_beg=1 # First line for current file.
41639   ac_end=$ac_max_sed_lines # Line after last line for current file.
41640   ac_more_lines=:
41641   ac_sed_cmds=
41642   while $ac_more_lines; do
41643     if test $ac_beg -gt 1; then
41644       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41645     else
41646       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41647     fi
41648     if test ! -s $tmp/subs.frag; then
41649       ac_more_lines=false
41650     else
41651       # The purpose of the label and of the branching condition is to
41652       # speed up the sed processing (if there are no `@' at all, there
41653       # is no need to browse any of the substitutions).
41654       # These are the two extra sed commands mentioned above.
41655       (echo ':t
41656   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41657       if test -z "$ac_sed_cmds"; then
41658         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41659       else
41660         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41661       fi
41662       ac_sed_frag=`expr $ac_sed_frag + 1`
41663       ac_beg=$ac_end
41664       ac_end=`expr $ac_end + $ac_max_sed_lines`
41665     fi
41666   done
41667   if test -z "$ac_sed_cmds"; then
41668     ac_sed_cmds=cat
41669   fi
41670 fi # test -n "$CONFIG_FILES"
41671
41672 _ACEOF
41673 cat >>$CONFIG_STATUS <<\_ACEOF
41674 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41675   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41676   case $ac_file in
41677   - | *:- | *:-:* ) # input from stdin
41678         cat >$tmp/stdin
41679         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41680         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41681   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41682         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41683   * )   ac_file_in=$ac_file.in ;;
41684   esac
41685
41686   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41687   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41689          X"$ac_file" : 'X\(//\)[^/]' \| \
41690          X"$ac_file" : 'X\(//\)$' \| \
41691          X"$ac_file" : 'X\(/\)' \| \
41692          .     : '\(.\)' 2>/dev/null ||
41693 echo X"$ac_file" |
41694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41695           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41696           /^X\(\/\/\)$/{ s//\1/; q; }
41697           /^X\(\/\).*/{ s//\1/; q; }
41698           s/.*/./; q'`
41699   { if $as_mkdir_p; then
41700     mkdir -p "$ac_dir"
41701   else
41702     as_dir="$ac_dir"
41703     as_dirs=
41704     while test ! -d "$as_dir"; do
41705       as_dirs="$as_dir $as_dirs"
41706       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41708          X"$as_dir" : 'X\(//\)[^/]' \| \
41709          X"$as_dir" : 'X\(//\)$' \| \
41710          X"$as_dir" : 'X\(/\)' \| \
41711          .     : '\(.\)' 2>/dev/null ||
41712 echo X"$as_dir" |
41713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41715           /^X\(\/\/\)$/{ s//\1/; q; }
41716           /^X\(\/\).*/{ s//\1/; q; }
41717           s/.*/./; q'`
41718     done
41719     test ! -n "$as_dirs" || mkdir $as_dirs
41720   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41721 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41722    { (exit 1); exit 1; }; }; }
41723
41724   ac_builddir=.
41725
41726 if test "$ac_dir" != .; then
41727   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41728   # A "../" for each directory in $ac_dir_suffix.
41729   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41730 else
41731   ac_dir_suffix= ac_top_builddir=
41732 fi
41733
41734 case $srcdir in
41735   .)  # No --srcdir option.  We are building in place.
41736     ac_srcdir=.
41737     if test -z "$ac_top_builddir"; then
41738        ac_top_srcdir=.
41739     else
41740        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41741     fi ;;
41742   [\\/]* | ?:[\\/]* )  # Absolute path.
41743     ac_srcdir=$srcdir$ac_dir_suffix;
41744     ac_top_srcdir=$srcdir ;;
41745   *) # Relative path.
41746     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41747     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41748 esac
41749
41750 # Do not use `cd foo && pwd` to compute absolute paths, because
41751 # the directories may not exist.
41752 case `pwd` in
41753 .) ac_abs_builddir="$ac_dir";;
41754 *)
41755   case "$ac_dir" in
41756   .) ac_abs_builddir=`pwd`;;
41757   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41758   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41759   esac;;
41760 esac
41761 case $ac_abs_builddir in
41762 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41763 *)
41764   case ${ac_top_builddir}. in
41765   .) ac_abs_top_builddir=$ac_abs_builddir;;
41766   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41767   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41768   esac;;
41769 esac
41770 case $ac_abs_builddir in
41771 .) ac_abs_srcdir=$ac_srcdir;;
41772 *)
41773   case $ac_srcdir in
41774   .) ac_abs_srcdir=$ac_abs_builddir;;
41775   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41776   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41777   esac;;
41778 esac
41779 case $ac_abs_builddir in
41780 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41781 *)
41782   case $ac_top_srcdir in
41783   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41784   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41785   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41786   esac;;
41787 esac
41788
41789
41790   case $INSTALL in
41791   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41792   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41793   esac
41794
41795   if test x"$ac_file" != x-; then
41796     { echo "$as_me:$LINENO: creating $ac_file" >&5
41797 echo "$as_me: creating $ac_file" >&6;}
41798     rm -f "$ac_file"
41799   fi
41800   # Let's still pretend it is `configure' which instantiates (i.e., don't
41801   # use $as_me), people would be surprised to read:
41802   #    /* config.h.  Generated by config.status.  */
41803   if test x"$ac_file" = x-; then
41804     configure_input=
41805   else
41806     configure_input="$ac_file.  "
41807   fi
41808   configure_input=$configure_input"Generated from `echo $ac_file_in |
41809                                      sed 's,.*/,,'` by configure."
41810
41811   # First look for the input files in the build tree, otherwise in the
41812   # src tree.
41813   ac_file_inputs=`IFS=:
41814     for f in $ac_file_in; do
41815       case $f in
41816       -) echo $tmp/stdin ;;
41817       [\\/$]*)
41818          # Absolute (can't be DOS-style, as IFS=:)
41819          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41820 echo "$as_me: error: cannot find input file: $f" >&2;}
41821    { (exit 1); exit 1; }; }
41822          echo "$f";;
41823       *) # Relative
41824          if test -f "$f"; then
41825            # Build tree
41826            echo "$f"
41827          elif test -f "$srcdir/$f"; then
41828            # Source tree
41829            echo "$srcdir/$f"
41830          else
41831            # /dev/null tree
41832            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41833 echo "$as_me: error: cannot find input file: $f" >&2;}
41834    { (exit 1); exit 1; }; }
41835          fi;;
41836       esac
41837     done` || { (exit 1); exit 1; }
41838 _ACEOF
41839 cat >>$CONFIG_STATUS <<_ACEOF
41840   sed "$ac_vpsub
41841 $extrasub
41842 _ACEOF
41843 cat >>$CONFIG_STATUS <<\_ACEOF
41844 :t
41845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41846 s,@configure_input@,$configure_input,;t t
41847 s,@srcdir@,$ac_srcdir,;t t
41848 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41849 s,@top_srcdir@,$ac_top_srcdir,;t t
41850 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41851 s,@builddir@,$ac_builddir,;t t
41852 s,@abs_builddir@,$ac_abs_builddir,;t t
41853 s,@top_builddir@,$ac_top_builddir,;t t
41854 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41855 s,@INSTALL@,$ac_INSTALL,;t t
41856 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41857   rm -f $tmp/stdin
41858   if test x"$ac_file" != x-; then
41859     mv $tmp/out $ac_file
41860   else
41861     cat $tmp/out
41862     rm -f $tmp/out
41863   fi
41864
41865 done
41866 _ACEOF
41867 cat >>$CONFIG_STATUS <<\_ACEOF
41868
41869 #
41870 # CONFIG_HEADER section.
41871 #
41872
41873 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41874 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41875 #
41876 # ac_d sets the value in "#define NAME VALUE" lines.
41877 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41878 ac_dB='[         ].*$,\1#\2'
41879 ac_dC=' '
41880 ac_dD=',;t'
41881 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41882 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41883 ac_uB='$,\1#\2define\3'
41884 ac_uC=' '
41885 ac_uD=',;t'
41886
41887 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41888   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41889   case $ac_file in
41890   - | *:- | *:-:* ) # input from stdin
41891         cat >$tmp/stdin
41892         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41893         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41894   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41895         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41896   * )   ac_file_in=$ac_file.in ;;
41897   esac
41898
41899   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41900 echo "$as_me: creating $ac_file" >&6;}
41901
41902   # First look for the input files in the build tree, otherwise in the
41903   # src tree.
41904   ac_file_inputs=`IFS=:
41905     for f in $ac_file_in; do
41906       case $f in
41907       -) echo $tmp/stdin ;;
41908       [\\/$]*)
41909          # Absolute (can't be DOS-style, as IFS=:)
41910          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41911 echo "$as_me: error: cannot find input file: $f" >&2;}
41912    { (exit 1); exit 1; }; }
41913          # Do quote $f, to prevent DOS paths from being IFS'd.
41914          echo "$f";;
41915       *) # Relative
41916          if test -f "$f"; then
41917            # Build tree
41918            echo "$f"
41919          elif test -f "$srcdir/$f"; then
41920            # Source tree
41921            echo "$srcdir/$f"
41922          else
41923            # /dev/null tree
41924            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41925 echo "$as_me: error: cannot find input file: $f" >&2;}
41926    { (exit 1); exit 1; }; }
41927          fi;;
41928       esac
41929     done` || { (exit 1); exit 1; }
41930   # Remove the trailing spaces.
41931   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41932
41933 _ACEOF
41934
41935 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41936 # `conftest.undefs', that substitutes the proper values into
41937 # config.h.in to produce config.h.  The first handles `#define'
41938 # templates, and the second `#undef' templates.
41939 # And first: Protect against being on the right side of a sed subst in
41940 # config.status.  Protect against being in an unquoted here document
41941 # in config.status.
41942 rm -f conftest.defines conftest.undefs
41943 # Using a here document instead of a string reduces the quoting nightmare.
41944 # Putting comments in sed scripts is not portable.
41945 #
41946 # `end' is used to avoid that the second main sed command (meant for
41947 # 0-ary CPP macros) applies to n-ary macro definitions.
41948 # See the Autoconf documentation for `clear'.
41949 cat >confdef2sed.sed <<\_ACEOF
41950 s/[\\&,]/\\&/g
41951 s,[\\$`],\\&,g
41952 t clear
41953 : clear
41954 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41955 t end
41956 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41957 : end
41958 _ACEOF
41959 # If some macros were called several times there might be several times
41960 # the same #defines, which is useless.  Nevertheless, we may not want to
41961 # sort them, since we want the *last* AC-DEFINE to be honored.
41962 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41963 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41964 rm -f confdef2sed.sed
41965
41966 # This sed command replaces #undef with comments.  This is necessary, for
41967 # example, in the case of _POSIX_SOURCE, which is predefined and required
41968 # on some systems where configure will not decide to define it.
41969 cat >>conftest.undefs <<\_ACEOF
41970 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41971 _ACEOF
41972
41973 # Break up conftest.defines because some shells have a limit on the size
41974 # of here documents, and old seds have small limits too (100 cmds).
41975 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41976 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41977 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41978 echo '  :' >>$CONFIG_STATUS
41979 rm -f conftest.tail
41980 while grep . conftest.defines >/dev/null
41981 do
41982   # Write a limited-size here document to $tmp/defines.sed.
41983   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41984   # Speed up: don't consider the non `#define' lines.
41985   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41986   # Work around the forget-to-reset-the-flag bug.
41987   echo 't clr' >>$CONFIG_STATUS
41988   echo ': clr' >>$CONFIG_STATUS
41989   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41990   echo 'CEOF
41991   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41992   rm -f $tmp/in
41993   mv $tmp/out $tmp/in
41994 ' >>$CONFIG_STATUS
41995   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41996   rm -f conftest.defines
41997   mv conftest.tail conftest.defines
41998 done
41999 rm -f conftest.defines
42000 echo '  fi # grep' >>$CONFIG_STATUS
42001 echo >>$CONFIG_STATUS
42002
42003 # Break up conftest.undefs because some shells have a limit on the size
42004 # of here documents, and old seds have small limits too (100 cmds).
42005 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42006 rm -f conftest.tail
42007 while grep . conftest.undefs >/dev/null
42008 do
42009   # Write a limited-size here document to $tmp/undefs.sed.
42010   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42011   # Speed up: don't consider the non `#undef'
42012   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
42013   # Work around the forget-to-reset-the-flag bug.
42014   echo 't clr' >>$CONFIG_STATUS
42015   echo ': clr' >>$CONFIG_STATUS
42016   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42017   echo 'CEOF
42018   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42019   rm -f $tmp/in
42020   mv $tmp/out $tmp/in
42021 ' >>$CONFIG_STATUS
42022   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42023   rm -f conftest.undefs
42024   mv conftest.tail conftest.undefs
42025 done
42026 rm -f conftest.undefs
42027
42028 cat >>$CONFIG_STATUS <<\_ACEOF
42029   # Let's still pretend it is `configure' which instantiates (i.e., don't
42030   # use $as_me), people would be surprised to read:
42031   #    /* config.h.  Generated by config.status.  */
42032   if test x"$ac_file" = x-; then
42033     echo "/* Generated by configure.  */" >$tmp/config.h
42034   else
42035     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42036   fi
42037   cat $tmp/in >>$tmp/config.h
42038   rm -f $tmp/in
42039   if test x"$ac_file" != x-; then
42040     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42041       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42042 echo "$as_me: $ac_file is unchanged" >&6;}
42043     else
42044       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42045 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42046          X"$ac_file" : 'X\(//\)[^/]' \| \
42047          X"$ac_file" : 'X\(//\)$' \| \
42048          X"$ac_file" : 'X\(/\)' \| \
42049          .     : '\(.\)' 2>/dev/null ||
42050 echo X"$ac_file" |
42051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42053           /^X\(\/\/\)$/{ s//\1/; q; }
42054           /^X\(\/\).*/{ s//\1/; q; }
42055           s/.*/./; q'`
42056       { if $as_mkdir_p; then
42057     mkdir -p "$ac_dir"
42058   else
42059     as_dir="$ac_dir"
42060     as_dirs=
42061     while test ! -d "$as_dir"; do
42062       as_dirs="$as_dir $as_dirs"
42063       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42065          X"$as_dir" : 'X\(//\)[^/]' \| \
42066          X"$as_dir" : 'X\(//\)$' \| \
42067          X"$as_dir" : 'X\(/\)' \| \
42068          .     : '\(.\)' 2>/dev/null ||
42069 echo X"$as_dir" |
42070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42071           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42072           /^X\(\/\/\)$/{ s//\1/; q; }
42073           /^X\(\/\).*/{ s//\1/; q; }
42074           s/.*/./; q'`
42075     done
42076     test ! -n "$as_dirs" || mkdir $as_dirs
42077   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42079    { (exit 1); exit 1; }; }; }
42080
42081       rm -f $ac_file
42082       mv $tmp/config.h $ac_file
42083     fi
42084   else
42085     cat $tmp/config.h
42086     rm -f $tmp/config.h
42087   fi
42088 # Compute $ac_file's index in $config_headers.
42089 _am_stamp_count=1
42090 for _am_header in $config_headers :; do
42091   case $_am_header in
42092     $ac_file | $ac_file:* )
42093       break ;;
42094     * )
42095       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42096   esac
42097 done
42098 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42099 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42100          X$ac_file : 'X\(//\)[^/]' \| \
42101          X$ac_file : 'X\(//\)$' \| \
42102          X$ac_file : 'X\(/\)' \| \
42103          .     : '\(.\)' 2>/dev/null ||
42104 echo X$ac_file |
42105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42106           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42107           /^X\(\/\/\)$/{ s//\1/; q; }
42108           /^X\(\/\).*/{ s//\1/; q; }
42109           s/.*/./; q'`/stamp-h$_am_stamp_count
42110 done
42111 _ACEOF
42112 cat >>$CONFIG_STATUS <<\_ACEOF
42113
42114 #
42115 # CONFIG_COMMANDS section.
42116 #
42117 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42118   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42119   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42120   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42121 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42122          X"$ac_dest" : 'X\(//\)[^/]' \| \
42123          X"$ac_dest" : 'X\(//\)$' \| \
42124          X"$ac_dest" : 'X\(/\)' \| \
42125          .     : '\(.\)' 2>/dev/null ||
42126 echo X"$ac_dest" |
42127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42129           /^X\(\/\/\)$/{ s//\1/; q; }
42130           /^X\(\/\).*/{ s//\1/; q; }
42131           s/.*/./; q'`
42132   { if $as_mkdir_p; then
42133     mkdir -p "$ac_dir"
42134   else
42135     as_dir="$ac_dir"
42136     as_dirs=
42137     while test ! -d "$as_dir"; do
42138       as_dirs="$as_dir $as_dirs"
42139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42141          X"$as_dir" : 'X\(//\)[^/]' \| \
42142          X"$as_dir" : 'X\(//\)$' \| \
42143          X"$as_dir" : 'X\(/\)' \| \
42144          .     : '\(.\)' 2>/dev/null ||
42145 echo X"$as_dir" |
42146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42148           /^X\(\/\/\)$/{ s//\1/; q; }
42149           /^X\(\/\).*/{ s//\1/; q; }
42150           s/.*/./; q'`
42151     done
42152     test ! -n "$as_dirs" || mkdir $as_dirs
42153   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42155    { (exit 1); exit 1; }; }; }
42156
42157   ac_builddir=.
42158
42159 if test "$ac_dir" != .; then
42160   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42161   # A "../" for each directory in $ac_dir_suffix.
42162   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42163 else
42164   ac_dir_suffix= ac_top_builddir=
42165 fi
42166
42167 case $srcdir in
42168   .)  # No --srcdir option.  We are building in place.
42169     ac_srcdir=.
42170     if test -z "$ac_top_builddir"; then
42171        ac_top_srcdir=.
42172     else
42173        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42174     fi ;;
42175   [\\/]* | ?:[\\/]* )  # Absolute path.
42176     ac_srcdir=$srcdir$ac_dir_suffix;
42177     ac_top_srcdir=$srcdir ;;
42178   *) # Relative path.
42179     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42180     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42181 esac
42182
42183 # Do not use `cd foo && pwd` to compute absolute paths, because
42184 # the directories may not exist.
42185 case `pwd` in
42186 .) ac_abs_builddir="$ac_dir";;
42187 *)
42188   case "$ac_dir" in
42189   .) ac_abs_builddir=`pwd`;;
42190   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42191   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42192   esac;;
42193 esac
42194 case $ac_abs_builddir in
42195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42196 *)
42197   case ${ac_top_builddir}. in
42198   .) ac_abs_top_builddir=$ac_abs_builddir;;
42199   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42200   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42201   esac;;
42202 esac
42203 case $ac_abs_builddir in
42204 .) ac_abs_srcdir=$ac_srcdir;;
42205 *)
42206   case $ac_srcdir in
42207   .) ac_abs_srcdir=$ac_abs_builddir;;
42208   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42209   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42210   esac;;
42211 esac
42212 case $ac_abs_builddir in
42213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42214 *)
42215   case $ac_top_srcdir in
42216   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42217   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42218   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42219   esac;;
42220 esac
42221
42222
42223   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42224 echo "$as_me: executing $ac_dest commands" >&6;}
42225   case $ac_dest in
42226     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42227   # Strip MF so we end up with the name of the file.
42228   mf=`echo "$mf" | sed -e 's/:.*$//'`
42229   # Check whether this is an Automake generated Makefile or not.
42230   # We used to match only the files named `Makefile.in', but
42231   # some people rename them; so instead we look at the file content.
42232   # Grep'ing the first line is not enough: some people post-process
42233   # each Makefile.in and add a new line on top of each file to say so.
42234   # So let's grep whole file.
42235   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42236     dirpart=`(dirname "$mf") 2>/dev/null ||
42237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42238          X"$mf" : 'X\(//\)[^/]' \| \
42239          X"$mf" : 'X\(//\)$' \| \
42240          X"$mf" : 'X\(/\)' \| \
42241          .     : '\(.\)' 2>/dev/null ||
42242 echo X"$mf" |
42243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42244           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42245           /^X\(\/\/\)$/{ s//\1/; q; }
42246           /^X\(\/\).*/{ s//\1/; q; }
42247           s/.*/./; q'`
42248   else
42249     continue
42250   fi
42251   # Extract the definition of DEPDIR, am__include, and am__quote
42252   # from the Makefile without running `make'.
42253   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42254   test -z "$DEPDIR" && continue
42255   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42256   test -z "am__include" && continue
42257   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42258   # When using ansi2knr, U may be empty or an underscore; expand it
42259   U=`sed -n 's/^U = //p' < "$mf"`
42260   # Find all dependency output files, they are included files with
42261   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42262   # simplest approach to changing $(DEPDIR) to its actual value in the
42263   # expansion.
42264   for file in `sed -n "
42265     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42266        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42267     # Make sure the directory exists.
42268     test -f "$dirpart/$file" && continue
42269     fdir=`(dirname "$file") 2>/dev/null ||
42270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42271          X"$file" : 'X\(//\)[^/]' \| \
42272          X"$file" : 'X\(//\)$' \| \
42273          X"$file" : 'X\(/\)' \| \
42274          .     : '\(.\)' 2>/dev/null ||
42275 echo X"$file" |
42276     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42277           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42278           /^X\(\/\/\)$/{ s//\1/; q; }
42279           /^X\(\/\).*/{ s//\1/; q; }
42280           s/.*/./; q'`
42281     { if $as_mkdir_p; then
42282     mkdir -p $dirpart/$fdir
42283   else
42284     as_dir=$dirpart/$fdir
42285     as_dirs=
42286     while test ! -d "$as_dir"; do
42287       as_dirs="$as_dir $as_dirs"
42288       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42290          X"$as_dir" : 'X\(//\)[^/]' \| \
42291          X"$as_dir" : 'X\(//\)$' \| \
42292          X"$as_dir" : 'X\(/\)' \| \
42293          .     : '\(.\)' 2>/dev/null ||
42294 echo X"$as_dir" |
42295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42297           /^X\(\/\/\)$/{ s//\1/; q; }
42298           /^X\(\/\).*/{ s//\1/; q; }
42299           s/.*/./; q'`
42300     done
42301     test ! -n "$as_dirs" || mkdir $as_dirs
42302   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42303 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42304    { (exit 1); exit 1; }; }; }
42305
42306     # echo "creating $dirpart/$file"
42307     echo '# dummy' > "$dirpart/$file"
42308   done
42309 done
42310  ;;
42311     default )
42312 chmod +x tests/run
42313 date > stamp-h
42314 BACKENDSC="servers/slapd/backends.c"
42315 echo "Making $BACKENDSC"
42316 rm -f $BACKENDSC
42317 cat > $BACKENDSC << ENDX
42318 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42319  *
42320  * Copyright 1998-2007 The OpenLDAP Foundation.
42321  * All rights reserved.
42322  *
42323  * Redistribution and use in source and binary forms, with or without
42324  * modification, are permitted only as authorized by the OpenLDAP
42325  * Public License.
42326  *
42327  * A copy of this license is available in the file LICENSE in the
42328  * top-level directory of the distribution or, alternatively, at
42329  * <http://www.OpenLDAP.org/license.html>.
42330  */
42331 /* This file is automatically generated by configure; please do not edit. */
42332
42333 #include "portable.h"
42334 #include "slap.h"
42335
42336 ENDX
42337 if test "${STATIC_BACKENDS}"; then
42338         for b in config ${STATIC_BACKENDS}; do
42339                 bb=`echo "${b}" | sed -e 's/back-//'`
42340                 cat >> $BACKENDSC << ENDX
42341 extern BI_init ${bb}_back_initialize;
42342 ENDX
42343         done
42344
42345         cat >> $BACKENDSC << ENDX
42346
42347 BackendInfo slap_binfo[] = {
42348 ENDX
42349
42350         for b in config ${STATIC_BACKENDS}; do
42351                 bb=`echo "${b}" | sed -e 's/back-//'`
42352                 echo "    Add ${bb} ..."
42353                 cat >> $BACKENDSC << ENDX
42354         { "${bb}", ${bb}_back_initialize },
42355 ENDX
42356         done
42357
42358         cat >> $BACKENDSC << ENDX
42359         { NULL, NULL },
42360 };
42361
42362 /* end of generated file */
42363 ENDX
42364 fi
42365 OVERLAYSC="servers/slapd/overlays/statover.c"
42366 echo "Making $OVERLAYSC"
42367 rm -f $OVERLAYSC
42368 cat > $OVERLAYSC << ENDX
42369 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42370  *
42371  * Copyright 1998-2007 The OpenLDAP Foundation.
42372  * All rights reserved.
42373  *
42374  * Redistribution and use in source and binary forms, with or without
42375  * modification, are permitted only as authorized by the OpenLDAP
42376  * Public License.
42377  *
42378  * A copy of this license is available in the file LICENSE in the
42379  * top-level directory of the distribution or, alternatively, at
42380  * <http://www.OpenLDAP.org/license.html>.
42381  */
42382 /* This file is automatically generated by configure; please do not edit. */
42383
42384 #include "portable.h"
42385 #include "slap.h"
42386
42387 ENDX
42388 if test "${STATIC_OVERLAYS}"; then
42389         for o in ${STATIC_OVERLAYS}; do
42390                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42391                 cat >> $OVERLAYSC << ENDX
42392 extern OV_init ${oo}_initialize;
42393 ENDX
42394         done
42395 fi
42396
42397 cat >> $OVERLAYSC << ENDX
42398
42399 OverlayInit slap_oinfo[] = {
42400 ENDX
42401
42402 if test "${STATIC_OVERLAYS}"; then
42403         for o in ${STATIC_OVERLAYS}; do
42404                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42405                 echo "    Add ${oo} ..."
42406                 cat >> $OVERLAYSC << ENDX
42407         { "${oo}", ${oo}_initialize },
42408 ENDX
42409         done
42410 fi
42411
42412         cat >> $OVERLAYSC << ENDX
42413         { NULL, NULL },
42414 };
42415
42416 /* end of generated file */
42417 ENDX
42418
42419 if test "${ol_cv_mkdep}" = no; then
42420         echo '(Do not "make depend"; we do not know how to build dependencies)'
42421 else
42422         echo 'Please run "make depend" to build dependencies'
42423 fi
42424  ;;
42425   esac
42426 done
42427 _ACEOF
42428
42429 cat >>$CONFIG_STATUS <<\_ACEOF
42430
42431 { (exit 0); exit 0; }
42432 _ACEOF
42433 chmod +x $CONFIG_STATUS
42434 ac_clean_files=$ac_clean_files_save
42435
42436
42437 # configure is writing to config.log, and then calls config.status.
42438 # config.status does its own redirection, appending to config.log.
42439 # Unfortunately, on DOS this fails, as config.log is still kept open
42440 # by configure, so config.status won't be able to write to it; its
42441 # output is simply discarded.  So we exec the FD to /dev/null,
42442 # effectively closing config.log, so it can be properly (re)opened and
42443 # appended to by config.status.  When coming back to configure, we
42444 # need to make the FD available again.
42445 if test "$no_create" != yes; then
42446   ac_cs_success=:
42447   ac_config_status_args=
42448   test "$silent" = yes &&
42449     ac_config_status_args="$ac_config_status_args --quiet"
42450   exec 5>/dev/null
42451   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42452   exec 5>>config.log
42453   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42454   # would make configure fail if this is the last instruction.
42455   $ac_cs_success || { (exit 1); exit 1; }
42456 fi
42457